JPS6328660A - Document preparation apparatus - Google Patents

Document preparation apparatus

Info

Publication number
JPS6328660A
JPS6328660A JP61172232A JP17223286A JPS6328660A JP S6328660 A JPS6328660 A JP S6328660A JP 61172232 A JP61172232 A JP 61172232A JP 17223286 A JP17223286 A JP 17223286A JP S6328660 A JPS6328660 A JP S6328660A
Authority
JP
Japan
Prior art keywords
line
character
printing
printed
pitch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP61172232A
Other languages
Japanese (ja)
Other versions
JPH0790650B2 (en
Inventor
Hiroyuki Aoki
宏之 青木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP61172232A priority Critical patent/JPH0790650B2/en
Publication of JPS6328660A publication Critical patent/JPS6328660A/en
Publication of JPH0790650B2 publication Critical patent/JPH0790650B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/485Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by the process of building-up characters or image elements applicable to two or more kinds of printing or marking processes
    • B41J2/505Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by the process of building-up characters or image elements applicable to two or more kinds of printing or marking processes from an assembly of identical printing elements

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To feed a line and print characters with the lower end position of printed characters fitted entirely to a lateral rule by constituting the title apparatus so that a line pitch is always allowed to correspond to a lateral rule and at the same time, the upper end position of a printing head may be set to a feed line at a position obtained by subtracting the vertical character size of printed characters from the lower end of the line beforehand. CONSTITUTION:When an enlarged character 33a exists, a lower subdivision printing process is performed at a printing position P2 following the upper subdivision printing of the enlarged character 33a a printing position P1, if the vertical character size Y0 of the enlarged character 33a is larger than the vertical width H of a printing head 31. Further the lower end position of the printed character is allowed to be printed at a position which meets a lateral rule corresponding to the initialization position of the printing head 31. Next, if the printing of a single line of an enlarged character pattern is completed, the upper end position of the printing head 31 is set to a feed line at a position obtained by subtracting the vertical size Y1 of an enlarged character 33b to be printed from the lower end of an interlinear space G of a following line. Then the enlarged character 33b is printed at its lower end position, fitted to a lateral rule 32.

Description

【発明の詳細な説明】 [J1明の目的] (産業上の利用分野) 本発明は、拡大文字を含む文農印刷の際に、その印字下
端位置を印刷用紙の横罫に合わせ印字改行する印字機能
を有する文書作成装置に関する。
[Detailed description of the invention] [Purpose of J1 Ming] (Industrial field of application) The present invention, when printing including enlarged characters, aligns the lower edge position of the print with the horizontal ruled lines of the printing paper and performs a print line break. The present invention relates to a document creation device having a printing function.

(従来の技術) 例えば、レポート用紙等、横罫が予めプレプリントさ机
ている用紙を用い、その横罫に印字行を合わせた印刷を
行なうには、第5図(A)に示すように、予めプリンタ
の印字ヘッド31の位置(この場合、ヘッド下端位置)
を、横罫32との間で一定の相対距離dを保ちつつ、オ
ペレータが目で見ながら設定する必要がある。この場合
、第5図(B)に示すように、印字文字が拡大文字33
であるときに、上記基本サイズの文字印字の場合と同様
の印字ヘッド31の位置合わぜを行なうと、拡大文字3
3はその上部から印字ヘッド31の印字幅に対応して、
矢印aで示すように順次改行印字されるものであるため
、その下端部分が横罫32よりも下に食出してしまうこ
とになる。
(Prior art) For example, when using paper such as report paper on which horizontal lines are preprinted, in order to perform printing that aligns the print lines with the horizontal lines, as shown in FIG. 5 (A), , the position of the print head 31 of the printer (in this case, the lower end position of the head)
It is necessary for the operator to set it visually while maintaining a constant relative distance d from the horizontal ruled line 32. In this case, as shown in FIG. 5(B), the printed characters are enlarged characters 33
, if the print head 31 is aligned in the same way as in the case of printing the basic size characters, the enlarged characters 3
3 corresponds to the printing width of the print head 31 from the top,
Since line feeds are printed sequentially as shown by arrow a, the lower end portion protrudes below the horizontal line 32.

つまり、第6図に示すように、拡大文字33の大きさに
係わらず、常に印字ヘッド31の初期設定位置あるいは
改行位置を同一にすると、各文字33の上端ラインUと
上方横罫32との間rJ4tは一定に保たれるものの、
文字下端と横罫32との間隔dは区々となり、印刷開始
当初に設定した印字ヘッド31の下端に対する横罫32
との間隔doは、全く保持されないものとなる。
In other words, as shown in FIG. 6, if the initial setting position or line feed position of the print head 31 is always the same regardless of the size of the enlarged character 33, the upper end line U of each character 33 and the upper horizontal ruled line 32 Although the interval rJ4t is kept constant,
The distance d between the lower edge of the character and the horizontal line 32 is variable, and the horizontal line 32 is relative to the lower edge of the print head 31 set at the beginning of printing.
The distance do is not maintained at all.

(発明が解決しようとする問題点) 本発明は、拡大文字を含む文自印制を行なう際に、例え
ば用紙横罫に対する印字位置が印字行によって区々にな
ることなく、全ての印字文字下端位置を容易に横罫に合
わせて改行印字することが可能になる文書作成装置を提
供することを目的とする。
(Problems to be Solved by the Invention) The present invention is advantageous in that when performing Bunji-in printing including enlarged characters, for example, the printing position with respect to the horizontal ruled line of the paper does not differ depending on the printing line, and the bottom edge of all printed characters is printed. An object of the present invention is to provide a document creation device that can easily print line breaks with the position aligned with horizontal rules.

[発明の構成1 (問題点を解決するための手段及び作用)すなわち本発
明に係わる文書作成装置は、文書領域の各文山行に対応
する拡大文字情報を管理する行ピッチレジスタと、予め
設定される基本(ラビッチを管理する基本行ピッチレジ
スタと、前記行修飾レジスタにて管理される拡大文字情
報に基づき次行印字文字の縦方向文字サイズを計算する
文字下端位置算出手段と、この文字下端位置算出手段に
より得られた次行印字文字の縦方向文字サイズを上回る
前記基本行ピッチレジスタにて管理される基本行ピッチ
の最小整数倍を行ピッチとする行ピッチ決定手段と、拡
大文字パターンを印字ヘッド縦幅で分割して印字する拡
大文字分割印字手段と、この分?I印字手段による一行
分の拡大文字パターン印字復に前記行ピッチ決定手段に
より定められた行ピッチに基づき次行の文字下端位置を
算出する文字下端位置算出手段と、上記一行印字後の印
字ヘッドamから上記文字下端位置算出手段により得ら
れた次行の文字下端位置より前記次行印字文字の縦方向
文字サイズ分を差引いた位置までの改行量を算出する改
11量算出手段と、この改行a算出手段により得られた
改行量に基づき上記印字ヘッドの印字位置を改(jする
改行ill tl1手段とを備え、行ピッチを常に横罫
に対応させると共に、この行ピッチ下端から予め印字文
字の縦方向文字サイズを差引いた位置に印字ヘッドの上
端位置が改行セットされるよう構成したものである。
[Structure 1 of the Invention (Means and Effects for Solving Problems) That is, the document creation device according to the present invention includes a line pitch register for managing enlarged character information corresponding to each text line in a document area, and a line pitch register that is set in advance. Basics (a basic line pitch register that manages the rabitch, a character bottom position calculation means that calculates the vertical character size of the next line print character based on the enlarged character information managed by the line modification register, and a character bottom position a line pitch determining means that sets the line pitch to a minimum integral multiple of the basic line pitch managed by the basic line pitch register, which exceeds the vertical character size of the next line of printed characters obtained by the calculation means, and printing an enlarged character pattern; The enlarged character division printing means divides and prints by the vertical width of the head, and the ?I printing means prints an enlarged character pattern for one line, and then prints the lower end of the next line of characters based on the line pitch determined by the line pitch determining means. a character lower end position calculating means for calculating the position, and a character lower end position of the next line obtained from the print head am after printing one line by the character lower end position calculating means, and subtracting the vertical character size of the next line printed character. a line feed amount calculation means for calculating the line feed amount up to the line feed position, and a line feed ill tl1 means for changing the printing position of the print head based on the line feed amount obtained by the line feed a calculation means, is always made to correspond to horizontal ruled lines, and the upper end position of the print head is set to a line break at a position obtained by subtracting the vertical character size of the printed characters from the lower end of the line pitch.

(実臆例) 以下図面を参照して本発明の一実施例を説明する。(Actual example) An embodiment of the present invention will be described below with reference to the drawings.

第1図は一実施例に係わる文書作成装置の基本的構成を
示すブロック図である。第1図において、マイクロプロ
セッサ(CPU)10は、文書作成装置全体の制■を行
なう回路であり、文書作成処理、外字作成処理、あるい
は印刷処理等を実(うする。RAM11は、支店作成に
必要な各種情報を格納するメモリである。このRA〜1
111よ、作成支店を格納する文m領域、行イメージ領
域(印字バッファ)、外字登録領域(外字(84区01
点)〜(84区16点))、語句登録領域(語句(1)
〜(10))を始め、印刷内式設定用の文字ピッチレジ
スタ、行ピッチレジスタ、中央行間ピッチレジスタ、頁
行数レジスタ等の各種制鉗情報を記憶する領域からなる
。ここで、上記文書領域には、作成された文書がその作
成古式のまま格納されるもので、この支店領域の各文」
行に(ま、それぞれ対応して行修飾レジスタが設けられ
る。この行烙飾レジスタは、例えば対応する文自行が拡
大文字として格納された場合にその倍率値を記憶するも
ので、この拡大文字情報は、作成文力の印刷等を行なう
際にCPU10に読出され、後述するプリンタコントロ
ーラ24の印刷制圓情報として利用される。ROM12
は、CPU10の動作を決定する文書作成処理プログラ
ムや印刷処理プログラム等を記憶するプログラム劃し3
を始め、表示あるいは印字文字パターン等の特定文字パ
ターンを記憶する文字パターン領域14、゛仮名パある
いはローマ字で入力された読みを漢字に変換するための
各種辞書が登録された辞履領ll1t15を有している
FIG. 1 is a block diagram showing the basic configuration of a document creation device according to an embodiment. In FIG. 1, a microprocessor (CPU) 10 is a circuit that controls the entire document creation device, and executes document creation processing, custom character creation processing, printing processing, etc. A RAM 11 is used for branch creation. This is a memory that stores various necessary information.This RA~1
111, the sentence m area that stores the created branch, the line image area (print buffer), the external character registration area (external character (84 ward 01
points) ~ (16 points in 84 wards)), word registration area (word (1)
- (10)), a character pitch register for printing format settings, a line pitch register, a center line spacing pitch register, a page line number register, and other various control information are stored in the area. Here, in the above document area, the created document is stored in its original creation style, and each sentence in this branch area is stored.
A line decoration register is provided corresponding to each line. This line decoration register stores the magnification value when the corresponding sentence's own line is stored as an enlarged character, and this enlarged character information is read out by the CPU 10 when printing the created writing, etc., and is used as printing system information of the printer controller 24, which will be described later.ROM 12
is a program section 3 that stores a document creation processing program, a print processing program, etc. that determines the operation of the CPU 10;
, a character pattern area 14 for storing specific character patterns such as display or print character patterns, and a dictionary area ll1t15 for storing various dictionaries for converting readings input in kana or romaji into kanji. are doing.

キーボード(KB>16は、文書作成等に必要な入力情
報をキーボードコントローラ(KB−CNT)17を通
してCPU10へ入力するためのキー人力装置である。
The keyboard (KB>16) is a key-powered device for inputting input information necessary for document creation etc. to the CPU 10 through the keyboard controller (KB-CNT) 17.

キーボード16は、文書作成に必要なひらがなキー、か
な/Fg4変換キーを始め、印刷モード指定キーや選択
/実行キー、終了キー、テンキー等を喝えている。表示
装置f18は、例えば10行401fi表示の液晶ディ
スプレイ装置からなる。表示コントローラ(表示−CN
T)19は、CPU1017)illIOニヨリ表示用
V−RA〜120を用い表示器18に対する表示制御を
行なう。フロッピーディスク装置(FDD)21及びデ
ィスクコントローラ(FDD−CNT)22は、作成さ
れた文書を保存したり、予め外字及び第2水準文字等を
記憶する外部メモリを構成する。
The keyboard 16 includes Hiragana keys and Kana/Fg4 conversion keys necessary for document creation, as well as print mode designation keys, selection/execution keys, end keys, numeric keys, and the like. The display device f18 is, for example, a liquid crystal display device with 10 lines and 401fi display. Display controller (display-CN
T) 19 performs display control on the display 18 using the CPU 1017) illIO grin display V-RA~120. A floppy disk device (FDD) 21 and a disk controller (FDD-CNT) 22 constitute an external memory that stores created documents and stores external characters, second level characters, etc. in advance.

プリンタ(PRT)23及びプリンタコントローラ(P
RT−CNT)24は、作成された文通あるいは上記フ
ロッピーディスク装置21から本体内に読込んだ文字情
報等を上記CPU10による印字制御に応じ印字するた
めの印字装置を構成する。ここで、上記印字コントロー
ラ24には、改行制御部24aと印字制御部24bとが
備えられ、上記プログラム領域13にて記憶される印刷
処理プログラムによる印刷処理時において、プリンタ2
3の印字動作及び改i′:i動作がお!1罪される。
Printer (PRT) 23 and printer controller (P
RT-CNT) 24 constitutes a printing device for printing created correspondence or character information read into the main body from the floppy disk device 21 in accordance with printing control by the CPU 10. Here, the print controller 24 is equipped with a line feed control section 24a and a print control section 24b, and the printer 2
3 printing operation and modified i':i operation! 1 crime.

この場合、印81処理における印字文字の文字ピッチ及
び行ピッチは、次式(1)及び(2)で与えられる倍数
(X、Y)で、それぞれ印刷書式設定にて基本となる文
字ピッチ及び行ピッチを整数倍した鶏に定められる。
In this case, the character pitch and line pitch of the printed characters in the mark 81 process are multiples (X, Y) given by the following formulas (1) and (2), and are the basic character pitch and line pitch in the print format settings, respectively. It is determined that the pitch is an integer multiple of the pitch.

文字ピッチ倍率<X>=1横方向文字サイズ/基本文字
ピッチ+11  ・・・式(1)行ピッチ倍率(Y)−
1縦方向文字サイズ/基本行ピッチ+11   ・・・
式(2)但し、11は少数点以下の切捨てを意味する。
Character pitch magnification <X> = 1 horizontal character size/basic character pitch + 11 ... Formula (1) Line pitch magnification (Y) -
1 vertical character size/basic line pitch + 11...
Equation (2) However, 11 means rounding down to the decimal point.

つまり、上記文字ピッチ倍率(X)及び行ピッチ倍率(
Y)は、何れも基本ピッチに対する印字文字サイズの比
に“1″を加えた最小の整R1iで与えられる。ここで
、上記印字文字の縦方向文字サイズ及び横方向文字サイ
ズは、RAMII内の行rA飾レジスタにて管理される
拡大文字情報に基づきCPU10にて計算される。
In other words, the above character pitch magnification (X) and line pitch magnification (
Y) are both given by the minimum integer R1i obtained by adding "1" to the ratio of the printed character size to the basic pitch. Here, the vertical character size and horizontal character size of the printed characters are calculated by the CPU 10 based on enlarged character information managed in the row rA decoration register in RAMII.

そして、上記改行制御部24a及び印字制御部24bに
は、それぞれプリンタ23における印字行数を管理する
行数カウンタ及び印刷する文書領域内における印字文書
行を管理する印字行ポインタ等が備えられる。
The line feed control section 24a and the print control section 24b are each equipped with a line counter for managing the number of lines printed in the printer 23, a print line pointer for managing the lines of the printed document within the document area to be printed, and the like.

次に、上記構成による文書作成装置の拡大文字を含む文
書印刷動作について説明する。
Next, the operation of printing a document including enlarged characters by the document creation device configured as described above will be described.

まず、本装置を例えば印刷モードに設定し、印@書式の
設定により、例えば用紙の縦罫間隔に合わせて基本文字
ピッチを、横罫間隔に合わせて基本行ピッチを入力した
後、選択/実行キーを操作すると、印字行ポインタによ
り指定された文書領域内の文書行がRAMIIからプリ
ンタコントローラ24に読出される。ここで、cpui
oは、読出した文3行に対応する行修飾レジスタに拡大
文字情報が有るか無いかを判別するもので、この行嫁飾
レジスタの拡大文字情報確認後、第2図に示すフローチ
ャートに対応する文書印刷処理が第3図に示すようにし
て行なわれる。
First, set this device to print mode, for example, and enter the basic character pitch according to the vertical ruled interval of the paper and the basic line pitch according to the horizontal ruled interval by setting the mark @ format, and then select/execute. When the key is operated, the document line within the document area specified by the print line pointer is read out from RAMII to the printer controller 24. Here, cpui
o determines whether there is expanded character information in the line decoration register corresponding to the 3 lines of the read sentence. After checking the expanded character information in the line decoration register, the process corresponds to the flowchart shown in FIG. Document printing processing is performed as shown in FIG.

まず、ステップS1において、CPUl0は上記行r1
飾レジスタ内の拡大文字情報に基づき、その文字倍率値
に応した拡大文字33aの縦方向文字サイズYoを算出
する。すると、ステップS2において、上記ステップS
1の計算処理により得られた拡大文字33aの縦方向文
字サイズYOは、印字ヘッド31の縦幅Hを上回るか否
か判断されるもので、このステップS2において(YE
S)、つまり印字ヘッド31の印字幅Hでは1回の印字
動作で拡大文字33aの全体を印字できないと判断され
ると、ステップS3以降の拡大文字の分割印字処理に進
む。このステップS3では、CPU10は上記拡大文字
33aの縦方向文字サイズYOから印字ヘッド31の縦
幅Hを引き、拡大文字33aに対する印字ヘッド31の
印字不足幅しを算出する。そして、ステップS4では、
上記ステップS3で算出された印字不足幅りに基づき、
印字ヘッド31の初期設定位置からのパック改行を行な
う。
First, in step S1, CPUl0
Based on the enlarged character information in the decoration register, the vertical character size Yo of the enlarged character 33a corresponding to the character magnification value is calculated. Then, in step S2, the step S
It is determined whether or not the vertical character size YO of the enlarged character 33a obtained by the calculation process in step 1 exceeds the vertical width H of the print head 31. In this step S2, (YE
S), that is, when it is determined that the entire enlarged character 33a cannot be printed in one printing operation with the printing width H of the print head 31, the process proceeds to the enlarged character division printing process from step S3 onwards. In step S3, the CPU 10 subtracts the vertical width H of the print head 31 from the vertical character size YO of the enlarged character 33a to calculate the insufficient printing width of the print head 31 for the enlarged character 33a. Then, in step S4,
Based on the printing shortage width calculated in step S3 above,
A pack line feed is performed from the initial setting position of the print head 31.

すなわち、オペレータが印字ヘッド31の下端位置を、
予め印刷用紙の横罫32に対して矢印2で示すように合
わせ位W1設定しておくと、上記ステップS4において
、cpuioにより算出された印字不足幅しに応じて、
プリンタコントローラ24の改行制御部24aは、プリ
ンタ23の用紙ローラを逆回転させ印字ヘッド31によ
る印字位置のバック改行を行なう。すると、ステップS
5に進み、印字制御部24bは、印字ヘッド31の印字
幅Hに対応した印字処理をプリンタ23に行なわせると
共に、ステップ$6に進み、印字ヘッド31の印字位置
をその幅Hに対応して改行する。
That is, the operator determines the lower end position of the print head 31.
If the alignment position W1 is set in advance as shown by arrow 2 with respect to the horizontal ruled line 32 of the printing paper, in step S4, according to the insufficient printing width calculated by cpuio,
The line feed control unit 24a of the printer controller 24 reversely rotates the paper roller of the printer 23 to perform a back line feed of the printing position by the print head 31. Then step S
In step 5, the print control unit 24b causes the printer 23 to perform a printing process corresponding to the print width H of the print head 31, and in step $6, the print control unit 24b changes the print position of the print head 31 in accordance with the width H. Begin on a new line.

ここで、ステップS7において(No)、つまり、まだ
−行分の文字印字が完了してないと判断されると、再び
ステップ$5に戻り、印字制御部24bはプリンタ23
をさらに印字111f’Fさせ、上記印字位MP1によ
る拡大文f33aの上部分!11印字に引き続く印字位
置P2での下部分割印字処理を行なう。すなわち、拡大
文字印字の場合には、その拡大文字縦幅Yに到達するま
で、上記ステップ85〜ステツプS7による分割印字改
行処理が繰返される。これにより、印字出力された拡大
文字33aは、その下端位置が上記印字ヘッド31の初
期設定位置に対応する横罫32に合った位置で印字され
るようになる。
Here, if it is determined (No) in step S7, that is, it is determined that printing of characters for - line has not been completed yet, the process returns to step $5 again, and the print control unit 24b controls the printer 23.
is further printed 111f'F, and the upper part of the enlarged text f33a with the above printing position MP1! 11 printing is performed at the printing position P2. That is, in the case of enlarged character printing, the divided printing line feed processing in steps 85 to S7 is repeated until the enlarged character vertical width Y is reached. As a result, the printed enlarged characters 33a are printed at a position where the lower end position matches the horizontal line 32 corresponding to the initial setting position of the print head 31.

こうして、−行分の拡大文字パターンの印字が完了する
と、ステップS8において、印刷上定文!!領域の全文
書行の印字が終了したか否か、例えば印字行ポインタの
ポイント値に基づき判断される。このステップS8にお
いて<No) 、つまり、まだ印字文書行が有ると判断
されると、ステップ89〜ステツプS12における次の
文書行印字のための印字位置改行処理に進む。
In this way, when the printing of the enlarged character pattern for - lines is completed, in step S8, the printing fixed text! ! Whether or not all document lines in the area have been printed is determined based on, for example, the point value of the print line pointer. If it is determined in this step S8 that <No), that is, there are still document lines to be printed, the process proceeds to print position line feed processing for printing the next document line in steps 89 to S12.

すなわち、ステップ$9では、印字した拡大文字33a
の縦方向文字サイズYOと印字ヘッド31の縦幅Hとに
基づき、現在の印字ヘッド31の上端位置に対する印字
文字33aの下端までの距IMを計算する。この距離M
は、上記印字文字33aの縦方向文字サイズYOを印字
ヘッド31の![Hで割り、その残り値から得られるも
ので、この後、ステップ810に進み、次行印字文字3
3bの縦方向文字サイズYlを、その印字文書行に対応
する行IFJレジスタにて管理される拡大文字情報に基
づき計算する。そして、ステップS11に進み、上記印
字文字33aの下端位置から次行印字文字33bの下端
位置までの距離、つまり行間ピッチGから上記ステップ
S10にて算出された次行印字文字3])の縦方向文字
サイズY1を引き、上記印字文字33aの下端と次行印
字文字331)の上端との距離S含算出する。
That is, in step $9, the printed enlarged character 33a
Based on the vertical character size YO and the vertical width H of the print head 31, the distance IM from the current upper end position of the print head 31 to the lower end of the printed character 33a is calculated. This distance M
is the vertical character size YO of the printed characters 33a of the print head 31! [Divide by H and obtain from the remaining value. After this, proceed to step 810 and print character 3 on the next line.
The vertical character size Yl of 3b is calculated based on the enlarged character information managed in the row IFJ register corresponding to the printed document row. Then, the process proceeds to step S11, and the vertical direction of the next line printed character 3 calculated in step S10 from the distance from the lower end position of the printed character 33a to the lower end position of the next line printed character 33b, that is, the interline pitch G. The character size Y1 is subtracted to calculate the distance S between the lower end of the printed character 33a and the upper end of the next line printed character 331).

ここで、上記行間ピッチGは、上記ステップ810で計
算した次行印字文字33bの縦方向文字サイズYlと前
記印刷書式設定による基本行ピッチとに基づき、前記式
(2)に応じた基本行ピッチ倍率(Y)から求められる
もので、これにより次行印字文字33bの縦方向文字サ
イズY1を上回る基本行ピッチ整数倍の行ピッチが得ら
れ、次行の文字33t)の下端位置は必然的に他の印字
文字同様、横罫32に対し合わせられることになる。そ
して、ステップ812に進み、印字ヘッド31の上端を
基準とする次行の文字下端位置からその文字の縦方向文
字サイズYlを差引いた位置までの改行−1つまり(M
+S)を算出し、この改行!l (M+S)を改行制御
部24aにセットしてプリンタ23における印字ヘッド
31の印字位置改行を行なう。
Here, the line spacing G is determined based on the vertical character size Yl of the next line printed characters 33b calculated in step 810 and the basic line pitch according to the print format setting, and the basic line pitch according to the equation (2). This is obtained from the magnification (Y), and as a result, a line pitch that is an integral multiple of the basic line pitch that exceeds the vertical character size Y1 of the next line of printed characters 33b is obtained, and the bottom position of the next line of characters 33t) is inevitably Like other printed characters, it will be aligned with the horizontal line 32. Then, the process proceeds to step 812, where the line feed is minus 1, that is, (M
+S) and this line break! l (M+S) is set in the line feed control section 24a to perform a line feed at the printing position of the print head 31 in the printer 23.

これにより、印字ヘッド31は、その上端位置が次行の
行間Gの下端から印字しようとする拡大文字33bの縦
方向文字サイズYlを差引いた位置に改行セットされる
もので、この後、上記ステップ85〜ステツプS7の印
字改行処理を幾度か繰返し、拡大文字33bがその下端
位置を横罫32に対応させたうイン22に合わせて印字
されるようになる。そして、上記ステップS8において
(YES)と判断されるまで、さらに、ステップ89〜
ステツプ312における行間改行処理及びステップ85
〜ステツプS7における印字改行処理を繰返し、指定文
書の印刷が終了する。
As a result, the upper end position of the print head 31 is set to the position where the vertical character size Yl of the enlarged character 33b to be printed is subtracted from the lower end of the line spacing G of the next line, and after this, the above-mentioned step By repeating the printing line feed process from step S85 to step S7 several times, the enlarged character 33b is printed with its lower end position aligned with the inside line 22 corresponding to the horizontal line 32. Then, until it is determined (YES) in step S8, steps 89 to
Line break processing in step 312 and step 85
~The printing line feed process in step S7 is repeated, and printing of the specified document is completed.

したがって、−行印字後の印字ヘッド位置から、基本行
ピッチを整数倍した行ピッチに基づく次行の文字下端位
置より次行印字文字の縦方向文字サイズ分を引いた位置
までの改!1ffiを求めて印字位置の改行till 
IIIを行なうよう構成したので、例えば第4図に示す
ように、印刷指定文書の各文書行に様々な文字倍率の拡
大文字33が存在しても、印刷用紙の横罫32に対し常
に一定の相対距lidを持って印字下端位置を合わせ印
刷することが可能となる。
Therefore, from the print head position after printing the - line to the position of the bottom edge of the next line of characters based on the line pitch, which is an integer multiple of the basic line pitch, minus the vertical character size of the next line of printed characters! Find 1ffi and print line feed till
As shown in FIG. 4, even if there are enlarged characters 33 with various character magnifications in each document line of a specified print document, the horizontal lines 32 of the printing paper are always kept at a constant level. It becomes possible to print by aligning the lower end position of the print with the relative distance lid.

[発明の効果] 以上のように本発明によれば、文書領域の各文書行に対
応する拡大文字情報を管理する行蜂飾レジスタと、予め
設定される基本行ピッチを管理する基本行ピッチレジス
タと、前記行@飾レジスタにて管理される拡大文字情報
に基づき次行印字文字の縦方向文字サイズを計算する文
字下端位置算出手段と、この文字下端位置算出手段によ
り得られた次行印字文字の縦方向文字サイズを上回る前
記基本行ピッチレジスタにて管理される基本行ピッチの
最小整数倍を行ピッチとする行ピッチ決定手段と、拡大
文字パターンを印字ヘッド縦幅で分割して印字する拡大
文字分割印字手段と、この分割印字手段による一行分の
拡大文字パターン印字後に前記行ピッチ決定手段により
定められた行ピッチに基づき次行の文字下端位置を算出
する文字下端位置目出手段と、上記一行印字後の印字ヘ
ッド位置から上記文字下@位置算出手段により得られた
次行の文字下端位置より前記次行印字文字の縦方向文字
サイズ分を差引いた位置までの改行量を算出する改行量
算出手段と、この改行量ci出手段により得られた改行
量に基づき上記印字ヘッドの印字位置を改行する改行制
御手段とを備え、行ピッチを常に横罫に対応させると共
に、この行ピッチ下端から予め印字文字の縦方向文字サ
イズを差引いた位置に印字ヘッドの上端位置が改行セッ
トされるよう構成したので、拡大文字を含む文書印刷を
行なう際に、例えば用紙横罫に対する印字位置が印字行
によって区々になることなく、全ての印字文字下端位置
を容易に横罫に合わせて改行印字することが可能になる
文書作成装置を提供できる。
[Effects of the Invention] As described above, according to the present invention, there are provided a line decoration register that manages enlarged character information corresponding to each document line in a document area, and a basic line pitch register that manages a preset basic line pitch. , a character bottom position calculation means for calculating the vertical character size of the next line print character based on the enlarged character information managed in the line@decoration register, and a next line print character obtained by the character bottom position calculation means. line pitch determination means that sets the line pitch to a minimum integral multiple of the basic line pitch managed by the basic line pitch register that exceeds the vertical character size of the character; a character division printing means; a character lower end position determining means for calculating the character lower end position of the next line based on the line pitch determined by the line pitch determination means after printing an enlarged character pattern for one line by the division printing means; Line feed amount to calculate the line feed amount from the print head position after printing one line to the position obtained by subtracting the vertical character size of the next line printed character from the bottom edge position of the next line character obtained by the character bottom @ position calculation means. A calculation means, and a line feed control means for changing the printing position of the print head to a line feed based on the line feed amount obtained by the line feed amount ci outputting means. Since the top end position of the print head is configured to set a line break in advance at the position where the vertical character size of the printed characters is subtracted, when printing a document that includes enlarged characters, for example, the print position relative to the horizontal ruled lines of the paper may change depending on the print line. It is possible to provide a document creation device that can easily print line breaks to match the lower end positions of all printed characters with the horizontal lines without creating gaps.

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

第1図は本発明の一実施例に係わる文書作成装置の基本
的構成を示すブロック図、第2図は同実施例における印
刷処理動作を示すフローチャート、第3図は同実籠例に
おける拡大文字を含む文書の印刷処理vJ乍を示す図、
第4図は同実施例における各文字倍率に対応する拡大文
字の印刷状態を示す図、第5図(A)及び(B)はそれ
ぞれ印字ヘッドの初期設定位置及びその初期設定位置を
基準とする従来の拡大文字印字動作を示す図、第6図は
従来の拡大文字印字処理による各文字倍率に対応する拡
大文字の印刷状態を示す図である。 10・・・CPU、11・・・RAM、12・・・RO
M、13・・・プログラム領域、14・・・文字パター
ン6[,16・・・キーボード、18・・・表示lit
、23・・・プリンタ、24・・・プリンタコントロー
ラ、24a・・・改行制御部、24b・・・印字制御部
、31・・・印字ヘッド、32 ・・・横罫、33.3
3a、33b−・・拡大文字。
FIG. 1 is a block diagram showing the basic configuration of a document creation device according to an embodiment of the present invention, FIG. 2 is a flowchart showing the print processing operation in the same embodiment, and FIG. 3 is an enlarged character in the same real basket example. A diagram showing printing process vJ of a document including
FIG. 4 is a diagram showing the printing state of enlarged characters corresponding to each character magnification in the same embodiment, and FIGS. 5 (A) and (B) are the initial setting position of the print head and the initial setting position, respectively. FIG. 6 is a diagram illustrating the conventional enlarged character printing operation. FIG. 6 is a diagram showing the printing state of enlarged characters corresponding to each character magnification by the conventional enlarged character printing process. 10...CPU, 11...RAM, 12...RO
M, 13...Program area, 14...Character pattern 6[, 16...Keyboard, 18...Display lit
, 23...Printer, 24...Printer controller, 24a...Line feed control section, 24b...Print control section, 31...Print head, 32...Horizontal ruled line, 33.3
3a, 33b--Enlarged characters.

Claims (1)

【特許請求の範囲】[Claims] 文書領域の各文書行に対応する拡大文字情報を管理する
行修飾レジスタと、予め設定される基本行ピッチを管理
する基本行ピッチレジスタと、前記行修飾レジスタにて
管理される拡大文字情報に基づき次行印字文字の縦方向
文字サイズを計算する文字サイズ計算手段と、この文字
サイズ計算段により得られた次行印字文字の縦方向文字
サイズを上回る前記基本行ピッチレジスタにて管理され
る基本行ピッチの最小整数倍を行ピッチとする行ピッチ
決定手段と、拡大文字パターンを印字ヘッド縦幅で分割
して印字する拡大文字分割印字手段と、この分割印字手
段による一行分の拡大文字パターン印字後に前記行ピッ
チ決定手段により定められた行ピッチに基づき次行の文
字下端位置を算出する文字下端位置算出手段と、上記一
行印字後の印字ヘッド位置から上記文字下端位置算出手
段により得られた次行の文字下端位置より前記次行印字
文字の縦方向文字サイズ分を差引いた位置までの改行量
を算出する改行量算出手段と、この改行量算出手段によ
り得られた改行量に基づき上記印字ヘッドの印字位置を
改行する改行制御手段とを具備したことを特徴とする文
書作成装置。
Based on the line modification register that manages expanded character information corresponding to each document line in the document area, the basic line pitch register that manages the basic line pitch set in advance, and the expanded character information managed by the line modification register, A character size calculation means for calculating the vertical character size of the next line printed character, and a basic line managed by the basic line pitch register that exceeds the vertical character size of the next line printed character obtained by this character size calculation stage. A line pitch determining means that sets the line pitch to a minimum integral multiple of the pitch, an enlarged character division printing means that prints the enlarged character pattern by dividing it by the vertical width of the print head, and after printing the enlarged character pattern for one line by the division printing means. a character bottom position calculation means for calculating the character bottom position of the next line based on the line pitch determined by the line pitch determination means; and a next line obtained by the character bottom position calculation means from the print head position after printing one line. a line feed amount calculating means for calculating the line feed amount from the lower end position of the character to a position obtained by subtracting the vertical character size of the next line printed character; 1. A document creation device comprising: line feed control means for changing a print position.
JP61172232A 1986-07-22 1986-07-22 Document creation device Expired - Lifetime JPH0790650B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61172232A JPH0790650B2 (en) 1986-07-22 1986-07-22 Document creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61172232A JPH0790650B2 (en) 1986-07-22 1986-07-22 Document creation device

Publications (2)

Publication Number Publication Date
JPS6328660A true JPS6328660A (en) 1988-02-06
JPH0790650B2 JPH0790650B2 (en) 1995-10-04

Family

ID=15938053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61172232A Expired - Lifetime JPH0790650B2 (en) 1986-07-22 1986-07-22 Document creation device

Country Status (1)

Country Link
JP (1) JPH0790650B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01226346A (en) * 1988-03-07 1989-09-11 Canon Inc Document editing apparatus
JPH01242264A (en) * 1988-03-25 1989-09-27 Oki Electric Ind Co Ltd Printer control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01226346A (en) * 1988-03-07 1989-09-11 Canon Inc Document editing apparatus
JPH01242264A (en) * 1988-03-25 1989-09-27 Oki Electric Ind Co Ltd Printer control system

Also Published As

Publication number Publication date
JPH0790650B2 (en) 1995-10-04

Similar Documents

Publication Publication Date Title
JPH03226859A (en) Layout display controller of document processor
JPS6328660A (en) Document preparation apparatus
EP0190511A1 (en) Block processing apparatus
JPH01217540A (en) Document preparing device
JPH0773936B2 (en) Document creation device
JP3663865B2 (en) Form processing apparatus and storage medium
JPH0330049A (en) Document generation device
JPH03156668A (en) Document preparing device
JPH03177963A (en) Kanji classification method, kanji classification table and kanji processor
JPS6328684A (en) Document printer
JPH01247187A (en) Printing control device
JP2610405B2 (en) Document creation device
JP3062282B2 (en) Character processor
JPH0362259A (en) Character input processor
JPH02250189A (en) Method and device for generating character
JPH0788102B2 (en) Document creation device
JPH02256093A (en) System for forming information on character font pitch
JPH0264853A (en) Document generating device
JPH02301862A (en) Document preparing device
JPH0248768A (en) Document generating device
JPH0554180A (en) Slop format defining system for optical character reader
JPH04326457A (en) Document generation device
JPS63291089A (en) Character processor
JPH02301858A (en) Document preparing device
JPH0375879A (en) Character processor provided with character size adjusting function