JPH0831092B2 - Document processing device - Google Patents

Document processing device

Info

Publication number
JPH0831092B2
JPH0831092B2 JP61165997A JP16599786A JPH0831092B2 JP H0831092 B2 JPH0831092 B2 JP H0831092B2 JP 61165997 A JP61165997 A JP 61165997A JP 16599786 A JP16599786 A JP 16599786A JP H0831092 B2 JPH0831092 B2 JP H0831092B2
Authority
JP
Japan
Prior art keywords
ruled line
document
cell
character data
data
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.)
Expired - Fee Related
Application number
JP61165997A
Other languages
Japanese (ja)
Other versions
JPS6321171A (en
Inventor
高裕 加藤
正基 浜田
洋 高倉
ゆかり 谷口
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP61165997A priority Critical patent/JPH0831092B2/en
Priority to US07/072,634 priority patent/US4953108A/en
Publication of JPS6321171A publication Critical patent/JPS6321171A/en
Publication of JPH0831092B2 publication Critical patent/JPH0831092B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Document Processing Apparatus (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、罫線を罫線文字データで表現した表を含む
文書情報を、表の構成を保って罫線をベクトル罫線デー
タで表現する文書情報に変換する文書処理方法に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention converts document information including a table in which ruled lines are expressed by ruled line character data into document information in which ruled lines are expressed by vector ruled line data while maintaining the structure of the table. The present invention relates to a document processing method for conversion.

[従来の技術] 従来、ワードプロセツサといわれる簡易文書処理装置
で文書を作成する場合、文字は固定ピツチで見た目にも
美しさを欠けるものであったが、その操作は比較的簡単
であった。一方、本発明でいうところの組版機能を有す
る文書処理装置は、文字ピツチを変えたり、文字の大き
さを文字毎に変えたりすることができるので、見た目に
美しい文書を出力することができるが、その操作は比較
的難しいものであった。そこで、ワードプロセツサで入
力した文書を本発明でいうところの文書処理装置で組版
処理をして出力するという必要があった。
[Prior Art] Conventionally, when a document is created by a simple document processing device called a word processor, the characters are aesthetically pleasing due to the fixed pitch, but the operation is relatively easy. . On the other hand, the document processing apparatus having the typesetting function as referred to in the present invention can change the character pitch and the size of the character for each character, so that a visually beautiful document can be output. , Its operation was relatively difficult. Therefore, it is necessary to perform the typesetting process on the document input by the word processor by the document processing device according to the present invention and output it.

[発明が解決しようとする問題点] しかしながら、ワードプロセツサで作成した文書に表
がある場合、本来この文書データの体裁は壊すべきもの
ではないのであるが、ワードプロセツサで作成した文書
を従来の文書処理装置に読み込んだ場合、この文書中に
表があっても、表が表として扱われず、表の欄内の文書
データの編集を行うと、表の体裁が壊れてしまうという
問題点があった。
[Problems to be Solved by the Invention] However, when a document created by a word processor has a table, the appearance of this document data should not be destroyed, but a document created by a word processor is not Even if there is a table in this document when it is read into this document processing device, there is a problem that the table is not treated as a table and the format of the table is broken if the document data in the table column is edited. there were.

[問題点を解決する為の手段] 上記問題点を解決するために、本発明は、文字データ
及び罫線文字データを含む文書情報を入力する文書情報
入力手段と、前記文書情報入力手段により入力された文
書情報から罫線文字データを検出する罫線文字データ検
出手段と、前記罫線文字データ検出手段により連続した
位置で検出される罫線文字データをベクトル罫線データ
に変換する罫線データ変換手段と、前記罫線文字データ
検出手段により検出された罫線文字データで囲まれる矩
形領域を検出する矩形領域検出手段と、前記矩形領域検
出手段により検出された矩形領域の位置情報を、文字列
を組版する一つの枠として前記検出されたベクトル罫線
データとともに登録する登録手段とを有することを特徴
とする文書処理装置を提供する。
[Means for Solving Problems] In order to solve the above problems, the present invention provides a document information input unit for inputting document information including character data and ruled line character data, and the document information input unit. Ruled line character data detection means for detecting ruled line character data from the document information, ruled line data conversion means for converting the ruled line character data detected at consecutive positions by the ruled line character data detection means into vector ruled line data, and the ruled line characters The rectangular area detection means for detecting a rectangular area surrounded by the ruled line character data detected by the data detection means, and the position information of the rectangular area detected by the rectangular area detection means are used as one frame for typesetting a character string. There is provided a document processing device having a registration means for registering together with the detected vector ruled line data.

[作用] 認識手段によって認識された表の欄を登録して、この
欄単位に編集をするので、他の欄の文書データを乱した
り、表の体裁を壊したりすることなく文書処理を行うこ
とができる。
[Operation] Since the columns of the table recognized by the recognition means are registered and edited in units of this column, the document processing is performed without disturbing the document data of other columns or destroying the appearance of the table. be able to.

例えば、第1欄として第1セルをポインテイングデバ
イス9で指示をすると、この第1セルに含まれる文字列
がセルテーブルCELL内の文字列へのポインタを介して得
られる。
For example, when the pointing device 9 is used to designate the first cell as the first column, the character string included in this first cell is obtained via the pointer to the character string in the cell table CELL.

この文字列に対して編集を行うのは、通常の組版処理
と同様に行い得る。しかしながら、この場合の処理によ
って、この文字列がセルテブルCELL内の左上x座標、左
上y座標、右下x座標、右下y座標で規定される欄の外
側には影響しないようにする。
Editing of this character string can be performed in the same manner as normal typesetting processing. However, the processing in this case prevents the character string from affecting the outside of the field defined by the upper left x coordinate, the upper left y coordinate, the lower right x coordinate, and the lower right y coordinate in the cell table CELL.

[実施例] 以下、図面に従って本発明に好適な一実施例を詳細に
説明する。
Embodiment An embodiment suitable for the present invention will be described in detail below with reference to the drawings.

第1図は本発明に係る一実施例の文書処理装置のシス
テムブロツク図である。
FIG. 1 is a system block diagram of a document processing apparatus according to an embodiment of the present invention.

図において1はラスタスキヤン表示方式で使用される
CRT表示部、2は一画面分の表示パターン情報を記憶す
るビデオRAM(VRAM)、3はCRAM2に対するパターン情報
の書き込み、CRTへの読み出しの制御をする表示制御部
である。5は第4図のフローチヤートに従った制御プロ
グラムを格納したプログラムエリアPAや、文書データを
記憶エリアTXT、表に関するデータを格納するテーブル
エリア、CTB,RTB,CELLをを有する主メモリで、4はマイ
クロプロセツサ(MPU)で、この装置の主制御を行う。M
PU4には文字データ等の入力を行うキードード8、及びC
RT上の位置の指定等を行うポインテイングデバイス(P
D)9が接続されている。6はハードデイスク装置でこ
の中に文書フアイルや文字フオントが格納される。10は
作成された文書を出力するプリンタで、11はワードプロ
セツサで作成された文書フロツピーを入力するフロツピ
ーデイスク装置である。これらの各構成ブロツクはI/O
バス7で接続されている。
In the figure, 1 is used in the raster scan display method.
A CRT display unit, 2 is a video RAM (VRAM) that stores display pattern information for one screen, and 3 is a display control unit that controls writing of pattern information to the CRAM 2 and reading of the CRT. Reference numeral 5 is a main memory having a program area PA storing a control program according to the flow chart of FIG. 4, a document data storage area TXT, a table area storing table data, CTB, RTB, and CELL. Is a microprocessor (MPU), which performs the main control of this device. M
PU4 is a keypad 8 for inputting character data, and C
Pointing device (P
D) 9 is connected. A hard disk device 6 stores document files and character fonts therein. Reference numeral 10 is a printer for outputting the created document, and 11 is a floppy disk device for inputting the document floppy created by the word processor. Each of these component blocks is an I / O.
It is connected by bus 7.

以下、ワードプロセツサで作成された第9図のような
表のある文書を扱う場合を説明する。ワードプロセツサ
で入力された文書は1頁づつフロツピーデイスク装置11
より主メモリ5の文書記憶エリアTXTに読み込まれる。
このとき、第9図のような文章の罫線部分は一般には第
2図に示したようなJISC6226の罫線素片コードによって
表わされている。第3図は第9図の罫線部分を対応する
罫線素片コードの種類がわかるように分解したものであ
る。
The case of handling a document having a table as shown in FIG. 9 created by a word processor will be described below. Document input by word processor is page by page floppy disk device 11
It is read into the document storage area TXT of the main memory 5.
At this time, the ruled line portion of the sentence as shown in FIG. 9 is generally represented by the JIS C6226 ruled line segment code as shown in FIG. FIG. 3 is an exploded view of the ruled line portion of FIG. 9 so that the type of the corresponding ruled line segment code can be understood.

次に第4図に従って表の部分に関する処理を説明す
る。
Next, the processing relating to the table portion will be described with reference to FIG.

まずステツプ6−1で表の枠の検索を行う。これは表
の部分を判別する最初の処理で、表の一番外の枠を検索
する。具体的には頁の先頭より順に のコードを頁の最後まで検索し見つからなかった場合に
は、その頁には表はないものとして第4図の処理は終了
する。
First, in step 6-1 the table frame is searched. This is the first process to determine the table part, and the outermost frame of the table is searched. Specifically, from the top of the page If the code is searched to the end of the page and is not found, it is determined that there is no table on that page, and the processing of FIG. 4 ends.

見つかった場合は(第3図では5−1)そこから順に1
文字づつチエツクしていく。
If found (5-1 in Figure 3), 1 from there
Check character by character.

許されるコードは のみで、それ以外のコードがきた場合は現在見ている部
分は表ではないとして、その部分から再度 の検索を開始する。
The allowed code is If only other code comes in, the part you are currently looking at is not a table Start searching for.

のコードが見つかったときは(第3図では5−2)そこ
から頁の下方向に順に1文字づつチエツクしていく。許
されるコードは でそれ以外のコードがきた場合は の部分からステツプ6−1の検索を再開始する。以降同
様にして第3図の5−3.5−4を経て5−1に戻るチエ
ツクを行う。このチエツクが終了するとチエツクした領
域に囲まれる部分は表の枠の候補として認識され、ステ
ツプ6−2の処理に移る。
When the code is found (5-2 in FIG. 3), the characters are checked one by one downward from the page. The allowed code is If other code comes in The search of step 6-1 is restarted from the part. In the same manner, the check to return to 5-1 through 5-3.5-4 in FIG. 3 is performed. When this check ends, the portion surrounded by the checked area is recognized as a table frame candidate, and the process proceeds to step 6-2.

ステツプ6−2では表の枠の候補に含まれる縦の罫線
を主メモリ5中の縦罫線テーブルCTBに登録する。この
縦罫線テーブルLTBの詳細を第5図に示す。登録の方法
は原則としてつながった縦の罫線を1本と考えるが、横
の罫線と交わっている場合はそこで切って上下を別の罫
線と考え登録する。第3図でいえば、5−aから5−h
の9本が登録されることになる。具体的には最初に のあったところから頁の下方向に順に1文字づつチエツ
クしていき、縦の罫線を含む罫線素片コードがあれば、
それをテーブルに登録する。このとき があったときは、そこで縦罫線は終了しているため、x
座標と、上端,下端のy座標も登録するが、 の場合は未だ罫線が続いている場合があるため、下端の
y座標はここでは登録しない。
In step 6-2, the vertical ruled lines included in the table frame candidates are registered in the vertical ruled line table CTB in the main memory 5. The details of the vertical ruled line table LTB are shown in FIG. As a rule of registration, the connected vertical ruled line is considered as one line, but if it intersects with the horizontal ruled line, cut it there and consider it as another ruled line and register it. In FIG. 3, 5-a to 5-h
Will be registered. Specifically, first If there is a ruled line segment code including vertical ruled lines, check one character at a time from the point where
Register it in the table. At this time If there is, the vertical ruled line ends there, so x
The coordinates and the y coordinates of the upper and lower edges are also registered, In this case, since the ruled line may still be present, the y coordinate of the lower end is not registered here.

の場合は1本の縦罫線が登録され、さらに下端の未だ定
まらない罫線が登録されることになる。)下端の定まら
ない罫線が登録されたときは、文字が である間は順にチエツクを進め、それ以外のコードがき
たら下端の登録を行う。
In this case, one vertical ruled line is registered, and a ruled line at the lower end that has not yet been determined is registered. ) When an undefined ruled line at the bottom is registered, the characters During the period, the check progresses in sequence, and when the other code comes, the lower end is registered.

の場合はさらに再度下端の定まらない罫線が登録され
る。以上のようにしてチエツクを行いながら縦罫線テー
ブルに罫線を登録していき、 の列まできたらこの列の処理を終了する。以下同様にし
の右の列のチエツクと登録を行い、順に の列まで同じ処理を行ってステツプ6−2の縦罫線の処
理を終了する。
In the case of, the undefined ruled line at the lower end is registered again. Register the ruled lines in the vertical ruled line table while checking as described above, When the column of is reached, the processing of this column is ended. And so on Check and register in the column on the right of The same processing is performed up to the column of, and the processing of the vertical ruled line in step 6-2 is completed.

ステツプ6−3では同様の処理を横罫線に対して行
い、主メモリ5中の横罫線テーブルRTBに登録する。
In step 6-3, the same processing is performed on the horizontal ruled line and it is registered in the horizontal ruled line table RTB in the main memory 5.

以上ステツプ6−2,6−3の処理で罫線テーブル内の
罫線の属性はここでは全て表罫であるが、当然第2図以
外の罫線素片コードが使用されていれば、それに従った
罫線の属性が登録されることになる。
The attributes of the ruled lines in the ruled line table are all table rules here in the processing of steps 6-2 and 6-3, but if ruled line segment codes other than those shown in FIG. Will be registered.

ステツプ6−4ではこのようにして登録された罫線テ
ーブルCTB,RTBをもとに表の枠内の罫線で区切られる領
域が全て矩形であるかチエツクを行う。最初に縦罫線テ
ーブルCTBより順に縦の罫線を1本づつもってきて他の
縦罫線とのつながりを調べつながっているものはここで
は1本と考えるようにして縦罫線の両端を見つける。次
にこの両方の端点についてそれぞれその端点を端点とす
る横の罫線が2本づつあるか否かを横罫線テーブルRTB
で調べる。2本ない場合はそれが第3図でいえば5−1,
5−2,5−3,5−4の点であるかを調べ、そうでなければ
矩形でない領域があるので、この表の枠の候補に関して
はここでは表ではないとして第6図の処理を終了する。
同様にして縦罫線テーブルCTBに登録されている全ての
罫線についてチエツクを行い、終了したら次に横罫線テ
ーブルRTBより順に罫線を1本づつもってきて同様のチ
エツクを行う。以上のチエツクが終了すれば、この表の
枠内の罫線で区切られる部分は全て矩形と考えることが
できる。
In step 6-4, based on the ruled line tables CTB and RTB registered in this way, it is checked whether the areas delimited by the ruled lines in the frame of the table are all rectangular. First, one vertical ruled line is obtained in order from the vertical ruled line table CTB, and the connection with other vertical ruled lines is examined. Here, the one that is connected is considered to be one here, and both ends of the vertical ruled line are found. Next, for each of these both endpoints, the horizontal ruled line table RTB is checked to determine whether or not there are two horizontal ruled lines each having the endpoint as the endpoint.
Find out with. If there are not two, it is 5-1 in FIG.
Check if it is a point of 5-2, 5-3, 5-4, and if it is not, there is a non-rectangular area. Therefore, regarding the frame candidate of this table, assume that it is not a table here, and the processing of FIG. 6 is performed. finish.
Similarly, all the ruled lines registered in the vertical ruled line table CTB are checked, and when finished, the ruled lines are sequentially picked up one by one from the horizontal ruled line table RTB and the same check is performed. When the above checks are completed, all the parts delimited by the ruled lines in the frame of this table can be considered as rectangles.

最後にステツプ6−5のセルデータの登録を行う。こ
の処理は横罫線テーブルRTBより順に罫線を1本づつも
って来て、その両端のそれぞれについてそこより下に伸
びる縦罫線がないか縦罫線テーブルCTB内を検索し、な
ければその接点につながる横罫線があるはずであり、そ
れを横罫線テーブルRTBより検索し、もとの罫線と合わ
せて1本と考え、再度端点より下に伸びる縦罫線を検索
する。縦罫線があった場合はそこがセルの端となる。こ
のようにしてセルの左右の端を定め、次に左右の端のど
ちらか1方の縦罫線をもとにセルの下端を定める処理を
行う。これはその縦罫線の下端と端点とし、もとの横罫
線方向に伸びる横罫線を横罫線テーブルRTBより検索
し、あればその位置がそのセルの下端である。なければ
その端点を上端の点とする縦罫線があるばずであり、そ
れを縦罫線テーブルCTBより検索し、その下端の点に関
し、同様に横罫線テーブルRTBを検索する。以上の繰り
返しによりセルの下端が定められる。
Finally, the cell data of step 6-5 is registered. This process fetches one ruled line in order from the horizontal ruled line table RTB, searches the vertical ruled line table CTB for the vertical ruled lines that extend below it at both ends, and if not, the horizontal ruled line that connects to the contact There should be a line, and it is searched from the horizontal ruled line table RTB, it is considered as one line including the original ruled line, and the vertical ruled line extending below the end point is searched again. If there is a vertical ruled line, it becomes the edge of the cell. In this way, the left and right ends of the cell are determined, and then the lower end of the cell is determined based on either one of the left and right vertical ruled lines. This is the lower end and the end point of the vertical ruled line, the horizontal ruled line extending in the original horizontal ruled line direction is searched from the horizontal ruled line table RTB, and if there is, the position is the lower end of the cell. If not, there is a vertical ruled line having the end point as the upper end point, which is searched from the vertical ruled line table CTB, and the horizontal ruled line table RTB is similarly searched for the lower end point. By repeating the above, the lower end of the cell is determined.

セルの範囲が決定したらそれを主メモリ5中のセルテ
ーブルCELLの左上x座標,y座標,右下x座標,y座標に登
録し、さらにその範囲をもとにして、そのセル内に含ま
れる文字列を決定し、その文字列を別途記憶するととも
に、その文字列へのポインタをセルテーブルCELLに登録
する。セルテーブルCELLの詳細を第5図(b)に示す。
以上の処理を横罫線テーブルRTB内の5−4より5−3
の部分を構成する横罫線以外に対して行うことにより、
この表の全てのセルが第5図(b)の如くセルテーブル
CELLに登録され、そのセル内に含まれる文字列も決定さ
れる。
When the cell range is determined, it is registered in the upper left x-coordinate, y-coordinate, lower right x-coordinate, y-coordinate of the cell table CELL in the main memory 5, and further included in the cell based on the range. A character string is determined, the character string is stored separately, and a pointer to the character string is registered in the cell table CELL. Details of the cell table CELL are shown in FIG. 5 (b).
The above processing is performed from the horizontal ruled line table RTB 5-4 to 5-3.
By performing for the lines other than the horizontal ruled lines that make up the
All cells in this table are cell tables as shown in Fig. 5 (b).
It is registered in CELL and the character string contained in the cell is also determined.

以上で第4図の処理が終了し、第9図の文書の表の部
分は表として認識され、その罫線に関する情報とセルに
関する情報は全て第5図のテーブルCTB,RTB,CELLに登録
された。
With the above, the processing of FIG. 4 is completed, the table portion of the document of FIG. 9 is recognized as a table, and the information about the ruled lines and the information about the cells are all registered in the tables CTB, RTB, and CELL of FIG. .

従って、この文書は以降本文の部分は表の枠の部分を
禁止領域として字詰め組版を行い、表の部分は第5図の
テーブルCTB,RTBより罫線を作成し、各セル内の文字は
セルテーブルCELLの情報をもとにセル内での字詰め組版
を行えば、第6図に示すような表の体裁が保たれたまま
組版された状態で出力されることになる。
Therefore, in this document, the text part is typographically formatted with the frame part of the table as the prohibited area, and the table part is created with ruled lines from the tables CTB and RTB in FIG. 5, and the characters in each cell are the cell table. When the typesetting in the cell is performed based on the information of CELL, it is output in the typeset state while the format of the table as shown in FIG. 6 is maintained.

このようにして、第9図のような表の外枠が矩形であ
り、内部の罫線で区切られた領域も全て矩形であるよう
に作成された文書はそのままで利用できることになる。
In this way, a document created such that the outer frame of the table as shown in FIG. 9 is rectangular and all the areas delimited by the inner ruled lines are also rectangular can be used as it is.

次に第7図に示すような不完全な形で作成された表を
扱う場合を説明する。このような文書は第4図の処理に
おいてステツプ6−4の罫線で構成される領域が全て矩
形であることのチエツクを行っているとき、完全な表で
はないことが判別できる。このような場合は、その時点
で文書のその頁をワードプロセツサでの表示と同様に固
定ピツチでCRT1上に表示する。そして操作者はポインテ
イングデバイス9を操作してCRT1上で罫線の追加や削除
を行い完全な表を作成するようにする。具体的には罫線
の追加の場合は、追加する罫線の両端の指示を行い、そ
の指示がなされたら装置はまずそれらの座標から縦罫線
の追加か横罫線か判断する。縦罫線の追加であれば縦罫
線テーブルCTB上からそれとつながる縦罫線を全てとり
出してきて1本とし次にその罫線と交わる横罫線を横罫
線テーブルRTBより検索し、それにより作成した縦罫線
を分割して縦罫線テーブルCTBに登録する。横罫線の追
加も同様に行う。罫線の削除は削除する罫線上の点を指
示し、装置はその座標から指示された罫線を罫線テーブ
ルCTB,RTBより検索し削除する。削除されたのが縦罫線
であれば横罫線テーブルRTBよりその縦罫線と交わって
いた横罫線を全て取り出し、つながっているものは一本
化したのち、再度縦罫線テーブルCTBを検索して分割す
る処理を行いテーブルに登録しなおす。以上のようにし
て罫線の追加削除が終了したら再度第4図のステツプ6
−4より処理を行えば第7図のような表を持つ文書も第
6図のようにして出力できるようになる。
Next, a case of handling a table created in an incomplete form as shown in FIG. 7 will be described. It is possible to determine that such a document is not a complete table when the process of FIG. 4 checks that the area formed by the ruled lines in step 6-4 is all rectangular. In such a case, that page of the document is then displayed on the CRT1 with a fixed pitch, similar to the display on a word processor. Then, the operator operates the pointing device 9 to add or delete ruled lines on the CRT 1 to create a complete table. Specifically, in the case of adding a ruled line, both ends of the ruled line to be added are instructed, and when the instruction is given, the device first determines from the coordinates thereof whether the vertical ruled line is added or the horizontal ruled line is added. If vertical ruled lines are added, all the vertical ruled lines connected to it are taken out from the vertical ruled line table CTB, set as one, and the horizontal ruled line that intersects the ruled line is searched from the horizontal ruled line table RTB, and the created vertical ruled line is created. Divide and register in vertical ruled line table CTB. Add horizontal ruled lines in the same manner. When deleting a ruled line, the point on the ruled line to be deleted is designated, and the device searches the ruled line table CTB, RTB for the designated ruled line from the coordinate and deletes it. If the deleted vertical ruled line is, all horizontal ruled lines that intersect with the vertical ruled line are fetched from the horizontal ruled line table RTB, the connected ones are unified, and the vertical ruled line table CTB is searched again and divided. Perform processing and register again in the table. When the addition and deletion of ruled lines are completed as described above, step 6 in FIG.
By performing the processing from -4, a document having a table as shown in FIG. 7 can be output as shown in FIG.

更に第8図のような罫線を持たない表を持つ文書を扱
う場合を説明する。
Further, a case of handling a document having a table without ruled lines as shown in FIG. 8 will be described.

このような文書は第4図の処理ではステツプ6−1の
処理で表はないものとして処理されてしまう。
In the process of FIG. 4, such a document is processed as a table having no table in the process of step 6-1.

従ってこの場合は操作者はこの頁をワードプロセツサ
と同様に表示するように指示を行い、ポインテイングデ
バイス9により表の枠をその左上と右下の点を指示する
ことにより指定する。以下は第7図の場合と同様に罫線
の追加削除の処理を行えば良い。このようにすれば第8
図のように罫線を持たない表も第6図のようにして出力
できる。
Therefore, in this case, the operator gives an instruction to display this page similarly to the word processor, and designates the frame of the table by the pointing device 9 by designating the upper left and lower right points thereof. In the following, the process of adding and deleting ruled lines may be performed as in the case of FIG. In this way, the eighth
A table having no ruled lines as shown in the figure can also be output as shown in FIG.

そして、第5図のようなテーブルCTB,RTBになってい
るため、第6図のような出力を得るほかに、罫線の属性
を指定して裏罫等に罫線の種類を変更したり、また罫線
は印刷しないようにしたり、あるセル内の文字の大きさ
や書体を変更したり、縦組にしたりすることは簡単に指
定でき、またその状態のまま保存もできることになる。
Since the tables CTB and RTB are as shown in FIG. 5, in addition to obtaining the output as shown in FIG. 6, the attribute of the ruled line is specified to change the ruled line type such as the back ruled line. It is possible to specify not to print the ruled lines, to change the size and typeface of the characters in a certain cell, or to make them vertically set, and to save them as they are.

つまり、セルテーブルCELLによって定義される枠を一
つの欄として取り扱うことで、ワードプロセツサ等の固
定ピツチで作成された文書の表の体裁を保ったまま、文
書の編集、組版処理をすることができる。
In other words, by handling the frame defined by the cell table CELL as one column, it is possible to edit and typeset the document while maintaining the appearance of the document table created with a fixed pitch such as a word processor. it can.

[発明の効果] 以上説明したように、本発明によれば、罫線文字デー
タからなる文書情報を、ベクトル罫線データに変換する
とともに検出した矩形領域を枠として罫線情報とともに
登録することにより、変換後の変換前と同様の表体裁を
保って文字列を表内に組版できる。
EFFECTS OF THE INVENTION As described above, according to the present invention, the document information including the ruled line character data is converted into vector ruled line data, and the detected rectangular area is registered as a frame together with the ruled line information. You can typeset a character string in the table with the same appearance as before conversion.

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

第1図は本発明に係る1実施例である文書処理装置のブ
ロツク図、第2図はJISC6226コードの罫線素片コードの
1部を示す図、第3図は第9図の罫線部分を罫線素片コ
ードに分解した図、第4図は表の判別を行い処理用のテ
ーブルを作成する処理の流れを示すフローチヤート、第
5図は罫線テーブルとセルテーブルのフオーマツトを示
す図、第6図は第9図の文書が表の体裁を保ったまま組
版された出力例、第7図,第8図はワードプロセツサで
作成された表を含む文書の例を示す図、第9図はワード
プロセツサの文書の例を示す図、第10図は第9図の文書
をそのままプロポーシヨナルに組版した例を示す図であ
る。 1…CRT表示部 2…ビデオRAM 3…表示制御部 4…マイクロプロセツサ 5…主メモリ 6…ハードデイスク装置 7…I/Oバス 8…キーボード 9…ポインテイングデバイス 10…プリンタ 11…フロツピーデイスク装置
FIG. 1 is a block diagram of a document processing apparatus according to an embodiment of the present invention, FIG. 2 is a diagram showing a part of a ruled line segment code of JIS C6226 code, and FIG. 3 is a ruled line portion of FIG. FIG. 4 is a flow chart showing the flow of processing for discriminating a table and creating a table for processing, FIG. 5 is a view showing the format of a ruled line table and a cell table, FIG. 6 Is an example of the output of the document shown in Fig. 9 formatted while maintaining the format of the table, Figs. 7 and 8 are examples of the document containing the table created by the word processor, and Fig. 9 is the word. FIG. 10 is a diagram showing an example of a document of the processor, and FIG. 10 is a diagram showing an example in which the document of FIG. 9 is directly formatted in proportion. 1 ... CRT display unit 2 ... Video RAM 3 ... Display control unit 4 ... Microprocessor 5 ... Main memory 6 ... Hard disk device 7 ... I / O bus 8 ... Keyboard 9 ... Pointing device 10 ... Printer 11 ... Floppy disk device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 高倉 洋 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 谷口 ゆかり 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (56)参考文献 特開 昭57−182835(JP,A) 特開 昭61−59568(JP,A) ─────────────────────────────────────────────────── ─── Continued Front Page (72) Inventor Hiroshi Takakura 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (72) Yukari Taniguchi 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Incorporated (56) References JP 57-182835 (JP, A) JP 61-59568 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】文字データ及び罫線文字データを含む文書
情報を入力する文書情報入力手段と、 前記文書情報入力手段により入力された文書情報から罫
線文字データを検出する罫線文字データ検出手段と、 前記罫線文字データ検出手段により連続した位置で検出
される罫線文字データをベクトル罫線データに変換する
罫線データ変換手段と、 前記罫線文字データ検出手段により検出された罫線文字
データで囲まれる矩形領域を検出する矩形領域検出手段
と、 前記矩形領域検出手段により検出された矩形領域の位置
情報を、文字列を組版する一つの枠として前記検出され
たベクトル罫線データとともに登録する登録手段とを有
することを特徴とする文書処理装置。
1. A document information input unit for inputting document information including character data and ruled line character data; a ruled line character data detection unit for detecting ruled line character data from the document information input by the document information input unit; Ruled line data conversion means for converting the ruled line character data detected at consecutive positions by the ruled line character data detection means into vector ruled line data and a rectangular area surrounded by the ruled line character data detected by the ruled line character data detection means And a registration unit for registering the position information of the rectangular area detected by the rectangular area detection unit together with the detected vector ruled line data as one frame for typesetting a character string. Document processing device.
JP61165997A 1986-07-15 1986-07-15 Document processing device Expired - Fee Related JPH0831092B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP61165997A JPH0831092B2 (en) 1986-07-15 1986-07-15 Document processing device
US07/072,634 US4953108A (en) 1986-07-15 1987-07-13 Document processor having a document composition function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61165997A JPH0831092B2 (en) 1986-07-15 1986-07-15 Document processing device

Publications (2)

Publication Number Publication Date
JPS6321171A JPS6321171A (en) 1988-01-28
JPH0831092B2 true JPH0831092B2 (en) 1996-03-27

Family

ID=15822953

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61165997A Expired - Fee Related JPH0831092B2 (en) 1986-07-15 1986-07-15 Document processing device

Country Status (1)

Country Link
JP (1) JPH0831092B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7407193B2 (en) 2004-03-18 2008-08-05 Takata Corporation Seat belt buckle
EP2058158B1 (en) 2007-11-06 2011-06-15 Inalfa Roof Systems Group B.V. Tensioning device and sunscreen assembly provided therewith

Also Published As

Publication number Publication date
JPS6321171A (en) 1988-01-28

Similar Documents

Publication Publication Date Title
US6208744B1 (en) Document image processor and method for setting a document format conforming to a document image
JPH06203138A (en) Image editing system
JP3396404B2 (en) Automatic string editing system
JPH0221024B2 (en)
US4953108A (en) Document processor having a document composition function
JPH0831092B2 (en) Document processing device
JPS58208865A (en) Document producing device
JPH0831093B2 (en) Document processing method
JP2698345B2 (en) Document processing method
JPH0816904B2 (en) Document processing method
JPH0612543B2 (en) Character string specification method
JPH0827843B2 (en) How to edit a character string in a figure
JP2682873B2 (en) Recognition device for tabular documents
JPH0916582A (en) Document preparing device and method for outputting recognition result used for this device
JP2578747B2 (en) Handwritten information processing method
JP3264969B2 (en) Document creation device and document creation method
JP2821002B2 (en) Character processing device and character processing method
JPH05342325A (en) Document processor and form register device therefor
JP3056850B2 (en) Document creation device with graph creation function
JP3102979B2 (en) Document information processing device with ruled line conversion function
JPH0610447Y2 (en) Image processing device
JP2834882B2 (en) Document creation device
JPH08293033A (en) Information processor
JPS61206087A (en) Document reading device
JPH0652156A (en) Method and device for processing document

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees