JPS61286157A - Document former - Google Patents

Document former

Info

Publication number
JPS61286157A
JPS61286157A JP60129220A JP12922085A JPS61286157A JP S61286157 A JPS61286157 A JP S61286157A JP 60129220 A JP60129220 A JP 60129220A JP 12922085 A JP12922085 A JP 12922085A JP S61286157 A JPS61286157 A JP S61286157A
Authority
JP
Japan
Prior art keywords
line
character
print
printing
document
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
JP60129220A
Other languages
Japanese (ja)
Other versions
JPH0692168B2 (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 JP60129220A priority Critical patent/JPH0692168B2/en
Publication of JPS61286157A publication Critical patent/JPS61286157A/en
Publication of JPH0692168B2 publication Critical patent/JPH0692168B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers

Abstract

PURPOSE:To form versatile printed documents by enabling the print starting position of the following line to be restored to a position where the interval between the print starting positions of corresponding printing line, or a position preceding the corresponding printing line, is proportional to the letter sizes by a method in which printing paper is fed to the opposite direction only by the absolute value for difference between the paper feeding amount for line feeding and the paper feeding amount for line printing. CONSTITUTION:For the document former, nine kinds of line-pitch information, B, O, H, K. E, 1-4 are provided. In the case of line-feeding B, when em-letter is the basis, indication is made to make line feeding to the opposite direction only for 8/120 inches. In this case, the feeding amount of paper after printing letter row of k-line becomes an absolute value obtained by deducting a paper feeding amount necessary for printing the letter row from pitches for the letter row of indicated letter size obtained by multiplying -8/120 inches by a vertical magnification, and oppositely directed line feeding only for 1/2 of letter size is realized. When superscript letter for 4-magnified em-letter is formed by em- letter by using the line-feeding B, it is shown by Fig. I.

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.

従来、この種の文書作成装置において、特に拡大された
文字行に対して逆方向に改行して次の行を印刷できるよ
うにしたものは知られていなかった。
Conventionally, there has been no known document creation device of this type that is capable of printing the next line by starting a line in the opposite direction to an enlarged character line.

[発明の目的] この発明は上記事情に鑑みてなされたものでその目的は
、選択指定可能な改行ピッチ値の1つに負符号を有する
逆方向改行ピッチ値を含め、逆方向改行ピッチ値が指定
されている場合に該当行の印刷毎に改行紙送り量と行印
刷紙送り量との差分の絶対値だけ印刷用紙を逆方向へ紙
送りすることによって、次の行の印刷開始位置を、該当
印刷行より先行する位置であって該当印刷行の印刷開始
位置との間隔が文字サイズに比例した位置に戻すことが
でき、もって多様な印刷文書を作成することができる文
書作成装置を提供することにある。
[Object of the Invention] This invention has been made in view of the above circumstances, and its purpose is to include a backward line feed pitch value having a negative sign as one of the line feed pitch values that can be selected and specified. If specified, the printing start position of the next line is determined by feeding the printing paper in the opposite direction by the absolute value of the difference between the line feed paper feed amount and the line printing paper feed amount each time the corresponding line is printed. To provide a document creation device capable of returning to a position preceding a relevant print line and having an interval from the print start position of the relevant print line in proportion to the character size, thereby creating a variety of printed documents. There is a particular thing.

[発明の概要] この発明では、出力対象となる文書情報の行を単位に、
負符号を有する逆方向改行ピッチ値を含む複数の改行ピ
ッチ値の1つを選択指定する第1指定手段と、上記文書
情報の行を単位に複数の文字倍率の1つを選択指定する
第2指定手段との2つの指定手段が設けられる。印刷時
においては、第2指定手段の指定する倍率で印刷文書の
パターン展開が行われ、この展開された印刷文書パター
ンの行が上記の倍率に応じて1回で或は複数回に分けて
印刷される。この際、印刷文書パターンの行を印刷する
のに必要な行印刷紙送り量が上記の倍率をもとに求めら
れる。また第1指定手段の指定する改行ピッチ値が上記
の倍率に比例した改行紙送り量に変換される。そして第
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 feed pitch values including a backward line feed pitch value having a negative sign; and a second specifying means for selecting and specifying one of a plurality of character scaling factors for each line of the document information. Two designation means are provided: a designation device and a designation device. At the time of printing, the pattern of the print document is developed at the magnification specified by the second specifying means, and the lines of the developed print document pattern are printed once or in multiple times depending on the magnification. be done. 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. 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. When the backward line feed pitch value is specified by the first specifying means, the printing paper is moved in the reverse direction by the absolute value of the difference between the line feed paper feed amount and the line printing paper feed amount each time the corresponding line is printed. By feeding, a reverse line feed is executed to return the print start position of the next line to a position preceding the print start position of the corresponding line.

[発明の実施例] 第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 characters are registered.

20はRAMであり、第2図に示すように、入力された
文書の文字コード列を記憶する文書領域21、各行毎の
行修飾情報を記憶する行修飾領域22.1文書当り最大
3文字の外字を登録する外字パターン領域23を有して
いる。RAM20は、更に、1文書当り最大5つまでの
語句を登録する語句登録領域24、かな漢字変換で生じ
た同音異義語を選択したときに、どの単語が選択された
かを記憶し、次回以降最優先でその単語を表示する学習
機能のために使用される暫定辞書領域25、全角文字に
よる1行印刷分の印刷イメージ容量をもつ印刷イメージ
領域26、および印刷制御に供されるレジスタ51〜6
3の領域を有している。
20 is a RAM, as shown in FIG. It has a custom character pattern area 23 in which custom characters are registered. The RAM 20 further includes a word registration area 24 in which up to five words can be registered per document, and a word registration area 24 that stores which word was selected when a homophone generated in kana-kanji conversion is selected, and gives top priority from next time onwards. A provisional dictionary area 25 used for a learning function that displays the word in , a print image area 26 having 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−IF)、 33はキーボード(KB)であ
る。35は表示コントローラ(表示CNT)、37は表
示器である。表示器37は、例えば1行X10字の液晶
表示器である。表示器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), and 37 is a display device. The display 37 is, for example, a liquid crystal display with 1 line and 10 characters. The display pattern displayed on the display 37 is stored in a display dot memory 39.

41はプリンタインタフェース(PRT−I F)、4
3はCP u 10の制御のもとで漢字等の印字を行な
うプリンタ(PRT)である。プリンタ43は例えば2
4ドツトの印字ヘッドを有する熱転写プリンタである。
41 is a printer interface (PRT-IF), 4
Reference numeral 3 denotes a printer (PRT) that prints characters such as Chinese characters under the control of the CPU 10. For example, the printer 43 is
This is a thermal transfer printer with a 4-dot print head.

45はカセットインタフェース(CMT−IF)、47
は文書等を保存するデータレコーダとして用いられるカ
セット磁気テープ装置(CMT)である。
45 is a cassette interface (CMT-IF), 47
is a cassette magnetic tape device (CMT) used as a data recorder for storing documents and the like.

第3図はRAM20内に設けられる文書領域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 20. Document information (character code string) and line modification information are stored in a state where 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-bit 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つをキー指定することにより行な
える。また文字量間隔情報の設定は、キー操作により文
字量間隔画面を表示し、この画面上の番号0〜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. Further, setting of the character spacing information is performed by displaying a character spacing screen by key operation and specifying one of the numbers 0 to 3 on this screen with 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 is 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 for 45 dots in this example, which is 0 inches (this value is the displayed character on the screen, and is actually 0100")
It is.

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

この実施例では、CPLlloによる印刷制御は、第4
図のフローチャートに従って行なわれる。
In this embodiment, the print control by CPLllo is performed by the fourth
The process is carried out according to the flowchart shown in the figure.

オペレータは入力文書(または編集文書)を印刷したい
場合には、キーボード33の[印刷]キー(実際には[
機能]キーと[¥]主キーを操作する。c p u i
oはキー人力があると[印刷]キー人力が行なわれたか
否かをチェックしくステップS1)、Noであればその
他のキー人力処理(ステップ82)を行ない、YESで
あればステップS3を実行する。このステップS3では
、これから印刷しようとする文書行を示す印刷行ポイン
タに1および次の印刷サイクルで印刷対象となる文書行
のうちの先頭行を示す次期印刷開始行Nがそれぞれ1に
初期設定される。次期印刷開始行N、印印行行ポインタ
は、RAM20に確保されたレジスタ51、52に設定
される。
When the operator wants to print the input document (or edited document), the operator presses the [Print] key (actually, the [Print] key on the keyboard 33).
[Function] key and [\] primary key. c p u i
o If the key is manually operated, check whether the [Print] key was manually operated or not (Step S1); if No, perform other key manual processing (Step 82); if YES, execute Step S3). . 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 printing start line N and the printing line pointer are set in registers 51 and 52 secured in the RAM 20.

CP LJ 10はステップS3を実行すると印刷メニ
ューを表示する(ステップ84)。この状態では、オペ
レータは左余白や縦/横印刷の指定が行なえる。この後
[選択]キーがキー操作され、その旨をCP U 10
が判断すると(ステップS5)、CPU10はRAM2
0内に確保された行修飾領域22の第N行の行修飾情報
を参照し、その印刷停止フラグをチェックする(ステッ
プ86)。そしてCPU10は、印刷停止フラグにより
印刷停止が指定されているか否かを判断しくステップ8
7)、Noであれば第N行に対応する文書領域21内の
文書行をチェックする(ステップ88)。そしてc p
 u i。
After executing step S3, the CP LJ 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), the CPU 10 uses the RAM 2
The line modification information of the Nth row of the row modification area 22 secured within 0 is referred to and the print stop flag is checked (step 86). Then, in step 8, the CPU 10 determines whether or not printing stop is designated by the print stop flag.
7) If No, check the document line in the document area 21 corresponding to the Nth line (step 88). and c p
ui.

は該当文書行に文字コードが無いかどうか、即ち文書E
NDであるか否かの判断を行ない(ステップS9)。も
し文書ENDでなければ、次期印刷開始行として設定さ
れた第N行は、これから印刷しようとする文書行の1つ
であって次の印刷サイクルでの印刷対象文書行(の先頭
行)でないことから、c p u ioはNを+1して
新たな次期印刷開始行Nを設定する(ステップ510)
。ステップS10が実行されるとステップS6に戻り、
新たに設定された第N行について上記の処理(印刷停止
指定の有無判定、文書ENDの判定)が行なわれる。
is whether there is a character code in the corresponding document line, that is, document E
It is determined whether or not it is ND (step S9). 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. From there, c p u io increases N by 1 and sets a new next print start line N (step 510).
. When step S10 is executed, the process returns to step S6,
The above processing (determination of presence/absence of print stop designation, determination of document END) is performed for the newly set Nth line.

さてCP Ll 10は、ステップS7で第N行の印刷
停止が指定されているものと判定すると、或はステップ
S9で文書ENDを判定すると、N−1の演算を行ない
、今回の印刷サイクルでの印刷対象文書行数(印刷結果
としての行数でないことに注意)を示す印刷行数Mを求
める(ステップ511)。
Now, if the CP Ll 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はRA M 20内に確保されたレジス
タ53に設定される。次にCP U 10はMがOであ
るか否かの判定を行ない(ステップ812> 、M−0
であれば(印刷行が無いことから)CPLJloは印刷
制御を終了する。これに対してM−0でなければ、CP
 Ll 10は印刷準備のために、まず印刷行ポインタ
にの示す第に行の行修飾情報を行修飾領域22から取出
す(ステップ513)。次にc p u ioは、実際
の改行量Tを求めるためにステップ814を実行する。
This number of print lines M is set in a register 53 secured within the RAM 20. Next, the CPU 10 determines whether M is O (step 812>, M-0
If so (because there are no print lines), CPLJlo ends print control. On the other hand, if it is not M-0, CP
In preparation for printing, the Ll 10 first retrieves the line modification information of the first line indicated by the print line pointer from the line modification area 22 (step 513). Next, cpuio executes step 814 to determine the actual line feed amount T.

ステップ814では、まず行修飾情報中の文字サイズ情
報をもとに、同情報の指定するサイズの文−字の縦ドツ
ト数m、横ドツト数m′が例えばROM12内に用意さ
れた文字サイズテーブル(図示せず)から求められ、2
4X24ドツトの全角文字を基準とする倍率(縦倍率m
/24.横倍率m′/24)が求められる。同様に行修
飾情報中の行ピツチ情報をもとに、同情報の指定する全
角文字を基準とする改行量(n/120.単位;インチ
)が例えばROM12内に用意された改行量テーブル(
図示せず)から求められる。そして改行量n/120に
縦倍率m/24を掛けることにより、指定された文字サ
イズ(文字倍率)の文字の文字列に対する実際の改行量
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 from a character size table prepared in the ROM 12, for example. (not shown), 2
Magnification based on 4x24 dot full-width characters (vertical magnification m
/24. The lateral magnification m'/24) is determined. Similarly, based on the line pitch information in the line modification information, the line feed amount (n/120. unit; inch) based on the full-width character specified by the same information is calculated using the line feed amount table prepared in the ROM 12, for example.
(not shown). Then, by multiplying the line feed amount n/120 by the vertical magnification m/24, the actual line feed amount T for the character string of the specified character size (character magnification) is calculated, and the register 54 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 designated 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.

この実施例において、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 a print control program instead of in a 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が採用される。
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, the character form, but here, for simplicity, it is assumed that it is determined from the magnification m/24. However, m/
If 24 is not an integer, the integer greater than and closest to that value is used. For example, m-32 (
If size 2 is specified), S-2 is adopted.

ステップS15で求められたスライス数Sは、RA M
 20内に確保されたレジスタ55に設定される。CP
 U 10はステップ$15を終了すると、1ライン分
の印字ヘッド駆動操作での印刷対象スライスを示すスラ
イス番号ポインタLをOに初期設定する。L−0は先頭
スライスを示す。
The number of slices S obtained in step S15 is RAM
It is set in a register 55 reserved in 20. C.P.
When U 10 completes step $15, it initializes slice number pointer L to O, which indicates the slice to be printed in the print head driving operation for one line. 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: two 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は、RAM20内のレジス
タ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 in RAM 20.

次にCP U 10は、印刷行ポインタにおよび文字ポ
インタP(P−1)の指定する文字(第に行第P列)の
スライスL (L−0)の文字パターンをRAM20内
の印刷イメージ領域26に書込むために、左余白を考慮
して印刷イメージ領域26内書込み開始アドレスQを求
める(ステップ520)。この書込み開始アドレスQ(
印刷イメージ領域26内相対番地)は、もし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 26 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スライス印刷領域ン
に対応して模式的に示す。図から明らかなように、印刷
イメージ領域2GのO〜3番地(印刷イメージ領域26
内相対番地)は、1スライス分の印刷領域の第0番目の
ドツト列(24ドツト)を8ドツト(1バイト)単位で
3分割した各領域と対応している。一般に、印刷イメー
ジ領域26の3n、3n+1.3n+2番地(印刷イメ
ージ領域26内相対番地)は、1スライス分の印刷領域
の第n番目のドツト列(24ドツト)を8ドツト(1バ
イト)単位で3分割した各領域と対応している。したが
って、もしdドツト分の左余白が必要な場合には、書込
み開始アドレスQは上記の如<36となる。
FIG. 5 schematically shows the configuration of the print image area 26 corresponding to the print area (one slice print area) when the print head is driven for one line.As is clear from the figure, the print image area 2G is Addresses O~3 (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 <36 as described above.

c p u ioはステップ820を実行すると第に行
第P列の文字のスライスLの文字パターンの印刷イメー
ジ領域26内書込み終了アドレスRを求める(ステップ
521)。この書込み終了アドレスRは、スライスLの
文字パターンの最終ドツト列の先頭の8ピツト対応する
もので、横ドツト数がm−のこの例では、書込み開始ア
ドレスQに3(m−−1〉を加えることにより求められ
る。書込み終了アドレスRはRAM20内のレジスタ6
0に設定される。
When CPU IO 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>). The write end address R is determined by adding the write end address R to register 6 in RAM 20.
Set to 0.

c p u ioは書込み終了アドレスRを求めると同
アドレスRと書込み最終アドレスLEとの大小を比較し
、RがLEより大きいか否かを判定する(ステップ52
2)。この書込み最終アドレスLEは、例えば第5図に
示すように、1スライス印刷領域の最終ドツト列(即ち
印刷境界)の先頭の8ドツトを示すものである。したが
ってステップS22より、第に行第P列の文字のスライ
スLの文字パターンの一部が印刷境界を越えてしまうか
否かを予め判定することができる。
After finding the write end address R, cpu io 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 final dot row (ie, print boundary) of one slice printing 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図の拡大文字パターン
の例えばスライス0の文字パターンを印刷イメージ領域
26に書込んだ場合を考える。もしスライスOの文字パ
ターン(スライス1の文字パターンでも同様)に関する
書込み終了アドレスRが書込み最終アドレスLEより大
きくなければ、同パターンの印刷イメージ領域26内記
憶状態は第7図(a)に示す通りとなり、印刷イメージ
領域26の内容を印刷した場合に上記のパターンが印刷
境界を越えることはない。これに対してスライスOの文
字パターン(スライス1の文字パターンでも同様)に関
する書込み終了アドレスRが書込み最終アドレスLEよ
り大きければ、同パターンの印刷イメージ領域26内記
憶状態は第7図(b)に示す通りとなり、印刷イメージ
領域26の内容を印刷した場合には上記のパターンの一
部が印刷境界を越えることから文字パターンの一部が欠
けてしまう。即ちステップS22は、拡大文字パターン
を無条件で印刷イメージ領域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, the character pattern of slice 0 of 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, step S22 is to determine in advance whether or not the enlarged character pattern will be printed without being missing when 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 stamp 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 U 10は、ステップS22の判定がNOの場合
、印刷行ポインタにおよび文字ポインタPの指定する第
に行第P列の文字(文字コード)を文書領域21から取
出しくステップ$23)、同文字コードが(パターン書
込みが不要な)改行コードであるか否かを判定する(ス
テップ524)。もし改行コードでなければ、パターン
書込みが必要であることから、文字ポインタPを+1し
て次の文字位置に進めた後に(ステップ825)、ステ
ップ823で取出した文字コードに対応する文字パター
ンをROM12内の文字パターン領域16から取出す(
ステップ826)。文字パターン領域16内に記憶され
ている文字パターンは、24X24ドツト(72バイト
)構成の全角文字パターンである。文字パターン領域1
6から取出された文字パターンは、RAM20内の所定
の1文字記憶領域(図示せず)に一時格納される。
If the determination in step S22 is NO, the CPU 10 sets the print line pointer and retrieves the character (character code) in the Pth column of the first row designated by the character pointer P from the document area 21 (step $23); It is determined whether the character code is a line feed code (which does not require pattern writing) (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 825), write the character pattern corresponding to the character code extracted in step 823 into the ROM 12. Extract from the character pattern area 16 in (
step 826). 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).

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

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

c p u ioはステップ830を実行すると、印刷
文字数■を−1しくステップ831) 、Vが0となっ
たか否かの判定を行なう(ステップ$32)。もし■が
0でなければ、CP U 10は第に行に未処理文字が
残されているものとしてステップ821に戻る。
When cpuio executes step 830, it decrements the number of printed characters by 1 (step 831), and determines whether V has become 0 (step $32). If ■ is not 0, the CPU 10 assumes that unprocessed characters remain in the first line and returns to step 821.

これに対して■=Oであれば、CPU10は第に行の文
字が全て取出され対応する文字パターン(スライスLの
文字パターン)が印刷イメージ領域26に書込まれたも
のとして、ステップ833がら始まる第に行の印刷のた
めのプリンタ43制御を中心とする処理へ進む。このス
テップ833がら始まる処理は、たとえ■−oでなくて
も、ステップS22の判定がYESの場合(即ち書込み
終了アドレスRが書込み最終アドレスLEより大きい場
合)、或はステップS24の判定がYES場合(即ち文
書領域21から取出した文字コードが改行コードの場合
)にも、即ち該当する第に行第P列の文字の印刷を禁止
或は不要とする場合にも実行される。
On the other hand, if ■=O, the CPU 10 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 833. 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 ■-o is not the case, if the determination in step S22 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.

CPU−10は、まず文字ポインタPが1を示している
か否か、即ちPを+1するステップS25が1回も実行
されていないか否かの判定を行なう(ステップ533)
。もしP−1でない場合には、CPU10は第に行の先
頭文字が改行コードでない(即ち完全改行でない)もの
と判断し、即ち印刷すべき文字パターンが印刷イメージ
領域26に書き込まれているもの判断し、プリンタ43
を制御して印刷イメージ領域26の内容を印刷させる(
ステップ534)。次にCP Ll 10は印刷イメー
ジ領域26をクリアしくステップ535)、L、かる後
スライス数Sを−1する(ステップ836)。モしてc
 p u ioはスライス数SがOであるか否か、即ち
第に行の文字列の印刷が終了したか否かを判定する(ス
テップ537)。
The CPU-10 first determines whether the character pointer P indicates 1, that is, whether step S25 of adding 1 to P has not been executed even once (step 533).
. 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. and printer 43
to print the contents of the print image area 26 (
Step 534). Next, the CP Ll 10 clears the print image area 26 (step 535), L, and then subtracts the number of slices S by 1 (step 836). C
p u io 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).

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

そしてCP U 10は、プリンタ43を制御して、次
のスライスがステップ834で印刷されたスライスに繋
がるように(即ちスライス間がOとなるように)、印刷
用紙を印字ヘッド分(全角文字の縦ドツト分)だけ順方
向に紙送りさせる(ステップ539)。前記したように
プリンタ43の紙送りの単位は1/120 (インチ)
、印字ヘッドのドツト構成は24ドツト、そしてその3
ドツト分は2/120インチである。したがってCP 
U 10は、ステップ839において、16/120(
インチ)の順方向紙送りをプリンタ43に対して行なわ
せることになる。CPU10は、ステップ839を実行
すると、ステップ31Bに戻り、前回と同じ第に行の文
字列について次のスライスの印刷のための処理を行なう
Then, the CPU 10 controls the printer 43 to spread the printing paper as many times as the print head (full-width character 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 part 3
The dot portion is 2/120 inch. Therefore, C.P.
In step 839, U 10 receives 16/120 (
This causes the printer 43 to feed the paper in the forward direction (inches). After executing step 839, the CPU 10 returns to step 31B and performs processing for printing the next slice regarding the character string in the same row as the previous time.

一方ステップS37の判定がYESの場合、即ち第に行
の文字列の印刷が終了してスライス数Sが0となった場
合、CP U 10は改行量Tの示す改行を実現するた
めに、Lに16/120を掛けた値(即ち第に行の文字
列の印刷に要した紙送り量)をT即ち(m−n/24)
/120から減じ、その結果を改めて改行量Tとする(
ステップ540)。
On the other hand, if the determination in step S37 is YES, that is, if printing of the character string in the first line is completed and the number of slices S becomes 0, the CPU 10 executes the L The value obtained by multiplying by 16/120 (i.e., the amount of paper feed required to print the character string in the first line) is T, i.e. (m-n/24)
/120 and set the result as the line feed amount T (
step 540).

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

CP LJ 1Gはステップ840を実行すると、或は
ステップ833でYES (P−1)を判定すると、紙
送り方向を決定するために改行量Tが0以上であるか否
か(即ち順方向の紙送りであるか否か)の判定を行なう
(ステップ541)。なお、ステップ833の判定がY
ESの場合にステップ834の印刷実行等をスキップす
るのは、第に行の先頭文字が改行コードであり、完全改
行となるためである。
When CP LJ 1G executes step 840 or determines YES (P-1) in step 833, it determines whether the line feed amount T is greater than or equal to 0 to determine the paper feed direction (i.e., if the paper in the forward direction (step 541). Note that the determination in step 833 is Y.
In the case of ES, 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.

CP U 10は、T≧0であればTインチの順方向紙
送りをプリンタ43に対して行なわせ(ステップ542
)、T<OであればTの絶対値分の逆方向紙送りをプリ
ンタ43に対して行なわせる(ステップ543)。これ
により、実際の改行ピッチが、同改行ピッチと第に行の
印刷文字の文字サイズ(縦ドツト数)との比を、行ピツ
チ情報の指定する全角文字を基準とする行ピッチ(改行
ピッチ)と全角文字の縦ドツト数との比と一致させる如
く実現される。即ち、この実施例では、全角文字を基準
とする行ピッチ(改行ピッチ)を指定しながら、文字サ
イズ情報で指定されたサイズの文字に比例した行ピッチ
を実現できる。なお、ステップS33の判定がYESの
場合(即ち完全改行の場合)には、印刷を実行しないこ
とから、ステップ814で求められたTがそのまま用い
られる。
If T≧0, the CPU 10 causes the printer 43 to forward paper feed by T inches (step 542).
), 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 if the determination in step S33 is YES (that is, in the case of a complete line break), printing is not executed, so the T determined 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.

改行O(行ピッチO)は、改行!i0を指定する。Line feed O (line pitch O) is a line feed! Specify i0.

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

したがって改行0が指定されている場合、文字サイズ情
報で指定された文字サイズに無関係に行ピッチO(O改
行)が実現される。なお縦ドツト数が24の場合には、
印刷時の結紙送り量が0となることから、印刷後の紙送
り量もOとなる。
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 paper feed amount during printing is 0, the paper feed amount after printing is also O.

改行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 amount after printing the character string in the first line is calculated from the line pitch 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 paper feed amount required to print the same character string (the paper feed amount of the 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 (the paper feed amount of the paper feed 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, when the vertical magnification is an integer, the specific paper feed amount is equal to the character size of magnification 1, that is, 16/120 (inches), and becomes a fixed layer. On the other hand, if the vertical magnification is not an integer, the forward paper feed amount is equal to the character size of the magnification indicated by the decimal part of the vertical magnification.

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

この改行には、上記のように行間間隔をOとすることが
できることから、即ち第1の文字サイズの第1の文字列
と同文字列に続く第2の文字サイズの第2の文字列とを
隙間なく繋ぐことができることから、例えば拡大された
罫線(特に縦罫線)を作成する場合に好適する。なお、
横罫線を作成する場合には、文字量間隔を0とすればよ
い。
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 0.

また改行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の内容〈一部)に対応
して示したものである。
FIG. 8 shows an example of document printing when the same values are specified for the character spacing and line pitch (line feed amount) for each document character string, and different values are specified for the character size. This is shown in correspondence with (a part of) the contents of the line modification area 22.

第8図において、文字サイズ1,2.3の文字列の改行
ピッチL1.L2.L3は、いずれも同一の改行量(改
行1)が指定されていても、文字サイズ(縦倍率)に比
例した値となる。同様に文字サイズ1.2.3の文字列
の文字量間隔P1.P2、P3は、いずれも同一の文字
間2(6ドツト)が指定されていても、文字サイズ(横
倍率)に比例した値となる。
In FIG. 8, line break pitch L1. L2. L3 has a value proportional to the character size (vertical magnification) even if the same line feed amount (line feed 1) is specified in both cases. 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倍角文字に網かけを施すために改
行0を用いた場合の印刷例を文書領域21および行修飾
領域22の内容(一部)に対応して示す。この実施例で
は、網かけパターンは、1つの文字として独立して用意
されている。この場合、文書中の第1行第1列に文字コ
ードAを、第2行第1列に網かけコードをそれぞれ用意
し、行ピッチについては例えば第1行で改行Oを指定し
、文字サイズについては第1行および第2行で全角文字
を指定すると、第1行の印刷で印刷された文字Aに重ね
て同サイズの網かけパターンが第2行の印刷で印刷され
る。もし多数の文字列に対して網かけを施すときには、
網かけコードの列を入力し、その文字間をOとすればよ
い。以上は、4倍角文字などの拡大文字の場合でも同様
である。
FIG. 9 shows a printing example when line feed 0 is used to shade full-width characters and quadruple-width characters, corresponding to the contents (parts) 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 the character code A for the first row and first column of the document, and the shading code for the second row and first column, and for the line pitch, for example, specify line break O in the first line, and set the font size. 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 O. 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 U 10はステップS42またはステップ
843の紙送りを実行すると、印刷行数Mを−1しくス
テップ544)、MがOとなったか否かを判定する(ス
テップ545)。もしMがOでなければ、印刷すべき文
書行が残っていることから、CPU10は印刷行ポイン
タKを+1して次の文書行へ進めた後(ステップ846
)、ステップ813の処理に戻る。これに対してMがO
であれば、CPU10は第に行の行修飾情報で印刷停止
が指定されていたか否かを判定する(ステップ547)
。もし印刷停止が指定されていれば、CP U 10は
ステップS4の処理に戻り、印刷メニュー表示を行なう
。これによりオペレータは、プリンタ43の印刷に供さ
れる印刷リボンを交換して色種を変えたり、左余白値更
には縦/横印刷の設定変更などが行なえる。
Now, when the CPU 10 executes the paper feed in step S42 or step 843, it increments the number of print lines M by 1 (step 544), and determines whether M has become O (step 545). If M is not O, since there are still document lines to be printed, the CPU 10 increments the print line pointer K by 1 and advances to the next document line (step 846
), the process returns to step 813. On the other hand, M is O
If so, the CPU 10 first determines whether or not printing stop was specified in the line modification information of the th line (step 547).
. If printing stop is designated, the CPU 10 returns to step S4 and displays a print menu. This allows the operator to change the color type by replacing the print ribbon used for printing by the printer 43, change the left margin value, and change 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つに負符号を有する逆方向改行ピッチ
値を含め、逆方向改行ピッチ値が指定されている場合に
該当行の印刷毎に改行紙送り量と行印刷紙送り量との差
分の絶対値だけ印刷用紙を逆方向へ紙送りすることによ
って、該当行の印刷開始位置より先行し、且つ該当行の
文字サイズに対応した位置に次の行の印刷開始位置を戻
すことができるので、多様な印刷文書を作成することが
できる。
[Effects of the Invention] As detailed above, according to the present invention, one of the line feed pitch values that can be selected and specified includes a backward line feed pitch value having a negative sign, and the backward line feed pitch value is specified. In this case, by feeding the printing paper in the opposite direction by the absolute value of the difference between the line feed paper feed amount and the line printing paper feed amount each time the corresponding line is printed, the printing paper is advanced from the printing start position of the corresponding line, and the corresponding line is Since the printing start position of the next line can be returned to the position corresponding to the font size, a variety of printed documents can be created.

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

第1図はこの発明の一実施例を示すブロック構成図、第
2図は第1図のRAM20のメモリマツプ、第3図はR
AM20内に設けられる文書領域21と行修飾領域22
の構造を説明する図、第4図は印刷制御手順を示すフロ
ーチャート、第5図はRAM20内に設けられる印刷イ
メージ領域26の構成を模式的に示す図、第6図は拡大
文字パターンの一例を示す図、第7図は第6図の文字パ
ターンの印刷イメージ領域26内記憶例を示す図、第8
図乃至第10図は、文書印刷例を文書領1i!21およ
び行修飾領域22の内容に対応させて示す図である。 10・・・CPU、12・・・ROM、20・・・RA
M121・・・文書領域、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 line modification area 22 provided in AM20
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, and FIG. 6 is an example of an enlarged character pattern. 7 is a diagram showing an example of storing the character pattern in the print image area 26 of FIG. 6, and FIG.
Figures 10 to 10 show examples of document printing in the document area 1i! 21 and the contents of a row modification area 22 are shown in correspondence with each other. 10...CPU, 12...ROM, 20...RA
M121...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 (2)

【特許請求の範囲】[Claims] (1)出力対象となる文書情報の行を単位に、負符号を
有する逆方向改行ピッチ値を含む複数の改行ピッチ値の
1つを選択指定する第1指定手段と、上記文書情報の行
を単位に複数の文字倍率の1つを選択指定する第2指定
手段と、この第2指定手段の指定する倍率で印刷文書の
パターン展開を行なうパターン展開手段と、このパター
ン展開手段により展開された印刷文書パターンの行を上
記倍率に応じ1回で或は複数回に分けて印刷する印刷手
段と、上記印刷文書パターンの行を印刷するのに必要な
行印刷紙送り量を上記倍率をもとに求める手段と、上記
第1指定手段の指定する改行ピッチ値を上記第2指定手
段の指定する倍率に比例した改行紙送り量に変換する変
換手段と、上記第1指定手段により逆方向改行ピッチ値
が指定されている場合、該当行の印刷毎に上記改行紙送
り量と上記行印刷紙送り量との差分の絶対値分だけ印刷
用紙を逆方向へ紙送りさせる紙送り手段とを具備するこ
とを特徴とする文書作成装置。
(1) A first specifying means for selecting and specifying one of a plurality of line feed pitch values including a reverse line feed pitch value having a negative sign for each line of document information to be output; a second specifying means for selecting and specifying one of a plurality of character magnifications for each unit; a pattern developing means for developing a pattern of a printed document at the magnification specified by the second specifying means; A printing means that prints the lines of the document pattern in one time or in multiple times according to the above-mentioned magnification, and a line printing paper feed amount necessary to print the lines of the print document pattern based on the above-mentioned 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; is specified, a paper feeding means is provided that feeds the printing paper in the opposite direction by the absolute value of the difference between the line feed paper feed amount and the line printing paper feed amount each time the corresponding line is printed. A document creation device characterized by:
(2)上記逆方向改行ピッチ値の絶対値が文字倍率1の
文字の文字サイズの1/2に対応することを特徴とする
特許請求の範囲第1項記載の文書作成装置。
(2) The document creation device according to claim 1, wherein the absolute value of the backward line feed pitch value corresponds to 1/2 of the character size of a character with a character magnification of 1.
JP60129220A 1985-06-14 1985-06-14 Document creation device Expired - Lifetime JPH0692168B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPS61286157A true JPS61286157A (en) 1986-12-16
JPH0692168B2 JPH0692168B2 (en) 1994-11-16

Family

ID=15004110

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH0692168B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63312152A (en) * 1987-06-12 1988-12-20 Minolta Camera Co Ltd Address control system of image memory

Citations (1)

* 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

Patent Citations (1)

* 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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63312152A (en) * 1987-06-12 1988-12-20 Minolta Camera Co Ltd Address control system of image memory

Also Published As

Publication number Publication date
JPH0692168B2 (en) 1994-11-16

Similar Documents

Publication Publication Date Title
JPH08161309A (en) Word processor
JPS61286157A (en) Document former
JPS61286177A (en) Document-forming device
US5413420A (en) Wordprocessing device
JPH03156668A (en) Document preparing device
JPS61286156A (en) Document former
JPS61286176A (en) Document-forming device
JPH01229673A (en) English and european writing printing control system
JPH0346020A (en) Document processing system
JPH0711751B2 (en) Document creation device
JPS61286924A (en) Document forming device
JPH03177963A (en) Kanji classification method, kanji classification table and kanji processor
JPH0666066B2 (en) Document processor with furigana addition function
JPH0773167A (en) Word processor
JP2995630B2 (en) Document data processing device
JPS63210887A (en) Word processor
JPH0751374B2 (en) Document processor
JPS63209964A (en) Word processor
JPH02159669A (en) Document preparing device
JPH079701A (en) Output device of order of making strokes of chinese character
JPH0280270A (en) Document preparation device
JPH0573562A (en) Document editor
JPS62254231A (en) Character outputting method
JPS61128321A (en) Display system of high density character
JPH07302261A (en) Japanese word processor