JPS62107367A - Document generating device with line modification setting function - Google Patents

Document generating device with line modification setting function

Info

Publication number
JPS62107367A
JPS62107367A JP60247536A JP24753685A JPS62107367A JP S62107367 A JPS62107367 A JP S62107367A JP 60247536 A JP60247536 A JP 60247536A JP 24753685 A JP24753685 A JP 24753685A JP S62107367 A JPS62107367 A JP S62107367A
Authority
JP
Japan
Prior art keywords
line
document
modification
area
information
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.)
Pending
Application number
JP60247536A
Other languages
Japanese (ja)
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 JP60247536A priority Critical patent/JPS62107367A/en
Publication of JPS62107367A publication Critical patent/JPS62107367A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To set line modifying information in a lump, and to set a line modification by a line unit by providing a storage means having a line modifying information area in which line modifying information for showing the first document form containing a character size and a quasi-field by a line unit is set so as to correspond to each line of a document. CONSTITUTION:When an operation input of a line modification key is discriminated, a CPU 11 fetches line modifying information in a line modifying area 22 corresponding to a line to which a line modification has been designated, to a line modifying information temporary storage area in a RAM 20, and switches a display mode of an indicator 34 from a document display mode to a line modification display mode. In order to the line modification, not only a character interval/line pitch screen, but also a character size screen, a rotation.quasi-field/void screen for designating the rotation.quasi-field/void, etc. are prepared, and when the screen is switched by a key operation, the CPU 11 updates the set contents of the item concerned in the line modifying information which has stored temporarily in the line modifying information temporary storage area in the RAM 20, to its selected contents, and sets them to a line modifying information field corresponding to the designated line.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、行修飾設定機能付き文書作成装置に関する
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a document creation device with a line modification setting function.

[発明の技術的背景] 近時、日本語ワードプロセッサ等の文書作成装置は、文
字サイズ等の文書形態を行単位で種々設定できる行修飾
設定機能を持つことが要求されている。この種の文書作
成装置は、文書中の任意行の文字列を選択的に例えば拡
大/縮小したい場合に便利である。
[Technical Background of the Invention] Recently, document creation devices such as Japanese word processors are required to have a line modification setting function that allows various document formats such as font size to be set on a line-by-line basis. This type of document creation device is useful when, for example, it is desired to selectively enlarge or reduce character strings in arbitrary lines in a document.

1背景技術の問題点] しかし、行単位で行修飾設定(指定)を行なう方式は、
文書の大部分を行修飾したいようなときには、作業量が
多くなることから、効率か悪く、斜体文字を必要とする
英文を有する文書を扱う場合などでは特に問題であった
1. Problems with background technology] However, the method of setting (specifying) line decoration on a line-by-line basis is
When it is desired to line-modify a large part of a document, the amount of work involved is large, which makes it inefficient, and is particularly problematic when dealing with documents containing English text that requires italic characters.

[発明の目的] この発明は上記事情に鑑みてなされたものでその目的は
、文書の1行文字数を設定する書式設定(・°−佳作時
において、文字サイズ並びに斜体を含む文書形態を文書
全体の文書形態として指定するだけで、同文書形態に対
応する行修飾情報が文書各行について自動設定でき、し
かも行単位での行修飾設定も併用できる行修飾設定機能
付き文書作成装置を提供することにある。
[Purpose of the Invention] This invention was made in view of the above circumstances, and its purpose is to set the number of characters per line of a document (・° - In the case of an honorable mention, the document format including the font size and italics can be changed as a whole document. To provide a document creation device with a line decoration setting function that can automatically set line decoration information for each line of a document by simply specifying it as a document format, and can also set line decorations on a line-by-line basis. be.

[発明の概要] この発明では、文字サイズ並びに斜体を含む第1文書形
態を行単位で示す行修飾情報が文書の各行に対応付けて
設定される行修飾情報領域を有する記憶手段が設けられ
る。行修飾情報領域への行修飾情報の設定は、第1指示
手段により、第1文書形態の少なくとも一部を成し文字
サイズ並びに斜体を含む第2文書形態の設定が文書を単
位に指示された場合、更には第2指示手段により、第1
文書形態の設定が文書の行を単位に指示された場合に行
なわれる。前者の指示の場合には、第2文書形態を示す
情報が行修飾情報(第1文書形態)の少なくとも一部と
して各文書行にそれぞれ対応付けて設定される。これに
対して後者の場合には、第1文書形態を示す情報が行修
飾情報として指定文書行に対応付けて設定される。この
ような構成により、行修飾情報の一括設定を可能とする
と共に、行単位での行修飾設定の併用も可能としている
[Summary of the Invention] According to the present invention, a storage means is provided which has a line modification information area in which line modification information indicating a first document format including font size and italics on a line-by-line basis is set in association with each line of the document. The setting of line modification information in the line modification information area is performed by instructing the setting of a second document format, which forms at least a part of the first document format and includes font size and italics, for each document by the first instruction means. In this case, the second indicating means further causes the first
The document format is set when the document format is specified for each line of the document. In the case of the former instruction, information indicating the second document format is set as at least part of the line modification information (first document format) in association with each document line. On the other hand, in the latter case, information indicating the first document format is set as line modification information in association with the specified document line. With such a configuration, it is possible to set line decoration information all at once, and it is also possible to set line decoration information on a line-by-line basis.

[発明の実施例] 第1図はこの発明の一実施例に係る文書作成装置、例え
ば日本語ワードプロセッサのブロック構成を示す。
[Embodiment of the Invention] FIG. 1 shows a block configuration of a document creation device, for example, a Japanese word processor, according to an embodiment of the invention.

第1図において、11は装置全体の制御を司るCPU、
12はROMである。ROM12は、システムプログラ
ム等が格納されているプログラム領域13、装置で扱う
漢字を含む文字コードに対応した文字パターン(英文フ
ォントを含む)が登録された文字パターン領域14、お
よび「かな」或は「ローマ字」で入力された読みを漢字
に変換するための各種辞書が登録された辞書領域15等
を有する。
In FIG. 1, 11 is a CPU that controls the entire device;
12 is a ROM. The ROM 12 includes a program area 13 in which system programs and the like are stored, a character pattern area 14 in which character patterns (including English fonts) corresponding to character codes including kanji handled by the device are registered, and "kana" or " It has a dictionary area 15 etc. in which various dictionaries for converting readings input in "Romaji" into Kanji are registered.

また20は文書領域、印刷イメージ領域等が置かれるR
AMであり、その詳細については第2図のメモリマツプ
を使用して後述する。
20 is R where the document area, print image area, etc. are placed.
The details thereof will be described later using the memory map shown in FIG.

31はキーボードコントローラ(KBC)、32はキー
ボード(K B )である。33は表示コントローラ(
表示CNT)、34は表示器、35は表示器34に表示
する表示パターンを格納する表示用ドツトメモリである
。この実施例において、表示器34は32(縦)X64
0 (横)ドツト構成の液晶表示器である。表示器37
の上部16X640ドツトは゛11行X40(1桁、1
6X16ドツト)の文書表示領域として用いられ、下部
16X640ドツトは1行X40桁のガイド表示領域と
して用いられる。
31 is a keyboard controller (KBC), and 32 is a keyboard (K B ). 33 is a display controller (
34 is a display device; 35 is a display dot memory for storing a display pattern to be displayed on the display device 34; In this embodiment, the display 34 is 32 (vertical) x 64
0 (Horizontal) This is a liquid crystal display with a dot configuration. Display 37
The upper 16 x 640 dots are 11 rows x 40 (1 digit, 1
The lower 16x640 dots are used as a guide display area of 1 line x 40 columns.

なお、ガイド表示領域を必要に応じて文書表示領域に切
換え使用することにより、2行X40桁(40文字、2
行)の文書表示を行なうことも可能である。また表示器
34の表示領域の一部をレイアウト表示用に用いること
もできる。
By switching the guide display area to the document display area as needed, you can display 2 lines x 40 columns (40 characters, 2
It is also possible to display documents in rows. Further, a part of the display area of the display 34 can also be used for layout display.

3Gはプリンタコントローラ(PRTC) 、37は漢
字等の印字を行なうプリンタ(PRT)である。
3G is a printer controller (PRTC), and 37 is a printer (PRT) for printing Kanji characters, etc.

プリンタ37は例えば24ドツトの印字ヘッドををする
熱転写プリンタである。38はカセットインクフェース
(CMT−I F) 、39は文書等を保存するデータ
レコーダとして用いられるオーディオカセット磁気テー
プ装置(CMT)である。また41はフロッピーディス
クコントローラ(FDC)、42はフロッピーディスク
ドライブ(FDD)である。
The printer 37 is, for example, a thermal transfer printer with a 24-dot print head. 38 is a cassette ink face (CMT-IF), and 39 is an audio cassette magnetic tape device (CMT) used as a data recorder for storing documents and the like. Further, 41 is a floppy disk controller (FDC), and 42 is a floppy disk drive (FDD).

第2図は第1図に示すRA M 20のメモリマツプを
示す。
FIG. 2 shows a memory map of RAM 20 shown in FIG.

RAM20は、入力された文書(の文字コード列)を記
憶する文書領域21を有している。ここでは、文、i!
f領域21に、R′AM20のB番地から始まる例えば
9600バイト、即ち4800文字(1文字は2バイト
)分の領域を割付けている。またRAM20は、文書領
域21に格納される文書の行を単位に、文書形態を示す
例えば3バイトの行修飾情報を記憶する行修飾領域22
を有している。この行修飾領域22は、RAM2QのA
番地から始まる領域に割付けられる。
The RAM 20 has a document area 21 that stores (character code strings of) input documents. Here, the sentence, i!
For example, an area for 9,600 bytes, that is, 4,800 characters (one character is 2 bytes) starting from address B of R'AM 20 is allocated to the f area 21. The RAM 20 also includes a line modification area 22 that stores, for example, 3-byte line modification information indicating the document format for each line of the document stored in the document area 21.
have. This row modification area 22 is A of RAM2Q.
Allocated to the area starting from address.

RAM20は、文書書式を指定するたとえば3バイトの
文書書式情報を記憶する文書表領域23も有している。
The RAM 20 also has a document table area 23 that stores, for example, 3-byte document format information that specifies a document format.

この文書書式領域23に格納される文書書式情報は、後
述するように文書の1行当りの文字数rn(1行文字数
)を指定する1行文字数値を含む。更にRAM2Dは、
プリンタ37により印刷出力される印刷イメージデータ
を格納するラインバッファとしての印刷イメージ領域2
4、および印刷書式を指定する印刷書式情報を記憶する
印刷書式領域25等を有している。印刷イメージ領域2
4は、RAM20のT番地から始まる領域に割付けられ
る。
The document format information stored in the document format area 23 includes a line character value specifying the number rn of characters per line (number of characters per line) of the document, as will be described later. Furthermore, RAM2D is
Print image area 2 as a line buffer that stores print image data printed out by the printer 37
4, and a print format area 25 for storing print format information specifying a print format. Print image area 2
4 is allocated to the area starting from address T in the RAM 20.

また印刷書式領域25に格納される印刷書式情報は、標
準印刷のときの文書全体の基準となる印刷開始位置(即
ち印刷左余白)を示す左余白値Uを含んでいる。
Further, the print format information stored in the print format area 25 includes a left margin value U indicating a print start position (ie, print left margin) that is a reference for the entire document during standard printing.

第3図は、第2図の文書領域21に確保される文書行の
フィールドと行修飾領域22に確保される行修飾情報の
フィールドとの対応を模式的に示す。
FIG. 3 schematically shows the correspondence between the document line field secured in the document area 21 of FIG. 2 and the line modification information field secured in the line modification area 22.

第3図に示すように、文書領域21および行修飾領域2
2は、1行文字数情報の示す文字数mの行を単位に管理
される。したがってRAM20の文書領域2Iに格納可
能な文書の最大行数nは、同領域2Iに9600バイト
、即ち4800文字分を割付けているこの実施例では、
4800/mとなる。なお、第3図において、L、Cは
カーソル表示対象文字の行1桁位置を、Lεは文書領域
21に格納されている文書の最終行位置を示す。第り行
の文書行は、RAM20の(B+ (L−1)X2m1
番地(Bは文書領域21の先頭番地)から始まる2mバ
イト(m文字分)の領域に格納される。また第り行の(
文書行に対応する)行修飾情報は、RAM20のfA+
 (L−1)x3)番地(Aは行修飾領域22の先頭番
地)から始まる3バイトの領域に格納される。
As shown in FIG. 3, the document area 21 and the line modification area 2
2 is managed in units of lines with the number of characters m indicated by the number of characters per line information. Therefore, in this embodiment where 9600 bytes, or 4800 characters, are allocated to the document area 2I of the RAM 20, the maximum number of lines n of a document that can be stored in the document area 2I of the RAM 20 is:
It becomes 4800/m. In FIG. 3, L and C indicate the first column position of the character to be displayed by the cursor, and Lε indicates the last line position of the document stored in the document area 21. The next document line is (B+ (L-1)
It is stored in an area of 2 m bytes (m characters) starting from the address (B is the starting address of the document area 21). Also in the second row (
The line modification information (corresponding to the document line) is stored in fA+ of the RAM 20.
(L-1)x3) (A is the starting address of the row modification area 22) and is stored in a 3-byte area.

第4図は第2図の行修飾領域22に格納される行修飾情
報の構成を示す。
FIG. 4 shows the structure of the row modification information stored in the row modification area 22 of FIG.

行修飾情報は、文字の白抜き(並びに影付け)を指定す
る白抜き指定フラグ、回転・斜体を指定する2ビツトの
回転・斜体情報、文字サイズ(ここでは24X24ドツ
トの全角文字を基準とする倍率)を指定する4ビツトの
文字サイズ値、印刷途中での印刷停止を指定する印刷停
止指定フラグ、文字量間隔を指定する2ビツトの文字量
間隔値、行ピッチ(全角文字による標準印刷を基準とす
る改行量)を指定する4ビツトの行ピツチ値、用紙交換
を指定する用紙交換指定フラグ、および左余白を桁数で
指定する7ビツトの左余白値■から成る。
The line modification information includes a white outline specification flag that specifies the white outline (and shading) of characters, 2-bit rotation/italic information that specifies rotation/italics, and character size (here, 24 x 24 dots full-width characters are the standard). A 4-bit character size value that specifies the print size (magnification), a print stop specification flag that specifies printing to stop midway through printing, a 2-bit character spacing value that specifies the character spacing, and a line pitch (based on standard printing with double-byte characters). It consists of a 4-bit line pitch value that specifies the line feed amount), a paper exchange designation flag that specifies paper exchange, and a 7-bit left margin value (2) that specifies the left margin by the number of digits.

白抜き指定フラグは“1”で指定有り、“0”で指定無
しを示す。回転・斜体情報は、“OOO”で回転・斜体
無し、001”で回転1(90度時計計)、010″で
回転2(180度反時計)、“011”で回転3(27
0度反時計)、“100″で斜体を示す。
The white designation flag indicates "1" indicating designation, and "0" indicating no designation. For rotation/italic information, "OOO" indicates no rotation/oblique, 001" indicates rotation 1 (90 degrees clockwise), 010" indicates rotation 2 (180 degrees counterclockwise), and "011" indicates rotation 3 (27 degrees).
0 degrees counterclockwise), "100" indicates italics.

文字サイズ値は、“0001”〜“1001゜の範囲で
サイズ1(倍率;IXI)〜サイズ9(倍率;約24×
約24)を、”1111”でサイズQ(倍率、 1/2
 X 1/2)を示す。印刷停止指定フラグは“1”で
指定有り、“0“で指定無しを示す。文字量間隔値は、
“00“〜“11゜の範囲で文字間0.(O文字分)〜
文字間3(文字サイズ値の指定する倍率の文字の1/2
文字分)を示す。
Font size values range from "0001" to "1001°, size 1 (magnification; IXI) to size 9 (magnification; approx. 24 x
24), size Q (magnification, 1/2) with "1111"
X 1/2). The print stop designation flag is "1" indicating that the print stop is designated, and "0" indicating that the print stop designation flag is not designated. The character spacing value is
Character spacing is 0. (0 characters) in the range of “00” to “11°”
Character spacing 3 (1/2 of the character with the magnification specified by the character size value)
(characters).

行ピツチ値は、“1111“で改行B(改行量−10イ
ンチ/120)、“oooo”で改行O(改行量;0イ
ンチ)、“0001”で改行H(改行量:10インチ/
120)、“0010″で改行K(改行量:16インチ
/120)、“0011”で改行E(改行量;20イン
チ/120)、“0100“〜“0111”の範囲で改
行1(改行量;30インチ/120)〜改行4(改行量
;60インチ/120)を示す。
The line pitch value is "1111" for line feed B (line feed amount - 10 inches/120), "ooo" for line feed O (line feed amount: 0 inches), and "0001" for line feed H (line feed amount: 10 inches/120).
120), "0010" is a line feed K (line feed amount: 16 inches/120), "0011" is a line feed E (line feed amount: 20 inches/120), and "0100" to "0111" is a line feed 1 (line feed amount). ; 30 inches/120) to line feed 4 (line feed amount; 60 inches/120).

用紙交換指定フラグは、頁境界を設定するために該当行
の印刷終了時においてオペレータに用紙交換を要求する
のに用いられ、“1″で指定有り、“O”で指定無しを
示す。
The paper exchange designation flag is used to request the operator to exchange paper at the end of printing of the corresponding line in order to set page boundaries, and "1" indicates designation, and "O" indicates no designation.

左余白値Vは、該当行の印刷開始位置を印刷書式設定で
定められる左余白値U(印刷開始位置)を基準とする相
対位置(ここでは桁数)で指定するものである。この実
施例において、左余白値Vの指定範囲は、−9〜63桁
である。
The left margin value V specifies the print start position of the corresponding line as a relative position (here, number of digits) with respect to the left margin value U (print start position) determined by print format settings. In this embodiment, the specified range of the left margin value V is -9 to 63 digits.

なお、行修飾情報の初期値(これを標準行修飾情報と呼
ぶ)は、白抜き指定フラグ−〇(指定無し)、回転・斜
体情報−〇〇〇(回転・斜体無し)、文字サイズ値−0
001(サイズ1)、印刷停止指定フラグ−〇(指定無
し)、文字量間隔値−01(文字間1)、行ピツチ値−
0010(改行K)、用紙交換指定フラグ−〇(指定無
し)、左余白値V−θ(桁)であり、電源投入時に行修
飾領域22に自動設定される。
In addition, the initial values of line modification information (this is called standard line modification information) are: outline specification flag -〇 (no specification), rotation/italic information -〇〇〇 (no rotation/italic), and font size value - 0
001 (size 1), print stop designation flag - ○ (no specification), character spacing value - 01 (character spacing 1), line pitch value -
0010 (line feed K), paper exchange designation flag -0 (no designation), and left margin value V-θ (digit), which are automatically set in the line modification area 22 when the power is turned on.

第5図は第2図の文書書式領域23に格納される文TL
F書式情報の構成を示す。
Figure 5 shows the sentence TL stored in the document format area 23 in Figure 2.
The structure of F format information is shown.

文書書式情報は、文書の1行当りの文字数m(1行文字
数)を指定する1行文字数値と、回転・斜体情報、文字
サイズ値、文字量間隔値および行ピツチ値を有している
。これら回転・斜体情報、文字サイズ値、文字量間隔値
および行ピツチ値のビット構成並びに指定内容は、第4
図に示す行修飾情報のそれと同一である。
The document format information includes a line character value specifying the number m of characters per line (number of characters per line) of the document, rotation/italic information, character size value, character amount spacing value, and line pitch value. The bit configuration and specification contents of these rotation/italic information, character size value, character spacing value, and line pitch value are
This is the same as the row modification information shown in the figure.

なお、文書書式情報の初期値(これを標準文書書式情報
と呼ぶ)は、1行文字数m−40,回転・斜体情報−0
00(回転・斜体無し)、文字サイズ値−0001(サ
イズ1)、文字量間隔値−01(文字間1)、行ピツチ
値−0010(改行K)であり、電源投入時に文書書式
領域23に自動設定される。明らかなように、回転・斜
体情報、文字サイズ値、文字量間隔値および行ピツチ値
の初期値は、行修飾情報(標準行修飾情報)のそれと同
一である。
Note that the initial values of the document format information (this is called standard document format information) are the number of characters per line m - 40, rotation/italic information - 0.
00 (no rotation or italics), character size value -0001 (size 1), character spacing value -01 (character spacing 1), line pitch value -0010 (line feed K), and the text is displayed in the document format area 23 when the power is turned on. Automatically set. As is clear, the initial values of the rotation/italicization information, character size value, character spacing value, and line pitch value are the same as those of the line modification information (standard line modification information).

次に上記各図、更には第6図乃至第19図を適宜参照し
て、この発明の一実施例の動作を説明する。
Next, the operation of one embodiment of the present invention will be described with reference to the above-mentioned figures as well as FIGS. 6 to 19 as appropriate.

(1)文書入力 、日本語文書入力時に於いては、CPU11は、キーボ
ード32より入力された例えば仮名文字列の漢字指定部
分について、ROM12内の辞書領域15等を索引する
ことにより仮名漢字変換処理を行なった後、その変換さ
れた漢字コードを含む入力文字コード列を文書領域21
に格納する。
(1) When inputting a document or a Japanese document, the CPU 11 performs a kana-to-kanji conversion process by indexing the dictionary area 15 in the ROM 12, for example, for a kanji specified part of a kana character string input from the keyboard 32. After performing this, the input character code string including the converted kanji code is stored in the document area 21.
Store in.

上記した文書入力時に於いて、文書領域21に貯えられ
る入力文字は、CPUIIの制御の下に表示コントロー
ラ33において表示用ドツトメモリ35上にパターン展
開され、表示器34に表示出力される。
During the above-described document input, the input characters stored in the document area 21 are developed into a pattern on the display dot memory 35 in the display controller 33 under the control of the CPU II, and are displayed on the display 34.

このようにして入力された既入力文書は、カーソルキー
操作により、表示器34上に最大40桁(文字)の文字
列をもって任意に表示でき、文書の校正、訂正等に供さ
れる。
The already input document input in this manner can be arbitrarily displayed on the display 34 with a character string of up to 40 digits (characters) by operating the cursor keys, and is used for proofreading, correction, etc. of the document.

(2)行修飾設定 第6図は行修飾設定時における各選択画面(行修飾設定
画面)と画面切換え操作順序を示す。
(2) Line decoration setting FIG. 6 shows each selection screen (line decoration setting screen) and the order of screen switching operations when setting line decoration.

この実施例では、入力文書に対して、回転・斜体、文字
サイズ、文字量間隔、改行ピッチ、頁境界を設定するた
めの用紙交換、左余白等の文書形態を行を単位に指定し
たい場合、即ち行修飾設定を行ないたい場合は、修飾し
たい行位置の文字列をカーソルキー操作で選択し表示し
て、第6図に示すように[機能1]キーと他の特定キー
(ここでは[−]キー)との組合わせによるキー操作に
より行修飾の指定を行なう。なお、行修飾指定専用の[
行修飾]キーを設け、上記組合わせキー操作に代えるこ
とも可能である。
In this example, if you want to specify document formats such as rotation/italics, character size, character spacing, line break pitch, paper exchange for setting page boundaries, and left margin for the input document on a line-by-line basis, That is, if you want to set a line modification, select and display the character string at the line position you want to modify using the cursor keys, and press the [Function 1] key and other specific keys (here [- ] key) to specify line modification. Note that [[
It is also possible to provide a [row modification] key to replace the above combination key operation.

CPUIIは、[機能1]キー+[−]キー(ここでは
便宜上[行修飾]キーと呼ぶ)の操作入力を判別すると
、行修飾指定された行に対応する行修飾領域22内の行
修飾情報をRAM20内の行修飾情報一時記憶領域(図
示せず)に取出し、表示器34の表示モードを文書表示
モードから行修飾表示モードに切換える。
When the CPU II determines the operation input of the [Function 1] key + [-] key (herein referred to as the [Line Modification] key for convenience), the CPU II displays the row modification information in the row modification area 22 corresponding to the line specified for the row modification. is taken out to a line modification information temporary storage area (not shown) in the RAM 20, and the display mode of the display 34 is switched from the document display mode to the line modification display mode.

行修飾表示モードでは、第6図に示すように、まず行修
飾設定、行修飾前詰め/後送り(これについては第9図
乃至第13図を参照して後述する)を選択するための項
目選択画面が表示され、且つ行修飾設定項目にカーソル
が表示(ここでは文字反転によるカーソル表示)される
。この状態で[選択/実行]キーが操作されると、文字
量間隔および行ピッチ(改行ピッチ)を選択するための
選択画面が表示される。この選択画面における各項目間
の切換え(項目切換え)は[次項口]キー操作で行なわ
れ、項目内の設定候補値(ここでは文字量間隔値1行ピ
ッチ値)の選択(指定)は横方向(左/右)のカーソル
キー操作によりカーソルを左右に移動することにより行
なわれる。
In the line decoration display mode, as shown in Figure 6, first there are items for selecting line decoration settings and line decoration leading/backwarding (this will be described later with reference to Figures 9 to 13). A selection screen is displayed, and a cursor is displayed on the line modification setting item (in this case, the cursor is displayed by inverting the characters). When the [Select/Execute] key is operated in this state, a selection screen for selecting character spacing and line pitch (line feed pitch) is displayed. Switching between each item (item switching) on this selection screen is performed by operating the [Next Item] key, and selection (specification) of setting candidate values (in this case, character amount spacing and 1-line pitch value) within an item is performed in the horizontal direction. This is done by moving the cursor left and right using the (left/right) cursor keys.

さて、上記の選択画面が表示された際には、文字量間隔
が選択可能な画面状態となっており、且つ文字量間隔の
設定候補値(文字間θ〜文字間3)の1つにカーソルが
表示されている。この最初にカーソル表示される設定候
補値には、上記の行修飾情報一時記憶領域に一時記憶さ
れている行修飾情報中の該当項目(ここでは文字量間隔
)の既設定内容(既設定値)が採用される。なお第6図
では、文字量間隔が項目指定されている状態の選択画面
を文字量間隔画面として示し、行ピッチが項目指定され
ている状態の選択画面を行ピツチ画面として示して区別
している。そこで以下の説明では、項目切換えも画面切
換えと呼ぶ。
Now, when the above selection screen is displayed, the screen state is such that the character spacing can be selected, and the cursor is placed on one of the setting candidate values for the character spacing (character spacing θ to character spacing 3). is displayed. The setting candidate value that is displayed first with the cursor includes the existing settings (default values) of the corresponding item (in this case, character amount interval) in the line modification information temporarily stored in the above-mentioned line modification information temporary storage area. will be adopted. In FIG. 6, a selection screen in which character spacing is specified as an item is shown as a character spacing screen, and a selection screen in which line pitch is specified is shown as a line pitch screen for differentiation. Therefore, in the following explanation, item switching will also be referred to as screen switching.

この実施例では、行修飾設定のために、上記の文字量間
隔/行ピッチ画面の他に、第6図に示すように、文字サ
イズ指定のための文字サイズ画面、回転・斜体/白抜き
指定のための回転・斜体/白抜き画面、左余白値V(印
刷左折余白)/印刷停止(印刷抑止)指定のための印刷
左余白/印刷抑止画面、および頁境界設定のための用紙
交換画面が用意されている。文字量間隔/行ピッチ画面
を含む上記各選択画面の切換えは、上記の[次項口]キ
ー操作または上/下のカーソルキー操作で行なわれる。
In this embodiment, in order to set line decoration, in addition to the above-mentioned character spacing/line pitch screen, as shown in Figure 6, there is a character size screen for specifying character size, rotation/italic/outline specification. rotation/italic/outline screen for , print left margin/print suppression screen for specifying left margin value V (print left turn margin)/print stop (print suppression), and paper exchange screen for setting page boundaries. Provided. Switching between the above selection screens including the character spacing/line pitch screen is performed by operating the [Next Item] key or the up/down cursor keys.

そしてこれらのキー操作により画面が切換えられること
により、CPUIIは、切換え直前のカーソル位置の設
定候補値が選択されたものとみなし、RAM20内の行
修飾情報一時記憶領域に一時記憶されている行修飾情報
中の該当項目の設定内容を、その選択内容に更新する。
When the screen is switched by these key operations, the CPU II assumes that the setting candidate value at the cursor position immediately before switching has been selected, and changes the line modification temporarily stored in the line modification information temporary storage area in the RAM 20. The settings for the relevant item in the information are updated to the selected contents.

なお、印刷余白画面では、既設定の左余白値Vが表示さ
れ、数字キー操作によ″る数値入力が行なわれない場合
には既設定値が、(−9〜+63の範囲内で)数値入力
が行なわれた場合にはその入力値が選択内容となる。
In addition, on the print margin screen, the preset left margin value V is displayed, and if a numerical value is not input using the numeric keys, the preset value will be changed to a numerical value (within the range of -9 to +63). If an input is made, the input value becomes the selection content.

さてオペレータは、行修飾表示モードにおいて上記のキ
ー操作により必要な項目について設定候補値の選択指定
等を行なうと、[選択/実行]キーを操作する。CPU
IIは、行修飾表示モードにおいて[選択/実行]キー
の操作人力を判別すると、[次項口]キーまたは上/下
カーソルキーの操作か行なわれた場合と同様にして、上
記一時記憶領域内の行修飾情報を更新する。モしてCP
U11は、この更新後の行修飾情報を行修飾領域22内
の上記行修飾指定された行に対応する行修飾情報フィー
ルドに設定し、表示器34の表示モードを行修飾表示モ
ードから文書表示モードに戻す。
In the line modification display mode, the operator selects and specifies setting candidate values for necessary items by operating the keys described above, and then operates the [Select/Execute] key. CPU
When II determines the operating force of the [Select/Execute] key in the line modification display mode, the data in the temporary storage area is Update row qualification information. CP
U11 sets this updated line decoration information in the line decoration information field corresponding to the line specified for the line decoration in the line decoration area 22, and changes the display mode of the display 34 from the line decoration display mode to the document display mode. Return to

(3)文書書式設定 第7図は文書書式設定時における各選択画面(書式設定
画面)と画面切換え操作順序を示し、第8図は文書書式
情報設定処理のフローチャートを示す。
(3) Document format setting FIG. 7 shows each selection screen (format setting screen) and the screen switching operation sequence when setting a document format, and FIG. 8 shows a flowchart of document format information setting processing.

この実施例では、これから人力しようとする文書、入力
中文書、或は低入力文書にに対して、文書1行当りの文
字数、更には回転・斜体、文字サイズ、文字量間隔等の
文書形態を、次に述べるように一括して設定できる。こ
の場合オペレータは、第7図に示すように[機能l]キ
ーと他の特定キー(ここでは[1]キー)との組合わせ
によるキー操作により文書書式設定の指定を行なう。な
お、専用の[書式設定コキーを設け、上記組合わせキー
操作に代えることも可能である。
In this example, the number of characters per line of the document, as well as the document format such as rotation/italics, font size, character spacing, etc., are set for the document that is to be input manually, the document being input, or the low input document. , can be set all at once as described below. In this case, the operator specifies the document format settings by operating keys in combination with the [Function I] key and another specific key (here, the [1] key), as shown in FIG. Note that it is also possible to provide a dedicated [format setting key] in place of the above combination key operation.

CPUIIは、C機能lコキー+〔j]キー(ここでは
便宜上C書式設定]キーと呼ぶンの操作入力を判別する
と、RA M 20内の文書書式領域23に設定されて
いる文書書式情報をRAM20内の文書書式情報一時記
憶領域(図示せず)に取出し、表示器34の表示モード
を文書表示モードから書式設定表示モードに切換える。
When the CPU II determines the operation input of the C function key + [j] key (herein referred to as the C format setting key for convenience), the CPU II transfers the document format information set in the document format area 23 in the RAM 20 to the RAM 20. The document format information is taken out to a temporary storage area (not shown) in the document format information, and the display mode of the display 34 is switched from the document display mode to the format setting display mode.

この書式設定表示モードでは、第7図に示すように、1
行文字数の(数字キー操作による)指定のための選択画
面、文字量間隔/行ピッチ指定のための選択画面、文字
サイズ指定のための選択画面、回転・斜体指定のための
選択画面が、上/下カーソルキー操作等により第6図の
行修飾表示モードの場合と同様にして切換え表示される
。この切換え表示の際には、上記の一時記憶領域に一時
記憶されている文8書式情報中の該当項目の既設定内容
がカーソル表示(或は数値表示)される。そして左/右
カーソルキー操作(或は数字キー操作)により、設定候
補値の選択指定(或は設定値入力)が行なわれる。
In this formatting display mode, 1
The selection screen for specifying the number of line characters (by operating the numeric keys), the selection screen for specifying character spacing/line pitch, the selection screen for specifying font size, and the selection screen for specifying rotation/italics are shown above. The display is switched by operating the /down cursor key or the like in the same manner as in the line modification display mode shown in FIG. At the time of this switching display, the preset contents of the corresponding item in the sentence 8 format information temporarily stored in the temporary storage area are displayed with a cursor (or numerically). Then, by operating the left/right cursor keys (or operating the numeric keys), selection and designation of setting candidate values (or setting value input) is performed.

さて、第7図に示す操作順序に従って書式設定作業が行
なわれ、[選択/実行]キーが操作されると、CPUI
Iは、行修飾領域22への行修飾情報の設定および文4
!j書式領域23への文書書式情報の設定処理を行なう
。この設定処理について、第8図のフローチャートを参
照して説明する。
Now, when formatting work is performed according to the operation order shown in Figure 7 and the [Select/Execute] key is operated, the CPU
I sets the line modification information in the row modification area 22 and the statement 4
! Processing for setting document format information in the j format area 23 is performed. This setting process will be explained with reference to the flowchart in FIG.

c p ty ttは、まず文書行を示す行ポインタ【
を1 (先頭行位置)に設定しくステップ5ll)、第
1行の行修飾情報、即ちRAM20(内に用意された行
修飾領域22)のlA+ (i−1)X31番地から始
まる3バイトの行修飾情報フィールドに設定されている
行修飾情報を取出す(ステップ512)。次にCPUI
Iは、同行修飾情報が第6図に示す行修飾設定操作に従
って設定されたものか否か(行修飾設定有りか否か)の
判定を行なう(ステップ513)。
c p ty tt first points to the line pointer [
is set to 1 (first row position) (step 5ll), the row modification information of the first row, that is, the 3-byte row starting from address lA+ (i-1)X31 of the RAM 20 (row modification area 22 prepared within). The row modification information set in the modification information field is retrieved (step 512). Next, the CPUI
I determines whether or not the accompanying modification information has been set according to the row modification setting operation shown in FIG. 6 (whether there is a row modification setting or not) (step 513).

ステップS13の判定は、ステップS21〜S28に従
って行なわれる。即ちCPUILは、取出した行修飾情
報中の白抜き指定フラグが白抜き指定無しを、印刷停止
指定フラグが印刷停止無しを、用紙交換指定フラグが用
紙交換指定無しを、そして左余白値Vが0を、それぞれ
示しく即ち白抜き指定フラグ、印刷停止指定フラグ、用
紙交換指定フラグおよび左余白値■がいずれも標準値で
あって)、上記の文書書式情報一時領域に一時記憶され
ている新たな文書書式情報中の回転・斜体情報、文字サ
イズ値、文字量間隔値および行ピツチ値が現在(RA 
M 20内の)文書書式領域23に設定されているそれ
と等しい場合、行修飾設定無しと判定する。
The determination in step S13 is performed according to steps S21 to S28. That is, CPUIL determines that the white outline designation flag in the retrieved line modification information indicates no white outline designation, the printing stop designation flag indicates no printing stop, the paper exchange designation flag indicates no paper replacement designation, and the left margin value V is 0. (in other words, the whiteout designation flag, print stop designation flag, paper replacement designation flag, and left margin value ■ are all standard values), and the new value temporarily stored in the above document format information temporary area is The rotation/italic information, character size value, character spacing value, and line pitch value in the document format information are currently
If it is equal to that set in the document format area 23 (inside M 20), it is determined that no line decoration is set.

これに対して、1項目でも条件が合わない場合には、C
PUILは行修飾設定有りと判定する。即ちCPUII
は、ステップSL2で取出した行修飾情報が、標準行修
飾情報であるか、或は書式設定により設定されたもので
ある場合には行修飾設定無しを、それ以外の場合には行
修飾設定有りを判定する。なお、行修飾情報中に行修飾
設定の有無を示す特定ビットを設け、同ビットを参照す
ることによりステップS13の判定(即ち行修飾設定の
有無の判定)を行なうことも可能である。但し、この場
合には、第6図に示す行修飾設定操作に従って行修飾情
報設定を行なう際に上記特定ビットをセットする必要が
ある。
On the other hand, if even one item does not meet the conditions, C
PUIL determines that line modification is set. That is, CPU II
If the line decoration information retrieved in step SL2 is standard line decoration information or is set by formatting, no line decoration is set, otherwise, line decoration is set. Determine. Note that it is also possible to provide a specific bit in the line decoration information that indicates the presence or absence of the line decoration setting, and to make the determination in step S13 (that is, the determination of the presence or absence of the line decoration setting) by referring to the bit. However, in this case, it is necessary to set the above-mentioned specific bit when setting the line decoration information according to the line decoration setting operation shown in FIG.

CPUIIは、ステップS13の判定がNoの場合、文
書書式情報一時記憶領域に記憶されている文書書式情報
中の回転・斜体情報、文字サイズ値、文字量間隔値およ
び行ピツチ値を、行修飾領域22における第i行の行修
飾情報フィールド(該当位置)に設定し、iか最大行n
より小さいか否かの判定を行なう(ステップ515)。
If the determination in step S13 is No, the CPU II transfers the rotation/italics information, character size value, character spacing value, and line pitch value in the document format information stored in the document format information temporary storage area to the line modification area. 22, set in the row modification information field (corresponding position) of the i-th row, and set it to the i or maximum row n
A determination is made as to whether it is smaller than that (step 515).

一方ステップS13の判定がYESの場合、即ち行修飾
設定有りの場合、CPUILはステップS14をスキッ
プしてステップS15の判定処理を行なう。これにより
、第6図に示す行修飾設定操作に従って行単位で設定さ
れた行修飾情報は保存される。
On the other hand, if the determination in step S13 is YES, that is, if row modification is set, the CPUIL skips step S14 and performs the determination process in step S15. As a result, the line decoration information set on a line-by-line basis according to the line decoration setting operation shown in FIG. 6 is saved.

CPUIIは、ステップS15の判定がYESの場合、
行ポインタiを1つ進めて(ステップ816)ステップ
S12に戻る。一方ステップS15の判定がNoの場合
、CPUIIは最大行nまでの処理を終了したものと判
断し、上記一時記憶領域に記憶されている文書書式情報
をRAM20内の文書書式領域23に設定して(ステッ
プ517)書式設定処理を終了する。このときCPUI
Iは、表示器34の表示モードを書式設定表示モードか
ら文書表示モードに戻す。
If the determination in step S15 is YES, the CPU II
The row pointer i is advanced by one (step 816) and the process returns to step S12. On the other hand, if the determination in step S15 is No, the CPU II determines that the processing up to the maximum line n has been completed, and sets the document format information stored in the temporary storage area in the document format area 23 in the RAM 20. (Step 517) The formatting process ends. At this time, the CPU
I returns the display mode of the display 34 from the formatting display mode to the document display mode.

上記したように、この実施例では、回転・斜体情報、文
字サイズ値、文字量間隔値および行ピツチ値については
、文書書式設定操作により、文書の各行について一括し
て行修飾情報中に設定できる。また、この実施例では、
第6図に示す行修飾設定操作に従って行単位で設定され
た行修飾情報については、保存される。したがって、文
書書式設定操作を、いかなる時期に行なっても、既に行
単位で設定されている行修飾情報に影響を及ぼす恐れは
ない。
As mentioned above, in this embodiment, the rotation/italicization information, font size value, character spacing value, and line pitch value can be set in the line modification information for each line of the document at once by the document formatting operation. . Also, in this example,
The line decoration information set on a line-by-line basis according to the line decoration setting operation shown in FIG. 6 is saved. Therefore, no matter when the document formatting operation is performed, there is no risk of affecting the line modification information that has already been set for each line.

(4)行修飾前詰め1後送り 第9図は行修飾前詰め、後送り指定時における操作順序
を示す。また第10図(a)、(b)は行修飾前詰め前
後の行修飾領域22の状態を文書領域21に対応して示
し、第11図は行修飾前詰め処理のフローチャートを示
す。また第12図(a)。
(4) Line modification front-justification 1 backward-feeding FIG. 9 shows the order of operations when line modification leading-justification and rear-feeding are specified. 10(a) and 10(b) show the state of the line modification area 22 before and after line modification front-filling in correspondence with the document area 21, and FIG. 11 shows a flowchart of the line modification front-filling process. Also, FIG. 12(a).

(b)は行修飾後送り前後の行修飾領域22の状態を文
書領域21に対応して示し、第13図は行修飾後送り処
理のフローチャートを示す。
(b) shows the state of the line modification area 22 before and after line modification and forwarding, corresponding to the document area 21, and FIG. 13 shows a flowchart of the line modification and subsequent forwarding process.

この実施例では、前記したように、文書領域21内の文
書の各行の行修飾内容を示す行修飾情報を、文書領域2
1から独立して設けられた行修飾領域22に各文書行に
対応して設定するこにより、行単位での行修飾設定が文
書作成中は勿論、校正中等でも、文書領域21内の文書
に何等影響を及ぼすことなく且つ簡単に行なえるように
している。但し、行修飾設定後において文字または文字
列の挿入(追加)、削除を行なうと、文書行と行修飾(
行修飾指定行)との対応関係がずれることがあり得る。
In this embodiment, as described above, line modification information indicating the row modification contents of each line of the document in the document area 21 is stored in the document area 21.
By making settings corresponding to each document line in the line modification area 22 provided independently from 1, line modification settings for each line can be applied to the document in the document area 21 not only during document creation but also during proofreading. It is designed to be easy to perform without causing any adverse effects. However, if you insert (add) or delete a character or character string after setting the line decoration, the document line and line decoration (
The correspondence with the row modification specification line) may be misaligned.

そこで、ここでは、上記のずれを調整できるように、行
修飾の前詰め/後送り機能が用意されている。
Therefore, in order to adjust the above-mentioned deviation, a front-justification/backward-adjustment function for line modification is provided.

オペレータは、行修飾の前詰めまたは後送りを必要とす
る場合、前詰めまたは後送りしたい先頭の行位置をカー
ソルキー操作で指定し、しかる後にr行修飾コキー([
機能l]キー+[−]キー)操作を行なう。これにより
CPUflは、前記したように表示器34の表示モード
を文書表示モードから行修飾表示モードに切換える。こ
の結果、行修飾設定、行修飾前詰めまたは行修飾後送り
のいずれか1つを選択するための項目選択画面が表示さ
れ、Rつ行修飾設定項目にカーソルが表示される。
When the operator needs to move forward or backward the line modification, specify the first line position to be moved forward or backward using the cursor keys, and then press the r line modification key ([
Function l] key + [-] key). As a result, the CPUfl switches the display mode of the display 34 from the document display mode to the line modification display mode as described above. As a result, an item selection screen for selecting any one of line decoration setting, line decoration front-justification, or line decoration post-adjustment is displayed, and a cursor is displayed on the R line decoration setting items.

この状態で横方向カーソルキー操作を行なって「前詰め
」または「後送り」の項目をカーソル指定して[選択/
実行]キーを操作することにより、行修飾前詰めまたは
行修飾後送りを指定することができる。そしてCPUI
Iは、「前詰め」がカーソル指定されている状態で[選
択/実行コキーの操作入力を判別すると、第11図のフ
ローチャートで示される行修飾前詰め処理を実行し、「
後送り」がカーソル指定されている状態で[選択/実行
]キーの操作入力を判別すると、第13図のフローチャ
ートで示される行修飾後送り処理を実行する。
In this state, use the horizontal cursor keys to specify the ``Front Justify'' or ``Last Feed'' item and click [Select/
By operating the [Execute] key, it is possible to specify front-justification of line decorations or feed-back of line decorations. And CPUI
When I determines that the operation input of the [select/execute key] has been specified with the cursor specifying "justify left," it executes the line modification front fill process shown in the flowchart of FIG. 11, and selects "
If it is determined that the ``Select/Execute'' key has been operated with the cursor specifying ``Next Feed'', the line modification later feed process shown in the flowchart of FIG. 13 is executed.

(4−1)行修飾前詰め 文書の校正時等において、第10図(a)に示すように
例えば第5行の文書行で1行分を削除し、この結果第6
行以降の文書行が1行ずつ前にずれ、これに伴い第5行
以降において文書行と行修飾との対応が1行ずつずれた
ものとする。この場合、オペレータは第5行の文書行を
カーソル指定し、前記した操作順序で行修飾前詰めを指
定する。これによりCPUIIは、第11図のフローチ
ャートに従って以下に述べる行修飾前詰め処理を実行す
る。
(4-1) Line modification When proofreading a front-filling document, for example, delete one line in the 5th document line, as shown in Figure 10 (a), and as a result, the 6th
It is assumed that the following document lines shift forward one line at a time, and as a result, the correspondence between the document lines and the line decorations shifts one line at a time from the fifth line onward. In this case, the operator specifies the fifth document line with the cursor and specifies line modification front-justification in the above-described operation order. As a result, the CPU II executes the line modification front-filling process described below according to the flowchart of FIG.

まずCPUIIは、行修飾前詰め指定の際にカーソル指
定された行(カーソル行)L(ここではL−5)により
、(行修飾領域22内の)第り行の行修飾情報フィール
ド(3バイト)の先頭アドレス(ここではA+ (L−
1)X3)を算出し、行修飾情報フィールド先頭アドレ
スaとしてセットする(ステップ531)。次にCPU
IIは、前詰めすべき行修飾情報数をn(最大行)−L
の演算により算出し、前詰め対象残り行修飾情報数Cと
してセットする(ステップ532)。次にCPUIIは
C−0であるか否かの判定を行なう(ステップ533)
First, the CPU II selects the row modification information field (3 bytes) of the next row (in the row modification area 22) based on the line specified by the cursor (cursor row) L (L-5 in this case) when specifying front-justification of the row modification. ) start address (here A+ (L-
1) Calculate X3) and set it as the starting address a of the row modification information field (step 531). Next, the CPU
II is the number of line modification information to be padded as n (maximum line) - L
is calculated by the calculation, and set as the number C of remaining row modification information to be left-shifted (step 532). Next, CPU II determines whether it is C-0 (step 533).
.

もしc−0でなければ、CPUIIはRAM20のa+
4〜a+6番地の内容(M (a + 4 ) 〜M(
a+6))即ち第(i+1)行(iの初期値はL)の行
修飾情報を、RAM20のa+1〜a+3番地の内容(
M (a+1) 〜M (a+3))即ち第1行の行修
飾情報とする処理(ステップ534)を行なう。次にC
PUILはaを3番地進めて次の行の行修飾情報フィー
ルドの先頭アドレスを求め(ステップ535)、且つC
を1つ減らして(ステップS 3B)ステップS33に
戻る。そしてステップS33〜S3Gの処理がc−0と
なるまで、即ち第(L+1)行〜第n行(最大行)まで
の行修飾情報を1行ずつ前にずらす処理が全て終了する
まで繰返される。これにより、L−5のこの例では、第
10図(b)に示すように、第6行の行修飾情報が第5
行へ、第7行の行修飾情報が第6行へ、というように第
6行以降の行修飾情報が順次1行ずつ前へずらされ、最
後に第0行の行修飾情報が第(n−1)行へずらされて
文書行と行修飾のずれが、調整される。
If it is not c-0, CPU II is a+ of RAM20.
Contents of addresses 4 to a+6 (M (a + 4) to M(
a+6)), that is, the row modification information of the (i+1)th row (the initial value of i is L) is stored in the contents of addresses a+1 to a+3 of the RAM 20 (
M (a+1) to M (a+3)), that is, processing to make the first row row modification information (step 534) is performed. Next, C
PUIL advances a by three addresses to find the start address of the line modification information field of the next line (step 535), and
is decreased by one (step S3B) and the process returns to step S33. Then, the processing of steps S33 to S3G is repeated until c-0 is reached, that is, until the processing of shifting the row modification information from the (L+1)th row to the nth row (maximum row) forward one row at a time is completed. As a result, in this example of L-5, the row modification information in the 6th row is changed to the 5th row, as shown in FIG.
row, the row modification information on the 7th row is moved to the 6th row, and so on.The row modification information from the 6th row onward is sequentially shifted forward one row at a time.Finally, the row modification information on the 0th row is shifted forward by the (nth) row. -1) The deviation between the document line and the line modification is adjusted by shifting to the line.

以上の処理によりc−0となると、CPUIIは、標章
行修飾情報(行修飾情報の初期値)の第1バイト■ (
1)〜第3バイトI (3)をRAM20のa −a 
+ 2番地の内容とする処理(ステップ537)を行な
う。これにより行修飾領域22内のmn行(最大行)の
行修飾情報フィールドの内容が初期化される。
When c-0 is obtained through the above processing, the CPU II outputs the first byte of mark line modification information (initial value of line modification information).
1) ~ 3rd byte I (3) in RAM20 a -a
+ Processing to set the contents of address 2 (step 537) is performed. As a result, the contents of the row modification information field of mn rows (maximum row) in the row modification area 22 are initialized.

(4−2)行修飾後送り 文書の校正時等において、第12図(a)に示すように
例えば第4行の文書行の後に1行分を追加し、この結果
第5行以降の文書行が1行ずつ後にずれ、これに伴い第
5行以降において文書行と行修飾との対応が1行ずつず
れたものとする。この場合、オペレータは第5行の文書
行をカーソル指定し、前記した操作順序で行修飾後送り
を指定する。これによりCPUIIは、第13図のフロ
ーチャートに従って以下に述べる行修飾後送り処理を実
行する。
(4-2) When proofreading a sent document after line modification, for example, add one line after the fourth line of the document as shown in Figure 12(a), and as a result, the text from the fifth line onwards It is assumed that the lines are shifted backward one line at a time, and as a result, the correspondence between the document line and the line modification is shifted one line at a time from the fifth line onwards. In this case, the operator specifies the fifth document line with the cursor and specifies feed after line modification in the above-described order of operations. As a result, the CPU II executes the line modification post-feeding process described below according to the flowchart of FIG.

まずCPUIIは、第(n−1)行の行修飾情報フィー
ルドの先頭アドレスを算出し、行修飾情報フィールド先
頭アドレスaとしてセットする(ステップS 41)。
First, the CPU II calculates the start address of the line modification information field of the (n-1)th row, and sets it as the row modification information field start address a (step S41).

次にCPUIIは、後送りすべき行修飾情報数をn−L
の演算により算出し、後送り対象残り行修飾情報数Cと
してセットする(ステップ542)、次にCPUIIは
c−Qであるが否がの判定を行なう(ステップ843)
Next, the CPU II sets the number of line modification information to be postponed to n−L.
It is calculated by the calculation and set as the number C of remaining line modification information to be postponed (step 542). Next, the CPU II determines whether it is c-Q or not (step 843).
.

もしc−Qでなければ、CPUIIはRAM20のa 
−a + ’11番地内容即ち第1行(iの初期値はn
−1)の行修飾情報を、RA M 20のa+3〜a+
5呑地の内容即ち第i+1行の行修飾情報とする処理(
ステップ544)を行なう。次にCPUIIはaを3番
地戻して前の行の行修飾情報フィールドの先頭アドレス
を求め(ステップ545)、且っCを1つ減らして(ス
テップ846)ステップS43に戻る。そしてステップ
S43〜S4Bの処理がC−Oとなるまで、即ち第(n
−1)行〜第り行までの行修飾情報を1行ずつ前にずら
す処理が全て終了するまで繰返される。これにより、L
−5のこの例では、第12図(b)に示すように、第(
n−1)行の行修飾情報が第0行へ、第(n−2)行の
行修飾情報が第(n−1)行へ、というように行修飾情
報が順次1行ずつ後へずらされ、最後に第5行の行修飾
情報が第6行へずらされて文書行と行修飾のずれが調整
される。
If it is not c-Q, CPU II is a of RAM20.
-a + 'Contents of address 11, ie, the first line (the initial value of i is n
-1) line modification information from a+3 to a+ of RAM 20
Processing to make the content of 5-douji, i.e., line modification information of the i+1th line (
Step 544) is performed. Next, the CPU II moves a back three addresses to obtain the start address of the line modification information field of the previous line (step 545), and decrements C by one (step 846), returning to step S43. Then, until the processing of steps S43 to S4B reaches C-O, that is, the (nth
-1) The process of shifting the line modification information from line to second line forward one line at a time is repeated until all the processes are completed. As a result, L
-5 in this example, as shown in Figure 12(b),
The row modification information of the n-1) row is moved to the 0th row, the row modification information of the (n-2) row is moved to the (n-1) row, and so on.The row modification information is sequentially shifted backward one row at a time. Finally, the line decoration information on the fifth line is shifted to the sixth line to adjust the deviation between the document line and the line decoration.

しかし、上記の処理では、例えば第12図(b)に示す
ように第5行(第り桁)で用紙交換が指定されていた場
合、この状態を保ったまま第5行の用紙交換指定宜りの
行修飾情報が第6行にコピーされてしまう。このため、
本来用紙交換が必要であって、1行追加により第6行と
なった文書行は正しく用紙交換が行なえるようになるも
のの、新たに第5行となった追加行も用紙交換指定され
る不都合が生じる。そこで本実施例では、上記の不都合
を防止するために、c−0となると、以下の処理が行な
われる。
However, in the above process, if paper exchange is specified in the 5th line (th column) as shown in FIG. The second line modification information is copied to the 6th line. For this reason,
Paper exchange was originally required, and although the addition of one line makes it possible to correctly exchange paper for the document line that became the 6th line, there is an inconvenience that the additional line that became the 5th line is also specified for paper exchange. occurs. Therefore, in this embodiment, in order to prevent the above-mentioned inconvenience, the following processing is performed when c-0 is reached.

まずCPUIIはaを3番地進めてaを第り行(L−5
)の行修飾情報フィールドの先頭アドレスに戻す(ステ
ップ547)。そしてCPUIIは、RAM20のa+
2番地の内容のうちの用紙交換指定フラグ、即ち第り行
(L−5)の行修飾情報中の用紙交換指定フラグをリセ
ットする(ステップ848)。これにより、新たに第5
行となった追加行が用紙交換指定されてしまう恐れは無
くなる。
First, the CPU II advances a by 3 addresses and moves a to the next row (L-5
) to the start address of the row modification information field (step 547). And CPU II is RAM20 a+
The paper exchange designation flag in the contents of address 2, that is, the paper exchange designation flag in the line modification information of the second line (L-5) is reset (step 848). As a result, a new fifth
There is no longer a possibility that the additional line that has become a line will be designated for paper replacement.

以上は、行単位の追加、削除に限らず、文字または文字
列の追加2削除により文書行数に変動があった場合に適
用できる。
The above can be applied not only to adding or deleting lines by line, but also to cases where the number of lines in a document changes due to addition or deletion of characters or character strings.

(5)行コピー 第14図は行コピー処理のフローチャートを示すもので
あり、同フローチャートを実行することにより、以下に
述べるように、任意の文書行を任意行位置にコピーする
と共に、文書行のコピーに伴う文書行と行修飾との対応
関係のずれを自動調整する機能が実現できる。
(5) Line copy Figure 14 shows a flowchart of the line copy process. By executing the flowchart, as described below, any document line can be copied to any line position, and the document line can be copied. It is possible to realize a function that automatically adjusts the misalignment of the correspondence between document lines and line decorations caused by copying.

オペレータは、行コピーを必要とする場合、コピー元と
なる所望の文書行の行位置りをカーソルキー操作により
指定し、例えば[機能2コキーと[$]キーとの組合わ
せによるキー操作(これを便宜1ユ[行コピー]キー操
作と呼ぶ)により行コピーの指定を行なう。
When the operator needs to copy a line, the operator specifies the line position of the desired document line to be copied by operating the cursor keys, and then presses the [Function 2 key] and the [$] key together. For convenience, this is referred to as the ``line copy'' key operation) to specify line copy.

CPUIIは、[行コピー]キーの操作入力を判別する
と、カーソル指定された行位置りを行コピー元の行位置
を示すLsにセットしくステップ551)、例えば指定
文書行全体を反転表示すると共に「行コピー どこへ?
」のガイドメツセージを表示器34のガイド表示領域に
表示する(ステップ552)。オペレータは、この状態
で上/下のカーソルキーを操作して行コピー先の行位置
にカーソルを移動して[選択/実行]キーを操作する。
When the CPU II determines that the [Line Copy] key has been input, the CPU II sets the line position designated by the cursor to Ls indicating the line position from which the line is to be copied (step 551), and, for example, displays the entire specified document line in reverse video and displays " Copy line Where?
” is displayed in the guide display area of the display 34 (step 552). In this state, the operator operates the up/down cursor keys to move the cursor to the row copy destination line position, and operates the [Select/Execute] key.

CPUIIは、上/下のカーソルキー操作に伴って画面
スクロールを行ない、[選択/実行コキーの操作人力を
判別すると(ステップ353〜555)、現在カーソル
指定されている文書行の行位置を行コピー先の行位置を
示すLDにセットする(ステップ856)。次にCPU
11は、文書領域21をサーチして同領域21に格納さ
れている人力文書の最終行1.=を求める(ステップ5
57)。このステップS57の詳細は以下の通りである
The CPU II scrolls the screen in conjunction with the up/down cursor key operations, and then performs a line copy of the line position of the document line currently designated by the cursor. It is set in the LD indicating the previous row position (step 856). Next, the CPU
11 searches the document area 21 to find the last line 1.1 of the manual document stored in the document area 21. Find = (step 5
57). The details of this step S57 are as follows.

まずCPUIIは、文書領域21上の行位置を示す行ポ
インタiを1に設定する(ステップS 71)。
First, the CPU II sets the line pointer i indicating the line position on the document area 21 to 1 (step S71).

次にCPUIIは、文書領域21のRAM20上の先頭
番地B2行ポインタi1文書書式領域23に設定されて
いる書式設定情報中の1行文字数mにより、第1行の先
頭桁のRAM20上の格納番地(格納先頭番地)Jを求
め(ステップ572) 、RAM20のJ番地から始ま
る2バイト(文字コード)を読出す(ステップ573)
。CPUIIは、RAM20から読出した2バイト(即
ち第1行の先頭桁の文字コード)がシステムスペース(
システムスペースコード)であるか否かの判定を行なう
(ステップ574)。このシステムスペースコードは、
空白文字を示す通常のスペースフードと異なり、文書を
構成しない。即ち、CPUIIはステップS74におい
て、第1行が文書行を構成していないか否かを判定する
Next, the CPU II determines the storage address on the RAM 20 of the first digit of the first line based on the number of characters per line m in the formatting information set in the document format area 23. Find (storage start address) J (step 572) and read 2 bytes (character code) starting from address J in RAM 20 (step 573)
. The CPU II stores the 2 bytes read from the RAM 20 (i.e. the character code of the first digit of the first line) in the system space (
system space code) (step 574). This system space code is
Unlike regular space hoods, which indicate white space characters, they do not constitute a document. That is, in step S74, the CPU II determines whether the first line does not constitute a document line.

ステップS74の判定がNoの場合、即ち第1行が文書
行を構成している場合、CPUIIは、1行文字数がm
の場合の文書領域21の最大行nにiが一致しているか
否かの判定を行なう(ステップ575)。iがnに一致
していなければ、cptriiは行ポインタiを1つ進
め(ステップ57G)、ステップS72の処理に戻る。
If the determination in step S74 is No, that is, if the first line constitutes a document line, the CPU II determines that the number of characters in one line is m.
It is determined whether i matches the maximum line n of the document area 21 in the case of (step 575). If i does not match n, cptrii advances the row pointer i by one (step 57G) and returns to the process of step S72.

これに対してiがnに一致していれば、第1行が文書最
終行であることから、c P U 11は、その時点の
行ポインタiの値(−n)をLEとして設定する(ステ
ップ577)。
On the other hand, if i matches n, the first line is the last line of the document, so cPU 11 sets the value (-n) of the line pointer i at that time as LE ( step 577).

一方、ステップS74の判定がYESの場合、即ち第1
行が文書行を構成していない場合、その前の行である第
(i−1)行が文書最終行であることから、CPUII
は、行ポインタiの値から1を減じた値をLEとして設
定する(ステップ878)。
On the other hand, if the determination in step S74 is YES, that is, the first
If the line does not constitute a document line, the previous line (i-1) is the last line of the document, so the CPU II
sets the value obtained by subtracting 1 from the value of row pointer i as LE (step 878).

CPUIIは、以上のステップS71〜S78に従って
文書最終行LEをサーチすると、ステップS58に進み
、LEがnに一致するか否かの判定を行なう(ステップ
858)。
After searching for the last line LE of the document according to steps S71 to S78, the CPU II proceeds to step S58 and determines whether LE matches n (step 858).

ステップS5gの判定がYESの場合、CPUIIは文
書領域21が満杯、即ち行コピーが不可能であるもの判
断し、「行数超過」メツセージ゛表示(ステップ559
)を行なって行コピー取消し要求を行ない、[取消し]
キー人力待ち状態(ステップSH)となる。
If the determination in step S5g is YES, the CPU II determines that the document area 21 is full, that is, it is impossible to copy lines, and displays the "number of lines exceeded" message (step 559).
) to request line copy cancellation, and then click [Cancel]
The key is in a state of waiting for human power (step SH).

一方、ステップ358の判定がNOの場合、cptrt
tはステップS61に進み、LDがL P、以下である
か否かの判定を行なう。
On the other hand, if the determination in step 358 is NO, cptrt
At step S61, it is determined whether LD is less than or equal to LP.

ステップS61の判定がNoの場合、即ち行コピー先が
文書最終行より先にある場合、CPUIIは文書領域2
1において第(Ls+1)行より(LD−L、−1)行
分だけ改行コードを補う(ステップS G2>。そして
CPUIIは、文書領域2Iにおいて第Ls行の文書行
を第LD行にコピーする(ステップS 83)と共に、
行修飾領域22において第Ls行の行修飾情報を第LD
行にコピーしくステップ5B4)、行コピー処理を終了
する。
If the determination in step S61 is No, that is, if the line copy destination is beyond the last line of the document, the CPU II
1, the line feed code is supplemented by (LD-L, -1) lines from the (Ls+1)th line (step S G2>.Then, the CPU II copies the document line of the Lsth line to the LDth line in the document area 2I. (Step S83) and
In the row modification area 22, the row modification information of the Ls-th row is
Copy to the row (step 5B4), and end the row copy process.

一方、ステップSolの判定がYESの場合、CPUI
Iは文書領域21において第LD行から第り、行までの
文書行を1行後にずらす(ステップ565)と共に、行
修飾領域22において第LD行からmLE行までの行修
飾情報を1行後にずらしくステップ56B)、Lかる後
り、Dがt、s以下であるか否かの判定を行なう(ステ
ップS 87)。
On the other hand, if the determination in step Sol is YES, the CPU
I shifts the document lines from the LD line to the 2nd line one line back in the document area 21 (step 565), and also shifts the line modification information from the LD line to the mLE line one line back in the line modification area 22. After completing step 56B), it is determined whether D is less than or equal to t or s (step S87).

ステップS87の判定がNOの場合、即ち行コビ−先が
行コピー元より先にある場合、CPUIIは上記のステ
ップS63.Se4を実行して処理を終了する。
If the determination in step S87 is NO, that is, if the row copy destination is ahead of the row copy source, the CPU II executes the step S63. Se4 is executed and the process ends.

一方、ステップS67の判定がYESの場合には、ステ
ップ585.Seeの移動処理で、第Ls行の文書行お
よび行修飾情報も1行後に(即ち第(LS+1)行に)
ずれていることから、CPUIIは文書領域21におい
て第(LS+1)行の文書行を第LD行にコピーする(
ステップ868)と共に、行修飾領域22において第(
Ls+1)行の行修飾情報を第Lp行にコピーしくステ
ップ589)、行コピー処理を終了する。
On the other hand, if the determination in step S67 is YES, step 585. In the See movement process, the document line and line modification information of the Lsth line are also moved one line later (that is, to the (LS+1)th line)
Because of the misalignment, the CPU II copies the (LS+1)th document line to the LDth line in the document area 21 (
Step 868), the row modification area 22
The line modification information of the Ls+1) line is copied to the Lp-th line (step 589), and the line copy process ends.

なお、ステップ5I35.S6Bの実−行に際して、第
LS行(行コピー元)の文書行および行修飾情報をRA
’M20内の所定領域に一時記憶しておき、この一時記
憶情報を第LD行へのコピ一時にコピー元の情報として
用いることにより、ステップ367〜S69は不要とな
り、LD、Lsの大小に無関係に共通のコピー処理(ス
テップS 133.  S 64)が適用できる。
Note that step 5I35. When executing S6B, the document line and line modification information of the LS line (line copy source) are RA
' By temporarily storing the information in a predetermined area in M20 and using this temporary storage information as the copy source information when copying to the LD row, steps 367 to S69 become unnecessary and are independent of the size of LD and Ls. A common copy process (steps S133.S64) can be applied to.

(6)センタリング、右寄せ 第15図(a)〜(d)は任意文書行の任意文字桁以降
の文字列の行修飾を考慮したセンタリング、右寄せを説
明する図であり、第16図はセンタリング、右寄せ処理
のフローチャートである。
(6) Centering, right alignment Figures 15 (a) to (d) are diagrams for explaining centering and right alignment that take into account the line modification of character strings after any character column in any document line, and Figure 16 shows centering, It is a flowchart of right alignment processing.

オペレータは、例えば第15図(a)に示す第1行文書
行の文字列abcdeのうちcdeをセンタリングまた
は右寄せしようとする場合、センタリングまたは右寄せ
対象となる文字列の先頭文字Cにカーソルを合わせ、セ
ンタリングであれば[機能1]キーと[“]キーとの組
合わせによるキー操作(これを便宜上[センタリング]
キー操作と呼ぶ)を、右寄せであれば[機能1]キーと
[)]キーとの組合わせによるキー操作(これを便宜上
[右寄せ]キー操作と呼ぶ)を行なう。これによりCP
UIIは、第16図のフローチャートに従って以下に述
べるセンタリング、右寄せ処理を行なう。
For example, when the operator wants to center or right-justify cde of the character string abcde in the first document line shown in FIG. For centering, key operation is a combination of the [Function 1] key and the [“] key (for convenience, this is called [centering]).
For right alignment, a key operation is performed using a combination of the [Function 1] key and the [)] key (this is referred to as a [right alignment] key operation for convenience). This allows C.P.
The UII performs centering and right alignment processing described below according to the flowchart in FIG.

CPUIIは、まず文書書式領域23に設定されている
文書書式情報の示す文字サイズ値、文字量間隔値および
1行文字数mにより、書式設定で定められた(印刷イメ
ージ上の)文書行の長さ、即ちg 、Iq行長l(第1
5図(b)参照)を算出する(ステップ581)。即ち
CPUIIは、(1+文文書式情報中の文字量間隔)X
24 (ドツト)の示す全角文字(標準文字)の文字ピ
ッチに文8書式情報中の文字サイズの示す倍率を掛ける
こと・により、書式設定で定められた倍率の文字の文字
ピッチを求め、同文字ピッチに1行文字数mを掛けるこ
とによりノ(単位;ドツト)を求める。
CPU II first determines the length of the document line (on the print image) determined by the format settings based on the character size value, character spacing value, and number of characters per line (m) indicated by the document format information set in the document format area 23. , that is, g , Iq row length l (first
5 (see FIG. 5(b))) is calculated (step 581). In other words, CPUII is (1 + character amount interval in document format information)
24 Multiply the character pitch of the full-width character (standard character) indicated by (dot) by the magnification indicated by the character size in Sentence 8 format information to find the character pitch of the character with the magnification specified in the formatting, and The pitch is multiplied by the number of characters per line (m) to find the dot.

次にCPUIIは、カーソル指定された第1行の文書行
におけるセンタリング、右寄せ対象文字列に先行する文
字列(ここではab)の、行修飾を考慮した印刷イメー
ジ上での長さく先行文字列長)l!1(第15図(b)
参照)を算出する(ステップ582)。このJ+  (
単位;ドツト)は、(1+第1行の行修飾情報中の文字
量間隔)X24 (ドツト)の示す全角文字(標準文字
)の文字ピッチと、行修飾情報情報中の文字サイズの示
す倍率と、(カーソルの示す文字桁−1)で示される先
行文字列の文字数とを掛けることにより求められる。
Next, CPU II calculates the length of the leading character string on the print image, taking into account the line decoration of the character string (in this case, ab) that precedes the character string to be centered and right-justified in the first document line specified by the cursor. )l! 1 (Figure 15(b)
(see step 582). This J+ (
Unit; dot) is (1 + character interval in the line modification information of the first line) x 24 The character pitch of the full-width characters (standard characters) indicated by (dot) and the magnification indicated by the character size in the line modification information. , and the number of characters in the preceding character string indicated by (the character digit indicated by the cursor - 1).

次にCPUIIは、11が1以上であるか否かの判定を
行ない(ステップ583)、YESであればセンタリン
グ、右寄せが不可能であるものとして、そのまま処理を
終了する。一方ステップS83の判定かNoであれば、
CPUIIはノとノ、との差12を算出しくステップ5
84)、Lかる後文書領域21の第1行の文書行をサー
チしてセンタリング。
Next, the CPU II determines whether or not 11 is greater than or equal to 1 (step 583), and if YES, it is assumed that centering and right alignment are impossible, and the process ends. On the other hand, if the determination in step S83 is No,
CPU II calculates the difference 12 between ノ and ノ.Step 5
84) Search and center the first document line in the document area 21.

右寄せの対象文字列(カーソルの示す文字桁以降の第1
行文字列)の文字数fを求める(ステップ585)。モ
してCP U tlは、このfを用いてセンタリング、
右寄せ対象文字列(ここではcde)の行修飾を考慮し
た印刷イメージ上での長さく対象文字列長)Jp(単位
;ドツト)を算出する(ステップ886)。
Right-justified target character string (the first character after the character digit indicated by the cursor)
The number of characters f in the row character string is determined (step 585). Then, CPU U tl uses this f to perform centering,
The length of the target character string Jp (unit: dots) on the print image taking into account the line modification of the right-justified target character string (here, cde) is calculated (step 886).

次にCPUIIは、Jl’pが12以上であるか否かの
判定を行ない(ステップ587)、YESであればセン
タリング、右寄せが不可能であるものとして、そのまま
処理を終了する。一方ステップS87の判定がNOであ
れば、CPU11は12とipとの差ノE (第15図
(b)参照)を算出しくステップ588)、Lかる後右
寄せ指定であるか否かの判定を行なう(ステップ589
)。もし右寄せ指定であれば、CPUIIはiBの示す
ドツト数を右寄せにより補うべき空白(スペース)のド
ツト数としてisにセットしくステップ590)、セン
タリング指定であれば、ノEの示すドツト数の1/2を
センタリングにより補うべき空白(スペース)のドツト
数としてl!sにセットしくステップ591)、いずれ
もステップS92に進む。
Next, the CPU II determines whether Jl'p is greater than or equal to 12 (step 587), and if YES, it is assumed that centering and right alignment are impossible, and the process ends. On the other hand, if the determination in step S87 is NO, the CPU 11 calculates the difference E between 12 and ip (see FIG. 15(b)) (step 588), and determines whether or not L is specified to be right-aligned. (Step 589)
). If right alignment is specified, the CPU II sets the number of dots indicated by iB to is as the number of blank dots to be compensated for by right alignment (step 590); if centering is specified, CPU II sets the number of dots indicated by iB to 1/1 of the number of dots indicated by NoE. 2 as the number of blank dots to be compensated for by centering l! If the value is set to s (step 591), the process proceeds to step S92.

ステップS92では、上記空白のドツト数、l?sを、
行修飾を考慮した印刷イメージ上での空白文字数(スペ
ース数)、即ちセンタリング、右寄せ対象文字列の前に
挿入すべき空白文字数(スペース数)Nに変換する処理
が行なわれる。次に、(カーソルの示す文字桁−1)と
Nと対象文字数fとの和Rが算出され(ステップ593
)、Rが書式設定で定められた1行文字数mに満たない
か否かの判定が行なわれる(ステップ594)。
In step S92, the number of blank dots, l? s,
A process is performed to convert the number of blank characters (number of spaces) on the print image in consideration of line modification, that is, the number of blank characters (number of spaces) N to be inserted before the character string to be centered and right-justified. Next, the sum R of (the character digit indicated by the cursor - 1), N, and the number of target characters f is calculated (step 593
), it is determined whether or not R is less than the number m of characters per line determined by formatting (step 594).

ステップS94の判定がYESの場合、CPUIIは、
文書領域21の第1行の文書行において第15図(C)
に示すようにカーソルの示す桁位置(即ち対象文字列の
先頭)よりスペース(スペースコード)をN個(N文字
分)挿入する(ステップ595)。これにより文書領域
2Iにおける第1行の文書行は、行修飾を考慮した印刷
イメージ上でのセンタリング、右寄せが正しく反映され
たものとなる。
If the determination in step S94 is YES, the CPU II
In the first document line of the document area 21, as shown in FIG.
As shown in the figure, N spaces (space code) (for N characters) are inserted from the digit position indicated by the cursor (ie, the beginning of the target character string) (step 595). As a result, the first document line in the document area 2I is correctly centered and right-aligned on the print image in consideration of the line decoration.

一方ステップS94の判定がNoの場合には、N個のス
ペース挿入を行なうと第1行の文書行の文字数が1行文
字数m以上となることから、CPUtiはN個のスペー
ス挿入に代えて対象文字列の右端への移動処理を行なう
(ステップ89G)。これにより文書領域21における
第1行の文書行は、行修飾を考慮した印刷イメージ上で
のセンタリング。
On the other hand, if the determination in step S94 is No, the number of characters in the first document line will be greater than or equal to the number of characters per line if N spaces are inserted. A process of moving the character string to the right end is performed (step 89G). As a result, the first document line in the document area 21 is centered on the print image in consideration of line decoration.

右寄せが、文字または文字列の消滅を招かない範囲で極
力反映されたものとなる。
The right alignment is reflected as much as possible without causing the disappearance of characters or character strings.

(7)印刷時の印刷開始位置設定 第17図は行単位並びに文書単位で設定される印刷開始
位置(左余白)を説明する図、第18図(、!、印刷イ
メージ領域24の構成と書込み開始位置との関係を示す
図、第19図は印刷時における主として印刷開始位置(
印刷イメージ領域24への書込み開始位置)決定処理の
フローチャートである。
(7) Print start position setting during printing Figure 17 is a diagram explaining the print start position (left margin) set for each line and document, and Figure 18 (,!, Configuration and writing of the print image area 24 A diagram showing the relationship with the start position, Fig. 19, mainly shows the relationship between the print start position (
3 is a flowchart of a process for determining a writing start position in a print image area 24;

オペレータは、入力文書(または編集文書)を印刷した
い場合には、キーボード32の[印刷]キー(実際には
[機能1コキー+[≧]キー)を操作する。これにより
、CPU11は印刷メニューを表示する。この状態では
、オペレータは左余白値U、縦/横印刷、和文/英文印
刷等の指定が行なえる。この左余白値Uの指定にあって
は、第17図に示すように、印刷機構の給紙部(用紙挿
入口)に設けられたスケール51に付された目盛りが目
安とされる。ここでは、標準の文字ピッチである27ド
ツト(全角文字サイズ;24ドツト十文字間間隔;3ド
ツト)を単位にO〜56まで目盛りが付される。この後
[選択/実行フキ−が操作されると、指定された印刷書
式が印刷書式領域25に設定され、しかる後、この印刷
書式に従う印刷動作が行なわれる。この印刷動作におい
ては、行修飾領域22に設定されている行修飾情報も参
照される。
When the operator wants to print the input document (or edited document), he operates the [Print] key (actually, the [Function 1 key + [≧] key) on the keyboard 32. Thereby, the CPU 11 displays a print menu. In this state, the operator can specify the left margin value U, vertical/horizontal printing, Japanese/English printing, etc. In specifying this left margin value U, as shown in FIG. 17, a scale marked on a scale 51 provided at the paper feed section (paper insertion slot) of the printing mechanism is used as a guide. Here, a scale is provided from 0 to 56 in units of 27 dots (full-width character size: 24 dots, interval between cross characters: 3 dots), which is a standard character pitch. Thereafter, when the selection/execution key is operated, the designated print format is set in the print format area 25, and thereafter, a printing operation is performed in accordance with this print format. In this printing operation, the line modification information set in the line modification area 22 is also referred to.

今、第1行の文書行の印刷を行なうものとする。Now, assume that the first document line is to be printed.

この場合、cptriiは、印刷イメージ領域24に設
定されている印刷書式情報中の左余白値Uにより、印刷
書式上での左余白(印刷開始位置)に対応する印刷イメ
ージ領域24内書込み開始アドレスP(RAM20上で
のアドレス)を算出する(ステップ5101)。ここで
印刷イメージ領域24は、印字ヘッドの構成ドツト数で
ある24ドツト(即ち3バイト)×1ライン分の印字ヘ
ッド駆動操作範囲分(単位ドツト)の2次元メモリの如
く用いられる。そこで1ライン分の印字ヘッド駆動操作
範囲(1ゾーン印刷領域)での第j番目のドツト列の2
4ドツト(3バイト)には、印刷イメージ領域24の3
j〜3j+2番地(印刷イメージ領域24内相対番地)
、即ちRAM20のT+37−T+3j+2番地(Tは
RAM20における印刷イメージ領域24の先頭アドレ
ス)の3バイトが割当てられる。
In this case, cptrii determines the write start address P in the print image area 24 corresponding to the left margin (print start position) on the print format based on the left margin value U in the print format information set in the print image area 24. (address on RAM 20) is calculated (step 5101). Here, the print image area 24 is used like a two-dimensional memory of 24 dots (ie, 3 bytes), which is the number of dots constituting the print head, x one line of print head drive operation range (unit dot). Therefore, the j-th dot row 2 in the print head drive operation range for one line (one zone printing area)
4 dots (3 bytes) include 3 in the print image area 24.
Addresses j to 3j+2 (relative address within print image area 24)
That is, 3 bytes at address T+37-T+3j+2 of the RAM 20 (T is the start address of the print image area 24 in the RAM 20) are allocated.

したがって、上記した印刷書式上での書込み開始アドレ
スPは、T+ (27XuX3)の演算により求められ
る。
Therefore, the write start address P on the above-mentioned print format is determined by the calculation of T+ (27XuX3).

CPUIIはステップ5101を終了すると、印刷対象
行である第1行の行修飾情報を行修飾領域22から読出
す(ステップ5102)。そしてCPUIIは、第1行
の行修飾情報中の左余白値Vの示す桁(文字桁)の占め
る横方向のドツト長を、行修飾(文字サイズ、文字量間
隔)を考慮して前記したセンタリング、右寄せの場合と
同様にして求め、このドツト長に3を掛けて(1ドツト
列に印刷イメージ領域24内3バイトを要するため)そ
の結果にPを加えることにより、第1行の文書行の印刷
イメージの書込み開始アドレスSを算出する(ステップ
5103)。
After completing step 5101, the CPU II reads line modification information for the first line, which is the line to be printed, from the line modification area 22 (step 5102). Then, CPU II adjusts the horizontal dot length occupied by the digit (character digit) indicated by the left margin value V in the line modification information of the first line by centering it as described above, taking into account the line modification (character size, character spacing). , is obtained in the same way as for right alignment, and by multiplying this dot length by 3 (because one dot column requires 3 bytes in the print image area 24) and adding P to the result, the first document line is The writing start address S of the print image is calculated (step 5103).

CPUIIは、書込み開始アドレスSを求めると、Sが
印刷イメージ領域24の先頭アドレス1以上であるか否
かの判定を行なう(ステップ5104)。
After determining the write start address S, the CPU II determines whether S is equal to or greater than the first address of the print image area 24 (step 5104).

CPUIIは、ステップ5104の判定がNoであれば
(Sの示すアドレスからの印刷イメージ書込みは不可能
なことから)成敗えずSとしてTを採用してステップ8
106に進み、ステップS 104の判定かYESであ
ればそのままステップs toeに進む。
If the determination in step 5104 is No (because it is impossible to write a print image from the address indicated by S), the CPU II selects T as S without success and proceeds to step 8.
The process proceeds to step S 106, and if the determination in step S104 is YES, the process directly proceeds to step stoe.

ステップ8106においては、CPUIIは、書込み開
始アドレスSから始まる( RA M 20上の)印刷
イメージ領域24の領域に、第1行の文字列の行修飾を
考慮した印刷イメージ(即ち行修飾指定に従って拡大/
縮小、回転/斜体、或は白抜きパターン化された1ゾ一
ン分の行パターン)を展開する。次にCPUIIは、印
刷イメージ領域24に展開された印刷イメージを用いた
1ゾーン(1印字行)分の印刷を実行しくステップ51
07)、Lかる後、第1行について必要なゾーン数分の
印刷が終了したか否かの判定を行なう(ステップ5IO
II)。そして文字サイズ等で決定されるゾーン数分の
印刷が行なわれることで第1行の印刷は終了する。この
結果、第17図に示す用紙52には、第1行の文字列が
、書式設定で定められる印刷左余白(基準となる印刷開
始位置)から、第1行の行修飾で指定されている左余白
値Vの示す桁数(文字桁の数)だけ左または右にずれた
位置から印刷される。なお、上記の桁のピッチに、第1
行の行修飾で指定されている文字サイズ、文字量間隔が
反映されていることは言うまでもない。
In step 8106, the CPU II creates a print image in consideration of the line decoration of the character string in the first line (that is, enlarged according to the line decoration specification) in the area of the print image area 24 (on RAM 20) starting from the write start address S. /
Develop a one-zoon line pattern that has been reduced, rotated/italicized, or outlined. Next, in step 51, the CPU II executes printing for one zone (one print line) using the print image developed in the print image area 24.
07), after reading L, it is determined whether printing for the required number of zones has been completed for the first line (step 5IO).
II). Then, printing for the first line is completed by printing for the number of zones determined by the character size, etc. As a result, on the paper 52 shown in FIG. 17, the character string in the first line is specified by the line decoration in the first line from the print left margin (standard printing start position) determined by the format settings. Printing starts from a position shifted to the left or right by the number of digits (number of character digits) indicated by the left margin value V. In addition, the pitch of the above digits has the first
It goes without saying that the font size and spacing specified in the line decoration are reflected.

さて、この実施例では、第1行の行修飾情報中の印刷停
止指定フラグにより印刷停止が指定されていれば、一旦
印刷動作が停止され、印刷メニューが表示される。これ
により、オペレータは英文/′和文の字体の切換え、印
刷用カラーリボンの交換を行なうことができる。また第
1行の行修飾情報中の用紙交換指定フラグで用紙交換が
指定されている場合には、第1行の印刷終了時に用紙交
換を促すメツセージが表示される。そして、この状態で
用紙が交換されて[選択/実行]キーが操作されると、
印刷メニューが表示される。この状態でオペレータは、
英文/和文の字体の切換え、縦/横印刷の切換えなどが
指定できる。この指定の後に[選択/実行]キーが操作
されると、第1+1行を先頭行とする指定された印刷書
式の印刷が行なわれる。
In this embodiment, if printing stop is specified by the print stop designation flag in the line modification information of the first line, the printing operation is temporarily stopped and the print menu is displayed. This allows the operator to switch between English/Japanese fonts and exchange color ribbons for printing. Further, if paper replacement is specified by the paper replacement designation flag in the line modification information of the first line, a message prompting paper replacement is displayed when printing of the first line is completed. If the paper is replaced in this state and the [Select/Execute] key is operated,
The print menu will be displayed. In this state, the operator
You can specify the switching of English/Japanese fonts, vertical/horizontal printing, etc. When the [Select/Execute] key is operated after this designation, printing is performed in the designated print format with the 1st+1st line as the first line.

なお、前記実施例では、行単位での行修飾設定の後に文
書全体としての文書形態を指定した場合には、行単位で
行修飾設定された行を除く残り行について行修飾情報の
設定を行なうものとして説明したが、この発明の主旨に
よれば、文書の各行について、行単位での行修飾設定の
有無に無関係に一律に行修飾情報の設定を行なうように
してもよい。但し、この場合には、文書全体としての文
書形態の指定を行単位での行修飾設定に先立って行なう
ことが好ましい。
Note that in the above embodiment, if the document format for the entire document is specified after setting line decoration for each line, line decoration information is set for the remaining lines excluding the line for which line decoration has been set for each line. However, according to the gist of the present invention, line modification information may be uniformly set for each line of a document, regardless of whether or not line modification is set for each line. However, in this case, it is preferable to specify the document format for the entire document before setting line decoration for each line.

[発明の効果] 以」二詳述したようにこの発明によれば、文書の1行文
字数を設定する書式設定操作時等において、文字サイズ
並びに斜体を含む文書形態を文書全体の文書形態として
指定するだけで、同文書形態に対応する行修飾情報が文
書各行について自動設定できるので、特に斜体文字を必
要とする英文を有する文書を扱う場合などは便利である
。しかも、この発明によれば、行単位での行修飾設定も
併用できるので所望の文書形態の文書が効率的に行なえ
る。
[Effects of the Invention] As described in detail below, according to the present invention, during formatting operations such as setting the number of characters per line of a document, the document format including the font size and italics can be specified as the document format of the entire document. By simply doing this, the line modification information corresponding to the same document format can be automatically set for each line of the document, which is particularly convenient when dealing with a document containing English text that requires italic characters. Moreover, according to the present invention, it is also possible to set line modification on a line-by-line basis, so that a document in a desired document format can be efficiently created.

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

第1図はこの発明の一実施例を示すブロック構成図、第
2図は第1図のRAM20のメモリマツプ第3図は第2
図の文書領域21に確保される文書行フィールドと行修
飾領域22に確保される行修飾情報フィールドとの対応
を示す図、第4図は第2図の行修飾領域22に格納され
る行修飾情報の構成を示す図、第5図は第2図の文書書
式領域23に格納される文@書式情報の構成を示す図、
第6図は行修飾設定時における各選択画面と画面切換え
操作順序を示す図、第7図は文書書式設定時における各
選択画面と画面切換え操作順序を示す図、第8図は文書
書式情報設定処理のフローチャート、第9図は行修飾前
詰め、後送り指定時における操作順序を示す図、第10
図は行修飾前詰め前後の行修飾領域22の状態の一例を
文書領域21に対応して示す図、第11図は行修飾前詰
め処理のフローチャート、第12図は行修飾後送り前後
の行修飾領域22の状態の一例を文書領域21に対応し
て示す図第13図は行修飾後送り処理のフローチャート
、第14図は行コピー処理のフローチャート、第15図
は行修飾を考慮したセンタリング、右寄せを、 説明す
る図、第16図はセンタリング、右寄せ処理のフローチ
ャート、第17図は行単位並びに文書単位で設定される
印刷開始位置(左余白)を説明する図、第18図は印刷
イメージ領域24の構成と同領域24内書込み開始位置
を説明する図、第19図は印刷時における主として印刷
イメージ領域24内書込み位置決定処理のフローチャー
トである。 11・・・CPU、12・・・ROM、13・・・プロ
グラム領域、20・・・RAM、21・・・文書領域、
22・・・行修飾領域、23・・・文書書式領域、24
・・・印刷イメージ領域、25・・・印刷古式領域、3
2・・・キーボード(KB)、34・・・表示器、37
・・・プリンタ(PRT)。 出願人代理人 弁理士 鈴 江 武 彦笛 1 M 第2図 第3図 第7図 (スヲ−/7”SI4へ) (λんン#S15へ)第1
0図 第11図 (b) 第12図 第13図 第14図(Wつ1) 第14図 (t*2) 第14図 (にっ3) (a) N ′I[!]”ス9−ス  (C) (d) 第15図 第16図(にの1) 第16図(随=52) 第17図 第18図 第19図
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a memory map of the RAM 20 in FIG.
A diagram showing the correspondence between the document line field secured in the document area 21 in the figure and the line modification information field secured in the line modification area 22. A diagram showing the structure of information, FIG. 5 is a diagram showing the structure of the sentence @ format information stored in the document format area 23 of FIG. 2,
Figure 6 is a diagram showing each selection screen and screen switching operation order when setting line decoration. Figure 7 is a diagram showing each selection screen and screen switching operation order when setting document format. Figure 8 is a diagram showing document format information setting. Processing flowchart, Figure 9 is a diagram showing the order of operations when line modification front-justification and rear-feeding are specified, Figure 10
The figure shows an example of the state of the line modification area 22 before and after line modification front-filling, corresponding to the document area 21, FIG. 11 is a flowchart of line modification front-filling processing, and FIG. Figure 13 shows an example of the state of the decoration area 22 corresponding to the document area 21. Figure 13 is a flowchart of line modification post-feed processing, Figure 14 is a flowchart of line copy processing, and Figure 15 is a centering process that takes line decoration into consideration. A diagram explaining right alignment, Figure 16 is a flowchart of centering and right alignment processing, Figure 17 is a diagram explaining the print start position (left margin) set for each line and document, and Figure 18 is the print image area. FIG. 19 is a flowchart mainly for determining the writing position in the print image area 24 during printing. 11... CPU, 12... ROM, 13... program area, 20... RAM, 21... document area,
22... Line modification area, 23... Document format area, 24
...Printing image area, 25...Ancient printing area, 3
2... Keyboard (KB), 34... Display, 37
...Printer (PRT). Applicant's agent Patent attorney Takehiko Suzue 1 M Figure 2 Figure 3 Figure 7 (To SW-/7" SI4) (To λn#S15) No. 1
Figure 0 Figure 11 (b) Figure 12 Figure 13 Figure 14 (W 1) Figure 14 (t*2) Figure 14 (Ni 3) (a) N ′I[! ]”S9-S (C) (d) Fig. 15 Fig. 16 (Nino 1) Fig. 16 (Su = 52) Fig. 17 Fig. 18 Fig. 19

Claims (1)

【特許請求の範囲】[Claims] 文字サイズ並びに斜体を含む第1文書形態を行単位で示
す行修飾情報が文書の各行に対応付けて設定される行修
飾情報領域を有する記憶手段と、上記第1文書形態の少
なくとも一部を成し上記文字サイズ並びに斜体を含む第
2文書形態の設定を上記文書を単位に指示する第1指示
手段と、この第1指示手段によって指示された第2文書
形態を示す情報を上記行修飾情報の少なくとも一部とし
て上記文書の各文書行にそれぞれ対応付けて上記行修飾
情報領域に設定する第1設定手段と、上記文書の行を単
位に上記第1文書形態の設定を指示する第2指示手段と
、この第2指示手段によって指示された第1文書形態を
示す情報を上記行修飾情報として指定文書行に対応付け
て上記行修飾情報領域に設定する第2設定手段とを具備
することを特徴とする行修飾設定機能付き文書作成装置
a storage means having a line modification information area in which line modification information indicating a first document format including font size and italics on a line-by-line basis is set in association with each line of the document, and forming at least a part of the first document format; and a first instruction means for instructing the setting of the second document format including the font size and italics for each document, and information indicating the second document format instructed by the first instruction means as the line modification information. a first setting means for setting the first document format in the row modification information area in association with each document line of the document, at least in part; and a second instruction means for instructing setting of the first document format for each line of the document. and a second setting means for setting information indicating the first document format instructed by the second instruction means in the line modification information area in association with the specified document line as the line modification information. Document creation device with line modification setting function.
JP60247536A 1985-11-05 1985-11-05 Document generating device with line modification setting function Pending JPS62107367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60247536A JPS62107367A (en) 1985-11-05 1985-11-05 Document generating device with line modification setting function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60247536A JPS62107367A (en) 1985-11-05 1985-11-05 Document generating device with line modification setting function

Publications (1)

Publication Number Publication Date
JPS62107367A true JPS62107367A (en) 1987-05-18

Family

ID=17164954

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60247536A Pending JPS62107367A (en) 1985-11-05 1985-11-05 Document generating device with line modification setting function

Country Status (1)

Country Link
JP (1) JPS62107367A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01191893A (en) * 1988-01-27 1989-08-01 Fujitsu Ltd Enlarged character display system
JPH0264849A (en) * 1988-08-31 1990-03-05 Canon Inc Document processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01191893A (en) * 1988-01-27 1989-08-01 Fujitsu Ltd Enlarged character display system
JPH0264849A (en) * 1988-08-31 1990-03-05 Canon Inc Document processor

Similar Documents

Publication Publication Date Title
JPS62107367A (en) Document generating device with line modification setting function
JPH0227150B2 (en)
JPS6320666A (en) Document processor
JPS62108287A (en) Document generator with line copying function
JPS62105663A (en) Document forming apparatus with print starting position setting function
JPS61175682A (en) Character processor
JPS62108289A (en) Document generator with centering/right shifting
JPS62108286A (en) Document generator with line modification setting function
JPS62108288A (en) Document generator with function of cramming forward and shifting backward in line modification
JPH089245B2 (en) Character processor
JPH0245218B2 (en)
JPS61122776A (en) Input/output device
JPS59201129A (en) Document producer
JPS61122773A (en) Japanese input/output device
JPS59135582A (en) Idle feed control system of printer for sentence processor
JPH0666066B2 (en) Document processor with furigana addition function
JPS61175681A (en) Character processor
JPH02896A (en) Character processor
JPS61175683A (en) Character processor
JPS61122778A (en) Input/output device provided with display device
JPH07306855A (en) Document processor
JPH03129563A (en) Document processor
JPS61175760A (en) Character processor
JPH0532782B2 (en)
JPS61122775A (en) Input/output device