JPH085218B2 - Document printing device - Google Patents

Document printing device

Info

Publication number
JPH085218B2
JPH085218B2 JP62199551A JP19955187A JPH085218B2 JP H085218 B2 JPH085218 B2 JP H085218B2 JP 62199551 A JP62199551 A JP 62199551A JP 19955187 A JP19955187 A JP 19955187A JP H085218 B2 JPH085218 B2 JP H085218B2
Authority
JP
Japan
Prior art keywords
line
character
character font
print
font pattern
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
JP62199551A
Other languages
Japanese (ja)
Other versions
JPS6442250A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP62199551A priority Critical patent/JPH085218B2/en
Publication of JPS6442250A publication Critical patent/JPS6442250A/en
Publication of JPH085218B2 publication Critical patent/JPH085218B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、ワードプロセッサ等に用いられる文書印
字装置に関する。
The present invention relates to a document printing apparatus used in a word processor or the like.

[発明の概要] この発明は、熱転写式プリンタ、ドットインパクト式
プリンタ等のシリアルプリンタを備えた文書印字装置に
おいて、印字ヘッドの1行分の印字動作で一度に1行分
以上の印字を行うことにより、印字速度を高めて効率の
良い印字を可能としたものである。
[Summary of the Invention] According to the present invention, in a document printing apparatus including a serial printer such as a thermal transfer printer or a dot impact printer, printing of one line or more at a time is performed by a printing operation of one line of a print head. Thus, the printing speed is increased to enable efficient printing.

[従来の技術] 従来、シリアルドットプリンタを備えたワードプロセ
ッサにおいては、文字コードを記憶するテキストメモリ
の内容を印字する際に、テキストメモリから読み出した
1行分の文字コードをキャラクタジュネレータを用いて
指定文字サイズに応じた文字フォントパターンに変換
し、1行プリントバッファに転送する。そして、このプ
リントバッファに貯えられた1行分の文字フォントパタ
ーンは印字ヘッドの1行分の印字動作に同期して印字さ
れる。
[Prior Art] Conventionally, in a word processor equipped with a serial dot printer, when printing the contents of a text memory that stores character codes, a character code for one line read from the text memory is used by a character generator. It is converted into a character font pattern according to the specified character size and transferred to the one-line print buffer. The one line character font pattern stored in the print buffer is printed in synchronization with the one line printing operation of the print head.

[発明が解決しようとする問題点] このように印字ヘッドの1行分の印字動作で1行分の
印字を行う為、指定文字サイズによっては印字ヘッドの
縦ピン数が行間スペースを含めて複数行印字できる場合
であっても1行ずつの印字しかできなかった。
[Problems to be Solved by the Invention] Since one line is printed by the print operation for one line of the print head as described above, the number of vertical pins of the print head may be plural including the space between lines depending on the specified character size. Even if lines could be printed, only one line at a time could be printed.

即ち、第5図に示すように縦ピン数が48ピンの印字ヘ
ッドで、指定文字サイズが1行目48×48ドット、2行目
24×24ドット、3行目〜5行目20×20ドットである5行
分の文書のうち特に20×20ドットの文字を印字する場
合、一度に行間ピッチ(8ドット)を含めて2行分の印
字が可能であるが、このような場合であっても印字ヘッ
ドの1行分の動きで1行印字しかできない為、5行で5
回の改行が必要となり、それだけ印字速度が遅くなると
いう欠点があった。
That is, as shown in FIG. 5, the print head has 48 vertical pins, and the designated character size is 48 × 48 dots in the first line and the second line.
24 x 24 dots, 3rd to 5th lines When printing characters of 20 x 20 dots out of 5 lines of 20 x 20 dots, 2 lines including the line spacing (8 dots) at a time Although it is possible to print one minute, even in such a case, one line can be printed by one line movement of the print head, and therefore five lines can be printed in five lines.
It has the drawback of requiring multiple line breaks, which slows down the printing speed accordingly.

この発明の課題は、印字ヘッドの1行分の動作で一度
に1行分以上の印字を可能とすることである。
An object of the present invention is to enable printing of one line or more at a time by operating the print head for one line.

[問題点を解決するための手段] この発明の手段は次の通りである。[Means for Solving Problems] Means of the present invention are as follows.

この発明に係る文書印字装置は、ワードプロセッサ等
に用いられるもので、熱転写式プリンタ等を有する構成
となっている。
The document printing apparatus according to the present invention is used for a word processor or the like, and has a thermal transfer printer or the like.

行プリントバッファは、縦ドット数が印字ヘッドの縦
ピン数に相当し、この印字ヘッドの行方向の印字動作で
印字される分のドットパターンの記憶可能なもので、例
えば、ヘッドピン数が48ピンであれば縦ドット数が48ド
ットで横ドットが行相当分のパターンを記憶する。
The number of vertical dots in the line print buffer corresponds to the number of vertical pins in the print head, and the dot pattern that can be printed by the print operation of this print head in the row direction can be stored. For example, the number of head pins is 48 pins. In this case, the number of vertical dots is 48 dots and the pattern of horizontal dots corresponding to rows is stored.

文字フォントパターン発生手段は、種々の文字サイズ
に対応する文字フォントパターンを発生する、例えばキ
ャラクタジェネレータである。
The character font pattern generating means is, for example, a character generator that generates character font patterns corresponding to various character sizes.

第1の転送手段は、文書印字の際に、該文書1行分の
文字フォントパターンを文字サイズに対応して前記文字
フォントパターン発生手段より得、前記行プリントバッ
ファに転送する。例えば、文字コードを記憶するテキス
トメモリから1行分の文字コードを読み出して指定文字
サイズに対応する文字フォントパターンを文字フォント
パターン発生手段としてのキャラクタジェネレータから
得て、行プリントバッファに転送する。
The first transfer means obtains the character font pattern for one line of the document from the character font pattern generation means in correspondence with the character size when the document is printed, and transfers the character font pattern to the line print buffer. For example, the character code for one line is read from the text memory that stores the character code, the character font pattern corresponding to the specified character size is obtained from the character generator as the character font pattern generating means, and transferred to the line print buffer.

第2の転送手段は、この第1の転送手段による1行分
の文字フォントパターンの転送後、文書の次行以降の文
字フォントパターンの少なくとも一部をその行間ピッチ
を含めて転送可能であれば、このパターンを前記文字フ
ォントパターン発生手段を参照して前記行プリントバッ
ファに転送する。この場合、例えば、ヘッドピン数が48
ピンであれば、行プリントバッファの縦方向のポインタ
値が48未満であるか否かによって転送可能か否かを判別
することができる。そして、転送可能であれば、行間ピ
ッチに対応するスペースを行プリントバッファ内に確保
した上で、次行の文字フォントパターンの内の転送可能
な部分をキャラクタジェネレータから得て、行プリント
バッファに転送する。
If the second transfer means can transfer at least a part of the character font pattern of the next and subsequent lines of the document including the line pitch after the transfer of the character font pattern for one line by the first transfer means. The pattern is transferred to the line print buffer by referring to the character font pattern generating means. In this case, for example, the number of head pins is 48
If it is a pin, it is possible to determine whether transfer is possible or not depending on whether or not the vertical pointer value of the row print buffer is less than 48. If transfer is possible, a space corresponding to the pitch between lines is secured in the line print buffer, and then the transferable part of the character font pattern of the next line is obtained from the character generator and transferred to the line print buffer. To do.

印字制御手段は、前記行プリントバッファに前記縦ド
ット数であって行方向の印字動作で印字される分のドッ
トパターンが転送された後に、このドットパターンを印
字させる。即ち、印字ヘッドの1行分の印字動作で1行
分以上の文字フォントパターンを一括印字させる。
The print control means prints this dot pattern after the number of vertical dots, which is the number of dots to be printed by the printing operation in the line direction, has been transferred to the line print buffer. That is, the printing operation for one line of the print head causes the character font patterns for one line or more to be collectively printed.

転送制御手段は、前記印字終了後に、直前に前記第2
の転送手段で転送された文字フォントパターンの一部以
外の未転送部分の文字フォントパターンを前記文字フォ
ントパターン発生手段を参照して得、この得られた文字
フォントパターンの未転送部分から前記行プリントバッ
ファに転送を開始する。
The transfer control means, immediately after the printing is completed, immediately before the second
The character font pattern of an untransferred portion other than a part of the character font pattern transferred by the transfer means is obtained by referring to the character font pattern generation means, and the line print is performed from the untransferred portion of the obtained character font pattern. Start the transfer to the buffer.

[作用] この発明の手段の作用は次の通りである。[Operation] The operation of the means of the present invention is as follows.

即ち、いま印字ヘッドのピン数が48ピンである場合を
例に挙げて説明すると、行プリントバッファは縦48ドッ
トで横が行相当分のドットパターンを記憶可能である。
このような場合、1文字サイズが48×48ドット構成の1
行分の文字フォントパターンが第1の転送手段によって
行プリントバッファに転送されると、行プリントバッフ
ァの縦方向にはヘッドピン数分のドットパターンが記憶
される為、前記縦ドット数であって行方向の印字動作で
印字される分のドットパターンが転送されたことになる
ので、印字制御手段は、行プリントバッファに格納され
ている1文字48×48ドット構成の1行分のドットパター
ンを印字させる。
That is, when the case where the number of pins of the print head is 48 is described as an example, the row print buffer can store a dot pattern of 48 dots in the vertical direction and a row corresponding to the rows.
In such a case, one character size is 48 x 48 dots
When the character font patterns for the lines are transferred to the line print buffer by the first transfer means, the dot patterns for the number of head pins are stored in the vertical direction of the line print buffer. Since the dot pattern to be printed by the printing operation in the direction has been transferred, the print control means prints the dot pattern for one line of 48 × 48 dot characters stored in the line print buffer. Let

次に、1文字サイズが24×24ドット構成の1行分の文
字フォントが第1の転送手段によって行プリントバッフ
ァに転送されると、行プリントバッファの縦方向には24
ドット分の空(余裕)がある為、このような場合には、
行間ピッチを含めて次行の文字フォントパターンの一部
を行プリントバッファ内に連続して転送可能であるの
で、第2の転送手段は、行間ピッチに対応する例えば8
ドット分のスペースを行プリントバッファ内に確保した
上で指定文字サイズ(例えば20×20ドット)に対応する
次行の文字フォントパータンのうちその一部(16ドッ
ト)を行プリントバッファに転送する。これによって行
プリントバッファ内に縦48ドット分のパターンが格納さ
れると、印字制御手段は行プリントバッファ内のドット
パターンを印字させる。
Next, when a character font for one line having a character size of 24.times.24 dots is transferred to the line print buffer by the first transfer means, the line print buffer has 24 lines in the vertical direction.
In this case, because there is a dot empty (margin),
Since a part of the character font pattern of the next line including the line pitch can be continuously transferred into the line print buffer, the second transfer means corresponds to the line pitch, for example, 8
After securing a space for dots in the line print buffer, a part (16 dots) of the character font pattern of the next line corresponding to the specified character size (for example, 20 × 20 dots) is transferred to the line print buffer. As a result, when the vertical 48-dot pattern is stored in the line print buffer, the print control means prints the dot pattern in the line print buffer.

したがって、印字ヘッドの1行分の印字動作で指定文
字サイズによっては1行分以上のパターンを一括印字す
ることができる。特に印字ヘッドのピン数が48ピンで1
文字サイズが20×20ドット構成の2行分の文字フォント
パターンを印字するような場合には行間スペースを含め
て2行分を一度に印字することができる。
Therefore, depending on the designated character size, the printing operation for one line of the print head can collectively print the patterns for one line or more. Especially when the number of pins of the print head is 48
When printing a character font pattern for two lines with a character size of 20 × 20 dots, two lines can be printed at one time including the space between lines.

また、上記24×24ドット構成の1行分の文字フォント
と20×20ドット構成の1行分の文字フォントの内の縦16
ドット分を印字した場合には、この印字終了後、転送制
御手段は、未転送部分の文字フォントパターンつまり20
×20ドット構成の1行分の文字フォントの内の残りの縦
4ドット分から行プリントバッファに転送を開始する。
In addition, one of the character font for one line consisting of 24 × 24 dots and the character font for one line consisting of 20 × 20 dots has a vertical length of 16
When dots have been printed, after this printing is completed, the transfer control means sets the character font pattern of the untransferred part, that is, 20 characters.
Transfer is started to the line print buffer from the remaining vertical 4 dots of the character font of 1 line consisting of × 20 dots.

したがって、次回の印字動作によって確実に残りの部
分が印字される。
Therefore, the remaining portion is surely printed by the next printing operation.

[実施例] 以下、一実施例を第1図〜第4図を参照して説明す
る。なお、本実施例はワードプロセッサに適用したもの
である。
[Embodiment] An embodiment will be described below with reference to FIGS. 1 to 4. This embodiment is applied to a word processor.

構 成 第1図はこのワードプロセッサの基本的な構成を示し
たブロック回路図である。CPU11は予め記憶されている
マイクロプログラムにしたがって文書作成処理、書式設
定処理、印字処理等を制御する。即ち、CPU11は入力部1
2からキー入力された文書データや指定書式データを入
力制御部13を介して取り込んでテキストメモリ14に格納
する。
Structure FIG. 1 is a block circuit diagram showing the basic structure of this word processor. The CPU 11 controls a document creating process, a formatting process, a printing process and the like according to a microprogram stored in advance. That is, the CPU 11 uses the input unit 1
Document data and designated format data keyed in from 2 are fetched via the input control unit 13 and stored in the text memory 14.

テキストメモリ14はRAMによって構成された文書保存
用のメモリで、入力作成された文書データを文字コード
形式で記憶すると共に、文字コードを行単位毎に区分し
て記憶し、かつ各行に対応して設定書式データを記憶す
る構成となっている。ここで、設定書式データは対応す
る行の書式を示す行書式データで、文字サイズ、行間ピ
ッチ、桁ピッチとから構成されている。なお、文字サイ
ズは16ドット(16×16ドット)、24ドット(24×24ドッ
ト)、32ドット(32×32ドット)、48ドット(48×48ド
ット)のうちのいずれか1つが設定される。また、桁ピ
ッチは横方向の文字サイズに桁間ピッチを加えた値であ
る。
The text memory 14 is a memory for storing documents which is composed of a RAM, and stores the input and created document data in a character code format, and also stores the character codes by dividing them by line units and corresponding to each line. It is configured to store setting format data. Here, the setting format data is line format data indicating the format of the corresponding line, and is composed of a character size, a line pitch, and a digit pitch. The character size is set to any one of 16 dots (16 x 16 dots), 24 dots (24 x 24 dots), 32 dots (32 x 32 dots), and 48 dots (48 x 48 dots). . The digit pitch is a value obtained by adding the inter-digit pitch to the horizontal character size.

CPU11は入力部12からの印字指令に応答してテキスト
メモリ14内の文字コードをワークメモリ19を用いて1行
単位毎に読み出すと共に対応する行書式データをワーク
メモリ19に転送する。テキストメモリ14から読み出され
た1行分の文字コードは文字サイズに対応して設けられ
ている複数のキャラクタジェネレータ15〜18のうちその
行書式データの指定文字サイズに対応するキャラクタジ
ェネレータを用いて1文字ずつ対応する文字フォントパ
ターンに変換され、印字バッファ20に順次格納される。
この場合、CPU11は印字バッファ20の縦方向に所定の空
エリアがあるか否か、換言すれば、行間ピッチを含めて
次行の文字フォントパターンの少なくとも一部を印字バ
ッファ20に連続して転送可能か否かの判断を行う。この
結果、連続転送が可能であれば、行間ピッチに対応する
スペースを印字バッファ20内に確保した上で次行の文字
コードをテキストメモリ14から読み出して当該行の指定
文字サイズに対応する文字フォントパターンをキャラク
タジェネレータから読み出し印字バッファ20に格納す
る。
In response to the print command from the input unit 12, the CPU 11 reads the character code in the text memory 14 using the work memory 19 line by line and transfers the corresponding line format data to the work memory 19. The character code for one line read from the text memory 14 uses the character generator corresponding to the specified character size of the line format data among the plurality of character generators 15 to 18 provided corresponding to the character size. Each character is converted into a corresponding character font pattern and sequentially stored in the print buffer 20.
In this case, the CPU 11 continuously transfers to the print buffer 20 whether or not there is a predetermined empty area in the vertical direction of the print buffer 20, that is, at least a part of the character font pattern of the next line including the line pitch. Determine whether it is possible. As a result, if continuous transfer is possible, a space corresponding to the pitch between lines is secured in the print buffer 20, the character code of the next line is read from the text memory 14, and the character font corresponding to the specified character size of the line is read. The pattern is read from the character generator and stored in the print buffer 20.

印字制御部21は熱転写式プリンタを構成するキャリッ
ジ22、印字ヘッド23の駆動を制御し、印字バッファ20の
内容を記録紙に印字する。印字ヘッド23は縦方向に48ピ
ンのサーマル印字素子を有する構成で、印字バッファ20
はこのヘッドピン数と一致する縦ドット数のパターン
(48×横ドット数)を記憶可能な構成となっている。印
字制御部21は印字ヘッド23をキャリッジ22により横方向
に移動させながら印字バッファ20の内容を全て印字し終
ると、フィードローラ24を駆動して紙送り(改行)を行
うが、この場合、フィードローラ24は改行毎に48ドット
分駆動される。
The print control unit 21 controls the drive of the carriage 22 and the print head 23 that form the thermal transfer printer, and prints the contents of the print buffer 20 on the recording paper. The print head 23 has a thermal print element of 48 pins in the vertical direction, and the print buffer 20
Has a configuration capable of storing a vertical dot number pattern (48 × horizontal dot number) that matches the number of head pins. When the print control unit 21 finishes printing all the contents of the print buffer 20 while moving the print head 23 in the horizontal direction by the carriage 22, the feed roller 24 is driven to feed the paper (line feed). The roller 24 is driven by 48 dots for each line feed.

次に、第2図を参照してワークメモリ19の構成を説明
する。ワークメモリ19にはテキストメモリ14に対する行
カウンタの他、次に示す各種のレジスタを有する構成と
なっている。
Next, the configuration of the work memory 19 will be described with reference to FIG. The work memory 19 has a line counter for the text memory 14 and various registers shown below.

Xレジスタ、Yレジスタ……印字バッファ20の左上位
置をXY座標の原点に対応させた平面座標において、その
XY座標を記憶するXYポインタ。
X register, Y register ... In the plane coordinates where the upper left position of the print buffer 20 corresponds to the origin of the XY coordinates,
An XY pointer that stores the XY coordinates.

xPレジスタ……行書式の桁ピッチを記憶するレジスタ。x P register: A register that stores the digit pitch in line format.

yPレジスタ……行書式の文字サイズあるいは行間ピッチ
を記憶するレジスタ。
y P register: A register that stores the character size in line format or the pitch between lines.

y0レジスタ……1行分の文字フォントパターンの一部が
既に印字された場合、その文字フォントパターンの残り
のパターンをキャラクタジェネレータから読み出す際の
縦方向の読み出し開始位置を示すポインタである。
y 0 register: A pointer that indicates the vertical read start position when the remaining part of the character font pattern for one line has already been printed and is read from the character generator.

動 作 第3図は印字動作を示したフローチャートで、以下第
4図に示す印字例にしたがって具体的に説明する。な
お、第4図はテキストメモリ14内に設定されている行書
式(第1図参照)にしたがって5行分の文書を印字する
場合の過程を示し、この場合、5行分の文書を3回の改
行で行うことができる。
Operation FIG. 3 is a flow chart showing the printing operation, which will be specifically described below with reference to the printing example shown in FIG. Note that FIG. 4 shows the process of printing a document for 5 lines according to the line format (see FIG. 1) set in the text memory 14, and in this case, a document for 5 lines is printed 3 times. Can be done with a line break.

1回目の印字 CPU11は入力部12からの印字指令に応答して第3図の
フローチャートにしたがった印字動作を実行開始する。
先ず、ワークメモリ19内の行カウンタに「1」をセット
すると共に、Yレジスタに「0」をセットするイニシャ
ライズ処理(ステップS1)を行ったのち、この行カウン
タの値「1」にしたがってテキストメモリ14をアドレス
指定し、指定アドレス領域内から文字サイズ「16」、桁
ピッチ「24」を読み出してワークメモリ19内の対応する
yPレジスタ、xPレジスタにセットする(ステップS2)。
そして、各キャラクタジェネレータ15〜18のうちyPレジ
スタにセットされている文字サイズに対応する16ドット
キャラクタジェネレータ15を選択指定する(ステップS
3)。その後、ステップS4でテキストメモリ14の1行目
の先頭文字コードを指定すると共に、Xレジスタをクリ
アしたのち(ステップS4)、先頭文字コードに対応する
文字フォントパターンを16ドットキャラクタジェネレー
タ15から読み出し(ステップS5)、Xレジスタ、Yレジ
スタの値で指定される印字バッファ20の座標位置(0、
0)に格納する(ステップS6)。このようにして先頭の
1文字分の文字フォントパターンを印字バッファ20に格
納したら、Xレジスタの値をインクリメントする為に、
Xレジスタの値「0」にxPレジスタ内の桁ピッチ「24」
を加算する(ステップS7)。これによってXレジスタの
値が1桁ピッチ分インクリメントされて「24」となる。
そして、次のステップS8ではXレジスタの値に基づいて
1行分の文字フォントパターンを印字バッファ20に格納
したか否かの判断が行われるが、いま、先頭文字を格納
した場合であるからステップS5に戻り、テキストメモリ
14内の1行目の文字コードに対応する文字フォントパタ
ーンを16ドットキャラクタジェネレータ15から順次読み
出して印字バッファ20に格納する処理が繰り返される。
The first printing CPU 11 responds to the printing command from the input unit 12 and starts executing the printing operation according to the flowchart of FIG.
First, the line counter in the work memory 19 is set to "1" and the Y register is set to "0". After initialization processing (step S1), the text memory is set according to the value "1" of the line counter. Address 14 and read the character size "16" and digit pitch "24" from the specified address area to correspond to the work memory 19.
y P register is set to x P register (step S2).
Then, selecting and designating y P register corresponding to the character size set in 16-dot character generator 15 of the character generator 15 to 18 (step S
3). After that, in step S4, the first character code of the first line of the text memory 14 is specified, the X register is cleared (step S4), and the character font pattern corresponding to the first character code is read from the 16-dot character generator 15 ( Step S5), the coordinate position of the print buffer 20 (0,
0) (step S6). When the character font pattern for the first character is stored in the print buffer 20 in this way, in order to increment the value of the X register,
Digit pitch "24" in x P register to value "0" in X register
Is added (step S7). As a result, the value of the X register is incremented by one digit pitch and becomes "24".
Then, in the next step S8, it is judged whether or not the character font pattern for one line is stored in the print buffer 20 based on the value of the X register. Return to S5, text memory
The process of sequentially reading the character font pattern corresponding to the character code of the first line in 14 from the 16-dot character generator 15 and storing it in the print buffer 20 is repeated.

これによって1行目の文字フォントパターンを印字バ
ッファ20に格納し終ると、その文字サイズ分Yレジスタ
の値を更新する為に、Yレジスタの値「0」にyPレジス
タ内の文字サイズ「16」を加算する(ステップS9)。そ
の結果、Yレジスタの値が印字バッファ20の縦ドット
数、換言すればヘッドピン数「48」を越えたか否かを調
べるが(ステップS10)、いまYレジスタの値は「1
6」、したがって印字バッファ20の縦方向には32ドット
分の空がある。このような場合、行間ピッチを含めて次
行の文字フォントパターンの少なくとも一部を印字バッ
ファ20内に連続して転送可能か否かを調べる為に、ステ
ップS20に進み、テキストメモリ14の1行目から行間ピ
ッチ「8ドット」を読み出してyPレジスタにセットした
のち、これをYレジスタに加算することによってYレジ
スタの値を行間ピッチ分インクリメントする(ステップ
S21)。この結果、次のステップS22ではYレジスタの値
が「48」以上になったかを調べるが、いま、Yレジスタ
の値は「16+8=24」であるから次行のの少なくとも一
部を連続転送可能であると判断し、ステップS26に進
み、ワークメモリ19内の行カウンタの値を更新する為に
それに「1」を加算する。その後、行カウンタの値にし
たがって1ページ分の印字終了かをチェックするステッ
プS27からステップS2に戻る。
If this by storing the first line of the character font pattern to a print buffer 20 ends, in order to update the value of the character size of the Y register, the character size in the y P register to the value of the Y register "0", "16 Is added (step S9). As a result, it is checked whether or not the value of the Y register exceeds the number of vertical dots of the print buffer 20, that is, the number of head pins "48" (step S10), but the value of the Y register is now "1".
6 ”, and thus there is a sky of 32 dots in the vertical direction of the print buffer 20. In such a case, in order to check whether at least a part of the character font pattern of the next line including the line pitch can be continuously transferred to the print buffer 20, the process proceeds to step S20, and one line of the text memory 14 is read. After setting the y P register from the eye reads between the lines pitch "8 dots", the value of the Y register is incremented rows pitch by adding it to the Y register (step
S21). As a result, in the next step S22, it is checked whether the value of the Y register has become "48" or more. Now, since the value of the Y register is "16 + 8 = 24", at least part of the next row can be continuously transferred. Then, in step S26, "1" is added to the value of the row counter in the work memory 19 to update the value. After that, the process returns from step S27 to check whether the printing for one page is completed according to the value of the line counter and returns to step S2.

これによってテキストメモリ14から2行目の文字コー
ドを1文字ずつ読み出して指定文字サイズに対応する16
ドットキャラクタジェネレータ15を用いて文字フォント
パターンに変換し印字バッファ20に順次格納する(ステ
ップS2〜S8)。この場合、Yレジスタの値が「24」であ
るから、印字バッファ20内には1行目の文字フォントパ
ターンの下側に8ドット分の行間スペースを確保した上
で縦24ドット目から2行目の文字フォントパターンの全
部が格納される。このようにして2行目の文字フォント
パターンを印字バッファ20に格納し終ると、Yレジスタ
の値「24」がその文字サイズ「16ドット」分更新される
結果、その値は「40」となる(ステップS9)。これによ
ってステップS10からステップS20〜S22に進み、更に印
字バッファ20に行間ピッチを含めて次行の文字フォント
パターンを連続転送可能であるか否かをチェックする。
この場合、2行目の行間ピッチは「16ドット」、したが
ってYレジスタの値は「56」に更新される結果、連続転
送不可と判断される。これによってステップS23に進
み、Yレジスタの値「56」から「48」を減算したのち、
印字ヘッド23を右方向に移動しながら印字バッファ20内
に格納されているパターンに応じてキャリッジ22を駆動
することによって印字バッファ20内のパターンを一括印
字する(ステップS24)。
As a result, the character code of the second line is read from the text memory 14 one character at a time to correspond to the specified character size.
It is converted into a character font pattern using the dot character generator 15 and sequentially stored in the print buffer 20 (steps S2 to S8). In this case, since the value of the Y register is "24", in the print buffer 20, an inter-line space of 8 dots is secured below the character font pattern of the first line, and then the second line from the 24th vertical line. All of the eye character font patterns are stored. When the character font pattern for the second line has been stored in the print buffer 20 in this way, the value "24" in the Y register is updated by the character size "16 dots", resulting in the value "40". (Step S9). As a result, the process proceeds from step S10 to steps S20 to S22, and it is further checked whether or not the character font pattern of the next line including the line pitch can be continuously transferred to the print buffer 20.
In this case, the inter-line pitch of the second line is "16 dots", so the value of the Y register is updated to "56", and as a result, it is determined that continuous transfer is impossible. With this, the process proceeds to step S23, and after subtracting "48" from the value "56" of the Y register,
The patterns in the print buffer 20 are collectively printed by driving the carriage 22 in accordance with the patterns stored in the print buffer 20 while moving the print head 23 to the right (step S24).

この結果、キャリッジ22の1行分の印字動作で第4図
に示すように行間ピッチを含めて16ドットサイズの2行
分の文字フォントパターンが一度に印字されることにな
る。この場合、2行目の行間ピッチはその一部(8ドッ
ト分)のみが形成される。
As a result, during the printing operation for one line of the carriage 22, the character font pattern for two lines of 16 dot size including the line pitch is printed at one time as shown in FIG. In this case, only part (8 dots) of the inter-row pitch of the second row is formed.

このようにして印字バッファ20内のパターンを全て印
字し終ると、印字ヘッド23を左方向に移動させると共
に、フィードローラ24を48ドット分駆動させる改行処理
を行う(ステップS25)。そして、行カウンタの更新
(ステップS26)を行ったのちステップS27からステップ
S2に戻る。
When all the patterns in the print buffer 20 have been printed in this way, the print head 23 is moved to the left and line feed processing is performed to drive the feed roller 24 by 48 dots (step S25). Then, after updating the row counter (step S26), the steps from step S27 are performed.
Return to S2.

2回目の印字 先ず、テキストメモリ14から3行目の文字コードを1
文字ずつ読み出して指定文字サイズに対応する24ドット
キャラクタジェネレータ16を用いて文字フォントパター
ンに変換し印字バッファ20に順次格納する(ステップS2
〜S8)。この際、Yレジスタの値が「8」であるから、
8ドット分の行間スペース(2行目の行間スペースの残
り8ドット)を確保した上で3行目の文字フォントパタ
ーンの全部が文字バッファ20に格納される。そして、Y
レジスタの値が更新されて「8+24=32」となり(ステ
ップS9)、更にその行間ピッチを含めて「32+8=40」
となる(ステップS21)。したがって、この場合におい
ても次行の文字フォントパターンの少なくとも一部を印
字バッファ20に連続転送可能であるから、行カウンタの
更新後、ステップS2に戻る。
Second printing First, set the character code of the third line from the text memory 14 to 1.
Each character is read out, converted into a character font pattern using the 24-dot character generator 16 corresponding to the specified character size, and sequentially stored in the print buffer 20 (step S2
~ S8). At this time, since the value of the Y register is "8",
All the character font patterns on the third line are stored in the character buffer 20 after securing a space between the lines of 8 dots (8 dots remaining on the space between the second lines). And Y
The register value is updated to "8 + 24 = 32" (step S9), and the line spacing pitch is also included in "32 + 8 = 40".
(Step S21). Therefore, even in this case, at least a part of the character font pattern of the next line can be continuously transferred to the print buffer 20, and the process returns to step S2 after the line counter is updated.

そして、テキストメモリ14から4行目の文字コードが
読み出され、指定文字サイズに応じた文字フォントパタ
ーンが印字バッファ20に格納されると、Yレジスタの値
は「40+24=64」、したがってヘッドピン数「48」以上
となり、そのことがステップS10で検出される。
Then, when the character code of the fourth line is read from the text memory 14 and the character font pattern corresponding to the specified character size is stored in the print buffer 20, the value of the Y register is “40 + 24 = 64”, and therefore the number of head pins. The value is "48" or more, which is detected in step S10.

この検出に伴って印字動作を開始し(ステップS1
1)、印字バッファ20に格納されているパターンを第4
図に示す如く印字する。この場合、印字バッファ20内に
は4行目の文字フォントパターンの一部(8ドット)し
か格納されていないので、行間ピッチを含めて3行目の
文字フォントパターンと共に4行目の文字フォントパタ
ーンの一部が一括印字される。その後、ステップS12に
進み、改行処理を行う。
The printing operation is started in response to this detection (step S1
1), change the pattern stored in the print buffer 20 to the fourth
Print as shown. In this case, since only a part (8 dots) of the character font pattern on the fourth line is stored in the print buffer 20, the character font pattern on the fourth line as well as the character font pattern on the third line including the line spacing is included. A part of is printed together. After that, the process proceeds to step S12, and line feed processing is performed.

3回目の印字 先ず、Yレジスタの値「64」から「48」を減算し、そ
の結果「16」をy0レジスタにセットしたのち、yPレジス
タ内の文字サイズ「24」からy0レジスタの値「16」を減
算し、その値「8」をy0レジスタにセットする(ステッ
プS13)。これによって既に印字された4行目の文字フ
ォントパターンの一部を除く残りのパターンを24ドット
キャラクタジェネレータ16から読み出す際の読み出し開
始位置がy0レジスタにセットされる。そして、ステップ
S14でYレジスタの値をクリアしたのちステップS15に進
み、テキストメモリ14の指定行のうちその先頭文字を指
定すると共にXレジスタの値をクリアする。この場合、
上記2回目の印字後、行カウンタの更新は行われないの
で、再び4行目の先頭文字コードが指定される。そし
て、この文字コードに対応する文字フォントパターンを
24ドットキャラクタジェネレータ16から読み出す際に前
回既に印字されたパターンを除くためy0レジスタの値か
ら残りのパターンを読み出す(ステップS16。これを印
字バッファ20に格納し、そしてXレジスタの値を更新し
ながら1行分のパターンを印字バッファ20に格納するま
で同様の処理を繰り返す(ステップS16〜S19)。
Third printing First, subtract “48” from the Y register value “64”, set the result “16” in the y 0 register, and then change from the character size “24” in the y P register to the y 0 register. The value "16" is subtracted, and the value "8" is set in the y 0 register (step S13). As a result, the reading start position when the remaining pattern, excluding a part of the character font pattern already printed on the 4th line, is read from the 24-dot character generator 16 is set in the y 0 register. And step
After clearing the value of the Y register in S14, the flow advances to step S15 to specify the first character of the designated line of the text memory 14 and clear the value of the X register. in this case,
Since the line counter is not updated after the second printing, the leading character code of the fourth line is designated again. Then, the character font pattern corresponding to this character code is
When reading from the 24-dot character generator 16, the remaining pattern is read from the value of the y 0 register to remove the pattern already printed previously (step S16. This is stored in the print buffer 20 and the value of the X register is updated. However, the same processing is repeated until the pattern for one line is stored in the print buffer 20 (steps S16 to S19).

その後、ステップS28に進み、yPレジスタ内の文字サ
イズからy0レジスタの値「8」を減算し、その値「16」
をYレジスタにセットする。そして、このYレジスタの
値「16」に行間ピッチ「16」を加算するが、この場合、
「48」未満となる為、ステップS22からステップS26に進
み、行カウンタの更新を行ったのちステップS2に戻る。
Then, in step S28, the value "8" in the y 0 register is subtracted from the character size in the y P register, and the value "16" is subtracted.
To the Y register. Then, the line pitch "16" is added to the value "16" of the Y register. In this case,
Since it is less than “48”, the process proceeds from step S22 to step S26, the line counter is updated, and then the process returns to step S2.

そして、5行目の文字フォントパターンを印字バッフ
ァ20に格納したのちYレジスタの値が更新されて「32+
16=48」となり「ステップS9)。そして行間ピッチ
「0」分更新される(ステップS21)。これによってY
レジスタの値が「48」以上となるので、ステップS23に
進み、これによってYレジスタの値は「0」となる。そ
して、印字処理(ステップS24)、改行処理(ステップS
25)後、行カウンタの更新が行われ、ステップS2に戻
る。
Then, after storing the character font pattern of the fifth line in the print buffer 20, the value of the Y register is updated to "32+
16 = 48 "and" step S9). Then, the line pitch "0" is updated (step S21). This makes Y
Since the value of the register becomes "48" or more, the process proceeds to step S23, whereby the value of the Y register becomes "0". Then, print processing (step S24) and line feed processing (step S24)
25) After that, the row counter is updated, and the process returns to step S2.

したがって、第4図に示すように3回目の印字では4
行目の残りのパターンと共に4行目の文字フォントパタ
ーンが一括印字される。
Therefore, as shown in FIG.
The character font pattern on the fourth line is printed together with the remaining patterns on the line.

以下、同様の動作がステップS27で1ページ分の印字
終了が検出されるまで繰り返される。
Hereinafter, the same operation is repeated until the end of printing for one page is detected in step S27.

変形応用例 (1)上記実施例は文字サイズに応じて複数のキャラク
タジェネレータを用いた構成であるが、基本サイズの文
字フォントパターンを縮小、拡大するものであってもよ
い。
Modified Application Example (1) Although the above-described embodiment uses a plurality of character generators according to the character size, a character font pattern of a basic size may be reduced or enlarged.

(2)また、この発明は複数の文字サイズに選択印字可
能なマルチポイント印字方式の機種に限らないが、この
場合、文字サイズよりも印字ヘッドとしてそのピン数が
2倍程度のものを使用すればよい。
(2) Further, although the present invention is not limited to a model of a multi-point printing method capable of selectively printing on a plurality of character sizes, in this case, a print head having about twice the number of pins as the character size may be used. Good.

(3)またこの発明は熱転写式プリンタやワードプロセ
ッサに限らないことは勿論である。
(3) Further, it goes without saying that the present invention is not limited to a thermal transfer printer or a word processor.

[発明の効果] この発明によれば、印字ヘッドの1行分の動作で一度
に1行分以上の印字が可能な為、印字速度を高めること
ができ、膨大な文書を効率良く印字することができる等
の効果を有する。
[Effects of the Invention] According to the present invention, it is possible to print one line or more at a time by the operation of one line of the print head, so that the printing speed can be increased and an enormous document can be printed efficiently. It has the effect of being able to.

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

第1図〜第4図はこの発明の一実施例を示し、第1図は
この発明を適用したワードプロセッサの基本的な構成を
示すブロック回路図、第2図は第1図で示したワークRA
M内のデータを説明する為の図、第3図は印字動作を説
明するフローチャート、第4図は印字状態説明図、第5
図は従来の印字状態説明図である。 11……CPU、14……テキストメモリ、15〜18……キャラ
クタジェネレータ、19……ワークメモリ、20……印字バ
ッファ、21……印字制御部、23……印字ヘッド。
1 to 4 show an embodiment of the present invention, FIG. 1 is a block circuit diagram showing a basic configuration of a word processor to which the present invention is applied, and FIG. 2 is a work RA shown in FIG.
FIG. 3 is a diagram for explaining the data in M, FIG. 3 is a flowchart for explaining the printing operation, FIG. 4 is a printing state explanatory diagram, and 5
The figure is a conventional printing state explanatory view. 11 ... CPU, 14 ... Text memory, 15-18 ... Character generator, 19 ... Work memory, 20 ... Print buffer, 21 ... Print control unit, 23 ... Print head.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】縦ドット数が印字ヘッドの縦ピン数に相当
し、この印字ヘッドの行方向の印字動作で印字される分
のドットパターンを記憶可能な行プリントバッファと、 種々の文字サイズに対応する文字フォントパターンを発
生する文字フォントパターン発生手段と、 文書印字の際に、該文書1行分の文字フォントパターン
を文字サイズに対応して前記文字フォントパターン発生
手段より得、前記行プリントバッファに転送する第1の
転送手段と、 この第1の転送手段による1行分の文字フォントパター
ンの転送後、文書の次行以降の文字フォントパターンの
少なくとも一部をその行間ピッチを含めて転送可能であ
ればこのパターンを前記文字フォントパターン発生手段
を参照して前記行プリントバッファに転送する第2の転
送手段と、 前記行プリントバッファに前記縦ドット数であって行方
向の印字動作で印字される分のドットパターンが転送さ
れた後に、このドットパターンを印字させる印字制御手
段と、 前記印字終了後に、直前に前記第2の転送手段で転送さ
れた文字フォントパターンの一部以外の未転送部分の文
字フォントパターンを前記文字フォントパターン発生手
段を参照して得、この得られた文字フォントパターンの
未転送部分から前記行プリントバッファに転送を開始す
る転送制御手段と、 を具備したことを特徴とする文書印字装置。
1. A line print buffer in which the number of vertical dots corresponds to the number of vertical pins of a print head, and a dot pattern which can be printed by the print operation of the print head in the line direction can be stored, and various line sizes can be used. A character font pattern generating means for generating a corresponding character font pattern, and a character font pattern for one line of the document when the document is printed, obtained from the character font pattern generating means corresponding to a character size, and the line print buffer. To the first transfer means, and after transferring the character font pattern for one line by the first transfer means, at least part of the character font pattern on and after the next line of the document can be transferred including the line pitch. If so, second transfer means for transferring this pattern to the line print buffer with reference to the character font pattern generation means, The print control means for printing this dot pattern after the number of dot patterns to be printed by the print operation in the row direction is transferred to the line print buffer, and the print control means for printing the dot pattern immediately after the printing is finished. A character font pattern of an untransferred portion other than a part of the character font pattern transferred by the second transfer means is obtained by referring to the character font pattern generation means, and the line is formed from the untransferred portion of the obtained character font pattern. A document printing apparatus comprising: a transfer control unit that starts transfer to a print buffer.
JP62199551A 1987-08-10 1987-08-10 Document printing device Expired - Lifetime JPH085218B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62199551A JPH085218B2 (en) 1987-08-10 1987-08-10 Document printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62199551A JPH085218B2 (en) 1987-08-10 1987-08-10 Document printing device

Publications (2)

Publication Number Publication Date
JPS6442250A JPS6442250A (en) 1989-02-14
JPH085218B2 true JPH085218B2 (en) 1996-01-24

Family

ID=16409708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62199551A Expired - Lifetime JPH085218B2 (en) 1987-08-10 1987-08-10 Document printing device

Country Status (1)

Country Link
JP (1) JPH085218B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61222757A (en) * 1985-03-18 1986-10-03 Fujitsu Ltd Image data printing system

Also Published As

Publication number Publication date
JPS6442250A (en) 1989-02-14

Similar Documents

Publication Publication Date Title
JPH0263763A (en) Printing apparatus
JP2570684B2 (en) Character pattern generator for Dot Tomato Rix serial printer
JPH085218B2 (en) Document printing device
EP0090802A4 (en) A page modification method in a printer subsystem of the partial page buffer composing type.
JPS62216029A (en) Graphic print control system
JPS5911439A (en) output method
JPS59201870A (en) Printer
JPH0630927B2 (en) Pattern output method
JP2836026B2 (en) Printing control device
JPH01160665A (en) Printer
JP2685724B2 (en) Document processing method
JPH06100905B2 (en) Pattern output method
JPH0570856B2 (en)
KR910009064B1 (en) How to correct character size for printer
JPH0213631B2 (en)
JP2647510B2 (en) Character processing apparatus and method
JPS61225063A (en) Printing apparatus
JP2757986B2 (en) Print control device for serial dot printer
JPS6137441A (en) High-speed printing processing system of dot printer
JPS6160121A (en) Graphic print processing system
JPH09314906A (en) Method for developing character pattern and thermal printer
JPH0419167A (en) printing device
JPH0461782B2 (en)
JPH02297218A (en) Document processor
JPS61135274A (en) Controller for generation of character

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080124

Year of fee payment: 12