JPH0711751B2 - Document creation device - Google Patents

Document creation device

Info

Publication number
JPH0711751B2
JPH0711751B2 JP60129219A JP12921985A JPH0711751B2 JP H0711751 B2 JPH0711751 B2 JP H0711751B2 JP 60129219 A JP60129219 A JP 60129219A JP 12921985 A JP12921985 A JP 12921985A JP H0711751 B2 JPH0711751 B2 JP H0711751B2
Authority
JP
Japan
Prior art keywords
character
line
print
document
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60129219A
Other languages
Japanese (ja)
Other versions
JPS61286884A (en
Inventor
二郎 吉井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP60129219A priority Critical patent/JPH0711751B2/en
Publication of JPS61286884A publication Critical patent/JPS61286884A/en
Publication of JPH0711751B2 publication Critical patent/JPH0711751B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、印刷文書の文字間間隔を文字サイズに応じ
て制御する文書作成装置に関する。
Description: TECHNICAL FIELD OF THE INVENTION The present invention relates to a document creating apparatus for controlling an inter-character spacing of a printed document according to a character size.

[発明の技術的背景とその問題点] 日本語ワードプロセッサ等、近年の文書作成装置には、
印刷文字サイズ並びに文字間間隔が可変できるものが多
くなっている。
[Technical Background of the Invention and Problems] In recent document creation devices such as Japanese word processors,
In many cases, the print character size and the character spacing can be changed.

従来、この種の文書作成装置では、文字サイズと文字間
間隔とは独立に管理されているため、文字サイズと釣合
う文字間間隔を指定することは困難であり、バランスの
とれた印刷文書を作成することは困難であった。
Conventionally, in this type of document creation device, since the character size and the character spacing are managed independently, it is difficult to specify the character spacing that matches the character size. It was difficult to create.

[発明の目的] この発明は上記事情に鑑みてなされたものでその目的
は、指定された文字間間隔値を文字サイズに応じた値に
交換して実際の文字間間隔量を制御することにより、文
字サイズに釣合う文字間間隔がオペレータに負担をかけ
ることなく実現でき、文字サイズが考慮されたバランス
のよい印刷文書が簡単に作成できる文書作成装置を提供
することにある。
[Object of the Invention] The present invention has been made in view of the above circumstances, and an object thereof is to exchange a specified inter-character space value with a value according to a character size and control an actual inter-character space amount. An object of the present invention is to provide a document creation apparatus that can realize an inter-character space that matches a character size without imposing a burden on an operator and can easily create a well-balanced print document in which the character size is taken into consideration.

[発明の概要] この発明では、出力対象となる文書情報の行を単位に複
数の第1文字間間隔値の1つを選択指定する第1指定手
段と、上記文書情報の行を単位に複数の文字倍率の1つ
を選択指定する第2指定手段との2つの指定手段が設け
られる。印刷時においては、第2指定手段の指定する倍
率で印刷文書のパターン展開が行われ、この展開された
印刷文書パターンの行が、上記の倍率に応じて1回で或
は複数回に分けて印刷される。この際、第1指定手段の
指定する第1文字間間隔値が上記の倍率に比例した第2
文字間間隔値に変換され、第2文字間間隔値の示す文字
間間隔で印刷文書パターンの行が印刷される。
[Summary of the Invention] In the present invention, a first designating means for selectively designating one of a plurality of first inter-character space values for each line of document information to be output, and a plurality of document information for each line of document information. There are provided two designating means, a second designating means for selectively designating one of the character magnifications. At the time of printing, the pattern of the print document is expanded at the magnification specified by the second specifying means, and the line of the expanded print document pattern is divided once or plural times according to the above magnification. Printed. At this time, the first inter-character spacing value designated by the first designating means is proportional to the above second magnification.
The line of the print document pattern is converted into the inter-character space value and the line of the print document pattern is printed at the inter-character space indicated by the second inter-character space value.

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

20はRAMであり、第2図に示すように、入力された文書
の文字コード列を記憶する文書領域21、各行毎の行修飾
情報を記憶する行修飾領域22、1文書当り最大3文字の
外字を登録する外字パターン領域23を有している。RAM2
0は、更に、1文書当り最大5つまでの語句を登録する
語句登録領域24、かな漢字変換で生じた同音異義語を選
択したときに、どの単語が選択されたかを記憶し、次回
以降最優先でその単語を表示する学習機能のために使用
される暫定辞書領域25、全角文字による1行印刷分の印
刷イメージ容量をもつ印刷イメージ領域26、および印刷
制御に供されるレジスタ51〜63の領域を有している。
Reference numeral 20 denotes a RAM, and as shown in FIG. 2, a document area 21 for storing a character code string of an input document, a line modification area 22 for storing line modification information for each line, and a maximum of 3 characters per document. It has an external character pattern area 23 for registering an external character. RAM2
0 indicates a word registration area 24 for registering up to 5 words per document, which word is selected when a homonym generated by kana-kanji conversion is selected, and is given the highest priority from the next time. The temporary dictionary area 25 used for the learning function of displaying the word, the print image area 26 having a print image capacity for printing one line of double-byte characters, and the areas of the registers 51 to 63 used for print control. have.

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

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

第3図はRAM20内に設けられる文書領域21と行修飾領域2
2の構造を説明する図あり、文書情報(文字コード列)
と行修飾情報とが互いに行を単位に対応付けされた状態
で格納される。行修飾情報は、文字の白抜き(並びに影
付け)を指定する白抜きフラグ、文字の形態(回転,斜
体)を指定する3ビットの回転・斜体情報、文字サイズ
を指定する4ビットの文字サイズ情報、印刷途中での印
刷停止を指定する印刷停止フラグ、文字間間隔を指定す
る2ビットの文字間間隔情報、および行ピッチ(改行ピ
ッチ)を指定する4ビットの行ピッチ情報から成る。
FIG. 3 shows a document area 21 and a line modification area 2 provided in the RAM 20.
There is a diagram explaining the structure of 2, and the document information (character code string)
And the line decoration information are stored in a state of being associated with each other on a line basis. The line decoration information is a white flag that specifies the outline (and shadow) of the character, 3-bit rotation / italic information that specifies the form (rotation, italic) of the character, and 4-bit character size that specifies the character size. Information, a print stop flag that specifies a print stop during printing, 2-bit inter-character space information that specifies a character space, and 4-bit line pitch information that specifies a line pitch (line feed pitch).

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

なお、上記のキー指定が行なわれない場合(情報)につ
いては、予め定められた標準の設置値が適用される。こ
の標準設定値は、文字サイズであれば24(縦)×24
(横)ドットを示す1であり、文字間間隔(この例では
標準文字サイズ、即ち全角文字サイズを基準とする文字
間間隔)であれば3ドットを示す1であり、そして行ピ
ッチ(この例では全角文字サイズを基準とする行ピッ
チ)であれば30/120インチ(3ドット分が2/120インチ
であるこの例では45ドット分)を示す1(この値は画面
上の表示文字であり、実際には“0100")である。
When the above key designation is not made (information), a preset standard installation value is applied. This standard setting is 24 (vertical) x 24 for character size.
(Horizontal) is 1 indicating a dot, and is 1 indicating 3 dots in the case of character spacing (character spacing based on the standard character size, that is, full-width character size in this example), and line pitch (in this example If the line pitch is based on the full-size character size, then 30/120 inches (3 dots are 45 dots in this example, which is 2/120 inches) is 1 (this value is the display character on the screen. , Actually "0100").

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

この実施例では、CPU10による印刷制御は、第4図のフ
ローチャートに従って行なわれる。
In this embodiment, the print control by the CPU 10 is performed according to the flowchart of FIG.

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

CPU10はステップS3を実行すると印刷メニューを表示す
る(ステップS4)。この状態では、オペレータは左余白
や縦/横印刷の指定が行なえる。この後[選択]キーが
キー操作され、その旨をCPU10が判断すると(ステップS
5)、CPU10はRAM20内に確保された行修飾領域22の第N
行の行修飾情報を参照し、その印刷停止フラグをチェッ
クする(ステップS6)。そしてCPU10は、印刷停止フラ
グにより印刷停止が指定されているか否かを判断し(ス
テップS7)、NOであれば第N行に対応する文書領域21内
の文書行をチェックする(ステップS8)。そしてCPU10
は該当文書行に文字コードが無いかどうか、即ち文書EN
Dであるか否かの判断を行ない(ステップS9)。もし文
書ENDでなければ、次期印刷開始行として設定された第
N行は、これから印刷しようとする文書行の1つであっ
て次の印刷サイクルでの印刷対象文書行(の先頭行)で
ないことから、CPU10はNを+1として新たな次期印刷
開始行Nを設定する(ステップS10)。ステップS10が実
行されるとステップS6に戻り、新たに設定された第N行
について上記の処理(印刷停止指定の有無判定、文書EN
Dの判定)が行なわれる。
CPU10 will display a print menu, if step S3 is performed (step S4). In this state, the operator can specify left margin and vertical / horizontal printing. After that, the [Select] key is operated by the key, and when the CPU 10 judges to that effect (step S
5) The CPU 10 is the Nth row modification area 22 secured in the RAM 20.
By referring to the line decoration information of the line, the print stop flag is checked (step S6). Then, the CPU 10 determines whether or not the print stop is designated by the print stop flag (step S7), and if NO, checks the document line in the document area 21 corresponding to the Nth line (step S8). And CPU10
Indicates whether there is no character code in the relevant document line, that is, document EN
It is determined whether or not it is D (step S9). If it is not the 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 document line to be printed in the next print cycle (first line). Therefore, the CPU 10 sets N to +1 and sets a new next print start row N (step S10). When step S10 is executed, the process returns to step S6, and the above-described processing is performed for the newly set Nth line (determination of presence or absence of print stop designation, document EN
(D judgment) is performed.

さてCPU10は、ステップS7で第N行の印刷停止が指定さ
れているものと判定すると、或はステップS9で文書END
を判定すると、N−1の演算を行ない、今回の印刷サイ
クルでの印刷対象文書行数(印刷結果としての行数でな
いことに注意)を示す印刷行数Mを求める(ステップS1
1)。この印刷行数MはRAM20内に確保されたレジスタ53
に設定される。次にCPU10はMが0であるか否かの判定
を行ない(ステップS12)、M=0であれば(印刷行が
無いことから)CPU10は印刷制御を終了する。これに対
してM=0でなければ、CPU10は印刷準備のために、ま
ず印刷行ポインタKの示す第K行の行修飾情報を行修飾
領域22から取出す(ステップS13)。次にCPU10は、実際
の改行量Tを求めるためにステップS14を実行する。
When the CPU 10 determines in step S7 that the print stop of the Nth line is designated, or in step S9, it ends the document END.
If N is determined, N-1 is calculated to obtain the number of print lines M indicating the number of document lines to be printed in the current print cycle (note that this is not the number of lines as the print result) (step S1
1). This print line number M is a register 53 secured in the RAM 20.
Is set to. Next, the CPU 10 determines whether M is 0 (step S12). If M = 0, the CPU 10 ends the print control (because there is no print line). On the other hand, if M = 0 is not satisfied, the CPU 10 first extracts the line decoration information of the Kth line indicated by the print line pointer K from the line decoration area 22 in preparation for printing (step S13). Next, the CPU 10 executes step S14 to obtain the actual line feed amount T.

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

なお、行ピッチ情報の示す改行量をn/120の形式で表現
するのは、この実施例におけるプリンタ43の紙送りの単
位が1/120(インチ)であることによる。したがってn/1
20はn単位分の紙送りを示す。同様に、改行量Tである
(m・n/24)/120は、指定倍率に比例した(m・n/24)
単位分の改行紙送りを示す。但しn/120,(m・n/24)/1
20は整数でないため、実際にはn/120のうちのnの部
分,(m・n/24)/120のうちの(m・n/24)の部分だけ
がROM12内テーブル,RAM20内レジスタ54に記憶されるよ
うになっている。この実施例において、nは、第3図か
らも明らかなように改行方向を示す正/負符号を有して
いる。なお上記のm,m′,nを、テーブルに代えて印刷制
御用のプログラム中に予め設定しておくことも可能であ
る。
The line feed amount indicated by the line pitch information is expressed in the form of n / 120 because the paper feeding unit of the printer 43 in this embodiment is 1/120 (inch). Therefore n / 1
20 indicates the paper feed for n units. Similarly, the line feed amount T (m · n / 24) / 120 is proportional to the specified magnification (m · n / 24).
Indicates a line feed for a unit. However, n / 120, (m ・ n / 24) / 1
Since 20 is not an integer, actually only the n part of n / 120 and the (m · n / 24) part of (m · n / 24) / 120 are the ROM12 internal table and RAM20 internal register 54. It will be remembered in. In this embodiment, n has a positive / negative sign indicating the line feed direction, as is apparent from FIG. It is also possible to set the above m, m ′, n in advance in the print control program instead of the table.

さて、プリンタ43の印字ヘッドのドット数は全角文字の
縦ドット数に一致する24ドットである。このため拡大文
字等、縦ドット数が24ドットを越える文字の文字列は、
1ライン分の印字ヘッド駆動操作で印刷するこができ
ず、何回かに分けて印刷する必要がある。そこでこの実
施例では、縦24ドットを1スライスとした場合の印刷対
象文字(の文字パターン)のスライス数Sを求めるよう
にしている(ステップS15)。このスライス数Sは、指
定された文字倍率、更には文字形態をもとに求められる
ものであるが、ここでは簡単のために倍率m/24から求め
られるものとする。但し、m/24が整数とならない場合に
は、その値より大きく且つその値に最も近い整数が採用
される。例えばm=32(サイズ2指定)の場合であれ
ば、S=2が採用される。ステップS15で求められたス
ライス数Sは、RAM20内に確保されたレジスタ55に設定
される。CPU10はステップS15を終了すると、1ライン分
の印字ヘッド駆動操作での印刷対象スライスを示すスラ
イス番号ポインタLを0に初期設定する。L=0は先頭
スライスを示す。
Now, the number of dots of the print head of the printer 43 is 24, which corresponds to the number of vertical dots of a double-byte character. For this reason, character strings of characters with vertical dots exceeding 24 dots, such as enlarged characters, are
Printing cannot be performed by operating the print head for one line, and it is necessary to perform printing several times. Therefore, in this embodiment, the number S of slices of (the character pattern of) the print target character when the vertical 24 dots are set as one slice is obtained (step S15). The number of slices S is obtained based on the designated character magnification and the character form, but here it is obtained from the magnification m / 24 for simplicity. However, when m / 24 is not an integer, an integer larger than that value and closest to that value is adopted. For example, if m = 32 (size 2 specified), S = 2 is adopted. The number S of slices obtained in step S15 is set in the register 55 secured in the RAM 20. After completing step S15, the CPU 10 initializes the slice number pointer L indicating the slice to be printed in the print head driving operation for one line to 0. L = 0 indicates the first slice.

次にCPU10は第k行の行修飾情報中の文字間間隔情報を
もとに、同情報の指定する全角文字を基準とする文字間
間隔(n′ドット)を例えばROM12内に用意された文字
間間隔テーブル(図示せず)から求め、n′に横倍率
m′/24を掛けることにより倍率に比例した実際の文字
間間隔U(単位;ドット)を求める(ステップS17)。
この文字間間隔UはRAM20内に確保されたレジスタ61に
設定される。
Next, based on the character spacing information in the line modification information of the k-th line, the CPU 10 determines the character spacing (n 'dots) based on the double-byte character specified by the information, for example, the character prepared in ROM12. An actual character-to-character spacing U (unit: dot) proportional to the magnification is obtained by multiplying n'by the lateral magnification m '/ 24 from a spacing table (not shown) (step S17).
The inter-character space U is set in the register 61 secured in the RAM 20.

CPU10は、ステップS17を実行すると、印刷行ポインタK
の示す(文書領域21内の)第K行の文字列の文字数を第
K行の印刷文字数VとしてRAM20内のレジスタ57に設定
する(ステップS18)。そしてCPU10は、第K行の文字列
から次に取出すべき文字の文字位置(文字桁)を指定す
る第K行内文字ポインタPを1(先頭文字桁)に初期設
定する(ステップS19)。この文字ポインタPは、RAM20
内のレジスタ58に設定される。
When the CPU 10 executes step S17, the print line pointer K
The number of characters in the character string of the Kth row (in the document area 21) is set in the register 57 in the RAM 20 as the print character number V of the Kth row (step S18). Then, the CPU 10 initializes the character pointer P in the Kth row, which specifies the character position (character digit) of the character to be extracted next from the character string in the Kth row, to 1 (first character digit) (step S19). This character pointer P is RAM20
It is set in the register 58 inside.

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

第5図は印刷イメージ領域26の構成を1ライン分の印字
ヘッド駆動操作での印刷領域(1スライス印刷領域)に
対応して模式的に示す。図から明らかなように、印刷イ
メージ領域26の0〜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 schematically shows the structure of the print image area 26 corresponding to the print area (1 slice print area) in the print head driving operation for one line. As can be seen from the figure, at addresses 0 to 3 of the print image area 26 (relative addresses in the print image area 26), the 0th dot row (24 dots) of the print area for one slice is 8 dots (1 byte). ) Corresponds to each area divided into three. Generally, the print image area 26
The 3n, 3n + 1, 3n + 2 addresses (relative addresses in the print image area 26) are the areas obtained by dividing the n-th dot row (24 dots) of the printing area for one slice into 8 dot (1 byte) units. It corresponds. Therefore, if the left margin for d dots is required, the write start address Q is 3d as described above.

CPU10はステップS20を実行すると第K行第P列の文字の
スライスLの文字パターンの印刷イメージ領域26内書込
み終了アドレスRを求める(ステップS21)。この書込
み終了アドレスRは、スライスLの文字パターンの最終
ドット列の先頭の8ビット対応するもので、横ドット数
がm′のこの例では、書込み開始アドレスQに3(m′
−1)を加えることにより求められる。書込み終了アド
レスRはRAM20内のレジスタ60に設定される。
After executing step S20, the CPU 10 obtains the write end address R in the print image area 26 of the character pattern of the slice L of the character on the Kth row and the Pth column (step S21). The write end address R corresponds to the first 8 bits of the last dot row of the character pattern of the slice L. In this example in which the number of horizontal dots is m ', the write start address Q is 3 (m').
It is obtained by adding -1). The write end address R is set in the register 60 in the RAM 20.

CPU10は書込み終了アドレスRを求めると同アドレスR
と書込み最終アドレスLEとの大小を比較し、RがLEより
大きいか否かを判定する(ステップS22)。この書込み
最終アドレスLEは、例えば第5図に示すように、1スラ
イス印刷領域の最終ドット列(即ち印刷境界)の先頭の
8ドットを示すものである。したがってステップS22よ
り、第K行第P列の文字のスライスLの文字パターンの
一部が印刷境界を越えてしまうか否かを予め判定するこ
とができる。
When the CPU 10 obtains the write end address R, the same address R
And the final write address LE are compared in size to determine whether R is larger than LE (step S22). The write final address LE indicates the first 8 dots of the final dot row (that is, the printing boundary) of the 1-slice printing area, as shown in FIG. 5, for example. Therefore, it is possible to determine in advance from step S22 whether or not a part of the character pattern of the slice L of the character on the Kth row and the Pth column crosses the print boundary.

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

CPU10は、ステップS22の判定がNOの場合、印刷行ポイン
タKおよび文字ポインタPの指定する第K行第P列の文
字(文字コード)を文書領域21から取出し(ステップS2
3)、同文字コードが(パターン書込みが不要な)改行
コードであるか否かを判定する(ステップS24)。もし
改行コードでなければ、パターン書込みが必要であるこ
とから、文字ポインタPを+1して次の文字位置に進め
た後に(ステップS25)、ステップS23で取出した文字コ
ードに対応する文字パターンをROM12内の文字パターン
領域16から取出す(ステップS26)。文字パターン領域1
6内に記憶されている文字パターンは、24×24ドット(7
2バイト)構成の全角文字パターンである。文字パター
ン領域16から取出された文字パターンは、RAM20内の所
定の1文字記憶領域(図示せず)に一時格納される。
If the determination in step S22 is NO, the CPU 10 retrieves the character (character code) in the Kth row and the Pth column designated by the print row pointer K and the character pointer P from the document area 21 (step S2
3), it is determined whether or not the same character code is a line feed code (pattern writing is unnecessary) (step S24). If it is not a line feed code, it is necessary to write the pattern, so after the character pointer P is incremented by 1 to advance to the next character position (step S25), the character pattern corresponding to the character code fetched in step S23 is stored in the ROM 12 It is taken out from the character pattern area 16 (step S26). Character pattern area 1
The character patterns stored in 6 are 24 × 24 dots (7
It is a double-byte character pattern consisting of 2 bytes. The character pattern extracted from the character pattern area 16 is temporarily stored in a predetermined one-character storage area (not shown) in the RAM 20.

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

CPU10はステップS29を実行すると、書込み終了アドレス
Rに文字間間隔U(ドット)の3倍値を加えることによ
り、書込み開始アドレスQが次の1文字(のスライス
分)の書込み開始アドレスを示すように同アドレスQを
更新する(ステップS30)。これによりUドットの文字
間間隔が実現される。文字間間隔Uは、前記したように
ステップS17で求められるもので、文字サイズ情報で指
定される全角文字を基準とする文字間間隔ではなく、こ
の指定文字間間隔に(文字サイズ情報で指定される)倍
率(横倍率)を掛けて得られる、即ち倍率に比例した実
際の文字間間隔である。したがって、この実施例では、
全角文字のイメージで文字間間隔を指定しながら、実際
の文字サイズに適合した文字間間隔が自動的に実現され
る。
When the CPU 10 executes step S29, the write start address Q indicates the write start address of the next one character (for its slice) by adding the triple value of the inter-character space U (dot) to the write end address R. The same address Q is updated to (step S30). This realizes a U-dot spacing between characters. The inter-character spacing U is obtained in step S17 as described above, and is not the inter-character spacing based on double-byte characters specified by the character size information, but the specified inter-character spacing (specified by the character size information. It is obtained by multiplying by a magnification (horizontal magnification), that is, an actual intercharacter space proportional to the magnification. Therefore, in this example,
The character spacing that matches the actual character size is automatically realized while specifying the character spacing with the full-width character image.

CPU10はステップS30を実行すると、印刷文字数Vを−1
し(ステップS31)、Vが0となったか否かの判定を行
なう(ステップS32)。もしVが0でなければ、CPU10は
第K行に未処理文字が残されているものとしてステップ
S21に戻る。これに対してV=0であれば、CPU10は第K
行の文字が全て取出され対応する文字パターン(スライ
スLの文字パターン)が印刷イメージ領域26に書込まれ
たものとして、ステップS33から始まる第K行の印刷の
ためのプリンタ43制御を中心とする処理へ進む。このス
テップS33から始まる処理は、たとえV=0でなくて、
もステップS22の判定がYESの場合(即ち書込み終了アド
レスRが書込み最終アドレスLEより大きい場合)、或は
ステップS24の判定がYES場合(即ち文書領域21から取出
した文字コードが改行コードの場合)にも、即ち該当す
る第K行第P列の文字の印刷を禁止或は不要とする場合
にも実行される。
When the CPU 10 executes step S30, the print character number V is -1.
Then, it is determined whether or not V has become 0 (step S31) (step S32). If V is not 0, CPU 10 determines that unprocessed characters are left in the Kth line
Return to S21. On the other hand, if V = 0, the CPU 10 determines the Kth
Assuming that all the characters in the line have been taken out and the corresponding character pattern (character pattern of slice L) has been written in the print image area 26, mainly the printer 43 control for printing the Kth line starting from step S33. Go to processing. The process starting from step S33 is not V = 0,
Also, if the determination in step S22 is YES (that is, the write end address R is larger than the write end address LE), or if the determination in step S24 is YES (that is, the character code extracted from the document area 21 is a line feed code). Also, that is, when the printing of the character of the corresponding Kth row and Pth column is prohibited or unnecessary, the processing is executed.

CPU10は、まず文字ポインタPが1を示しているか否
か、即ちPを+1するステップS25が1回も実行されて
いないか否かの判定を行なう(ステップS33)。もしP
=1でない場合には、CPU10は第K行の先頭文字が改行
コードでない(即ち完全改行でない)ものと判断し、即
ち印刷すべき文字パターンが印刷イメージ領域26に書き
込まれているもの判断し、プリンタ43を制御して印刷イ
メージ領域26の内容を印刷させる(ステップS34)。次
にCPU10は印刷イメージ領域26をクリアし(ステップS3
5)、しかる後スライス数Sを−1する(ステップS3
6)。そしてCPU10はスライス数Sが0であるか否か、即
ち第K行の文字列の印刷が終了したか否かを判定する
(ステップS37)。
The CPU 10 first determines whether or not the character pointer P indicates 1, that is, whether or not step S25 for incrementing P by 1 has not been executed at all (step S33). If P
If = 1 is not satisfied, the CPU 10 determines that the first character of the Kth line is not a line feed code (that is, not a complete line feed), that is, determines that the character pattern to be printed is written in the print image area 26, The printer 43 is controlled to print the contents of the print image area 26 (step S34). Next, the CPU 10 clears the print image area 26 (step S3
5) Thereafter, the number of slices S is decremented by 1 (step S3
6). Then, the CPU 10 determines whether or not the slice number S is 0, that is, whether or not the printing of the character string in the Kth row is completed (step S37).

ステップS37の判定がNOの場合、CPU10は第K行の印刷が
終了していないものと判断して、まずスライス番号ポイ
ンタLを+1し、次の印刷対象となるスライスのスライ
ス番号を指定する(ステップS38)。そしてCPU10は、プ
リンタ43を制御して、次のスライスがステップS34で印
刷されたスライスに繋がるように(即ちスライス間が0
となるように)、印刷用紙を印字ヘッド分(全角文字の
縦ドット分)だけ順方向に紙送りさせる(ステップS3
9)。前記したようにプリンタ43の紙送りの単位は1/120
(インチ)、印字ヘッドのドット構成は24ドット、そし
てその3ドット分は2/120インチである。したがってCPU
10は、ステップS39において、16/120(インチ)の順方
向紙送りをプリンタ43に対して行なわせることになる。
CPU10は、ステップS39を実行すると、ステップS18に戻
り、前回と同じ第K行の文字列について次のスライスの
印刷のための処理を行なう。
When the determination in step S37 is NO, the CPU 10 determines that the printing of the Kth row has not been completed, first increments the slice number pointer L by 1, and specifies the slice number of the slice to be printed next ( Step S38). Then, the CPU 10 controls the printer 43 so that the next slice is connected to the slice printed in step S34 (that is, the interval between slices is 0).
So that the print paper is fed in the forward direction by the amount corresponding to the print head (vertical dots of full-width characters) (step S3
9). As described above, the paper feeding unit of the printer 43 is 1/120.
(Inch), the dot composition of the print head is 24 dots, and the three dots are 2/120 inch. Therefore CPU
Step 10 causes the printer 43 to carry out 16/120 (inch) forward paper feeding in step S39.
After executing step S39, the CPU 10 returns to step S18 and performs the process for printing the next slice for the same character string in the Kth row as the previous time.

一方ステップS37の判定がYESの場合、即ち第K行の文字
列の印刷が終了してスライス数Sが0となった場合、CP
U10は改行量Tの示す改行を実現するために、Lに16/12
0を掛けた値(即ち第K行の文字列の印刷に要した紙送
り量)をT即ち(m・n/24)/120から減じ、その結果を
改めて改行量Tとする(ステップS40)。この新たに求
められた改行量Tの絶対値は、第K行印刷終了後に行な
うべき改行紙送りのための紙送り量(インチ)を示し、
同じく符号(正/負符号)はその紙送り方向を示す。明
らかなように、第K行が全角文字指定(サイズ1)の場
合には、Lは0のままである(即ちステップS39の印刷
用紙送りが実行されない)ことから、新たに求められた
TはステップS14で求められたTに一致する。
On the other hand, when the determination in step S37 is YES, that is, when the printing of the character string in the Kth row is completed and the slice number S becomes 0, CP
U10 has 16/12 in L in order to realize the line feed indicated by the line feed amount T.
The value multiplied by 0 (that is, the paper feed amount required for printing the character string in the Kth row) is subtracted from T, that is, (m · n / 24) / 120, and the result is again set as the line feed amount T (step S40). . The newly obtained absolute value of the line feed amount T indicates the paper feed amount (inch) for the line feed paper feed to be performed after the completion of the printing of the Kth line,
Similarly, the sign (positive / negative sign) indicates the paper feeding direction. As is apparent, when the K-th line specifies double-byte characters (size 1), L remains 0 (that is, the printing paper feed of step S39 is not executed), and thus the newly obtained T is the step. It matches T found in S14.

CPU10はステップS40を実行すると、或はステップS33でY
ES(P=1)を判定すると、紙送り方向を決定するため
に改行量Tが0以上であるか否か(即ち順方向の紙送り
であるか否か)の判定を行なう(ステップS41)。な
お、ステップS33の判定がYESの場合にステップS34の印
刷実行等をスキップするのは、第K行の先頭文字が改行
コードであり、完全改行となるためである。CPU10は、
T≧0であればTインチの順方向紙送りをプリンタ43に
対して行なわせ(ステップS42)、T<0であればTの
絶対値分の逆方向紙送りをプリンタ43に対して行なわせ
る(ステップS43)。これにより、実際の改行ピッチ
が、同改行ピッチと第K行の印刷文字の文字サイズ(縦
ドット数)との比を、行ピッチ情報の指定する全角文字
を基準とする行ピッチ(改行ピッチ)と全角文字の縦ド
ット数との比と一致させる如く実現される。即ち、この
実施例では、全角文字を基準とする行ピッチ(改行ピッ
チ)を指定しながら、文字サイズ情報で指定されたサイ
ズの文字に比例した行ピッチを実現できる。なお、ステ
ップS33の判定がYESの場合(即ち完全改行の場合)に
は、印刷を実行しないことから、ステップS14で求めら
れたTがそのまま用いられる。
The CPU 10 executes step S40, or Y in step S33.
When ES (P = 1) is determined, it is determined whether the line feed amount T is 0 or more in order to determine the paper feed direction (that is, whether the paper feed is in the forward direction) (step S41). . When the determination in step S33 is YES, the execution of printing in step S34 is skipped because the first character of the Kth line is the line feed code, which is a complete line feed. CPU10 is
If T ≧ 0, the printer 43 is made to perform T inch forward paper feed (step S42), and if T <0, it is made to make the printer 43 carry backward paper feed for the absolute value of T. (Step S43). As a result, the actual line feed pitch is the line pitch (line feed pitch) based on the ratio between the line feed pitch and the character size (the number of vertical dots) of the print character on the Kth line based on the double-byte character specified by the line pitch information. Is realized so as to match the ratio of the vertical dot number of the full-width character. That is, in this embodiment, it is possible to realize a line pitch proportional to a character of a size designated by the character size information while designating a line pitch (line feed pitch) with respect to a double-byte character. If the determination in step S33 is YES (that is, complete line feed), printing is not executed, so T obtained in step S14 is used as it is.

さて、この実施例では、行ピッチ情報として、B,O,H,K,
E,1〜4の9種が用意されている(第3図参照)。
Now, in this embodiment, as the row pitch information, B, O, H, K,
Nine kinds of E, 1-4 are prepared (see FIG. 3).

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

改行O(行ピッチ0)は、改行量0を指定する。この場
合第K行の文字列印刷後の紙送り量は、同文字列を印刷
するのに必要な紙送り量(同文字列の印刷のために実施
された紙送りの総紙送り量)の絶対値に一致し、紙送り
方向は逆方向となる。したがって改行Oが指定されてい
る場合、文字サイズ情報で指定された文字サイズに無関
係に行ピッチ0(0改行)が実現される。なお縦ドット
数が24の場合には、印刷時の総紙送り量が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 the Kth row is equal to the paper feed amount required to print the same character string (total paper feed amount of paper feed performed for printing the same character string). It matches the absolute value and the paper feed direction is opposite. Therefore, when the line feed O is designated, the line pitch 0 (0 line feed) is realized regardless of the character size designated by the character size information. When the number of vertical dots is 24, the total paper feed amount at the time of printing is 0, so the paper feed amount after printing is also 0.

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

改行K(罫線改行,1文字分改行)は全角文字を基準とし
た場合に16/120(インチ)だけ順方向に改行することを
指定する。この場合、第K行の文字列印刷後の紙送り量
は、+16/120(インチ)に縦倍率を掛けて得られる指定
文字サイズの文字列に対する行ピッチから、同文字列を
印刷するのに必要な紙送り量(同文字列の印刷のために
実施された紙送りの総紙送り量)を減じた値、即ち16/1
20(インチ)となり、その紙送り方向は減算結果が正と
なることから順方向となる。この際の具体的な紙送り量
は、縦倍率が整数の場合には倍率1の文字サイズ分、即
ち16/120(インチ)となり、固定量となる。一方、縦倍
率が整数でない場合、上記順方向紙送り量は縦倍率の小
数部の示す倍率の文字サイズ分となる。したがって改行
Kが指定されている場合、文字サイズ情報で指定された
文字サイズの文字分だけの改行、即ち行間間隔を0とす
る改行が実現される。この改行Kは、上記のように行間
間隔を0とすることができることから、即ち第1の文字
サイズの第1の文字列と同文字列に続く第2の文字サイ
ズの第2の文字列とを隙間なく繋ぐことができることか
ら、例えば拡大された罫線(特に縦罫線)を作成する場
合に好適する。なお、横罫線を作成する場合には、文字
間間隔を0とすればよい。
Line feed K (ruled line feed, line feed for one character) specifies that the line feed is 16/120 (inch) in the forward direction based on double-byte characters. In this case, the paper feed amount after printing the character string of the Kth row is +16/120 (inch) multiplied by the vertical magnification, from the line pitch for the character string of the specified character size A value obtained by subtracting the required paper feed amount (total paper feed amount of paper feed performed for printing the same character string), that is, 16/1
It becomes 20 (inch), and the paper feed direction is forward because the subtraction result is positive. In this case, when the vertical magnification is an integer, the specific paper feed amount is the character size with a magnification of 1, that is, 16/120 (inch), which is a fixed amount. On the other hand, when the vertical magnification is not an integer, the forward paper feed amount is the character size of the magnification indicated by the fractional part of the vertical magnification. Therefore, when the line feed K is designated, a line feed of only the characters of the character size designated by the character size information, that is, a line feed with a line spacing of 0 is realized. Since this line feed K can set the line spacing 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 following the same character string. Since they can be connected without any gaps, it is suitable when, for example, an enlarged ruled line (especially a vertical ruled line) is created. It should be noted that when creating a horizontal ruled line, the intercharacter spacing may be set to zero.

また改行E(英文改行)は全角文字を基準とした場合に
20/120(インチ)だけ順方向に改行することを指定し、
改行1,2,3,4は、全角文字を基準とした場合に30/120,40
/120,45/120,60/120(インチ)の順方向紙送りを指定す
る。
The line feed E (line feed in English) is based on double-byte characters.
Specifies that 20/120 (inch) line feeds are made in the forward direction,
Line breaks 1, 2, 3, 4 are 30 / 120,40 based on double-byte characters
Specify forward paper feed of / 120,45 / 120,60 / 120 (inch).

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

第8図は、各文書文字列に対し、文字間間隔および行ピ
ッチ(改行量)については同一値を指定し、文字サイズ
については異なる値を指定した場合の文書印刷例を、文
書領域21および行修飾領域22の内容(一部)に対応して
示したものである。第8図において、文字サイズ1,2,3
の文字列の改行ピッチL1,L2,L3は、いずれも同一の改行
量(改行1)が指定されていても、文字サイズ(縦倍
率)に比例した値となる。同様に文字サイズ1,2,3の文
字列の文字間間隔P1,P2,P3は、いずれも同一の文字間2
(6ドット)が指定されていても、文字サイズ(横倍
率)に比例した値となる。
FIG. 8 shows a document printing example in which the same value is specified for the character spacing and the line pitch (line feed amount) and different values are specified for the character size for each document character string. This is shown corresponding to the contents (a part) of the line modification area 22. In Figure 8, character size 1,2,3
Even if the same line feed amount (line feed 1) is designated, the line feed pitches L1, L2, and L3 of the character string are proportional to the character size (vertical magnification). Similarly, the character spacings P1, P2, and P3 of character strings with character sizes 1, 2, and 3 are all the same character spacing 2.
Even if (6 dots) is specified, the value is proportional to the character size (horizontal magnification).

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

第10図は改行B,改行H等を用いて4倍角文字に対する上
付き文字,下付き文字を(全角文字で)作成した場合の
印刷例を文書領域21および行修飾領域22の内容(一部)
に対応して示す。
Fig. 10 shows a print example of creating superscripts and subscripts (in full-width characters) for quadruple-width characters using line feed B, line feed H, etc. )
Corresponding to.

さて、CPU10はステップS42またはステップS43の紙送り
を実行すると、印刷行数Mを−1し(ステップS44)、
Mが0となったか否かを判定する(ステップS45)。も
しMが0でなければ、印刷すべき文書行が残っているこ
とから、CPU10は印刷行ポインタKを+1して次の文書
行へ進めた後(ステップS46)、ステップS13の処理に戻
る。これに対してMが0であれば、CPU10は第K行の行
修飾情報で印刷停止が指定されていたか否かを判定する
(ステップS47)。もし印刷停止が指定されていれば、C
PU10はステップS4の処理に戻り、印刷メニュー表示を行
なう。これによりオペレータは、プリンタ43の印刷に供
される印刷リボンを交換して色種を変えたり、左余白値
更には縦/横印刷の設定変更などが行なえる。これに対
して印刷停止が指定されていなければ、CPU10は文書領
域21内の文書の印刷終了を判断し、印刷制御を終了す
る。
When the CPU 10 executes the paper feed of step S42 or step S43, the number of print lines M is decremented by 1 (step S44),
It is determined whether M has become 0 (step S45). If M is not 0, there is a document line to be printed, so the CPU 10 increments the print line pointer K by 1 to advance to the next document line (step S46), and then returns to the process of step S13. On the other hand, if M is 0, the CPU 10 determines whether or not the print stop is designated by the line modification information of the Kth line (step S47). C if print stop is specified
The PU 10 returns to the process of step S4 and displays the print menu. As a result, the operator can change the color type by exchanging the print ribbon used for printing by the printer 43, change the left margin value, and change the setting of vertical / horizontal printing. On the other hand, if the print stop is not designated, the CPU 10 determines the print end of the document in the document area 21 and ends the print control.

[発明の効果] 以上詳述したようにこの発明によれば、指定された文字
間間隔値を文字サイズに応じた値に変換して実際の文字
間間隔量を制御することにより、文字サイズに釣合う文
字間間隔がオペレータに負担をかけることなく実現で
き、文字サイズが考慮されたバランスのよい印刷文書を
簡単に作成することができる。
[Effects of the Invention] As described in detail above, according to the present invention, the specified character spacing value is converted into a value corresponding to the character size, and the actual character spacing amount is controlled. A well-balanced space between characters can be realized without burdening the operator, and a well-balanced printed document in which the character size is considered can be easily created.

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

第1図はこの発明の一実施例を示すブロック構成図、第
2図は第1図のRAM20のメモリマップ、第3図はRAM20内
に設けられる文書領域21と行修飾領域22の構造を説明す
る図、第4図は印刷制御手順を示すフローチャート、第
5図はRAM20内に設けられる印刷イメージ領域26の構成
を模式的に示す図、第6図は拡大文字パターンの一例を
示す図、第7図は第6図の文字パターンの印刷イメージ
領域26内記憶例を示す図、第8図乃至第10図は、文書印
刷例を文書領域21および行修飾領域22の内容に対応させ
て示す図である。 10……CPU、12……ROM、20……RAM、21……文書領域、2
2……行修飾領域、26……印刷イメージ領域、33……キ
ーボード(KB)、37……表示器、43……プリンタ(PR
T)、51〜63……レジスタ。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a memory map of the RAM 20 of FIG. 1, and FIG. 3 is a structure of a document area 21 and a line modification area 22 provided in the RAM 20. FIG. 4, FIG. 4 is a flow chart showing a print control procedure, FIG. 5 is a view schematically showing a configuration of a print image area 26 provided in the RAM 20, and FIG. 6 is a view showing an example of an enlarged character pattern. FIG. 7 is a diagram showing an example of storage in the print image area 26 of the character pattern of FIG. 6, and FIGS. 8 to 10 are diagrams showing a document print example in association with the contents of the document area 21 and the line modification area 22. Is. 10 …… CPU, 12 …… ROM, 20 …… RAM, 21 …… Document area, 2
2 …… Line decoration area, 26 …… Print image area, 33 …… Keyboard (KB), 37 …… Display unit, 43 …… Printer (PR
T), 51-63 …… Register.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】出力対象となる文書情報の行を単位に標準
の文字サイズを基準とする複数の第1文字間間隔値の1
つを選択指定する第1指定手段と、 上記文書情報の行を単位に複数の文字倍率の1つを選択
指定する第2指定手段と、 この第2指定手段の指定する倍率で印刷文書のパターン
展開を行なうパターン展開手段と、 このパターン展開手段により展開された印刷文書パター
ンの行を上記倍率に応じ1回で或は複数回に分けて印刷
する印刷手段と、 上記第1指定手段の指定する第1文字間間隔値を上記第
2指定手段の指定する倍率に比例した第2文字間間隔値
に変換する変換手段とを具備し、 上記印刷手段が上記第2文字間間隔値の示す文字間間隔
で上記印刷文書パターンの行を印刷するように構成され
ていることを特徴とする文書作成装置。
1. A plurality of first inter-character spacing values of 1 based on a standard character size for each line of document information to be output.
A first designating means for selectively designating one of them, a second designating means for selectively designating one of a plurality of character scaling factors for each line of the document information, and a pattern of a print document at a scaling factor designated by the second designating means. The pattern expanding means for expanding, the printing means for printing the line of the print document pattern expanded by the pattern expanding means once or in plural times according to the magnification, and the first specifying means specify Conversion means for converting the first inter-character spacing value into a second inter-character spacing value proportional to the magnification specified by the second designating means, wherein the printing means provides the inter-character spacing indicated by the second inter-character spacing value. A document creating apparatus, which is configured to print the lines of the print document pattern at intervals.
JP60129219A 1985-06-14 1985-06-14 Document creation device Expired - Lifetime JPH0711751B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPS61286884A JPS61286884A (en) 1986-12-17
JPH0711751B2 true JPH0711751B2 (en) 1995-02-08

Family

ID=15004084

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH0711751B2 (en)

Family Cites Families (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
JPS58166383A (en) * 1982-03-27 1983-10-01 富士通株式会社 Character code/character pattern conversion system
JPS58188680A (en) * 1982-04-28 1983-11-04 Toshiba Corp Apparatus for controlling space between characters
JPS6090383A (en) * 1983-10-24 1985-05-21 富士通株式会社 Graphic display/print apparatus

Also Published As

Publication number Publication date
JPS61286884A (en) 1986-12-17

Similar Documents

Publication Publication Date Title
EP0475734B1 (en) Document processing apparatus
JPH08161309A (en) Word processor
JPH0773935B2 (en) Document creation device
JPH0692168B2 (en) Document creation device
JPH0711751B2 (en) Document creation device
JPH0692167B2 (en) Document creation device
JPH0773934B2 (en) Document creation device
JPH0438005B2 (en)
EP0190511A1 (en) Block processing apparatus
JPH0628025B2 (en) Document creation device
JPH03213367A (en) Multicolor printer
JPH03156668A (en) Document preparing device
JPH0469917B2 (en)
JPH01229673A (en) English and european writing printing control system
JP3404770B2 (en) Document processing device
JP3375781B2 (en) Document processing device with line-by-line editing function
JPS61128321A (en) Display system of high density character
JPS62254231A (en) Character outputting method
JPH07105197A (en) Document processor
JPS61198281A (en) Print image display unit
JPS6359655A (en) Document processor
JPH07302261A (en) Japanese word processor
JPH05158458A (en) Method for utilizing fixed font data with relative font device
JPH06274150A (en) Document display method
JPH0589127A (en) Document preparing device