JP2799162B2 - Document creation device - Google Patents

Document creation device

Info

Publication number
JP2799162B2
JP2799162B2 JP8105293A JP10529396A JP2799162B2 JP 2799162 B2 JP2799162 B2 JP 2799162B2 JP 8105293 A JP8105293 A JP 8105293A JP 10529396 A JP10529396 A JP 10529396A JP 2799162 B2 JP2799162 B2 JP 2799162B2
Authority
JP
Japan
Prior art keywords
data
print
digits
document
rectangular frame
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 - Lifetime
Application number
JP8105293A
Other languages
Japanese (ja)
Other versions
JPH09290540A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP8105293A priority Critical patent/JP2799162B2/en
Publication of JPH09290540A publication Critical patent/JPH09290540A/en
Application granted granted Critical
Publication of JP2799162B2 publication Critical patent/JP2799162B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は文書作成装置に係
り、更に詳しくは、定形用紙の文書印刷エリアとなる矩
形枠と、そこに印刷すべき文字データ(印字データ)と
の整合を図る技術に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a document creating apparatus, and more particularly to a technique for matching a rectangular frame serving as a document printing area of a fixed size sheet with character data (print data) to be printed thereon. .

【0002】[0002]

【従来の技術】ワードプロセッサのような文書作成装置
では、文書印刷エリアが矩形枠により指定してある定形
用紙に文字データを印字する場合に、その指定エリアの
サイズ,配置,桁数等を文書作成装置に予め認識させて
おき、加えて、指定エリアに印字すべき文字データ(入
力文字)の桁数,大きさ等を設定していた。
2. Description of the Related Art In a document preparation apparatus such as a word processor, when character data is printed on a fixed sheet of paper in which a document print area is designated by a rectangular frame, the size, arrangement, number of digits, etc. of the designated area are created. The apparatus is made to recognize in advance, and in addition, the number of digits, the size, and the like of character data (input characters) to be printed in the designated area are set.

【0003】例えば、定形用紙が官製郵便はがきである
場合には、文書作成装置では、はがきの表側に郵便番
号,住所,氏名を記入するものとして、それらの文書印
刷項目を設定し、その印刷形式(フォーマット)も設定
してある。また、記憶部には、郵便番号,住所,氏名を
随時入力可能な住所録ファイルが用意されており、文書
印刷項目及び住所録ファイルのデータを指定すること
で、はがき等の定形用紙の指定エリアに郵便番号,住
所,氏名が印字される機能を備えている。
[0003] For example, in the case where the fixed form paper is a government-made postcard, the document preparation apparatus sets the document print items on the front side of the postcard assuming that the postal code, address, and name are to be entered, and sets the print format. (Format) is also set. The storage unit is provided with an address book file in which a zip code, an address, and a name can be entered at any time. By designating document print items and data of the address book file, a designated area for a fixed-size sheet such as a postcard is designated. It has a function that prints the postal code, address, and name.

【0004】[0004]

【発明が解決しようとする課題】従来の文書印刷装置
は、定形用紙の指定の文書印刷エリアに対して印刷フォ
ーマットを設定すると、そのフォーマットが固定されて
しまい、定形用紙の指定エリアやそのエリアに印字すべ
き文字データのフォーマットに変更があった場合には、
そのままでは対処できず、改めて手作業で印刷フォーマ
ットを変更せざるを得なかった。
In a conventional document printing apparatus, when a print format is set for a designated document print area of a standard size paper, the format is fixed, and the format is fixed and the designated area or the area of the standard size paper is designated. If the format of the character data to be printed is changed,
I could not deal with it as it was and I had to manually change the print format again.

【0005】例えば、指定エリアに印字すべき文字デー
タの印字桁数を固定値で設定してあるため、固定値より
印字桁数が大きい場合の印字データは印刷が不可能であ
った。
For example, since the number of print digits of character data to be printed in a designated area is set as a fixed value, print data cannot be printed when the number of print digits is larger than the fixed value.

【0006】また、印字データを印字する位置および文
字サイズも固定であるため、印字データの印字位置や印
字文字サイズが変更になった場合、システムの処理内容
を変更する必要がある。
Further, since the position and character size at which print data is printed are fixed, if the print position or print character size of print data is changed, it is necessary to change the processing contents of the system.

【0007】本発明の目的は、定形用紙,特に文書印刷
エリアを指定する矩形枠を有する定形用紙の形式とその
矩形枠に印字すべき文字データとのフォーマットの一方
に変更があった場合でも、自動的に両者の整合を図るこ
とで最適な印字を可能にし、例えば郵便番号の桁数等に
変更があった場合に有効な文書作成装置を提供すること
にある。
[0007] An object of the present invention is to provide a fixed-size sheet, especially a fixed-size sheet having a rectangular frame for designating a document print area, and a format for character data to be printed in the rectangular frame. Optimum printing is enabled by automatically matching the two , for example , to the number of digits in the postal code
An object of the present invention is to provide an effective document creation device when there is a change .

【0008】[0008]

【課題を解決するための手段】本発明は、基本的に次の
ように構成する。
The present invention is basically configured as follows.

【0009】すなわち、文書データを作成する文書作成
手段と、作成された文書データを記憶する記憶手段と、
記憶された文書データを印刷する印刷手段と、記憶され
た文書データを表示する表示手段とを備えた文書作成装
置において、定形用紙の文書印刷エリアを指定する矩形
枠を読み取ってイメージデータに変換する用紙読み取り
手段と、前記イメージデータを入力し、このイメージデ
ータを基に前記矩形枠の形式を認識して、前記文書デー
タのうち該矩形枠に印字すべき文字データの大きさを演
算し、且つ、前記矩形枠の桁数と該矩形枠に印字すべき
前記文字データの桁数の差を算出して、前記矩形枠の桁
数に対して前記文字データの桁数が多い場合には、その
桁数の差分だけ前記文字データの方の下の桁を削除し、
前記矩形枠の桁数に対して前記文字データの桁数が少な
い場合には、その桁数の差分だけ前記矩形枠の下の桁側
を空欄にして印刷するための演算処理を実行する演算手
段と、を備えたことを特徴とする。
That is, document creation means for creating document data, storage means for storing the created document data,
In a document creating apparatus having printing means for printing stored document data and display means for displaying stored document data, a rectangle for designating a document printing area of a fixed size paper
Paper reading means for reading a frame and converting the image data into image data; inputting the image data;
The format of the rectangular frame is recognized based on the
The size of the character data to be printed in the rectangular frame.
Calculation and the number of digits of the rectangular frame and printing on the rectangular frame
By calculating the difference in the number of digits of the character data, the digits of the rectangular frame are calculated.
If the number of digits of the character data is larger than the number,
Delete the lower digit of the character data by the difference of the number of digits,
The number of digits of the character data is smaller than the number of digits of the rectangular frame.
In this case, the difference between the number of digits, the digit side below the rectangular frame
And an arithmetic unit for executing an arithmetic process for printing with a blank .

【0010】上記構成によれば、前もって入力し記憶さ
れた文書データ(文字データ,桁数データ等)に対し
て、この文書データを印刷するための定形用紙の矩形枠
(文書印刷エリアを指定する矩形枠)に形式の変更があ
った場合、次のような整合が行われる。 すなわち、印刷
に際して、印刷対象となる定形用紙の矩形枠の形式(矩
形枠のサイズ,矩形枠の桁数等)がイメージリーダによ
り読み取られ、文書印刷装置の演算手段は、このイメー
ジデータを入力して、矩形枠の形式を認識し、文書デー
タのうち矩形枠に印刷される文字データの大きさが適合
しない場合には、その矩形枠に適合するような文字サイ
ズを演算し、矩形枠に印刷すべき文字の大きさを変更す
る。また、矩形枠の桁数に対して矩形枠に印刷すべき文
字データの桁数が多い場合には、その桁数の差分だけ前
記文字データの方の下の桁を削除し、一方、前記矩形枠
の桁数に対して前記印刷すべき文字データの桁数が少な
い場合には、その桁数の差分だけ前記矩形枠の下の桁側
を空欄にする演算処理を実行した後、この演算結果を基
に印刷を実行する。
[0010] According to the above configuration, the information is input and stored in advance.
Document data (character data, number of digits data, etc.)
The rectangular frame of the standard paper for printing this document data.
(Rectangular frame specifying the document print area)
In this case, the following matching is performed. That is, printing
At the time of printing, the format of the rectangular frame
The size of the shape frame, the number of digits of the rectangular frame, etc.) depends on the image reader.
The operation means of the document printing apparatus reads this image.
Input the text data, recognize the rectangular frame format,
The size of the character data printed in the rectangular frame of the data matches
If not, use a character size that fits the rectangular frame.
And change the size of the characters to be printed in the rectangular frame.
You. Also, the text to be printed on the rectangular frame for the number of digits of the rectangular frame
If the number of digits of the character data is large,
The lower digit of the character data is deleted, while the rectangular frame
The number of digits of the character data to be printed is smaller than the number of digits
In this case, the difference between the number of digits, the digit side below the rectangular frame
Is blank, and then the result of this calculation is
Execute printing.

【0011】[0011]

【発明の実施の形態】本発明の実施の形態を図面を用い
て説明する。
Embodiments of the present invention will be described with reference to the drawings.

【0012】ここでは、一例として、文書作成装置にお
けるカード形式データ作成システムにおいて、作成した
住所録データを、はがきに印字する場合を例として示
す。
Here, as an example, a case where the created address book data is printed on a postcard in the card format data creation system in the document creation apparatus will be described as an example.

【0013】図1は本発明の適用対象となるワードプロ
セッサのブロック図である。
FIG. 1 is a block diagram of a word processor to which the present invention is applied.

【0014】図1において、入力装置101は、文書デ
ータを作成する手段となる文字入力キー、印刷の実行指
令を入力する印刷キー(ここでは、はがきの宛て名印刷
を一例として、この印刷キーを宛て名印刷キーと称す
る)、数字およびマトリクス〔マトリクスとは、例えば
図6(c)に示すような画面に表れた印刷項目指定用の
マトリクス状の表示欄である〕を選択するキー(以下、
テンキーと呼ぶ)、入力の終了を示すキー(以下、実行
キーと呼ぶ)を有している。
In FIG. 1, an input device 101 includes a character input key serving as a means for creating document data, a print key for inputting a print execution command (here, an example of a postcard address print is a print key. Keys for selecting address printing keys), numbers and matrices (matrix is a matrix-like display field for designating print items displayed on a screen as shown in FIG. 6C, for example).
Numeric keys), and a key indicating the end of the input (hereinafter referred to as an execution key).

【0015】表示装置102は、作成された文書データ
や印刷作業メニュー等を表示するCRT,液晶等のディ
スプレイである。
The display device 102 is a display such as a CRT or a liquid crystal for displaying created document data and a print operation menu.

【0016】記憶装置105は、文書データ103,印
刷フォーム,印刷項目指定用のフォーム,印刷管理テー
ブル104等をメモリ上に記憶しておく装置である。
The storage device 105 is a device that stores document data 103, a print form, a form for specifying print items, a print management table 104, and the like on a memory.

【0017】文書データは、ユーザが入力装置101を
介して作成したもので、郵便はがき等の宛名に用いる郵
便番号,住所,氏名等の記録した住所録ファイルも文書
データの一つである。図6(a)に住所ファイルの一例
を示す。本例の住所ファイルは、住所及び氏名について
は、はがき1枚につきそれぞれ2つを並記可能にしてあ
る(住所,氏名のそれぞれについては、以下に述べるよ
うに、印刷項目指定によりユーザにより任意に選択でき
る。住所について2つを並記する場合とは、住所1に町
名,番地等を、住所2にその所在する建物名やその部屋
番等を記載する場合等である。住所2が不用の場合はそ
こを空欄にしておく)。
The document data is created by the user via the input device 101, and an address book file in which a postal code, an address, a name, etc. used for an address of a postcard or the like is recorded is also one of the document data. FIG. 6A shows an example of the address file. In the address file of the present example, two addresses and one name can be written for each postcard for the address and the name (for the address and the name, as described below, the user can arbitrarily specify the print items by the print item). A case where two addresses are listed side by side is a case where a town name and a street address are described in an address 1, and a name of a building or a room number thereof is described in an address 2. For example, the address 2 is unnecessary. If so, leave it blank.)

【0018】印刷フォームは、図6(b)及び図7に示
すようなフォームであり、先に述べた図6(a)の住所
ファイルは、これに対応させたものである。
The print form is a form as shown in FIG. 6B and FIG. 7, and the address file in FIG. 6A described above corresponds to this.

【0019】印刷項目指定用のフォームは、図6(c)
に示すようなもので、これも上記印刷フォームに対応さ
せてあり、左欄の郵便番号,住所1,住所2,氏名1,
氏名2は図6(b)の印刷フォームの配置に対応する項
目表示名で、右欄は図6(a)の左欄の項目名表示が任
意にマトリクスを通して選択可能にしてある(マトリク
スが一回に表示できる項目数はここでは3つであるが、
印刷項目数が4以上の場合には、<つぎ><まえ>のキ
ー操作でマトリクスを切り替えて表示可能にしてある。
本例では、最初のマトリクスに表れる項目は郵便番号,
住所1,住所2であり、次に表れる項目は氏名1,氏名
2となっている)。
FIG. 6C shows a form for specifying print items.
This also corresponds to the print form described above, and the zip code, address 1, address 2, name 1,
The name 2 is an item display name corresponding to the layout of the print form in FIG. 6B, and the right column is such that the item name display in the left column of FIG. The number of items that can be displayed at a time is three here,
When the number of print items is four or more, the matrix can be switched and displayed by key operations of <next> and <previous>.
In this example, the first item in the matrix is the postal code,
Address 1 and Address 2 and the items that appear next are Name 1 and Name 2).

【0020】例えば、上記マトリクスを通して、図6
(c)に示すように、印刷項目指定の右欄に図6(a)
の左欄の項目名表示を郵便番号,住所1,住所2,氏名
1,氏名2の順で指定すれば、図6(b)に示すような
配置で、印刷では図6(a)の右欄の具体的な郵便番
号,住所,氏名が自動的に読み込まれ印字可能になる。
これに代わって、図6(d)に示すように、印刷項目指
定の右欄に図6(a)の左欄の項目名表示を郵便番号,
住所2,住所1,氏名2,氏名1の順で指定すれば、図
6(b)に示す住所1,2の配置が入れ替わり、また氏
名1,2の配置が入れ替わる。また、郵便番号,住所
1,住所2,氏名1,氏名2のうち不用なものは、図6
(c),(d)に示す印刷項目指定の右欄の該当箇所を
空欄にしておく。
For example, through the above matrix, FIG.
As shown in FIG. 6 (c), FIG.
If the item name display in the left column is designated in the order of zip code, address 1, address 2, name 1, name 2, the printout is arranged as shown in FIG. The specific zip code, address, and name in the fields are automatically read and printed.
Instead, as shown in FIG. 6D, the item name display in the left column of FIG.
If designation is made in the order of address 2, address 1, name 2, name 1, the arrangement of addresses 1 and 2 shown in FIG. 6B is switched, and the arrangement of names 1 and 2 is switched. Unnecessary ones among postal code, address 1, address 2, name 1, and name 2 are shown in FIG.
The corresponding part in the right column of the print item specification shown in (c) and (d) is left blank.

【0021】印刷管理テーブル104は、上記のように
して指定された印刷項目指定のデータや後述のイメージ
データを基に作成した印刷フォーマットに関するデータ
(宛て名印刷のようなフォーム印刷に関する情報)を項
目ごとに管理し、印刷に供する。
The print management table 104 stores data on print items designated as described above and data on a print format created on the basis of image data to be described later (information on form printing such as address printing). Each is managed and provided for printing.

【0022】106は印刷管理テーブル104のデータ
にしたがって文書データ103を印字する印刷装置であ
る。
A printing apparatus 106 prints the document data 103 in accordance with the data in the print management table 104.

【0023】読取り装置107は、例えばイメージスキ
ャナであり、文書印刷エリアを指定する矩形枠を有する
定形用紙の形式を読み取ってイメージデータに変換する
用紙読み取り手段を構成する。例えば、はがきをセット
することによりはがきのイメージをドットデータに変換
(以下、イメージデータと呼ぶ)する。
The reading device 107 is, for example, an image scanner, and constitutes a sheet reading means for reading a format of a fixed size sheet having a rectangular frame for designating a document printing area and converting the format into image data. For example, by setting a postcard, an image of the postcard is converted into dot data (hereinafter, referred to as image data).

【0024】制御装置108は、前記イメージデータを
基に文書データ103のうち前記矩形枠に印字されるべ
き文字データの印刷フォーマットを自動的に整合する印
刷フォーマット整合手段(演算手段)となる。ここで
は、イメージデータを入力して、この入力データを基に
前記矩形枠(例えば、郵便番号記入欄の桝目)の形式を
認識し、この矩形枠の形式と記憶された文書データのう
ち前記矩形枠に印字されるべき文字データの適合性を判
別して、文字データの印刷フォーマットを矩形枠の形式
に整合させるための演算処理を実行する。
The control device 108 serves as a print format matching means (arithmetic means) for automatically matching the print format of character data to be printed in the rectangular frame in the document data 103 based on the image data. Here, image data is input, and based on the input data, the format of the rectangular frame (for example, a cell in the postal code entry box) is recognized, and the format of the rectangular frame and the rectangular shape of the stored document data are used. The compatibility of the character data to be printed on the frame is determined, and arithmetic processing for matching the print format of the character data to the rectangular frame format is executed.

【0025】制御装置108は、図2に示すように、入
力装置101との間の情報信号の授受を仲介する入力情
報制御部201と、記憶装置105に記憶されている印
刷項項目指定のフォームを呼び出して、入力装置101
(ユーザのテンキー操作によるマトリクス選択)からの
印刷項目指定信号に基づき印刷項目を指定する印刷項目
指定部202と、図6(a)〜(d)に示すような文書
データ,印刷項目指定のフォーム及びその指定内容,印
刷フォームを表示するために表示装置102を制御する
表示制御部203と、イメージデータ変換用の読取り装
置107を制御する読取り情報制御部204と、読み取
ったイメージデータ(例えば官製はがきに関するデー
タ)から郵便番号入力欄等(矩形枠)のはがきの情報を
認識するはがき情報認識部205と、印刷項目指定デー
タ等から宛て名印刷を行うための情報を管理している印
刷管理テーブル104を自動的に作成する印刷管理テー
ブル情報制御部206と、印刷項目指定の内容である文
書データ103の情報(住所録データ)と印刷管理テー
ブル104の情報に呼び出して印刷装置106の印刷制
御を行う印刷制御部207を備える。
As shown in FIG. 2, the control unit 108 includes an input information control unit 201 which mediates the transmission and reception of information signals to and from the input device 101, and a print item item designation form stored in the storage device 105. And input device 101
A print item designation unit 202 for designating a print item based on a print item designation signal from (matrix selection by a user's numeric keypad operation), and document data and a print item designation form as shown in FIGS. And a display control unit 203 for controlling the display device 102 to display the designated contents and a print form; a read information control unit 204 for controlling the reading device 107 for converting image data; and read image data (for example, a government-made postcard). ), A postcard information recognizing unit 205 for recognizing postcard information such as a postal code input field (rectangular frame) from a postal code input field, and a print management table 104 for managing information for performing address printing from print item designation data and the like. And a print management table information control unit 206 for automatically creating a document. Includes a print control unit 207 that performs printing control of (address book data) and print management table 104 of the call printing device information 106.

【0026】前記印刷項目指定部202、はがき情報認
識部205、印刷管理テーブル情報制御部206はマイ
クロコンピュータを用いて、そのデータ処理機能によっ
て実現される。
The print item designation section 202, postcard information recognition section 205, and print management table information control section 206 are realized by data processing functions using a microcomputer.

【0027】ここで、本実施形態の動作について図3〜
図5のフローチャートに基づき説明する。図3〜図5
は、前記制御装置108が行う、宛て名印刷のための操
作フローである。
Here, the operation of this embodiment will be described with reference to FIGS.
This will be described with reference to the flowchart of FIG. 3 to 5
5 is an operation flow for printing a destination name performed by the control device 108.

【0028】図3に示す処理301では、入力装置10
1から宛て名印刷キーが入力されると、入力情報制御部
201に宛て名印刷を開始する信号を発生する。入力情
報制御部201は、宛て名印刷開始の信号を印刷項目指
定部202へ送り、これに基づき、次の処理302がな
される。
In the process 301 shown in FIG.
When a destination printing key is input from No. 1, a signal for starting destination printing is generated to the input information control unit 201. The input information control unit 201 sends a signal for starting address printing to the print item designation unit 202, and the next process 302 is performed based on the signal.

【0029】処理302では、印刷項目指定部202が
図6(c)に示すような印刷項目指定フォームデータを
記憶装置105から呼び出して表示制御部203に送
る。表示制御部203は送られた情報をもとに、表示装
置102を介して印刷項目指定フォームを画面に表示す
る。その後、入力装置101より、印刷する項目をマト
リクスより前記テンキーを用いて入力(指定)すると、
入力情報制御部201は入力キー情報を印刷項目指定部
202へ送る。印刷項目指定部202は入力キー情報に
より、例えば図6(c)や(d)のような印刷項目指定
を行い、その指定された印刷項目の内容を表示制御部2
03へ伝える。同時に、印刷管理テーブル104にその
項目番号及び印刷項目内容を項目ごとにセットする。表
示制御部203は、印刷項目指定部202より送られて
きた情報に従い、設定された内容を表示装置102に表
示する。
In the process 302, the print item designation unit 202 calls the print item designation form data as shown in FIG. 6C from the storage device 105 and sends it to the display control unit 203. The display control unit 203 displays a print item designation form on a screen via the display device 102 based on the transmitted information. Thereafter, when an item to be printed is input (designated) from the matrix using the numeric keypad from the input device 101,
The input information control unit 201 sends the input key information to the print item designation unit 202. The print item specifying unit 202 specifies print items such as those shown in FIGS. 6C and 6D based on the input key information, and displays the contents of the specified print items on the display control unit 2.
Tell 03. At the same time, the item number and print item contents are set in the print management table 104 for each item. The display control unit 203 displays the set contents on the display device 102 according to the information sent from the print item designation unit 202.

【0030】印刷項目の指定が終了したら、実行キーを
入力することにより、処理303により印刷情報作成処
理を行う。
After the designation of the print items is completed, the print key is input by inputting the execution key, and the print information creation processing is performed in step 303.

【0031】ここで、処理303について、図4、図5
を用いて以下詳しく説明する。
Here, the processing 303 will be described with reference to FIGS.
This will be described in detail below.

【0032】処理303になると、印刷項目指定部20
2は、読取り情報制御部204に読取り装置107を起
動させるための信号を送る。
In step 303, the print item designation unit 20
2 sends a signal for activating the reader 107 to the read information controller 204.

【0033】読み取り装置107はセットされているは
がきの読み取りを実行する。読取り装置107ではがき
を読み取ることにより、読取り情報制御部204で郵便
番号記入欄(印字欄)の矩形(桝目)がイメージデータ
に変換される(図9参照)。このイメージデータは、ド
ットで表現される。はがき情報認識部205は、変換さ
れたイメージデータから郵便番号記入欄(矩形枠)を検
索し、郵便番号記入欄の位置および、矩形サイズとその
桁数を取得する(処理401)。
The reading device 107 reads a set postcard. When the reading device 107 reads the postcard, the reading information control unit 204 converts the rectangle (cell) of the postal code entry column (printing column) into image data (see FIG. 9). This image data is represented by dots. The postcard information recognition unit 205 searches the postal code entry column (rectangular frame) from the converted image data, and acquires the position of the postal code entry column, the rectangle size, and the number of digits (process 401).

【0034】郵便番号記入欄の印字桁数を取得する方法
は、図8に示すように、変換されたイメージデータの横
方向に対してドットの空きを認識することにより取得
する。郵便番号記入欄の位置を取得する方法は、変換さ
れたイメージデータの横方向に対するドットが空きの状
態からドットが開始する位置及びイメージデータの縦方
向に対するドットの空き状態を認識することにより取
得する。郵便番号記入欄の矩形サイズを取得する方法
は、変換されたイメージデータの横方向および縦方向に
対して、ドットの長さを認識することにより取得す
る。
As shown in FIG. 8, the method of obtaining the number of print digits in the postal code entry field is obtained by recognizing an empty dot in the horizontal direction of the converted image data. The method of obtaining the position of the postal code entry field is obtained by recognizing the position where the dot starts from the state where the dots in the horizontal direction of the converted image data are empty and the empty state of the dots in the vertical direction of the image data. . The method of obtaining the rectangular size of the postal code entry field is obtained by recognizing the dot length in the horizontal and vertical directions of the converted image data.

【0035】上記で取得した郵便番号記入欄の情報をも
とに印刷指定項目等と共に印刷管理テーブル情報制御部
206により、印刷管理テーブル104を作成する。
A print management table 104 is created by the print management table information control unit 206 together with print designation items and the like based on the information in the postal code entry fields obtained above.

【0036】印刷管理テーブル情報制御部206は、記
憶装置105から文書データ103の住所録に記憶され
ている郵便番号の文字データ(印字データ)を取得する
(処理402)。
The print management table information control unit 206 acquires the character data (print data) of the postal code stored in the address book of the document data 103 from the storage device 105 (process 402).

【0037】次に、印字すべき郵便番号データの文字数
と、郵便番号記入欄の桁数(矩形枠の桁数)の比較を行
う(処理403)。なお、この比較は、郵便番号記入欄
の桁数が近い将来、図7に示すように5桁から7桁に改
正されるため、その時に官製はがきを従前のものを使っ
たり、新しいものを使ったりする場合、また、記憶され
ている住所録の郵便番号が旧の桁数のものか新しい桁数
のものであったりする場合に、郵便番号の文字データ数
と郵便番号記入欄の桁数とに不一致が生じることを考慮
したものである。
Next, the number of characters of the postal code data to be printed is compared with the number of digits of the postal code entry column (the number of digits of the rectangular frame) (process 403). In this comparison, since the number of digits in the postal code entry field will be revised from 5 digits to 7 digits as shown in Fig. 7 in the near future, at that time, use a conventional postcard or use a new one. Or if the stored postal code in the address book has an old number of digits or a new number of digits, the number of characters in the postal code and the number of Is considered in that a mismatch occurs.

【0038】処理403での比較した結果、郵便番号デ
ータ(文字データ)の文字数と郵便番号の記入欄の桁数
とが同じまたは、郵便番号記入欄の印字桁数が大きい場
合は、郵便番号データをフルに出力し、その桁数に差が
ある場合(郵便番号桁数より郵便番号記入欄の桁数が大
きい場合)には、その差分だけ前記矩形枠の下の桁側を
空欄にして文字データを入力するような演算処理を実行
する(処理404)。
As a result of the comparison in the process 403, if the number of characters of the postal code data (character data) and the number of digits of the postal code entry column are the same or the number of print digits of the postal code entry column is large, the postal code data Is output in full, and if there is a difference in the number of digits (if the number of digits in the postal code entry field is larger than the number of postal code digits), leave the lower digit side of the rectangular frame blank for that difference An arithmetic process for inputting data is executed (process 404).

【0039】郵便番号記入欄の桁数よりも郵便番号デー
タの桁数が多い場合には、その桁数の差分だけ郵便番号
の下の桁を削除する。すなわち、郵便番号データのうち
郵便番号記入欄の桁数分だけ上の桁側から取り出して、
郵便番号記入欄に入力可能にする(処理405)。
If the number of digits of the postal code data is larger than the number of digits of the postal code entry column, the lower digit of the postal code is deleted by the difference in the number of digits. In other words, take out the postal code data from the upper digit side by the number of digits in the postal code entry field,
It is made possible to input in the postal code entry column (process 405).

【0040】上記で取得した郵便番号の印字桁数も印刷
管理テーブル104の内容とする(処理406)。
The number of digits of the postal code obtained above is also used as the content of the print management table 104 (step 406).

【0041】印刷管理テーブル104は宛て名印刷に関
する情報を項目ごとに管理している。そのうち、郵便番
号印字情報としては、郵便番号の印字桁数情報、印字文
字サイズ情報、印字位置情報で構成されている。
The print management table 104 manages information on destination printing for each item. Among them, the postal code print information is composed of print digit number information of the postal code, print character size information, and print position information.

【0042】郵便番号の印字桁数情報は、前記(処理4
03)の結果取得した郵便番号の印字桁数をセットす
る。
The information on the number of digits of the postal code is described in (Process 4).
Set the number of print digits of the postal code obtained as a result of step 03).

【0043】図5に示すように、郵便番号の印字文字サ
イズ情報は、イメージデータより取得した郵便番号記入
欄の矩形サイズから、それに適合する郵便番号の文字サ
イズを取得し、セットする(処理501)。
As shown in FIG. 5, the print character size information of the postal code is obtained by setting the character size of the postal code corresponding to the rectangular size of the postal code entry field obtained from the image data (step 501). ).

【0044】郵便番号の印字位置情報(印刷位置情報)
は、イメージデータより取得した郵便番号記入欄の位置
および、矩形サイズと郵便番号の印字文字サイズ情報か
ら計算し、郵便番号記入欄の中心に郵便番号(文字デー
タ)が位置するように求める。
Print position information of zip code (print position information)
Is calculated from the position of the postal code entry field obtained from the image data and the rectangular size and the print character size information of the postal code, and it is determined that the postal code (character data) is located at the center of the postal code entry field.

【0045】郵便番号の印字位置を求めるために、ま
ず、図9(a)に示すように、郵便番号を構成する各印
字文字サイズ情報からその郵便番号に外接する矩形サイ
ズ(以下、外接矩形サイズと称する)を取得する(処理
502)。
In order to determine the printing position of the postal code, first, as shown in FIG. 9A, a rectangular size circumscribing the postal code (hereinafter referred to as a circumscribed rectangular size) is obtained from each print character size information constituting the postal code. (Process 502).

【0046】次に図9(b)に示すように、前記イメー
ジデータから取得した郵便番号記入欄の位置および、そ
の記入欄矩形サイズから郵便番号記入欄の中心点を計算
する。計算式は、(郵便番号記入欄の矩形サイズ÷2)
+郵便番号記入欄の位置とし、中心点のX,Y座標を求
める(処理504)。
Next, as shown in FIG. 9B, the center of the postal code entry column is calculated from the position of the postal code entry column obtained from the image data and the rectangular size of the entry column. The calculation formula is (rectangular size of postal code entry column $ 2)
+ The position of the postal code entry field is set, and the X and Y coordinates of the center point are obtained (process 504).

【0047】次に、図9(c)に示すように、取得した
郵便番号の印字文字サイズの外接矩形サイズに対して、
半分の長さを計算する。計算式は取得した外接矩形サイ
ズ÷2とし、縦、横の長さを計算する(処理505)。
Next, as shown in FIG. 9C, the circumscribed rectangle size of the print character size of the obtained postal code is
Calculate half length. The calculation formula is the acquired circumscribed rectangle size # 2, and the vertical and horizontal lengths are calculated (process 505).

【0048】次に処理504および処理505により求
めた値から郵便番号の印字位置の基点を計算する。計算
式は、郵便番号記入欄の中心点−郵便番号の印字文字サ
イズの外接矩形サイズに対する半分の長さとする(処理
506)。
Next, the base point of the print position of the postal code is calculated from the values obtained by the processes 504 and 505. The calculation formula is the center of the postal code entry field minus half the length of the print character size of the postal code with respect to the circumscribed rectangle size (process 506).

【0049】処理506で求められた基点座標を、郵便
番号の印字位置とし、郵便番号の印字位置情報にセット
する(処理507) 同様に郵便番号の印字桁数分の印字位置を計算する(処
理503)。
The base point coordinates obtained in the process 506 are set as the print position of the postal code, and are set in the print position information of the postal code (process 507). Similarly, the print positions corresponding to the number of print digits of the postal code are calculated (process). 503).

【0050】以下、印刷管理テーブル104の情報に従
い、印刷制御部207が印刷装置106を介して、はが
きに印字する(処理304)。
Subsequently, the print control unit 207 prints on a postcard via the printing device 106 according to the information in the print management table 104 (process 304).

【0051】[0051]

【発明の効果】本発明によれば、定形用紙(例えば、は
がき)文書印刷エリアを指定する矩形枠(例えば、郵
便番号記入欄となる桝目のフォーマット(桝目の桁数
等)とその矩形枠に印字すべき文字データ(例えば郵便
番号)との一方に変更があっ矩形枠・文字データ間
に形式上の不一致(例えば、桁数の不一致)があった場
合でも、定形用紙のイメージを読み取るだけで、自動的
に両者の整合を図ることで最適な印字を可能にする。ま
た、印刷給紙機構に定形用紙のイメージを読み取る機構
を設けておくと、異なるフォーマットの用紙が混在して
も、自動的に郵便番号記入欄に郵便番号を印字すること
が可能となる。
According to the present invention, standard size paper (e.g., post card) rectangular frame for specifying a document print area (e.g., square cell as a zip code entry column) digits format (squares of
There is a change in the hand of an equal) the character data to be printed on the rectangular frame (e.g. zip code), between the rectangular frame-character data
If there is a formal mismatch (eg, mismatched digits) in
Even in this case, the optimum printing can be performed by automatically adjusting the two just by reading the image on the standard paper . Further, if a mechanism for reading an image of a fixed size paper is provided in the print paper feeding mechanism, it is possible to automatically print the postal code in the postal code entry field even if papers of different formats are mixed.

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

【図1】本発明の実施の形態の基本構成を示すブロック
図。
FIG. 1 is a block diagram showing a basic configuration of an embodiment of the present invention.

【図2】図1に示した本発明における制御装置の機能ブ
ロック図。
FIG. 2 is a functional block diagram of a control device according to the present invention shown in FIG.

【図3】宛て名印刷における操作フローを示す図。FIG. 3 is a diagram showing an operation flow in address printing.

【図4】宛て名印刷における操作フローを示す図。FIG. 4 is a diagram showing an operation flow in address printing.

【図5】郵便番号の印字位置計算における操作フローを
示す図。
FIG. 5 is a diagram showing an operation flow in calculating a printing position of a postal code.

【図6】カード形式データ作成システムの、文書の例と
各印刷項目の説明図。
FIG. 6 is an explanatory diagram of an example of a document and each print item in the card format data creation system.

【図7】入力したデータを実際に印刷した結果を示した
図。
FIG. 7 is a view showing a result of actually printing input data.

【図8】はがきをイメージデータに変換した図。FIG. 8 is a diagram in which a postcard is converted into image data.

【図9】郵便番号の印字位置計算における手順を示す
図。
FIG. 9 is a diagram showing a procedure in calculating a printing position of a postal code.

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

101…入力装置(文書作成手段)、102…表示装
置、103…文書データ、104…印刷管理テーブル、
105…記憶装置、106…印刷装置、107…読取り
装置(用紙読み取り手段)、108…制御装置(印刷フ
ォーマット整合手段)、202…印刷項目指定部、20
5…はがき情報認識部、206…印刷管理テーブル情報
制御部。
101: input device (document creation means), 102: display device, 103: document data, 104: print management table,
105 storage device, 106 printing device, 107 reading device (paper reading device), 108 control device (print format matching device), 202 printing item designation section, 20
5 postcard information recognition unit, 206 print management table information control unit.

フロントページの続き (56)参考文献 特開 平6−222895(JP,A) 特開 平7−85013(JP,A) 特開 平7−114542(JP,A) 特開 平5−201093(JP,A) 特開 平8−221395(JP,A) 特開 平9−179918(JP,A) (58)調査した分野(Int.Cl.6,DB名) B41J 5/30 G06F 3/12 G06F 17/21 H04N 1/387Continuation of the front page (56) References JP-A-6-222895 (JP, A) JP-A-7-85013 (JP, A) JP-A-7-114542 (JP, A) JP-A-5-201093 (JP) JP-A-8-221395 (JP, A) JP-A-9-179918 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) B41J 5/30 G06F 3/12 G06F 17/21 H04N 1/387

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 文書データを作成する文書作成手段と、
作成された文書データを記憶する記憶手段と、記憶され
た文書データを印刷する印刷手段と、記憶された文書デ
ータを表示する表示手段とを備えた文書作成装置におい
て、定形用紙の 文書印刷エリアを指定する矩形枠を読み取っ
てイメージデータに変換する用紙読み取り手段と、前記イメージデータを入力し、このイメージデータを基
に前記矩形枠の形式を認識して、前記文書データのうち
該矩形枠に印字すべき文字データの大きさを演算し、且
つ、前記矩形枠の桁数と該矩形枠に印字すべき前記文字
データの桁数の差を算出して、前記矩形枠の桁数に対し
て前記文字データの桁数が多い場合には、その桁数の差
分だけ前記文字データの方の下の桁を削除し、前記矩形
枠の桁数に対して前記文字データの桁数が少ない場合に
は、その桁数の差分だけ前記矩形枠の下の桁側を空欄に
して印刷するための演算処理を実行する 演算手段と、を
備えたことを特徴とする文書作成装置。
1. A document creating means for creating document data,
In a document creating apparatus including a storage unit for storing the created document data, a printing unit for printing the stored document data, and a display unit for displaying the stored document data, a document printing area of a fixed size sheet is used. Paper reading means for reading a specified rectangular frame and converting the image data into image data; inputting the image data;
To recognize the format of the rectangular frame,
The size of character data to be printed in the rectangular frame is calculated, and
First, the number of digits of the rectangular frame and the character to be printed in the rectangular frame
Calculate the difference in the number of digits of the data, and
If the number of digits of the character data is large,
Delete the lower digit of the character data
When the number of digits of the character data is smaller than the number of digits of the frame
Is left blank on the lower digit side of the rectangular frame by the difference of the number of digits.
And a calculation unit for performing a calculation process for performing printing .
【請求項2】 前記定形用紙の矩形枠がはがきの郵便番
号記入欄であり、前記記憶手段には印刷すべき文書デー
タとして郵便番号,住所,氏名を記録した住所録ファイ
ルが記憶してある請求項1記載の文書作成装置。
2. The postal code of a postcard, wherein the rectangular frame of the standard paper is
Number entry field, and the storage means has document data to be printed.
Address book file that records postal code, address, and name
2. The document creation device according to claim 1, wherein the document is stored .
JP8105293A 1996-04-25 1996-04-25 Document creation device Expired - Lifetime JP2799162B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8105293A JP2799162B2 (en) 1996-04-25 1996-04-25 Document creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8105293A JP2799162B2 (en) 1996-04-25 1996-04-25 Document creation device

Publications (2)

Publication Number Publication Date
JPH09290540A JPH09290540A (en) 1997-11-11
JP2799162B2 true JP2799162B2 (en) 1998-09-17

Family

ID=14403650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8105293A Expired - Lifetime JP2799162B2 (en) 1996-04-25 1996-04-25 Document creation device

Country Status (1)

Country Link
JP (1) JP2799162B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3793181B2 (en) * 2003-08-08 2006-07-05 キヤノン株式会社 Data processing apparatus, print control method, computer-readable storage medium storing program, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222895A (en) * 1993-01-27 1994-08-12 Tokyo Electric Co Ltd Print format preparing device
JPH0785013A (en) * 1993-09-14 1995-03-31 Sanyo Electric Co Ltd Information processor
JPH07114542A (en) * 1993-10-15 1995-05-02 Hitachi Ltd Zip code input processor and printer

Also Published As

Publication number Publication date
JPH09290540A (en) 1997-11-11

Similar Documents

Publication Publication Date Title
JP2799162B2 (en) Document creation device
JPH11155053A (en) Information communication terminal equipment
JP3002594B2 (en) Report processing system
JPH06227078A (en) Printer for printing of regular form paper
JPS59165187A (en) Optical character reader
JP2928042B2 (en) Information transmission method using portable FAX / OCR terminal
JPH1055431A (en) Image processor
JP2747046B2 (en) Document creation device and control device
JPH0793076A (en) Printer device
JP2883440B2 (en) Label printing device
JPS6063665A (en) Input system for external character
JP2561970Y2 (en) Facsimile machine with automatic creation function of transmission guidance message
JP3099229U (en) Incense bag
JP2716961B2 (en) Ticketing machine
JP2610405B2 (en) Document creation device
JPS63250687A (en) Document data editing apparatus
JP2940140B2 (en) Document data processing device
JP2726464B2 (en) Ticketing machine
JPH04118763A (en) Document preparing device
JPH08111770A (en) Image forming device
JP2002245392A (en) Routine document input device
JPH06180662A (en) Electronic filing device
JPH03272875A (en) Data processing device
JPH01233485A (en) External character processing system for information processor
JPH07220007A (en) System for character input to write column of document