JPH06337859A - Document generation device - Google Patents

Document generation device

Info

Publication number
JPH06337859A
JPH06337859A JP5129117A JP12911793A JPH06337859A JP H06337859 A JPH06337859 A JP H06337859A JP 5129117 A JP5129117 A JP 5129117A JP 12911793 A JP12911793 A JP 12911793A JP H06337859 A JPH06337859 A JP H06337859A
Authority
JP
Japan
Prior art keywords
line
dot pattern
identification number
coordinates
document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5129117A
Other languages
Japanese (ja)
Inventor
Masanobu Koyama
雅庸 小山
Kyoko Shinba
教子 榛葉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP5129117A priority Critical patent/JPH06337859A/en
Publication of JPH06337859A publication Critical patent/JPH06337859A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Abstract

(57)【要約】 【目的】 用紙に印刷もしくは手書きされた表から文書
作成装置上に同様の表を作成する場合において、オペレ
ータによるけい線の入力作業を排することを目的とす
る。 【構成】 スキャナ1で読み取った用紙のイメージを表
すドットパターンからけい線を認識し、用紙上のけい線
の始点と終点の座標を求めるけい線認識手段4と、用紙
のイメージをスキャナで2回以上に分けて読み取る場合
に、1回分の読み取り範囲に収まらないけい線の識別番
号を記憶するけい線識別番号記憶手段5と、用紙上のけ
い線の始点と終点の座標からワードプロセッサ上の書式
に応じたけい線情報に変換するけい線変換手段7とによ
り、オペレータによるけい線の入力作業を排することが
できる。
(57) [Summary] [Purpose] The purpose is to eliminate the operator's operation of inputting a rule line when a similar table is created on a document creation device from a table printed or handwritten on paper. [Structure] A line recognition means 4 for recognizing a ruled line from a dot pattern representing an image of a sheet read by a scanner 1 and obtaining coordinates of a start point and an end point of the ruled line on the sheet, and an image of the sheet twice by a scanner. When reading separately in the above-mentioned manner, the line identification number storage means 5 for storing the identification number of the line which does not fit within the reading range for one time, and the coordinates of the start point and the end point of the line on the paper are converted into a format on the word processor. The operation of inputting the ruled line by the operator can be omitted by the ruled line converting means 7 for converting it into the corresponding ruled line information.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は日本語ワードプロセッサ
等の文書作成装置に関し、詳しくはけい線が用いられる
表などを含む文書の編集を行う文書作成装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document preparation device such as a Japanese word processor, and more particularly to a document preparation device for editing a document including a table in which a ruled line is used.

【0002】[0002]

【従来の技術】近年、日本語ワードプロセッサ等の文書
作成装置は、単に文字等を入力しそれを漢字に変換する
だけでなく、けい線を用いた表などを文書中に挿入する
ことによって種々の文書の作成が可能になっている。
2. Description of the Related Art In recent years, a document creating apparatus such as a Japanese word processor not only inputs a character or the like and converts it into a kanji character, but also inserts a table or the like using a rule line into a document. Documents can be created.

【0003】以下に従来の文書作成装置について図を用
いて説明する。図8は従来の文書作成装置の構成を示す
ブロック図、図9はこの構成をもつ文書作成装置上で作
表する場合の作業フローを示す図である。図8におい
て、81は表を構成するけい線を入力するためのけい線
入力キー、82はけい線を含む作成した文書を記憶する
文書記憶手段、83は文書記憶手段82に格納されてい
る文書を表示するCRTや液晶などの表示装置、84は
文書記憶手段82に格納されている文書をフロッピーデ
ィスクに保存するフロッピーディスクドライブ、85は
文書記憶手段82に格納されている文書を印刷するプリ
ンタである。そして86はこれらの構成要素の動作を制
御する全体制御部である。
A conventional document creating apparatus will be described below with reference to the drawings. FIG. 8 is a block diagram showing the configuration of a conventional document creating apparatus, and FIG. 9 is a diagram showing a work flow when tabulating on the document creating apparatus having this configuration. In FIG. 8, reference numeral 81 is a line input key for inputting a line forming a table, 82 is a document storage means for storing a created document including the line, and 83 is a document stored in the document storage means 82. Is a display device such as a CRT or a liquid crystal display, 84 is a floppy disk drive for storing the document stored in the document storage means 82 on a floppy disk, and 85 is a printer for printing the document stored in the document storage means 82. is there. Reference numeral 86 is an overall control unit that controls the operation of these components.

【0004】以上のように構成された文書作成装置につ
いて、以下、図9の作業フローに従い説明する。
The document creating apparatus configured as described above will be described below with reference to the work flow of FIG.

【0005】91.オペレーターは、用紙に印刷もしく
は手書きされた表を参照しながら、けい線入力キー81
によりけい線を入力し作表する。
91. The operator refers to the table printed on the paper or handwritten and refers to the key input key 81
Enter the line and draw a table.

【0006】92.次に作成した表を表示装置83に表
示させ、これと用紙の表とを比較してけい線入力キー8
1によりけい線の誤りを訂正する。
92. Next, the prepared table is displayed on the display device 83, and this is compared with the table of the paper, and the line input key 8
Correct the error of the tie line by 1.

【0007】93.文書作成装置上に所望の表が作成さ
れたことを確認したら、プリンタ85により作成した表
を印字するか、フロッピーディスクドライブ84により
フロッピーディスクに作成した表のデータを保存する。
93. When it is confirmed that the desired table has been created on the document creation device, the table created by the printer 85 is printed, or the created table data is saved on the floppy disk by the floppy disk drive 84.

【0008】[0008]

【発明が解決しようとする課題】上記の構成をもつ文書
作成装置において作表する場合、図9の作業フローに示
したように表の枠を作成するためのけい線の入力はオペ
レータの手作業によらなければならず、手間と時間がか
かるという問題があった。また、キーボードからの入力
は単調な作業であるため、オペレータに精神的な負担が
かかるという問題があった。
When tabulating in the document creating apparatus having the above-mentioned structure, the operator manually inputs the ruled lines for creating the table frame as shown in the work flow of FIG. There is a problem in that it takes time and effort. Further, since the input from the keyboard is a monotonous work, there is a problem that the operator is mentally burdened.

【0009】本発明は、上記問題点に鑑みて試されたも
ので、用紙に印刷もしくは手書きされた表から文書作成
装置上に同様の表を作成する場合において、手作業によ
るけい線の入力作業を排するとともに、高速入力を可能
にできることを目的とする。
The present invention has been tried in view of the above problems, and when a similar table is created on a document creating apparatus from a table printed or handwritten on a sheet, a manual input operation of a ruled line is performed. The purpose is to enable high-speed input while eliminating.

【0010】[0010]

【課題を解決するための手段】この目的を達成するため
に本発明の文書作成装置は、用紙上のけい線のイメージ
を読み取ってドットパターンに変換するスキャナと、前
記スキャナで読み取ったドットパターンを格納するドッ
トパターン格納メモリと、前記ドットパターン格納メモ
リに格納されているドットパターンの連続性からけい線
を認識し、用紙上のけい線の始点と終点の座標を求める
けい線認識手段と、けい線の識別番号を付与し記憶する
けい線識別番号記憶手段と、けい線認識手段により認識
されたけい線の識別番号と用紙上のけい線の始点と終点
の座標を格納するけい線記憶手段と、前記けい線記憶手
段に格納されたけい線の始点と終点の座標から、ワード
プロセッサ上の書式における行位置、桁位置に変換する
けい線変換手段とを備えたものである。
In order to achieve this object, a document creating apparatus of the present invention comprises a scanner for reading an image of a ruled line on a sheet and converting it into a dot pattern, and a dot pattern read by the scanner. A dot line storing means for storing and a dot line recognizing means for recognizing a dot line from the continuity of the dot patterns stored in the dot pattern storing memory and for obtaining coordinates of a start point and an end point of the dot line on the paper. A line identification number storage means for giving and storing a line identification number; and a line storage means for storing the identification number of the line recognized by the line recognizing means and the coordinates of the start and end points of the line on the paper. A line conversion means for converting the coordinates of the start and end points of the line stored in the line storage means into a line position and a column position in a format on a word processor; It includes those were.

【0011】[0011]

【作用】本発明は、けい線認識手段により、スキャナで
読み取った用紙のイメージを表すドットパターンからけ
い線を認識し、用紙上のけい線の始点と終点の座標を求
める。次に、けい線変換手段によって、求めたけい線の
始点と終点の座標から、ワードプロセッサ上の書式に応
じたけい線情報に変換する。
According to the present invention, the ruled line recognizing means recognizes the ruled line from the dot pattern representing the image of the sheet read by the scanner, and obtains the coordinates of the start point and the end point of the ruled line on the sheet. Next, the calculated line conversion means converts the obtained coordinates of the start point and the end point of the calculated line into the line information according to the format on the word processor.

【0012】[0012]

【実施例】以下、本発明の一実施例の文書作成装置につ
いて図を用いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A document creating apparatus according to an embodiment of the present invention will be described below with reference to the drawings.

【0013】図1は本発明の一実施例の文書作成装置の
構成を示すブロック図である。図1において、1は用紙
上のイメージを読み取ってドットパターンに変換するス
キャナ、2は用紙送りを行いスキャナ1で読み取る範囲
を定める用紙送り手段、3はスキャナ1で読み取ったド
ットパターンを格納するドットパターン格納メモリ、4
はドットパターン格納メモリ3に格納されているドット
パターンからけい線を認識し、用紙上のけい線の始点と
終点の座標を求めるけい線認識手段、5は用紙のイメー
ジをスキャナで2回以上に分けて読み取る場合に、1回
分の読み取り範囲に対して、けい線認識手段4によりけ
い線を認識した結果、けい線認識の対象となった読み取
り範囲の外に連続していると判断されるけい線に識別番
号を付与し記憶するけい線識別番号記憶手段、6はけい
線認識手段4により認識されたけい線の識別番号と用紙
上の始点と終点の座標を格納するけい線記憶手段、7は
けい線記憶手段6より得られるけい線の始点と終点の座
標から、ワードプロセッサの書式上のけい線情報に変換
するけい線変換手段、8はワードプロセッサの文字情
報、文字修飾情報、けい線情報等からなる文書を記憶す
る文書記憶手段、9は文書記憶手段8より得られる文書
の表示を行うCRT、液晶等の表示装置、10は文書記
憶手段8より得られる文書をフロッピーディスクに記憶
するフロッピーディスクドライブ、11は文書記憶手段
8より得られる文書を印刷するプリンタ、12は各構成
要素の動作を制御する全体制御部である。
FIG. 1 is a block diagram showing the arrangement of a document creating apparatus according to an embodiment of the present invention. In FIG. 1, 1 is a scanner for reading an image on a sheet and converting it into a dot pattern, 2 is a sheet feeding means for feeding the sheet and determining a range to be read by the scanner 1, 3 is a dot pattern storage for storing the dot pattern read by the scanner 1. Memory, 4
Is a line recognition means for recognizing a ruled line from the dot pattern stored in the dot pattern storage memory 3 and obtaining coordinates of the start point and the end point of the ruled line on the paper. In the case of reading separately, as a result of recognizing the ruled line by the ruled line recognizing means 4 in the reading range for one time, it is determined that it is continuous outside the reading range targeted for the ruled line recognition. A line identification number storage means for giving an identification number to the line and storing it, a reference line storage means 6 for storing the identification number of the line recognized by the line recognition means 4 and the coordinates of the start point and the end point on the paper, 7 A line converting means for converting the coordinates of the start and end points of the line obtained from the line storing means 6 into the line information on the format of the word processor, 8 is the character information of the word processor, the character modification information, Document storing means for storing a document including line information, 9 is a CRT for displaying the document obtained from the document storing means 8, a display device such as a liquid crystal, and 10 is a floppy disk for the document obtained from the document storing means 8. A floppy disk drive for storage, 11 is a printer for printing a document obtained from the document storage means 8, and 12 is an overall control unit for controlling the operation of each component.

【0014】以上のように構成された文書作成装置につ
いて、まず、ドットパターン格納メモリ3に格納されて
いるドットパターンから、けい線を認識し用紙上のけい
線の始点と終点の座標を求めるけい線認識手段4の動作
について説明する。
With respect to the document creating apparatus constructed as described above, first of all, from the dot pattern stored in the dot pattern storing memory 3, the ruled line is recognized and the coordinates of the start point and the end point of the ruled line on the paper are obtained. The operation of the line recognition means 4 will be described.

【0015】図2はスキャナ1で読み取ったドットパタ
ーンが格納されたドットパターン格納メモリ3のドット
パターン格納例を示すものである。図2に示すように、
ドットパターン格納メモリ3のマトリックスの各ドット
には、スキャナ1で読み取った用紙上の対応する位置の
黒さに応じて、“0”または“1”が格納されている。
本例ではあるドットの黒さが、ある閾値以上の場合はこ
れに“1”を格納するものとして説明する。また、マト
リックスの1ドットに対しては、メモリの3ビット以上
が割りつけられているものとする。まず、このマトリッ
クスを上から順にX軸方向に走査し、N個以上連続で
“1”が格納されているドットの連なりを探し、これら
のドットの値を“1”から“2”に変更する。図2のマ
トリックスをN=7としてこの方法に従って値の変更を
行うと、ドットパターン格納メモリ3は図3のようにな
る。次にこのマトリックスを左から順にY軸方向に走査
し、N個以上連続で“1”または“2”が格納されてい
るドットを探し、これらのドットの値を、値が“1”の
場合は“3”に、値が“2”の場合は“4”に変更す
る。図3のマトリックスをN=7としてこの方法に従っ
て値の変更を行うと、ドットパターン格納メモリ3は図
4のようになる。図4において、“2”は水平けい線の
一部をなすドット、“3”は垂直けい線の一部をなすド
ット、“4”は垂直けい線と水平けい線の交点となるド
ット、“1”は水平けい線あるいは垂直けい線のいずれ
の一部にもならないドット、“0”は黒でないドットを
表す。次に、再度ドットパターン格納メモリ3を上から
順に各Y座標ごとにX軸方向に走査する。各走査におい
て、“2”または“4”の値を持つドットの連なりを探
し、この連なりの左端の座標(X2 ,Y4 )と、右端の
座標(X9 ,Y4 )を得る。この連なりを新たな水平け
い線として認識するものとし、水平けい線識別番号を付
与し、けい線記憶手段6に水平けい線識別番号と座標
(X2 ,Y4 )、(X9,Y4 )を格納する。ただし、
仮に1つ上の走査において水平けい線を認識しており、
その水平けい線の左端のX座標Xhlおよび右端のX座標
XhrとX2 およびX9 がXhr≧X2 かつXhl≦X9 なる
関係にあるならば、新たな水平けい線識別番号は付与せ
ず、1回前に認識した水平けい線のXhl,Xhr,Y3 を
X2 、X9Y4 に更新する。ただし、Xhl<X2 ならXh
lは更新しない。またXhr>X9 ならXhrは更新しな
い。このようにしてドットパターン格納メモリ3を上か
ら順に各Y座標ごとにX軸方向に走査し、一番下まで走
査し終えたら、次に再度ドットパターン格納メモリ3を
上から順に各Y座標ごとにX軸方向に走査する。各走査
において、“3”または“4”の値を持つドットを探
す。“3”または“4”の値を持つドットが2個以上連
続している場合は、これらのドットの左端の座標(X7
,Y2 )と、右端の座標(X8 ,Y2 )を得る。連続
していない場合はそのドットの座標(X3 ,Y2 )を得
る。そしてこれらのドットを新たな垂直けい線として認
識するものとし、それぞれ垂直けい線識別番号を付与し
て、けい線記憶手段6に垂直けい線識別番号と座標(X
7 ,X8,Y2)、(X3 ,Y2 )を格納する。ただし、
仮に1つ上の走査において垂直けい線を認識しており、
その垂直けい線の左端のX座標Xvlおよび右端のX座標
XvrとX7 およびX8 がXvr≧X7 かつXvl≦X8 なる
関係にあるならば、新たな垂直けい線識別番号は付与せ
ず、1回前に認識した垂直けい線のXvl,Xvr,Y1 を
更新する。ただし、Xhl<X7 ならXhlは更新しない。
またXvr>X8 ならXvrは更新しない。
FIG. 2 shows an example of dot pattern storage in the dot pattern storage memory 3 in which the dot patterns read by the scanner 1 are stored. As shown in FIG.
“0” or “1” is stored in each dot of the matrix of the dot pattern storage memory 3 according to the black of the corresponding position on the paper read by the scanner 1.
In this example, when the blackness of a certain dot is equal to or larger than a certain threshold value, "1" is stored in this. Further, it is assumed that 3 bits or more of the memory are allocated to 1 dot of the matrix. First, this matrix is sequentially scanned from the top in the X-axis direction to find a series of N or more consecutive "1" stored dots, and the value of these dots is changed from "1" to "2". . When the matrix of FIG. 2 is set to N = 7 and the value is changed according to this method, the dot pattern storage memory 3 becomes as shown in FIG. Next, this matrix is scanned in the Y-axis direction from the left in order to find N or more consecutive dots in which "1" or "2" is stored. If the value of these dots is "1", Is changed to "3", and when the value is "2", it is changed to "4". When the matrix of FIG. 3 is changed to N = 7 and the value is changed according to this method, the dot pattern storage memory 3 becomes as shown in FIG. In FIG. 4, "2" is a dot forming a part of the horizontal ruled line, "3" is a dot forming a part of the vertical ruled line, "4" is a dot which is an intersection of the vertical ruled line and the horizontal ruled line, "1" represents a dot which does not become a part of either the horizontal or vertical stroke, and "0" represents a dot which is not black. Next, the dot pattern storage memory 3 is scanned again from the top in the X-axis direction for each Y coordinate. In each scan, a series of dots having a value of "2" or "4" is searched for, and the coordinates (X2, Y4) at the left end and the coordinates (X9, Y4) at the right end of this series are obtained. It is assumed that this series is recognized as a new horizontal grid line, a horizontal grid line identification number is given, and the horizontal grid line identification number and coordinates (X2, Y4) and (X9, Y4) are stored in the grid line storage means 6. . However,
Suppose that the horizontal scanning line is recognized in the scanning one above,
If the leftmost X coordinate Xhl and the rightmost X coordinate Xhr and X2 and X9 have the relations Xhr ≧ X2 and Xhl ≦ X9, a new horizontal ruled line identification number is not given and The horizontal lines Xhl, Xhr, Y3 recognized in step 2 are updated to X2, X9Y4. However, if Xhl <X2, then Xh
l does not update. If Xhr> X9, Xhr is not updated. In this manner, the dot pattern storage memory 3 is sequentially scanned from the top for each Y coordinate in the X-axis direction, and when the scanning is completed to the bottom, the dot pattern storage memory 3 is again scanned from the top for each Y coordinate. Scan in the X-axis direction. In each scan, look for dots with a value of "3" or "4". If two or more dots with a value of "3" or "4" are consecutive, the coordinates of the left end of these dots (X7
, Y2) and the rightmost coordinate (X8, Y2). If they are not continuous, the coordinates (X3, Y2) of the dot are obtained. Then, it is assumed that these dots are recognized as new vertical ruled lines, the respective vertical ruled line identification numbers are given, and the vertical ruled line identification number and the coordinates (X
7, X8, Y2) and (X3, Y2) are stored. However,
If you recognize the vertical ruled line in the next scan,
If the leftmost X coordinate Xvl and the rightmost X coordinate Xvr and X7 and X8 have a relationship of Xvr≥X7 and Xvl≤X8, a new vertical ruled line identification number is not given and Then, Xvl, Xvr, and Y1 of the vertical ridges recognized in the above are updated. However, if Xhl <X7, Xhl is not updated.
If Xvr> X8, Xvr is not updated.

【0016】以上に説明したドットパターン格納メモリ
3の走査、ドットの値の変更、認識した水平けい線およ
び垂直けい線の識別番号のけい線記憶手段6への格納、
始点と終点の座標のけい線記憶手段6への格納は、けい
線認識手段4が行う。なお、ドットパターン格納メモリ
3の走査は、上の例では、水平けい線認識のための走査
と垂直けい線認識のための走査とを別としたが、これら
を1回にまとめて走査することも可能である。
Scanning the dot pattern storage memory 3 described above, changing the dot value, and storing the recognized identification numbers of the horizontal and vertical lines in the line storage means 6.
The line recognition means 4 stores the coordinates of the start point and the end point in the line storage means 6. In the above example, the scanning of the dot pattern storage memory 3 is divided into the scanning for recognizing the horizontal lane markings and the scanning for recognizing the vertical lane markings. However, these scans should be performed at once. Is also possible.

【0017】水平けい線および垂直けい線を認識するた
めの走査がすべて終了した時点で、けい線記憶手段6に
はドットパターン格納メモリ3から認識した水平けい線
および垂直けい線の識別番号と始点と終点の座標が格納
されている。
At the time when all the scans for recognizing the horizontal and vertical lines have been completed, the identification numbers and the starting points of the horizontal and vertical lines recognized from the dot pattern storage memory 3 are stored in the line storage means 6. And the coordinates of the end point are stored.

【0018】次に、用紙のイメージをスキャナで2回以
上に分けて読み取る場合に、1回分の読み取り範囲に収
まらないけい線の識別番号を記憶するけい線識別番号記
憶手段5の動作について説明する。けい線認識手段4に
よる1回分の読み取り範囲に対する水平けい線と垂直け
い線の認識が終わると、けい線識別番号記憶手段5は、
ドットパターン格納メモリ3の最も下のX軸方向の1列
分のドットパターンを格納する。さらにこの1列を走査
して、“2”または“4”の値を持つドットの連なりを
探す。見つかった連なりは、既に水平けい線として認識
され、水平けい線識別番号が各連なりに対応しているの
で、けい線識別番号記憶手段5はこれらの連なりと水平
けい線別番号との対応も格納する。そしてさらに、上記
の1列を走査して“3”または“4”の値を持つドット
の連なりを探す。見つかった連なりは、既に垂直けい線
として認識され、垂直けい線識別番号が各連なりに対応
しているので、けい線識別番号記憶手段5はこれらの連
なりと垂直けい線識別番号との対応も格納する。図5に
けい線識別番号記憶手段5が扱うデータ構造の一例を示
す。ドットパターン格納メモリ51にはドットパターン
格納メモリ3の最も下のX軸方向の1列分のドットパタ
ーンを格納する。水平けい線を構成するドットパターン
の格納メモリ52と垂直けい線を構成するドットパター
ンの格納メモリ53には、上記の1列を走査して見つか
った連なりあるいはドットあるいはドットが連続してい
る場合はそのひとまとまりの開始位置のX座標、終了位
置のX座標、対応するけい線識別番号を格納する。
Next, when the image of the paper is read by the scanner in two or more times, the operation of the identification line number storage means 5 for storing the identification numbers of the identification lines which do not fall within the reading range for one reading will be described. . When the recognition of the horizontal and vertical lines with respect to one reading range by the line recognition means 4 is completed, the line identification number storage means 5
The dot pattern storage memory 3 stores the dot pattern for one column in the lowermost X-axis direction. Further, this one column is scanned to search for a series of dots having a value of "2" or "4". The found sequences are already recognized as horizontal lanes, and the horizontal lane identification numbers correspond to the respective lanes. Therefore, the lane identification number storage means 5 also stores the correspondence between these sequences and the individual horizontal lane numbers. To do. Further, the above-mentioned one column is scanned to search for a series of dots having a value of "3" or "4". The found sequences are already recognized as vertical lanes and the vertical lane identification numbers correspond to the respective lanes, so the lane identification number storage means 5 also stores the correspondence between these lanes and the vertical lane identification numbers. To do. FIG. 5 shows an example of a data structure handled by the line identification number storage means 5. The dot pattern storage memory 51 stores the dot pattern for one column in the lowermost X-axis direction of the dot pattern storage memory 3. In the dot pattern storage memory 52 that forms the horizontal ruled lines and the dot pattern storage memory 53 that forms the vertical ruled lines, in the case where the series or dots or dots found by scanning one row described above are The X coordinate of the start position, the X coordinate of the end position, and the corresponding line identification number are stored.

【0019】けい線識別番号記憶手段5が格納するこれ
らの情報は、けい線認識手段4が次回の読み取り範囲の
最も上のドットパターンのX軸方向の列を走査して水平
けい線と垂直けい線を認識する際に参照される。次回の
読み取り範囲の最も上のドットパターンをX軸方向に走
査し、“2”または“4”の値を持つドットの連なりが
見つかると、既述したようにこの連なりを新たな水平け
い線として認識するが、けい線識別番号記憶手段5の水
平けい線を構成するドットパターンの連なり格納メモリ
52の中に、見つかった連なりの開始点X座標Xhlと終
了点X座標Xhrに対して、Xhr′≧XhlかつXhl′≦X
hrなる関係にあるXhl′、Xhr′を持つ連なりが見つか
った場合は、新たな水平けい線識別番号は付与せず、対
応する認識済みの水平けい線のXhl、Xhr、Yn を更新
する。読み取り範囲の最も上のドットパターンをX軸方
向に走査して垂直けい線を認識する時も同様の処理を行
う。
These pieces of information stored in the grid line identification number storage means 5 are scanned by the grid line recognition means 4 in the X-axis direction row of the uppermost dot pattern in the next reading range and the horizontal grid line and the vertical grid line. Referenced when recognizing a line. The next time the uppermost dot pattern in the reading range is scanned in the X-axis direction, and when a series of dots with a value of "2" or "4" is found, this series is used as a new horizontal ruled line as described above. Although it is recognized, Xhr ′ for the start point X-coordinate Xhl and end point X-coordinate Xhr found in the concatenation storage memory 52 of the dot patterns forming the horizontal lanes of the lane line identification number storage means 5. ≧ Xhl and Xhl ′ ≦ X
If a sequence having Xhl 'and Xhr' in the relation of hr is found, a new horizontal lane identification number is not given and Xhl, Xhr, and Yn of the corresponding recognized horizontal lanes are updated. The same processing is performed when the dot pattern at the top of the reading range is scanned in the X-axis direction to recognize a vertical ruled line.

【0020】次に、けい線記憶手段6に格納されている
水平けい線および垂直けい線の始点と終点の座標から、
ワードプロセッサで設定されている書式に応じて、ワー
ドプロセッサのけい線情報に変換するけい線変換手段7
の動作について説明する。スキャナ1による用紙のイメ
ージの読み取りと、けい線認識手段4によるけい線認識
処理を1回以上交互に繰り返し、用紙上のすべてのけい
線の認識を終了した時点で、けい線記憶手段6には認識
した全ての水平けい線および垂直けい線の始点と終点の
座標が格納されている。この時点でワードプロセッサと
してある書式Fが設定されている。図6に書式Fで設定
されているパラメータを示す。図において、Dlは印刷
時の左余白、Dcは印刷時の文字間隔、Ncは1行の文
字数、Dtは印刷時の上余白、Drは印刷時の行間隔、
Nrは1ページの行数である。けい線変換手段7は、け
い線の始点および終点のX座標をその書式Fにおける桁
位置に、けい線の始点および終点のY座標をその書式F
における行位置に変換する。X座標の変換方法は、けい
線の始点あるいは終点のX座標をxとしてΔc=|x−
(Dl+(C−1/2)Dc)|,1≦C≦Ncにおい
てΔcが最小となるようなCが桁位置となる。Y座標の
変換方法は、けい線の始点あるいは終点のY座標をyと
してΔr=|y−(Dt+(R−1/2)Dr)|,1
≦R≦NrにおいてΔrが最小となるようなRが桁位置
となる。けい線変換手段7は、けい線記憶手段6に格納
されている1つのけい線の始点および終点の座標を、こ
の方法によって書式Fにおける行位置、桁位置に変換
し、2組の行位置と桁位置を得る。続いてけい線変換手
段7は、この2組の行位置と桁位置の間にけい線が引か
れるように、文書記憶手段8に格納されている文書情報
を変更する。けい線変換手段7は、けい線記憶手段6に
格納されているすべてのけい線についてこの処理を行
い、文書記憶手段8の文書情報を変更する。最後に、図
1に示した本例における各構成要素1〜12の動作を図
7のフローチャートに従って説明する。
Next, from the coordinates of the start and end points of the horizontal and vertical lines stored in the line storage means 6,
A line conversion means 7 for converting into line information of the word processor according to the format set in the word processor.
The operation of will be described. The scanning of the image of the paper by the scanner 1 and the processing for recognizing the lanes by the means for recognizing the lanes 4 are alternately repeated once or more, and when the recognition of all the lanes on the paper is completed, the memorizing means 6 is stored in the lane storage means 6. The coordinates of the start and end points of all the recognized horizontal and vertical lines are stored. At this point, a format F is set as a word processor. FIG. 6 shows the parameters set in the format F. In the figure, Dl is the left margin at the time of printing, Dc is the character spacing at the time of printing, Nc is the number of characters in one line, Dt is the upper margin at the time of printing, Dr is the line spacing at the time of printing,
Nr is the number of lines on one page. The rule converting means 7 sets the X coordinates of the starting point and the ending point of the rule to the digit position in the format F, and the Y coordinates of the starting point and the ending point of the rule in the format F.
Convert to the line position in. The conversion method of the X coordinate is Δc = | x−, where x is the X coordinate of the start point or the end point of the rule line.
(Dl + (C-1 / 2) Dc) |, 1 ≦ C ≦ Nc, where C is the digit position where Δc is the minimum. The conversion method of the Y coordinate is as follows: Δr = | y− (Dt + (R−1 / 2) Dr) |, 1 where y is the Y coordinate of the start point or end point of the rule line
R is the digit position such that Δr is minimum in ≦ R ≦ Nr. The rule converting means 7 converts the coordinates of the start point and the end point of one rule stored in the rule storing means 6 into a line position and a column position in the format F by this method, and converts them into two sets of line positions. Get the digit position. Then, the line conversion means 7 changes the document information stored in the document storage means 8 so that a line is drawn between the two sets of line position and column position. The rule converting means 7 performs this process for all the rule lines stored in the rule storing means 6 and changes the document information in the document storing means 8. Finally, the operation of each of the constituent elements 1 to 12 in this example shown in FIG. 1 will be described with reference to the flowchart in FIG.

【0021】71.まず、用紙送り手段2によって、ス
キャナ1が用紙の読み取りを始める位置まで用紙送りが
行われる。
71. First, the paper feeding unit 2 feeds the paper to a position where the scanner 1 starts reading the paper.

【0022】72.次にスキャナ1による用紙の読み取
りと用紙送り手段2による用紙送りが交互に行われる。
読み取った結果はドットパターンに変換後、ドットパタ
ーン格納メモリ3に格納される。
72. Next, the reading of the sheet by the scanner 1 and the sheet feeding by the sheet feeding means 2 are alternately performed.
The read result is converted into a dot pattern and then stored in the dot pattern storage memory 3.

【0023】73.用紙の読み取りと用紙送りはドット
パターン格納メモリ3がいっぱいになるまでくり返され
る。次に、けい線認識手段4により、ドットパターン格
納メモリ3に格納されたドットパターンから水平けい線
と垂直けい線が認識され、各けい線の開始点と終了点の
座標がけい線記憶手段6に格納される。
73. Paper reading and paper feeding are repeated until the dot pattern storage memory 3 becomes full. Next, the horizontal line and the vertical line are recognized from the dot pattern stored in the dot pattern storage memory 3 by the line recognition unit 4, and the coordinates of the start point and the end point of each line are stored in the line storage unit 6. Stored in.

【0024】74.次に用紙全体の読み取りが終わった
かどうかが調べられる。 75.終わっていない場合は、けい線識別番号記憶手段
5によって、1回分の読み取り範囲に収まらないけい線
の識別番号と、ドットパターン格納メモリ3の一部の内
容を記憶する。
74. Next, it is checked whether or not the entire sheet has been read. 75. If it is not finished, the identification number of the scanning line which does not fall within the reading range for one reading and a part of the contents of the dot pattern storage memory 3 are stored by the scanning line identification number storage means 5.

【0025】そして再び72でスキャナー読み取りを行
う。74で用紙全体の読み取りが終わっている場合は、
けい線変換手段7により、けい線記憶手段6に格納され
ている全てのけい線を、ワードプロセッサ上の書式に応
じたけい線情報に変換し、文書記憶手段8に格納されて
いる文書情報を変更する。この後は、オペレータの指示
に応じて、文書記憶手段8の内容を、表示装置9に表示
するか、プリンタ11により印刷するか、フロッピーデ
ィスクドライブ10によりフロッピーディスクに保存す
る。なお各構成要素の動作の開始、終了は全体制御部1
2が指示する。
Then, again at 72, the scanner reading is performed. If the entire sheet has been read at 74,
The line converting means 7 converts all the line stored in the line storing means 6 into the line information according to the format on the word processor, and changes the document information stored in the document storing means 8. To do. After that, the contents of the document storage means 8 are displayed on the display device 9, printed by the printer 11, or saved in a floppy disk by the floppy disk drive 10 in accordance with an instruction from the operator. The operation of each component starts and ends at the overall control unit 1
2 instruct.

【0026】[0026]

【発明の効果】以上説明したように、本発明によれば、
用紙に印刷もしくは手書きされた表から文書作成装置上
に同様の表を作成する場合において、オペレータによる
けい線の入力作業を排することができ、その実用的効果
は大きい。
As described above, according to the present invention,
When a similar table is created on the document creating apparatus from a table printed or handwritten on paper, the operator's input operation of the ruled line can be omitted, and its practical effect is great.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例の文書作成装置の構成を示す
ブロック図
FIG. 1 is a block diagram showing the configuration of a document creating apparatus according to an embodiment of the present invention.

【図2】同実施例中のドットパターン格納メモリのドッ
トパターン格納例を示す図
FIG. 2 is a diagram showing a dot pattern storage example of a dot pattern storage memory in the embodiment.

【図3】同実施例中のドットパターン格納メモリのドッ
トパターン格納例を示す図
FIG. 3 is a diagram showing a dot pattern storage example of a dot pattern storage memory in the embodiment.

【図4】同実施例中のドットパターン格納メモリのドッ
トパターン格納例を示す図
FIG. 4 is a diagram showing an example of dot pattern storage in a dot pattern storage memory in the embodiment.

【図5】同実施例中のけい線識別番号記憶手段が扱うデ
ータ構造の一例を示す図
FIG. 5 is a diagram showing an example of a data structure handled by the grid line identification number storage means in the embodiment.

【図6】書式で設定されるパラメータを示す図FIG. 6 is a diagram showing parameters set in a format.

【図7】同実施例における各構成要素の動作を示すフロ
ーチャート
FIG. 7 is a flowchart showing the operation of each component in the embodiment.

【図8】従来の文書作成装置の構成を示すブロック図FIG. 8 is a block diagram showing the configuration of a conventional document creation device.

【図9】従来の文書作成装置上で作表する場合の作業フ
ローチャート
FIG. 9 is a work flow chart when tabulating on a conventional document creation device.

【符号の説明】[Explanation of symbols]

1 スキャナ 3 ドットパターン格納メモリ 4 けい線認識手段 5 けい線識別番号記憶手段 6 けい線記憶手段 7 けい線変換手段 8 文書記憶手段 DESCRIPTION OF SYMBOLS 1 scanner 3 dot pattern storage memory 4 grid line recognition means 5 grid line identification number storage means 6 grid line storage means 7 grid line conversion means 8 document storage means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】用紙上のけい線のイメージを読み取ってド
ットパターンに変換するスキャナと、前記スキャナで読
み取ったドットパターンを格納するドットパターン格納
メモリと、前記ドットパターン格納メモリに格納されて
いるドットパターンの連続性からけい線を認識し、用紙
上のけい線の始点と終点の座標を求めるけい線認識手段
とを備えたことを特徴とする文書作成装置。
1. A scanner for reading an image of a ruled line on a sheet and converting it into a dot pattern, a dot pattern storage memory for storing the dot pattern read by the scanner, and dots stored in the dot pattern storage memory. A document production apparatus comprising: a line recognition means for recognizing a line from the continuity of a pattern and obtaining coordinates of a start point and an end point of the line on a sheet.
【請求項2】用紙上のけい線のイメージをスキャナで2
回以上に分けて読み取る場合に、けい線認識手段により
1回分の読み取り範囲のけい線を認識した結果、読み取
り範囲の外に連続していると判断されるけい線に識別番
号を付与し記憶するけい線識別番号記憶手段を備えたこ
とを特徴とする請求項1記載の文書作成装置。
2. A scanner scans an image of a ruled line on a sheet of paper.
In the case of reading in multiple times or more, as a result of recognizing the line in the reading range for one time by the line recognizing means, an identification number is given to the line determined to be continuous outside the reading range and stored. 2. The document creating apparatus according to claim 1, further comprising a line identification number storage means.
【請求項3】けい線認識手段により認識されたけい線の
識別番号と用紙上のけい線の始点と終点の座標を格納す
るけい線記憶手段と、前記けい線記憶手段に格納された
けい線の始点と終点の座標から、ワードプロセッサ上の
書式における行位置、桁位置に変換するけい線変換手段
とを備えたことを特徴とする請求項1または請求項2記
載の文書作成装置。
3. A line storage means for storing the identification number of the line recognized by the line recognition means and the coordinates of the start point and the end point of the line on the paper, and the line stored in the line storage means. 3. A document creating apparatus according to claim 1, further comprising: a line converting means for converting the coordinates of the starting point and the ending point of the line into a line position and a column position in the format on the word processor.
JP5129117A 1993-05-31 1993-05-31 Document generation device Pending JPH06337859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5129117A JPH06337859A (en) 1993-05-31 1993-05-31 Document generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5129117A JPH06337859A (en) 1993-05-31 1993-05-31 Document generation device

Publications (1)

Publication Number Publication Date
JPH06337859A true JPH06337859A (en) 1994-12-06

Family

ID=15001496

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5129117A Pending JPH06337859A (en) 1993-05-31 1993-05-31 Document generation device

Country Status (1)

Country Link
JP (1) JPH06337859A (en)

Similar Documents

Publication Publication Date Title
EP0831418B1 (en) Method and apparatus for character recognition
US6208744B1 (en) Document image processor and method for setting a document format conforming to a document image
JP2007042126A (en) Method and apparatus for producing hybrid data structure for displaying raster image
JPH03122773A (en) Image forming device
EP0488128B1 (en) Printing apparatus
JPH06337859A (en) Document generation device
JP3102979B2 (en) Document information processing device with ruled line conversion function
JPH01128843A (en) document processing device
JPH06231308A (en) Method and device for processing handwritten document
JP2662238B2 (en) Creating dictionary for character recognition
JP2937607B2 (en) Layout creation device
JP2893781B2 (en) Character recognition device
JP2762476B2 (en) Copy-writing device
JPH04342089A (en) Character input procedding method
JPH05341761A (en) Character generator
JPH07146914A (en) Musical score recognition device
JPH058670U (en) Optical character reader
JPS6326789A (en) Character recognizing device
JPH08293033A (en) Information processing device
JPS6292080A (en) Character pattern recognition correction device
JPH0635190B2 (en) Character printing method
JPH05174114A (en) Information processor and character recognizing device using the same
JPH06195330A (en) Document editing device having format information recognition function
JPH0460881A (en) image generation device
JPH06118915A (en) Character display