JPH07160789A - Document information processor with ruled line conversion function - Google Patents

Document information processor with ruled line conversion function

Info

Publication number
JPH07160789A
JPH07160789A JP5307793A JP30779393A JPH07160789A JP H07160789 A JPH07160789 A JP H07160789A JP 5307793 A JP5307793 A JP 5307793A JP 30779393 A JP30779393 A JP 30779393A JP H07160789 A JPH07160789 A JP H07160789A
Authority
JP
Japan
Prior art keywords
line
line segment
vertical
feed pitch
horizontal
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.)
Granted
Application number
JP5307793A
Other languages
Japanese (ja)
Other versions
JP3102979B2 (en
Inventor
Hiroshi Nakao
寛 中尾
Yoshiharu Takahashi
由治 高橋
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP05307793A priority Critical patent/JP3102979B2/en
Publication of JPH07160789A publication Critical patent/JPH07160789A/en
Application granted granted Critical
Publication of JP3102979B2 publication Critical patent/JP3102979B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To input a character, a mark, etc., with a desired line feed pitch and the desired number of characters without changing the length of a line segment in a vertical direction by setting a line feed pitch to be reference and the size of a character to be reference concerning a document information processor with a ruled line conversion function. CONSTITUTION:The processor is provided with a reference line feed pitch setting means 4 setting the line feed pitch to be reference and a vertical line segment conversion means 8 converting a vertical line segment to a longitudinal ruled line through the use of the line feed pitch to be reference. When the length of the vertical line segment is longer than the line feed pitch to be reference. the vertical line segment conversion means 8 divides the length of the vertical line segment into lines of the same length as the line feed pitch to be reference, provide the part of the remaining length of the vertical line segment, which can not be divided, with the line of the line feed pitch of the same length as the part and converts the vertical line segment to the longitudinal rules line having a length corresponding to the sum of the lengths of one or plural lines equal to the line feed pitch to be reference and the line of the line feed pitch of the same length as the remaining part which is smaller than the line feed pitch to be reference.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、文書情報処理装置に
関し、特に、日本語ワードプロセッサやパソコンなど、
罫線データを取扱うことのできる文書情報処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document information processing apparatus, and more particularly to a Japanese word processor, a personal computer, etc.
The present invention relates to a document information processing apparatus capable of handling ruled line data.

【0002】[0002]

【従来の技術】現在、日本語ワードプロセッサにおい
て、既存の表をスキャナーで読み取り、この表を作成中
の文書の中に罫線データとして取り込み、この表の中に
数値を入力するものがある。また、特開平2−3365
8号公報に、ある文書中にある表を別の文書の空白領域
に入るように、表を形成する罫線と表内の文字との相対
的な位置関係等を考慮して表を拡大・縮小し、表と文書
との合成を行う表及び文書画像編集装置が記載されてい
る。
2. Description of the Related Art At present, there is a Japanese word processor that reads an existing table with a scanner, imports this table as ruled line data into a document being created, and inputs a numerical value into this table. In addition, JP-A-2-3365
In JP-A-8, a table is enlarged / reduced in consideration of the relative positional relationship between the ruled lines forming the table and the characters in the table so that a table in one document fits in the blank area of another document. However, a table and a document image editing apparatus for synthesizing a table and a document are described.

【0003】[0003]

【発明が解決しようとする課題】しかし、従来のもので
は、読み取られた表について、表示されたレイアウトを
見ながら、その表の位置や大きさを決めているが、読み
取られた表の縦方向及び横方向の罫線の長さを決める基
準となる改行ピッチや文字サイズを指定するものではな
いため、正確なサイズの表を文書中に取り込むことがで
きず、また利用者が望む改行ピッチ幅と文字数の入力が
可能な表を作成することは容易ではなかった。特に、表
の垂直方向の線分は、各行に対して改行ピッチの設定が
行われないため、読み取り前の長さを正確に表わすこと
ができなかった。
However, in the conventional apparatus, the position and size of the read table are determined by looking at the displayed layout, but the vertical direction of the read table is used. Since it does not specify the line feed pitch or character size that is the standard for determining the length of the ruled line in the horizontal direction, it is not possible to incorporate a table of the correct size into the document, and the line feed pitch width desired by the user It was not easy to create a table that allows you to enter the number of characters. In particular, the vertical line segment of the table cannot accurately represent the length before reading because the line feed pitch is not set for each line.

【0004】この発明は、以上のような事情を考慮して
なされたものであり、表を構成する線分を読み取った
後、文書に付随した罫線データに変換する場合に、基準
となる改行ピッチ及び文字サイズを設定することによっ
て、垂直方向の線分の長さを変えずに、所望の改行ピッ
チと所望の文字数でもって表中に文字又は記号等を入力
することのできる文書情報処理装置を提供することを目
的とする。
The present invention has been made in consideration of the above circumstances, and a line feed pitch which becomes a reference when the line segments forming the table are read and then converted into ruled line data attached to the document. By setting the character size and the character size, a document information processing apparatus capable of inputting characters or symbols in a table with a desired line feed pitch and a desired number of characters without changing the length of a vertical line segment is provided. The purpose is to provide.

【0005】[0005]

【課題を解決するための手段】図1に,この発明の構成
ブロック図を示す。同図に示すように,この発明は、入
力された文書情報の中から直線状の線分を認識する線分
データ認識手段1と、認識された線分の文書に対する座
標情報を格納する線分データ格納手段2と、前記座標情
報から格納された線分が文書に対して垂直線分であるか
水平線分であるかを判定する垂直水平判定手段3と、文
書の行間隔を決める基準となる改行ピッチを設定する基
準改行ピッチ設定手段4と、文書の一行当りの文字幅を
決める基準となる文字サイズを設定する基準文字サイズ
設定手段5と、設定された基準となる改行ピッチを格納
する改行ピッチ格納手段6と、設定された基準となる文
字サイズを格納する文字サイズ格納手段7と、前記基準
となる改行ピッチを利用して垂直水平判定手段3によっ
て判定された垂直線分を縦方向の罫線に変換する垂直線
分変換手段8と、前記基準となる文字サイズを利用して
垂直水平判定手段3によって判定された水平線分を横方
向の罫線に変換する水平線分変換手段9と、垂直線分変
換手段8及び水平線分変換手段9によって求められた罫
線のデータを格納する罫線データ格納手段10とを備
え、垂直線分の長さが基準となる改行ピッチよりも大き
い場合に、垂直線分変換手段8が、垂直線分の長さを基
準となる改行ピッチの長さに等しい行に分割し、分割で
きなかった垂直線分の余りの長さの部分に対してその長
さに等しい改行ピッチの行を設け、垂直線分を、一つ又
は複数個の基準となる改行ピッチに等しい行と基準とな
る改行ピッチよりも小さい余りの長さに等しい改行ピッ
チの行との長さの和に相当する長さを持つ縦方向の罫線
に変換することを特徴とする、罫線変換機能を持つ文書
情報処理装置を提供するものである。
FIG. 1 shows a block diagram of the configuration of the present invention. As shown in the figure, according to the present invention, a line segment data recognizing means 1 for recognizing a straight line segment from input document information, and a line segment for storing coordinate information for the recognized line segment document. The data storage means 2, the vertical / horizontal determination means 3 for determining whether the line segment stored from the coordinate information is a vertical line segment or a horizontal line segment with respect to the document, and a reference for determining the line spacing of the document. A standard line feed pitch setting means 4 for setting a line feed pitch, a reference character size setting means 5 for setting a character size as a reference for determining the character width per line of a document, and a line feed for storing the set reference line feed pitch. The pitch storage means 6, the character size storage means 7 for storing the set reference character size, and the vertical line segment determined by the vertical / horizontal determination means 3 using the reference line feed pitch in the vertical direction. Ruled line Vertical line segment conversion means 8 for converting, horizontal line segment conversion means 9 for converting the horizontal line segment determined by the vertical / horizontal determination means 3 into horizontal ruled lines by using the reference character size, and vertical line segment conversion And a ruled line data storage unit 10 for storing the ruled line data obtained by the means 8 and the horizontal line segment conversion unit 9, and when the length of the vertical line segment is larger than the reference line feed pitch, the vertical line segment conversion unit. 8 divides the length of the vertical line segment into lines equal to the length of the reference line feed pitch, and the line feed pitch equal to the length of the remaining length of the vertical line segment that could not be divided. A line is provided, and the vertical line segment is equivalent to the sum of the length of one or more lines equal to the standard line feed pitch and the line with a line feed pitch equal to the remainder length smaller than the standard line feed pitch. To a vertical ruled line with a length that Characterized by conversion, it is to provide a document information processing apparatus having a border conversion function.

【0006】また、前記した各手段1〜10をすべて備
え、水平線分変換手段9が、水平線分の長さがその長さ
の範囲に基準となる文字サイズの文字を何文字分含むこ
とができるかを算出し、水平線分を、その水平線分の長
さの範囲に含むことのできる最大文字数分に等しい長さ
を持つ横方向の罫線に変換することを特徴とする、罫線
変換機能を持つ文書情報処理装置を提供するものであ
る。
Further, the above-mentioned means 1 to 10 are all provided, and the horizontal line segment conversion means 9 can include a number of characters of a character size whose reference is within the range of the length of the horizontal line segment. A document with a ruled line conversion function, which calculates whether or not, and converts the horizontal line segment into a horizontal ruled line having a length equal to the maximum number of characters that can be included in the range of the length of the horizontal line segment. An information processing device is provided.

【0007】ここで、線分データ認識手段1としては、
書面や画像を入力することのできるイメージスキャナを
用いることが好ましい。線分データ格納手段2、改行ピ
ッチ格納手段6、文字サイズ格納手段7、及び罫線デー
タ格納手段10としては、RAMを用いることが好まし
い。
Here, as the line segment data recognizing means 1,
It is preferable to use an image scanner capable of inputting a document or an image. A RAM is preferably used as the line segment data storage unit 2, the line feed pitch storage unit 6, the character size storage unit 7, and the ruled line data storage unit 10.

【0008】基準改行ピッチ設定手段4と基準文字サイ
ズ設定手段5としては、キーボード、又はペン、マウ
ス、もしくはトラックボール等のポインティングデバイ
スを用いることが好ましい。垂直水平判定手段3、垂直
線分変換手段8、及び水平線分変換手段9としては、通
常CPU(中央制御装置)、RAM、ROM、及びI/
Oインタフェース等から構成されるいわゆるマイクロプ
ロセッサを用い、このROMに内蔵されたソフトウエア
によって各手段の機能を実行させることが好ましい。
As the reference line feed pitch setting means 4 and the reference character size setting means 5, it is preferable to use a pointing device such as a keyboard, a pen, a mouse, or a trackball. The vertical / horizontal determination means 3, the vertical line segment conversion means 8 and the horizontal line segment conversion means 9 are usually a CPU (central control unit), a RAM, a ROM, and an I / O.
It is preferable to use a so-called microprocessor composed of an O interface or the like and execute the functions of the respective means by the software built in this ROM.

【0009】また、前記線分データ格納手段2に格納さ
れる線分のデータは、その線分の開始点の文書に対する
垂直方向座標と水平方向座標、及び終了点の文書に対す
る垂直方向座標と水平方向座標とからなり、前記罫線デ
ータ格納手段10に格納される罫線のデータは、その罫
線の文書に対する開始行番号と開始桁番号、及び終了行
番号と終了桁番号とから構成されることが好ましい。
The line segment data stored in the line segment data storage means 2 includes vertical and horizontal coordinates of the start point of the line segment with respect to the document and horizontal and vertical coordinates of the end point of the document with respect to the document. The ruled line data, which is composed of directional coordinates and is stored in the ruled line data storage means 10, is preferably composed of a start line number and a start column number, and an end line number and an end column number for the document of the ruled line. .

【0010】[0010]

【作用】線分データ認識手段1が、入力された文書情報
の中から直線状の線分を認識すると、認識された線分の
文書に対する座標情報が線分データ格納手段2に格納さ
れる。次に垂直水平判定手段3が、前記座標情報から格
納された線分が文書に対して垂直線分であるか水平線分
であるかを判定する。
When the line segment data recognizing means 1 recognizes a linear line segment from the input document information, the coordinate information for the recognized line segment document is stored in the line segment data storing means 2. Next, the vertical / horizontal determination means 3 determines from the coordinate information whether the stored line segment is a vertical line segment or a horizontal line segment with respect to the document.

【0011】基準改行ピッチ設定手段4によって入力さ
れた文書の行間隔を決める基準となる改行ピッチが設定
されると共に、基準文字サイズ設定手段5によって文書
の一行当りの文字幅を決める基準となる文字サイズが設
定される。さらに、設定された基準となる改行ピッチは
改行ピッチ格納手段6に格納され、設定された基準とな
る文字サイズは文字サイズ格納手段7に格納される。
The reference line feed pitch setting means 4 sets a line feed pitch which is a reference for determining the line spacing of the input document, and the reference character size setting means 5 sets a character which is a reference for determining the character width per line of the document. The size is set. Further, the set reference line feed pitch is stored in the line feed pitch storage means 6, and the set reference character size is stored in the character size storage means 7.

【0012】次に、垂直線分変換手段8が、垂直線分の
長さが基準となる改行ピッチよりも大きい場合に、垂直
線分の長さを基準となる改行ピッチの長さに等しい行に
分割し、分割できなかった垂直線分の余りの長さの部分
に対してその長さに等しい改行ピッチの行を設け、垂直
線分を、一つ又は複数個の基準となる改行ピッチに等し
い行と基準となる改行ピッチよりも小さい余りの長さに
等しい改行ピッチの行との長さの和に相当する長さを持
つ縦方向の罫線に変換する。
Next, when the length of the vertical line segment is greater than the reference line feed pitch, the vertical line segment conversion means 8 sets the line length equal to the reference line feed pitch length. A line with a line feed pitch equal to the remaining length of the vertical line segment that could not be divided, and the vertical line segment is set to one or more standard line feed pitches. Converts to a vertical ruled line having a length equivalent to the sum of the length of the same line and the line of the line feed pitch equal to the remainder length smaller than the reference line feed pitch.

【0013】また、水平線分変換手段9が、水平線分の
長さがその長さの範囲に基準となる文字サイズの文字を
何文字分含むことができるかを算出し、水平線分を、そ
の水平線分の長さの範囲に含むことのできる最大文字数
分に等しい長さを持つ横方向の罫線に変換する。垂直線
分変換手段8及び水平線分変換手段9によって求められ
た罫線のデータは、罫線データ格納手段10に格納され
る。
Further, the horizontal line segment conversion means 9 calculates how many characters can be included in the length of the horizontal line segment as a reference character size and calculates the horizontal line segment as the horizontal line segment. Convert to a horizontal rule with a length equal to the maximum number of characters that can be included in the minute length range. The ruled line data obtained by the vertical line segment conversion unit 8 and the horizontal line segment conversion unit 9 is stored in the ruled line data storage unit 10.

【0014】この発明によれば、基準となる改行ピッチ
と基準となる文字サイズが設定され、これをもとに、垂
直線分を縦方向の罫線に変換し、水平線分を横方向の罫
線に変換しているため、垂直方向の線分の長さを変えず
に罫線で囲まれた領域に所望の改行ピッチと所望の文字
数でもって文字・記号等を入力することができる。
According to the present invention, the standard line feed pitch and the standard character size are set. Based on these, vertical line segments are converted into vertical ruled lines, and horizontal line segments are converted into horizontal ruled lines. Since the conversion is performed, it is possible to input characters / symbols or the like with a desired line feed pitch and a desired number of characters in the area surrounded by the ruled lines without changing the length of the vertical line segment.

【0015】[0015]

【実施例】以下、図面に示す実施例に基づいてこの発明
を詳述する。なお、これによってこの発明が限定される
ものではない。図2に、この発明の文書情報処理装置の
一実施例の構成ブロック図を示す。同図において、21
は、入力装置であり、キーボード又は、ペン、マウスも
しくはトラックボール等のポインティングデバイス等が
用いられ、文書の入力及び文書処理に必要な各種データ
の設定等が行われる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the embodiments shown in the drawings. The present invention is not limited to this. FIG. 2 is a block diagram showing the configuration of an embodiment of the document information processing apparatus according to the present invention. In the figure, 21
Is an input device, and a keyboard or a pointing device such as a pen, a mouse, or a trackball is used to input documents and set various data necessary for document processing.

【0016】22は、読取装置であり、これは文字、図
形又は表などが書かれた文書を読み取り、コンピュータ
で取扱うことのできるデータに変換するものである。こ
れには、たとえば、イメージスキャナが用いられる。2
3は、制御装置であり、文書情報処理装置の動作を制御
するものであるが、通常CPUとROM,RAM及びI
/Oインタフェースなどから構成される、いわゆるマイ
クロプロセッサが用いられる。また、動作の制御手順プ
ログラムが一般にROM内に記憶されている。
Reference numeral 22 is a reading device, which reads a document in which characters, figures, tables, etc. are written and converts it into data that can be handled by a computer. An image scanner is used for this, for example. Two
Reference numeral 3 denotes a control device for controlling the operation of the document information processing device, which is usually a CPU, ROM, RAM and I
A so-called microprocessor including an I / O interface is used. Further, an operation control procedure program is generally stored in the ROM.

【0017】24は、記憶装置であり、ROM又はRA
Mが用いられるが、文書データなどの大容量データを記
憶するために、ハードディスクやフロッピーディスクを
用いてもよい。また、記憶装置24内部のRAMにおい
て、この発明に特に関係するデータのメモリとして、線
分データメモリ24a,罫線データメモリ24b,及び
設定データメモリ24cを持つことが望ましい。
Reference numeral 24 is a storage device, which is a ROM or RA.
Although M is used, a hard disk or a floppy disk may be used to store a large amount of data such as document data. Further, in the RAM inside the storage device 24, it is desirable to have a line segment data memory 24a, a ruled line data memory 24b, and a setting data memory 24c as memories of data particularly related to the present invention.

【0018】ここで線分データメモリ24aは、イメー
ジスキャナ22によって読みとられた文書のうち、表な
どの線分のデータを記憶しておくメモリである。線分の
データは、図3(a)に示したように、各線分ごとに線
分の開始点のX座標である開始X座標値、線分の開始点
のY座標である開始Y座標値、線分の終了点のX座標で
ある終了X座標値、及び線分の終了点のY座標である終
了Y座標値とから構成される。
Here, the line segment data memory 24a is a memory for storing line segment data such as a table in the document read by the image scanner 22. As shown in FIG. 3A, the line segment data includes a start X coordinate value that is the X coordinate of the start point of the line segment and a start Y coordinate value that is the Y coordinate of the start point of the line segment for each line segment. , An end X coordinate value that is the X coordinate of the end point of the line segment, and an end Y coordinate value that is the Y coordinate of the end point of the line segment.

【0019】罫線データメモリ24bは、文書中に取り
こまれた線分データをコンピュータが文字、記号と同等
に取扱うことのできる形式に変換した罫線データを記憶
しておくメモリである。罫線データは、図3(b)に示
したように、前記した開始X座標、開始Y座標に対応す
る開始行と開始桁、終了X座標、終了Y座標に対応する
終了行と終了桁とから構成される。
The ruled line data memory 24b is a memory for storing the ruled line data obtained by converting the line segment data taken into the document into a format that can be handled by a computer in the same manner as characters and symbols. As shown in FIG. 3B, the ruled line data is composed of the start line and start digit corresponding to the start X coordinate and the start Y coordinate, and the end row and end digit corresponding to the end X coordinate and the end Y coordinate. Composed.

【0020】設定データメモリ24cは、文書情報処理
に必要な設定データ、たとえば文書の書式に関するデー
タを記憶しておくメモリである。この発明に関する設定
データは、図3(c)に示したように、主に行番号と、
行間の幅を示す改行ピッチと、1つの文字の大きさを示
す文字サイズとから構成され、これらのデータは、文書
の各行ごとに備えているものとする。
The setting data memory 24c is a memory for storing setting data necessary for document information processing, for example, data relating to the format of a document. As shown in FIG. 3 (c), the setting data relating to the present invention are mainly line numbers and
It is composed of a line feed pitch indicating the width between lines and a character size indicating the size of one character, and these data are provided for each line of the document.

【0021】25は、表示装置であり、CRT又はLC
D等が用いられ、入力された文書情報や設定データ等の
表示が行われる。26は、印刷装置であり、プリンタが
用いられ、文書情報や設定データなどが印刷される。以
上が、この発明を構成する装置であるが、読み取られた
線分データを記憶装置24に格納し、設定データに従っ
て線分データを識別して罫線データへ変換する動作は、
制御装置23に内蔵された制御プログラムによって制御
される。
A display device 25 is a CRT or LC.
D or the like is used to display the input document information, setting data, or the like. Reference numeral 26 denotes a printing device, which uses a printer to print document information, setting data, and the like. The above is the apparatus constituting the present invention. The operation of storing the read line segment data in the storage device 24, identifying the line segment data according to the setting data, and converting the line segment data into ruled line data is as follows.
It is controlled by a control program built in the control device 23.

【0022】次に、この発明における線分データを罫線
データに変換する動作を説明する。図4に、罫線データ
変換の動作の概略フローを示す。以下の動作は、通常制
御装置23が、その内部のROMに内蔵された制御プロ
グラムに従って行うものである。ステップS1におい
て、まず、表又は線分を含んだ文書を読取装置22によ
って、読み取らせる。読み取られたデータは記憶装置2
4の所定の領域に格納される。
Next, the operation of converting line segment data into ruled line data according to the present invention will be described. FIG. 4 shows a schematic flow of a ruled line data conversion operation. The following operation is normally performed by the control device 23 in accordance with a control program stored in the ROM therein. In step S1, first, the document including the table or the line segment is read by the reading device 22. The read data is stored in the storage device 2
4 is stored in a predetermined area.

【0023】ステップS2において、読みとられたデー
タの中から、表又は線分のデータを認識して、ステップ
S3において、認識されたそれぞれの線分データを、図
3(a)に示した形式で線分データメモリ24aに記憶
する。ここで、ステップS1における読取装置22にお
ける文書の読み取り及びステップS2における表又は線
分のデータの認識は、通常行われている方法を利用する
ものとする。
In step S2, the table or line segment data is recognized from the read data, and in step S3, each recognized line segment data is converted into the format shown in FIG. 3 (a). Is stored in the line segment data memory 24a. Here, the reading of the document by the reading device 22 in step S1 and the recognition of the data of the table or the line segment in step S2 shall be performed by using a commonly used method.

【0024】ステップS3において、図3(a)の形式
の線分データの作成は、たとえば読み取られた用紙の左
上を(X,Y)座標の原点とし、線分と認識されたデー
タの始点と終点の(X,Y)座標値を求めることによっ
て行う。この(X,Y)座標の値の単位は、たとえば表
示装置25のドット数に対応する数値を用いてもよく、
また印刷装置26の解像度に対するドット数に対応する
数値を用いてもよい。なお、ここで、X座標とは、文書
に対して左から右への横方向の座標、Y座標とは文書に
対して上から下への縦方向の座標を表わすものとする。
In step S3, the line segment data of the format shown in FIG. 3A is created, for example, by using the upper left of the read sheet as the origin of the (X, Y) coordinates and the start point of the data recognized as the line segment. This is done by obtaining the (X, Y) coordinate value of the end point. The unit of the value of the (X, Y) coordinate may be a numerical value corresponding to the number of dots of the display device 25, for example.
A numerical value corresponding to the number of dots with respect to the resolution of the printing device 26 may be used. It should be noted that the X-coordinate represents the horizontal coordinate from left to right with respect to the document, and the Y-coordinate represents the vertical coordinate from top to bottom with respect to the document.

【0025】ステップS4において、表示装置25によ
って読みとられた表の線分データの表示を行い、読み取
られた表又は罫線が、読み取られた文書に対して、どの
ような位置にどのような大きさでレイアウトされている
かを利用者に知らせる。ステップS5において、読み取
られた表に対して、利用者が希望する文字数と行数とが
含まれる領域となるように、基準となる改行ピッチ及び
文字サイズの設定を行う。
In step S4, the line segment data of the table read by the display device 25 is displayed, and the read table or ruled line is at what position and in what size with respect to the read document. Informs the user if it is laid out. In step S5, the reference line feed pitch and character size are set in the read table so that the area includes the number of characters and the number of lines desired by the user.

【0026】ここで、改行ピッチ及び文字サイズの設定
は、一般に、設定画面を表示させて、これらの数値をキ
ーボードから入力するのが望ましい。設定されたデータ
は、図3(c)に示したような形式で設定データメモリ
24cに記憶される。
For setting the line feed pitch and the character size, it is generally desirable to display a setting screen and input these numerical values from the keyboard. The set data is stored in the setting data memory 24c in the format shown in FIG.

【0027】次に、ステップS6において、設定された
改行ピッチと文字サイズを利用して、線分データメモリ
24aに記憶されている変換元の線分データを図3
(b)に示したような罫線データに変換する。以上が罫
線データの変換の概要であるが、このようにして作成さ
れた罫線データは、以後、文字、記号等と同様に取扱わ
れ、罫線の挿入、削除、及び移動のような通常の文書編
集の作業ができるようになる。
Next, in step S6, the line segment data of the conversion source stored in the line segment data memory 24a is converted into the line segment data shown in FIG.
Convert to ruled line data as shown in (b). The outline of the conversion of ruled line data has been described above. The ruled line data created in this way is handled in the same way as characters and symbols, and ordinary document editing such as ruled line insertion, deletion, and movement is performed. Will be able to work.

【0028】次に、図5にステップS6における罫線変
換の処理の詳細フローを示す。まず、ステップS11に
おいて、線分データメモリ24aから、1つの線分デー
タを読み出す。すなわち、図3(a)で示される1組の
データが読み出される。
Next, FIG. 5 shows a detailed flow of the ruled line conversion processing in step S6. First, in step S11, one line segment data is read from the line segment data memory 24a. That is, the set of data shown in FIG. 3A is read.

【0029】次に、ステップS12において、この読み
出された線分データに対して開始X座標と終了X座標の
値が一致するかどうかを判断する。ここで開始X座標と
終了X座標が一致した場合は、その線分は垂直線分であ
ると判断され、ステップS14へ進む。
Next, in step S12, it is determined whether or not the values of the start X coordinate and the end X coordinate match the read line segment data. Here, when the start X coordinate and the end X coordinate match, it is determined that the line segment is a vertical line segment, and the process proceeds to step S14.

【0030】また、開始X座標と終了X座標が一致しな
い場合は、ステップS13において、開始Y座標と終了
Y座標の値が一致するかどうかを判断する。ここで開始
Y座標と終了Y座標が一致した場合は、その線分は水平
線分であると判断され、ステップS15へ進む。
If the start X coordinate and the end X coordinate do not match, it is determined in step S13 whether the values of the start Y coordinate and the end Y coordinate match. Here, if the start Y coordinate and the end Y coordinate match, it is determined that the line segment is a horizontal line segment, and the process proceeds to step S15.

【0031】ステップS14において、垂直線分が罫線
データへ変換され、図3(b)に示したような形式で縦
罫線として罫線データメモリ24bに格納される。ま
た、ステップS15において、水平線分が罫線データへ
変換され、図3(b)に示したような形式で横罫線とし
て罫線データメモリ24bに格納される。ステップS1
4及びステップS15の詳細フローは後述する。
In step S14, the vertical line segments are converted into ruled line data and stored in the ruled line data memory 24b as vertical ruled lines in the format shown in FIG. 3B. In step S15, the horizontal line segments are converted into ruled line data and stored in the ruled line data memory 24b as horizontal ruled lines in the format shown in FIG. 3B. Step S1
The detailed flow of 4 and step S15 will be described later.

【0032】次にステップS16において、変換元デー
タである線分データが線分データメモリ24aの中に残
っていないかどうか判断し、あればステップS11へ戻
り、残っていなければ処理を終了する。
Next, in step S16, it is determined whether or not the line segment data that is the conversion source data remains in the line segment data memory 24a. If there is, the process returns to step S11, and if there is no line segment data, the process ends.

【0033】次に、線分データを罫線データに変換する
処理である前記したステップS14とステップS15の
詳細フローについて説明する。図6に、罫線変換処理で
使用するデータを示す。図6に示した長方形状の線分は
罫線を示しており、線分の左上端は、1つの文書におい
てn行m桁の位置にあるものとする。すなわち、ここで
はnは罫線の開始行、mは罫線の開始桁を示しており、
罫線データメモリ24b中の開始行としてnが、また開
始桁としてmが記憶されている。
Next, a detailed flow of the above-described steps S14 and S15, which is a process of converting line segment data into ruled line data, will be described. FIG. 6 shows data used in the ruled line conversion processing. The rectangular line segment shown in FIG. 6 indicates a ruled line, and the upper left end of the line segment is assumed to be at the position of n rows and m columns in one document. That is, here, n is the starting line of the ruled line, m is the starting digit of the ruled line,
In the ruled line data memory 24b, n is stored as the starting line and m is stored as the starting digit.

【0034】Lは垂直線分(縦罫線)の長さ、Wは水平
線分(横罫線)の幅を示しており、これらは、図3
(a)に示したその線分の(X,Y)座標値から求めら
れる。また、aは、設定された基準となる改行ピッチ、
bは設定された基準となる文字サイズ、Pnはn行目の
改行ピッチを示すものとする。
L indicates the length of the vertical line segment (vertical ruled line), and W indicates the width of the horizontal line segment (horizontal ruled line). These are shown in FIG.
It is obtained from the (X, Y) coordinate values of the line segment shown in (a). In addition, a is a line feed pitch which is the set reference,
Let b be the set reference character size, and Pn be the line feed pitch of the nth line.

【0035】ここで、文書情報処理装置によって、表示
又は印刷される文書データの1行当りのドット数(Y
1)及び1桁当りのドット数(X1)は設定された改行
ピッチ、及び文字のサイズによって決められるので、あ
る線分の左上端の(X,Y)座標、すなわち左上端のY
ドットが文書データにおける何行目に属し、Xドットが
何桁目に属するかは、ドット数Y1,X1より求めるこ
とができる。
Here, the number of dots per line (Y) of the document data to be displayed or printed by the document information processing device.
1) and the number of dots per digit (X1) are determined by the set line feed pitch and character size, so the upper left (X, Y) coordinates of a line segment, that is, the upper left Y
The line to which the dot belongs in the document data and the column to which the X dot belongs can be obtained from the dot numbers Y1 and X1.

【0036】図7に垂直線分、すなわち縦罫線の変換フ
ローを示す。まず、ステップS21において、縦罫線の
長さLが基準となる改行ピッチaよりも小さいかどうか
を判断し、大きい場合には、ステップS22へ進み、等
しいか小さい場合にはステップS25へ進む。ステップ
S22において、n行目の改行ピッチPnを基準となる
改行ピッチaに設定する。
FIG. 7 shows a conversion flow of vertical line segments, that is, vertical ruled lines. First, in step S21, it is determined whether or not the length L of the vertical ruled line is smaller than the reference line feed pitch a. If it is larger, the process proceeds to step S22, and if it is equal or smaller, the process proceeds to step S25. In step S22, the line feed pitch Pn of the nth line is set to the reference line feed pitch a.

【0037】ステップS23において、L−aを計算
し、これを新しい縦罫線の長さLとする。すなわち、縦
罫線の長さLから基準となる改行ピッチaを減算してい
き、残りの縦罫線の長さを計算する。ステップS24に
おいて、nを+1する。ここで、nを更新するのは、現
在の変換対象の縦罫線の終了行の行番号を求めるためで
ある。
In step S23, La is calculated and set as the length L of the new vertical ruled line. That is, the reference line feed pitch a is subtracted from the length L of the vertical ruled line to calculate the length of the remaining vertical ruled line. In step S24, n is incremented by 1. Here, the reason for updating n is to obtain the line number of the end line of the current vertical ruled line to be converted.

【0038】ステップS24の処理の後、ステップS2
1に戻り、再度、縦罫線の長さLと基準となる改行ピッ
チaを比較し、L>aのときは、前記したステップS2
2からステップS24の処理を繰り返す。
After the processing of step S24, step S2
Returning to step 1, the length L of the vertical ruled line is compared again with the reference line feed pitch a, and when L> a, the above step S2 is performed.
The processing from 2 to step S24 is repeated.

【0039】ステップS21でL≦aとなったとき、す
なわち、残りの縦罫線の長さLが基準となる改行ピッチ
以下の場合には、ステップS25へ進み、n行目の改行
ピッチPnに残りの縦罫線の長さLを代入する。これに
より、最初に与えられた縦罫線の長さLは、基準となる
改行ピッチaの整数倍+ステップS25で求められた改
行ピッチPnで表わされるため、入力された垂直方向の
線分の長さは正確に罫線データとして変換されることに
なる。
When L≤a in step S21, that is, when the length L of the remaining vertical ruled lines is equal to or smaller than the reference line feed pitch, the process proceeds to step S25 and remains at the line feed pitch Pn of the nth line. Substitute the length L of the vertical ruled line. As a result, the length L of the vertical ruled line initially given is represented by the integral multiple of the reference line feed pitch a + the line feed pitch Pn obtained in step S25, and thus the length of the input vertical line segment. Will be accurately converted as ruled line data.

【0040】次に、ステップS26において、nを+1
し、ステップS27において、このnを罫線データメモ
リ24bの中のその線分に対する罫線の終了行の行番号
として記憶する。ステップS28において、mを罫線デ
ータメモリ24bの中のその線分に対応する罫線の終了
桁として記憶する。
Next, in step S26, n is incremented by +1.
Then, in step S27, this n is stored as the line number of the end line of the ruled line for that line segment in the ruled line data memory 24b. In step S28, m is stored as the end digit of the ruled line corresponding to the line segment in the ruled line data memory 24b.

【0041】以上のようにして、垂直方向の線分データ
の開始(X,Y)座標と終了(X,Y)座標が、文書デ
ータの中の罫線データ(開始行,開始桁)と(終了行,
終了桁)として変換され、罫線データメモリ24bに縦
罫線ごとに記憶される。
As described above, the start (X, Y) coordinates and the end (X, Y) coordinates of the vertical line segment data are the ruled line data (start line, start digit) and (end) in the document data. line,
It is converted as an end digit) and stored in the ruled line data memory 24b for each vertical ruled line.

【0042】次に、図8に、水平線分、すなわち横罫線
の変換フローを示す。まず、ステップS1において、横
罫線幅Wが、基準となる文字サイズbよりも小さいかど
うかを判断し、大きい場合には、ステップS32へ進
み、等しいか小さい場合にはステップS34へ進む。ス
テップS32において、W−bを計算し、これを新しい
横罫線の幅Wとする。すなわち、横罫線の幅Wから基準
となる文字サイズbを減算していき、残りの横罫線の長
さを計算する。
Next, FIG. 8 shows a conversion flow of horizontal line segments, that is, horizontal ruled lines. First, in step S1, it is determined whether the horizontal ruled line width W is smaller than the reference character size b. If it is larger, the process proceeds to step S32. If it is equal or smaller, the process proceeds to step S34. In step S32, Wb is calculated and set as the width W of the new horizontal ruled line. That is, the reference character size b is subtracted from the width W of the horizontal ruled line to calculate the length of the remaining horizontal ruled line.

【0043】ステップS33においてmを+1する。こ
こで、mを更新するのは、現在の変換対象の横罫線の終
了桁の桁番号を求めるためである。なお、1桁は1文字
幅に対応している。ステップS33の処理の後、ステッ
プS31に戻り、再度横罫線の幅Wと基準となる文字サ
イズbを比較し、W>bのときは、前記したステップS
32とステップS33の処理を繰り返す。
In step S33, m is incremented by one. Here, the reason why m is updated is to obtain the digit number of the end digit of the current horizontal ruled line to be converted. Note that one digit corresponds to one character width. After the process of step S33, the process returns to step S31, the width W of the horizontal ruled line is compared again with the reference character size b, and when W> b, the above step S33 is performed.
32 and the process of step S33 are repeated.

【0044】ステップS31でW≦bとなったとき、す
なわち残りの横罫線の長さWが基準となる文字サイズ以
下の場合には、ステップS34へ進み、mを+1とし、
桁番号を更新する。次に、ステップS35において、n
を罫線データメモリ24bの中のその線分に対応する罫
線の終了行として記憶する。ステップS36において、
mを罫線データメモリ24bの中のその線分に対応する
罫線の終了桁として記憶する。
When W ≦ b in step S31, that is, when the length W of the remaining horizontal ruled lines is equal to or smaller than the reference character size, the process proceeds to step S34, and m is set to +1.
Update the digit number. Next, in step S35, n
Is stored as the end line of the ruled line corresponding to the line segment in the ruled line data memory 24b. In step S36,
m is stored as the end digit of the ruled line corresponding to the line segment in the ruled line data memory 24b.

【0045】以上のようにして、水平方向の線分データ
の開始(X,Y)座標と終了(X,Y)座標が、文書デ
ータの中の罫線データ(開始行,開始桁)と(終了行,
終了桁)として変換され、罫線データメモリ24bに横
罫線ごとに記憶される。
As described above, the start (X, Y) coordinates and the end (X, Y) coordinates of the line segment data in the horizontal direction are the ruled line data (start line, start digit) and (end) in the document data. line,
It is converted as the end digit) and stored in the ruled line data memory 24b for each horizontal ruled line.

【0046】次に、図9に、罫線データへの変換後の表
において、設定された改行ピッチと文字サイズとの対応
関係の例を説明する図を示す。図9(a)は、読み取ら
れた線分が認識されて(X,Y)座標情報が定められた
表を示したものである。この表は2本の垂直線分と2本
の水平線分からなる。
Next, FIG. 9 shows a diagram for explaining an example of the correspondence between the set line feed pitch and the character size in the table after conversion into ruled line data. FIG. 9A shows a table in which the read line segment is recognized and (X, Y) coordinate information is determined. This table consists of two vertical line segments and two horizontal line segments.

【0047】図9(b)〜図9(e)は、図9(a)の
表の線分を利用者によって設定された基準となる改行ピ
ッチと基準となる文字サイズを用いて、罫線に変換した
ものを示したものである。
9 (b) to 9 (e), the line segments of the table of FIG. 9 (a) are used as ruled lines by using the reference line feed pitch and the reference character size set by the user. It shows the converted one.

【0048】たとえば、図9(b)は、表の縦方向の罫
線の長さが、3行分の設定された改行ピッチと、設定さ
れた改行ピッチよりも小さいピッチ幅を合計したもので
表わされる場合であり、この表の中には、3行分の文字
が入力されることを示している。 この表の縦方向の罫
線の長さは、図9(b)のように設定された改行ピッチ
よりも小さいピッチ幅で調整されるので、入力された表
の垂直方向の線分の長さに忠実に等しくなるように変換
できる。また、表の縦方向には、設定された改行ピッチ
幅で入力可能な行数がとられるため、各行に、利用者が
設定した改行ピッチを持つ文字を入力することができ
る。
For example, FIG. 9B shows the length of ruled lines in the vertical direction of the table as the sum of the line feed pitches set for three lines and the pitch width smaller than the set line feed pitch. In this table, characters for three lines are input. The length of the ruled line in the vertical direction of this table is adjusted with a pitch width smaller than the line feed pitch set as shown in FIG. 9B, so that the length of the line segment in the vertical direction of the input table is adjusted. Can be converted to be faithfully equal. Further, since the number of lines that can be input with the set line feed pitch width is set in the vertical direction of the table, it is possible to input a character having a line feed pitch set by the user to each line.

【0049】図9(c)は、図9(b)のものよりも小
さい改行ピッチを設定した場合の例であり、表の中に5
行分の文字が入力されることを示している。
FIG. 9 (c) is an example of setting a line feed pitch smaller than that of FIG. 9 (b).
Indicates that the characters for the line will be input.

【0050】図9(d)は、表の横方向の罫線の幅が、
設定された基準となる文字サイズの整数倍によって表わ
されるものを示しており、この表の中には、一行当り6
文字が入力されることを示している。このように、表の
横方向の罫線の幅は、設定された基準となる文字サイズ
の整数倍、すなわち終了桁−開始桁によって決まる桁数
になるように調整され、各行において、利用者によって
設定された文字サイズの文字が入力できる。
FIG. 9D shows that the width of the ruled line in the horizontal direction of the table is
Characters that are represented by an integer multiple of the set reference character size are shown. In this table, 6 lines per line are shown.
Indicates that a character will be input. In this way, the width of the ruled line in the horizontal direction of the table is adjusted to be an integer multiple of the set reference character size, that is, the number of digits determined by the end digit-start digit, and is set by the user in each row. You can enter characters in the specified font size.

【0051】図9(e)は、図9(d)のものよりも小
さい文字サイズを設定した場合の例であり、表の中に一
行当り10文字が入力されることを示している。
FIG. 9E shows an example in which a character size smaller than that of FIG. 9D is set, and shows that 10 characters are input per line in the table.

【0052】以上のようにして、基準となる改行ピッチ
及び文字サイズを利用者が望む値に設定することによっ
て、表を構成する入力された線分のうち垂直方向の線分
の長さを変えずに、表の中に設定された改行ピッチと文
字サイズの文字又は記号等を入力することが可能とな
る。
As described above, by setting the reference line feed pitch and the character size to the values desired by the user, the length of the vertical line segment among the input line segments forming the table is changed. Instead, it becomes possible to input the line feed pitch and the character size of characters or symbols set in the table.

【0053】[0053]

【発明の効果】この発明によれば、基準となる改行ピッ
チと基準となる文字サイズが設定され、垂直線分変換手
段が、垂直線分の長さが基準となる改行ピッチよりも大
きい場合に、垂直線分の長さを基準となる改行ピッチの
長さに等しい行に分割し、分割できなかった垂直線分の
余りの長さの部分に対してその長さに等しい改行ピッチ
の行を設け、垂直線分を、一つ又は複数個の基準となる
改行ピッチに等しい行と基準となる改行ピッチよりも小
さい余りの長さに等しい改行ピッチの行との長さの和に
相当する長さを持つ縦方向の罫線に変換するため、垂直
方向の線分の長さを変えずに縦方向の罫線が生成され、
所望の改行ピッチでもって文字・記号等を入力すること
ができる。
According to the present invention, when the reference line feed pitch and the reference character size are set, and the vertical line segment conversion means has a length of the vertical line segment larger than the reference line feed pitch. , Divide the length of the vertical line segment into lines equal to the length of the standard line feed pitch, and for the part of the remaining length of the vertical line segment that could not be divided, add a line with a line feed pitch equal to that length. The vertical line segment has a length equivalent to the sum of the length of one or more lines equal to the reference line feed pitch and the line with a line feed pitch equal to the remainder length smaller than the reference line feed pitch. Since it is converted to a vertical ruled line with a certain length, the vertical ruled line is generated without changing the length of the vertical line segment,
Characters and symbols can be input with a desired line feed pitch.

【0054】また、水平線分変換手段が、水平線分の長
さがその長さの範囲に基準となる文字サイズの文字を何
文字分含むことができるかを算出し、水平線分を、その
水平線分の長さの範囲に含むことのできる最大文字数分
に等しい長さを持つ横方向の罫線に変換するため、所望
の文字数でもって文字・記号等を入力することができ
る。
Further, the horizontal line segment conversion means calculates how many characters can be included in the length of the horizontal line segment and has a reference character size, and the horizontal line segment is converted into the horizontal line segment. Since it is converted into a horizontal ruled line having a length equal to the maximum number of characters that can be included in the length range, characters / symbols can be input with the desired number of characters.

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

【図1】この発明の基本構成を示すブロック図である。FIG. 1 is a block diagram showing a basic configuration of the present invention.

【図2】この発明の一実施例の構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing the configuration of an embodiment of the present invention.

【図3】この発明で用いられる線分データ、罫線デー
タ、及び設定データのデータ構成の説明図である。
FIG. 3 is an explanatory diagram of a data structure of line segment data, ruled line data, and setting data used in the present invention.

【図4】この発明の罫線変換の全体動作の概略フローチ
ャートである。
FIG. 4 is a schematic flowchart of the overall operation of ruled line conversion according to the present invention.

【図5】この発明の罫線変換処理の詳細フローチャート
である。
FIG. 5 is a detailed flowchart of ruled line conversion processing of the present invention.

【図6】この発明の罫線変換処理で使用するデータの説
明図である。
FIG. 6 is an explanatory diagram of data used in the ruled line conversion processing of the present invention.

【図7】縦罫線の変換処理の詳細フローチャートであ
る。
FIG. 7 is a detailed flowchart of vertical ruled line conversion processing.

【図8】横罫線の変換処理の詳細フローチャートであ
る。
FIG. 8 is a detailed flowchart of horizontal ruled line conversion processing.

【図9】設定された改行ピッチと文字サイズとの対応関
係の例を示す説明図である。
FIG. 9 is an explanatory diagram showing an example of a correspondence relationship between a set line feed pitch and a character size.

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

1 線分データ認識手段 2 線分データ格納手段 3 垂直水平判定手段 4 基準改行ピッチ設定手段 5 基準文字サイズ設定手段 6 改行ピッチ格納手段 7 文字サイズ格納手段 8 垂直線分変換手段 9 水平線分変換手段 10 罫線データ格納手段 21 入力装置 22 読取装置 23 制御装置 24 記憶装置 24a 線分データメモリ 24b 罫線データメモリ 24c 設定データメモリ 25 表示装置 26 印刷装置 1 line segment data recognition means 2 line segment data storage means 3 vertical / horizontal determination means 4 reference line feed pitch setting means 5 reference character size setting means 6 line feed pitch storage means 7 character size storage means 8 vertical line segment conversion means 9 horizontal line segment conversion means 10 Ruled Line Data Storage Means 21 Input Device 22 Reader 23 Control Device 24 Storage Device 24a Line Segment Data Memory 24b Ruled Line Data Memory 24c Setting Data Memory 25 Display Device 26 Printing Device

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 9071−5L G06F 15/62 325 K Continuation of front page (51) Int.Cl. 6 Identification number Office reference number FI technical display location 9071-5L G06F 15/62 325 K

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力された文書情報の中から直線状の線
分を認識する線分データ認識手段と、 認識された線分の文書に対する座標情報を格納する線分
データ格納手段と、前記座標情報から格納された線分が
文書に対して垂直線分であるか水平線分であるかを判定
する垂直水平判定手段と、 文書の行間隔を決める基準となる改行ピッチを設定する
基準改行ピッチ設定手段と、 文書の一行当りの文字幅を決める基準となる文字サイズ
を設定する基準文字サイズ設定手段と、 設定された基準となる改行ピッチを格納する改行ピッチ
格納手段と、 設定された基準となる文字サイズを格納する文字サイズ
格納手段と、 前記基準となる改行ピッチを利用して垂直水平判定手段
によって判定された垂直線分を縦方向の罫線に変換する
垂直線分変換手段と、 前記基準となる文字サイズを利用して垂直水平判定手段
によって判定された水平線分を横方向の罫線に変換する
水平線分変換手段と、 垂直線分変換手段及び水平線分変換手段によって求めら
れた罫線のデータを格納する罫線データ格納手段とを備
え、 垂直線分の長さが基準となる改行ピッチよりも大きい場
合に、垂直線分変換手段が、垂直線分の長さを基準とな
る改行ピッチの長さに等しい行に分割し、分割できなか
った垂直線分の余りの長さの部分に対してその長さに等
しい改行ピッチの行を設け、垂直線分を、一つ又は複数
個の基準となる改行ピッチに等しい行と基準となる改行
ピッチよりも小さい余りの長さに等しい改行ピッチの行
との長さの和に相当する長さを持つ縦方向の罫線に変換
することを特徴とする、罫線変換機能を持つ文書情報処
理装置。
1. A line segment data recognizing means for recognizing a straight line segment from input document information, a line segment data storing means for storing coordinate information of the recognized line segment document, and the coordinates. Vertical / horizontal determination means for determining whether the line segment stored from the information is a vertical line segment or a horizontal line segment for the document, and a reference line feed pitch setting for setting a line feed pitch which is a reference for determining the line spacing of the document. Means, a reference character size setting means for setting a character size as a reference for determining the character width per line of a document, a line feed pitch storing means for storing a set line feed pitch as a reference, and a set reference A character size storage means for storing a character size; a vertical line segment conversion means for converting a vertical line segment determined by the vertical / horizontal determination means into a vertical ruled line by using the reference line feed pitch; A horizontal line segment conversion means for converting a horizontal line segment determined by the vertical / horizontal determination means into a horizontal ruled line using the reference character size; and a ruled line obtained by the vertical line segment conversion means and the horizontal line segment conversion means. When the length of the vertical line segment is larger than the standard line feed pitch, the vertical line segment conversion unit uses the ruled line data storage means for storing data. Divide into lines equal to the length, provide a line with a line feed pitch equal to that length to the remaining length of the vertical line segment that could not be divided, and use one or more vertical line segments as a reference. It is characterized in that it is converted into a vertical ruled line having a length corresponding to the sum of the length of the line equal to the line feed pitch and the line of the line feed pitch equal to the remainder length smaller than the reference line feed pitch. Yes, with ruled line conversion function Write the information processing apparatus.
【請求項2】 入力された文書情報の中から直線状の線
分を認識する線分データ認識手段と、 認識された線分の文書に対する座標情報を格納する線分
データ格納手段と、前記座標情報から格納された線分が
文書に対して垂直線分であるか水平線分であるかを判定
する垂直水平判定手段と、 文書の行間隔を決める基準となる改行ピッチを設定する
基準改行ピッチ設定手段と、 文書の一行当りの文字幅を決める基準となる文字サイズ
を設定する基準文字サイズ設定手段と、 設定された基準となる改行ピッチを格納する改行ピッチ
格納手段と、 設定された基準となる文字サイズを格納する文字サイズ
格納手段と、 前記基準となる改行ピッチを利用して垂直水平判定手段
によって判定された垂直線分を縦方向の罫線に変換する
垂直線分変換手段と、 前記基準となる文字サイズを利用して垂直水平判定手段
によって判定された水平線分を横方向の罫線に変換する
水平線分変換手段と、 垂直線分変換手段及び水平線分変換手段によって求めら
れた罫線のデータを格納する罫線データ格納手段とを備
え、水平線分変換手段が、水平線分の長さがその長さの
範囲に基準となる文字サイズの文字を何文字分含むこと
ができるかを算出し、水平線分を、その水平線分の長さ
の範囲に含むことのできる最大文字数分に等しい長さを
持つ横方向の罫線に変換することを特徴とする、罫線変
換機能を持つ文書情報処理装置。
2. A line segment data recognizing means for recognizing a straight line segment from the input document information, a line segment data storing means for storing coordinate information of the recognized line segment document, and the coordinates. Vertical / horizontal determination means for determining whether the line segment stored from the information is a vertical line segment or a horizontal line segment for the document, and a reference line feed pitch setting for setting a line feed pitch which is a reference for determining the line spacing of the document. Means, a reference character size setting means for setting a character size as a reference for determining the character width per line of a document, a line feed pitch storing means for storing a set line feed pitch as a reference, and a set reference A character size storage means for storing a character size; a vertical line segment conversion means for converting a vertical line segment determined by the vertical / horizontal determination means into a vertical ruled line by using the reference line feed pitch; A horizontal line segment conversion means for converting a horizontal line segment determined by the vertical / horizontal determination means into a horizontal ruled line using the reference character size; and a ruled line obtained by the vertical line segment conversion means and the horizontal line segment conversion means. A ruled line data storage means for storing data is provided, and the horizontal line segment conversion means calculates how many characters of a character size to be a reference can be included in the range of the length of the horizontal line segment, A document information processing apparatus having a ruled line conversion function, which converts a horizontal line segment into a horizontal ruled line having a length equal to the maximum number of characters that can be included in the range of the length of the horizontal line segment.
JP05307793A 1993-12-08 1993-12-08 Document information processing device with ruled line conversion function Expired - Fee Related JP3102979B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05307793A JP3102979B2 (en) 1993-12-08 1993-12-08 Document information processing device with ruled line conversion function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05307793A JP3102979B2 (en) 1993-12-08 1993-12-08 Document information processing device with ruled line conversion function

Publications (2)

Publication Number Publication Date
JPH07160789A true JPH07160789A (en) 1995-06-23
JP3102979B2 JP3102979B2 (en) 2000-10-23

Family

ID=17973311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05307793A Expired - Fee Related JP3102979B2 (en) 1993-12-08 1993-12-08 Document information processing device with ruled line conversion function

Country Status (1)

Country Link
JP (1) JP3102979B2 (en)

Also Published As

Publication number Publication date
JP3102979B2 (en) 2000-10-23

Similar Documents

Publication Publication Date Title
US4608662A (en) Method for editing document
US6208744B1 (en) Document image processor and method for setting a document format conforming to a document image
JP3474961B2 (en) Document information processing device
JP3102979B2 (en) Document information processing device with ruled line conversion function
JPS63302083A (en) Printer
JP2995313B2 (en) Document data output device
JP2525333B2 (en) Output device
JP2951809B2 (en) Handwritten font printing method
JP3264969B2 (en) Document creation device and document creation method
JP2682873B2 (en) Recognition device for tabular documents
JP3139955B2 (en) Information processing method and apparatus
JPH08293033A (en) Information processor
JPH0225355A (en) Data output device
JP3056850B2 (en) Document creation device with graph creation function
JP3404770B2 (en) Document processing device
JP2555558B2 (en) Character processor
JPH08315164A (en) Layout correcting device
JPH02301862A (en) Document preparing device
JPH07234868A (en) Document preparing device
JPH08194696A (en) Document image processor
JPH03153298A (en) Document output device
JPH06337859A (en) Document generation device
JPH0619443A (en) Information processor
JPH08171381A (en) Layout display device
JPH0721181A (en) Document processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070825

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080825

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080825

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090825

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090825

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100825

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110825

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees