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

JP2798640B2 - Ruled line printing control method - Google Patents

Ruled line printing control method

Info

Publication number
JP2798640B2
JP2798640B2 JP8072099A JP7209996A JP2798640B2 JP 2798640 B2 JP2798640 B2 JP 2798640B2 JP 8072099 A JP8072099 A JP 8072099A JP 7209996 A JP7209996 A JP 7209996A JP 2798640 B2 JP2798640 B2 JP 2798640B2
Authority
JP
Japan
Prior art keywords
line
command
ruled line
print
ruled
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP8072099A
Other languages
Japanese (ja)
Other versions
JPH09258934A (en
Inventor
雅俊 川本
Original Assignee
中国日本電気ソフトウェア株式会社
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 中国日本電気ソフトウェア株式会社 filed Critical 中国日本電気ソフトウェア株式会社
Priority to JP8072099A priority Critical patent/JP2798640B2/en
Publication of JPH09258934A publication Critical patent/JPH09258934A/en
Application granted granted Critical
Publication of JP2798640B2 publication Critical patent/JP2798640B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は罫線印刷制御方式に
関し、特に罫線フォントを内蔵しオーバレイ形式の罫線
コマンドに対応できる印刷制御コードを持たないシリア
ルプリンタに対して、オーバレイ形式の罫線コマンドを
含む文書データを印刷させるための罫線印刷制御方式に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a ruled line printing control method, and more particularly, to a document including a ruled line command in an overlay format for a serial printer which has a ruled line font and does not have a print control code capable of coping with the ruled line command in an overlay format. The present invention relates to a ruled line printing control method for printing data.

【0002】[0002]

【従来の技術】表や文字記入枠などの罫線を含む文書を
電子データとして作成しプリンタで印刷する方式には、
罫線を文字と同様に扱い、文字フォントと同形式の罫線
フォントをドット展開して罫線を印刷するものと、罫線
を文字とは異なるグラフィック線として扱い、文字とグ
ラフィック罫線とをオーバレイ形式で重ね印刷するもの
とがある。
2. Description of the Related Art A method for creating a document including ruled lines such as a table and a character entry frame as electronic data and printing the same with a printer includes:
Ruled lines are treated in the same way as characters, and ruled line fonts of the same format as character fonts are printed as dots, and ruled lines are printed, and ruled lines are treated as graphic lines different from characters, and characters and graphic ruled lines are overlaid in overlay format There are things to do.

【0003】現在広く用いられているプリンタには、レ
ーザプリンタのように頁単位で高速な印刷処理を行うペ
ージプリンタのほかに、熱転写方式やインクジェット方
式のような印字ヘッドの移動により行単位で印字を行う
ノンインパクトシリアルプリンタがある。ページプリン
タにより罫線の重ね印刷を行う場合には、1頁分の文字
データと罫線データとを与え、それぞれ1頁分の文字お
よび罫線のドットデータに展開して重ね印刷させること
ができる。これに対し、シリアルプリンタの場合には、
一般に数行分のメモリしか内蔵していないため、文字デ
ータのみならず罫線データも行単位で入力する必要があ
る。このため、上位の情報処理装置からはプリンタに行
単位で印刷コマンドが送出され、この印刷コマンドに
は、改行幅を指定する改行情報のほかに、文字を印刷す
るための文字列コマンドと罫線を印刷するための罫線コ
マンドとの異なる形式のコマンドが含まれている。一
方、罫線フォントを使用する場合には罫線コマンドがな
く、文字列コマンドの中で罫線フォントの文字コードを
指定する。従って、罫線フォントを内蔵したシリアルプ
リンタの中には、罫線コマンドを解析して罫線を印刷す
る機能を持たないものがあり、このようなプリンタでは
オーバレイ形式の罫線を含む文書データを印刷させるこ
とができない。
[0003] Currently widely used printers include a page printer which performs high-speed printing in page units, such as a laser printer, and a line printer by moving a print head such as a thermal transfer system or an ink jet system. There is a non-impact serial printer that performs When the ruled line is overprinted by the page printer, one page of character data and ruled line data are given, and the data can be developed into dot data of one page of character and ruled line, respectively, and overprinted. On the other hand, in the case of a serial printer,
In general, since only a few rows of memory are built in, it is necessary to input not only character data but also ruled line data in line units. For this reason, a print command is sent from the upper information processing apparatus to the printer in line units. The print command includes, in addition to line feed information specifying a line feed width, a character string command for printing characters and a ruled line. A command in a different format from the ruled line command for printing is included. On the other hand, when a ruled line font is used, there is no ruled line command, and the character code of the ruled line font is specified in a character string command. Therefore, some serial printers with a built-in ruled line font do not have a function of analyzing ruled line commands and printing ruled lines, and such printers can print document data including ruled lines in an overlay format. Can not.

【0004】[0004]

【発明が解決しようとする課題】上述したように、罫線
フォントを内蔵しオーバレイ形式の罫線コマンドの解析
機能を持たないシリアルプリンタでは、そのままではオ
ーバレイ形式の罫線処理で作成された文書データを印刷
することができない。印刷を可能とするには、罫線コマ
ンドをプリンタが処理可能なドット情報用の印刷制御コ
ードに変換してプリンタに入力する必要がある。
As described above, in a serial printer which has a ruled line font and does not have an analysis function of a ruled line command in an overlay format, the document data created by the ruled line processing in the overlay format is printed as it is. Can not do. To enable printing, it is necessary to convert a ruled line command into a print control code for dot information that can be processed by the printer and input the same to the printer.

【0005】ところで、シリアルプリンタにおいては、
印字ヘッドの移動により1度に印刷できる縦罫線の最大
の高さは印字ヘッドの高さであるが、文書データの1行
すなわち改行幅は通常印字ヘッドの高さよりも大きいた
め、文書データの1行内にある各罫線を1対1で罫線フ
ォントやグラフィック線に置き代えて印字するだけで
は、縦罫線が連続して印刷されないという問題がある。
この対策として、例えば特開昭58―191166号公
報には、罫線フォントの縦幅が文書データの改行幅より
も小さい場合に、罫線フォント間の隙間を補完印字して
縦罫線を連続にする機能を備えたプリンタが提案されて
いるが、罫線コマンドをプリンタが処理可能なドット情
報用の印刷制御コードに変換する場合にも、これと同様
な機能を持たせることが必要である。
By the way, in a serial printer,
The maximum height of a vertical ruled line that can be printed at once by moving the print head is the height of the print head. However, since one line of document data, that is, a line feed width is usually larger than the height of the print head, the maximum height of the document data is one line. There is a problem that the vertical ruled lines are not continuously printed only by replacing each ruled line in the line with a ruled line font or graphic line one-to-one.
As a countermeasure, for example, in Japanese Patent Application Laid-Open No. 58-191166, when the vertical width of the ruled line font is smaller than the line feed width of the document data, a function of complementarily printing the gap between the ruled line fonts to make the vertical ruled lines continuous is provided. Is proposed, but it is necessary to provide a similar function when converting a ruled line command into a print control code for dot information that can be processed by the printer.

【0006】本発明の目的は、オーバレイ形式の罫線コ
マンドに対応できる印刷制御コードを持たないシリアル
プリンタで、オーバレイ形式の罫線処理により作成され
た文書データを、縦罫線の一部を欠落させることなく印
刷するための罫線印刷制御方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a serial printer which does not have a print control code which can correspond to an overlay format ruled line command, and which can convert document data created by overlay format ruled line processing without missing a part of vertical ruled lines. An object of the present invention is to provide a ruled line printing control method for printing.

【0007】[0007]

【課題を解決するための手段】請求項1の罫線印刷制御
方式は、オーバレイ形式の罫線コマンドに対応できる印
刷制御コードを持たないシリアルプリンタに対し、オー
バレイ形式の罫線コマンドを含む文書データを印刷させ
るための罫線印刷制御方式であって、罫線や文字の印刷
を指示する印刷コマンドを行単位で入力するコマンド入
力手段と、入力された印刷コマンドを解析して罫線を印
刷するための罫線コマンドを抽出するコマンド解析手段
と、抽出した罫線コマンドを印字ヘッドの縦幅サイズの
複数行に分割して各行内で罫線を印刷するための分割罫
線コマンドに変換する行分割手段と、分割された各分割
罫線コマンドから対応する罫線部分の図形を構成するド
ットデータを作成しプリンタが理解できるドット情報用
の印刷制御コードを作成する罫線印刷制御コード作成手
段と、前記コマンド入力手段により入力された印刷コマ
ンドの罫線コマンド以外の部分をプリンタが理解できる
印刷制御コードに変換し前記罫線印刷制御コード作成手
段で作成されたドット情報用の印刷制御コードと合成す
る印刷用制御コード作成手段と、合成された印刷用制御
コードをプリンタに送信する印刷用制御コード送信手段
とを備えて構成されている。
According to a first aspect of the present invention, there is provided a ruled line printing control method in which a serial printer which does not have a print control code corresponding to an overlayed ruled line command prints document data including an overlayed ruled line command. Command input means for inputting a line-by-line print command for instructing printing of ruled lines and characters, and analyzing the input print command to extract ruled line commands for printing ruled lines Command analyzing means, a dividing line command for dividing the extracted ruled line command into a plurality of lines each having a vertical width of the print head, and converting the divided ruled line commands into divided ruled line commands for printing ruled lines in each line; Creates dot data that composes the figure of the corresponding ruled line from the command and print control code for dot information that the printer can understand Means for creating ruled line print control code to be created, and dot information created by the ruled line print control code creating means by converting portions other than the ruled line command of the print command input by the command input means into print control codes that can be understood by the printer. Printing control code creating means for combining with the printing control code for printing, and printing control code transmitting means for sending the combined printing control code to the printer.

【0008】請求項2の罫線印刷制御方式は、請求項1
記載の罫線印刷制御方式において、前記行分割手段が、
抽出した罫線コマンドを印字ヘッドの縦幅サイズの複数
の行に分割して分割罫線コマンドに変換する際に、改行
幅が印字ヘッドの縦幅サイズに等しい行と、入力文書デ
ータの改行幅から印字ヘッドの縦幅サイズの整数倍を減
算した差分に等しい行とに分割するよう構成されている
ことを特徴とする。
According to a second aspect of the present invention, there is provided a ruled line printing control system.
In the ruled line printing control method described above,
When dividing the extracted ruled line command into multiple lines of the vertical width of the print head and converting it to divided ruled line commands, printing is performed from the line whose line feed width is equal to the vertical size of the print head and the line feed width of the input document data. It is characterized in that the head is divided into rows equal to the difference obtained by subtracting an integral multiple of the vertical width of the head.

【0009】請求項3の罫線印刷制御方式は、請求項1
記載の罫線印刷制御方式において、前記行分割手段が、
抽出した罫線コマンドを印字ヘッドの縦幅サイズの複数
の行に分割して分割罫線コマンドに変換する際に、改行
幅が入力文書データの改行幅を等分した値の複数の行に
分割するよう構成されていることを特徴とする。
According to a third aspect of the present invention, there is provided a ruled line printing control system.
In the ruled line printing control method described above,
When the extracted ruled line command is divided into a plurality of lines of the vertical width of the print head and converted to a divided ruled line command, the line feed width is divided into a plurality of lines each having a value obtained by equally dividing the line feed width of the input document data. It is characterized by comprising.

【0010】[0010]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0011】図1は本発明の一実施形態の構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing the configuration of one embodiment of the present invention.

【0012】図1に示す本実施形態の罫線印刷制御方式
10は、文書データとして罫線や文字の印刷を指示する
印刷コマンドを行単位で入力するコマンド入力手段11
と、入力された印刷コマンドを解析して罫線を印刷する
ための罫線コマンドを抽出するコマンド解析手段12
と、抽出した罫線コマンドを印字ヘッドの縦幅分のサイ
ズの複数行に分割して各行内で罫線を印刷するための分
割罫線コマンドに変換する行分割手段13と、分割され
た各分割罫線コマンドから対応する罫線部分の図形を構
成するドットデータを作成してプリンタが理解できるド
ット情報の印刷制御コードを作成する罫線印刷制御コー
ド作成手段14と、印刷コマンドの罫線以外の部分をプ
リンタが理解できる印刷制御コードに変換して罫線印刷
制御コード作成手段14で作成された罫線用のドット情
報の印刷制御コードと合成する印刷用制御コード作成手
段15と、合成された印刷用制御コードをプリンタ20
に送信する印刷用制御コード送信手段16とから成り、
プリンタ20はこの印刷用制御コードにより印刷を実行
する。
A ruled line printing control system 10 of the present embodiment shown in FIG.
Command analysis means 12 for analyzing the input print command and extracting ruled line commands for printing ruled lines
A line dividing means 13 for dividing the extracted ruled line command into a plurality of lines each having a size corresponding to the vertical width of the print head, and converting the divided ruled line commands into divided ruled line commands for printing ruled lines in each line; From the corresponding ruled line portion to generate a dot information print control code that can be understood by the printer, and the printer can understand the portions other than the ruled line of the print command. A printing control code creating unit 15 that converts the printing control code into a printing control code of the dot information for the ruled line created by the ruled line printing control code creating unit 14, and the combined printing control code into the printer 20.
And a printing control code transmitting means 16 for transmitting to the
The printer 20 executes printing according to the printing control code.

【0013】以下、図1の実施の形態の動作を具体例を
参照しながら詳細に説明する。説明を簡単にするため、
図2に示すような罫線による文字記入枠を含む2行の文
書の印刷を例に考える。この文書の1行目は文字列「あ
いう」のみから成り、2行目には文字列「ABC」のほ
かにこの文字列を囲む罫線による記入枠21が含まれて
いる。図2に示すように、文書の改行幅をx、1度の印
字ヘッドの移動により印刷できる印字幅(印字ヘッドの
縦幅)をyとして、改行幅xは印字幅yよりも大きくy
<x<2yの関係にあり、記入枠21の高さは改行幅x
と等しいものとする。
Hereinafter, the operation of the embodiment of FIG. 1 will be described in detail with reference to a specific example. For simplicity,
Consider printing a two-line document including a character entry frame with ruled lines as shown in FIG. 2 as an example. The first line of this document is composed of only the character string “Ai”, and the second line contains the character string “ABC” and an entry frame 21 with a ruled line surrounding this character string. As shown in FIG. 2, the line feed width of the document is x, and the print width (vertical width of the print head) that can be printed by moving the print head once is y, and the line feed width x is larger than the print width y.
<X <2y, and the height of the entry frame 21 is the line feed width x
Shall be equal to

【0014】ここで、プリンタ20は、改行情報に従っ
て用紙を縦方向に移動させ改行を行う機能と、文字コー
ドをドットデータに展開して印刷する機能と、印字ヘッ
ドの高さの範囲内のドットデータを外部から受け取って
印刷する機能とを備えているが、罫線コマンドの指示内
容をドット展開して印刷するための印刷制御コードは持
っていないものとする。
Here, the printer 20 has a function of moving a sheet in the vertical direction according to line feed information to perform a line feed, a function of developing character codes into dot data and printing, and a function of printing dots within the height range of the print head. It has a function of receiving data from outside and printing it, but does not have a print control code for dot-expanding and printing the instruction content of the ruled line command.

【0015】まず、図2の文書を印刷するための文書デ
ータとして、印刷コマンドが1行分ずつコマンド入力手
段11により入力される。印刷コマンドは、改行幅を指
示する改行情報と、文字列の印刷を指示する文字列コマ
ンドと、罫線の印刷を指示する罫線コマンドと、ドット
データの印刷を指示するドット情報コマンドとから成
り、それぞれのコマンドに含まれるデータ形式は異な
る。文字列コマンドには文字列の先頭位置座標,文字サ
イズ,文字コード列等の情報が含まれ、罫線コマンドに
は罫線の始点,終点の行内の相対位置座標および線種,
線幅等の情報が含まれている。
First, as the document data for printing the document shown in FIG. 2, a print command is input by the command input unit 11 line by line. The print command includes line feed information indicating a line feed width, a character string command indicating a character string print, a rule command indicating a rule print, and a dot information command indicating a dot data print. The data format included in this command is different. The character string command contains information such as the starting position coordinates of the character string, the character size, the character code string, and the like, and the ruled line command contains the relative position coordinates and line type of the ruled line starting point and ending point in the line.
Information such as the line width is included.

【0016】コマンド解析手段12は、コマンド入力手
段11が入力した印刷コマンドを1行分ずつ解析し、罫
線コマンドを抽出して改行情報と併せて行分割手段13
に、罫線コマンド以外の文字列コマンド及びドット情報
コマンドは改行情報と共に印刷用制御コード作成手段1
5に送る。図2の文書の1行目には罫線がないため、コ
マンド解析手段12は、1行目の印刷内容である文字列
「あいう」を印刷する文字列コマンドを改行情報と共に
印刷用制御コード作成手段15に送る。2行目には文字
列「ABC」のほかに罫線による記入枠21が含まれて
いるため、コマンド解析手段12は、記入枠21の印刷
を指示する罫線コマンドを抽出して改行情報と併せて行
分割手段13へ送り、文字列「ABC」に対する文字列
コマンドと改行情報とを印刷用制御コード作成手段15
に転送する。
The command analysis means 12 analyzes the print command input by the command input means 11 for each line, extracts a ruled line command, and combines the line command with the line feed information.
The character string command and the dot information command other than the ruled line command are printed together with the line feed information.
Send to 5. Since there is no ruled line in the first line of the document in FIG. 2, the command analysis unit 12 converts the character string command for printing the character string "Ai", which is the print content of the first line, with the line feed information and the print control code generation unit. Send to 15. Since the second line includes an entry frame 21 with a ruled line in addition to the character string “ABC”, the command analysis unit 12 extracts a ruled line command instructing the printing of the entry frame 21 and extracts it along with line feed information. The character string command for the character string "ABC" and the line feed information are sent to the line dividing means 13 and the printing control code creating means 15 is sent.
Transfer to

【0017】行分割手段13は、改行情報から得られる
改行幅と印字ヘッドの1度の移動により印刷できる印字
幅とを比較し、改行幅が印字幅よりも大きい場合には、
コマンド解析手段12から受け取った罫線コマンドを印
字幅の複数行に分割し、分割した印字幅の各行内で罫線
を印刷するための分割罫線コマンドに変換する。図2の
文書の2行目の場合、文書の改行幅xを印字幅yと比較
するとy<x<2yの関係があるので、文書の1行(改
行幅のサイズの行)を行幅が印字幅y以内の2行に分割
し、分割した各行に対応する分割罫線コマンドを作成す
る。
The line dividing means 13 compares the line feed width obtained from the line feed information with the print width printable by a single movement of the print head, and if the line feed width is larger than the print width,
The ruled line command received from the command analysis unit 12 is divided into a plurality of lines of a print width, and is converted into a divided ruled line command for printing ruled lines in each line of the divided print width. In the case of the second line of the document shown in FIG. 2, when the line feed width x of the document is compared with the print width y, there is a relationship of y <x <2y. It is divided into two lines within the print width y, and a divided ruled line command corresponding to each divided line is created.

【0018】ここで、文書の1行(改行幅のサイズの
行)を論理行、印字ヘッドの1度の移動で印刷できる印
字幅(印字ヘッドの縦幅)の行を印字行、論理行を印字
幅以内の複数に分割した行を物理行と定義する。通常の
サイズの文字は論理行内の下端を基準に印字幅の範囲内
に印字されるため、論理行を物理行に分割する際には、
論理行と下端を共通とし印字行と同じ幅を持つ基準の物
理行と、この基準の物理行に含まれない論理行の部分か
ら成る物理行とに分割する。図2の文書の2行目の場合
は、図3に示すように、行幅が(x―y)で記入枠21
の上部のみが含まれる物理行と、基準の物理行であり
行幅がyで文字列「ABC」と記入枠21の大部分とが
含まれる物理行との二つの物理行に分割する。
Here, one line of the document (line having a line feed width size) is a logical line, a line having a print width (vertical width of the print head) printable by one movement of the print head is a print line, and a logical line is a logical line. A plurality of divided lines within the print width is defined as a physical line. Normal size characters are printed within the range of the print width based on the lower end of the logical line, so when dividing a logical line into physical lines,
The logical line is divided into a reference physical line having a common lower end and the same width as the print line, and a physical line including a logical line portion not included in the reference physical line. In the case of the second line of the document shown in FIG. 2, as shown in FIG.
Is divided into two physical lines: a physical line including only the upper part of the character string, and a physical line that is a reference physical line, has a line width of y, and includes the character string “ABC” and most of the entry box 21.

【0019】続いて、記入枠21を構成する罫線の始
点,終点の位置を論理行内の位置情報で表しているコマ
ンド解析手段12から受け取った罫線コマンドを、それ
ぞれ物理行及び物理行に分割された記入枠21の各
部を構成する罫線の位置を印字行内の位置情報で表示し
た2行分の分割罫線コマンドに変換する。印刷コマンド
中の改行情報とプリンタの印字幅とから、物理行を印
字する印字行の改行幅のx―yと物理行を印字する印
字行の改行幅のyとを算出し、これに基づいて罫線コマ
ンドの論理行内の罫線の位置情報を、分割した各印字行
内の罫線の位置情報に変換し、2行分の分割罫線コマン
ドを作成してそれぞれの改行情報と併せて罫線印刷制御
コード作成手段14に転送する。
Subsequently, the ruled line command received from the command analysis means 12 in which the positions of the start point and the end point of the ruled line forming the entry frame 21 are represented by the position information in the logical line is divided into physical lines and physical lines, respectively. The position of the ruled line forming each part of the entry frame 21 is converted into a divided ruled line command for two lines displayed by the position information in the print line. From the line feed information in the print command and the print width of the printer, x-y of the line feed width of the print line for printing the physical line and y of the line feed width of the print line for printing the physical line are calculated based on this. The position information of the ruled line in the logical line of the ruled line command is converted into the position information of the ruled line in each divided print line, a divided ruled line command for two lines is created, and the ruled line print control code creating means is combined with each line feed information. Transfer to 14.

【0020】罫線印刷制御コード作成手段14は、分割
された各印字行の分割罫線コマンド中の罫線情報を印字
行ごとに罫線を構成するドットデータに変換し、プリン
タが理解できるドット情報の印刷制御コードを作成す
る。すなわち、図3の論理行の罫線による記入枠21を
構成するドットデータを物理行と物理行とに分け、
2行で印字するためのドット情報を作成する。まず、図
4(a)に示すように、網掛けで示した物理行を含む
印字行内にある罫線による記入枠21の部分(a点とb
点とを結ぶ縦線、a点とc点とを結ぶ横線、c点とd点
とを結ぶ縦線)のドットデータを作成する。次に、図4
(b)に示すように、網掛けで示した物理行に対応す
る印字行内にある罫線部分(b点とe点とを結ぶ縦線、
e点とf点とを結ぶ横線、d点とf点とを結ぶ縦線)の
ドットデータを作成する。作成したドットデータは、そ
れぞれドット情報の印刷制御コードに組み込まれて印刷
用制御コード作成手段15に渡される。
The ruled line print control code creating means 14 converts ruled line information in a divided ruled line command of each divided print line into dot data constituting a ruled line for each print line, and controls printing of dot information which can be understood by a printer. Create code. That is, the dot data constituting the entry frame 21 by the ruled line of the logical row in FIG. 3 is divided into physical rows and physical rows,
Create dot information for printing in two lines. First, as shown in FIG. 4A, the portion of the entry frame 21 (points a and b
Dot data of a vertical line connecting the points, a horizontal line connecting the points a and c, and a vertical line connecting the points c and d). Next, FIG.
As shown in (b), a ruled line portion (a vertical line connecting points b and e,
The dot data of a horizontal line connecting the points e and f and a vertical line connecting the points d and f) is created. The created dot data is incorporated into the print control code of the dot information and passed to the print control code creating means 15.

【0021】印刷用制御コード作成手段15は、印刷コ
マンド中の文字列コマンドなどの罫線コマンド以外のコ
マンドに対応する印刷制御コードを作成すると共に、罫
線印刷制御コード作成手段14で作成された罫線のドッ
トデータの印刷制御コードと改行情報を一致させてマー
ジし、印字行単位の印刷用制御コードを編集する。
The print control code creating means 15 creates a print control code corresponding to a command other than a ruled line command such as a character string command in a print command, and generates a ruled line created by the ruled line print control code creating means 14. The print control code of the dot data and the line feed information are matched and merged, and the print control code for each print line is edited.

【0022】図2の文書の1行目には罫線がないため、
文字列「あいう」の印刷制御コードを作成することによ
り、改行情報も変更することなくそのまま印刷用制御コ
ードが作成される。図2の文書の2行目には罫線が含ま
れるため、まず物理行の罫線のドットデータから物理
行を印字するための印字行の印刷用制御コードを作成
する。次に、文字列「ABC」の印刷制御コードを作成
し、物理行の罫線を構成するドットデータの印刷制御
コードとマージすることにより、物理行を印字するた
めの印字行の印刷用制御コードが作成される。
Since there is no ruled line in the first line of the document shown in FIG.
By creating the print control code of the character string "Ai", the print control code is created as it is without changing the line feed information. Since the second line of the document in FIG. 2 includes a ruled line, first, a print line printing control code for printing a physical line is created from dot data of the ruled line of the physical line. Next, by creating a print control code of the character string “ABC” and merging it with the print control code of the dot data constituting the ruled line of the physical line, the print control code of the print line for printing the physical line is obtained. Created.

【0023】作成された印刷用制御コードは、印刷用制
御コード送信手段16によりプリンタ20に送られ、文
字コードは文字発生器によりドットデータに展開され、
罫線のドットデータと共に印字ヘッドの移動により同時
に印刷が行われる。
The created printing control code is sent to the printer 20 by the printing control code transmitting means 16, and the character code is developed into dot data by the character generator.
Printing is performed simultaneously with the dot data of the ruled line by moving the print head.

【0024】このようにして、罫線フォントを文字発生
器に内蔵し、オーバレイ形式の罫線コマンドに対応でき
る印刷制御コードを持たないシリアルプリンタに対し、
オーバレイ形式の罫線コマンドを含む文書データを印刷
させることが可能となる。しかも、論理行の改行幅が印
字ヘッドの縦幅より大きいときは、論理行を印字ヘッド
の縦幅以内の複数の行に分割して各行に対して罫線の印
刷制御を行うため、縦罫線の一部を欠落させることなく
印刷させることができる。
As described above, a serial printer which incorporates a ruled line font in a character generator and does not have a print control code capable of responding to an overlay format ruled line command can be used.
It is possible to print document data including a ruled line command in an overlay format. Moreover, when the line feed width of the logical line is larger than the vertical width of the print head, the logical line is divided into a plurality of lines within the vertical width of the print head, and printing of ruled lines is performed for each line. Printing can be performed without dropping a part.

【0025】上述した実施の形態の説明においては、行
分割手段が論理行を複数の物理行に分割し、分割した物
理行と印字行との対応をとる場合、図4(a)及び
(b)に示すように、物理行の幅と印字行の改行幅とを
等しく選定するようにし、物理行の罫線は印字行の下
部で印刷するようにした。しかしながら、これに限定さ
れることなく、例えば物理行に対する印字行と物理行
に対する印字行の改行幅を等しくし、物理行の罫線
は印字行の下部でなく中央部で印刷するようにすること
もできる。
In the description of the above-described embodiment, when the line dividing means divides a logical line into a plurality of physical lines and takes correspondence between the divided physical lines and print lines, FIGS. ), The width of the physical line and the line feed width of the print line are selected to be equal, and the ruled line of the physical line is printed below the print line. However, without being limited to this, for example, the line feed width of the print line for the physical line and the print line for the physical line may be made equal, and the ruled line of the physical line may be printed at the center instead of the bottom of the print line. it can.

【0026】[0026]

【発明の効果】以上説明したように、本発明の罫線印刷
制御方式は、オーバレイ形式の罫線コマンドを印字ヘッ
ドの縦幅サイズごとに分割し、ドットデータとして出力
するため、オーバレイ形式の罫線コマンドに対応できる
印刷制御コードを持たないシリアルプリンタに対し、オ
ーバレイ形式の罫線コマンドを含む文書データを印刷さ
せることが可能となる。しかも、文書の改行幅が印字ヘ
ッドの縦幅よりも大きい場合でも、行と行の間で縦罫線
の一部を欠落して連続しない現象を発生することなく印
刷できる効果がある。
As described above, according to the ruled line printing control method of the present invention, the ruled line command in the overlay format is divided for each vertical width of the print head and output as dot data. It is possible to cause a serial printer having no corresponding print control code to print document data including a ruled line command in an overlay format. Moreover, even when the line feed width of the document is larger than the vertical width of the print head, there is an effect that printing can be performed without causing a phenomenon in which a part of the vertical ruled line is lost between lines and discontinuous.

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

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

【図2】図1の動作を説明するための文書イメージの一
例を示した説明図である。
FIG. 2 is an explanatory diagram showing an example of a document image for explaining the operation of FIG. 1;

【図3】図2の文書イメージに対する行分割手段の分割
の概念を示す説明図である。
FIG. 3 is an explanatory diagram showing a concept of dividing a document image of FIG. 2 by a line dividing unit.

【図4】図2の文書イメージに対する行分割による印刷
動作の説明図である。
FIG. 4 is an explanatory diagram of a printing operation by dividing the document image of FIG. 2 into lines.

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

10 罫線印刷制御方式 11 コマンド入力手段 12 コマンド解析手段 13 行分割手段 14 罫線印刷制御コード作成手段 15 印刷用制御コード作成手段 16 印刷用制御コード送信手段 20 プリンタ 21 記入枠 REFERENCE SIGNS LIST 10 ruled line printing control method 11 command input means 12 command analysis means 13 line dividing means 14 ruled line print control code creation means 15 printing control code creation means 16 printing control code transmission means 20 printer 21 entry frame

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 オーバレイ形式の罫線コマンドに対応で
きる印刷制御コードを持たないシリアルプリンタに対
し、オーバレイ形式の罫線コマンドを含む文書データを
印刷させるための罫線印刷制御方式であって、罫線や文
字の印刷を指示する印刷コマンドを行単位で入力するコ
マンド入力手段と、入力された印刷コマンドを解析して
罫線を印刷するための罫線コマンドを抽出するコマンド
解析手段と、抽出した罫線コマンドを印字ヘッドの縦幅
サイズの複数行に分割して各行内で罫線を印刷するため
の分割罫線コマンドに変換する行分割手段と、分割され
た各分割罫線コマンドから対応する罫線部分の図形を構
成するドットデータを作成しプリンタが理解できるドッ
ト情報用の印刷制御コードを作成する罫線印刷制御コー
ド作成手段と、前記コマンド入力手段により入力された
印刷コマンドの罫線コマンド以外の部分をプリンタが理
解できる印刷制御コードに変換し前記罫線印刷制御コー
ド作成手段で作成されたドット情報用の印刷制御コード
と合成する印刷用制御コード作成手段と、合成された印
刷用制御コードをプリンタに送信する印刷用制御コード
送信手段とを備えたことを特徴とする罫線印刷制御方
式。
1. A ruled line printing control method for printing a document data including an overlayed ruled line command on a serial printer that does not have a print control code that can correspond to an overlayed ruled line command. Command input means for inputting a print command for instructing printing on a line-by-line basis; command analysis means for analyzing the input print command to extract ruled line commands for printing ruled lines; Line dividing means for dividing into a plurality of lines each having a vertical width and converting them into divided ruled line commands for printing ruled lines within each line, and dot data constituting a figure of a corresponding ruled line portion from each divided ruled line command. A ruled line print control code creating means for creating a print control code for dot information which can be created and understood by a printer; A printing control for converting a part other than the ruled line command of the print command input by the command input means into a print control code that can be understood by the printer, and combining the print command with the dot information print control code created by the ruled line print control code creating means. A ruled line printing control method, comprising: a code generation unit; and a printing control code transmission unit that transmits a synthesized printing control code to a printer.
【請求項2】 前記行分割手段が、抽出した罫線コマン
ドを印字ヘッドの縦幅サイズの複数の行に分割して分割
罫線コマンドに変換する際に、改行幅が印字ヘッドの縦
幅サイズに等しい行と、入力文書データの改行幅から印
字ヘッドの縦幅サイズの整数倍を減算した差分に等しい
行とに分割するよう構成されていることを特徴とする請
求項1記載の罫線印刷制御方式。
2. The method according to claim 1, wherein the line dividing unit divides the extracted ruled line command into a plurality of lines each having a vertical width of the print head and converts the divided line command into a divided ruled line command. 2. The ruled line print control method according to claim 1, wherein the line is divided into a line and a line equal to a difference obtained by subtracting an integral multiple of the vertical width of the print head from the line feed width of the input document data.
【請求項3】 前記行分割手段が、抽出した罫線コマン
ドを印字ヘッドの縦幅サイズの複数の行に分割して分割
罫線コマンドに変換する際に、改行幅が入力文書データ
の改行幅を等分した値の複数の行に分割するよう構成さ
れていることを特徴とする請求項1記載の罫線印刷制御
方式。
3. When the line dividing means divides the extracted ruled line command into a plurality of lines each having the vertical width of a print head and converts the divided ruled line command into divided ruled line commands, the line feed width is equal to the line feed width of the input document data. 2. The ruled line printing control method according to claim 1, wherein the divided line is divided into a plurality of lines.
JP8072099A 1996-03-27 1996-03-27 Ruled line printing control method Expired - Fee Related JP2798640B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8072099A JP2798640B2 (en) 1996-03-27 1996-03-27 Ruled line printing control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8072099A JP2798640B2 (en) 1996-03-27 1996-03-27 Ruled line printing control method

Publications (2)

Publication Number Publication Date
JPH09258934A JPH09258934A (en) 1997-10-03
JP2798640B2 true JP2798640B2 (en) 1998-09-17

Family

ID=13479632

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8072099A Expired - Fee Related JP2798640B2 (en) 1996-03-27 1996-03-27 Ruled line printing control method

Country Status (1)

Country Link
JP (1) JP2798640B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4581809B2 (en) * 2005-04-20 2010-11-17 富士ゼロックス株式会社 Character ruled line processing method, apparatus and program
CN120039042A (en) * 2025-04-03 2025-05-27 湖南天桥嘉成智能科技有限公司 Steel plate code spraying method and system

Also Published As

Publication number Publication date
JPH09258934A (en) 1997-10-03

Similar Documents

Publication Publication Date Title
US6247028B1 (en) Controlling attributes of pre-registered form data to match those of data to be printed with the form data
JP3175498B2 (en) Black area identification method for ink jet color printing
JP2798640B2 (en) Ruled line printing control method
JP2001325087A (en) Command analysis using rewritable command storage
US5520469A (en) Dot matrix printer
JP2783601B2 (en) Information processing device
JPH11348381A (en) Printer
JP2000025279A (en) Band scan type raster plotter
JP3449015B2 (en) Color inkjet recording method
JP2006281597A (en) Image forming apparatus and its program
JP2004243557A (en) Image forming device
JPH11272439A (en) Printer device
JP2000138832A (en) Video data converter
JP3033731B2 (en) Ruled line processing device, ruled line processing method, and recording medium for recording program
JP2958016B2 (en) Output control apparatus and method
KR19990061660A (en) Bitmap data transfer device for printing
KR100325799B1 (en) Device for transmitting bit map data for print
JPH08324037A (en) Device for processing data in printer apparatus
JP2006281598A (en) Image forming apparatus and its program
JP2003191564A (en) Inverted printing method of image by printer
JP2007286988A (en) Printing system
JPH0714028A (en) Output control method and device
JP2005157854A (en) Image processing method and apparatus
JP2002137448A (en) Image forming apparatus and image forming method
JPH08267865A (en) Print control method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980609

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees