JPS61286177A - Document-forming device - Google Patents

Document-forming device

Info

Publication number
JPS61286177A
JPS61286177A JP60129221A JP12922185A JPS61286177A JP S61286177 A JPS61286177 A JP S61286177A JP 60129221 A JP60129221 A JP 60129221A JP 12922185 A JP12922185 A JP 12922185A JP S61286177 A JPS61286177 A JP S61286177A
Authority
JP
Japan
Prior art keywords
line
character
magnification
printing
print
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.)
Granted
Application number
JP60129221A
Other languages
Japanese (ja)
Other versions
JPH0773935B2 (en
Inventor
Jiro Yoshii
吉井 二郎
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP60129221A priority Critical patent/JPH0773935B2/en
Publication of JPS61286177A publication Critical patent/JPS61286177A/en
Publication of JPH0773935B2 publication Critical patent/JPH0773935B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J11/00Devices or arrangements  of selective printing mechanisms, e.g. ink-jet printers or thermal printers, for supporting or handling copy material in sheet or web form
    • B41J11/36Blanking or long feeds; Feeding to a particular line, e.g. by rotation of platen or feed roller
    • B41J11/42Controlling printing material conveyance for accurate alignment of the printing material with the printhead; Print registering

Abstract

PURPOSE:To enable a variety of printed documents to be formed, by a method wherein a line feed quantity is designated, and a printing-starting position for the next line is so set that the line space between the relevant printing line and the next printing line is 0. CONSTITUTION:The document-forming device is provided with, for example, nine kinds of line pitch information B, O, H, K. E, 1-4. Line feed K designates a forward line feeding by 16/12 inch on the basis of em characters. The paper feed quantity after printing character strings in the K-th line is equivalent to the character size with a magnification of 1 where a vertical magnification is an integral number. Where the vertical magnification is not an integral number, the paper feed quantity is equivalent to the character size with a magnification represented by the fraction part of the vertical magnification. Therefore, line feeding by the amount of the character of the character size, namely, line feeding with zero line space is performed. Accordingly, the first character string with the first character size and the second character string with the second character size can be connected to each other with no gap therebetween, which is suitable for forming, for example, an enlarged vertical rule.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、印刷文字サイズ可変機能を備えた文書作成
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a document creation device with a print character size variable function.

[発明の技術的背景とその問題点] 日本語ワードプロセッサ等、近年の文書作成装置には、
印刷文字サイズが可変できるものが多くなっている。
[Technical background of the invention and its problems] Recent document creation devices such as Japanese word processors have
Many printers now allow variable print font size.

従来、この種の文書作成装置において、特に拡大された
文字行に対して次の行との行間間隔が0となるような改
行を行ない、次の行を繋いで印刷できるようにしたもの
は知られていなかった。
Conventionally, in this type of document creation device, there is no known device that performs a line break such that the line spacing between the enlarged character line and the next line becomes 0, so that the next line can be connected and printed. It wasn't.

[発明の目的] この発明は上記事情に鑑みてなされたものでその目的は
、選択指定可能な改行ピッチ値の1つに1文字分改行量
を含め、1文字分改行lが指定されている場合に、その
文字サイズに無関係に該当印刷行と次の印刷行との行間
間隔がOとなるように次の行の印刷開始位置を進めるこ
とができ、もって多様な印刷文書を作成することができ
る文書作成装置を提供することにある。
[Purpose of the Invention] This invention was made in view of the above circumstances, and its purpose is to include a line feed amount of one character in one of the line feed pitch values that can be selected and specified, and to specify a line feed l of one character. In this case, the print start position of the next line can be advanced so that the line spacing between the corresponding print line and the next print line becomes O, regardless of the font size, and this allows you to create a variety of printed documents. The goal is to provide a document creation device that can.

[発明の概要] この発明では、出力対象となる文書情報の行を単位に、
1文字分改行量を含む複数の改行ピッチ値の1つを選択
指定する第1指定手段と、文書情報の行を単位に複数の
文字倍率の1つを選択指定する第2指定手段との2つの
指定手段が設けられる。印刷時においては、第2指定手
段の指定する倍率で印刷文書のパターン展開が行われ、
この展開された印刷文書パターンの行が上記の倍率に応
じて1回で或は複数回に分けて印刷される。この際、印
刷文書パターンの行を印刷するのに必要な行印刷紙送り
量が上記の倍率をもとに求められる。
[Summary of the Invention] In this invention, document information to be output is output in units of rows.
A first specifying means for selecting and specifying one of a plurality of line break pitch values including a line feed amount for one character, and a second specifying means for selecting and specifying one of a plurality of character scaling factors for each line of document information. Two designation means are provided. At the time of printing, the pattern of the printed document is developed at the magnification specified by the second specifying means,
The lines of this expanded print document pattern are printed once or in multiple times depending on the above-mentioned magnification. At this time, the line printing paper feed amount required to print the line of the print document pattern is determined based on the above magnification.

また第1指定手段の指定する改行ピッチ値が上記の倍率
に比例した改行紙送り量に変換される。そして第1指定
手段により1文字分改行量が指定されている場合には、
該当行の印刷毎に改行紙送り量と行印刷紙送り量との差
分だけ印刷用紙を順方向へ紙送りすることによって、行
間間隔をOとする改行が実行される。
Further, the line feed pitch value specified by the first specifying means is converted into a line feed paper feed amount proportional to the above-mentioned magnification. Then, if the line break amount for one character is specified by the first specifying means,
A line feed with a line spacing of O is executed by feeding the printing paper in the forward direction by the difference between the line feed paper feed amount and the line printing paper feed amount each time the corresponding line is printed.

[発明の実施例] 第1図はこの発明の一実施例に係る文書作成装置、例え
ば日本語ワードプロセッサのブロック構成を示すもので
、10は装置全体の制御を司るCPUである。12はR
OMであり、装置全体を制御するプログラム、文字を拡
大するためのプログラム、更には行単位で指定される文
字サイズ、文字量間隔、および行ピッチを含む行修飾情
報に従う印刷制御のためのプログラム等が格納されてい
るプログラム領域14を有する。ROM12は、更に、
装置で扱う漢字を含む文字コードに対応した文字パター
ンが登録された文字パターン領域16、および「かな」
或は「ローマ字」で入力された読みを漢字に変換するた
めの各種辞書が登録された辞書領域18を有する。
[Embodiment of the Invention] FIG. 1 shows a block configuration of a document creation device, for example, a Japanese word processor, according to an embodiment of the invention, and 10 is a CPU that controls the entire device. 12 is R
OM, which includes a program to control the entire device, a program to enlarge characters, and a program to control printing according to line modification information including character size, character spacing, and line pitch specified on a line-by-line basis, etc. It has a program area 14 in which is stored. The ROM12 further includes:
A character pattern area 16 in which character patterns corresponding to character codes including kanji handled by the device are registered, and "kana"
Alternatively, it has a dictionary area 18 in which various dictionaries for converting readings input in "Romaji" into Kanji are registered.

20はRAMであり、第2図に示すように、入力された
文書の文字コード列を記憶する文書領域21、各行毎の
行修飾情報を記憶する行修飾領域22.1文書当り最大
3文字の外字を登録する外字パターン領[23を有して
いる。RAM20は、更に、1文書当り最大5つまでの
語句を登録する語句登録領域24、かな漢字変換で生じ
た同音具a語を選択したときに、どの単語が選択された
かを記憶し、次回以降最優先でその単語を表示する学習
機能のために使用される暫定辞書領域25、全角文字に
よる1行印刷分の印刷イメージ容量をもつ印刷イメージ
領域26、および印刷制御に供されるレジスタ51〜6
3の領域を有している。
20 is a RAM, as shown in FIG. It has a custom character pattern area [23] for registering custom characters. The RAM 20 further includes a word registration area 24 in which up to five words are registered per document, and a word registration area 24 that stores which word is selected when the same sound instrument a word generated in kana-kanji conversion is selected, and stores the word that is selected from the next time onwards. A temporary dictionary area 25 used for a learning function that displays the word with priority, a print image area 26 with a print image capacity for printing one line of full-width characters, and registers 51 to 6 used for print control.
It has 3 areas.

再び第1図を参照すると、31はキーボードインタフェ
ース(KB−I F) 、33はキーボード(KB)で
ある。 35は表示コントローラ(表示CNT)、37
は表示器である。表示器37は、例えば1行×10字の
液晶表示器である。表示器37に表示される表示パター
ンは、表示用ドツトメモリ39に記憶される。
Referring again to FIG. 1, 31 is a keyboard interface (KB-IF), and 33 is a keyboard (KB). 35 is a display controller (display CNT), 37
is an indicator. The display 37 is, for example, a 1 line x 10 character liquid crystal display. The display pattern displayed on the display 37 is stored in a display dot memory 39.

41はプリンタインタフェース(PRT−IF)、43
はCP u 10の制御のもとで漢字等の印字を行なう
プリンタ(PRT)である。プリンタ43は例えば24
ドツトの印字ヘッドを有する熱転写プリンタである。4
5はカセットインタフェース(CMT−IF)、47は
文書等を保存するデータレコーダとして用いられるカセ
ット磁気テープ装置f (CMT)である。
41 is a printer interface (PRT-IF), 43
is a printer (PRT) that prints Chinese characters, etc. under the control of the CPU 10. For example, the printer 43 is 24
It is a thermal transfer printer with a dot print head. 4
5 is a cassette interface (CMT-IF), and 47 is a cassette magnetic tape device f (CMT) used as a data recorder for storing documents and the like.

第3図はRAM2G内に設けられる文書領域21と行修
飾領域22の構造を説明する図あり、文書情報(文字コ
ード列)と行修飾情報とが互いに行を単位に対応付けさ
れた状態で格納される。行修飾情報は、文字の白抜き(
並びに影付け)を指定する白抜きフラグ、文字の形態(
回転、斜体)を指定する3ビツトの回転・斜体情報、文
字サイズを指定する4ビツトの文字サイズ情報、印刷途
中での印刷停止を指定する印刷停止フラグ、文字量間隔
を指定する2ビツトの文字量間隔情報、および行ピッチ
(改行ピッチ)を指定する4ピツトの行ピツチ情報から
成る。
FIG. 3 is a diagram explaining the structure of the document area 21 and line modification area 22 provided in the RAM 2G. Document information (character code string) and line modification information are stored in a state in which they are associated with each other on a line-by-line basis. be done. Line modification information is indicated by white text (
outline flags that specify the character format (
3-bit rotation/italic information to specify (rotation, italic), 4-bit font size information to specify font size, print stop flag to specify to stop printing mid-print, 2-bit character to specify character spacing It consists of 4-pit line pitch information that specifies the amount interval information and the line pitch (line feed pitch).

上記した行修飾情報は、オペレータが表示器37の表示
画面を見ながらキーボード33をキー操作することによ
り対話形式で行単位に設定することができる。例えば文
字サイズ情報の設定は、キー操作により文字サイズ画面
を表示し、この画面上の番号1〜9(実際には1〜5と
6〜9の2画面)の1つをキー指定することにより行な
える。また文字量間隔情報の設定は、キー操作により文
字量間隔画面を表示し、この画面上の番号O〜3の1つ
をキー指定することにより行なわれる。同様に行ピツチ
情報の設定は、キー操作により行ピツチ画面を表示し、
この画面上の文字B、O,H,K。
The above-mentioned line modification information can be interactively set for each line by the operator operating keys on the keyboard 33 while looking at the display screen of the display 37. For example, to set font size information, display the font size screen by key operation, and specify one of the numbers 1 to 9 on this screen (actually two screens, 1 to 5 and 6 to 9) with a key. I can do it. The setting of the character spacing information is carried out by displaying a character spacing screen by key operation and specifying one of the numbers O to 3 on this screen using a key. Similarly, to set the line pitch information, display the line pitch screen by key operation,
The letters B, O, H, K on this screen.

E、1〜3の1つ(実際にはB、O,Hとに、E。E, one of 1 to 3 (actually B, O, H, E.

1〜3の2画面)をキー指定することにより行なわれる
This is done by specifying two screens (1 to 3) using a key.

なお、上記のキー指定が行なわれない場合(情報)につ
いては、予め定められた標準の設定値が適用される。こ
の標準設定値は、文字サイズであれば24(縦)X24
(横)ドツトを示す1であり、文字量間隔(この例では
標準文字サイズ、即ち全角文字サイズを基準とする文字
量間隔)であれば3ドツトを示す1であり、そして行ピ
ッチ(この例では全角文字サイズを基準とする行ピッチ
)であれば30/120インチ(3ビツト分が2/12
0インチであるこの例では45ドツト分)を示す1(こ
の値は画面上の表示文字であり、実際には“0100”
)である。
Note that if the above key designation is not performed (information), predetermined standard setting values are applied. This standard setting value is 24 (vertical) x 24 for the font size.
(horizontal) 1 indicates a dot, 1 indicates a 3-dot character spacing (in this example, the character spacing based on standard character size, i.e., full-width character size), and 1 indicates a line pitch (in this example Then, if the line pitch is based on the full-width character size, then it is 30/120 inch (3 bits is 2/12 inch).
1 (this value is a display character on the screen, and is actually “0100”) indicating 45 dots in this example (0 inches).
).

次にこの発明の一実施例の動作を説明する。Next, the operation of one embodiment of the present invention will be explained.

この実施例では、CP Ll 1uによる印刷制御は、
第4図のフローチャートに従って行なわれる。
In this embodiment, printing control by CP Ll 1u is as follows:
This is carried out according to the flowchart shown in FIG.

オペレータは入力文書くまたは編集文書)を印刷したい
場合には、キーボード33の[印刷]キー(実際には[
機能]キーと[¥]主キーを操作する。CP U 10
はキー人力があると[印刷]キー人力が行なわれたか否
かをチェックしくステップS1 >、Noであればその
他のキー人力処理(ステップ82)を行ない、YESで
あればステップS3を実行する。このステップS3では
、これから印刷しようとする文書行を示す印刷行ポイン
タに1および次の印刷サイクルで印刷対象となる文書行
のうちの先頭行を示す次期印刷開始行Nがそれぞれ1に
初期設定される。次期印刷開始行N、印刷行ポインタに
は、RAM20に確保されたレジスタ51、52に設定
される。
When the operator wants to print an input document or an edited document, the operator presses the [Print] key (actually, the [Print] key on the keyboard 33).
[Function] key and [\] primary key. CPU 10
If there is a key manual operation, it is checked whether or not the [Print] key manual operation was performed in step S1>. If No, other key manual processing (step 82) is performed, and if YES, step S3 is executed. In this step S3, the print line pointer indicating the document line to be printed from now on is initialized to 1, and the next print start line N indicating the first line of the document lines to be printed in the next print cycle is initialized to 1. Ru. The next print start line N and print line pointer are set in registers 51 and 52 secured in the RAM 20.

CP U 10はステップS3を実行すると印°刷メニ
ューを表示する(ステップ84)。この状態では、オペ
レータは左余白や縦/横印刷の指定が行なえる。この後
[選択]キーがキー操作され、その旨をCP U 10
が判断すると(ステップS5)、CPtJloはRAM
20内に確保された行修飾領域22の第N行の行修飾情
報を参照し、その印刷停止フラグをチェックする(ステ
ップ86)。そしてCPU10は、印刷停止フラグによ
り印刷停止が指定されているか否かを判断しくステップ
87)、Noであれば第N行に対応する文書領域21内
の文書行をチェックする(ステップS8)。そしてCP
 Ll 10は該当文書行に文字コードが無いかどうか
、即ち文書ENDであるか否かの判断を行ない(ステッ
プ89)。もし文書ENDでなければ、次期印刷開始行
として設定された第N行は、これから印刷しようとする
文書行の1つであって次の印刷サイクルでの印刷対象文
書行(の先頭行)でないことから、CP U 10はN
を+1して新たな次期印刷開始行へを設定する(ステッ
プ510)。ステップS10が実行されるとステップS
6に戻り、新たに設定された第N行について上記の処理
(印刷停止指定の有無判定、文書ENDの判定)が行な
われる。
After executing step S3, the CPU 10 displays a print menu (step 84). In this state, the operator can specify the left margin and vertical/horizontal printing. After this, the [Select] key is operated, and the CPU 10
(step S5), CPtJlo is RAM
The line modification information of the Nth row of the row modification area 22 secured in the row modification area 20 is referred to, and the printing stop flag is checked (step 86). Then, the CPU 10 determines whether printing stop is designated by the print stop flag (step 87), and if No, checks the document line in the document area 21 corresponding to the Nth line (step S8). And C.P.
Ll 10 determines whether there is no character code in the document line, that is, whether the document is END (step 89). If it is not document END, the Nth line set as the next print start line is one of the document lines to be printed from now on and is not (the first line of) the document line to be printed in the next print cycle. , CPU 10 is N
is incremented by 1 and a new next print start line is set (step 510). When step S10 is executed, step S
Returning to step 6, the above processing (determination of presence or absence of print stop designation, determination of document END) is performed for the newly set Nth line.

さてCP LJ 10は、ステップS7で第N行の印刷
停止が指定されているものと判定すると、或はステップ
S9で文書ENDを判定すると、N−1の演算を行ない
、今回の印刷サイクルでの印刷対象文書行数(印刷結果
としての行数でないことに注意)を示す印刷行数Mを求
める(ステップ511)。
Now, if the CP LJ 10 determines in step S7 that printing stop of the Nth line is specified, or if it determines that the document END is determined in step S9, it performs the calculation of N-1 and determines the print stop for the current print cycle. The number of print lines M indicating the number of lines of the document to be printed (note that this is not the number of lines as a print result) is determined (step 511).

この印刷行数MはRAM20内に確保されたレジスタ5
3に設定される。次にCP U 10はMが0であるか
否かの判定を行ない(ステップ812)、M−0であれ
ば(印刷行が無いことから)CPUIOは印刷制御を終
了する。これに対してM=Oでなければ、CP U 1
0は印刷準備のために、まず印刷行ポインタにの示す第
に行の行修飾情報を行修飾領域22から取出す(ステッ
プ513)。次にCP U 10は、実際の改行ITを
求めるためにステップ814を実行する。
This number of print lines M is determined by the register 5 secured in the RAM 20.
Set to 3. Next, the CPU 10 determines whether M is 0 or not (step 812), and if M is 0 (because there is no print line), the CPU IO ends print control. On the other hand, if M=O, CPU 1
In order to prepare for printing, 0 first takes out the line modification information of the first line indicated by the print line pointer from the line modification area 22 (step 513). CPU 10 then executes step 814 to determine the actual line feed IT.

ステップ814では、まず行修飾情報中の文字サイズ情
報をもとに、同情報の指定するサイズの文字の縦ドツト
数m、横ドツト数m′が例えばROM12内に用意され
た文字サイズテーブル(図示せず)から求められ、24
X24ドツトの全角文字を基準とする倍率(縦倍率m/
24.横倍率m−/24)が求められる。同様に行修飾
情報中の行ピツチ情報をもとに、同情報の指定する全角
文字を基準とする改行! (n/120.単位;インチ
)が例えばROM12内に用意された改行量テーブル(
図示せず)から求められる。そして改行量n/120に
縦倍率m/24を掛けることにより、指定された文字サ
イズ(文字倍率)の文字の文字列に対する実際の改行I
Tが求められ、RAM20内に確保されたレジスタ54
に設定される。この際、成る比例定数kを更に掛けて改
行量Tを求めるようにしてもよい。
In step 814, first, based on the character size information in the line modification information, the number m of vertical dots and the number m' of horizontal dots of a character of the size specified by the information are determined, for example, from a character size table prepared in the ROM 12 (Fig. (not shown), 24
Magnification based on double-width characters of x24 dots (vertical magnification m/
24. The lateral magnification m-/24) is determined. Similarly, based on the line pitch information in the line modification information, line breaks based on the full-width character specified by the same information! (n/120. unit; inch) is, for example, a line feed amount table prepared in the ROM12 (
(not shown). Then, by multiplying the line feed amount n/120 by the vertical magnification m/24, the actual line feed I for the character string of the specified character size (character magnification)
T is determined and the register 54 is secured in the RAM 20.
is set to At this time, the line feed amount T may be determined by further multiplying by a proportionality constant k.

なお、行ピツチ情報の示す改行量をn/120の形式で
表現するのは、この実施例におけるプリンタ43の紙送
りの単位が1/120 (インチ)であることによる。
Note that the reason why the line feed amount indicated by the line pitch information is expressed in the format n/120 is because the paper feeding unit of the printer 43 in this embodiment is 1/120 (inch).

したがってn/120はn単位分の紙送りを示す。同様
に、改行量Tである(m・n/24)/120は、指定
倍率に比例した(m−n/24)単位分の改行紙送りを
示す。但しn/120.(m−n/24)/120は整
数でないため、実際にはn/120のうちのnの部分、
(m−n/24)/120のうちの(m−n/24)の
部分だけがROM12内テーブル、RAM20内レジス
タ54に記憶されるようになっている。
Therefore, n/120 indicates paper feed by n units. Similarly, the line feed amount T (m·n/24)/120 indicates line feed paper feeding by (m−n/24) units proportional to the specified magnification. However, n/120. (m-n/24)/120 is not an integer, so actually the n part of n/120,
Only the (m-n/24) portion of (m-n/24)/120 is stored in the table in the ROM 12 and the register 54 in the RAM 20.

この実施例におlI)で、nは、第3図からも明らかな
ように改行方向を示す正/負符号を有している。
In this embodiment, n has a plus/minus sign indicating the line feed direction, as is clear from FIG.

なお上記のm、m=、nを、テーブルに代えて印刷制御
用のプログラム中に予め設定しておくことも可能である
Note that the above m, m=, and n can be set in advance in the print control program instead of in the table.

さて、プリンタ43の印字ヘッドのドツト数は全角文字
の縦ドツト数に一致する24ドツトである。
Now, the number of dots in the print head of the printer 43 is 24 dots, which corresponds to the number of vertical dots in a full-width character.

このため拡大文字等、縦ドツト数が24ドツトを越える
文字の文字列は、1ライン分の印字ヘッド駆動操作で印
刷するこができず、何回かに分けて印刷する必要がある
。そこでこの実施例では、縦24ドツトを1スライスと
した場合の印刷対象文字(の文字パターン)のスライス
数Sを求めるようにしている(ステップ515)。この
スライス数Sは、指定された文字倍率、更には文・字形
前をもとに求められるものであるが、ここでは簡単のた
めに倍率m/24から求められるものとする。但し、m
/24が整数とならない場合には、その値より大きく且
つその値に最も近い整数が採用される。例えばm−32
(サイズ2指定)の場合であれば、S=2が採用される
。ステップ815で求められたスライス数Sは、RA 
M 20内に確保されたレジスタ55に設定される。C
P U 10はステップS15を終了すると、1ライン
分の印字ヘッド駆動操作での印刷対象スライスを示すス
ライス番号ポインタLを0に初期設定する。L−0は先
頭スライスを示す。
For this reason, character strings such as enlarged characters having more than 24 vertical dots cannot be printed by driving the print head for one line, and must be printed in several batches. Therefore, in this embodiment, the number S of slices of the character (character pattern) to be printed is determined, assuming that 24 vertical dots are one slice (step 515). This number of slices S is determined based on the specified character magnification and furthermore on the front of the character/character shape, but here, for the sake of simplicity, it is assumed that it is determined from the magnification m/24. However, m
If /24 is not an integer, the integer larger than and closest to that value is used. For example m-32
In the case of (size 2 designation), S=2 is adopted. The number of slices S obtained in step 815 is RA
It is set in register 55 reserved in M20. C
When the P U 10 completes step S15, it initializes the slice number pointer L indicating the slice to be printed in the print head driving operation for one line to 0. L-0 indicates the first slice.

次にCP U 10は第に行の行修飾情報中の文字量間
隔情報をもとに、同情報の指定する全角文字を基準とす
る文字量間隔(n−ドツト)を例えばROM12内に用
意された文字量間隔テーブル(図示せず)から求め、n
′に横倍率m′/24を掛けることにより倍率に比例し
た実際の文字量間隔U(単位;ドツト)を求める(ステ
ップ517)。この文字量間隔UはRA M 20内に
確保されたレジスタ61に設定される。
Next, the CPU 10 first prepares, for example, in the ROM 12, character spacing (n-dots) based on the full-width character specified by the same information, based on the character spacing information in the line modification information of the first line. n
By multiplying ' by the horizontal magnification m'/24, the actual character spacing U (unit: dots) proportional to the magnification is determined (step 517). This character amount interval U is set in a register 61 secured within the RAM 20.

CPU10は、ステップ817を実行すると、印刷行ポ
インタにの示す(文書領域21内の)第に行の文字列の
文字数を第に行の印刷文字数■としてRAM20内のレ
ジスタ57に設定する (ステップ818)。そしてc
 p u ioは、第に行の文字列から次に取出すべき
文字の文字位置(文字桁)を指定する第に行内文字ポイ
ンタPを1(先頭文字桁)に初期設定する(ステップ5
19)。この文字ポインタPは、RA M 20内のレ
ジスタ58に設定される。
When the CPU 10 executes step 817, the CPU 10 sets the number of characters of the character string in the first line (in the document area 21) indicated by the print line pointer as the number of print characters in the second line in the register 57 in the RAM 20 (step 818 ). and c
p u io first initializes the in-line character pointer P to 1 (first character digit), which specifies the character position (character digit) of the next character to be extracted from the character string in the th line (step 5).
19). This character pointer P is set in register 58 within RAM 20.

次にCP U 10は、印刷行ポインタにおよび文字ポ
インタP(P−1)の指定する文字(第に行第P列)の
スライスL (L−0)の文字パターンをRAM20内
の印刷イメージ領域26に書込むために、左余白を考慮
して印刷イメージ領域26内書込み開始アドレスQを求
める(ステップ520)。この書込み開始アドレスQ(
印刷イメージ領域2G内相対番地)は、もしdドツト分
の左余白が必要な場合であれば、次に述べる印刷イメー
ジ領域26の構成から理解されるように3dとなる。書
込み開始アドレスQはRAM20内のレジスタ59に設
定される。
Next, the CPU 10 transfers the character pattern of the slice L (L-0) of the character (first row, Pth column) specified by the print line pointer and the character pointer P (P-1) to the print image area in the RAM 20. In order to write to the print image area 26, a write start address Q within the print image area 26 is determined taking into account the left margin (step 520). This write start address Q (
If a left margin for d dots is required, the relative address within the print image area 2G will be 3d, as understood from the configuration of the print image area 26 described below. The write start address Q is set in the register 59 in the RAM 20.

第5図は印刷イメージ領域26の構成を1ライン分の印
字ヘッド駆動操作での印刷領域(1スライス印刷領域)
に対応して模式的に示す。図から明らかなように、印刷
イメージ領域26のO〜3番地(印刷イメージ領域26
内相対番地)は、1スライス分の印刷領域の第0番目の
ドツト列(24ドツト)を8ドツト(1バイト)単位で
3分割した各領域と対応している。一般に、印刷イメー
ジ領域26の3n、3n+1.3n+2番地(印刷イメ
ージ領域26内相対番地)は、1スライス分の印刷領域
の第n番目のドツト列(24ドツト)を8ドツト(1バ
イト)単位で3分割した各領域と対応している。したが
って、もしdドツト分の左余白が必要な場合には、書込
み開始アドレスQは上記の如<3dとなる。
FIG. 5 shows the configuration of the print image area 26 when the print head is driven for one line (one slice print area).
This is shown schematically. As is clear from the figure, addresses O to 3 of the print image area 26 (print image area 26
The inner relative address) corresponds to each area obtained by dividing the 0th dot row (24 dots) of the print area for one slice into three parts in units of 8 dots (1 byte). In general, addresses 3n and 3n+1.3n+2 (relative addresses within the print image area 26) of the print image area 26 correspond to the nth dot row (24 dots) of the print area for one slice in units of 8 dots (1 byte). It corresponds to each area divided into three. Therefore, if a left margin of d dots is required, the write start address Q will be <3d as described above.

CP Ll 10はステップ820を実行すると第に行
第P列の文字のスライスLの文字パターンの印刷イメー
ジ領域26内書込み終了アドレスRを求める(ステップ
521)。この書込み終了アドレスRは、スライスLの
文字パターンの最終ドツト列の先頭の8ピツト対応する
もので、横ドツト数がm−のこの例では、書込み開始ア
ドレスQに3(m′−1)を加えることにより求められ
る。書込み終了アドレスRはRAM20内のレジスタ6
0に設定される。
When the CP Ll 10 executes step 820, it first obtains the write end address R in the print image area 26 of the character pattern of the slice L of the character in the Pth column in the 1st row (Step 521). This write end address R corresponds to the first 8 pits of the final dot row of the character pattern of slice L. In this example where the number of horizontal dots is m-, the write start address Q is set to 3 (m'-1). It is found by adding. Write end address R is register 6 in RAM20
Set to 0.

CP Ll 10は書込み終了アドレスRを求めると同
アドレスRと書込み最終アドレスLEとの大小を比較し
、RがLEより大きいか否かを判定する(ステップ52
2)。この書込み最終アドレスLEは、例えば第5図に
示すように、1スライス印刷領域のRHドツト列(即ち
印刷境界)の先頭の8ドツトを示すものである。したが
ってステップS22より、第に行第P列の文字のスライ
スLの文字パターンの一部が印刷境界を越えてしまうか
否かを予め判定することができる。
When the CP Ll 10 determines the write end address R, it compares the same address R with the write end address LE, and determines whether R is larger than LE (step 52
2). This final write address LE indicates the first eight dots of the RH dot row (ie, print boundary) of one slice print area, as shown in FIG. 5, for example. Therefore, from step S22, it can be determined in advance whether a part of the character pattern of the slice L of the character in the P-th row and the P-th column exceeds the printing boundary.

上記のステップ822の意義について、第6図および第
7図(a)、(b)を参照して具体的に説明する。今、
第に行第P列の文字の文字パターンが、該当行修飾情報
中の行ピツチ情報の指定(サイズ5)により、第6図に
示すように48X48のドツト構成の拡大文字パターン
であるものとする。ここで、第6図の拡大文字パターン
の例えばスライスOの文字パターンを印刷イメージ領域
26に書込んだ場合を考える。もしスライスOの文字パ
ターン(スライス1の文字パターンでも同様)に関する
書込み終了アドレスRが書込み最終アドレスLEより大
きくなければ、同パターンの印刷イメージ領域26内記
憶状態は第7図(a)に示す通りとなり、印刷イメージ
領域26の内容を印刷した場合に上記のパターンが印刷
境界を越えることはない。これに対してスライスOの文
字パターン(スライス1の文字パターンでも同様)に関
する書込み終了アドレスRが書込み最終アドレスLEよ
り大きければ、同パターンの印刷イメージ領域26内記
憶状態は第7図(b)に示す通りとなり、印刷イメージ
領域26の内容を印刷した場合には上記のパターンの一
部が印刷境界を越えることから文字パターンの一部が欠
けてしまう。即ちステップ822は、拡大文字パターン
を無条件で印刷イメージ領域26に書込んだ場合に、そ
のパターンが欠けることなく印刷されるか否かを予め判
定するものである。なお、書−込み最終アドレスLEは
上記のように装置に固定の印刷境界に限らず、例えば右
余白などオペレータにより指定される印刷範囲に対応す
るものであってもよい。この場合ステツブ822は、拡
大文字パターンを無条件で印刷イメージ領域26に書込
んだ場合に、そのパターンが印刷範囲を越えることなく
印刷されるか否かを予め判定することになる。
The significance of step 822 above will be specifically explained with reference to FIG. 6 and FIGS. 7(a) and 7(b). now,
Assume that the character pattern of the character in the Pth row and the Pth column is an enlarged character pattern with a 48x48 dot configuration as shown in Figure 6, due to the specification of the line pitch information (size 5) in the corresponding row modification information. . Now, consider a case where, for example, a character pattern of slice O in the enlarged character pattern shown in FIG. 6 is written in the print image area 26. If the write end address R for the character pattern of slice O (the same applies to the character pattern of slice 1) is not greater than the end write address LE, the storage state of the pattern in the print image area 26 will be as shown in FIG. 7(a). Therefore, when the contents of the print image area 26 are printed, the above pattern will not exceed the print boundary. On the other hand, if the writing end address R for the character pattern of slice O (the same applies to the character pattern of slice 1) is larger than the writing end address LE, the storage state of the pattern in the print image area 26 is as shown in FIG. 7(b). As shown, when the contents of the print image area 26 are printed, part of the character pattern is missing because part of the pattern exceeds the print boundary. That is, in step 822, it is determined in advance whether or not the pattern will be printed without being missing if the enlarged character pattern is unconditionally written in the print image area 26. Note that the final write address LE is not limited to the print boundary fixed to the apparatus as described above, but may correspond to a print range specified by the operator, such as the right margin, for example. In this case, the step 822 determines in advance whether or not the enlarged character pattern will be printed without exceeding the print range when the enlarged character pattern is unconditionally written in the print image area 26.

CP Uloは、ステップ822の判定がNoの場合、
印刷行ポインタにおよび文字ポインタPの指定する第に
行第P列の文字(文字コード)を文書領域21から取出
しくステップ523)、同文字コードが(パターン書込
みが不要な)改行コードであるか否かを判定する(ステ
ップ524)。もし改行コードでなければ、パターン書
込みが必要であることから、文字ポインタPを+1して
次の文字位置に進めた後に(ステップ525)、ステッ
プ323で取出した文字コードに対応する文字パターン
をROM12内の文字パターン領域16か′ら取出す(
ステップ526)。文字パターン領域16内に記憶され
ている文字パターンは、24X24ドツト(72バイト
)構成の全角文字パターンである。文字パターン領域1
6から取出された文字パターンは、RAM20内の所定
の1文字記憶領域(図示せず)に一時格納される。
If the determination in step 822 is No, CP Ulo
Step 523) of extracting the character (character code) in the Pth column of the first row specified by the print line pointer and the character pointer P from the document area 21, determines whether the character code is a line feed code (no pattern writing is required). It is determined whether or not (step 524). If it is not a line feed code, it is necessary to write a pattern, so after incrementing the character pointer P by 1 and advancing to the next character position (step 525), write the character pattern corresponding to the character code extracted in step 323 into the ROM 12. Extract from character pattern area 16' in (
step 526). The character pattern stored in the character pattern area 16 is a full-width character pattern composed of 24×24 dots (72 bytes). Character pattern area 1
The character pattern extracted from 6 is temporarily stored in a predetermined one-character storage area (not shown) in the RAM 20.

CP U 10はステップ826を実行すると、第に行
の行修飾情報により文字サイズ、或は文字形態の変更が
要求されているか否か、即ち文字パターンの変換が必要
か否かを判定する(ステップ527)。
When the CPU 10 executes step 826, it first determines whether or not a change in character size or character form is requested based on the line modification information of the line, that is, whether or not conversion of the character pattern is required (step 527).

もしパターン変換が必要であれば、c p u ioは
1文字記憶領域内の文字パターン(即ち原文字パターン
)を指定されたサイズ、或は形態の文字パターンに逐次
変換しくステップ528)、パターン変換が必要なけれ
ばステップ828をスキップし、しかる後にスライス番
号ポインタLの示すスライス番号(即ちスライスし)の
文字パターン(もしステップ828をスキップした場合
には、全角文字であることから1文字記憶領域内の文字
パターンとなる)を、書込み開始アドレスQの示す印刷
イメージ領域26内相対番地から始まる領域に順に書込
む(ステップ529)。
If pattern conversion is necessary, CPU io sequentially converts the character pattern in the one character storage area (i.e. original character pattern) into a character pattern of a specified size or form (step 528), and performs pattern conversion. If step 828 is not necessary, skip step 828, and then, if step 828 is skipped, the character pattern of the slice number (that is, sliced) indicated by slice number pointer L (if step 828 is skipped, because it is a full-width character, one character within the storage area) ) are sequentially written in the area starting from the relative address in the print image area 26 indicated by the write start address Q (step 529).

CP LJ 10はステップ829を実行すると、書込
み終了アドレスRに文字量間隔U(ドツト)の3倍値を
加えることにより、書込み開始アドレスQが次の1文字
(の1スライス分)の書込み開始アドレスを示すように
同アドレスQを更新する(ステップ530)。これによ
りUドツトの文字量間隔が実現される。文字量間隔りは
、前記したようにステップ817で求められるもので、
文字サイズ情報で指定される全角文字を基準とする文字
量間隔ではなく、この指定文字量間隔に(文字サイズ情
報で指定される)倍率(横倍率)を掛けて得られる、即
ち倍率に比例した実際の文字量間隔である。したがって
、この実施例では、全角文字のイメージで文字量間隔を
指定しながら、実際の文字サイズに適合した文字量間隔
が自動的に実現される。
When the CP LJ 10 executes step 829, the write start address Q becomes the write start address of the next character (for one slice) by adding three times the character interval U (dot) to the write end address R. The same address Q is updated to indicate (step 530). This achieves the character spacing of U dots. The character spacing is determined in step 817 as described above,
The character spacing is not based on the full-width characters specified in the font size information, but is obtained by multiplying this specified character spacing by the magnification (horizontal magnification) (specified in the font size information), that is, it is proportional to the magnification. This is the actual character spacing. Therefore, in this embodiment, while specifying the character spacing based on the image of full-width characters, the character spacing that matches the actual character size is automatically realized.

CP U 10はステップ330を実行すると、印刷文
字数Vを−1しくステップ531)、■が0となったか
否かの判定を行なう(ステップ532)。もし■がOで
なければ、c p u ioは第に行に未処理文字が残
されているものとしてステップ321に戻る。
After executing step 330, the CPU 10 increments the number of printed characters V by 1 (step 531), and determines whether ■ has become 0 (step 532). If ■ is not O, CPU IO returns to step 321 assuming that an unprocessed character remains in the first line.

これに対して■=Oであれば、cpuioは第に行の文
字が全て取出され対応する文字パターン(スライスLの
文字パターン)が印刷イメージ領域26に書込まれたも
のとして、ステップ333から始まる第に行の印刷のた
めのプリンタ43制御を中心とする処理へ進む。このス
テップ833から始まる処理は、たとえ■−〇でなくて
も、ステップ822の判定がYESの場合(即ち書込み
終了アドレスRが書込み最終アドレスLEより大きい場
合)、或はステップS24の判定がYES場合(即ち文
書領域21から取出した文字コードが改行コードの場合
)にも、即ち該当する第に行第P列の文字の印刷を禁止
或は不要とする場合にも実行される。
On the other hand, if ■=O, cpuio assumes that all the characters in the first line have been extracted and the corresponding character pattern (the character pattern of slice L) has been written in the print image area 26, and starts from step 333. First, the process moves on to control the printer 43 for printing the first line. The process starting from step 833 is performed even if the determination in step S24 is YES, even if it is not ■-〇, if the determination in step 822 is YES (that is, if the write end address R is greater than the final write address LE), or if the determination in step S24 is YES. This is executed both when the character code extracted from the document area 21 is a line feed code, and when printing of the corresponding character in the Pth column of the corresponding row is prohibited or unnecessary.

CPU10は、まず文字ポインタPが1を示しているか
否か、即ちPを+1するステップ825が1回も実行さ
れていないか否かの判定を行なう(ステップ533)。
The CPU 10 first determines whether the character pointer P indicates 1, that is, whether step 825 of incrementing P by 1 has not been executed even once (step 533).

もしP−1でない場合には、CPU10は第に行の先頭
文字が改行コードでない(即ち完全改行でない)ものと
判断し、即ち印刷すべき文字パターンが印刷イメージ領
域26に書き込まれているもの判断し、プリンタ43を
制御して印刷イメージ領域26の内容を印刷させる(ス
テップ534)。次にCP U 10は印刷イメージ領
域26をクリアしくステップ835)、L、かる後スラ
イス数Sを−1する(ステップ836)。そしてc p
 u ioはスライス数SがOであるか否か、即ち第に
行の文字列の印刷が終了したか否かを判定する(ステッ
プ537)。
If it is not P-1, the CPU 10 first determines that the first character of the line is not a line feed code (that is, not a complete line feed), that is, determines that the character pattern to be printed has been written in the print image area 26. Then, the printer 43 is controlled to print the contents of the print image area 26 (step 534). Next, the CPU 10 clears the print image area 26 (step 835), L, and then subtracts the number of slices S by 1 (step 836). and c p
uio determines whether the number of slices S is O, that is, whether printing of the character string in the first row has been completed (step 537).

ステップS37の判定がNOの場合、CP U 10は
第に行の印刷が終了していないものと判断して、まずス
ライス番号ポインタLを+1し、次の印刷対象となるス
ライスのスライス番号を指定する(ステップ$38)。
If the determination in step S37 is NO, the CPU 10 determines that the printing of the first line has not been completed, and first increments the slice number pointer L by 1 and specifies the slice number of the next slice to be printed. (Step $38).

そしてCP U 10は、プリンタ43を制御して、次
のスライスがステップ834で印刷されたスライスに繋
がるように(即ちスライス間が○となるように)、印刷
用紙を印字ヘッド分(全角文字の縦ドツト分)だけ順方
向に紙送りさせる(ステップ539)。前記したように
プリンタ43の紙送りの単位は1/120(インチ)、
印字ヘッドのドツト構成は24ドツト、そしてその3ド
ツト分は2/120インチである。したがってCP U
 10は、ステップ839において、16/120(イ
ンチ)の順方向紙送りをプリンタ43に対して行なわせ
ることになる。CP U 10は、ステップ839を実
行すると、ステップ818に戻り、前回と同じ第に行の
文字列について次のスライスの印刷のための処理を行な
う。
Then, the CPU 10 controls the printer 43 to spread the printing paper as many times as the print head (full-width characters The paper is fed in the forward direction by the length of the vertical dot (step 539). As mentioned above, the paper feed unit of the printer 43 is 1/120 (inch).
The dot configuration of the print head is 24 dots, and 3 dots are 2/120 inch. Therefore, CPU
10 causes the printer 43 to perform a forward paper feed of 16/120 (inches) in step 839. After executing step 839, the CPU 10 returns to step 818 and performs processing for printing the next slice for the same character string in the first line as the previous time.

一方ステップ837の判定がYESの場合、即ち第に行
の文字列の印刷が終了してスライス数SがOとなった場
合、c p u ioは改行ITの示す改行を実現する
ために、しに16/120を掛けた値(即ち第に行の文
字列の印刷に要した紙送り量)をT即ち(m−n/24
)/120から減じ、その結果を改めて改行量Tとする
(ステップ$40)。
On the other hand, if the determination in step 837 is YES, that is, if the printing of the character string in the first line is completed and the number of slices S becomes O, cpu io performs the following steps to realize the line feed indicated by line feed IT. The value obtained by multiplying
)/120, and the result is set as the newline amount T (step $40).

この新たに求められた改行最下の絶対値は、第に行印刷
終了後に行なうべき改行紙送りのための紙送りl(イン
チ)を示し、同じく符号(正/負符号)はその紙送り方
向を示す。明らかなように、第に行が全角文字指定(サ
イズ1)の場合には、LはOのままである(即ちステッ
プ339の印刷用紙送りが実行されない)ことから、新
たに求められたTはステップS14で求められたTに一
致する。
This newly obtained absolute value of the bottom of the line feed indicates the paper feed l (inch) for the line feed paper that should be carried out after printing the first line, and the sign (plus/minus sign) is the paper feed direction. shows. As is clear, when the second line is full-width characters (size 1), L remains O (that is, the printing paper feed in step 339 is not executed), so the newly determined T is This matches T determined in S14.

c p u toはステップS40を実行すると、或は
ステップ833でYES (P=1 )を判定すると、
紙送り方向を決定するために改行ITが0以上であるか
否かく即ち順方向の紙送りであるか否か〉の判定を行な
う(ステップ541)。なお、ステップ833の判定が
YESの場合にステップ834の印刷実行等をスキップ
するのは、第に行の先頭文字が改行コードであり、完全
改行となるためである。
c p u to executes step S40, or determines YES (P=1) in step 833,
In order to determine the paper feed direction, it is determined whether the line feed IT is greater than or equal to 0, that is, whether the paper is being fed in the forward direction (step 541). Note that when the determination in step 833 is YES, the printing execution in step 834 is skipped because the first character of the line is a line feed code and becomes a complete line feed.

c p u ioは、T2CであればTインチの順方向
紙送りをプリンタ43に対して行なわせ(ステップ54
2)、T<OであればTの絶対値分の逆方向紙送りをプ
リンタ43に対して行なわせる(ステップ543)。こ
れにより、実際の改行ピッチが、同改行ピッチと第に行
の印刷文字の文字サイズ(縦ドツト数)との比を、行ピ
ツチ情報の指定する全角文字を基準とする行ピッチ(改
行ピッチ)と全角文字の縦ドツト数との比と一致させる
如く実現される。即ち、この実施例では、全角文字を基
準とする行ピッチ(改行ピッチ)を指定しながら、文字
サイズ情報で指定されたサイズの文字に比例した行ピッ
チを実現できる。なお、ステップ333の判定がYES
の場合(即ち完全改行の場合)には、印刷を実行しない
ことから、ステップ814で求められたTがそのまま用
いられる。
c p u io causes the printer 43 to forward paper feed by T inches if it is T2C (step 54
2) If T<O, the printer 43 is caused to feed the paper in the reverse direction by the absolute value of T (step 543). As a result, the actual line feed pitch is determined by the ratio of the line feed pitch and the character size (number of vertical dots) of the printed characters on the second line to the line pitch (line feed pitch) based on the full-width character specified by the line pitch information. This is realized so as to match the ratio between the number of vertical dots and the number of vertical dots of a full-width character. That is, in this embodiment, while specifying the line pitch (line feed pitch) based on full-width characters, it is possible to realize a line pitch proportional to the size of characters specified by the character size information. Note that the determination in step 333 is YES.
In this case (that is, in the case of a complete line break), since printing is not executed, T obtained in step 814 is used as is.

さて、この実施例では、行ピツチ情報として、B、O,
H,に、E、1〜4の9種が用意されている(第3図参
照)。
Now, in this embodiment, the line pitch information is B, O,
Nine types are available: H, E, 1 to 4 (see Figure 3).

改行B(逆改行、バック改行)は、全角文字を基準とし
た場合に8/120 (インチ)だけ逆方向に改行する
ことを指定する。この場合、第に行の文字列印刷後の紙
送り量は、−8/120 (インチ)に縦倍率を掛けて
得られる指定文字サイズの文字列に対する行ピッチ(マ
イナス値)から、同文字列を印刷するのに必要な紙送り
量(同文字列の印刷のために実施された紙送りの総組送
り量)を減じた値の絶対値となり、その紙送り方向は減
算結果が負となることから逆方向となる。したがって改
行Bが指定されている場合、文字サイズ情報で指定され
た文字サイズの1/2文字分だけの逆方向改行が実現さ
れる。
Line feed B (reverse line feed, back line feed) specifies a line feed in the opposite direction by 8/120 (inch) based on full-width characters. In this case, the paper feed amount after printing the character string in the first line is calculated from the line pitch (minus value) for the character string of the specified character size, which is obtained by multiplying -8/120 (inches) by the vertical magnification. It is the absolute value of the value obtained by subtracting the paper feed amount required to print (the total set feed amount of paper feeds performed to print the same character string), and the subtraction result is negative in the paper feed direction. Therefore, it is in the opposite direction. Therefore, when line feed B is specified, a reverse line feed of 1/2 character of the character size specified by the character size information is realized.

改行0(行ピッチO)は、改行10を指定する。Line feed 0 (line pitch O) specifies line feed 10.

この場合筒に行の文字列印刷後の紙送り信は、同文字列
を印刷するのに必要な紙送り量(同文字列の印刷のため
に実施された紙送りの総紙送り量)の絶対値に一致し、
紙送り方向は逆方向となる。
In this case, the paper feed after printing a row of character strings on the cylinder is equal to the paper feed amount required to print the same character string (the total paper feed amount of the paper feeds performed to print the same character string). corresponds to the absolute value,
The paper feed direction is the opposite direction.

したがって改行0が指定されている場合、文字サイズ情
報で指定された文字サイズに無関係に行ピッチO(O改
行)が実現される。なお縦ドツト数が24の場合には、
印刷時の総紙送り邑がOとなることから、印刷後の紙送
り量も0となる。
Therefore, when line feed 0 is specified, line pitch O (O line feed) is realized regardless of the character size specified by the character size information. In addition, when the number of vertical dots is 24,
Since the total paper feed amount during printing is O, the paper feed amount after printing is also 0.

改行H(半改行、ハーフ改行)は全角文字を基準とした
場合に8/120 (インチ)だけ順方向に改行するこ
とを指定する。この場合、第に行の文字列印刷後の紙送
り口は、+8/120 (インチ)に縦倍率を掛けて得
られる指定文字サイズの文字列に対する行ピッチから、
同文字列を印刷するのに必要な紙送り」(同文字列の印
刷のために実施された紙送りの総紙送り最)を減じた値
の絶対値となり、その紙送り方向は減算結果の符号(正
/負)の示す方向となる。したがって改行Hが指定され
ている場合、文字サイズ情報で指定された文字サイズの
1/2文字分だけの順方向改行(半改行)が実現される
Line feed H (half line feed, half line feed) specifies that a line feed is to be made in the forward direction by 8/120 (inch) when using full-width characters as the standard. In this case, the paper feed opening after printing the character string in the first line is determined from the line pitch for the character string of the specified character size obtained by multiplying +8/120 (inches) by the vertical magnification.
The absolute value of the value obtained by subtracting the paper feed required to print the same character string (the maximum paper feed of the total paper feed performed to print the same character string), and the paper feed direction is the result of the subtraction. The direction is indicated by the sign (positive/negative). Therefore, when a line feed H is specified, a forward line feed (half line feed) of 1/2 characters of the character size specified by the character size information is realized.

改行K(罫線改行、1文字分改行)は全角文字を基準と
した場合に16/120 (インチ)だけ順方向に改行
することを指定する。この場合、第に行の文字列印刷後
の紙送り量は、+16/120(インチ)に縦倍率を掛
けて得られる指定文字サイズの文字列に対する行ピッチ
から、同文字列を印刷するのに必要な紙送り量(同文字
列の印刷のために実施された紙送りの総紙送り量)を減
じた値、即ち16/120(インチ)となり、その紙送
り方向は減算結果が正となることから順方向となる。こ
の際の具体的な紙送り量は、縦倍率が整数の場合には倍
率1の文字サイズ分、即ち16/120(インチ)とな
り、固定量となる。一方、縦倍率が整数でない場合、上
記順方向紙送り虫は縦倍率の小数部の示す倍率の文字サ
イズ分となる。
Line feed K (ruled line feed, line feed by one character) specifies that the line is broken in the forward direction by 16/120 (inches) based on full-width characters. In this case, the paper feed amount after printing the character string in the first line is determined from the line pitch for the character string of the specified character size, which is obtained by multiplying +16/120 (inches) by the vertical magnification. The value obtained by subtracting the required paper feed amount (total paper feed amount of paper feeds performed to print the same character string), that is, 16/120 (inches), and the subtraction result is positive in the paper feed direction. Therefore, the direction is forward. In this case, the specific paper feed amount is the character size of the magnification 1, that is, 16/120 (inches) when the vertical magnification is an integer, and is a fixed amount. On the other hand, if the vertical magnification is not an integer, the forward paper feed is equal to the character size of the magnification indicated by the decimal part of the vertical magnification.

したがって改行Kが指定されている場合、文字サイズ情
報で指定された文字サイズの文字力だけの改行、即ち行
間間隔をOとする改行が実現される。
Therefore, when a line feed K is specified, a line feed with only the character strength of the font size specified by the character size information, that is, a line feed with a line spacing of O is realized.

この改行には、上記のように行間間隔をOとすることが
できることから、即ち第1の文字サイズの第1の文字列
と同文字列に続く第2の文字サイズの第2の文字列とを
隙間なく繋ぐことができることから、例えば拡大された
罫線(特に縦罫線)を作成する場合に好適する。なお、
横罫線を作成する場合には、文字量間隔をOとすればよ
い。
Since this line break can have a line spacing of O as described above, that is, the first character string of the first character size and the second character string of the second character size that follows the same character string. Since it is possible to connect lines without gaps, it is suitable for creating enlarged ruled lines (particularly vertical ruled lines), for example. In addition,
When creating horizontal ruled lines, the character spacing may be set to O.

また改行E(英文改行)は全角文字を基準とした場合に
20/120 (インチ)だけ順方向に改行することを
指定し、改行1.2.3.4は、全角文字を基準とした
場合に30/120.40/120.45/120.6
0/120 (インチ)の順方向紙送りを指定する。
Also, line feed E (English line feed) specifies a line break in the forward direction by 20/120 (inches) based on full-width characters, and line feed 1.2.3.4 specifies line feed in the forward direction by 20/120 (inches) when based on full-width characters. 30/120.40/120.45/120.6
Specifies forward paper feed of 0/120 (inch).

以上の具体例を示したものが第8図乃至第10図である
The above specific examples are shown in FIGS. 8 to 10.

第8図は、各文書文字列に対し、文字量間隔および行ピ
ッチ(改行量)については同一値を指定し、文字サイズ
については異なる値を指定した場合の文書印刷例を、文
書領[21および行修飾領域22の内容(一部)に対応
して示したものである。
Figure 8 shows an example of printing a document when the same values are specified for character spacing and line pitch (line feed amount) for each document character string, and different values are specified for character size. and a portion of the contents of the line modification area 22.

第8図において、文字サイズ1.2.3の文字列の改行
ピッチLl 、L2 、L3は、いずれも同一の改行量
(改行1)が指定されていても、文字サイズ(縦倍率)
に比例した値となる。同様に文字サイズ1.2.3の文
字列の文字量間隔P1.P2、P3は、いずれも同一の
文字間2(6ドツト)が指定されていても、文字サイズ
(横倍率)に比例した値となる。
In Fig. 8, the line break pitches Ll, L2, and L3 of a character string with a character size of 1.2.3 are different from the character size (vertical magnification) even though the same line feed amount (line feed 1) is specified.
The value is proportional to . Similarly, the character amount interval P1 of a character string with a character size of 1.2.3. Even if the same character spacing of 2 (6 dots) is specified for both, P2 and P3 have values proportional to the character size (horizontal magnification).

第9図は全角文字と4倍角文字に網かけを施すために改
行Oを用いた場合の印刷例を文書領域21および行修飾
領域22の内容〈一部)に対応して示す。この実施例で
は、網かけパターンは、1つの文字として独立して用意
されている。この場合、文書中の第1行第1列に文字コ
ードAを、第2行第1列に網かけコードをそれぞれ用意
し、行ピッチについては例えば第1行で改行0を指定し
、文字サイズについては第1行および第2行で全角文字
を指定すると、第1行の印刷で印刷された文字Aに重ね
て同サイズの網かけパターンが第2行の印刷で印刷され
る。もし多数の文字列に対して網かけを施すときには、
網かけコードの列を入力し、その文字間を0とすればよ
い。以上は、4倍角文字などの拡大文字の場合でも同様
である。
FIG. 9 shows a printing example when a line feed O is used to shade full-width characters and quadruple-width characters, corresponding to the contents (partial) of the document area 21 and line modification area 22. In this embodiment, the hatching pattern is prepared independently as one character. In this case, prepare a character code A for the first row and first column of the document, a shading code for the second row and first column, set the line pitch to 0 for the first line, and set the font size to When full-width characters are specified in the first and second lines, a half-width pattern of the same size is printed in the second line, overlapping the character A printed in the first line. If you want to shade a large number of strings,
All you have to do is input a string of shading codes and set the character spacing to 0. The above also applies to enlarged characters such as quadruple-width characters.

第10図は改行B、改行H等を用いて4倍角文字に対す
る上付き文字、下付き文字を(全角文字で)作成した場
合の印刷例を文書領域21および行修飾領域22の内容
(一部)に対応して示す。
Figure 10 shows a printing example of the contents of the document area 21 and line modification area 22 (partially ).

さて、CP LJ 10はステップ842またはステッ
プ343の紙送りを実行すると、印刷行数Mを−1しく
ステップ544)、Mが0となったか否かを判定する(
ステップ545)。もしMがOでなければ、印刷すべき
文書行が残っていることから、cpuloは印刷行ポイ
ンタKを+1して次の文書行へ進めた模(ステップ$4
6)、ステップ813の処理に戻る。これに対してMが
Oであれば、CP Ll 10は第に行の行修飾情報で
印刷停止が指定されていたか否かを判定する(ステップ
547)。もし印刷停止が指定されていれば、CP t
J 10はステップS4の処理に戻り、印刷メニュー表
示を行なう。これによりオペレータは、プリンタ43の
印刷に供される印刷リボンを交換して色種を変えたり、
左余白値更には縦/横印刷の設定変更などが行なえる。
Now, when the CP LJ 10 executes the paper feed in step 842 or step 343, it increments the number of print lines M by 1 (step 544), and determines whether M has become 0 (
step 545). If M is not O, there are still document lines to be printed, so cpulo increments the print line pointer K by 1 and advances to the next document line (step $4).
6) Return to step 813. On the other hand, if M is O, the CP Ll 10 first determines whether printing stop has been specified in the line modification information of the th line (step 547). If printing stop is specified, CP t
J10 returns to step S4 and displays a print menu. This allows the operator to change the color type by replacing the printing ribbon used for printing by the printer 43,
You can change the left margin value and settings for vertical/horizontal printing.

これに対して印刷停止が指定されていなければ、c p
 u ioは文書領域21内の文書の印刷終了を判断し
、印刷制御を終了する。
If stop printing is not specified for this, c p
uio determines whether printing of the document in the document area 21 is finished, and ends printing control.

[発明の効果〕 以上詳述したようにこの発明によれば、選択指定可能な
改行ピッチ値の1つに1文字分改行量を含め、1文字分
改行量が指定されている場合に該当印刷行の印刷毎に改
行紙送り量と行印刷紙送り量との差分だけ印刷用紙を順
方向へ紙送りすることによって、その文字サイズに無関
係に行間間隔がOとなり該当印刷行に繋がるように次の
行の印刷開始位置を進めることができるので、多様な印
刷文書を作成することができる。
[Effects of the Invention] As detailed above, according to the present invention, when one of the line feed pitch values that can be selected and specified includes the line feed amount for one character, and the line feed amount for one character is specified, the corresponding printing is performed. By feeding the printing paper in the forward direction by the difference between the line feed paper feed amount and the line printing paper feed amount each time a line is printed, the line spacing becomes O regardless of the character size, and the line is connected to the next printing line. Since the printing start position of the line can be advanced, a variety of printed documents can be created.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例を示すブロック構成図、第
2図は第1図のRAM20のメモリマツプ、第3図はR
A M 20内に設けられる文書領域21と行修1!I
I域22の構造を説明する図、第4図は印刷制御手順を
示すフローチャート、第5図はRAM20内に設けられ
る印刷イメージ領域26の構成を模式的に示す図、第6
図は拡大文字パターンの一例を示す図、第7図は第6図
の文字パターンの印刷イメージ領域26内記憶例を示す
図、第8図乃至第10図は、文書印刷例を文書領域21
および行修飾領[22の内容に対応させて示す図である
。 10・・・CPU、12・・・ROM、20・・・RA
M、21・・・文書領域、22・・・行修飾領域、26
・・・印刷イメージ領域、33・・・キーボード(KB
)、37・・・表示器、43・・・プリンタ(PRT)
、51〜63・・・レジスタ。 出願人代理人 弁理士 鈴 江 武 彦第1図 第8図 第9図
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a memory map of the RAM 20 in FIG. 1, and FIG. 3 is a R
Document area 21 and practice 1 provided in A M 20! I
4 is a flowchart showing the print control procedure; FIG. 5 is a diagram schematically showing the configuration of the print image area 26 provided in the RAM 20; FIG.
The figure shows an example of an enlarged character pattern, FIG. 7 shows an example of how the character pattern of FIG. 6 is stored in the print image area 26, and FIGS.
and the contents of the row modification area [22]. 10...CPU, 12...ROM, 20...RA
M, 21... Document area, 22... Line modification area, 26
...Print image area, 33...Keyboard (KB
), 37...Display unit, 43...Printer (PRT)
, 51-63...Register. Applicant's representative Patent attorney Takehiko Suzue Figure 1 Figure 8 Figure 9

Claims (3)

【特許請求の範囲】[Claims] (1)出力対象となる文書情報の行を単位に、1文字分
改行量を含む複数の改行ピッチ値の1つを選択指定する
第1指定手段と、上記文書情報の行を単位に複数の文字
倍率の1つを選択指定する第2指定手段と、この第2指
定手段の指定する倍率で印刷文書のパターン展開を行な
うパターン展開手段と、このパターン展開手段により展
開された印刷文書パターンの行を上記倍率に応じ1回で
或は複数回に分けて印刷する印刷手段と、上記印刷文書
パターンの行を印刷するのに必要な行印刷紙送り量を上
記倍率をもとに求める手段と、上記第1指定手段の指定
する改行ピッチ値を上記第2指定手段の指定する倍率に
比例した改行紙送り量に変換する変換手段と、上記第1
指定手段により1文字分改行量が指定されている場合、
該当行の印刷毎に上記改行紙送り量と上記行印刷紙送り
量との差分だけ印刷用紙を順方向へ紙送りさせる紙送り
手段とを具備することを特徴とする文書作成装置。
(1) A first specifying means for selecting and specifying one of a plurality of line break pitch values including a line break amount for one character for each line of document information to be output; a second specifying means for selecting and specifying one of the character magnifications; a pattern developing means for developing a pattern of a printed document at a magnification specified by the second specifying means; and a line of a printed document pattern developed by the pattern developing means. printing means for printing once or in multiple times according to the magnification; means for determining the line printing paper feed amount necessary to print the lines of the print document pattern based on the magnification; converting means for converting the line feed pitch value specified by the first specifying means into a line feed paper feed amount proportional to the magnification specified by the second specifying means;
If the line break amount for one character is specified by the specification method,
A document creation device characterized by comprising a paper feeding means for feeding printing paper in the forward direction by the difference between the line feed paper feeding amount and the line printing paper feeding amount each time a corresponding line is printed.
(2)上記紙送り手段は、上記第2指定手段の指定する
文字倍率が整数である場合に、倍率1の文字サイズ分だ
け紙送りすることを特徴とする特許請求の範囲第1項記
載の文書作成装置。
(2) The paper feeding means is characterized in that, when the character magnification specified by the second specifying means is an integer, the paper is fed by the character size of the magnification 1. Document production device.
(3)上記紙送り手段は、上記第2指定手段の指定する
文字倍率が整数でない場合に、その小数部の示す倍率の
文字サイズ分だけ紙送りすることを特徴とする特許請求
の範囲第1項記載の文書作成装置。
(3) When the character magnification specified by the second specifying means is not an integer, the paper feeding means feeds the paper by the character size of the magnification indicated by the decimal part. Document production device described in Section 1.
JP60129221A 1985-06-14 1985-06-14 Document creation device Expired - Lifetime JPH0773935B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60129221A JPH0773935B2 (en) 1985-06-14 1985-06-14 Document creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60129221A JPH0773935B2 (en) 1985-06-14 1985-06-14 Document creation device

Publications (2)

Publication Number Publication Date
JPS61286177A true JPS61286177A (en) 1986-12-16
JPH0773935B2 JPH0773935B2 (en) 1995-08-09

Family

ID=15004137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60129221A Expired - Lifetime JPH0773935B2 (en) 1985-06-14 1985-06-14 Document creation device

Country Status (1)

Country Link
JP (1) JPH0773935B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62121065A (en) * 1985-11-22 1987-06-02 Casio Comput Co Ltd Character enlarging printer
US4983052A (en) * 1988-04-06 1991-01-08 Brother Kogyo Kabushiki Kaisha Adjusting vertical line length in frame printer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58110262A (en) * 1981-12-25 1983-06-30 Fujitsu Ltd Printer device
JPS59231687A (en) * 1983-06-15 1984-12-26 Fujitsu Ltd Document processor
JPS6017487A (en) * 1983-07-08 1985-01-29 株式会社日立製作所 Automatic line pitch setting method for document generator
JPS61258766A (en) * 1985-05-10 1986-11-17 Fujitsu Ltd Controlling system for printing vertically enlarged character

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58110262A (en) * 1981-12-25 1983-06-30 Fujitsu Ltd Printer device
JPS59231687A (en) * 1983-06-15 1984-12-26 Fujitsu Ltd Document processor
JPS6017487A (en) * 1983-07-08 1985-01-29 株式会社日立製作所 Automatic line pitch setting method for document generator
JPS61258766A (en) * 1985-05-10 1986-11-17 Fujitsu Ltd Controlling system for printing vertically enlarged character

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62121065A (en) * 1985-11-22 1987-06-02 Casio Comput Co Ltd Character enlarging printer
US4983052A (en) * 1988-04-06 1991-01-08 Brother Kogyo Kabushiki Kaisha Adjusting vertical line length in frame printer

Also Published As

Publication number Publication date
JPH0773935B2 (en) 1995-08-09

Similar Documents

Publication Publication Date Title
JPH08161309A (en) Word processor
JPH0137783B2 (en)
JPS61286177A (en) Document-forming device
US5413420A (en) Wordprocessing device
JPH03156668A (en) Document preparing device
JPS61286157A (en) Document former
JPH0469917B2 (en)
JPH01229673A (en) English and european writing printing control system
JPS61286156A (en) Document former
JPS61286924A (en) Document forming device
JPS61286176A (en) Document-forming device
JPS61286884A (en) Document generator
JPH0346020A (en) Document processing system
JPH03177963A (en) Kanji classification method, kanji classification table and kanji processor
JPH09185603A (en) Document preparing device and character string form control method
JPH0666066B2 (en) Document processor with furigana addition function
JPH0829608B2 (en) Kanji stroke order output device
JPH01140193A (en) Automatic writing style converter
JPH02159669A (en) Document preparing device
JPS63210887A (en) Word processor
JPS61198281A (en) Print image display unit
JPS61128321A (en) Display system of high density character
JPH0280270A (en) Document preparation device
JPH06274150A (en) Document display method
JPS59168532A (en) Documentation device