JPS61286156A - Document former - Google Patents

Document former

Info

Publication number
JPS61286156A
JPS61286156A JP60129217A JP12921785A JPS61286156A JP S61286156 A JPS61286156 A JP S61286156A JP 60129217 A JP60129217 A JP 60129217A JP 12921785 A JP12921785 A JP 12921785A JP S61286156 A JPS61286156 A JP S61286156A
Authority
JP
Japan
Prior art keywords
line
character
print
printing
dots
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
JP60129217A
Other languages
Japanese (ja)
Other versions
JPH0692167B2 (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 JP60129217A priority Critical patent/JPH0692167B2/en
Publication of JPS61286156A publication Critical patent/JPS61286156A/en
Publication of JPH0692167B2 publication Critical patent/JPH0692167B2/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 permit different sizes of letters to be printed on the same line and also expanded letters to be lap-printed by feeding papers to the opposite directions corresponding to printed letter sizes on the printed line. CONSTITUTION:The number of printing dots of a printer is 24 dots which coincide with the vertical dot number of em-letters. If the pattern of letters in the P row of K line is expanded letter pattern composed of 48X48 dots, in case vertical 24 dots are one-sliced, CPU is set up intially to slice number 0 for printing by by operation of printing head for one-line. The slice number is then set to +1, and printing paper is sent forwardly only for vertical dots of em-letters so that between slices becomes 0. When printing of letter row of K line is ended, line feeding of line feeding amount T is realized by CPU. When T<0, reversely directed paper feeding for the absolute value of T is made for printer. Line feeding of a line interval of 0 can thus be realized and the first letter row and the second letter row can be connected without space.

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 characters of different sizes on the same line, or furthermore, that is capable of printing enlarged characters on top of each other.

[発明の目的] この発明は上記事情に鑑みてなされたものでその目的は
、選択指定可能な改行ピッチ値の1つにピッチ0を含め
、ピッチ0が指定されている場合に該当印刷行の印刷文
字サイズに応じた逆方向の紙送りを行なうことにより、
該当印刷行の印刷開始位置に次の印刷行の印刷開始位置
を文字サイズに無関係に戻すことができ、もって異なる
サイズの文字の同一行での印刷、更には拡大文字同士の
重ね印刷が可能となり、多様な印刷文書の作成が図れる
文書作成装置を提供することにある。
[Purpose of the Invention] This invention was made in view of the above circumstances, and its purpose is to include pitch 0 as one of the line feed pitch values that can be selected and specified, and when pitch 0 is specified, to print the corresponding print line. By feeding the paper in the opposite direction according to the print character size,
The print start position of the next print line can be returned to the print start position of the corresponding print line regardless of the font size, making it possible to print characters of different sizes on the same line, and even print enlarged characters on top of each other. The object of the present invention is to provide a document creation device that can create a variety of printed documents.

[発明の概要] この発明では、出力対象となる文書情報の行を単位に改
行量Oを含む複数の改行ピッチ値の1つを選択指定する
第1指定手段と、上記文書情報の行を単位に複数の文字
倍率の1つを選択指定する第2指定手段との2つの指定
手段が設けられる。
[Summary of the Invention] The present invention includes a first specifying means for selecting and specifying one of a plurality of line feed pitch values including a line feed amount O for each line of document information to be output; Two specifying means are provided, a second specifying means for selecting and specifying one of a plurality of character magnifications.

印刷時においては、第2指定手段の指定する倍率で印刷
文書のパターン展開が行われ、この展開された印刷文書
パターンの行が上記の倍率に応じて1回で或は複数回に
分けて印刷される。この際、印刷文書パターンの行を印
刷するのに必要な行印刷紙送り量が上記の倍率をもとに
求められる。そして第1指定手段により改行量Oが指定
されている場合には、該当行の印刷毎に上記の行印刷紙
送り量だけ印刷用紙を逆方向へ紙送りすることにより、
該当行の印刷開始位置に次の行の印刷開始位置を戻すO
改行が実行される。
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. When the line feed amount O is specified by the first specifying means, the printing paper is fed in the opposite direction by the above-mentioned line printing paper feed amount each time the corresponding line is printed.
Return the print start position of the next line to the print start position of the corresponding line O
A new line is executed.

[発明の実施例] 第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、かな漢字変換で生じ
た同音異義語を選択したときに、どの単語が選択された
かを記憶し、次回以降最優先でその単語を表示する学習
機能のために使用される暫定辞書領域25、全角文字に
よる1行印刷分の印刷イメージ容量をもつ印刷イメージ
領域26、および印刷制御に供されるレジスタ51〜6
3の領域を有している。
20 is a RAM, and 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は表
示器である。表示器31は、例えば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), and 37 is a display device. The display 31 is, for example, a liquid crystal display with 1 line x 10 characters. The display pattern displayed on the display 37 is stored in a display dot memory 39.

41はプリンタインタフェース(PRT−IF)、43
はCP Ll 10の制御のもとで漢字等の印字を行な
うプリンタ(PRT)である。プリンタ43は例えば2
4ドツトの印字ヘッドを有する熱転写プリンタである。
41 is a printer interface (PRT-IF), 43
is a printer (PRT) that prints characters such as Chinese characters under the control of the CP Ll 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-pit rotation/italic information to specify (rotation, italic), 4-bit font size information to specify font size, print stop flag to specify mid-print stop, 2-pit 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とに、6゜1〜
3の2画面)をキー指定することにより行なわれる。
E, one of 1 to 3 (actually B, O, H, 6°1 to
This is done by specifying the 2nd screen of 3) using a key.

なお、上記のキー指定が行なわれない場合(情報)につ
いては、予め定められた標準の設定値が適用される。こ
の標準設定値は、文字サイズであれば24(縦)X24
(横)ドツトを示す1であり、文字量間隔(この例では
標準文字サイズ、即ち全角文字サイズを基準とする文字
Ha隔)であれば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 3 dots if the character spacing (in this example, standard character size, that is, character Ha spacing based on full-width character size), and 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 dots 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.

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

オペレータは入力文書(または編集文書)を印刷したい
場合には、キーボード33の[印M]キー(実際には[
機能]キーと[¥]主キーを操作する。CP U 10
はキー人力があると[印刷]キー人力が行なわれたか否
かをチェックしくステップS1)、Noであればその他
のキー人力処理(ステップ82 )を行ない、YESで
あればステップS3を実行する。このステップS3では
、これから印刷しようとする文書行を示す印刷行ポイン
タK。
When the operator wants to print the input document (or edited document), the operator presses the [mark M] key (actually [mark]) on the keyboard 33.
[Function] key and [\] primary key. CPU 10
If the key is manually operated, it is checked whether or not the [Print] key was manually operated (step S1); if no, other key manual processing (step 82) is performed; if YES, step S3 is executed. In this step S3, a print line pointer K indicating the document line to be printed from now on.

および次の印刷サイクルで印刷対象となる文書行のうち
の先頭行を示す次期中a開始行Nがそれぞれ1に初期設
定される。次期中頃開始行N、印刷行ポインタには、R
AM20に確保されたレジスタ51、52に設定される
And the next middle a start line N indicating the first line of the document lines to be printed in the next print cycle is initialized to 1, respectively. Next middle start line N, print line pointer is R
It is set in registers 51 and 52 secured in AM20.

c p u ioはステップS3を実行すると印刷メニ
ューを表示する(ステップS4)、この状態では、オペ
レータは左余白や[/横印刷の指定が行なえる。この後
[選択]キーがキー操作され、その旨をCP U 10
が判断すると(ステップ85)、CPU10はRA M
 20内に確保された行修飾領域22の第N行の行修飾
情報を参照し、その印刷停止フラグをチェックする(ス
テップ86)。モしてCPU10は、印刷停止フラグに
より印刷停止が指定されているか否かを判断しくステッ
プ87 )、Noであれば第N行に対応する文書領[2
1内の文書行をチェックする(ステップS8)。そして
CP Ll 10は該当文書行に文字コードが無いかど
うか、即ち文書ENDであるか否かの判断を行ないくス
テップ89)。もし文5ENDでなければ、次期印刷開
始行として設定された第N行は、これから印刷しようと
する文書行の1つであって次の印刷サイクルでの印刷対
象文書行(の先頭行)でないことから、CP LJ 1
0はNを+1して新たな次期印刷開始行Nを設定する(
ステップ510)。ステップS10が実行されるとステ
ップS6に戻り、新たに設定された第N行について上記
の処理(印刷停止指定の有無判定、文書ENDの判定)
が行なわれる。
When CPU IO executes step S3, it displays a print menu (step S4). In this state, the operator can specify the left margin and [/horizontal printing. After this, the [Select] key is operated, and the CPU 10
(step 85), the CPU 10 uses the 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 or not printing stop is specified by the print stop flag (step 87).
The document line within 1 is checked (step S8). Then, the CP Ll 10 determines whether or not the corresponding document line has no character code, that is, whether or not it is the document END (step 89). If the statement is not 5END, 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, CP LJ 1
0 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, and the above processing is performed for the newly set Nth line (determination of presence or absence of print stop designation, determination of document END)
will be carried out.

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

この印刷行数MG、tRAM20内に確保されたレジス
タ53に設定される。次にCP U 10はMが0であ
るか否かの判定を行ない(ステップ812) 、M−0
であれば(印刷行が無いことから)CPUIOは印刷制
御を終了する。これに対してM−0でなければ、CP 
U 10は印刷準備のために、まず印刷行ボ −インタ
にの示す第に行の行修飾情報を行修飾領域22から取出
す(ステップ813)。次にc p u ioは、実際
の改行量Tを求めるためにステップ814を実行する。
This number of print lines MG is set in a register 53 secured within the tRAM 20. Next, the CPU 10 determines whether M is 0 (step 812), and M-0
If so (because there are no print lines), the CPUIO ends print control. On the other hand, if it is not M-0, CP
In order to prepare for printing, the U 10 first extracts the line modification information of the first line indicated by the print line pointer from the line modification area 22 (step 813). Next, cpuio executes step 814 to determine the actual line feed amount T.

ステップ814では、ます行修飾情報中の文字サイズ情
報をもとに、同情報の指定するサイズの文字の縦ドツト
数m、横ドツト数m′が例えばROM12内に用意され
た文字サイズテーブル(図示せず)から求められ、24
X24ドツトの全角文字を基準とする倍率(縦倍率m/
24.横倍率m−/24)が求められる。同様に行修飾
情報中の行ピツチ情報をもとに、同情報の指定する全角
文字を基準とする改行量(n/120.単位;インチ)
が例えばROM 12内に用意された改行量テーブル(
図示せず)から求められる。そして改行量n/120に
縦倍率m/24を掛けることにより、指定された文字サ
イズ(文字倍率)の文字の文字列に対する実際の改行I
Tが求められ、RAM20内に確保されたレジスタ54
に設定される。この際、成る比例定数kを更に掛けて改
行ITを求めるようにしてもよい。
In step 814, based on the character size information in the line modification information, the number of vertical dots m and the number of horizontal dots m' of a character of the size specified by the information are determined, for example, from a character size table prepared in the ROM 12 (see 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 feed amount (n/120. unit; inch) based on the full-width character specified by the same information.
For example, the line feed amount table prepared in ROM 12 (
(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, line break IT 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はステップS15を終了すると、1ライン分
の印字ヘッド駆動操作での印刷対象スライスを示すスラ
イス番号ポインタLを0に初期設定する。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 S15, it initializes to 0 a slice number pointer L indicating a slice to be printed in one line of print head driving operation. L-0 indicates the first slice.

次にCP U 10は第に行の行修飾情報中の文字量間
隔情報をもとに、同情報の指定する全角文字を基準とす
る文字量間隔(n′ドツト)を例えばROM12内に用
意された文字量間隔テーブル(図示せず)から求め、n
′に横倍率m′/24を掛けることにより倍率に比例し
た実際の文字量間隔U(単位;ドツト)を求める(ステ
ップ517)。この文字量間隔UはRAM20内に確保
されたレジスタ61に設定される。
Next, the CPU 10 first prepares in the ROM 12, for example, a character spacing (n' dot) 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.

CP tJ 10は、ステップS17を実行すると、印
刷行ポインタにの示す(文書領域21内の)第に行の文
字列の文字数を第に行の印刷文字数■としてRA M 
20内のレジスタ57に設定する(ステップ818)。
When CP tJ 10 executes step S17, RAM
20 (step 818).

そしてc p u ioは、第に行の文字列から次に取
出すべき文字の文字位置(文字桁)を指定する第に行内
文字ポインタPを1(先頭文字桁)に初期設定する(ス
テップ519)。この文字ポインタPは、RAM20内
のレジスタ58に設定される。
Then, c p u io 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 519). . This character pointer P is set in register 58 in RAM 20.

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

書込み開始アドレスQはRAM20内のレジスタ59に
設定される。
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).
It is schematically shown corresponding to. 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 degrees is required, the write start address Q will be <3d as described above.

c p u ioはステップ820を実行すると第に行
第P列の文字のスライスLの文字パターンの印刷イメー
ジ領Fa26内書込み終了アドレスRを求める(スノー
ツブ521)。この書込み終了アドレスRはスライスL
の文字パターンの最終ドツト列の先頭の8ビツト対応す
るもので、横ドツト数がm−のこの例では、書込み開始
アドレスQに3(m=−1)を加えることにより求めら
れる。書込み終了アドレスRはRAM20内のレジスタ
60に設定される。
When CPU IO executes step 820, it first obtains the write end address R in the print image area Fa26 of the character pattern of the slice L of the character in the Pth column in the 1st row (Snotube 521). This write end address R is slice L
In this example, where the number of horizontal dots is m-, it is obtained by adding 3 (m=-1) to the write start address Q. The write end address R is set in the register 60 in the RAM 20.

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図の拡大文字パターン
の例えばスライスOの文字パターンを印刷イメージ領域
26に書込んだ場合を考える。もしスライスOの文字パ
ターン(スライス1の文字パターンでも同様)に関する
書込み終了アドレスRが書込み最終アドレスLEより大
きくなければ、同パターンの印刷イメージ領域2G内記
憶状態は第7図(a)に示す通りとなり、印刷イメージ
領域26の内容を印刷した場合に上記のパターンが印刷
境界を越えることはない。これに対してスライス0の文
字パターン(スライス1の文字パターンでも同様)に関
する書込み終了アドレスRが自込み最終アドレスLEよ
り大きければ、同パターンの印刷イメージ領域26内記
憶状態は第7図(b)に示す通りとなり、印刷イメージ
領域26の内容を印刷した場合には上記のパターンの一
部が印刷境界を越えることから文字パターンの一部が欠
けてしまう。即ちステップ322は、拡大文字パターン
を無条件で印刷イメージ領域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 2G 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 0 (the same applies to the character pattern of slice 1) is larger than the own end address LE, the storage state of the pattern in the print image area 26 is as shown in FIG. 7(b). When the contents of the print image area 26 are printed, a portion of the above-mentioned pattern exceeds the print boundary, resulting in a portion of the character pattern being missing. That is, in step 322, it is determined 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, 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.

c p u ioは、ステップ822の判定がNoの場
合、印刷行ポインタにおよび文字ポインタPの指定する
第に行第P列の文字(文字コード)を文書領域21から
取出しくステップ523)、同文字コードが(パターン
書込みが不要な)改行コードであるか否かを判定する(
ステップ$24)。もし改行コードでなければ、パター
ン書込みが必要であることから、文字ポインタPを+1
して次の文字位置に進めた後に(ステップ525)、ス
テップ823で取出した文字コードに対応する文字パタ
ーンをROM12内の文字パターン領域16から取出す
(ステップ826)。文字パターン領域16内に記憶さ
れている文字パターンは、24X24ドツト(72バイ
ト)構成の全角文字パターンである。文字パターン領域
16から取出された文字パターンは、RAM20内の所
定の1文字記憶領域(図示せず)に一時格納される。
If the determination in step 822 is No, cpuio extracts the character (character code) in the Pth column of the 1st row specified by the print line pointer and character pointer P from the document area 21 (Step 523); Determine whether the character code is a line feed code (no pattern writing required) (
Step $24). If it is not a line feed code, it is necessary to write a pattern, so set the character pointer P by +1.
After proceeding to the next character position (step 525), the character pattern corresponding to the character code taken out at step 823 is taken out from the character pattern area 16 in the ROM 12 (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). The character pattern taken out from the character pattern area 16 is temporarily stored in a predetermined one character storage area (not shown) in the RAM 20.

c p u ioはステップ826を実行すると、第に
行の行修飾情報により文字サイズ、或は文字形態の変更
が要求されているか否か、即ち文字パターンの変換が必
要か否かを判定する(ステップ527)。
When CPU IO 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 LJ 10は
1文字記憶領域内の文字パターン(即ち原文字パターン
)を指定されたサイズ、或は形態の文字パターンに逐次
変換しくステップ828)、パターン変換が必要なけれ
ばステップ828をスキップし、しかる後にスライス番
号ポインタLの示すスライス番号(即ちスライスL)の
文字パターン(もしステップ328をスキップした場合
には、全角文字であることから1文字記憶領域内の文字
パターンとなる)を、書込み開始アドレスQの示す印刷
イメージ領域26内相対番地から始まる領域に順に書込
む(ステップ529)。
If pattern conversion is necessary, the CP LJ 10 sequentially converts the character pattern in the one character storage area (i.e., the original character pattern) into a character pattern of a specified size or form (step 828), and the pattern conversion is performed. If step 828 is not necessary, skip step 828, and then select the character pattern of the slice number (i.e. slice L) indicated by slice number pointer L (if step 328 is skipped, it is a full-width character, so the character pattern in the 1-character storage area is (which becomes a character pattern) 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).

c p u ioはステップ829を実行すると、書込
み終了アドレスRに文字量間隔U(ドツト)の3倍値を
加えることにより、書込み開始アドレスQが次の1文字
(の1スライス分)の書込み開始アドレスを示すように
同アドレスQを更新する(ステップ530)。これによ
りUドツトの文字量間隔が実現される。文字量間隔Uは
、前記したようにステップ817で求められるもので、
文字サイズ情報で指定される全角文字を基準とする文字
量間隔ではなく、この指定文字量間隔に(文字サイズ情
報で指定される)倍率(横倍率)を掛けて得られる、即
ち倍率に比例した実際の文字量間隔である。したがって
、この実施例では、全角文字のイメージで文字量間隔を
指定しながら、実際の文字サイズに適合した文字量間隔
が自動的に実現される。
When CPU IO executes step 829, by adding three times the character interval U (dot) to the write end address R, the write start address Q is set to start writing of the next character (one slice). The same address Q is updated to indicate the address (step 530). This achieves the character spacing of U dots. The character amount interval U is obtained 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はステップ830を実行すると、印刷文
字数Vを−1しくステップ531)、■が0となったか
否かの判定を行なう(ステップ532)。もし■がOで
なければ、c p u ioは第に行に未処理文字が残
されているものとしてステップ821に戻る。
After executing step 830, 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, c p u io returns to step 821 assuming that an unprocessed character remains in the first line.

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

c p u ioは、まず文字ポインタPが1を示して
いるか否か、即ちPを+1するステップ825が1回も
実行されていないか否かの判定を行なう(ステップ53
3)。もしP−1でない場合には、CPU10は第に行
の先頭文字が改行コードでない(即ち完全改行でない)
ものと判断し、即ち印刷すべき文字パターンが印刷イメ
ージ領域26に書き込まれているもの判断し、プリンタ
43を制御して印刷イメージ領域26の内容を印刷させ
る(ステップ534)。次にCP U 10は印刷イメ
ージ領域26をクリアしくステップ835)、L、かる
後スライス数Sを−1する(ステップ836)。モして
c p u ioはスライス数Sが0であるか否か、即
ち第に行の文字列の印刷が終了したか否かを判定する(
ステップ531)。
c p u io first determines whether the character pointer P indicates 1, that is, whether step 825 of adding 1 to P has not been executed even once (step 53
3). If it is not P-1, the CPU 10 determines that the first character of the line is not a line feed code (that is, it is not a complete line feed).
That is, it is determined that the character pattern to be printed is written in the print image area 26, and 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). Then, cpu io determines whether the number of slices S is 0, that is, whether printing of the character string in the first row has been completed (
Step 531).

ステップ837の判定がNoの場合、c p u io
は第に行の印刷が終了していないものと判断して、まず
スライス番号ポインタLを+1し、次の印刷対象となる
スライスのスライス番号を指定する(ステップ838)
。そしてc p u ioは、プリンタ43を制御して
、次のスライスがステップ334で印刷されたスライス
に繋がるように(即ちスライス間がOとなるように)、
印刷用紙を印字ヘッド分(全角文字の縦ドツト分)だけ
順方向に紙送りさせる(ステップ539)。前記したよ
うにプリンタ43の紙送りの単位は1/120 (イン
チ)、印字ヘッドのドツト構成は24ドツト、そしてそ
の3ドツト分は2/120インチである。したがってc
 p u ioは、ステップ839において、16/1
20(インチ)の順方向紙送りをプリンタ43に対して
行なわせることになる。c p u ioは、ステップ
839を実行すると、ステップ818に戻り、前回と同
じ第に行の文字列について次のスライスの印刷のための
処理を行なう。
If the determination in step 837 is No, c p u io
first determines that the printing of the first line has not been completed, first increments the slice number pointer L by 1, and specifies the slice number of the next slice to be printed (step 838).
. The c p u io then controls the printer 43 so that the next slice is connected to the slice printed in step 334 (that is, so that the distance between the slices is O).
The printing paper is fed in the forward direction by the length of the print head (the length of a vertical dot of a full-width character) (step 539). As described above, the paper feeding unit of the printer 43 is 1/120 (inch), the dot configuration of the print head is 24 dots, and the three dots are 2/120 inch. Therefore c
p u io is 16/1 in step 839
This causes the printer 43 to feed the paper in the forward direction by 20 (inches). After executing step 839, c p u io 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となった場
合、CP U 10は改行量Tの示す改行を実現するた
めに、Lに16/120を掛けた値(即ち第に行の文字
列の印刷に要した紙送り量)をT即ち(m−n/24)
/120から減じ、その結果を改めて改行量Tとする(
ステップ540)。
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, 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).

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

CP U 10はステップ340を実行すると、或はス
テップ833でYES (P−1)を判定すると、紙送
り方向を決定するために改行ITが0以上であるか否か
く即ち順方向の紙送りであるか否か)の判定を行なう(
ステップ541)。なお、ステップS33の判定がYE
Sの場合にステップ834の印刷実行等をスキップする
のは、第に行の先頭文字が改行コードであり、完全改行
となるためである。
When the CPU 10 executes step 340 or determines YES (P-1) in step 833, the CPU 10 determines whether line feed IT is 0 or more, that is, if the paper feed is in the forward direction, in order to determine the paper feeding direction. whether there is or not).
step 541). Note that the determination in step S33 is YE.
In the case of S, 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 tJ 10は、■≧0であれば1インチの順方向
紙送りをプリンタ43に対して行なわせ(ステップ54
2)、T<OであればTの絶対値分の逆方向紙送りをプ
リンタ43に対して行なわせる(ステップ843)。こ
れにより、実際の改行ピッチが、同改行ピッチと第に行
の印刷文字の文字サイズ(縦ドツト数)との比を、行ピ
ツチ情報の指定する全角文字を基準とする行ピッチ(改
行ピッチ)と全角文字の縦ドツト数との比と一致させる
如く実現される。即ち、この実施例では、全角文字を基
準とする行ピッチ(改行ピッチ)を指定しながら、文字
サイズ情報で指定されたサイズの文字に比例した行ピッ
チを実現できる。なお、ステップ833の判定がYES
の場合(即ち完全改行の場合)には、印刷を実行しない
ことから、ステップ314で求められたTがそのまま用
いられる。
CP tJ 10 causes the printer 43 to forward paper feed by 1 inch if ■≧0 (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 843). 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 833 is YES.
In this case (that is, in the case of a complete line break), since printing is not executed, T obtained in step 314 is used as is.

さて、この実施例では、行ピツチ情報として、B、O,
H,に、E、1〜4の911が用意さn−cいる(第3
図参照)。
Now, in this embodiment, the line pitch information is B, O,
H, E, 1 to 4 911 are prepared n-c (3rd
(see figure).

改行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 paper 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 the character size specified by the character size information is realized.

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

この場合第に行の文字列印刷後の紙送り量は、同文字列
を印刷するのに必要な紙送り量(同文字列の印刷のため
に実施された紙送りの総紙送り量)の絶対値に一致し、
紙送り方向は逆方向となる。
In this case, the paper feed amount after printing the character string in the first row is 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.

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

改行H(半改行、ハーフ改行)は全角文字を基準とした
場合に8/120 (インチ)だけ順方向に改行するこ
とを指定する。この場合、第に行の文字列印刷後の紙送
り量は、+8/120 (インチ)に縦倍率を掛けて得
られる指定文字サイズの文字列に対する行ピッチから、
同文字列を印刷するのに必要な紙送り量(同文字列の印
刷のために実施された紙送りの総紙送り量)を減じた値
の絶対値となり、その紙送り方向は減算結果の符号(正
/負)の示す方向となる。したがって改行Hが指定され
ている場合、文字サイズ情報で指定された文字サイズの
172文字分だけの順方向改行(半改行)が実現される
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.
The absolute value of the value obtained by subtracting the paper feed amount required to print the same character string (the total paper feed amount of paper feeds 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) for 172 characters of the character size specified by the character size information is realized.

改行K(罫線改行、1文字分改行)は全角文字を基準と
した場合に16/120(インチ)だけ順方向に改行す
ることを指定する。この場合、第に行の文字列印刷後の
紙送り量は、+16/120(インチ)に縦倍率を掛け
て得られる指定文字サイズの文字列に対する行ピッ・チ
から、同文字列を印刷するのに必要な紙送りl(同文字
列の印刷のために実施された紙送りの総紙送り量)を減
じた値、即ち16/120 (インチ)となり、その紙
送り方向は減算結果が正となることから順方向となる。
Line feed K (ruled line feed, line feed by one character) specifies that a line feed is to be made 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 by 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 paper feed l (the total amount of paper feed carried out to print the same character string), that is, 16/120 (inch), is the paper feed direction, and the subtraction result is correct for the paper feed direction. Therefore, it is a forward direction.

この際の具体的な紙送り量は、縦倍率が整数の場合には
倍率1の文字サイズ分、即ち16/120(インチ)と
なり、固定量となる。一方、縦倍率が整数でない場合、
上記順方向紙送り面は縦倍率の小数部の示す倍率の文字
サイズ分となる。
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 surface corresponds 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 with only character valves of the font size specified by the character size information, that is, a line break with a line spacing of O is realized.

この改行には、上記のように行間間隔を0とすることが
できることから、即ち第1の文字サイズの第1の文字列
と同文字列に続く第2の文字サイズの第2の文字列とを
隙間なく繋ぐことができることから、例えば拡大された
罫線(特に縦罫線)を作成する場合に好適する。なお、
横罫線を作成する場合には、文字量間隔をOとすればよ
い。
For this line break, since the line spacing can be set to 0 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の内容(一部)に対応
して示したものである。
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, but different values are specified for the character size. This is shown corresponding to (part of) the contents of the line modification area 22.

第8図において、文字サイズ1.2.3の文字列の改行
ピッチLl 、L2 、L3は、いずれも同一の改行量
(改行1)が指定されていても、文字サイズ(縦倍率)
に比例した値となる。同様に文字サイズ1,2.3の文
字列の文字量間隔Pi 、 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 spacing Pi, P2, and P3 for character strings with character sizes 1 and 2.3 are proportional to the character size (horizontal magnification) even if the same character spacing 2 (6 dots) is specified for each character string. value.

第9図は全角文字と4倍角文字に網かけを施すために改
行Oを用いた場合の印刷例を文書領域21および行修飾
領域22の内容(一部)に対応して示す。この実施例で
は、網かけパターンは、1つの文字として独立して用意
されている。この場合、文書中の第1行第1列に文字コ
ードAを、第2行第1列に網かけコードをそれぞれ用意
し、行ピッチについては例えば第1行で改行Oを指定し
、文字サイズについては第1行および第2行で全角文字
を指定すると、第1行の印刷で印刷された文字Aに重ね
て同サイズの網かけパターンが第2行の印刷で印刷され
る。もし多数の文字列に対して網かけを施すときには、
網かけコードの列を入力し、その文字間を0とすればよ
い。以上は、4倍角文字などの拡大文字の場合でも同様
である。
FIG. 9 shows an example of printing when a line feed O 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 0. The above also applies to enlarged characters such as quadruple-width characters.

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

さて、cpuioはステップ842またはステップ84
3の紙送りを実行すると、印刷行数Mを−1しくステッ
プ844)、MがOとなったか否かを判定する(ステッ
プ545)。もしMがOでなければ、印刷すべき文書行
が残っていることから、CPU10は印刷行ポインタK
を+1して次の文書行へ進めた後(ステップ$46)、
ステップS13の処理に戻る。これに対してMがOであ
れば、CP U 10は第に行の行修飾情報で印刷停止
が指定されていたか否かを判定する(ステップ547)
。もし印刷停止が指定されていれば、CP U 10は
ステップS4の処理に戻り、印刷メニュー表示を行なう
。これによりオペレータは、プリンタ43の印刷に供さ
れる印刷リボンを交換して色種を変えたり、左余白値更
には縦/横印刷の設定変更などが行なえる。
Now, cpuio does step 842 or step 84.
When the paper feed of 3 is executed, the number of print lines M is decreased by 1 (step 844), and it is determined whether M has become O (step 545). If M is not O, there are still document lines to be printed, so the CPU 10 moves the print line pointer K
After adding +1 to the next document line (step $46),
The process returns to step S13. On the other hand, if M is O, 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.

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

[発明の効果] 以上詳述したようにこの発明によれば、選択指定可能な
改行ピッチ値の1つにピッチ0を含め、ピッチOが指定
されている場合に該当印刷行の印刷文字サイズに応じた
逆方向の紙送りを行なうことにより、該当印刷行の印刷
開始位置に次の印刷行の印刷開始位置を文字サイズに無
関係に戻すことができ、異なるサイズの文字の同一行で
の印刷、更には拡大文字同士の重ね印刷が図れるので、
多様な印刷文書を作成することができる。
[Effects of the Invention] As detailed above, according to the present invention, pitch 0 is included as one of the line feed pitch values that can be selected and specified, and when pitch O is specified, the print character size of the corresponding print line is By feeding the paper in the opposite direction, the print start position of the next print line can be returned to the print start position of the corresponding print line regardless of the character size, making it possible to print characters of different sizes on the same line, Furthermore, since enlarged characters can be printed on top of each other,
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図は、文書印剛例を文書領域21および行
修飾領域22の内容に対応させて示す図である。 10・CP U 、 12・ROM、20−RA M、
21−・・文書領域、22・・・行修飾領域、26・・
・印刷イメージ領域、33・・・キーボード(KB)、
37・・・表示器、43・・・プリンタ(PRT)、5
1〜63・・・レジスタ。 出願人代理人 弁理士 鈴 江 武 彦第1図 第2図 第5図 fi6 図 第9図
FIG. 1 is a block configuration diagram showing an 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.
10 to 10 are diagrams showing examples of document stamps in correspondence with the contents of the document area 21 and the line modification area 22. 10-CPU, 12-ROM, 20-RAM,
21--Document area, 22--Line modification area, 26--
・Print image area, 33...Keyboard (KB),
37...Display device, 43...Printer (PRT), 5
1 to 63...Register. Applicant's Representative Patent Attorney Takehiko Suzue Figure 1 Figure 2 Figure 5 fi6 Figure 9

Claims (1)

【特許請求の範囲】[Claims] 出力対象となる文書情報の行を単位に改行量0を含む複
数の改行ピッチ値の1つを選択指定する第1指定手段と
、上記文書情報の行を単位に複数の文字倍率の1つを選
択指定する第2指定手段と、この第2指定手段の指定す
る倍率で印刷文書のパターン展開を行なうパターン展開
手段と、このパターン展開手段により展開された印刷文
書パターンの行を上記倍率に応じ1回で或は複数回に分
けて印刷する印刷手段と、上記印刷文書パターンの行を
印刷するのに必要な行印刷紙送り量を上記倍率をもとに
求める手段と、上記第1指定手段により改行量0が指定
されている場合、該当行の印刷毎に上記行印刷紙送り量
だけ印刷用紙を逆方向へ紙送りさせる紙送り手段とを具
備することを特徴とする文書作成装置。
a first specifying means for selecting and specifying one of a plurality of line feed pitch values including a line feed amount of 0 for each line of document information to be output; and one of the plurality of character scaling factors for each line of the document information; a second specifying means for selecting and specifying; a pattern developing means for developing a pattern of a printed document at a magnification specified by the second specifying means; printing means for printing in one time or in multiple times; means for determining the line printing paper feed amount necessary to print the lines of the print document pattern based on the magnification; and the first specifying means. 1. A document creation device comprising: a paper feed unit that feeds printing paper in the opposite direction by the line printing paper feed amount each time a corresponding line is printed when a line feed amount of 0 is specified.
JP60129217A 1985-06-14 1985-06-14 Document creation device Expired - Lifetime JPH0692167B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPS61286156A true JPS61286156A (en) 1986-12-16
JPH0692167B2 JPH0692167B2 (en) 1994-11-16

Family

ID=15004031

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH0692167B2 (en)

Citations (3)

* 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
JPS59178481A (en) * 1983-03-30 1984-10-09 キヤノン株式会社 Information output unit
JPS61258766A (en) * 1985-05-10 1986-11-17 Fujitsu Ltd Controlling system for printing vertically enlarged character

Patent Citations (3)

* 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
JPS59178481A (en) * 1983-03-30 1984-10-09 キヤノン株式会社 Information output unit
JPS61258766A (en) * 1985-05-10 1986-11-17 Fujitsu Ltd Controlling system for printing vertically enlarged character

Also Published As

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

Similar Documents

Publication Publication Date Title
JPH0137783B2 (en)
JPH08161309A (en) Word processor
JPH03156668A (en) Document preparing device
EP0190511A1 (en) Block processing apparatus
JPS61286156A (en) Document former
JPS61286177A (en) Document-forming device
JPS61286157A (en) Document former
JPH01229673A (en) English and european writing printing control system
JPH0346020A (en) Document processing system
JPS61286176A (en) Document-forming device
JPH03177963A (en) Kanji classification method, kanji classification table and kanji processor
JPS61286924A (en) Document forming device
JPH0711751B2 (en) Document creation device
JPH0773167A (en) Word processor
JPH0666066B2 (en) Document processor with furigana addition function
JPS63209964A (en) Word processor
JPH0751374B2 (en) Document processor
JPH07302261A (en) Japanese word processor
JPH07105197A (en) Document processor
JPS6273975A (en) Apparatus for processing character
JPS62254231A (en) Character outputting method
JPS626369A (en) Character string processing system
JPH0272357A (en) Layout simulation device
JPH06162006A (en) Document preparing method
JPH02159669A (en) Document preparing device