JPS61286176A - Document-forming device - Google Patents

Document-forming device

Info

Publication number
JPS61286176A
JPS61286176A JP60129218A JP12921885A JPS61286176A JP S61286176 A JPS61286176 A JP S61286176A JP 60129218 A JP60129218 A JP 60129218A JP 12921885 A JP12921885 A JP 12921885A JP S61286176 A JPS61286176 A JP S61286176A
Authority
JP
Japan
Prior art keywords
line
character
feed
print
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
JP60129218A
Other languages
Japanese (ja)
Other versions
JPH0773934B2 (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 JP60129218A priority Critical patent/JPH0773934B2/en
Publication of JPS61286176A publication Critical patent/JPS61286176A/en
Publication of JPH0773934B2 publication Critical patent/JPH0773934B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

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

Abstract

PURPOSE:To enable a well-balanced printed document with character size taken into acount to be easily formed, by converting a line feed pitch into a value according to a character size and thereby controlling an actual paper feed quantity. CONSTITUTION:The document-forming device is provided with, for example, nine kinds of line pitch information B, O, H, K, E, 1-4. Where line feed B is designated, reverse line feeding by 1/2 of the character size is performed. Where line feed O is designated, 0 line feeding is performed irrespective of the character size. Where line feed H is designated, forward paper feeding by 1/2 of the character size is performed. Accordingly, line feeding is conducted by feeding a printing paper by an amount equal to the absolute value of the difference between a line feed paper feed quantity and a line printing paper feed quantity in the direction according to the sign of the difference, on each printing in the relevant line.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、印刷文書の改行量を文字サイズに応じて制
御する文書作成装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a document creation device that controls the line feed amount of a printed document according to character size.

[発明の技術的背景とその問題点] 日本語ワードプロセッサ等、近年の文書作成装置には、
中頃文字サイズ並びに改行ピッチが可変できるものが多
(なっている。
[Technical background of the invention and its problems] Recent document creation devices such as Japanese word processors have
In the middle of this period, there are many cases in which the font size and line break pitch can be changed.

従来、この種の文書作成装置では、文字サイズと改行ピ
ッチとは独立に管理されているため、文字サイズと釣合
う改行ピッチを指定することは困難であり、バランスの
とれた印刷文書を作成することは困難であった。
Conventionally, in this type of document creation device, the font size and line break pitch are managed independently, making it difficult to specify a line break pitch that is in balance with the font size, making it difficult to create a well-balanced printed document. That was difficult.

また従来の文書作成装置では、文字サイズ可変機能を充
分に発揮して多様な印刷文書を作成する工夫が成されて
いなかった。
Furthermore, conventional document creation devices have not been designed to fully utilize the variable character size function to create a variety of printed documents.

[発明の目的] この発明は上記事情に鑑みてなされたものでその目的は
、指定された改行ピッチ値を文字サイズに応じた値に変
換して実際の改行量を制御することにより、文字サイズ
に釣合う改行ピッチがオペレータに負担をかけることな
く実現でき、文字サイズが考慮されたバランスのよい印
刷文書が簡単に作成できる文書作成装置を提供すること
にある。
[Purpose of the Invention] This invention was made in view of the above circumstances, and its purpose is to control the actual line feed amount by converting a specified line feed pitch value to a value corresponding to the character size. To provide a document creation device that can realize a line feed pitch commensurate with the above without placing a burden on an operator, and can easily create a well-balanced printed document in consideration of character size.

この発明の他の目的は、選択指定される改行ピッチ値に
改行方向を定義する正/負符号をもたせ、文字サイズに
応じた改行量を実現する場合にその方向までも制御する
ことにより文字サイズ可変機能が充分に発揮でき、もっ
て多様な印刷文書を作成することができる文書作成装置
を提供することにある。
Another object of the present invention is to provide a selectively specified line feed pitch value with a plus/minus sign that defines the line feed direction, and to control the line feed amount in accordance with the character size by controlling the line feed direction. It is an object of the present invention to provide a document creation device capable of fully exhibiting variable functions and thereby creating a variety of printed documents.

[発明の概要] この発明では、出力対象となる文書情報の行を単位に、
改行方向を示す正/負符号を有する複数の改行ピッチ値
の1つを選択指定する第1指定手段と、上記文書情報の
行を単位に複数の文字倍率の1つを選択指定する第2指
定手段との2つの指定手段が設けられる。印刷時におい
ては、第2指定手段の指定する倍率で印刷文書のパター
ン展開が行われ、この展開された印刷文書パターンの行
が、上記の倍率に応じて1回で或は複数回に分けて印刷
される。この際、印刷文書パターンの行を印刷するのに
必要な行印刷紙送り量が上記の倍率をもとに求められる
。また第1指定手段の指定する改行ピッチ値が上記の倍
率に比例した改行紙送り量に変換される。そして該当行
の印刷毎に改行紙送り量と行印刷紙送り量との差分の符
号の示す方向へ同差分の絶対値分だけ印刷用紙が紙送り
され改行が実行される。
[Summary of the Invention] In this invention, document information to be output is output in units of rows.
a first specification means for selecting and specifying one of a plurality of line break pitch values having plus/minus signs indicating the line feed direction; and a second specifying means for selecting and specifying one of a plurality of character magnifications for each line of the document information. Two designation means are provided. During printing, the pattern of the printed document is developed at the magnification specified by the second specifying means, and the lines of the developed print document pattern are expanded once or in multiple times depending on the magnification. printed. 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. Then, each time the corresponding line is printed, the printing paper is fed in the direction indicated by the sign of the difference between the line feed paper feed amount and the line printing paper feed amount by the absolute value of the difference, and a line feed is executed.

[発明の実施例コ 第1図はこの発明の一実施例に係る文書作成装置、例え
ば日本語ワードプロセッサのブロック構成を示すもので
、10は装置全体の制御を司るCPUである。12はR
OMであり、装置全体を制御するプログラム、文字を拡
大するためのプログラム、更には行単位で指定される文
字サイズ、文字量間隔、および行ピッチを含む行修飾情
報に従う印刷制御のためのプログラム等が格納されてい
るプログラム領域14を有する。ROM12は、更に、
装置で扱う漢字を含む文字コードに対応した文字パター
ンが登録された文字パターン領域16、および「かな」
或は「ローマ字」で入力された読みを漢字に変換するた
めの各種辞書が登録された辞書領域18を有する。
[Embodiment of the Invention] FIG. 1 shows the 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, 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−I F) 、33はキーボード(KB)で
ある、35は表示コントローラ(表示CNT)、37は
表示器である。表示器37は、例えば1行X10字の液
晶表示器である。表示器37に表示される表示パターン
は、表示用ドツトメモリ39に記憶される。
Referring again to FIG. 1, 31 is a keyboard interface (KB-IF), 33 is a keyboard (KB), 35 is a display controller (display CNT), and 37 is a display. 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 Ll 10の制御のもとて漢字等の印字を行
なうプリンタ(PRT)である。プリンタ43は例えば
24ドツトの印字ヘッドを有する熱転写プリンタである
。45はカセットインタフェース(CMT−IF)、4
7は文書等を保存するデータレコーダとして用いられる
カセット磁気テープ装[(0〜1丁)である。
41 is a printer interface (PRT-IF>, 4
3 is a printer (PRT) that prints kanji characters and the like under the control of the CP Ll 10; The printer 43 is, for example, a thermal transfer printer having a 24-dot print head. 45 is a cassette interface (CMT-IF), 4
7 is a cassette magnetic tape device (0 to 1) used as a data recorder for storing documents and the like.

第3図はRA M 20内に設けられる文書領域21と
行修飾領1122の構造を説明する図あり、文書情報(
文字コード列)と行修飾情報とが互いに行を単位に対応
付けされた状態で格納される。行修飾情報は、文字の白
抜き(並びに影付け)を指定する白抜きフラグ、文字の
形態(回転、斜体)を指定する3ビツトの回転・斜体情
報、文字サイズを指定する4ビツトの文字サイズ情報、
印刷途中での印刷停止を指定する印刷停止フラグ、文字
量間隔を指定する2ビツトの文字量間隔情報、および行
ピッチ(改行ピッチ)を指定する4ビツトの行ピツチ情
報から成る。
FIG. 3 is a diagram explaining the structure of the document area 21 and line modification area 1122 provided in the RAM 20, and the document information (
(character code string) and row modification information are stored in a state where they are associated with each other on a row-by-row basis. Line modification information includes a white flag that specifies white text (and shading), 3-bit rotation/italic information that specifies text format (rotation, italic), and 4-bit text size that specifies text size. information,
It consists of a print stop flag that specifies printing stop during printing, 2-bit character spacing information that specifies character spacing, and 4-bit line pitch information that specifies 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 (actually B, O, H, E.

1〜3の2画面)をキー指定することにより行なねれる
This can be 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).
0 inch (45 dots in this example)
”).

次にこの発明の一実施例の動作を説明する。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の[印刷コキー(実際には[
機能]キーと[¥]主キーを操作する。c p u i
oはキー人力があると[印刷]キー人力が行なわれたか
否かをチェックしくステップS1)、Noであればその
他のキー人力処理(ステップ82)を行ない、YESで
あればステップS3を実行する。このステップS3では
、これから印刷しようとする文書行を示す印刷行ポイン
タに1および次の印刷サイクルで印刷対象となる文書行
のうちの先頭行を示す次期印刷開始行Nがそれぞれ1に
初期設定される。次期印刷開始行N、印刷行ポインタに
は、RAM20に確保されたレジスタ51、52に設定
される。
When the operator wants to print an input document (or an edited document), the operator presses the [Print key (actually, [
[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 print start line N and print line pointer are set in registers 51 and 52 secured in the RAM 20.

CP U 10はステップS3を実行すると印刷メニュ
ーを表示する(ステップ84)。この状態では、オペレ
ータは左余白や縦/横印刷の指定が行なえる。この後[
選択〕キーがキー操作され、その旨をCP U 10が
判断すると(ステップS5)、CPU10はRAM20
内に確保された行修飾領域22の第N行の行修飾情報を
参照し、その印刷停止フラグをチェックする(ステップ
8B)。そしてCPU10は、印刷停止フラグにより印
刷停止が指定されているか否かを判断しくステップS7
)、Noであれば第N行に対応する文書t?f41ii
!21内の文書行をチェックする(ステップS8)。そ
してCP tJ 10は該当文書行に文字コードが無い
かどうか、即ち文書ENDであるか否かの判断を行ない
(ステップ89)。もし文書ENDでなければ、次期印
刷開始行として設定された第N行は、これから印刷しよ
うとする文書行の1つであって次の印刷サイクルでの印
刷対象文書行(の先頭行)でないことから、CP tJ
 10はNを+1して新たな次期印刷開始行Nを設定す
る(ステップ510)。ステップS10が実行されると
ステップS6に戻り、新たに設定された第N行について
上記の処理(印刷停止指定の有無判定、文書ENDの判
定)が行なわれる。
After executing step S3, the CPU 10 displays a print menu (step 84). In this state, the operator can specify the left margin and vertical/horizontal printing. After this[
When the [SELECT] key is operated and the CPU 10 determines that (step S5), the CPU 10 selects the RAM 20.
The print stop flag is checked by referring to the row modification information of the Nth row of the row modification area 22 secured within the row modification area 22 (step 8B). Then, in step S7, the CPU 10 determines whether or not printing stop is designated by the print stop flag.
), if No, the document t corresponding to the Nth line? f41ii
! 21 is checked (step S8). Then, the CP tJ 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 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, CP tJ
10 sets a new next printing start line N by adding 1 to N (step 510). When step S10 is executed, the process returns to step S6, and the above-mentioned processing (determination of presence or absence of print stop designation, determination of document END) is performed for the newly set Nth line.

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

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

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

なお、行ピツチ情報の示す改行量をn/120の形式で
表現するのは、この実施例におけるプリンタ43の紙送
りの単位が1/120(インチ)であることによる。し
たがって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に記憶されるようになっている。
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 feed unit of the printer 43 in this embodiment is 1/120 (inch). 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) part 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 may 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 (
size 2), S=2 is adopted.

ステップ815で求められたスライス数Sは、RAM2
0内に確保されたレジスタ55に設定される。CP U
 10はステップ$15を終了すると、1ライン分の印
字ヘッド駆動操作での印刷対象スライスを示すスライス
番号ポインタLをOに初期設定する。L=Oは先頭スラ
イスを示す。
The number of slices S obtained in step 815 is
It is set in register 55 reserved within 0. CPU
10, upon completing step $15, initializes the slice number pointer L to O, which indicates the slice to be printed in the print head driving operation for one line. L=O indicates the first slice.

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

CP U 10は、ステップ317を実行すると、印刷
行ポインタにの示す(文書領域21内の)第に行の文字
列の文字数を第に行の印刷文字数■としてRAM20内
のレジスタ57に設定する(ステップ818)。そして
c p u ioは、第に行の文字列から次に取出すべ
き文字の文字位置(文字桁)を指定する第に行内文字ポ
インタPを1(先頭文字桁)に初期設定する(ステップ
519)。この文字ポインタPは、RAM20内のレジ
スタ58に設定される。
When the CPU 10 executes step 317, the CPU 10 sets the number of characters in 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 first line in the register 57 in the RAM 20 ( step 818). 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 U 10は、印刷行ポインタにおよび文字ポ
インタP(P−1)の指定する文字(第に行第P列)の
スライスL (L−0)の文字パターンをRAM20内
の印刷イメージ領域26に書込むために、左余白を考慮
して印刷イメージ領域26内書込み開始アドレスQを求
める(ステップ520)。この書込み開始アドレスQ(
印刷イメージ領域26内相対番地)は、もしdヒフ8分
の左余白が必要な場合であれば、次に述べる印刷イメー
ジ領域26の構成から理解されるように3dとなる。書
込み開始アドレスQはRA M 20内のレジスタ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 of 8 times d 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 the register 59 in RAM 20.
is set to

第5図は印刷イメージ領域26の構成を1ライン分の印
字ヘッド駆動操作での印刷領域(1スライス印刷領域)
に対応して模式的に示す。図から明らかなように、印刷
イメージ領域26のO〜3番地(印刷イメージ領域2G
内相対番地)は、1スライス分の印刷領域の第0番目の
ドツト列(24ドツト)を8ドツト(1バイト)単位で
3分割した各領域と対応している。一般に、印刷イメー
ジ領域26の3n、3n+1.3n+2番地(印刷イメ
ージ領域26内相対番地)は、1スライス分の印刷領域
の第n番目のドツト列(24ドツト)を8ドツト(1バ
イト)単位で3分割した各領域と対応している。したが
って、もしdヒフ8分の左余白が必要な場合には、書込
み開始アドレスQは上記の如<36となる。
FIG. 5 shows the configuration of the print image area 26 when the print head is driven for one line (one slice print area).
This is shown schematically. As is clear from the figure, addresses O to 3 of the print image area 26 (print image area 2G
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 8 d-hifts is required, the write start address Q will be <36 as described above.

CP U 10はステップ820を実行すると第に行第
P列の文字のスライスLの文字パターンの印刷イメージ
領域26内書込み終了アドレスRを求める(ステップ5
21)。この書込み終了アドレスRは、スライスLの文
字パターンの最終ドツト列の先頭の8ビツト対応するも
ので、横ドツト数がm′のこの例では、書込み開始アド
レスQに3(m−−1)を加えることにより求められる
。書込み終了アドレスRはRAM20内のレジスタ60
に設定される。
When the CPU 10 executes step 820, the CPU 10 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 P-th row and P-th column (step 5).
21). This write end address R corresponds to the first 8 bits of the final dot string of the character pattern of slice L. In this example where the number of horizontal dots is m', the write start address Q is set to 3 (m--1). It is found by adding. The write end address R is the register 60 in the RAM 20.
is set to

c p u ioは書込み終了アドレスRを求めると同
アドレスRと書込み最終アドレスLEとの大小を比較し
、RがLEより大きいか否かを判定する(ステップ52
2)。この書込み最終アドレスLEは、例えば第5図に
示すように、1スライス印刷領域の最終ドツト列(即ち
印刷境界)の先頭の8ドツトを示すものである。したが
ってステップ$22より、第に行第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 $22, it is possible to determine in advance whether or not a part of the character pattern of the slice L of the character in the Pth row and Pth column exceeds the printing boundary.

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

CP Ll 10は、ステップ822の判定がNoの場
合、印刷行ポインタにおよび文字ポインタPの指定する
第に行第P列の文字(文字コード)を文書領域21から
取出しくステップ523)、同文字コードが(パターン
書込みが不要な)改行コードであるか否かを判定する(
ステップ524)。もし改行コードでなければ、パター
ン書込みが必要であることから、文字ポインタPを+1
して次の文字位置に進めた後に(ステップ3−25) 
、ステップ323で取出した文字コードに対応する文字
パターンをROM12内の文字パターン領域16から取
出す(ステップ826)。文字パターン領域16内に記
憶されている文字パターンは、24X24ドツト(72
バイト)構成の全角文字パターンである。文字パターン
領域16から取出された文字パターンは、RAM20内
の所定の1文字記憶領域(図示せず)に一時格納される
If the determination in step 822 is No, the CP Ll 10 retrieves the character (character code) in the Pth column of the first row specified by the print line pointer and the character pointer P from the document area 21 (Step 523), and retrieves the same character. Determine whether the code is a newline code (no pattern writing required) (
step 524). If it is not a line feed code, it is necessary to write a pattern, so set the character pointer P by +1.
and advance to the next character position (step 3-25).
, the character pattern corresponding to the character code taken out in step 323 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 24 x 24 dots (72
It is a double-byte character pattern with a byte) configuration. 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.

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の示すスライス番号(即ちスライスし)の文
字パターン(もしステップ828をスキップした場合に
は、全角文字であることから1文字記憶領域内の文字パ
ターンとなる)を、書込み開始アドレスQの示す印刷イ
メージ領域26内相対番地から始まる領域に順に書込む
(ステップ529)。
If pattern conversion is required, CPU 10
Character pattern in character storage area (i.e. original character pattern)
(step 828), and if pattern conversion is not necessary, skip step 828, and then convert the character pattern of the slice number (i.e., sliced) indicated by the slice number pointer L. (If step 828 is skipped, since it is a full-width character, it becomes a character pattern in the 1-character storage area) in order into 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に文字量間隔り(ドツト)の3倍値を
加えることにより、書込み開始アドレスQが次の1文字
(の1スライス分)の書込み開始アドレスを示すように
同アドレスQを更新する(ステップ530)。これによ
りUドツトの文字量間隔が実現される。文字量間隔Uは
、前記したようにステップS17で求められるもので、
文字サイズ情報で指定される全角文字を基準とする文字
量間隔ではなく、この指定文字量間隔に(文字サイズ情
報で指定される)倍率(横倍率)を掛けて得られる、即
ち倍率に比例した実際の文字量間隔である。したがって
、この実施例では、全角文字のイメージで文字量間隔を
指定しながら、実際の文字サイズに適合した文字量間隔
が自動的に実現される。
When CPU IO executes step 829, by adding three times the character spacing (dots) to the write end address R, the write start address Q is set to start writing of the next character (one slice of the character). 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 S17 as described above, and
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 IJ 10はステップ330を実行すると、印刷
文字数Vを−1しくステップ531)、VがOとなった
か否かの判定を行なう(ステップ532)。もし■が0
でなければ、c p u ioは第に行に未処理文字が
残されているものとしてステップS21に戻る。
When the CP IJ 10 executes step 330, it increments the number of printed characters V by 1 (step 531), and determines whether V has become O (step 532). If ■ is 0
If not, c p u io assumes that unprocessed characters remain in the first line and returns to step S21.

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

CP Ll 10は、まず文字ポインタPが1を示して
いるか否か、即ちPを+1するステップ825が1回も
実行されていないか否かの判定を行なう(ステップ53
3)。もしP−1でない場合には、CPU10は第に行
の先頭文字が改行コードでない(即ち完全改行でない)
ものと判断し、即ち印刷すべき文字パターンが印刷イメ
ージ領域26に書き込まれているもの判断し、プリンタ
43を制御して印刷イメージ領域26の内容を印刷させ
る(ステップ534)。次にCP LJ 10は印刷イ
メージ領域26をクリアしくステップ535)、シかる
後スライス数Sを−1する(ステップ536)。そして
CP U 10はスライス数SがOであるか否か、即ち
第に行の文字列の印刷が終了したか否かを判定する(ス
テップ531)。
The CP Ll 10 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 CP LJ 10 clears the print image area 26 (step 535) and subtracts the number of slices S by 1 (step 536). Then, the CPU 10 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 531).

ステップ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インチである。したがってc p 
u ioは、ステップ839において、16/120(
インチ)の順方向紙送りをプリンタ43に対して行なわ
せることになる。c p u ioは、ステップ839
を実行すると、ステップ818に戻り、前回と同じ第に
行の文字列について次のスライスの印刷のための処理を
行なう。
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 3 dots are 2/120 inch. Therefore c p
u io is 16/120(
This causes the printer 43 to feed the paper in the forward direction (inches). c p u io is step 839
Once executed, the process returns to step 818, and the process for printing the next slice is performed for the same character string in the first line as the previous time.

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

この新たに求められた改行最下の絶対値は、第に行印刷
終了後に行なうべき改行紙送りのための紙送り量(イン
チ)を示し、同じく符号(正/負符号)はその紙送り方
向を示す。明らかなように、第に行が全角文字指定(サ
イズ1)の場合には、LはOのままである(即ちステッ
プ339の印刷用紙送りが実行されない)ことから、新
たに求められたTはステップ814で求められた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, when the second line is full-width characters (size 1), L remains O (that is, the printing paper feed in step 339 is not executed), so the newly determined T is It matches T determined in step 814.

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

c p u ioは、■≧0であればTインチの順方向
紙送りをプリンタ43に対して行なわせ(ステップ54
2)、T<OであればTの絶対値分の逆方向紙送りをプ
リンタ43に対して行なわせる(ステップ543)。こ
れにより、実際の改行ピッチが、同改行ピッチと第に行
の印刷文字の文字サイズ(縦ドツト数)との比を、行ピ
ツチ情報の指定する全角文字を基準とする行ピッチ(改
行ピッチ)と全角文字の縦ドツト数との比と一致させる
如く実現される。即ち、この実施例では、全角文字を基
準とする行ピッチ(改行ピッチ)を指定しながら、文字
サイズ情報で指定されたサイズの文字に比例した行ピッ
チを実現できる。なお、ステップ833の判定がYES
の場合(即ち完全改行の場合)には、印刷を実行しない
ことから、ステップ814で求められたTがそのまま用
いられる。
c p u io causes the printer 43 to forward paper feed by T inches 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 543). As a result, the actual line feed pitch is determined by the ratio of the line feed pitch and the character size (number of vertical dots) of the printed characters on the second line to the line pitch (line feed pitch) based on the full-width character specified by the line pitch information. This is realized so as to match the ratio between the number of vertical dots and the number of vertical dots of a full-width character. That is, in this embodiment, while specifying the line pitch (line feed pitch) based on full-width characters, it is possible to realize a line pitch proportional to the size of characters specified by the character size information. Note that the determination in step 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 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. Paper feed required to print! (total set feed amount of paper feeds performed to print the same character string) is subtracted, and the paper feed direction is the opposite direction since the result of the subtraction is negative. 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(行ピッチ0)は、改行量0を指定する。Line feed O (line pitch 0) specifies a line feed amount of 0.

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

したがって改行0が指定されている場合、文字サイズ情
報で指定された文字サイズに無関係に行ピッチO(O改
行)が実現される。なお縦ドツト数が24の場合には、
印刷時の総紙送り量がOとなることから、印刷後の紙送
り毒も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 total paper feed amount during printing is O, the paper feed poison 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 feed end after printing the character string on the first line is +8/120 (inches) multiplied by the vertical magnification '?
; Subtract the paper feed amount required to print the same character string (the total paper feed amount performed to print the same character string) from the line pitch for the resulting character string of the specified character size. This is the absolute value of the value, and the paper feed direction is the direction indicated by the sign (positive/negative) of the subtraction result. 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 should be 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 total paper feed amount of the paper feeds performed to print the same character string), that is, 16/120 (inches), and the subtraction result is positive in the paper feed direction. Therefore, the direction is forward. In this case, if the vertical magnification is an integer, the specific paper feed urn will be the character size of the magnification 1, that is, 16/120 (inches), and will be a fixed amount. 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 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の文字列とを
隙間なく繋ぐことができることから、例えば拡大された
罫線(特に縦罫線)を作成する場合に好適する。なお、
横罫線を作成する場合には、文字量間隔を0とすればよ
い。
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 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 forward line break of 20/120 (inches) when using full-width characters as the standard, and line feeds 1.2 and 3.4 specify line breaks in the forward direction by 20/120 (inches) when using full-width characters as the standard. 30/120.40/120.45/120.6
Specifies forward paper feed of 0/120 (inch).

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

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

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

第9図は全角文字と4倍角文字に網かけを施すために改
行Oを用いた場合の印刷例を文書領域21および行修飾
領域22の内容(一部)に対応して示す。この実施例で
は、網かけパターンは、1つの文字として独立して用意
されている。この場合、文書中の第1行第1列に文字コ
ードAを、第2行第1列に網かけコードをそれぞれ用意
し、行ピッチについては例えば第1行で改行0を指定し
、文字サイズについては第1行および第2行で全角文字
を指定すると、第1行の印刷で印刷された文字Aに重ね
て同サイズの網かけパターンが第2行の印刷で印刷され
る。もし多数の文字列に対して網かけを施すときには、
網かけコードの列を入力し、その文字間をOとすればよ
い。以上は、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 a character code A for the first row and first column of the document, a shading code for the second row and first column, set the line pitch to 0 for the first line, and set the font size to When full-width characters are specified in the first and second lines, a half-width pattern of the same size is printed in the second line, overlapping the character A printed in the first line. If you want to shade a large number of strings,
All you have to do is input a string of shading codes and set the character spacing to 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 ).

さて、CPUl0はステップ842またはステップ84
3の紙送りを実行すると、印刷行数Mを−1しくステッ
プ844)、MがOとなったか否かを判定する(ステッ
プ545)。もしMがOでなければ、印刷すべき文書行
が残っていることから、CPU10は印刷行ポインタK
を+1して次の文書行へ進゛めた後(ステップ846)
、ステップ813の処理に戻る。これに対してMがOで
あれば、c p u ioは第に行の行修飾情報で印刷
停止が指定されていたか否かを判定する(ステップ54
1)。もし印刷停止が指定されていれば、CP tJ 
10はステップ$4の処理に戻り、印刷メニュー表示を
行なう。これによりオペレータは、プリンタ43の印刷
に供される印刷リボンを交換して色種を変えたり、左余
白値更には縦/横印刷の設定変更などが行なえる。
Now, CPU10 performs 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 incrementing +1 and proceeding to the next document line (step 846)
, the process returns to step 813. On the other hand, if M is O, CPU io first determines whether printing stop was specified in the line modification information of the th line (step 54).
1). If printing stop is specified, CP tJ
Step 10 returns to step $4 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 has been completed, and ends print control.

[発明の効果] 以上詳述したようにこの発明によれば、指定された改行
ピッチ値を文字サイズに応じた値に変換して実際の改行
量を制御することにより、文字サイズに釣合う改行ピッ
チがオペレータに負担をかけることなく実現でき、文字
サイズが考慮されたバランスのよい印刷文書を簡単に作
成することができる。また、この発明によれば、選択指
定される改行ピッチ値に改行方向を定義する正/負符号
をもたせ、文字サイズに応じた改行量を実現する場合に
その方向までも制御することにより文字サイズ可変機能
が充分に発揮できるので、多様な印刷文書を作成するこ
とができる。
[Effects of the Invention] As detailed above, according to the present invention, a specified line break pitch value is converted to a value according to the font size and the actual line break amount is controlled, thereby creating a line break that is commensurate with the font size. The pitch can be realized without putting a burden on the operator, and a well-balanced printed document that takes character size into consideration can be easily created. Further, according to the present invention, the line feed pitch value that is selected and specified has a plus/minus sign that defines the line feed direction, and when realizing the line feed amount according to the character size, the character size is controlled even in that direction. Since variable functions can be fully utilized, a wide variety of printed documents can be created.

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

第1図はこの発明の一実施例を示すブロック構成図、第
2図は第1図のRA M 20のメモリマツプ、第3図
はRAM20内に設けられる文書領域21と行修飾領域
22の構造を説明する図、第4図は印刷制御手順を示す
フローチャート、第5図はRAM20内に設けられる印
刷イメージ領域26の構成を模式的に示す図、第6図は
拡大文字パターンの一例を示す図、第7図は第6図の文
字パターンの印刷イメージ領域26内記憶例を示す図、
第8図乃至第10図は、文書印刷例を文言領域21およ
び行修飾領域22の内容に対応させて示す図である。 10・・・CPU、12・・・ROM、20・・・RA
M、21・・・文書領域、22・・・行修飾領域、26
・・・印刷イメージ領域、33・・・キーボード(K8
)、37・・・表示器、43・・・プリンタ(PRT)
、51〜63・・・レジスタ。 出願人代理人 弁理士 鈴 江 武 彦第1図 第8図 垣−か 月1 ?′@を 第9図
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a memory map of the RAM 20 shown in FIG. 1, and FIG. 3 shows the structure of the document area 21 and line modification area 22 provided in the RAM 20. 4 is a flowchart showing a 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 a diagram showing an example of an enlarged character pattern. FIG. 7 is a diagram showing an example of storing the character pattern of FIG. 6 in the print image area 26;
FIGS. 8 to 10 are diagrams showing document printing examples in correspondence with the contents of the wording area 21 and the line modification area 22. FIG. 10...CPU, 12...ROM, 20...RA
M, 21... Document area, 22... Line modification area, 26
...Print image area, 33...Keyboard (K8
), 37...Display unit, 43...Printer (PRT)
, 51-63...Register. Applicant's representative Patent attorney Takehiko Suzue '@ in Figure 9

Claims (1)

【特許請求の範囲】[Claims] 出力対象となる文書情報の行を単位に、改行方向を示す
正/負符号を有する複数の改行ピッチ値の1つを選択指
定する第1指定手段と、上記文書情報の行を単位に複数
の文字倍率の1つを選択指定する第2指定手段と、この
第2指定手段の指定する倍率で印刷文書のパターン展開
を行なうパターン展開手段と、このパターン展開手段に
より展開された印刷文書パターンの行を上記倍率に応じ
1回で或は複数回に分けて印刷する印刷手段と、上記印
刷文書パターンの行を印刷するのに必要な行印刷紙送り
量を上記倍率をもとに求める手段と、上記第1指定手段
の指定する改行ピッチ値を上記第2指定手段の指定する
倍率に比例した改行紙送り量に変換する変換手段と、該
当行の印刷毎に上記改行紙送り量と上記行印刷紙送り量
との差分の符号の示す方向へ同差分の絶対値分だけ印刷
用紙を紙送りさせる紙送り手段とを具備することを特徴
とする文書作成装置。
a first specifying means for selecting and specifying one of a plurality of line break pitch values having plus/minus signs indicating the line feed direction for each line of document information to be output; a second specifying means for selecting and specifying one of the character magnifications; a pattern developing means for developing a pattern of a printed document at a magnification specified by the second specifying means; and a line of a printed document pattern developed by the pattern developing means. printing means for printing once or in multiple times according to the magnification; means for determining the line printing paper feed amount necessary to print the lines of the print document pattern based on the magnification; a converting means for converting the line feed pitch value specified by the first specifying means into a line feed feed amount proportional to the magnification specified by the second specifying means; and converting the line feed feed amount and the line printing each time a corresponding line is printed. 1. A document creation device comprising: paper feeding means for feeding printing paper by the absolute value of the difference in the direction indicated by the sign of the difference from the paper feeding amount.
JP60129218A 1985-06-14 1985-06-14 Document creation device Expired - Lifetime JPH0773934B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPS61286176A true JPS61286176A (en) 1986-12-16
JPH0773934B2 JPH0773934B2 (en) 1995-08-09

Family

ID=15004058

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH0773934B2 (en)

Citations (4)

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

Patent Citations (4)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
JPH08161309A (en) Word processor
JPS61286176A (en) Document-forming device
JPS61286177A (en) Document-forming device
JPS61286157A (en) Document former
JPH03156668A (en) Document preparing device
JPH0469917B2 (en)
JPS61286156A (en) Document former
JPH0628025B2 (en) Document creation device
JPH0711751B2 (en) Document creation device
JPH0346020A (en) Document processing system
JPH03177963A (en) Kanji classification method, kanji classification table and kanji processor
JPS61128321A (en) Display system of high density character
JPH0280270A (en) Document preparation device
JPH07105197A (en) Document processor
JPH02255965A (en) Word processor
JPH02159669A (en) Document preparing device
JPH07302261A (en) Japanese word processor
JPH0256670A (en) Document processing device
JPH01189691A (en) Image processor
JPH079701A (en) Output device of order of making strokes of chinese character
JPS63264386A (en) Document data printer
JPH04151760A (en) Document preparing device
JPS59168532A (en) Documentation device
JPH0239985A (en) Color printing method
JPH0848063A (en) Document composing device