Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3079508B2 - Document conversion device - Google Patents
[go: Go Back, main page]

JP3079508B2 - Document conversion device - Google Patents

Document conversion device

Info

Publication number
JP3079508B2
JP3079508B2 JP02005777A JP577790A JP3079508B2 JP 3079508 B2 JP3079508 B2 JP 3079508B2 JP 02005777 A JP02005777 A JP 02005777A JP 577790 A JP577790 A JP 577790A JP 3079508 B2 JP3079508 B2 JP 3079508B2
Authority
JP
Japan
Prior art keywords
ruled line
document
code
data
ruled
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
JP02005777A
Other languages
Japanese (ja)
Other versions
JPH03210658A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP02005777A priority Critical patent/JP3079508B2/en
Publication of JPH03210658A publication Critical patent/JPH03210658A/en
Application granted granted Critical
Publication of JP3079508B2 publication Critical patent/JP3079508B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ワードプロセッサ等の文書処理装置によっ
て作成された罫線を含む文書の機種間変換のための文書
変換装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document conversion device for converting a document including a ruled line created by a document processing device such as a word processor between models.

〔従来の技術〕[Conventional technology]

ワードプロセッサ等の文書処理装置を利用すると、既
存の文書を転用することにより文書作成効率を上げられ
る。しかしながら、罫線を含む文書を対象とした場合は
機種間での互換性がとれないため、ある機種で作成した
罫線付き文書を他の機種で利用する際に変換に苦労して
いる。このような文書変換のためのプログラムもある
が、すべての機種間での変換用のものが用意されている
けではなく、バージョンアップが追従しきれなかった。
When a document processing device such as a word processor is used, the efficiency of document creation can be increased by diverting an existing document. However, when a document including a ruled line is targeted, compatibility between the models cannot be obtained. Therefore, when a document with a ruled line created by one model is used by another model, conversion is difficult. Although there is a program for such document conversion, not only a program for conversion between all models is prepared, but the version upgrade cannot follow up.

本発明の目的は、このような罫線付き文書の機種間変
換を容易に行うための文書変換装置を提供することにあ
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a document conversion device for easily performing such conversion between models of a document with ruled lines.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の文書変換装置は、文書のイメージデータを入
力する手段と、該入力されたイメージデータより罫線を
認識する手段と、該認識された罫線のイメージデータ
を、罫線コードと罫線の線分の接続状態を示すリンク情
報とからなるコードデータに変換する手段と、該変換さ
れた罫線のコードデータに対して変倍処理を行い、必要
な形式の罫線データへ変換する手段と、該変換された罫
線データを記録媒体へ出力する手段などで構成される。
The document conversion apparatus according to the present invention includes means for inputting image data of a document, means for recognizing a ruled line from the input image data, and converting the recognized ruled line image data into a ruled line code and a line segment of the ruled line. Means for converting to code data comprising link information indicating a connection state; means for performing scaling processing on the converted code data of the ruled line to convert it to ruled line data in a required format; and It is composed of means for outputting ruled line data to a recording medium.

〔作 用〕(Operation)

変換すべき文書をイメージデータとして入力し処理す
るので、入力文書を作成した機種がどのようなものであ
っても、目的の機種で処理可能な罫線データを得ること
ができる。そして、文書の文字データについては、他の
手段によって容易に変換できる。したがって、本装置を
利用することにより、あるワードプロセッサの機種で作
成した罫線付き文書を、それと互換性のない他の機種で
容易に利用できるになる。
Since the document to be converted is input and processed as image data, ruled line data that can be processed by the target model can be obtained regardless of the type of model that created the input document. The character data of the document can be easily converted by other means. Therefore, by using the present apparatus, a document with a ruled line created on a model of a certain word processor can be easily used on another model that is not compatible with the document.

罫線認識は文書の縮小イメージからも可能であり、ま
た変倍処理機能を有するため、変換すべき文書を複写機
等によって縮小し、あるいは解像度を落として入力でき
るので、処理に必要なメモリが少なくて済み、また情報
量が減った分だけ処理時間も少なくなる。さらに、文書
イメージデータの入力手段(スキャナ)で読取りが不可
能な大きな文書も扱うことができる。
Ruled line recognition is also possible from a reduced image of the document, and since it has a scaling function, the document to be converted can be reduced by a copying machine or the like or input at a reduced resolution, so that the memory required for processing is small. And the processing time is reduced by the reduced amount of information. Further, a large document which cannot be read by the input means (scanner) of the document image data can be handled.

また、コード化された罫線のデータ(コードデータに
は、上下左右の各方向等への線分の接続状態を示すリン
ク情報を持たせているので、変倍処理時のコードの再配
置が容易になる。
In addition, coded ruled line data (the code data has link information indicating the connection state of the line segment in each of the up, down, left, and right directions, so that the code can be easily rearranged during the scaling process. become.

〔実施例〕〔Example〕

第1図は本発明の一実施例に係る文書変換装置のブロ
ック図である。
FIG. 1 is a block diagram of a document conversion apparatus according to one embodiment of the present invention.

1はある機種のワードプロセッサ等で作成された文書
を読み取って、そのイメージデータを入力するためのス
キャナであり、このイメージデータはイメージデータ記
憶部2に格納される。このイメージデータは罫線認識が
可能であればよいので、文書を予め複写機で縮小してか
らスキャナ1で入力してもよく、またスキャナ1で解像
度を下げて文書を読み取ってもよい。したがって原寸の
文書のイメージデータまたは高解像度のイメージデータ
を入力する場合に比べイメージデータ記憶部2を容量を
大幅に削減できる。
Reference numeral 1 denotes a scanner for reading a document created by a certain type of word processor or the like and inputting the image data. The image data is stored in the image data storage unit 2. Since the image data only needs to be able to recognize the ruled line, the document may be reduced by a copying machine in advance and then input by the scanner 1 or the document may be read by the scanner 1 at a reduced resolution. Therefore, the capacity of the image data storage unit 2 can be significantly reduced as compared with the case where image data of a full-size document or high-resolution image data is input.

3は入力イメージデータより線分の芯線を抽出し、そ
のベクトルデータをベクトルデータ記憶部4に格納する
ベクトル化部である。このようにイメージデータをベク
トル化することにより、データ量が削減されてベクトル
データ記憶部4の容量を減らすことができるとともに、
後の処理の効率をあげることができる。
Reference numeral 3 denotes a vectorization unit that extracts a core line of a line segment from input image data and stores the vector data in a vector data storage unit 4. By vectorizing the image data in this manner, the amount of data can be reduced, and the capacity of the vector data storage unit 4 can be reduced.
The efficiency of subsequent processing can be increased.

5はベクトルデータより罫線を認識するベクトル認識
部である。ここで認識された罫線のデータはベクトルデ
ータ記憶部4に格納される。6は認識された罫線の切れ
の接続等の整形処理を行う編集部である。この編集は、
ディスプレイを介し対話処理によって行うことが実際的
である。
Reference numeral 5 denotes a vector recognition unit that recognizes ruled lines from vector data. The data of the ruled line recognized here is stored in the vector data storage unit 4. Reference numeral 6 denotes an editing unit that performs a shaping process such as connection of a recognized ruled line break. This edit
It is practical to do this by interactive processing via the display.

7はコード化部であって、編集処理後の罫線のデータ
を、例えば第2図に示す罫線コードと上下左右の各方向
への線分の接続状態を示すリンク情報とからなるコード
データに変換する。このコードデータはコードデータ記
憶部8に格納される。9はコード化された罫線のデータ
に対して拡大縮小処理を施す変倍処理部である。この変
倍処理を行うので、元の文書イメージを縮小して入力す
ることが可能となるのである。変倍処理結果はコードデ
ータ記憶部8に格納される。
Reference numeral 7 denotes a coding unit which converts the data of the ruled line after the editing process into, for example, code data including a ruled line code shown in FIG. 2 and link information indicating connection states of line segments in the upper, lower, left, and right directions. I do. This code data is stored in the code data storage unit 8. Reference numeral 9 denotes a scaling unit that performs a scaling process on the coded ruled line data. Since this scaling process is performed, the original document image can be reduced and input. The result of the scaling process is stored in the code data storage unit 8.

10は変倍処理結果データを変換文書を利用しようとす
るワードプロセッサの機種(目的機種)における罫線デ
ータに変換するデータ変換部であり、この変換結果は出
力部11によって例えばフロッピーディスクに出力され
る。12は各部を制御する制御部である。
Reference numeral 10 denotes a data conversion unit for converting the scaling result data into ruled line data of a model (target model) of a word processor that intends to use the converted document. The conversion result is output by the output unit 11 to, for example, a floppy disk. Reference numeral 12 denotes a control unit that controls each unit.

例えばワードプロセッサのA機種で作成された罫線付
き文書を、罫線付き文書についてA機種と互換性がない
B機種において利用する場合を考える。
For example, consider a case where a document with a ruled line created by a model A of a word processor is used by a model B that is not compatible with the model A with a ruled document.

この場合、A機種で作成した罫線付き文書をプリント
アウトする。
In this case, the document with the ruled line created by the model A is printed out.

このプリントアウトした罫線付き文書を、複写機を用
いて例えば縦横ともに半分に縮小(面積は4分の1に縮
小)してコピーする。
The printed document with ruled lines is copied by using a copier, for example, reducing the size in half both vertically and horizontally (the area is reduced to 1/4).

この縮小コピーをスキャナ1によって読み取らせてイ
メージデータを入力し、罫線の認識と必要な編集を行
う。そして、B機種で利用する文書サイズが元の文書の
サイズと同一であるならば、縦横を2倍に拡大する変倍
処理を罫線データに施し、さらにB機種で扱うことがで
きる形式の罫線データに変換してフロッピーディスクに
書き出す。なお、A機種で作成した文書がA4版で、B機
種ではB5版文書を作成したい場合等には、文書の大きさ
に応じた比率で縦及び横をそれぞれ変倍することにな
る。
The reduced copy is read by the scanner 1 and image data is input, and ruled lines are recognized and necessary editing is performed. If the document size used by the B model is the same as the size of the original document, the ruled line data is subjected to a scaling process for enlarging the size of the ruled data by two times, and the ruled line data in a format that can be handled by the B model And export it to a floppy disk. If the document created by the model A is the A4 version and the model B wants to create the B5 version document, the height and width are respectively scaled at a ratio corresponding to the size of the document.

元の文書の文字データについては互換性が一般にとれ
ているので、罫線データを書き出したフロッピーディス
クに(または別のフロッピーディスクに)、適当なソフ
トウェア手段を使用して元の文書データ中の文字データ
を転送すれば、このフロッピーディスクをB機種にセッ
トし、A機種で作成した罫線付き文書を利用して効率的
に文書を作成できる。
Since the character data of the original document is generally compatible, the character data in the original document data can be stored on the floppy disk from which the ruled line data has been written (or on another floppy disk) using appropriate software means. Then, the floppy disk can be set in the B model and the document can be efficiently created using the ruled document created by the A model.

ここで罫線の変倍について説明する。例えば第3図の
(a)に示す罫線の原図を2倍に拡大する場合、(b)
に示すように、罫線コードを補間する必要がある。罫線
コードは太さ、線種、色等の属性は別にして、第2図に
示すように11機種のコードがあるが、拡大後に元の形状
と相似形になるようにコードを再配置しなければならな
い。
Here, the scaling of the ruled line will be described. For example, when the original drawing of the ruled line shown in FIG.
As shown in (1), it is necessary to interpolate the ruled line code. As for the ruled line codes, there are 11 models of codes as shown in Fig. 2 apart from the attributes such as thickness, line type, and color, but rearrange the codes so that they become similar to the original shape after enlargement. There must be.

例えば原図上で第4図(a)に示すように、1行の中
での文字位置と罫線コードの並びを対応させると、文字
位置が0番から始まるとして、3番から7番に罫線コー
ドが配置されている。これに対し2倍拡大時には、第4
図(b)に示すように、文字位置を2倍にした位置に元
の罫線コードが配置され、そのコード間を水平方向の線
分であるコード(コード番号2)で補間する。すなわ
ち、文字位置6番に元の文字位置3番があったコード1
が配置され、同様に8番、10番、12番、14番の文字位置
にコード2,3,2,4がそれぞれ配置され、文字位置7番,9
番,11番にコード2が補間される。同様の処理を列に対
しても行えば、罫線コードの変倍処理ができる。
For example, as shown in FIG. 4 (a) on the original drawing, when the character position in one line is associated with the arrangement of the ruled line code, the character position starts from 0 and the ruled line code is changed from 3 to 7. Is arranged. On the other hand, at the time of double magnification, the fourth
As shown in FIG. 7B, the original ruled line code is arranged at a position where the character position is doubled, and the code is interpolated between the codes by a code (code number 2) which is a horizontal line segment. That is, the code 1 in which the character position No. 6 has the original character position No. 3
Are arranged, and similarly, the codes 2, 3, 2, and 4 are arranged at the character positions of 8, 10, 12, and 14, respectively, and the character positions of 7, 9
The code 2 is interpolated to the numbers 11 and 11. If the same processing is performed on the column, the scaling processing of the ruled line code can be performed.

このような変倍処理でのコード補間のために、コード
化部7及び変倍処理部9では罫線を罫線コードとリンク
情報の組み合わせで表現する。すなわち、罫線コードに
対応して第5図(a)に示すように上下左右の各方向の
リンク情報を持たせる。例えば十字状のコード7なら上
下左右の4方向にリンク情報を持たせ、角にあたるコー
ド1,4,9,11なら2方向にリンク情報を持たせ、水平また
は垂直線分のコード2,5なら2方向にリンク情報を持た
せる。
For code interpolation in such scaling processing, the coding unit 7 and the scaling unit 9 express ruled lines by a combination of ruled line codes and link information. That is, as shown in FIG. 5A, link information in each of the upper, lower, left, and right directions is provided corresponding to the ruled line code. For example, a cross-shaped code 7 has link information in four directions (up, down, left, and right), a code 1,4,9,11 at the corner has link information in two directions, and a code 2,5 for a horizontal or vertical line. Link information is provided in two directions.

第4図(a)の例では、3番の文字位置にコード1が
あり、その右にコード4が並んでいるので、3番のコー
ド1の右方向のリンクは接続されているとし、4番の文
字位置の左方向のリンクも接続されているとする。そこ
で2倍に拡大したときには、その両方のコードの隙間に
あたる7番の文字位置が左右両側からリンクで指示され
るため、水平方向のコード2で補間する。
In the example of FIG. 4A, the code 1 is located at the third character position, and the code 4 is arranged on the right side of the code 1. Therefore, it is assumed that the right link of the third code 1 is connected. It is assumed that the link to the left of the number character position is also connected. Therefore, when the character is enlarged by a factor of two, the character position 7 corresponding to the gap between the two codes is indicated by a link from both the left and right sides.

第5図(b)はリンクと補間の説明図であり、点線が
補間されたコード、円弧はコード間にリンクを示す。
FIG. 5B is an explanatory diagram of the link and the interpolation, in which the dotted line indicates the interpolated code, and the arc indicates the link between the codes.

なお、データ変換部10の変換出力は罫線コードのみの
データである。
The conversion output of the data conversion unit 10 is data of only the ruled line code.

逆に縮小する場合には、コードの再配置後にコード2,
5を他のコードより優先順位を低く設定し、このコード
2,5が他のコードと重なった場合にはコード2,5のほうを
消去する。コード2,5以外のコード同士が重なった場合
には、後から重ねたコードのほうが残す(逆でもよい)
が、罫線コードのつながりの先端と後端部は元のコード
を優先させる。当然ながら、重ねたコードの処理を別の
方法で行ってもよい。
Conversely, when shrinking, code 2,2
Set 5 to a lower priority than other codes and set this code
If 2,5 overlaps with another code, code 2,5 is deleted. When codes other than codes 2 and 5 overlap, the code that is added later remains (or vice versa)
However, the leading and trailing ends of the connection of the ruled line code give priority to the original code. Of course, the processing of the overlapped code may be performed by another method.

なお、変倍処理をベクトルデータに対して実行し、そ
の結果を罫線コードに変換してもよいし、あるいは罫線
コードを一旦ベクトルデータに戻して変倍処理を行い、
その結果を罫線コードに変換してもよい。
The scaling process may be performed on the vector data, and the result may be converted into a ruled line code.
The result may be converted to a ruled line code.

〔発明の効果〕〔The invention's effect〕

以上の説明から明らかな如く、本発明によれば、罫線
付き文書がどのような機種によって作成されたものであ
るかを選ばずに罫線データの機種間変換を行うことがで
きるので、互換性のないワードプロセッサ機種間での既
存の罫線付き文書の利用が容易となるとともに、変換す
べき文書のイメージを縮小して入力することができるの
で、装置に必要なメモリ容量の削減と変換処理の効率化
を図ることができる。
As is apparent from the above description, according to the present invention, the ruled line data can be converted between models without selecting the type of the document with the ruled line. This makes it easier to use existing ruled documents between word processor models that do not have the necessary functions, and also allows the image of the document to be converted to be reduced and input, reducing the memory capacity required for the device and increasing the efficiency of the conversion process. Can be achieved.

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

第1図は本発明の一実施例に係る文書変換装置のブロッ
ク図、第2図は罫線コードを示す図、第3図は罫線の原
図及び2倍図を示す図、第4図は2倍拡大の場合の罫線
コードの再配置の説明図、第5図は罫線コードの補間と
リンクの説明図である。 1……スキャナ、3……ベクトル化部、 5……罫線認識部、6……編集部、 7……コード化部、9……変倍処理部、 10……データ変換部、11……出力部。
FIG. 1 is a block diagram of a document conversion apparatus according to an embodiment of the present invention, FIG. 2 is a diagram showing ruled line codes, FIG. 3 is a diagram showing original and doubled diagrams of ruled lines, and FIG. FIG. 5 is an explanatory view of rearrangement of ruled line codes in the case of enlargement, and FIG. 5 is an explanatory diagram of ruled line code interpolation and links. 1 ... Scanner, 3 ... Vector conversion unit, 5 ... Rule line recognition unit, 6 ... Editing unit, 7 ... Code coding unit, 9 ... Scaling processing unit, 10 ... Data conversion unit, 11 ... Output section.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 17/21 G06F 19/00 G06T 7/00 G06T 11/60 G06K 9/46 ──────────────────────────────────────────────────続 き Continuation of the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 17/21 G06F 19/00 G06T 7/00 G06T 11/60 G06K 9/46

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】文書のイメージデータを入力する手段と、
該入力されたイメージデータより罫線を認識する手段
と、該認識された罫線のイメージデータを、罫線コード
と罫線の線分の接続状態を示すリンク情報とからなるコ
ードデータに変換する手段と、該変換された罫線のコー
ドデータに対して変倍処理を行い、必要な形式の罫線デ
ータへ変換する手段と、該変換された罫線データを記録
媒体へ出力する手段とを具備することを特徴とする文書
変換装置。
Means for inputting image data of a document;
Means for recognizing ruled lines from the input image data, means for converting the recognized ruled line image data into code data comprising a ruled line code and link information indicating the connection state of the ruled line segments, It is characterized by comprising means for performing a scaling process on the converted ruled line code data and converting the converted ruled line data into a required format ruled line data, and means for outputting the converted ruled line data to a recording medium. Document conversion device.
JP02005777A 1990-01-12 1990-01-12 Document conversion device Expired - Fee Related JP3079508B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02005777A JP3079508B2 (en) 1990-01-12 1990-01-12 Document conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02005777A JP3079508B2 (en) 1990-01-12 1990-01-12 Document conversion device

Publications (2)

Publication Number Publication Date
JPH03210658A JPH03210658A (en) 1991-09-13
JP3079508B2 true JP3079508B2 (en) 2000-08-21

Family

ID=11620546

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02005777A Expired - Fee Related JP3079508B2 (en) 1990-01-12 1990-01-12 Document conversion device

Country Status (1)

Country Link
JP (1) JP3079508B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2623618B2 (en) * 1987-12-09 1997-06-25 橋本フォーミング工業株式会社 Vehicle windows

Also Published As

Publication number Publication date
JPH03210658A (en) 1991-09-13

Similar Documents

Publication Publication Date Title
US4893258A (en) Data processing apparatus having enlargement/reduction functions capable of setting different magnification in different directions
JP3833735B2 (en) Replication device and method for incrementing spacing between text lines of media in replication device
EP0320014A2 (en) Image processing system
JP3759982B2 (en) Replication device and method for reducing document replication page number in replication device
JPH028339B2 (en)
US5163122A (en) Image processing system
JPH06236367A (en) Control method for word processor
US5199102A (en) Image processing apparatus having multiple display areas for editing
JPH0221024B2 (en)
JP3079508B2 (en) Document conversion device
JPH0481227B2 (en)
JPS58208865A (en) Document producing device
JP3048510B2 (en) Sound information processing device
JPS6084590A (en) image processing system
JP3064305B2 (en) Digital copier
JPH0786685B2 (en) Layout equipment
JPH0473192B2 (en)
JPH0581397A (en) Page scroll method and image processor
JPH0459668B2 (en)
JP2831318B2 (en) Editing device
JPH0415876A (en) Information processor
JP2002077598A (en) Method and device for processing image, and computer- readable recording medium on which image processing program is recorded
JPH0459669B2 (en)
JPH04218864A (en) Image editing device
JPH06110442A (en) Character / graphics processing apparatus and method for processing deformation of character or graphic

Legal Events

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