JPH08123790A - Document processing device - Google Patents
Document processing deviceInfo
- Publication number
- JPH08123790A JPH08123790A JP6258302A JP25830294A JPH08123790A JP H08123790 A JPH08123790 A JP H08123790A JP 6258302 A JP6258302 A JP 6258302A JP 25830294 A JP25830294 A JP 25830294A JP H08123790 A JPH08123790 A JP H08123790A
- Authority
- JP
- Japan
- Prior art keywords
- document
- frame
- spacing
- lines
- line
- 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.)
- Withdrawn
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】
【目的】 本発明は、文書処理装置に関し、枠付の原稿
を読み取って枠検出を行い、枠の大きさに合わせて文字
の桁数と桁間隔および行数と行間隔を設定し枠内への入
力を折り返し表示・印刷を行い、指定された用紙の枠内
に文書作成して表示/印刷を容易に実現することを目的
とする。
【構成】 原稿イメージ中の枠を検出し、桁数と行数あ
るいは桁間隔と行間隔を指定した文書の書式に基づい
て、検出された枠内の桁数と行数、あるいは桁間隔と行
間隔を設定する書式設定手段と、文書の書式である桁間
隔と行間隔、あるいは桁数と行数に基づいて、原稿イメ
ージを画面上に表示させるイメージ表示手段と、書式設
定手段によって枠に設定された桁数と行数、あるいは桁
間隔と行間隔に基づいて、画面上に表示される原稿イメ
ージの枠内で入力される文字を該枠内に納まるように制
御して文書を作成する文書作成手段とから構成する。
(57) [Abstract] [Object] The present invention relates to a document processing apparatus, in which a framed document is read to perform frame detection, and the number of digits and column spacing of characters and the number of lines and line spacing are adjusted according to the size of the frame. The purpose is to easily display / print the document by creating a document in the frame of the specified paper by setting and setting, and displaying / printing the input in the frame. [Structure] A frame in the original image is detected, and the number of columns and lines in the detected frame, or the column interval and line are detected based on the format of the document in which the number of columns and line or the column spacing and line spacing are specified. Formatting means for setting the spacing, image display means for displaying the manuscript image on the screen based on the digit spacing and line spacing, or the number of digits and the number of rows, which is the format of the document, and the frame setting by the formatting means A document that creates a document by controlling the characters entered in the frame of the original image displayed on the screen to fit within the frame, based on the specified number of digits and lines, or the column spacing and line spacing. It is composed of creating means.
Description
【0001】[0001]
【産業上の利用分野】本発明は、枠付の原稿の枠内に文
書を作成して印刷する文書処理装置に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus for creating and printing a document in a frame of a document with a frame.
【0002】[0002]
【従来の技術】従来、申込用紙などのフォーマットされ
た用紙に合わせて文書をワープロなどを用いて作成し、
印刷しようとする場合、フォーマットされた用紙の枠の
範囲内と思われる位置に文字を入力し、これをフォーマ
ット印刷された用紙の枠上に印刷し、その結果を見て枠
内に納まるように印刷位置や折り返し位置を修正するこ
とを試行錯誤し、枠内に文書を印刷するようにしてい
た。2. Description of the Related Art Conventionally, a document is created using a word processor in accordance with a formatted paper such as an application form,
When you try to print, enter characters in a position that seems to be within the range of the formatted paper, print this on the frame of the formatted print paper, and see the result so that it fits inside the frame. The trial and error was made to correct the printing position and the folding position, and the document was printed in the frame.
【0003】[0003]
【発明が解決しようとする課題】このため、予め枠など
のフォーマットされた用紙の枠内に文字をキー入力して
印刷しようとすると、面倒な試行錯誤が要求されてしま
い、極めて不便であるという問題があった。For this reason, it is extremely inconvenient for a user to input characters into a frame of a sheet of paper which has been formatted beforehand such as a frame by key input to print, which requires troublesome trial and error. There was a problem.
【0004】本発明は、これらの問題を解決するため、
枠付の原稿を読み取って枠検出を行い、この枠の大きさ
に合わせて文字の桁数と桁間隔および行数と行間隔を設
定し、当該枠内への入力を折り返し表示・印刷を行い、
指定された用紙の枠内に文書作成して表示/印刷を容易
に実現することを目的としている。The present invention solves these problems.
The original with a frame is scanned, the frame is detected, the number of digits and the interval between characters, the number of lines and the interval between lines are set according to the size of this frame, and the input in that frame is displayed and printed back. ,
The purpose is to easily realize display / printing by creating a document in a frame of a designated paper.
【0005】[0005]
【課題を解決するための手段】図1は、本発明の原理ブ
ロック図を示す。図1において、文書処理装置1は、文
書を作成して表示・印刷するものであって、イメージ表
示手段3、書式設定手段4、文書作成手段5、印刷手段
6、調整手段7およびメモリ12などから構成されるも
のである。FIG. 1 shows a block diagram of the principle of the present invention. In FIG. 1, a document processing apparatus 1 is for creating a document and displaying / printing it. The image displaying unit 3, the format setting unit 4, the document creating unit 5, the printing unit 6, the adjusting unit 7, the memory 12, and the like. It is composed of
【0006】スキャナ2は、印刷手段6であるプリンタ
のキャリッジに搭載され、該キャリッジによる走査動作
および原稿の搬送により該原稿を読み取りイメージデー
タとして出力するものである。The scanner 2 is mounted on a carriage of a printer, which is the printing means 6, and outputs the document as read image data by scanning operation by the carriage and conveyance of the document.
【0007】イメージ表示手段3は、スキャナ2から出
力される原稿のイメージを画面上に表示できる大きさに
加工し、表示させるものである。更に、後述する書式設
定手段4によって検出される枠のみを画面上に表示させ
るものである。The image display means 3 processes the image of the document output from the scanner 2 into a size that can be displayed on the screen and displays it. Further, only the frame detected by the format setting means 4 described later is displayed on the screen.
【0008】書式設定手段4は、原稿のイメージから枠
を検出し、当該枠内に文書を印刷する桁数と桁間隔およ
び行数と行間隔を設定したり、枠内に文書が入り切らな
いときに調整手段7により桁数と桁間隔および行数と行
間隔を調整して設定したりするものである。The format setting means 4 detects a frame from the image of the original and sets the number of digits and the digit interval for printing the document and the number of lines and the line interval in the frame, and the document does not fit in the frame. At this time, the adjusting means 7 adjusts and sets the number of digits and the interval between digits and the number of rows and the interval between lines.
【0009】文書作成手段5は、枠内に入力される文字
・記号などを枠外にならないようカーソルを制御した
り、表示したりするものである。印刷手段6は、枠内に
入力された文字・記号などの文書を、印字ヘッド8によ
って印刷させるものである。また、キャリッジ上に印字
ヘッド8およびスキャナ2を搭載したものであって、キ
ャリッジの走査動作および原稿の搬送によって原稿をス
キャナ2によって読み取ると共に、当該原稿に印字ヘッ
ド8によって文書を印刷するものである。表示装置9
は、イメージ表示手段3によりスキャナ2によって読み
取った枠付の原稿(あるいは枠のみ)を表示したり、枠
に入力される文字などの文書を表示したりするものであ
る。The document creating means 5 controls or displays the cursor so that characters and symbols input in the frame are not outside the frame. The printing unit 6 causes the print head 8 to print a document such as characters and symbols input in the frame. Further, the print head 8 and the scanner 2 are mounted on the carriage, and the original is read by the scanner 2 by the scanning operation of the carriage and the original is conveyed, and the document is printed on the original by the print head 8. . Display device 9
Is for displaying an original document with a frame (or only the frame) read by the image display means 3 by the scanner 2, or displaying a document such as characters input in the frame.
【0010】入力装置10は、文字入力などの各種入力
を行うものであって、キーボードなどである。文書記憶
装置11は、作成した文書を記憶するものである。The input device 10 is for performing various inputs such as character input, and is a keyboard or the like. The document storage device 11 stores the created document.
【0011】メモリ12は、文書作成時の各種データな
どを格納して記憶するものである。The memory 12 stores and stores various data when a document is created.
【0012】[0012]
【作用】本発明は、図1に示すように、書式設定手段4
が原稿イメージ中の枠を検出し、桁数と行数、あるいは
桁間隔と行間隔を指定した文書の書式に基づいて、検出
された枠内の桁数と行数、あるいは桁間隔と行間隔を設
定し、イメージ表示手段3が文書の書式である桁間隔と
行間隔、あるいは桁数と行数に基づいて、原稿イメージ
を画面上に表示させ、文書作成手段5が書式設定手段に
よって枠に設定された桁数と行数、あるいは桁間隔と行
間隔に基づいて、画面上に表示される原稿イメージの枠
内で入力される文字を該枠内に納まるように制御して文
書を作成するようにしている。According to the present invention, as shown in FIG.
Detects the frame in the original image, and based on the format of the document in which the number of digits and the number of lines, or the digit spacing and the line spacing are specified, the number of digits and the number of lines in the detected frame, or the digit spacing and the line spacing are detected. The image display means 3 displays the original image on the screen based on the digit spacing and line spacing, or the number of digits and the number of rows, which is the format of the document, and the document creating means 5 displays the frame on the screen by the formatting means. Create a document by controlling the characters entered in the frame of the original image displayed on the screen to fit within the frame, based on the set number of digits and lines, or the digit spacing and line spacing. I am trying.
【0013】この際、イメージ表示手段3は、書式設定
手段4によって検出された枠のみを画面上に表示させる
ようにしている。また、文書作成手段5によって作成さ
れた枠内の文書を、原稿イメージに対応する原稿に印刷
するようにしている。At this time, the image display means 3 displays only the frame detected by the format setting means 4 on the screen. Further, the document in the frame created by the document creating means 5 is printed on the document corresponding to the document image.
【0014】また、文書作成手段5によって入力される
文字が枠内に納まらない場合に、調整手段7が書式設定
手段4によって入力される文字が枠内に納まるように設
定された枠内の桁数、行数、桁間隔、行間隔のいずれか
を調整するようにしている。Further, when the characters input by the document creating means 5 do not fit within the frame, the adjusting means 7 sets the digits within the frame so that the characters entered by the formatting means 4 fit within the frame. The number, the number of lines, the column spacing, or the line spacing is adjusted.
【0015】また、印刷手段6は印字ヘッド8とスキャ
ナ2が搭載されるキャリッジを有するプリンタであり、
原稿イメージは該スキャナ3により原稿を読み取ったデ
ータとするようにしている。The printing means 6 is a printer having a carriage on which the print head 8 and the scanner 2 are mounted.
The original image is data obtained by reading the original with the scanner 3.
【0016】従って、枠付の原稿を読み取って枠検出を
行い、この枠の大きさに合わせて文字・記号などの桁数
と桁間隔および行数と行間隔を設定し、当該枠内への入
力を折り返し表示・印刷を行うことにより、指定された
原稿の枠内に文書を作成して容易かつ確実に表示/印刷
を行うことが可能となる。Therefore, the framed original is read to detect the frame, the number of digits and the column interval of characters and symbols, the number of lines and the line interval are set according to the size of the frame, and the frame and the line interval are set. By displaying and printing the input in a looped manner, it becomes possible to create a document within the frame of the designated original and display / print it easily and reliably.
【0017】[0017]
【実施例】次に、図2から図6を用いて本発明の実施例
の構成および動作を順次詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the construction and operation of an embodiment of the present invention will be described in detail with reference to FIGS.
【0018】まず、プリンタの構成について説明する。
図6は、イメージセンサ(スキャナ)を搭載したキャリ
ッジを有する文書処理装置のプリンタ部の一構成図を示
す。図6の(A)は概略平面図、図6の(B)は概略正
面図である。First, the structure of the printer will be described.
FIG. 6 is a configuration diagram of a printer unit of a document processing apparatus having a carriage equipped with an image sensor (scanner). 6A is a schematic plan view, and FIG. 6B is a schematic front view.
【0019】図6(A)、(B)において、プリンタ6
は感熱式のもので、キャリッジ13上に印字ヘッド8、
スキャナ2、及び記録紙が普通紙の場合にはリボンカセ
ット(熱転写フィルム)14が搭載される。キャリッジ
13は、原稿の搬送方向と垂直な走査方向(AB方向)
にガイド部15がガイドされて駆動部16により移動さ
れる。また、ヘッド8に対応して走査方向にプラテン1
7が配置される。In FIGS. 6A and 6B, the printer 6
Is a heat-sensitive type, and the print head 8,
When the scanner 2 and the recording paper are plain paper, a ribbon cassette (heat transfer film) 14 is mounted. The carriage 13 is in a scanning direction (AB direction) perpendicular to the document conveyance direction.
The guide part 15 is guided by the drive part 16 and is moved. Further, the platen 1 corresponding to the head 8 is arranged in the scanning direction.
7 is placed.
【0020】ここで、スキャナ2は、リボンカセット1
4のサイドに取り付けられており、プラテン17側が開
口され、開口近傍に光源18及びレンズ19が配置され
ると共に、レンズ19の光軸上に固定撮像素子20が配
置されている縮小光学系で構成される。この場合、スキ
ャナ2は、レンズ19によりプラテン17上の原稿にピ
ントが合わされる。Here, the scanner 2 is the ribbon cassette 1
It is attached to the side of No. 4, the platen 17 side is opened, the light source 18 and the lens 19 are arranged in the vicinity of the opening, and the fixed image pickup device 20 is arranged on the optical axis of the lens 19 to constitute a reduction optical system. To be done. In this case, the scanner 2 focuses the document on the platen 17 by the lens 19.
【0021】読み取り時は、搬送される印字済の原稿に
対してヘッド8は退避状態にし、スキャナ2の光源18
が点灯され、キャリッジ13の移動に伴って固定撮像素
子20により原稿を読み取るものである。At the time of reading, the head 8 is retracted with respect to the conveyed printed document, and the light source 18 of the scanner 2 is set.
Is turned on, and the original is read by the fixed image pickup device 20 as the carriage 13 moves.
【0022】また、印刷動作時は、プラテン17上で搬
送される用紙(本実施例では、上記スキャナ2により読
み取った原稿)にリボンカセット14の熱転写フィルム
を介在させてヘッド8が押しつけられ、熱転写フィルム
を用紙に転写する。During the printing operation, the head 8 is pressed against the paper (the original read by the scanner 2 in this embodiment) conveyed on the platen 17 with the thermal transfer film of the ribbon cassette 14 interposed therebetween, and the thermal transfer is performed. Transfer the film to the paper.
【0023】図2は、本発明の動作説明フローチャート
を示す。これは、図1の構成の具体的な動作を説明する
ものである。図2において、S1は、枠付の原稿の読み
取りを行う。これは、図1のプリンタ(印刷手段6)の
キャリッジに搭載されたスキャナ2によって、枠付の原
稿を搬送しつつ読み取りを行う。FIG. 2 is a flowchart illustrating the operation of the present invention. This explains the specific operation of the configuration of FIG. In FIG. 2, in step S1, a document with a frame is read. In this, the scanner 2 mounted on the carriage of the printer (printing unit 6) in FIG. 1 reads a document with a frame while conveying it.
【0024】S2は、表示用のイメージデータを作成す
る。これは、S1の読み取り原稿のイメージデータの縮
小加工などを行い、表示装置10の画面上に丁度、原稿
と枠を表示、あるいは枠のみを検出して表示する。In step S2, image data for display is created. In this processing, the image data of the read document in S1 is reduced, and the document and the frame are displayed on the screen of the display device 10, or only the frame is detected and displayed.
【0025】S3は、書式設定する。これは、後述する
図3から図5を用いて詳述するように、S1、S2で枠
付の原稿のイメージデータから枠を検出し、この枠内に
丁度納まるように書式(桁数と桁間隔あるいは行数と行
間隔または両者でもよい)を自動設定する。In step S3, the format is set. As will be described in detail later with reference to FIGS. 3 to 5, the frame is detected from the image data of the document with the frame in S1 and S2, and the format (the number of digits and the digit The interval or the number of lines and the line interval or both may be set automatically.
【0026】S4は、各枠内に文字入力する。S5は、
枠内に折り返し入力・表示する。これらS4およびS5
は、S3で書式設定した枠内に、入力装置11から利用
者が文字・記号などの文書を入力したことに対応して、
文書作成手段5がカーソル制御により当該枠内に折り返
して表示させる。In step S4, characters are input in each frame. S5 is
Enter and display it in the frame. These S4 and S5
Corresponds to the user inputting a document such as characters and symbols from the input device 11 in the frame formatted in S3,
The document creating means 5 folds and displays it in the frame under cursor control.
【0027】S6は、枠付の原稿に入力された文字のみ
を印刷する。これは、S5で原稿の枠内に折り返し表示
した文書について、利用者からの印刷指示があった場合
に、図1のプリンタのキャリッジに搭載した印字ヘッド
8によって予め印刷された原稿の枠内に、文書のみを印
刷させる。In step S6, only the characters input to the framed document are printed. This is because when the user gives a print instruction for the document folded and displayed in the frame of the document in S5, the document is preprinted by the print head 8 mounted on the carriage of the printer of FIG. 1 within the frame of the document. , Print only the document.
【0028】以上によって、プリンタのキャリッジに搭
載したスキャナ2で枠付の原稿を読み取り、このイメー
ジから検出した枠内に文書が印刷できるように書式を自
動設定して入力された文書を表示し、印刷指示に対応し
てキャリッジに搭載した印字ヘッド8によって原稿の枠
内に文書のみを印刷する。これらにより、枠付の原稿の
枠内に、後から文書のみを正確に容易に印刷させること
が可能となった。As described above, the scanner 2 mounted on the carriage of the printer reads an original with a frame, the format is automatically set so that the document can be printed in the frame detected from this image, and the input document is displayed. In response to the print instruction, the print head 8 mounted on the carriage prints only the document in the frame of the document. As a result, only the document can be accurately and easily printed later in the frame of the original with the frame.
【0029】尚、枠の検出方法は、原稿のイメージデー
タを水平方向と垂直方向に見て複数の部分に分割してそ
れぞれの部分の黒画素をカウントしてヒストグラムを作
成し、このヒストグラムが山となる部分に罫線が存在す
る部分として抽出する。そして、罫線が存在する部分を
抽出した後、各罫線の交点を検出して枠を抽出する。In the frame detection method, the image data of the original is divided into a plurality of parts when viewed in the horizontal and vertical directions, the black pixels in each part are counted to create a histogram, and this histogram is the peak. It is extracted as the part where the ruled line exists in the part that becomes. Then, after extracting the part where the ruled line exists, the intersection of each ruled line is detected and the frame is extracted.
【0030】次に、図3から図5を用いて詳細に説明す
る。図3は、本発明の書式設定フローチャートを示す。
図3において、S11は、イメージデータの全体に入る
横方向の文字数と文字間隔を決める。これは、枠付の原
稿を読み取ったイメージデータの全体に入る横方向の文
字数と文字間隔を、例えば後述する図4に示すように、
原稿の横方向のイメージ幅に入る文字数と文字間隔を決
定する。即ち、文字数が指定(あるいはデフォルトで指
定)されたときはこの文字数でイメージ幅を除算して文
字間隔を求める。一方、文字間隔が指定(あるいはデフ
ォルトで指定)されたときはこの文字間隔でイメージ幅
を除算して文字数を求める。Next, a detailed description will be given with reference to FIGS. FIG. 3 shows a formatting flow chart of the present invention.
In FIG. 3, in step S11, the number of characters in the horizontal direction and the character spacing in the entire image data are determined. This is because the number of characters in the horizontal direction and the character spacing in the entire image data obtained by reading a document with a frame are set as shown in FIG.
Determine the number of characters and the character spacing that fit in the horizontal image width of the document. That is, when the number of characters is specified (or specified by default), the image width is divided by this number of characters to obtain the character interval. On the other hand, when the character spacing is specified (or specified by default), the image width is divided by this character spacing to obtain the number of characters.
【0031】S12は、イメージデータからフィールド
枠を抽出したデータ(枠の4角の座標)を作成する。S
13は、基本となる行間をメニューからオペレータが指
定する。指定がない場合には、デフォルトの行間隔とす
る。In step S12, data (field coordinates of four corners) obtained by extracting a field frame from the image data is created. S
In 13, the operator specifies the basic line spacing from the menu. If not specified, the default line spacing is used.
【0032】S14は、S15以下の処理について全て
のフィールド終了か判別する。YESの場合には、終了
する。NOの場合には、S15に進む。S15は、フィ
ールド枠内の行数と行間隔を決める。これは、S13で
基本となる行間隔をもとに、イメージデータから検出し
たフィールド枠に納まる行数と行間隔を決める。即ちフ
ィールド枠の行方向の幅を行間隔で除算して行数を決め
る。In step S14, it is determined whether or not all fields have ended in the processing of step S15 and thereafter. If YES, then end. If NO, the process proceeds to S15. In step S15, the number of lines in the field frame and the line spacing are determined. This determines the number of lines and the line interval that can be accommodated in the field frame detected from the image data, based on the basic line interval in S13. That is, the number of lines is determined by dividing the width of the field frame in the line direction by the line spacing.
【0033】S16は、1行あるいは1行未満か判別す
る。これは、S15でフィード枠の行方向の幅を行間隔
で除算した行数が1行あるいは1行未満か判別する。Y
ESの場合には、1行あるいは1行未満と判明したの
で、S17でフィールド枠の中央に文字を置くように行
間隔を決定し、S14に戻る。一方、S16のNOの場
合には、2行以上の行間隔と判明したので、S14に戻
る。In S16, it is determined whether or not there is one line or less than one line. This determines whether the number of lines obtained by dividing the width of the feed frame in the line direction by the line interval in S15 is one line or less than one line. Y
In the case of ES, it is found that the number of lines is one line or less than one line. Therefore, in S17, the line interval is determined so that the character is placed in the center of the field frame, and the process returns to S14. On the other hand, in the case of NO in S16, the line spacing is found to be two or more lines, so the process returns to S14.
【0034】以上によって、枠付の原稿を読み取ったイ
メージデータをもとに、横方向に入る文字数と文字間隔
の設定、および行方向の行数と行間隔の設定を自動的に
行うことができたこととなる。As described above, it is possible to automatically set the number of characters to be entered in the horizontal direction and the character spacing, and the number of lines in the line direction and the line spacing based on the image data obtained by reading the framed original. It will be.
【0035】次に、図4の説明を参照し、実際の枠につ
いて横方向の文字数と桁間隔、および行数と行間隔を設
定する手順を詳細に説明する。 [1] 原稿の用紙幅となるイメージ幅について、横方
向の文字数が指定(あるいはデフォルトで指定)された
場合にはイメージ幅を文字数で除算して文字間隔を設定
する。また、各フィールド1、2のイメージ幅を文字間
隔で割った文字数(桁数)を設定する。Next, with reference to the description of FIG. 4, the procedure for setting the number of characters and the digit spacing in the horizontal direction, and the number of lines and the spacing between lines in the actual frame will be described in detail. [1] When the number of characters in the horizontal direction is designated (or is designated by default) for the image width that is the paper width of the document, the image width is divided by the number of characters to set the character spacing. Also, the number of characters (the number of digits) obtained by dividing the image width of each field 1 and 2 by the character interval is set.
【0036】[2] 用紙の上端から先頭フィールドの
上端までの設定:イメージの上端から先頭のフィールド
1までの長さ(1)を求め、基本行間隔(オペレータか
ら指定された行間隔あるいは指定されないときはデフォ
ルトの行間隔)で割って行数を設定する。[2] Setting from the top of the paper to the top of the top field: The length (1) from the top of the image to the top field 1 is calculated, and the basic line spacing (line spacing specified by the operator or not specified) When setting the number of lines, divide by (default line spacing).
【0037】[3] フィールド1の設定:フィールド
1の先頭から次のフィールド2の先頭までの長さ
(2)を求め、基本行間隔で割って行数を設定する。[3] Setting of field 1: The length (2) from the beginning of the field 1 to the beginning of the next field 2 is obtained and divided by the basic line interval to set the number of lines.
【0038】[4] フィールド2の設定:フィールド
2の先頭から当該最終のフィールド2の下端までの長
さ(3)を求め、基本行間隔で割って行数を設定する。[4] Setting of field 2: The length (3) from the beginning of field 2 to the lower end of the last field 2 is obtained and divided by the basic line interval to set the number of lines.
【0039】[5] 用紙末までの設定:用紙末までの
長さ(4)を求め、基本行間隔で割って行数を設定す
る。[5] Setting to the end of the sheet: The length (4) to the end of the sheet is obtained and divided by the basic line interval to set the number of lines.
【0040】尚、上記[1]から[5]によって設定し
た横方向の桁数と桁間隔、および縦方向の行数と行間隔
をもとに、フィールド1およびフィールド2に、オペレ
ータから入力された文字・記号などを折り返して表示す
る場合に、フィールド内に表示し切れないときは、桁数
と桁間隔、行数と行間隔のいずれかあるいは両者を1段
階づつ調整して納まるように自動設定する。It should be noted that, based on the number of columns and the column spacing in the horizontal direction and the number of columns and the column spacing in the vertical direction set by the above [1] to [5], the operator inputs the fields 1 and 2. When the characters and symbols that are displayed are wrapped and displayed in the field, if the number of columns and column spacing, the number of columns and line spacing, or both are adjusted one by one, it is automatically adjusted to fit. Set.
【0041】図5は、本発明の具体例説明図を示す。こ
れは、フィールド枠に文書(文字コード)を入力して印
刷する場合のフィールド枠内に文字コードが折り返して
入力された様子を示す。FIG. 5 is a diagram illustrating a specific example of the present invention. This shows a state in which the character code is folded and input in the field frame when a document (character code) is input and printed in the field frame.
【0042】図5の(a)は、枠付の原稿例を示す。枠
付の原稿中にフィールド枠1が1つここでは存在する。
イメージ幅が用紙幅、イメージ長が用紙長である。図5
の(b)は、コード例を示す。これは、図5の(a)の
枠付の原稿のイメージデータから枠を検出した後のコー
ド列を示す。ここでは、フィールド枠1と、JISCO
DE列(JISコード列)とが図示のように設定されて
いる。FIG. 5A shows an example of a document with a frame. There is one field frame 1 here in the original with a frame.
The image width is the paper width and the image length is the paper length. Figure 5
(B) shows a code example. This shows a code string after the frame is detected from the image data of the framed document shown in FIG. Here, the field frame 1 and JISCO
The DE column (JIS code column) is set as shown.
【0043】図5の(c)は、フィールド枠1内に文字
が入力された場合を示す。これは、図5の(b)のフィ
ールド枠1内に、入力装置から文字が入力され、当該フ
ィールド枠1内に折り返し設定した様子を示す。フィー
ルド枠1内には、折り返し設定された文字コード(文字
列)が設定されている。フィールド枠1の外は全てSP
(JISCODEの空白を表すコード)が設定されてい
る。FIG. 5C shows a case where a character is input in the field frame 1. This shows a state in which a character is input from the input device into the field frame 1 of FIG. In the field frame 1, a character code (character string) that has been set to be folded back is set. SP outside field frame 1
(A code representing a blank of JISCODE) is set.
【0044】以上のようにして、図5の(a)の枠付の
原稿をスキャナで読み取ったイメージデータからイメー
ジ幅、イメージ長、およびフィールド枠1を自動検出
し、既述した図4のようにして横方向の桁数と桁間隔、
縦方向の行数と行間隔を自動設定し、フィールド枠1内
にオペレータから文字・記号などが入力されたときに、
図5の(b)に示すフィールド枠1内に折り返して入力
された文字・記号などをコードで設定し、図5の(c)
のようにする。そして、この図5の(c)のデータをも
とに、図5の(a)の原稿に図1のプリンタの印字ヘッ
ド8によって印刷すると、当該原稿中のフィールド1の
枠内に文書のみが綺麗に印刷されることとなる。As described above, the image width, the image length, and the field frame 1 are automatically detected from the image data obtained by reading the framed original shown in FIG. And the number of digits in the horizontal direction and the digit spacing,
The number of lines in the vertical direction and the line spacing are automatically set, and when characters or symbols are entered by the operator in the field frame 1,
Characters / symbols, etc., which have been folded and input in the field frame 1 shown in FIG. 5 (b), are set by a code, and FIG.
Like Then, based on the data of FIG. 5C, when the document of FIG. 5A is printed by the print head 8 of the printer of FIG. 1, only the document is within the frame of the field 1 of the document. It will be printed nicely.
【0045】[0045]
【発明の効果】以上説明したように、本発明によれば、
枠付の原稿を読み取って枠検出を行い、この枠の大きさ
に合わせて文字・記号などの桁数と桁間隔および行数と
行間隔を設定し、当該枠内への入力を折り返し表示・印
刷を行う構成を採用しているため、原稿の枠内に文書を
作成して容易かつ確実に表示/印刷することができる。
これらにより、プリンタ(印刷手段6)のキャリッジ上
に印字ヘッド8とスキャナ9とを搭載し、原稿をスキャ
ナ2で読み取ったイメージの枠内に折り返し入力された
文書を、印字ヘッド8によって丁度当該枠内に納まるよ
うに印刷することができ、特に、ワープロ装置などの文
書処理装置において、いわゆる「ねらい打ち]や「指定
位置印刷」を容易かつ確実に行うことが可能となった。As described above, according to the present invention,
The original with a frame is scanned and the frame is detected.The number of digits and digit spacing for characters and symbols and the number of lines and line spacing are set according to the size of this frame, and the input in the relevant frame is displayed in a looped display. Since the configuration for printing is adopted, it is possible to easily and surely display / print a document in a frame of a document.
With these, the print head 8 and the scanner 9 are mounted on the carriage of the printer (printing means 6), and the document input by folding back the document within the frame of the image read by the scanner 2 is just printed by the print head 8. Printing can be performed so as to fit inside, and in particular, in a document processing device such as a word processing device, so-called "aiming" or "designated position printing" can be performed easily and reliably.
【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.
【図2】本発明の動作説明フローチャートである。FIG. 2 is a flowchart explaining the operation of the present invention.
【図3】本発明の書式設定フローチャートである。FIG. 3 is a flow chart of formatting according to the present invention.
【図4】本発明の説明図である。FIG. 4 is an explanatory diagram of the present invention.
【図5】本発明の具体例説明図である。FIG. 5 is a diagram illustrating a specific example of the present invention.
【図6】イメージセンサを搭載したキャリッジを有する
文書処理装置のプリンタ部の一構成図である。FIG. 6 is a configuration diagram of a printer unit of a document processing apparatus having a carriage equipped with an image sensor.
1:文書処理装置 2:スキャナ 3:イメージ表示手段 4:書式設定手段 5:文書作成手段 6:印刷手段 7:調整手段 8:印字ヘッド 9:表示装置 10:入力装置 11:文書記憶装置 12:メモリ 1: Document Processing Device 2: Scanner 3: Image Display Means 4: Format Setting Means 5: Document Making Means 6: Printing Means 7: Adjusting Means 8: Print Heads 9: Display Devices 10: Input Devices 11: Document Storage Devices 12: memory
Claims (5)
数、あるいは桁間隔と行間隔を指定した文書の書式に基
づいて、前記検出された枠内の桁数と行数、あるいは桁
間隔と行間隔を設定する書式設定手段と、 前記文書の書式である桁間隔と行間隔、あるいは桁数と
行数に基づいて、前記原稿イメージを画面上に表示させ
るイメージ表示手段と、 前記書式設定手段によって枠に設定された桁数と行数、
あるいは桁間隔と行間隔に基づいて、前記画面上に表示
される原稿イメージの枠内で入力される文字を該枠内に
納まるように制御して文書を作成する文書作成手段と、 を有することを特徴とする文書処理装置。1. A frame in an original image is detected, and the number of columns and the number of lines in the detected frame are detected based on the format of the document in which the number of columns and the number of lines or the column spacing and the line spacing are designated, or A format setting means for setting a digit spacing and a line spacing; an image display means for displaying the document image on a screen based on the digit spacing and the line spacing, or the number of digits and the number of rows, which is the format of the document; The number of columns and lines set in the box by the formatting means,
Alternatively, a document creation unit that creates a document by controlling characters input in a frame of the original image displayed on the screen to fit within the frame based on the digit spacing and the line spacing. A document processing device characterized by:
段によって検出された枠のみを前記画面上に表示させる
ことを特徴とする請求項1記載の文書処理装置。2. The document processing apparatus according to claim 1, wherein the image display means displays only the frame detected by the format setting means on the screen.
記原稿イメージに対応する原稿に印刷することを特徴と
する請求項1記載の文書処理装置。3. The document processing apparatus according to claim 1, further comprising a printing unit, wherein the document in the frame created by the document creating unit is printed on a document corresponding to the document image.
が枠内に納まらない場合に、入力される文字が枠内に納
まるように前記書式設定手段によって設定された枠内の
桁数、行数、桁間隔、行間隔のいずれかを調整する調整
手段を有することを特徴とする請求項1記載の文書処理
装置。4. The number of digits and the number of lines in the frame set by the formatting unit so that the input character will fit in the frame when the character input by the document creating unit does not fit in the frame. 2. The document processing apparatus according to claim 1, further comprising adjusting means for adjusting any one of the column spacing and the line spacing.
載されるキャリッジを有するプリンタであり、前記原稿
イメージは該スキャナにより原稿を読み取ったデータで
あることを特徴とする請求項3記載の文書処理装置。5. The document processing according to claim 3, wherein the printing means is a printer having a print head and a carriage on which a scanner is mounted, and the document image is data obtained by reading a document by the scanner. apparatus.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6258302A JPH08123790A (en) | 1994-10-24 | 1994-10-24 | Document processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6258302A JPH08123790A (en) | 1994-10-24 | 1994-10-24 | Document processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH08123790A true JPH08123790A (en) | 1996-05-17 |
Family
ID=17318374
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6258302A Withdrawn JPH08123790A (en) | 1994-10-24 | 1994-10-24 | Document processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH08123790A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1959351A2 (en) | 2007-01-17 | 2008-08-20 | Canon Finetech Inc. | Print data processing device and recording medium |
-
1994
- 1994-10-24 JP JP6258302A patent/JPH08123790A/en not_active Withdrawn
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1959351A2 (en) | 2007-01-17 | 2008-08-20 | Canon Finetech Inc. | Print data processing device and recording medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5157417A (en) | Printing apparatus | |
| JPS6118033A (en) | Print processor | |
| JPH0648489B2 (en) | Optical character reader | |
| JP4045335B2 (en) | Printer device and recording medium | |
| JPH0877376A (en) | Image processing method and apparatus | |
| JP2724143B2 (en) | Document processing method | |
| JP2739744B2 (en) | Character output device | |
| JPH0717082A (en) | Method and device for filling out form by printer | |
| JPH06164781A (en) | Picture communication equipment | |
| JPS63188077A (en) | Sentence preparing apparatus | |
| JPH08297711A (en) | Character string output device | |
| JP3386280B2 (en) | Book document image reading device | |
| JPS62131322A (en) | word processor | |
| JPH05162360A (en) | Thermal recording device | |
| JP3061509B2 (en) | Image processing device | |
| JPH02297118A (en) | Document generation device | |
| JP2670469B2 (en) | Document processing method | |
| JPH0250252A (en) | Word processor | |
| JPH02216587A (en) | Image file device | |
| JPH06122235A (en) | Printer with built-in scanner | |
| JP2002245392A (en) | Standard document input device | |
| JPH09106397A (en) | Document setting apparatus format setting method, recording medium storing the computer program, and document creating apparatus used for implementing the same | |
| JPS62272746A (en) | Document editing device | |
| JPH1139118A (en) | Document printing device | |
| JPH05162363A (en) | Thermal recording device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20020115 |