JPH079620B2 - Print data automatic editing method - Google Patents
Print data automatic editing methodInfo
- Publication number
- JPH079620B2 JPH079620B2 JP1108027A JP10802789A JPH079620B2 JP H079620 B2 JPH079620 B2 JP H079620B2 JP 1108027 A JP1108027 A JP 1108027A JP 10802789 A JP10802789 A JP 10802789A JP H079620 B2 JPH079620 B2 JP H079620B2
- Authority
- JP
- Japan
- Prior art keywords
- print data
- field
- edit
- unit
- byte
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 42
- 238000006243 chemical reaction Methods 0.000 claims description 9
- 238000013500 data storage Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 9
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は印刷データ自動編集方式に関し、特に電子計算
機システムにおける印刷出力時の印刷データの自動編集
方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print data automatic editing system, and more particularly to a print data automatic editing system at the time of print output in an electronic computer system.
(従来の技術) 従来、印刷データ編集方式においては、x行目の印刷デ
ータは、1バイト目からyバイトのデータをm桁に印刷
し、yバイト目からwバイトのデータをn桁に印刷する
といった情報を書式情報に設定しておき、印刷出力する
際に印刷制御部がその書式情報に従って印刷データを切
り分けて印刷装置に印刷指示をしていた。(Prior Art) Conventionally, in the print data editing method, the print data of the x-th row prints the data of the first byte to the y-byte in the m digit and the data of the y byte to the w-byte in the n digit. The print control unit cuts the print data according to the format information and issues a print instruction to the printer when the print output is performed.
(発明が解決しようとする課題) 上述した従来の編集方式は、印刷データの切り出し方を
バイト単位で固定的に書式情報の一部としてもつため、
印刷データの中味が1バイト文字と2バイト文字がどの
ように並んでいるかという構成と編集方法が1対1の関
係にあり、故に印刷データの中味の構成が少しでも変わ
れば、たとえどこの位置からいくつ文字を印刷するとい
った編集方法は変わらなくとも新たに編集情報を作り直
さなければならず、作業が非常に煩雑であった。また、
編集情報と実際の印刷データ構成との不整合による印刷
不正などのミスも発生しやすかった。(Problems to be Solved by the Invention) Since the conventional editing method described above has a fixed method of cutting out print data in byte units as part of format information,
There is a one-to-one relationship between the structure of how the 1-byte characters and 2-byte characters are arranged in the print data and the editing method. Therefore, if the structure of the print data changes a little Therefore, even if the editing method of printing some characters does not change, new editing information has to be recreated, and the work is very complicated. Also,
Mistakes such as fraudulent printing due to inconsistency between the edit information and the actual print data structure were likely to occur.
(課題を解決するための手段) 本発明による印刷データ自動編集方式は、印刷データの
切り出し位置と切り出し文字数をフィールド情報として
もつ編集フィールド定義部と、そのフィールドを何行目
のどの位置から印刷するかを決める編集フィールド割り
付け部を書式情報記憶部に設定する編集方法設定手段
と、印刷データ記憶部より印刷データを読み出し、前記
編集方法設定手段により書式情報記憶部に設定された編
集フィールド定義部のフィールド情報を印刷データ中の
文字が1バイト文字か2バイト文字かを見分けることに
より文字単位情報からバイト単位情報に変換する編集法
自動変換手段とを有している。(Means for Solving the Problem) In the print data automatic editing method according to the present invention, an edit field definition section having the cut-out position of the print data and the number of cut-out characters as field information, and the position of which line and which position the field is printed. An edit field setting unit for setting an edit field allocation unit for determining whether or not the print field is read from the print data storage unit, and an edit field definition unit set in the format information storage unit by the edit method setting unit. An automatic editing method is provided for converting the field information from the character unit information to the byte unit information by distinguishing whether the character in the print data is a 1-byte character or a 2-byte character.
(実施例) 次に本発明について図面を参照して説明する。(Example) Next, this invention is demonstrated with reference to drawings.
第1図は本発明の一実施例の印刷データの自動編集方式
の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of a print data automatic editing system according to an embodiment of the present invention.
本実施例の印刷データ自動編集方式は、編集方法設定手
段1と、書式情報記憶部2と、編集フィールド定義部3
と、編集フィールド割り付け部4と、印刷データ出力手
段5と、印刷データ記憶部6と、編集法自動変換手段7
と、印刷制御部8と、印刷装置9とから構成されてい
る。The print data automatic editing method according to the present embodiment includes an editing method setting unit 1, a format information storage unit 2, and an editing field definition unit 3.
An edit field allocating unit 4, a print data output unit 5, a print data storage unit 6, and an editing method automatic conversion unit 7.
A print controller 8 and a printer 9.
編集方法設定手段1は、印刷データをぉのように編集す
るかを定める編集フィールド定義部3と編集フィールド
割り付け部4を書式情報記憶部2に設定する。The editing method setting means 1 sets, in the format information storage section 2, an edit field defining section 3 and an edit field allocating section 4 which determine whether or not the print data is to be edited.
印刷データ出力手段5はあらかじめ印刷データ記憶部6
に印刷すべきデータを出力しておく。The print data output means 5 has a print data storage unit 6 in advance.
Output the data to be printed on.
編集法自動変換手段7は、印刷データ記憶部6より印刷
データを読み込み、印刷データの中味が1バイト文字は
2バイト文字かを調べてこの印刷データに対応する編集
フィールド定義部3のフィールド情報を文字単位情報か
らバイト単位情報に変換し、その変換情報に編集フィー
ルド定義部3のもとの情報を書き換える。The edit method automatic conversion means 7 reads the print data from the print data storage unit 6, checks whether the content of the print data is a 1-byte character or a 2-byte character, and obtains the field information of the edit field definition unit 3 corresponding to this print data. The character unit information is converted into byte unit information, and the original information of the edit field definition unit 3 is rewritten with the converted information.
印刷制御部8はあらかじめ、編集方法手段2によって設
定された編集フィールド割り付け部4及び編集法自動変
換手段7によりバイト単位に変換された編集フィールド
定義部3に従い、印刷データを切り分け、印刷装置に印
刷指示を行う。The print control unit 8 divides the print data according to the edit field allocation unit 4 set by the edit method unit 2 and the edit field definition unit 3 converted in byte unit by the edit method automatic conversion unit 7 in advance, and prints on the printing device. Give instructions.
次に、編集方法設定手段1と編集法自動変換手段7につ
いて第2図、第3図、第4図及び第5図を参照してさら
に詳しく説明する。Next, the editing method setting means 1 and the editing method automatic converting means 7 will be described in more detail with reference to FIG. 2, FIG. 3, FIG. 4 and FIG.
第2図は第1図の編集フィールド定義部3を、第3図は
第1図の編集フィールド割り付け部4を例示した図であ
る。編集方法設定手段1は、印刷データの編集方法を決
定するために書式情報記憶部2に、編集フィールド定義
部3及び編集フィールド割り付け部4を設定する。例え
ば、第4図に示すように印刷データを印刷するとき、印
刷データの“山”から最初の“△”(空白を表わす)ま
でをフィールド1、“1"から“5"までをフィールド2と
して区切り、第2図の編集フィールド定義部の方法1に
フィールド切り出し情報を設定する。FIG. 2 is a diagram illustrating the edit field definition unit 3 of FIG. 1, and FIG. 3 is a diagram illustrating the edit field allocation unit 4 of FIG. The editing method setting means 1 sets the editing field defining section 3 and the editing field allocating section 4 in the format information storage section 2 in order to determine the printing data editing method. For example, when printing the print data as shown in FIG. 4, the "mountain" to the first "△" (indicating a blank) of the print data is field 1 and the "1" to "5" are field 2 Delimiter, field cutout information is set in the method 1 of the edit field definition part in FIG.
まず、フィールド1は1文字めから始まり5文字あるの
で第2図の編集フィールド定義部のフィールド1の切り
出し位置が1、切り出し文字数が5と設定される。フィ
ールド2は9文字めから始まり3文字あるので切り出し
位置に9、切り出し文字数に3が設定される。方法2以
下は別の印刷データを方法1とは違った切り出し方をす
る場合に設定され、複数種類の切り出し方が設定できる
ようになっている。First, since the field 1 starts from the first character and has 5 characters, the cut-out position of the field 1 in the edit field definition portion of FIG. 2 is set to 1 and the cut-out character number is set to 5. Since the field 2 has 3 characters starting from the 9th character, 9 is set in the cutout position and 3 is set in the cutout character number. Method 2 and subsequent steps are set when different print data is cut out differently from method 1, and a plurality of types of cutout methods can be set.
また、第3図の編集フィールド割り付け部の行位置xの
ところで、参照する編集分類番号に方法1の1を、10桁
目にフィールド1を印刷するので印刷位置に10、印刷フ
ィールド番号1を設定し、20桁目にフィールド2を印刷
するので、印刷位置に20、印刷フィールド番号2を設定
する。In addition, at the line position x of the edit field allocation part in FIG. 3, the method 1 of 1 is printed in the referenced edit classification number, and the field 1 is printed in the 10th digit, so the print position is set to 10 and the print field number 1 is set. Then, since the field 2 is printed at the 20th digit, 20 and the print field number 2 are set at the print position.
次に、印刷出力する際、編集法自動変換手段7は既に印
刷データ出力手段5によって出力された印刷データを印
刷データ記憶部6から読み込みまた既に設定された印刷
データに対応する第2図の編集フィールド定義部3及び
第3図の編集フィールド割り付け部を読み込み印刷デー
タが何行目に印刷するかによって第3図の編集フィール
ド割り付け部を検索し、その行がどの編集をするかを参
照編集分類番号で調べる。次に前記参照分類番号をもつ
方法を第2図の編集フィールド定義部から検索し、その
フィールド情報を見て、切り出し文字位置と切り出し文
字数の部分を、実際に読み込んだ印刷データ中の文字が
1バイト文字か2バイト文字かを調べることにより文字
単位の情報をバイト単位に変換する。例えば第4図の印
刷データの“山田太郎△△△”が2バイト文字で、“01
75"が1バイト文字であり、これをx行目に印刷すると
すると、まず第3図の編集フィールド割り付け部から行
位置xの参照編集分類番号を検索し、その番号1から第
2図の編集フィールド定義部の方法1を選ぶ。方法1の
フィールド情報に対して、まずフィールド1は切り出し
位置を1バイト、切り出し文字数を5文字×2バイト=
10バイトに変換する。フィールド2は切り出し位置を7
文字×2バイト+2文字×1バイト=16バイト、切り出
し文字数を3文字×1バイト=3バイトに変換する。こ
のように変換した結果が第5図である。Next, when printing out, the editing method automatic conversion means 7 reads the print data already output by the print data output means 5 from the print data storage unit 6 and edits the print data in FIG. 2 corresponding to the print data already set. Read the field definition part 3 and the edit field allocation part of FIG. 3 and search the edit field allocation part of FIG. 3 according to which line the print data is printed, and refer to which edit the line edits. Check by number. Next, the method having the reference classification number is searched from the edit field definition section of FIG. 2, the field information is looked up, and the part of the cut-out character position and the cut-out character number is 1 in the actually read print data. By checking whether it is a byte character or a double-byte character, information in character units is converted into byte units. For example, in the print data shown in FIG. 4, "Taro Yamada △△△ " is a double-byte character and "01
If 75 "is a 1-byte character and it is printed on the x-th line, the reference edit classification number at line position x is searched first from the edit field allocation part in FIG. 3, and the edit from that number 1 to the edit in FIG. 2 is performed. Select method 1 in the field definition section.For the field information of method 1, first, the cut-out position of field 1 is 1 byte, and the number of cut-out characters is 5 characters x 2 bytes =
Convert to 10 bytes. The cutting position for field 2 is 7
Characters x 2 bytes + 2 characters x 1 byte = 16 bytes, and the number of cut characters is converted to 3 characters x 1 byte = 3 bytes. The result of such conversion is shown in FIG.
次に印刷制御部8は編集法自動変換手段7により変換さ
れた第5図の編集フィールド定義部と編集方法設定手段
1により設定された第3図の編集フィールド割り付け部
により従来通り印刷データを切り分けて印刷する。Next, the print control unit 8 divides the print data as usual by the edit field definition unit of FIG. 5 converted by the edit method automatic conversion unit 7 and the edit field allocation unit of FIG. 3 set by the edit method setting unit 1. To print.
(発明の効果) 以上説明したように本発明は、編集方法をバイト単位で
なく文字単位で設定しておき印刷データに従ってバイト
単位に変換することにより、印刷データの1バイト/2バ
イト文字の構成を意識せず、編集方法が設定でき、編集
方法と印刷データ構造のアンマッチによる印刷不正など
のミスが防げる。(Effects of the Invention) As described above, according to the present invention, the 1-byte / 2-byte character of print data is configured by setting the editing method in character units instead of byte units and converting the editing method into byte units according to the print data. It is possible to set the editing method without being conscious of, and to prevent mistakes such as fraudulent printing due to the mismatch between the editing method and the print data structure.
また、編集方法を設定した後で印刷データの1バイト/2
バイトの構成が変わっても編集方法をそれに合わせて再
設定する煩雑さがなくなり、非常に簡単に印刷データを
編集できるという効果がある。Also, after setting the editing method, 1 byte / 2 of print data
Even if the byte structure changes, there is no need to reconfigure the editing method according to it, and the print data can be edited very easily.
第1図は本発明による印刷データ自動編集方式の一実施
例の構成を示すブロック図、第2図は第1図中の編集フ
ィールド定義部を例示する図、第3図は第1図中の編集
フィールド割り付け部を例示する図、第4図は印刷デー
タをどのように印刷するかを例示する図、第5図は第1
図中の編集法自動変換手段により、変換された編集フィ
ールド定義部を例示する図である。 1……編集方法設定手段、2……書式情報記憶部、3…
…編集フィールド定義部、4……編集フィールド割り付
け部、5……印刷データ出力手段、6……印刷データ記
憶部、7……編集法自動変換手段、8……印刷制御部、
9……印刷装置。FIG. 1 is a block diagram showing a configuration of an embodiment of a print data automatic editing system according to the present invention, FIG. 2 is a diagram illustrating an edit field definition part in FIG. 1, and FIG. 3 is a diagram showing in FIG. FIG. 4 is a diagram illustrating an edit field allocation unit, FIG. 4 is a diagram illustrating how print data is printed, and FIG. 5 is a first diagram.
It is a figure which illustrates the edit field definition part converted by the editing method automatic conversion means in the figure. 1 ... Editing method setting means, 2 ... Format information storage section, 3 ...
... edit field definition section, 4 ... edit field allocation section, 5 ... print data output means, 6 ... print data storage section, 7 ... editing method automatic conversion means, 8 ... print control section,
9 ... Printing device.
Claims (1)
刷データを出力するための印刷データ出力手段と、出力
された印刷データを記憶するデータ記憶部と、印刷デー
タ書式情報を用いて印刷装置へ印刷指示する印刷制御部
とを有する電子計算機システムにおいて、前記印刷デー
タをどのように編集するかを決めるために前記印刷デー
タを各フィールドに分割してフィールド単位で管理する
とき、そのフィールドの切り出し位置と切り出し文字数
を情報としてもつ編集フィールド定義部を、前記フィー
ルドを何行目のどの位置から印刷するかを決める編集フ
ィールド割り付け部とを書式情報記憶部に設定する編集
方法設定手段と、前記印刷データ記憶部より印刷データ
を読み出し、前記編集方法設定手段により書式情報記憶
部に設定された編集フィールド定義部のフィールド情報
について印刷データ中の文字が1バイト文字か2バイト
文字かを見分けることにより、切り出し位置と切り出し
文字数を文字単位からバイト単位に変換する編集法自動
変換手段とを含むことを特徴とする印刷データ自動編集
方式。1. A format information storage section for storing format information, print data output means for outputting print data, a data storage section for storing output print data, and printing using print data format information. In a computer system having a print control unit for instructing printing to the device, when the print data is divided into fields and managed in field units in order to determine how to edit the print data, An edit field setting section for setting an edit field definition section having a cut-out position and the number of cut-out characters as information, and an edit field allocation section for deciding from which position on which line the field is to be printed in the format information storage section; The print data is read from the print data storage unit and edited in the format information storage unit by the editing method setting unit. The field information in the field definition section includes an automatic editing conversion means for converting the cutout position and the number of cutout characters from the character unit to the byte unit by distinguishing whether the character in the print data is a 1-byte character or a 2-byte character. Characteristic print data automatic editing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1108027A JPH079620B2 (en) | 1989-04-27 | 1989-04-27 | Print data automatic editing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1108027A JPH079620B2 (en) | 1989-04-27 | 1989-04-27 | Print data automatic editing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02285416A JPH02285416A (en) | 1990-11-22 |
| JPH079620B2 true JPH079620B2 (en) | 1995-02-01 |
Family
ID=14474110
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1108027A Expired - Fee Related JPH079620B2 (en) | 1989-04-27 | 1989-04-27 | Print data automatic editing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH079620B2 (en) |
-
1989
- 1989-04-27 JP JP1108027A patent/JPH079620B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02285416A (en) | 1990-11-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5600770A (en) | System for centrally controlling letter data | |
| US4463444A (en) | Word processing system having a formatting bidirectional printer | |
| JPH079620B2 (en) | Print data automatic editing method | |
| EP0119396B1 (en) | Apparatus for and methods of presenting or displaying data represented as electric signals | |
| JPS6214689A (en) | Character output control device | |
| GB2217491A (en) | Output apparatus | |
| JPH0418332B2 (en) | ||
| JPH06187107A (en) | Slip distribution output device | |
| EP0506101A1 (en) | Character resource management system | |
| JPS6231375B2 (en) | ||
| JPH02158827A (en) | Generating processing system for data stream for print-output | |
| JP2770309B2 (en) | Output message editing method | |
| JPS61195455A (en) | Document preparation device | |
| JP2614251B2 (en) | Printer print control method | |
| JPH05120310A (en) | Line application issue system | |
| JPS59158476A (en) | Character reader | |
| JPS6113616B2 (en) | ||
| JPS62284777A (en) | Printing controlling system for variable line feed pitch business form | |
| JP2001010146A (en) | Method and system for designated format printing | |
| JPS61264864A (en) | Image output method | |
| JPS6092881A (en) | Data-processing system | |
| JPH0573230A (en) | Print data operating device | |
| JPH031224A (en) | input/output system | |
| JPS62115520A (en) | Standard format printing method | |
| JPH05298312A (en) | Method for preparation of document |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |