JPH0628025B2 - Document creation device - Google Patents

Document creation device

Info

Publication number
JPH0628025B2
JPH0628025B2 JP60129243A JP12924385A JPH0628025B2 JP H0628025 B2 JPH0628025 B2 JP H0628025B2 JP 60129243 A JP60129243 A JP 60129243A JP 12924385 A JP12924385 A JP 12924385A JP H0628025 B2 JPH0628025 B2 JP H0628025B2
Authority
JP
Japan
Prior art keywords
character
line
writing
print
pointer
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
JP60129243A
Other languages
Japanese (ja)
Other versions
JPS61286924A (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
Toshiba Computer Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Computer Engineering 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, Toshiba Computer Engineering Corp filed Critical Toshiba Corp
Priority to JP60129243A priority Critical patent/JPH0628025B2/en
Publication of JPS61286924A publication Critical patent/JPS61286924A/en
Publication of JPH0628025B2 publication Critical patent/JPH0628025B2/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 having a variable function of a print character size and a character spacing.

[発明の技術的背景とその問題点] 日本語ワードプロセッサ等、近年の文書作成装置には、
印刷文字サイズ並びに文字間間隔が可変できるものが多
くなっている。
[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.

この種の文書作成装置では、一般に表示画面上の文字に
対して拡大文字が指定されていたり、文字間間隔の拡大
が指定されていても、表示画面上の文書は全角文字で表
示されているため実際の文字の大きさや位置を反映せ
ず、印刷イメージが確認できない。
In this type of document creation device, generally, even if an enlarged character is specified for a character on the display screen, or if an interval between characters is specified, the document on the display screen is displayed in full-width characters. Therefore, the printed image cannot be confirmed without reflecting the actual size and position of characters.

このため、従来の文書作成装置では、文字サイズや文字
間間隔の拡大が指定された文書を印刷すると、印刷文字
が途中で切れたり、指定された横方向印刷範囲を越えて
しまう問題があった。
Therefore, in the conventional document creation device, when a document in which the character size or the inter-character spacing is specified is printed, there is a problem that the print character is cut off in the middle or exceeds the specified horizontal print range. .

[発明の目的] この発明は上記事情に鑑みてなされたものでその目的
は、文字サイズや文字間間隔の拡大指定により印刷境
界、或は指定された印刷範囲に入らない文字が生じた場
合に、該当文字の印刷を選択的に禁止できる文書作成装
置を提供することにある。
[Object of the Invention] The present invention has been made in view of the above circumstances, and its object is to solve the problem that when a character which does not fall within the print boundary or the specified print range occurs due to the designation of enlargement of the character size or the character spacing. Another object of the present invention is to provide a document creation device that can selectively prohibit printing of the corresponding character.

[発明の概要] この発明では、出力対象となる文書情報の行を単位に複
数の第1文字間間隔値の1つを選択指定する第1指定手
段と、文書情報の行を単位に複数の文字倍率の1つを選
択指定する第2指定手段との2つの指定手段が設けられ
る。第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 in units of lines of document information to be output, and a plurality of units of document information in units of lines. Two designating means are provided, which is a second designating means for selectively designating one of the character magnifications. The first inter-character space value designated by the first designating means is the second
The conversion unit converts the second inter-character spacing value proportional to the designated magnification of the designation unit.

また、この発明では、全角文字による1行印刷分の印刷
イメージ容量をもつ印刷イメージ記憶手段が設けられ
る。この印刷イメージ記憶手段に対する1印字分の文字
パターンの書込み開始位置は第1ポインタにより示さ
れ、同パターンの書込み終了位置は第2ポインタにより
示される。この第2ポインタは、第1ポインタの示す書
込み開始位置および第2指定手段の指定倍率をもとに設
定手段により設定される。第2ポインタの示す書込み終
了位置は、判定手段により印刷イメージ記憶手段の書込
み最終位置と比較され、印刷イメージ記憶手段への文字
パターン書込みの可否が判定される。そして判定手段に
より書込み可が判定され且つ次の書込み文字パターンが
有る場合には、該当する1印字分の文字パターンが第2
指定手段の指定倍率でパターン展開手段により展開され
る。この展開文字パターンは、第1ポインタの示す位置
から始まる印刷イメージ記憶手段の領域に、書込み手段
により書込まれる。第1ポインタは、書込み手段の書込
み動作に伴い、第2ポインタおよび第2文字間間隔値を
もとに更新手段により更新される。一方、印刷イメージ
記憶手段の内容は、判定手段により書込み不可が判定さ
れるか、書込み可であっても次の書込み文字パターンが
無い場合に、印刷される。
Further, according to the present invention, a print image storage means having a print image capacity for printing one line of full-width characters is provided. The writing start position of the character pattern for one print in the print image storage means is indicated by the first pointer, and the writing end position of the same pattern is indicated by the second pointer. The second pointer is set by the setting means based on the write start position indicated by the first pointer and the designated magnification of the second designating means. The writing end position indicated by the second pointer is compared with the final writing position of the print image storage means by the determination means to determine whether or not the character pattern can be written in the print image storage means. When the determination means determines that writing is possible and there is a next writing character pattern, the corresponding one printing character pattern is the second character pattern.
The pattern is expanded by the pattern expanding means at the specified magnification of the specifying means. The developed character pattern is written by the writing means in the area of the print image storage means starting from the position indicated by the first pointer. The first pointer is updated by the updating means based on the second pointer and the second inter-character space value in accordance with the writing operation of the writing means. On the other hand, the content of the print image storage means is printed when the determination means determines that writing is not possible, or when writing is possible but there is no next writing character pattern.

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

20はRAMであり、第2図に示すように、入力された文
書の文字コード列を記憶する文書領域21、各行毎の行修
飾情報を記憶する行修飾領域22、1文書当り最大3文字
の外字を登録する外字パターン領域23を有している。R
AM20は、更に、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. R
The AM 20 further stores a word / phrase registration area 24 in which a maximum of 5 words / phrases are registered per document, which word is selected when a homonym generated by kana-kanji conversion is selected,
From the next time onward, the temporary dictionary area 25 used for the learning function of displaying the word with the highest priority, the print image area 26 having a print image capacity for printing one line of double-byte characters, and the register 51 used for print control. It has an area of ~ 63.

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

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

第3図はRAM20内に設けられる文書領域21と行修飾領
域22の構造を説明する図あり、文書情報(文字コード
列)と行修飾情報とが互いに行を単位に対応付けされた
状態で格納される。行修飾情報は、文字の白抜き(並び
に影付け)を指定する白抜きフラグ、文字の形態(回
転,斜体)を指定する3ビットの回転・斜体情報、文字
サイズを指定する4ビットの文字サイズ情報、印刷途中
での印刷停止を指定する印刷停止フラグ、文字間間隔を
指定する2ビットの文字間間隔情報、および行ピッチ
(改行ピッチ)を指定する4ビットの行ピッチ情報から
成る。
FIG. 3 is a diagram for explaining the structures of the document area 21 and the line modification area 22 provided in the RAM 20, and the document information (character code string) and the line modification information are stored in a state where they are associated with each other on a line-by-line basis. To be done. 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, to set the line pitch information, a line pitch screen is displayed by key operation, and one of the characters B, O, H, K, E, 1 to 3 (actually B, O, H It is carried out by designating keys (K, E, 1 to 3 screens).

なお、上記のキー指定が行なわれない場合(情報)につ
いては、予め定められた標準の設定値が適用される。こ
の標準設定値は、文字サイズであれば24(縦)×24
(横)ドットを示す1であり、文字間間隔(この例では
標準文字サイズ、即ち全角文字サイズを基準とする文字
間間隔)であれば3ドットを示す1であり、そして行ピ
ッチ(この例では全角文字サイズを基準とする行ピッ
チ)であれば30/120インチ(3ドット分が2/1
20インチであるこの例では45ドット分)を示す1
(この値は画面上の表示文字であり、実際には“010
0”)である。
When the above key designation is not made (information), a preset standard set value is applied. This standard setting value 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 full-width character size, then 30/120 inch (3 dots is 2/1
In this example, which is 20 inches, 45 dots)
(This value is a display character on the screen and is actually "010
0 ").

次にこの発明の一実施例の動作を説明する。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は、RAM
20に確保されたレジスタ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 a [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 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 print start row N and print row pointer K are RAM
It is set in registers 51 and 52 secured in 20.

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

さてCPU10は、ステップS7で第N行の印刷停止が指
定されているものと判定すると、或はステップS9で文
書ENDを判定すると、N−1の演算を行ない、今回の
印刷サイクルでの印刷対象文書行数(印刷結果としての
行数でないことに注意)を示す印刷行数Mを求める(ス
テップS11)。この印刷行数MはRAM20内に確保され
たレジスタ53に設定される。次にCPU10はMが0であ
るか否かの判定を行ない(ステップS12)、M=0であ
れば(印刷行が無いことから)CPU10は印刷制御を終
了する。これに対してM=0でなければ、CPU10は印
刷準備のために、まず印刷行ポインタKの示す第K行の
行修飾情報を行修飾領域22から取出す(ステップS1
3)。次にCPU10は、実際の改行量Tを求めるために
ステップS14を実行する。
When the CPU 10 determines in step S7 that the Nth line printing stop is designated, or when the document END is determined in step S9, the CPU 10 calculates N-1 and prints in the current print cycle. The number of print lines M indicating the number of document lines (not the number of lines as a print result) is obtained (step S11). The number of print lines M is set in the register 53 secured in the RAM 20. 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 fetches the line modification information of the Kth line indicated by the print line pointer K from the line modification area 22 in preparation for printing (step S1).
3). Next, the CPU 10 executes step S14 to obtain the actual line feed amount T.

ステップS14では、まず行修飾情報中の文字サイズ情報
をもとに、同情報の指定するサイズの文字の縦ドット数
m,横ドット数m′が例えばROM12内に用意された文
字サイズテーブル(図示せず)から求められ、24×2
4ドットの全角文字を基準とする倍率(縦倍率m/2
4,横倍率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 vertical dot number m and the horizontal dot number m'of the character of the size designated by the information are prepared in, for example, the ROM 12 in the character size table (Fig. 24 × 2 calculated from (not shown)
Magnification based on 4-dot double-byte characters (vertical magnification m / 2
4, lateral magnification m '/ 24) is obtained. 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 character specified by the information is provided in, for example, the ROM 12 line feed amount table (Fig. (Not shown). Then, by multiplying the line feed amount n / 120 by the vertical scale factor m / 24, the actual line feed amount T for the character string of the character of the designated character size (character scale factor) is obtained, and is stored in the register 54 secured in the RAM 20. 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/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
に記憶されるようになっている。この実施例において、
nは、第3図からも明らかなように改行方向を示す正/
負符号を有している。なお上記のm,m′,nを、テー
ブルに代えて印刷制御用のプログラム中に予め設定して
おくことも可能である。
The line feed amount indicated by the line pitch information is expressed in the format of n / 120 because the paper feeding unit of the printer 43 in this embodiment is 1/120 (inch). Therefore, n / 120 indicates paper feeding for n units. Similarly,
The line feed amount T (m · n / 24) / 120 indicates a line feed paper feed of (m · n / 24) unit in proportion to the designated magnification. However, since n / 120 and (m · n / 24) / 120 are not integers, the n part of n / 120 is actually
Only the portion (m · n / 24) of (m · n / 24) / 120 is the table in the ROM 12 and the register 54 in the RAM 20.
It will be remembered in. In this example,
n is a positive / negative indicating the line feed direction as is clear from FIG.
It has a minus sign. It should be noted that the above m, m ', n can be set in advance in the print control program instead of the table.

さて、プリンタ43の印字ヘッドのドット数は全角文字の
縦ドット数に一致する24ドットである。このため拡大
文字等、縦ドット数が24ドットを越える文字の文字列
は、1ライン分の印字ヘッド駆動操作で印刷するこがで
きず、何回かに分けて印刷する必要がある。そこでこの
実施例では、縦24ドットを1スライスとした場合の印
刷対象文字(の文字パターン)のスライス数Sを求める
ようにしている(ステップS15)。このスライス数S
は、指定された文字倍率、更には文字形態をもとに求め
られるものであるが、ここでは簡単のために倍率m/2
4から求められるものとする。但し、m/24が整数と
ならない場合には、その値より大きく且つその値に最も
近い整数が採用される。例えばm=32(サイズ2指
定)の場合であれば、S=2が採用される。ステップS
15で求められたスライス数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 the double-byte character. For this reason, a character string of a character having a vertical dot number of more than 24 dots, such as an enlarged character, cannot be printed by operating the print head for one line, and needs to be printed several times. Therefore, in this embodiment, the number of slices S of (the character pattern of) the print target character is calculated when the vertical 24 dots are one slice (step S15). This slice number S
Is calculated based on the specified character magnification and the character form. Here, for simplicity, the magnification is m / 2.
4 is required. However, when m / 24 is not an integer, an integer larger than that value and closest to the value is adopted. For example, if m = 32 (size 2 is designated), S = 2 is adopted. Step S
The number of slices S obtained in 15 is set in the register 55 secured in the RAM 20. When the step S15 is completed, 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(単位;ドット)を求める(ステップS1
7)。この文字間間隔UはRAM20内に確保されたレジ
スタ61に設定される。
Next, the CPU 10 determines, based on the inter-character spacing information in the line modification information of the k-th line, the inter-character spacing (n 'dot) based on the double-byte character designated by the information, for example, the character prepared in the ROM 12. An actual inter-character spacing U (unit: dot) proportional to the magnification is obtained by multiplying n'by a lateral magnification m '/ 24 from a distance table (not shown) (step S1).
7). 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に設定される。
After executing step S17, the CPU 10 sets the number of characters of the character string of the Kth line (in the document area 21) indicated by the print line pointer K as the number of print characters of the Kth line V, and the register 57 in the RAM 20.
(Step S18). And the CPU 10 is the Kth
The Kth in-line character pointer P designating the character position (character digit) of the character to be taken out next from the character string of the line is initialized to 1 (first character digit) (step S19). The character pointer P is set in the register 58 in the RAM 20.

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

第5図は印刷イメージ領域26の構成を1ライン分の印刷
ヘッド駆動操作での印刷領域(1スライス印刷領域)に
対応して模式的に示す。図から明らかなように、印刷イ
メージ領域26の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 is clear from the figure, at addresses 0 to 3 of the print image area 26 (relative addresses in the print image area 26), 8 dots (1 byte) of the 0th dot row (24 dots) of the print area for one slice are used. ) Corresponds to each area divided into three. Generally, the print image area
26 3n, 3n + 1, 3n + 2 addresses (print image area
26 relative address) corresponds to each area obtained by dividing the n-th dot row (24 dots) of the printing area for one slice into three by 8 dot (1 byte) units. 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 horizontal dot number is m ', the write start address Q is 3
It is obtained by adding (m'-1). The write end address R is set in the register 60 in the RAM 20.

CPU10は書込み終了アドレスRを求めると同アドレス
Rと書込み最終アドレスLEとの大小を比較し、RがL
Eより大きいか否かを判定する(ステップS22)。この
書込み最終アドレスLEは、例えば第5図に示すよう
に、1スライス印刷領域の最終ドット列(即ち印刷境
界)の先頭の8ドットを示すものである。したがってス
テップS22より、第K行第P列の文字のスライスLの文
字パターンの一部が印刷境界を越えてしまうか否かを予
め判定することができる。
When the CPU 10 obtains the write end address R, it compares the same address R with the last write address LE, and R is L.
It is determined whether it is larger than E (step S22). This write final address LE indicates the first 8 dots of the final dot row (that is, the print boundary) of the 1-slice print area, as shown in FIG. 5, for example. Therefore, from step S22, it can be determined in advance whether or not a part of the character pattern of the slice L of the character on the Kth row and the Pth column exceeds the printing 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 on the Kth row and the Pth column is an enlarged character pattern of a 48 × 48 dot configuration as shown in FIG. 6 by designating the row pitch information (size 5) in the relevant row decoration information. There is. Here, for example, the character pattern of slice 0 of the enlarged character pattern of FIG.
Consider the case of writing to. 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). Next to the print image area 26
When the content of is 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 as shown in FIG. 7 (b). As shown, when the contents of the print image area 26 are printed, a part of the above pattern crosses the print boundary, and thus 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 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 or not the pattern is printed without exceeding the print range.

CPU10は、ステップS22の判定がNOの場合、印刷行
ポインタKおよび文字ポインタPの指定する第K行第P
列の文字(文字コード)を文書領域21から取出し(ステ
ップS23)、同文字コードが(パターン書込みが不要
な)改行コードであるか否かを判定する(ステップS2
4)。もし改行コードでなければ、パターン書込みが必
要であることから、文字ポインタPを+1して次の文字
位置に進めた後に(ステップS25)、ステップS23で取
出した文字コードに対応する文字パターンをROM12内
の文字パターン領域16から取出す(ステップS26)。文
字パターン領域16内に記憶されている文字パターンは、
24×24ドット(72バイト)構成の全角文字パター
ンである。文字パターン領域16から取出された文字パタ
ーンは、RAM20内の所定の1文字記憶領域(図示せ
ず)に一時格納される。
If the determination in step S22 is NO, the CPU 10 specifies the Kth row Pth designated by the print row pointer K and the character pointer P.
The character (character code) in the row is taken out from the document area 21 (step S23), and it is determined whether or not the character code is a line feed code (no pattern writing is required) (step S2).
Four). If it is not the line feed code, it is necessary to write the pattern. Therefore, 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 extracted in step S23 is stored in the ROM 12 It is taken out from the character pattern area 16 (step S26). The character pattern stored in the character pattern area 16 is
This is a full-width character pattern composed of 24 × 24 dots (72 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)。
After executing 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, whether 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 thereafter, 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 Pattern) is 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文字(の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 (one slice thereof) by adding the triple value of the intercharacter space U (dot) to the write end address R. Thus, the same address Q is updated (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 embodiment, while the character spacing is specified by the image of full-width characters, the character spacing suitable for the actual character size is automatically realized.

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

CPU10は、まず文字ポインタPが1を示しているか否
か、即ちPを+1するステップS25が1回も実行されて
いないか否かの判定を行なう(ステップS33)。もしP
=1でない場合には、CPU10は第K行の先頭文字が改
行コードでない(即ち完全改行でない)ものと判断し、
即ち印刷すべき文字パターンが印刷イメージ領域26に書
き込まれているもの判断し、プリンタ43を制御して印刷
イメージ領域26の内容を印刷させる(ステップS34)。
次にCPU10は印刷イメージ領域26をクリアし(ステッ
プS35)、しかる後スライス数Sを−1する(ステップ
S36)。そしてCPU10はスライス数Sが0であるか否
か、即ち第K行の文字列の印刷が終了したか否かを判定
する(ステップS37)。
The CPU 10 first determines whether or not the character pointer P indicates 1, that is, whether or not the 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, 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 content of the print image area 26 (step S34).
Next, the CPU 10 clears the print image area 26 (step S35), and then subtracts the slice number S by -1 (step S36). 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)。そしてCP
U10は、プリンタ43を制御して、次のスライスがステッ
プS34で印刷されたスライスに繋がるように(即ちスラ
イス間が0となるように)、印刷用紙を印字ヘッド分
(全角文字の縦ドット分)だけ順方向に紙送りさせる
(ステップS39)。前記したようにプリンタ43の紙送り
の単位は1/120(インチ)、印字ヘッドのドット構
成は24ドット、そしてその3ドット分は2/120イ
ンチである。したがってCPU10は、ステップ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 is not completed, first increments the slice number pointer L by 1, and specifies the slice number of the slice to be printed next ( Step S38). And CP
The U10 controls the printer 43 so that the next slice is connected to the slice printed in step S34 (that is, the interval between slices becomes 0), and the print paper is divided into print head portions (vertical dot portions of full-width characters). ) Is fed in the forward direction (step S39). 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 inches. Therefore, the CPU 10 causes the printer 43 to perform forward paper feed of 16/120 (inch) 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となった場
合、CPU10は改行量Tの示す改行を実現するために、
Lに16/120を掛けた値(即ち第K行の文字列の印
刷に要した紙送り量)をT即ち(m・n/24)/12
0から減じ、その結果を改めて改行量Tとする(ステッ
プS40)。この新たに求められた改行量Tの絶対値は、
第K行印刷終了後に行なうべき改行紙送りのための紙送
り量(インチ)を示し、同じく符号(正/負符号)はそ
の紙送り方向を示す。明らかなように、第K行が全角文
字指定(サイズ1)の場合には、Lは0のままである
(即ちステップS39の印刷用紙送りが実行されない)こ
とから、新たに求められたTはステップS14で求められ
たTに一致する。
On the other hand, if the determination in step S37 is YES, that is, if the printing of the character string in the Kth row is completed and the slice number S becomes 0, the CPU 10 realizes the line feed indicated by the line feed amount T.
The value obtained by multiplying L by 16/120 (that is, the paper feed amount required for printing the character string in the Kth row) is T, that is, (m · n / 24) / 12.
It is subtracted from 0, and the result is again set as the line feed amount T (step S40). The absolute value of the newly calculated line feed amount T is
The paper feed amount (inch) for the line feed paper feed to be performed after the printing of the Kth line is shown, and the same sign (plus / minus sign) shows the paper feed direction. As is apparent, when the K-th line is full-width character designation (size 1), L remains 0 (that is, the printing paper feed of step S39 is not executed), so the newly obtained T is It matches the T found in S14.

CPU10はステップS40を実行すると、或はステップS
33でYES(P=1)を判定すると、紙送り方向を決定
するために改行量Tが0以上であるか否か(即ち順方向
の紙送りであるか否か)の判定を行なう(ステップS4
1)。なお、ステップS33の判定がYESの場合にステ
ップS34の印刷実行等をスキップするのは、第K行の先
頭文字が改行コードであり、完全改行となるためであ
る。CPU10は、T≧0であればTインチの順方向紙送
りをプリンタ43に対して行なわせ(ステップS42)、T
<0であればTの絶対値分の逆方向紙送りをプリンタ43
に対して行なわせる(ステップS43)。これにより、実
際の改行ピッチが、同改行ピッチと第K行の印刷文字の
文字サイズ(縦ドット数)との比を、行ピッチ情報の指
定する全角文字を基準とする行ピッチ(改行ピッチ)と
全角文字の縦ドット数との比と一致させる如く表現され
る。即ち、この実施例では、全角文字を基準とする行ピ
ッチ(改行ピッチ)を指定しながら、文字サイズ情報で
指定されたサイズの文字に比例した行ピッチを実現でき
る。なお、ステップS33の判定がYESの場合(即ち完
全改行の場合)には、印刷を実行しないことから、ステ
ップS14で求められたTがそのまま用いられる。
When the CPU 10 executes step S40, or step S40
When YES (P = 1) is determined in 33, it is determined whether or not the line feed amount T is 0 or more (that is, whether or not the paper is fed in the forward direction) in order to determine the paper feeding direction (step). S4
1). 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 a line feed code, which is a complete line feed. If T ≧ 0, the CPU 10 causes the printer 43 to perform T-inch forward paper feeding (step S42), and
If <0, the printer 43 performs reverse 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 expressed 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, in the case of 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,
Nine kinds of H, K, E and 1 to 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 a line feed is made in the reverse direction by 8/120 (inch) based on the double-byte character. 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 obtained by multiplying -8/120 (inch) by the vertical magnification, and the same character string is obtained. 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 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 during 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 the double-byte character. In this case, the paper feed amount after printing the character string in the Kth row is +8/120 (inch) multiplied by the vertical magnification, and the same character string is printed from the line pitch for the character string of the specified character size. 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 the sign of the subtraction result (normal /
Negative) is the direction indicated. Therefore, when the line feed H is specified, 1 of the character size specified by the character size information
A forward line feed (half line feed) of only two characters is realized.

改行K(罫線改行,1文字分改行)は全角文字を基準と
した場合に16/120(インチ)だけ順方向に改行す
ることを指定する。この場合、第K行の文字列印刷後の
紙送り量は、+16/120(インチ)に縦倍率を掛け
て得られる指定文字サイズの文字列に対する行ピッチか
ら、同文字列を印刷するのに必要な紙送り量(同文字列
の印刷のために実施された紙送りの総紙送り量)を減じ
た値、即ち16/120(インチ)となり、その紙送り
方向は減算結果が正となることから順方向となる。この
際の具体的な紙送り量は、縦倍率が整数の場合には倍率
1の文字サイズ分、即ち16/120(インチ)とな
り、固定量となる。一方、縦倍率が整数でない場合、上
記順方向紙送り量は縦倍率の小数部の示す倍率の文字サ
イズ分となる。したがって改行Kが指定されている場
合、文字サイズ情報で指定された文字サイズの文字分だ
けの改行、即ち行間間隔を0とする改行が実現される。
この改行Kは、上記のように行間間隔を0とすることが
できることから、即ち第1の文字サイズの第1の文字列
と同文字列に続く第2の文字サイズの第2の文字列とを
隙間なく繋ぐことができることから、例えば拡大された
罫線(特に縦罫線)を作成する場合に好適する。なお、
横罫線を作成する場合には、文字間間隔を0とすればよ
い。
The line feed K (line feed for a ruled line, line feed for one character) specifies that a line feed is made in the forward direction by 16/120 (inch) based on a double-byte character. In this case, the paper feed amount after printing the character string of the Kth row is the same as that for printing the character string from the line pitch for the character string of the specified character size obtained by multiplying +16/120 (inch) by the vertical magnification. 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/120 (inch), and the subtraction result is positive for the paper feed direction. It will be the forward direction. When the vertical magnification is an integer, the specific paper feed amount at this time is a 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. In addition,
When a horizontal ruled line is created, the character spacing may be set to zero.

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

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

第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 FIG. 8, character size 1,
The line feed pitches L1, L2 and L3 of the character strings of 2 and 3 are values proportional to the character size (vertical magnification) even if the same line feed amount (line feed 1) is designated. Similarly, the inter-character intervals P1, P2, P3 of the character strings of character sizes 1, 2, 3
Is a value proportional to the character size (horizontal magnification) even if the same character spacing of 2 (6 dots) is designated.

第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 when a superscript character and a subscript character (in full-width characters) for a quadruple-width character is created by using line feed B, line feed H, etc. ).

さて、CPU10はステップS42またはステップS43の紙
送りを実行すると、印刷行数Mを−1し(ステップS4
4)、Mが0となったか否かを判定する(ステップS4
5)。もしMが0でなければ、印刷すべき文書行が残っ
ていることから、CPU10は印刷行ポインタKを+1し
て次の文書行へ進めた後(ステップS46)、ステップS
13の処理に戻る。これに対してMが0であれば、CPU
10は第K行の行修飾情報で印刷停止が指定されていたか
否かを判定する(ステップS47)。もし印刷停止が指定
されていれば、CPU10はステップ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 reduced by -1 (step S4
4), it is determined whether M becomes 0 (step S4)
Five). If M is not 0, there are still document lines 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 step S46.
Return to step 13. On the other hand, if M is 0, the CPU
In step S47, it is determined whether the print stop is designated by the line modification information of the Kth line (step S47). If the print stop is designated, the CPU 10 returns to the process of step S4,
Display the print menu. This allows the operator
The printing ribbon used for printing by the printer 43 can be exchanged to change the color type, the left margin value, and the vertical / horizontal printing settings can be changed. 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, when a character that does not fall within the print boundary or the specified print range occurs due to the designation of enlargement of the character size or the character-to-character spacing, the corresponding character is printed. Can be selectively prohibited.

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

第1図はこの発明の一実施例を示すブロック構成図、第
2図は第1図のRAM20のメモリマップ、第3図はRA
M20内に設けられる文書領域21と行修飾領域22の構造を
説明する図、第4図は印刷制御手順を示すフローチャー
ト、第5図はRAM20内に設けられる印刷イメージ領域
26の構成を模式的に示す図、第6図は拡大文字パターン
の一例を示す図、第7図は第6図の文字パターンの印刷
イメージ領域26内記憶例を示す図、第8図乃至第10図
は、文書印刷例を文書領域21および行修飾領域22の内容
に対応させて示す図である。 10…CPU、12…ROM、20…RAM、21…文書領域、
22…行修飾領域、26…印刷イメージ領域、33…キーボー
ド(KB)、37…表示器、43…プリンタ(PRT)、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 RA.
FIG. 4 is a diagram for explaining the structure of a document area 21 and a line modification area 22 provided in M20. FIG. 4 is a flowchart showing a print control procedure. FIG. 5 is a print image area provided in RAM20.
26 is a diagram schematically showing the configuration of FIG. 26, FIG. 6 is a diagram 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. FIG. 10 is a diagram showing an example of document printing in association with the contents of the document area 21 and the line modification area 22. 10 ... CPU, 12 ... ROM, 20 ... RAM, 21 ... Document area,
22 ... Line modification area, 26 ... Print image area, 33 ... Keyboard (KB), 37 ... Display, 43 ... Printer (PRT), 51
~ 63… Register.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】出力対象となる文書情報の行を単位に複数
の第1文字間間隔値の1つを選択指定する第1指定手段
と、上記文書情報の行を単位に複数の文字倍率の1つを
選択指定する第2指定手段と、上記第1指定手段の指定
する第1文字間間隔値を上記第2指定手段の指定する倍
率に比例した第2文字間間隔値に変換する変換手段と、
全角文字による1行印刷分の印刷イメージ容量をもつ印
刷イメージ記憶手段と、この印刷イメージ記憶手段に対
する1印字分の文字パターンの書込み開始位置を示す第
1ポインタと、この第1ポインタの示す書込み開始位置
および上記第2指定手段の指定する倍率をもとに上記文
字パターンの書込み終了位置を示す第2ポインタを設定
する設定手段と、上記第2ポインタの示す書込み終了位
置と上記印刷イメージ記憶手段の書込み最終位置とを比
較して上記印刷イメージ記憶手段への文字パターン書込
みの可否を判定する判定手段と、この判定手段により書
込み可が判定され且つ次の書込み文字パターンが有る場
合に該当する1印字分の文字パターンを第2指定手段の
指定する倍率で展開するパターン展開手段と、このパタ
ーン展開手段により展開された文字パターンを上記第1
ポインタの示す位置から始まる上記印刷イメージ記憶手
段の領域に書込む書込み手段と、この書込み手段の書込
み動作に伴い上記第1ポインタを上記第2ポインタおよ
び第2文字間間隔値をもとに更新する更新手段と、上記
判定手段により書込み不可が判定された場合または書込
み可でも次の書込み文字パターンが無い場合に上記印刷
イメージ記憶手段の内容を印刷する印刷手段とを具備す
ることを特徴とする文書作成装置。
1. 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 character scaling factors for each line of the document information. Second designating means for selectively designating one and converting means for transforming the first inter-character spacing value designated by the first designating means into a second inter-character spacing value proportional to a magnification designated by the second designating means. When,
A print image storage means having a print image capacity for printing one line of full-width characters, a first pointer indicating a write start position of a character pattern for one print to the print image storage means, and a write start indicated by the first pointer The setting means for setting a second pointer indicating the writing end position of the character pattern based on the position and the magnification designated by the second designation means, the writing end position indicated by the second pointer, and the print image storage means. A judgment means for judging whether or not the character pattern can be written in the print image storage means by comparing with the final writing position, and one print corresponding to the case where the writing is judged by this judgment means and there is a next writing character pattern. The pattern expanding means for expanding the minute character pattern at the magnification specified by the second specifying means, and the pattern expanding means. Said the expanded character pattern first
Writing means for writing in the area of the print image storage means starting from the position indicated by the pointer, and the writing operation of the writing means updates the first pointer based on the second pointer and the second inter-character space value. A document comprising update means and printing means for printing the contents of the print image storage means when the determination means determines that writing is not possible or when writing is possible but there is no next writing character pattern. Creation device.
【請求項2】上記判定手段は、上記第2ポインタの示す
書込み終了位置が上記印刷イメージ記憶手段の書込み最
終位置を越える場合に書込み不可を判定することを特徴
とする特許請求の範囲第1項記載の文書作成装置。
2. The determination means determines that writing is not possible when the write end position indicated by the second pointer exceeds the write end position of the print image storage means. Document creation device described.
【請求項3】上記書込み最終位置が印刷境界位置に対応
することを特徴とする特許請求の範囲第1項記載の文書
作成装置。
3. The document creating apparatus according to claim 1, wherein the final writing position corresponds to a printing boundary position.
【請求項4】上記書込み最終位置が外部設定された余白
位置に対応することを特徴とする特許請求の範囲第1項
記載の文書作成装置。
4. The document creating apparatus according to claim 1, wherein the final writing position corresponds to an externally set margin position.
JP60129243A 1985-06-14 1985-06-14 Document creation device Expired - Lifetime JPH0628025B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPS61286924A JPS61286924A (en) 1986-12-17
JPH0628025B2 true JPH0628025B2 (en) 1994-04-13

Family

ID=15004732

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH0628025B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55118189A (en) * 1979-03-07 1980-09-10 Hitachi Ltd Printing system

Also Published As

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

Similar Documents

Publication Publication Date Title
US5404436A (en) Computer method and apparatus for converting compressed characters for display in full size
JPH08161309A (en) Word processor
JPS6017487A (en) Automatic line pitch setting method for document generator
JPH0628025B2 (en) Document creation device
JPH0773935B2 (en) Document creation device
JPH0692168B2 (en) Document creation device
JPH03156668A (en) Document preparing device
JPH0711751B2 (en) Document creation device
JPH0773934B2 (en) Document creation device
JPH0692167B2 (en) Document creation device
JPH01229673A (en) English and european writing printing control system
JPH0773167A (en) Word processor
JP3404770B2 (en) Document processing device
JPH0666066B2 (en) Document processor with furigana addition function
JP3355636B2 (en) Document processing device
JP2995630B2 (en) Document data processing device
JPH07105197A (en) Document processor
JPH0751374B2 (en) Document processor
JPH0581249A (en) Word processor
JPH0844735A (en) Document processor
JPH09185603A (en) Document preparing device and character string form control method
JPH07302261A (en) Japanese word processor
JPS61128321A (en) Display system of high density character
JPH02101569A (en) Character processor
JPH02159669A (en) Document preparing device