JPH08241303A - Document processor - Google Patents

Document processor

Info

Publication number
JPH08241303A
JPH08241303A JP7042831A JP4283195A JPH08241303A JP H08241303 A JPH08241303 A JP H08241303A JP 7042831 A JP7042831 A JP 7042831A JP 4283195 A JP4283195 A JP 4283195A JP H08241303 A JPH08241303 A JP H08241303A
Authority
JP
Japan
Prior art keywords
document
format
read
format information
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7042831A
Other languages
Japanese (ja)
Inventor
Hiromi Yamamuro
弘美 山室
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 JP7042831A priority Critical patent/JPH08241303A/en
Publication of JPH08241303A publication Critical patent/JPH08241303A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE: To easily obtain format data on a document to be referred to and easily set the format of a new document by recognizing a character part of a read document image, deciding a blank part, and setting obtained format information as format data. CONSTITUTION: The document file to be processed is read in a memory PMEM2. When format alteration is selected in a menu, a format information alteration screen is displayed. Respective items are set to values read out of the format information of the read-in document file. When a column number and column spacing read is clicked, a document begins to be read in by a scanner 15, the number of groups of character parts of the read document is set as the number of columns, and the sizes of the blanks between the groups of the character parts are set as column spacing. Then the format information is set according to the set item values and a document is displayed according to the format.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば文書の組版や編
集を行う文書処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing device for typesetting and editing documents, for example.

【0002】[0002]

【従来の技術】従来、高度な文書の組版・編集を行う文
書処理装置には、文書データ作成時に、段組、段間等の
情報を持ち、出力書式を一括して設定することにより出
力文書の組体裁を管理できるものがあった。
2. Description of the Related Art Conventionally, a document processing apparatus for performing high-level document typesetting / editing has information about columns, columns, etc. at the time of creating document data, and sets output formats collectively to output documents. There was something that could manage the organization of.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記のよ
うな従来例にあっては、印刷された状態で存在している
文書と同じ体裁で文書を作成しようとする場合、既存文
書の段組数を数え、段間のサイズを計って新たに書式を
設定を行わなければならず、参考にした文書と、でき上
がった文書とを比較しながら文書作成を行わなければな
いという難点があった。
However, in the conventional example as described above, when a document is created in the same format as the document existing in the printed state, the number of columns of the existing document is changed. There was a drawback that it was necessary to count and measure the space between columns to newly set a format, and to create a document while comparing the referred document with the completed document.

【0004】本発明は、以上のような局面にかんがみて
なされたもので、参考にする文書の書式に関するデータ
が比較的簡単に得られ、新たな文書の書式を容易に設定
し得る手段の提供を目的としている。
The present invention has been made in view of the above situation, and provides a means for relatively easily obtaining data regarding the format of a document to be referenced and easily setting the format of a new document. It is an object.

【0005】[0005]

【課題を解決するための手段】このため、本発明は、文
書情報を入力して文書を作成する文書処理装置におい
て、印刷された画像を読み取るための読み取り手段と、
この読み取り手段により読み取った原稿イメージの文字
部分を認識するための認識手段と、前記読み取り手段に
より読み取った文字部分の中でさらに空白部分を判別す
るための判別手段と、これらの各獲得手段により獲得し
た書式情報を書式データとして設定するための設定手段
とを備えるよう構成することにより、前記目的を達成し
ようとするものである。
Therefore, according to the present invention, a reading means for reading a printed image in a document processing apparatus for inputting document information to create a document,
Recognition means for recognizing the character portion of the document image read by the reading means, discrimination means for further discriminating a blank portion in the character portion read by the reading means, and acquisition by each of these acquisition means It is intended to achieve the above-mentioned object by providing the setting means for setting the above-mentioned format information as format data.

【0006】[0006]

【作用】以上のような本発明装置構成により、参考にす
る文書の書式に関するデータを簡単に獲得することがで
き、それを新たな文書書式として設定することができ
る。
With the above-described device configuration of the present invention, it is possible to easily obtain data relating to a document format to be referred to and set it as a new document format.

【0007】[0007]

【実施例】以下、本発明を添付図面に従い、複数の実施
例に基づいて詳細に説明する: (実施例1)図1は、本実施例の文書処理装置の主要構
成を示すブロック図である。図1において、1は、後述
するメモリPMEM2上のプログラムを実行することに
より本装置を制御するためのCPUを示す。2は、上記
プログラムを格納するためのメモリ(PMEM)、3
は、RS232等の送受信手段を可能にする通信I/F
(インタフェース)を示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail based on a plurality of embodiments with reference to the accompanying drawings: (Embodiment 1) FIG. 1 is a block diagram showing a main configuration of a document processing apparatus according to the present embodiment. . In FIG. 1, reference numeral 1 denotes a CPU for controlling this apparatus by executing a program on a memory PMEM2 described later. 2 is a memory (PMEM) for storing the above program, 3
Is a communication I / F that enables transmission / reception means such as RS232
(Interface) is shown.

【0008】4はキーボード、5はポインティングデバ
イス、6は、キーボード4とポインティングデバイス5
とを本装置に接続するためのキーボードI/F(キーボ
ードインタフェース)である。7は、本装置内部のアド
レス信号・データ信号・制御信号を伝送するためのシス
テムバスを示す。8は、画像表示に用いるCRT、9
は、画像をCRT8に表示するため、イメージデータを
展開するVRAM(ビデオRAM)である。
Reference numeral 4 is a keyboard, 5 is a pointing device, 6 is a keyboard 4 and a pointing device 5.
Is a keyboard I / F (keyboard interface) for connecting and to the device. Reference numeral 7 denotes a system bus for transmitting address signals, data signals and control signals inside the device. 8 is a CRT used for image display, 9
Is a VRAM (video RAM) for expanding image data in order to display an image on the CRT 8.

【0009】10はフロッピーディスク(FD)ドライ
ブ、11はハードディスク(HD)ドライブであり、1
2はフロッピーディスクドライブ10とハードディスク
ドライブ11とをシステムバス7に接続可能とするディ
スクI/F(ディスクインタフェース)を示す。13
は、プリンタ14に出力するイメージデータを格納する
ためのイメージメモリ(IMEM)、14は、画像出力
に用いるプリンタを示す。15は、画像の読み取りに用
いるスキャナ、16は、読み取った画像から文字を認識
するための文字認識装置を示す。
Reference numeral 10 is a floppy disk (FD) drive, 11 is a hard disk (HD) drive, and 1
Reference numeral 2 denotes a disk I / F (disk interface) capable of connecting the floppy disk drive 10 and the hard disk drive 11 to the system bus 7. Thirteen
Is an image memory (IMEM) for storing image data to be output to the printer 14, and 14 is a printer used for image output. Reference numeral 15 is a scanner used for reading an image, and 16 is a character recognition device for recognizing characters from the read image.

【0010】上記構成の装置において文書を処理する場
合、文書処理プログラムと共に、処理対象の文書ファイ
ルあるいは文書ファイルの一部が、メモリPMEM2上
に読み込まれている。読み込まれた文書ファイルは、図
6にファイルフォーマットの一例を示すように、文書ヘ
ッダ61、文書データ62、書式情報部63に大別でき
る。
When a document is processed by the apparatus having the above-mentioned structure, the document processing program and the document file to be processed or a part of the document file are read into the memory PMEM2. The read document file can be roughly classified into a document header 61, document data 62, and a format information section 63, as shown in an example of the file format in FIG.

【0011】文書ヘッダ61には、文書データ62・書
式情報部63にアクセスするための先頭ポジションデー
タが入っており、文書データ62は文書そのもの、ま
た、書式情報部63は、表示・印刷出力時の形式を設定
するためのデータが格納されている。これらのデータ
は、常にメモリ上にあるわけでなく、必要に応じて図1
におけるフロッピーディスク10やハードディスク11
から読み出されることもある。
The document header 61 contains head position data for accessing the document data 62 and the format information section 63. The document data 62 is the document itself, and the format information section 63 is for display / print output. Stores data for setting the format. These data are not always in the memory, and if necessary,
Floppy disk 10 and hard disk 11 in
Sometimes read from.

【0012】なお、図6において、64は、書式情報部
63の先頭ポジション、65は本文情報、66は大見出
し情報、67は小組情報の各部分を示す。
In FIG. 6, reference numeral 64 is the head position of the format information section 63, 65 is the text information, 66 is the large headline information, and 67 is the small set information.

【0013】つぎに、本実施例の処理の全体の流れにつ
いて説明する。図2に、CPU1の書式情報の変更処理
動作シーケンスを説明するフローチャートを示し、図3
は、文書選択用メニュー画面の一表示例である。
Next, the overall flow of the processing of this embodiment will be described. FIG. 2 is a flow chart for explaining the format information change processing operation sequence of the CPU 1, and FIG.
FIG. 4 is a display example of a document selection menu screen.

【0014】まず、図3のシステムメニュー31の部分
だけを表示している状態から処理を開始する。図2にお
けるステップS1では、処理の対象となるファイルを特
定させる。処理対象となる文書は、新規作成文書、作成
済文書のいずれでもよいが、ここではすでにフロッピー
ディスク(FD)に作成済のファイルを対象にするもの
とする。
First, the process is started from the state where only the system menu 31 portion of FIG. 3 is displayed. In step S1 in FIG. 2, a file to be processed is specified. The document to be processed may be a newly created document or a created document, but here it is assumed that a file already created on the floppy disk (FD) is targeted.

【0015】オペレータはその文書ファイルの入ったF
Dを図1におけるFDドライブ10にセットし、図3に
おけるシステムメニュー31から、FD上のファイル読
み出しを選択する。これによって、読み出し対象となっ
たFDに格納されているファイルが読み出される。本実
施例ではFD中のファイルは既存文書32のみである。
この文書32を、図1におけるポインティングデバイス
5を用いて指定することにより、ステップS1の文書の
指定は終了し、指定された文書はフロッピーディスク1
0からメモリPMEM2に読み込まれる(図1)。
The operator selects the F containing the document file.
D is set in the FD drive 10 in FIG. 1, and file reading on the FD is selected from the system menu 31 in FIG. As a result, the file stored in the FD that is the read target is read. In this embodiment, the file in the FD is only the existing document 32.
By designating this document 32 using the pointing device 5 in FIG. 1, the designation of the document in step S1 is completed, and the designated document is the floppy disk 1
It is read from 0 to the memory PMEM2 (FIG. 1).

【0016】つぎに、図2のステップS2では、ステッ
プS1で読み込んだ文書の書式変更を行う。文書読み込
み後、メニューから書式変更を選択すると、書式情報変
更画面が図4に示す表示例のように表示され、各パラメ
ータの変更を行うことができる。各項目は図6における
書式情報63から読み出された値になっている。ここで
メニュー41から項目を選び設定を行う。
Next, in step S2 of FIG. 2, the format of the document read in step S1 is changed. When the format change is selected from the menu after reading the document, the format information change screen is displayed as in the display example shown in FIG. 4, and each parameter can be changed. Each item is a value read from the format information 63 in FIG. Here, items are selected from the menu 41 and set.

【0017】ついで、図2のステップS3では、図4に
おける段組数・段間読み込み42がクリックされると、
選択されたことを示すためにフィールドが反転し、文書
をスキャナ装置で読み込み始め、読み込んだ文書の文字
部分の固まり(グループ)の数が段数として設定され、
文字部分の固まり間の空白のサイズが段間として設定さ
れる。この段数、段間の情報設定処理動作シーケンスの
フローチャートを図5を用いて説明する。
Next, in step S3 of FIG. 2, when the column number / column reading 42 in FIG. 4 is clicked,
The field is inverted to indicate that the document has been selected, the document is started to be read by the scanner device, and the number of groups (groups) of character parts of the read document is set as the number of columns.
The size of the space between the chunks of characters is set as the gap. A flowchart of the operation sequence of the information setting process between the number of stages and the stage will be described with reference to FIG.

【0018】まず、ステップS10で、図1のメモリP
MEM2に格納されている参照文書情報から、1行分の
データを読み込む。つぎに、読み込んだデータの語彙分
析をして縦組か横組かを判別する(ステップS11)。
縦組であれば、ステップS14に進み、空白行になって
いるか否かを調べ、空白行になっていたら、段数カウン
タをインクリメントする(ステップS15)。一方、空
白行になっていなく、ステップS16で全文チェックを
終了していなければ、ステップS10から繰り返し処理
をする。
First, in step S10, the memory P of FIG.
One line of data is read from the reference document information stored in MEM2. Next, vocabulary analysis of the read data is performed to determine whether it is vertical writing mode or horizontal writing mode (step S11).
If it is vertical writing, the process proceeds to step S14 to check whether it is a blank line, and if it is a blank line, increment the column counter (step S15). On the other hand, if it is not a blank line and the full-text check is not completed in step S16, the process is repeated from step S10.

【0019】ステップS11で、横組の場合であれば、
文字が空白文字になっているか否かを調べ(ステップS
12)、空白文字になっていなく、かつ全文チェックが
終了していなかったらステップS10から繰り返し処理
をする。一方、ステップS12で空白文字になっていた
ら、その行の(n行)段数カウンタをインクリメントし
(ステップS13)、ステップS16で全文チェックを
終了していなければ、ステップS10から繰り返し処理
を行う。
At step S11, in the case of horizontal writing mode,
Check whether the character is a blank character (step S
12) If there is no blank character and the full-text check is not completed, the process is repeated from step S10. On the other hand, if a blank character is found in step S12, the (n-row) stage number counter for that line is incremented (step S13). If the full-text check is not completed in step S16, the process is repeated from step S10.

【0020】ステップS16で全文チェックが終了した
ら、横組の場合であれば、各カウンタの(N個)最頻度
の値を段数にセットして(ステップS17)、ステップ
S18で縦組、横組共に段数が1の時は、その値を段数
にセットし(ステップS19)、多段組となったら用紙
サーチを行い、文字部分間の空白距離を得る(ステップ
S20)。その空白距離を段間にセットして(ステップ
S21)、本サブルーチンは終了する。
When the full-text check is completed in step S16, in the case of horizontal composition, the (N) most frequent value of each counter is set to the number of columns (step S17), and vertical composition and horizontal composition are performed in step S18. When the number of columns is 1, the value is set to the number of columns (step S19), and when the number of columns is set, paper search is performed to obtain a blank distance between character portions (step S20). The blank distance is set between the steps (step S21), and this subroutine ends.

【0021】一方、前記図2の書式情報の変更処理動作
シーケンスフローチャートに戻り、ステップS3におい
て、段数・段間の読み込みではないと判定した場合は、
ステップS6で、設定された項目・値に従って図6の書
式情報63を設定する。そして、ステップS7ですべて
の書式変更が終了したなら、文書を書式に従って表示し
(ステップS8)、他に作成する文書がないならば(ス
テップS9)終了し、他に作成する文書があれば、ステ
ップS1に戻って前記シーケンスを繰り返す。
On the other hand, returning to the flow chart of the format information change processing operation sequence of FIG. 2, if it is determined in step S3 that the reading is not the number of stages / interstage reading,
In step S6, the format information 63 of FIG. 6 is set according to the set item / value. Then, if all the format changes are completed in step S7, the document is displayed according to the format (step S8), and if there is no other document to be created (step S9), the process is completed, and if there is another document to be created, The sequence is repeated by returning to step S1.

【0022】以上のような手順で、すでに印刷されてい
る文書の書式に従って、新たな文書を作成することが簡
単にできる。
According to the procedure described above, it is possible to easily create a new document in accordance with the format of a document already printed.

【0023】(実施例2)以上の実施例1においては、
参照文書の文字部分を調べて本文の段数・段間を決定し
ているが、読み込み文書の中に枠で囲まれた部分があれ
ば、その枠内の文字部分の固まりの数とそれらの間の空
白のサイズとを本文と同様な方法で読み取り、前記図6
の書式情報部63における67に示す小組書式の段数・
段間として設定することもできる。
(Embodiment 2) In Embodiment 1 described above,
The number of columns and the gap between the main text are determined by examining the character parts of the reference document. However, if there is a part surrounded by a frame in the read document, the number of character parts in the frame and the space between them. The blank size and the size of
The number of columns of the small set format indicated by 67 in the format information section 63 of
It can also be set as a step.

【0024】以上のように、既存の文書に沿って文書の
出力をする場合、簡単な操作で自動的に既存文書とほぼ
同じ書式を設定することができる。
As described above, in the case of outputting a document along with an existing document, it is possible to automatically set almost the same format as the existing document by a simple operation.

【0025】なお、本発明は、複数の機器から構成され
るシステムに適用しても、あるいは1つの機器から成る
装置に適用してもよい。また、本発明は、システムある
いはプログラムを供給することにより達成される場合に
も適用できることは勿論である。
The present invention may be applied to a system including a plurality of devices or an apparatus including a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a system or a program.

【0026】[0026]

【発明の効果】以上説明したように、本発明の文書処理
装置によれば、参考にする文書の書式に関するデータを
簡単に得ることができ、それを新たな文書の書式として
設定することができる。
As described above, according to the document processing apparatus of the present invention, it is possible to easily obtain data relating to the format of a document to be referred to and set it as a new document format. .

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

【図1】 実施例1の主要構成ブロック図FIG. 1 is a block diagram of a main configuration of a first embodiment.

【図2】 書式情報の変更処理動作シーケンスフローチ
ャート
FIG. 2 is a flowchart of a format information change processing operation sequence.

【図3】 文書選択用メニュー画面の一表示例[Fig. 3] Display example of document selection menu screen

【図4】 書式情報設定用メニュー画面の一表示例[Fig. 4] A display example of a menu screen for setting format information

【図5】 書式情報の設定処理動作シーケンスフローチ
ャート
FIG. 5 is a flowchart of a format information setting processing operation sequence.

【図6】 文書ファイルのファイルフォーマットの一例[Fig. 6] Example of file format of document file

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

1 CPU 2 プログラムメモリ(PMEM) 3 通信I/F 4 キーボード 5 ポインティングデバイス 6 キーボードインタフェース 7 システムバス 8 CRT 9 ビデオRAM(VRAM) 10 フロッピーディスクドライブ 11 ハードディスクドライブ 12 ディスクインタフェース 13 イメージメモリ 14 プリンタ 15 スキャナ 16 文字認識装置 1 CPU 2 Program Memory (PMEM) 3 Communication I / F 4 Keyboard 5 Pointing Device 6 Keyboard Interface 7 System Bus 8 CRT 9 Video RAM (VRAM) 10 Floppy Disk Drive 11 Hard Disk Drive 12 Disk Interface 13 Image Memory 14 Printer 15 Scanner 16 Character recognition device

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 文書情報を入力して文書を作成する文書
処理装置において、印刷された画像を読み取るための読
み取り手段と、この読み取り手段により読み取った原稿
イメージの文字部分を認識するための認識手段と、前記
読み取り手段により読み取った文字部分の中でさらに空
白部分を判別するための判別手段と、これらの各獲得手
段により獲得した書式情報を書式データとして設定する
ための設定手段とを備えたことを特徴とする文書処理装
置。
1. A document processing apparatus for inputting document information to create a document, a reading means for reading a printed image, and a recognition means for recognizing a character portion of a document image read by the reading means. And a discriminating means for discriminating a blank portion in the character portion read by the reading means, and a setting means for setting the format information acquired by each of these acquiring means as format data. A document processing device characterized by:
【請求項2】 前記各獲得手段で獲得される書式情報
は、書式の段組に関する情報であることを特徴とする請
求項1記載の文書処理装置。
2. The document processing apparatus according to claim 1, wherein the format information acquired by each acquisition unit is information about a column of the format.
JP7042831A 1995-03-02 1995-03-02 Document processor Pending JPH08241303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7042831A JPH08241303A (en) 1995-03-02 1995-03-02 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7042831A JPH08241303A (en) 1995-03-02 1995-03-02 Document processor

Publications (1)

Publication Number Publication Date
JPH08241303A true JPH08241303A (en) 1996-09-17

Family

ID=12646921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7042831A Pending JPH08241303A (en) 1995-03-02 1995-03-02 Document processor

Country Status (1)

Country Link
JP (1) JPH08241303A (en)

Similar Documents

Publication Publication Date Title
US6289121B1 (en) Method and system for automatically inputting text image
US6504540B1 (en) Method and apparatus for altering one or more attributes of one or more blocks of image data in a document
JPH11120353A (en) Image display device
JPH08241303A (en) Document processor
JP2006195575A (en) Information processing device and method thereof
JP3176080B2 (en) Document processing method and apparatus
US20080198390A1 (en) Image processing apparatus, image processing method, and program
JP2004348428A (en) Means for inserting header and footer into electronic document
JPH08241307A (en) Document processor
JPH04353987A (en) Document processor
JP2002024796A (en) Character recognition device and method
JPH05314108A (en) Document editor
JPH08202859A (en) Electronic filing device and its method
JP2635312B2 (en) Image processing device
JPH056366A (en) Method and device for processing document
JPS63108430A (en) Document display system
JPH081549B2 (en) Character processor
JPH07282086A (en) Document retrieving device
JPH0635643A (en) Screen output method for data
JPH05289841A (en) Document display controller
JPH0520495A (en) Image processor
JPH09289623A (en) Digital dynamic image file editing device and method therefor
JPH01277961A (en) Character conversion system
JPH096974A (en) Image processing method and device
JPH06266487A (en) Information processor and help information presenting method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040604

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040706

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041102