JPS62108288A - Document generator with function of cramming forward and shifting backward in line modification - Google Patents

Document generator with function of cramming forward and shifting backward in line modification

Info

Publication number
JPS62108288A
JPS62108288A JP60247540A JP24754085A JPS62108288A JP S62108288 A JPS62108288 A JP S62108288A JP 60247540 A JP60247540 A JP 60247540A JP 24754085 A JP24754085 A JP 24754085A JP S62108288 A JPS62108288 A JP S62108288A
Authority
JP
Japan
Prior art keywords
line
document
modification
area
row
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
JP60247540A
Other languages
Japanese (ja)
Inventor
宏之 青木
佐藤 展子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
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 JP60247540A priority Critical patent/JPS62108288A/en
Publication of JPS62108288A publication Critical patent/JPS62108288A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、行修飾前詰め/後送り機能付き文書作成装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a document creation device with a line modification front-justification/backward-feeding 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.

[背景技術の問題点] しかし、行単位で行修飾設定(指定)を行なう方式は、
行修飾設定後において文書の校正等で文字または文字列
の挿入、削除が行なわれて文書行が増減すると、゛文書
行と行修飾との対応がずれてしまう問題があった。
[Problems with the background technology] However, the method of setting (specifying) line decoration for each line is
If the number of document lines increases or decreases due to the insertion or deletion of characters or character strings during document proofreading after setting line decorations, there is a problem that the correspondence between document lines and line decorations becomes misaligned.

[発明の目的] この発明は上記事情に鑑みてなされたものでその目的は
、文字または文字列の挿入、削除などにより文書を構成
する文書行が増減した場合に、文書行と行修飾との対応
のずれが調整できる行修飾前詰め/後送り機能付き文書
作成装置を提供することにある。
[Purpose of the Invention] This invention was made in view of the above circumstances, and its purpose is to change the relationship between document lines and line modifications when the number of document lines that make up a document increases or decreases due to the insertion or deletion of characters or character strings. An object of the present invention is to provide a document creation device with a line modification front-justification/backward-feeding function that can adjust correspondence deviations.

[発明の概要] この発明では、文字または文字列の挿入、削除などによ
り文書を構成する文書行が増減し、文書行と、同文書行
に対応付けて行修飾情報領域に設定される行修飾情報と
の対応のずれを調整したい場合、任意の文書行に後続す
る各行に対応する行修飾情報の前詰め、または任意の文
書行以降の各行に対応する行修飾情報の後送りを指示で
きる。
[Summary of the Invention] In this invention, the number of document lines constituting a document is increased or decreased by inserting or deleting characters or character strings, and a line modification is set in a row modification information area in association with the document row. If you want to adjust the discrepancy in correspondence with the information, you can instruct to shift the line modification information corresponding to each line following an arbitrary document line to the front, or to move the line modification information corresponding to each line after the arbitrary document line to the rear.

前詰めが指示された場合には、指定された文書行に後続
する各行に対応する行修飾情報領域内の行修飾情報が前
から順に1行分ずつ前詰めされ、後送りが指示された場
合には、指定された文書行以降の各行に対応する上記行
修飾情報が後から順に1行分ずつ後送りされ、文書行と
行修飾情報との対応のずれが調整される。
If front-justification is specified, the line modification information in the line modification information area corresponding to each line following the specified document line is front-justified one line at a time from the front, and if backward-justification is specified, In this case, the line modification information corresponding to each line after the designated document line is sequentially advanced one line at a time, and the misalignment between the document line and the line modification information is adjusted.

[発明の実施例] 第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は、システムプログラ
ム等が格納されているプログラム領域I3、装置で扱う
漢字を含む文字コードに対応した文字パターン(英文フ
ォントを含む)が登録された文字パターン領域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 I3 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はキー
ボード(KB)である。33は表示コントローラ(表示
CNT)、34は表示器、35は表示器34に表示する
表示パターンを格納する表示用ドツトメモリである。こ
の実施例において、表示器34は32(縦)X640 
(横)ドツト構成の液晶表示器である。表示器37の上
部16X640ドツトは1行X40桁(1桁;16X1
Bドツト)の文書表示領域として用いられ、下部16X
640ドツトは1行X40桁のガイド表示領域として用
いられる。
31 is a keyboard controller (KBC), and 32 is a keyboard (KB). 33 is a display controller (display CNT), 34 is a display device, and 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 640
(Horizontal) This is a liquid crystal display with a dot configuration. The 16 x 640 dots on the top of the display 37 are 1 line x 40 digits (1 digit; 16 x 1
B dot) is used as the document display area, and the lower 16X
The 640 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 having a 24-dot print head. 38 is a cassette interface (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図に示すRAM20のメモリマツプを示す
FIG. 2 shows a memory map of the RAM 20 shown in FIG.

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

RAM20は、文書書式を指定するたとえば3バイトの
文書書式情報を記憶する文書書式領域23もaしている
。この文1!I書式領域23に格納される文書書式情報
は、後述するように文書の1行当りの文字数m(1行文
字数)を指定する1行文字数値を含む。更にRAM20
は、プリンタ37により印刷出力される印刷イメージデ
ータを格納するラインバッファとしての印刷イメージ領
域24、および印刷書式を指定する印刷書式情報を記憶
する印刷書式領域25等を存している。印刷イメージ領
域24は、RA M 20のT番地から始まる領域に割
付けられる。
The RAM 20 also includes a document format area 23 that stores, for example, 3-byte document format information that specifies a document format. This sentence 1! The document format information stored in the I format area 23 includes a 1-line character value that specifies the number m of characters per line (number of characters per line) of the document, as will be described later. Furthermore, RAM20
includes a print image area 24 as a line buffer that stores print image data printed out by the printer 37, and a print format area 25 that stores print format information specifying a print format. The print image area 24 is allocated to an 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 (i.e., print left margin) that is a reference for the entire document when performing 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の文書領域21に格納可
能な文書の最大行数nは、同領域21に9600バイト
、即ち4800文字分を割付けているこの実施例では、
4800/mとなる。なお、第3図において、L、Cは
カーソル表示対象文字の行1桁位置を、L、は文書領域
2■に格納されている文書の最終行位置を示す。第り行
の文書行は、RAM20のlB+ (L−1)X2m1
番地(Bは文書領域21の先頭番地)から始まる2mバ
イト(m文字分)の領域に格納される。また第り行の(
文書行に対応する)行修飾情報は、RAM20の+A+
(I、−1)X31番地(Aは行修飾領域22の先頭番
地)から始まる3バイトの領域に格納される。
As shown in FIG. 3, the document area 21 and the line modification area 2
2, a line with the number of characters m indicated by the number of characters per line information is managed in the middle. Therefore, the maximum number of lines n of a document that can be stored in the document area 21 of the RAM 20 is as follows in this embodiment where 9600 bytes, that is, 4800 characters are allocated to the document area 21.
It becomes 4800/m. In FIG. 3, L and C indicate the 1st line 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 2. The next document line is 1B+ (L-1)X2m1 of RAM20.
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 +A+ in RAM20.
(I, -1) It is stored in a 3-byte area starting from address X31 (A is the starting address of the row modification area 22).

第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ビツトの左余白値Vから成る。
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 (line feed), a paper exchange designation flag that specifies paper exchange, and a 7-bit left margin value V that specifies the left margin by the number of digits.

白抜き指定フラグは“1″で指定有り、“0゛で指定無
しを示す。回転・斜体情報は、“000”で回転・斜体
無し、“001°で回転1 (90度時計計)、“01
0”で回転2(180度反時計)、“011”で回転3
(270度反時計)、“100”で斜体を示す。
The white designation flag is "1" indicating designated, "0" indicating not designated. Rotation/italic information is "000" without rotation/italic, "001° = rotation 1 (90 degree clock)," 01
0” for rotation 2 (180 degrees counterclockwise), “011” for rotation 3
(270 degrees counterclockwise), “100” indicates italics.

文字サイズ値は、“0001”〜“1001”の範囲で
サイズ1(倍率、lX1)〜サイズ9(倍率;約24×
約24)を、”1111”でサイズQ(倍率;1/2X
1/2)を示す。印刷外市指定フラグは“l”で指定有
り、“0”で指定無・しを示す。文字量間隔値は、“0
0”〜“11”の範囲で文字間0(θ文字骨)〜文字間
3(文字サイズ値の指定する倍率の文字のlX2文字分
)を示す。
The font size value ranges from "0001" to "1001", from size 1 (magnification, lX1) to size 9 (magnification; approx. 24
24), size Q (magnification: 1/2X) with "1111"
1/2). The printing foreign city designation flag is "l" to indicate that it is designated, and "0" to indicate that it is not designated. The character spacing value is “0”
The character spacing is 0 (θ character bone) to 3 (1×2 characters of the magnification specified by the character size value) in the range of 0” to “11”.

行ピツチ値は、“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” and line break B (line break: -10
inch/120), line break O at “oooo” (line feed amount; 0
inch), "0001" is a line feed H (line feed amount; 10 inches/120), "0010" is a line feed K (line feed knee 16 inches/120), "0011" is a line feed E (line feed amount; 20 inches/120), The range of "0100" to "0111" indicates line feed 1 (line feed amount; 30 inches/120) to line feed 4 (line feed amount; 60 inches/120).

用紙交換指定フラグは、頁境界を設定するために該当行
の印刷終了時においてオペレータに用紙交換を要求する
のに用いられ、“1”で指定何り、“0“で指定無しを
示す。
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 "0" indicates no designation.

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

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

第5図は第2図の文書書式領域28に格納される文書書
式情報の構成を示す。
FIG. 5 shows the structure of the document format information stored in the document format area 28 of FIG.

文書書式情報は、文書の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, text size value, character spacing value, and line pitch value are as follows:
This is the same as the row modification information shown in FIG.

なお、文書書式情報の初期値(これを標準文書書式情報
と呼ぶ)は、1行文字数m=40、回転・斜体情報−0
00(回転・斜体無し)、文字サイズ値−0001Cサ
イズ1)、文字量間隔値−01(文字間1)、行ピツチ
値−0010(改行K)であり、電源投入時に文書書式
領域23に自動設定される。明らかなように、回転・斜
体情報、文字サイズ値、文字量間隔値および行ピツチ値
の用期値は、行修飾情報(標準行修飾情報)のそれと同
一である。
Note that the initial values of document format information (this is called standard document format information) are number of characters per line m = 40, rotation/italic information - 0.
00 (no rotation/italics), character size value -0001C size 1), character spacing value -01 (character spacing 1), line pitch value -0010 (line feed K), and is automatically displayed in the document format area 23 when the power is turned on. Set. As is clear, the expiry values of the rotation/italicization information, character size value, character spacing value, and line pitch value are the same as that 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)文書入力 日本語文書入力時に於いては、CPUIIは、キーボー
ド32より入力された例えば仮名文字列の漢字指定部分
について、ROM12内の辞書領域15等を索引するこ
とにより仮名漢字変換処理を行なった後、その変換され
た漢字コードを含む人力文字コード列を文書領域21に
格納する。
(1) Document Input When inputting a Japanese document, the CPU II performs a kana-kanji conversion process by indexing the dictionary area 15 in the ROM 12, for example, for the kanji specified part of a kana character string input from the keyboard 32. After this, a human character code string including the converted Kanji code is stored in the document area 21.

l二足した文書入力時に於いて、文書領域21に貯えら
れる入力文字は、CPUIIの制御の下に表示コントロ
ーラ33において表示用ドツトメモリ35上にパターン
展開され、表示器34に表示出力される。
When inputting a document obtained by adding 2, 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桁(文字)の文字
列をもって任意に表示でき、文書の校正、訂正等に供さ
れる。
A low-input document created manually in this manner can be arbitrarily displayed as a character string of up to 40 digits (characters) on the display 34 by operating the cursor keys, and can be 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]キーと他の特定キー
(ここでは[−]キー)との組合わせによるキー操作に
より行修飾の指定を行なう。なお、行修飾指定専用のc
行修飾]キーを設け、上記組合わせキー操作に代えるこ
とも可能である。
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 the c
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 (referred to as the upper [line modification] key for convenience), the CPU II selects a line in the line modification area 22 that corresponds to the line specified for row modification. The modification information 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図を参照して後述する)を選択するための項
目選択画面が表示され、旦つ11修飾設定項目にカーソ
ルが表示(ここでは文字反転によるカーソル表示)され
る。この状態で[選択/実行]キーか操作されると、文
字間間隔および行ピッチ(改行ピッチ)を選択するため
の選択画面が表示される。この選択画面における各項目
間の切換え(項目切換え)は[次項口フキ−操作で行な
われ、項目内の設定候補値(ここでは文字量間隔値1行
ピッチ値)の選択(指定)は横方向(左/右)のカーソ
ルキー操作によりカーソルを左右に移動することにより
行なわれる。
In the line decoration display mode, as shown in Figure 6, there are items for selecting the square line decoration setting 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 each of the 11 modification setting items (in this case, the cursor is displayed by inverting the characters). If the [Select/Execute] key is operated in this state, a selection screen for selecting character spacing and line pitch (line break pitch) is displayed. Switching between each item (item switching) on this selection screen is performed by operating the [Next item] key, and selection (designation) of setting candidate values within an item (in this case, character spacing value and line pitch value) 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-mentioned selection screens including the character spacing/line pitch screen is performed by the above-mentioned [Next item] key operation or up/down cursor key operation.

そしてこれらのキー操作により画面が切換えられること
により、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 no numerical value is input using the numeric keys, the preset value will be used (within the range of -9 to +63). If the input value is selected, 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 that the [Select/Execute] key has been input in the line modification display mode, the data in the temporary storage area will be updated in the same way as when the [Next item] key or up/down cursor keys have been operated. Update row qualification information. And C.P.
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)文i!F書式設定 第7図は文書書式設定時における各選択画面(書式設定
画面)と画面切換え操作順序を示し、第8図は文書書式
情報設定処理のフローチャートを示す。
(3) Sentence i! F Format Setting FIG. 7 shows each selection screen (format setting screen) and the order of screen switching operations when setting a document format, and FIG. 8 shows a flowchart of document format information setting processing.

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

CPUIIは、[機能1]キー+[!]キー(ここでは
便宜上[書式設定コキーと呼ぶ)の操作入力を判別する
と、RAM20内の文書書式領域23に設定されている
文書書式情報をRAM20内の文書書式情報−特記ta
領域(図示せず)に取出し、表示器34の表示モードを
文書表示モードから書式設定表示モードに切換える。こ
の書式設定表示モードでは、第7図に示すように、1行
文字敗の(数字キー操作による)指定のための選択画面
、文字量間隔/行ピッチ指定のための選択画面、文字サ
イズ指定のための選択画面、回転・斜体指定のだめの選
択画面が、十/下カーソルキー操作等にょり第6図の行
修飾表示モードの場合と同様にして切換え表示される。
For CPU II, press [Function 1] key + [! ] key (herein referred to as the format setting key for convenience), the document format information set in the document format area 23 in the RAM 20 is transferred to the document format information in the RAM 20 - special note ta
area (not shown), and the display mode of the display 34 is switched from the document display mode to the formatting display mode. In this formatting display mode, as shown in Figure 7, there is a selection screen for specifying single-line character loss (by operating numeric keys), a selection screen for specifying character spacing/line pitch, and a selection screen for specifying character size. A selection screen for specifying rotation and italics and a selection screen for specifying rotation and italics are switched and displayed in the same manner as in the line modification display mode shown in FIG. 6 by operating the 10/down cursor keys.

この切換え表示の際には、上記の一時記憶領域に一時記
憶されている文書書式情報中の該当項目の既設定内容が
カーソル表示(或は数値表示)される。そして左/右カ
ーソルキー操作(或は数字キー操作)により、設定候補
値の選択指定(或は設定値入力)が行なわれる。
During this switching display, the preset contents of the corresponding item in the document 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への行修飾情報の設定および文書
書式領域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 performs processing for setting line modification information in the line modification area 22 and setting document format information in the document format area 23. This setting process will be explained with reference to the flowchart in FIG.

CPUIIは、まず文書行を示す行ポインタiを1(先
頭行位置)に設定しくステップ5ll)、第i行の行修
飾情報、即ちRAM20(内に用意された行修飾領域2
2)のiA+ (i−1)xa1番地から始まる3バイ
トの行修飾情報フィールドに設定されている行修飾情報
を取出す(ステップ512)。次にCPUIIは、同行
修飾情報が第6図に示す行修飾設定操作に従って設定さ
れたものか否か(行修飾設定aりか否か)の判定を行な
う(ステップS 13)。
The CPU II first sets the line pointer i indicating the document line to 1 (first line position) (step 5ll), and stores the line modification information of the i-th line, that is, the row modification area 2 prepared in the RAM 20 (step 5ll).
2) extracts the row modification information set in the 3-byte row modification information field starting from address iA+ (i-1)xa1 (step 512). Next, the CPU II determines whether or not the accompanying decoration information has been set according to the row decoration setting operation shown in FIG. 6 (whether or not the row decoration setting is the same) (step S13).

ステップS13の判定は、ステップ521〜32gに従
って行なわれる。即ちCPULIは、取出した行修飾情
報中の白抜き指定フラグが白抜き指定無しを、印刷停止
指定フラグが印刷停止無しを、用紙交換指定フラグが用
紙交換指定無しを、そして左余白値Vがθを、それぞれ
示しく即ち白抜き指定フラグ、印刷停止指定フラグ、用
紙交換指定フラグおよび左余白値Vがいずれも標準値で
あって)、」二足の文書書式情報一時領域に一時記憶さ
れている新たな文書書式情報中の回転・斜体情報、文字
サイズ値、文字量間隔値および行ピツチ値が現在(RA
M20内の)文書書式領域23に設定されているそれと
等しい場合、行修飾設定無しと判定する。
The determination in step S13 is performed according to steps 521 to 32g. In other words, CPULI 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 exchange designation, and the left margin value V is θ. (that is, the whiteout designation flag, printing stop designation flag, paper exchange designation flag, and left margin value V are all standard values), which are temporarily stored in the two-legged document format information temporary area. The rotation/italic information, character size value, character spacing value, and line pitch value in the new document format information are currently
If it is the same as that set in the document format area 23 (in M20), it is determined that no line decoration is set.

これに対して、1項目でも条件が合わない場合には、C
PUIIは行修飾設定有りと判定する。即ちCPUII
は、ステップS12で取出した行修飾情報が、標準行修
飾情報であるか、或は書式設定により設定されたもので
ある場合には行修飾設定無しを、それ以外の場合には行
修飾設定有りを判定する。なお、行修飾情報中に行修飾
設定の有無を示す特定ビットを設け、同ビットを参照す
ることによりステップS13の判定(即ち行修飾設定の
有無の判定)を行なうことも可能である。但し、この場
合には、第6図に示す行修飾設定操作に従って行修飾情
報設定を行なう際に上記特定ビットをセットする必要が
ある。
On the other hand, if even one item does not meet the conditions, C
PUII determines that line modification is set. That is, CPU II
If the line decoration information retrieved in step S12 is standard line decoration information or has been set by formatting, no line decoration setting is specified, otherwise, line decoration setting is specified. 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
より小さいか否かの判定を行なう(ステップS 15)
。一方ステップSlBの判定がYESの場合、即ち行修
飾設定有りの場合、CPUIIはステップS14をスキ
ップしてステップS15の判定処理を行なう。これによ
り、第6図に示す行修飾設定操作に従って行単位で設定
された行修飾情報は保存される。
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, in the row modification information field (corresponding position) of the i-th row, and i is the maximum row n.
(Step S15)
. On the other hand, if the determination in step S1B is YES, that is, if row modification is set, the CPU II 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.

cpuitは、ステップS15の判定がYESの場合、
行ポインタiを1つ進めて(ステップ816)ステップ
S12に戻る。一方ステップ515の判定かNoの場合
、CPUIIは最大行nまでの処理を終了したものと判
断し、上記一時記憶領域に記憶されている文書書式情報
をRA M 20内の文書書式領域23に設定して(ス
テップS 17)書式設定処理を終了する。このときC
PUIIは、表示器34の表示モードを書式設定表示モ
ードから文書表示モードに戻す。
If the determination in step S15 is YES, cpuit
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 515 is No, the CPU II determines that processing up to the maximum line n has been completed, and sets the document format information stored in the temporary storage area to the document format area 23 in the RAM 20. Then (step S17) the formatting process ends. At this time C
PUII returns the display mode of the display 34 from the formatting display mode to the document display mode.

一1ニ記したように、この実施例では、回転・斜体情報
、文字サイズ値、文字量間隔値および行ピツチ値につい
ては、文書書式設定操作により、文書の各行について一
括して行修飾情報中に設定できる。また、この実施例で
は、第6図に示す行修飾設定操作に従って行単位で設定
された行修飾情報については、保存される。したがって
、文書書式設定操作を、いかなる時期に行なっても、既
に行単位で設定されている行修飾情報に影響を及ぼす恐
れはない。
As mentioned in 11D, in this embodiment, the rotation/italic information, font size value, character spacing value, and line pitch value are added to the line modification information for each line of the document at once by the document formatting operation. Can be set to Further, in this embodiment, 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)行修飾前詰め、後送り 第9図は行修飾前詰め、後送り指定時における操作順序
を示す。また第10図(a)、(b)は行修飾前詰め前
後の行修飾領域22の状態を文書領域21に対応して示
し、第11図は行修飾前詰め処理のフローチャートを示
す。また第12図(a)。
(4) Line modification front-justification, backward-shifting Figure 9 shows the order of operations when specifying line-modification front-justification and rearward-shifting. 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 processing.

この実施例では、前記したように、文書領域21内の文
書の各行の行修飾内容を示す行修飾情報を、文書領域2
1から独立して設けられた行修飾領域22に各文書行に
対応して設定するこにより、行単位での行修飾設定が文
書作成中は勿論、校正中等でも、文書領域21内の文書
に同等影響を及ぼすことなくRつ簡単に行なえるように
している。但し、行修飾設定後において文字または文字
列の挿入(追加)、削除を行なうと、文書行と行修飾(
行修飾指定行)との対応関係がずれることがあり得る。
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. This makes it easier to do this without having the same impact. 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.

オペレータは、行修飾の前詰めまたは後送りを必要とす
る場合、前詰めまたは後送りしたい先頭の行位置をカー
ソルキー操作で指定し、しかる後に[行修飾]キー([
機能1]キー+[−]キー)操作を行なう。これにより
CPUIIは、前記したように表示器34の表示モード
を文書表示モードから行修飾表示モードに切換える。こ
の結果、行修飾設定、行修飾前詰めまたは行修飾後送り
のいずれか1つを選択するための項目選択画面が表示さ
れ、且つ行修飾設定項目にカーソルが表示される。
If the operator needs to move forward or move backward in a row, specify the first line position to be moved forward or backward using the cursor keys, and then press the [Row Modifier] key ([
Function 1] key + [-] key). As a result, the CPU II 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 line decoration setting item.

この状態で横方向カーソルキー操作を行なって「前詰め
」または「後送り」の項目をカーソル指定して[選択/
実行]キーを操作することにより、行修飾前詰めまたは
行修飾後送りを指定することができる。モしてCP U
 11は、「前詰め」がカーソル指定されている状態で
[選択/実行]キーの操作人力を判別すると、第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. CPU
In step 11, if the operator's power to press the [Select/Execute] key is determined with "front-justification" specified with the cursor, the line modification front-justification process shown in the flowchart of FIG. 11 is executed, and "backward feed" is With the cursor specified, click [Select/
When the operator's power of the [Execute] key is determined, the line modification post-feeding 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 onwards. 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としてセットする(ステップS 31)。次にCP
UIIは、前詰めすべき行修飾情報数をn(最大行)−
Lの演算によりゃ出し、前詰め対象残り行修飾情報数C
としてセットする(ステップ532)。次にcptri
tはC=0であるか否かの判定を行なう(ステップ53
3)。
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 (here, L = 5) when specifying front-justification of the row modification. ) start address (here A+ (L-
1) x3) is calculated and set as the starting address a of the row modification information field (step S31). Next, CP
UII sets the number of line modification information to be left-justified as n (maximum line) -
Calculated by the operation of L, the number of remaining row modification information for front-filling is C.
(step 532). Then cptri
It is determined whether t is C=0 (step 53
3).

もし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)を行なう。次にCPUII
はaを3番地進めて次の行の行修飾情報フィールドの先
頭アドレスを求め(ステップ535)、且つCを1つ減
らして(ステップ530)ステップS33に戻る。そし
てステップ533〜836の処理がc−0となるまで、
即ち第(L+1)行〜第n行(最大行)までの行修飾情
報を1行ずつ前にずらす処理が全て終了するまで繰返さ
れる。これにより、L−5のこの例では、第10図(b
)に示すように、第6行の行修飾情報が第5行へ、第7
行の行修飾情報が第6行へ、というように第6行以降の
行修飾情報が順次1行ずつ前へずらされ、最後に第0行
の行修飾情報が第(n−1)行へずらされて文書行と行
修飾のずれが調整される。
If c-=0, CPU II 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 converted to the contents of addresses a+1 to a+3 of the RAM 20 (M (a
+1) to M (a+3)), that is, the process of making the first line row modification information (step 534) is performed. Next, CPUII
advances a by 3 addresses to find the start address of the line modification information field of the next line (step 535), decrements C by 1 (step 530), and returns to step S33. Then, until the processing in steps 533 to 836 reaches c-0,
That is, the process of shifting the line modification information from the (L+1)th line to the nth line (maximum line) forward one line at a time is repeated until all of the processes are completed. As a result, in this example of L-5, FIG.
), the line modification information in the 6th line is transferred to the 5th line, and the 7th line
The row modification information of the row is shifted to the 6th row, and so on, and the row modification information after the 6th row is sequentially shifted forward one row at a time, and finally the row modification information of the 0th row is moved to the (n-1)th row. This adjusts the misalignment between document lines and line decorations.

以上の処理によりc−0となると、CPUIIは、標準
行修飾情報(行修飾情報の初期値)の第1バイトI (
1)〜第3バイトI (3)をRA M 20のa −
a + 2番地の内容とする処理(ステップ537)を
行なう。これにより行修飾領域22内の第0行(最大行
)の行修飾情報フィールドの内容が初期化される。
When c-0 is obtained through the above processing, the CPU II outputs the first byte I (
1) ~ 3rd byte I (3) in RAM 20 a -
Processing to set the contents of address a+2 (step 537) is performed. As a result, the contents of the row modification information field of the 0th row (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としてセットする(ステップ541)。次
にCPUILは、後送りすべき行修飾情報数をn−Lの
演算により算出し、後送り対象残り行修飾情報数Cとし
てセットする(ステップ542)。次にCPUIIはc
−0であるか否かの判定を行なう(ステップ543)。
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 541). Next, the CPUIL calculates the number of row modification information to be postponed by calculating n-L, and sets it as the number C of remaining row modification information to be postponed (step 542). Next, CPU II c
It is determined whether or not it is -0 (step 543).

もしc−Qでなければ、CPUIIはRA M 20(
7)a −a + 2番地の内容即ち第1行(iの初期
値はn−1)の行修飾情報を、RAM20のa+3〜a
+5番地の内容即ち第i+1行の行修飾情報とする処理
(ステップ544)を行なう。次にCPUIIはaを3
番地戻して前の行の行修飾情報フィールドの先頭アドレ
スを求め(ステップ545)、且つCを1つ減らして(
ステップS 4B)ステップS43に戻る。そしてステ
ップS43〜54ftの処理がC−0となるまで、即ち
第(n−1)行〜第り行までの行修飾情報を1行ずつ前
にずらす処理が全て終1′するまで繰返される。これに
より、L−5のこの例では、第12図(b)に示すよう
に、第(n−1)行の行修飾情報が第0行へ、第(n−
2)行の行修飾情報が第(n−1)行へ、というように
行修飾情報が順次1行ずつ後へずらされ、最後に第5行
の行修飾情報が第6行へずらされて文書行と行修飾のず
れが調整される。
If it is not c-Q, CPU II has RAM 20 (
7) The contents of address a - a + 2, that is, the row modification information of the first row (the initial value of i is n-1), are transferred to a + 3 to a of the RAM 20.
A process (step 544) is performed to set the contents of address +5, that is, the row modification information of the i+1st row. Next, CPU II sets a to 3
Go back and find the start address of the line modification information field of the previous line (step 545), and reduce C by one (
Step S4B) Return to step S43. Then, the processing of steps S43 to S54ft is repeated until C-0 is reached, that is, until the processing of shifting the line modification information from the (n-1)th line to the second line forward one line at a time is completed 1'. As a result, in this example of L-5, the row modification information of the (n-1)th row is transferred to the 0th row, as shown in FIG.
2) The line modification information of the row is shifted to the (n-1)th row, and so on, one by one, and finally the row modification information of the 5th row is shifted to the 6th row. The misalignment between document lines and line decorations is adjusted.

しかし、上記の処理では、例えば第12図(b)に示す
ように第5行(第り桁)で用紙交換が指定されていた場
合、この状態を保ったまま第5行の用紙交換指定有りの
行修飾情報が第6行にコピーされてしまう。このため、
本来用紙交換が必要であって、1行追加により第6行と
なった文書行は正しく用紙交換が行なえるようになるも
のの、新たに第5行となった追加行も用紙交換指定され
る不都合が生じる。そこで本実施例では、上記の不都合
を防止するために、c=0となると、以下の処理が行な
われる。
However, in the above process, for example, if paper exchange is specified in the 5th line (th column) as shown in FIG. The 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, when c=0, the following processing is performed.

まずCPUIIはaを3番地進めてaを第り行(L−5
)の行修飾情報フィールドの先頭アドレスに戻す(ステ
ップ547)。そしてCPUIIは、RAM20のa+
2番地の内容のうちの用紙交換指定フラグ、即ち第り行
(L−5)の行修飾情報中の用紙交換指定フラグをリセ
ットする(ステップ548)。これにより、新たに第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 548). 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.

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

(5)行コピー 第14図は行コピー処理のフローチャートを示すもので
あり、同フローチャートを実行することにより、以下に
述べるように、任意の文書行を任意行位置にコピーする
と共に、文書行のコピーに(’Fう文書行と行修飾との
対応関係のずれを自動調終する機能が実現できる。
(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 discrepancies in the correspondence between document lines and line modifications when copying ('F).

オペレータは、行コピーを必要とする場合、コピー元と
なる所望の文書行の行位置りをカーソルキー操作により
指定し、例えば[機能2]キーと[$]キーとの組合わ
せによるキー操作(これを便宜上[行コピーコキー操作
と呼ぶ)により行コピーの指定を行なう。
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 performs a key operation (for example, by a combination of the [Function 2] key and the [$] key). For convenience, this is referred to as a row copy cokey operation to specify the row 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.

(:、 P U Itは、上/下のカーソルキー操作に
伴って画面スクロールを行ない、【選択/実行]キーの
操作人力を判別すると(ステップS53〜555)、現
在カーソル指定されている文書行の行位置を行コピー先
の行位置を示すLDにセットする(ステップ856)。
(:, P U It scrolls the screen in conjunction with the up/down cursor key operations, and when it determines the human effort required to press the [Select/Execute] key (steps S53 to 555), it scrolls the screen to the document line currently designated by the cursor. The line position of is set in LD indicating the line position of the line copy destination (step 856).

次にCPUIIは、文書領域21をサーチして同領域2
【に格納されている入力文書の最終行Lεを求める(ス
テップ557)。このステップS57の詳細は以下の通
りである。
Next, the CPU II searches the document area 21 and
Find the last line Lε of the input document stored in (step 557). 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により、第i行の先
頭桁のRAM20上の格納番地(格納先頭番地)Jを求
め(ステップ572) 、RAM20のJ番地から始ま
る2バイト(文字コード)を読出す(ステップ573)
。CPUIIは、RAM20から読出した2バイト(即
ち第i行の先頭桁の文字コード)がシステムスペース(
システムスペースコード)であるか否かの判定を行なう
(ステップ574)。このシステムスペースコードは、
空白文字を示す通常のスペースコードと異なり、文書を
構成しない。即ち、CPUIIはステップS74におい
て、第i行が文書行を構成していないか否かを判定する
Next, the CPU II determines the storage address on the RAM 20 of the first digit of the i-th 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 i-th line) in the system space (
system space code) (step 574). This system space code is
Unlike regular space codes that indicate white space, they do not constitute a document. That is, in step S74, the CPU II determines whether the i-th line does not constitute a document line.

ステップS74の判定がNoの場合、即ち第i行が文書
行を構成している場合、CPUIIは、1行文字数がm
の場合の文書領域21の最大行nにiが一致しているか
否かの判定を行なう(ステップ575)。iがnに一致
していなければ、CPUIIは行ポインタiを1つ進め
(ステップS7[i)、ステップS72の処理に戻る。
If the determination in step S74 is No, that is, if the i-th 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, the CPU II advances the row pointer i by one (step S7[i), and returns to the process of step S72.

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

一方、ステップS74の判定がYESの場合、即ち第i
行が文書行を構成していない場合、その前の行である第
(i−1)行が文書最終行であることから、CPUII
は、行ポインタiの値から1を減じた値をLEとして設
定する(ステップ878)。
On the other hand, if the determination in step S74 is YES, that is, the i-th
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に従って
文書最終行り、をサーチすると、ステップ358に進み
、LEがnに一致するか否かの判定を行なう(ステップ
858)。
After searching for the last line of the document according to steps S71 to S78, the CPU II proceeds to step 358 and determines whether LE matches n (step 858).

ステップS58の判定がYESの場合、CPUIIは文
書領域21が満杯、即ち行コピーが不可能であるもの判
断し、「行数超過」メツセージ表示(ス9、 ノブ55
9)を行なって行コピー取消し要求を行ない、[取消し
]キー人力待ち状態(ステップ560)となる。
If the determination in step S58 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 (S9, knob 55).
9) to issue a row copy cancellation request, and enter a state waiting for human input from the [cancel] key (step 560).

一方、ステップS58の判定がNoの場合、CPUII
はステップ581に進み、LDがLE以下であるか否か
の判定を行なう。
On the other hand, if the determination in step S58 is No, the CPU II
The process proceeds to step 581, where it is determined whether LD is less than or equal to LE.

ステップS61の判定がNoの場合、即ち行コピー先が
文書最終行より先にある場合、CPUIIは文書領域2
1において第(Ls+1)行より(LD−L4−1)指
骨だけ改行コードを補う(ステップ562)。そしてC
PUIIは、文書領域21において第Ls行の文書行を
第LD行にコピーする(ステップ563)と共に、行修
飾領域22において第LS行の行修飾情報を第り、行に
コピーしくステップ564)、行コピー処理を終了する
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, line feed codes are supplemented by (LD-L4-1) phalanges from the (Ls+1)th line (step 562). and C
The PUII copies the Ls-th document line to the LD-th line in the document area 21 (step 563), and also copies the line-modification information of the LS-th line to the line in the line-modification area 22 (step 564). Ends row copy processing.

一方、ステップSBIの判定がYESの場合、cptr
ttは文書領域21において第LD行から第Lε行まで
の文書行を1行後にずらす(ステップ565)と共に、
行修飾領域22において第LD行から第Lε行までの行
修飾情報中1行後にずらしくステップ38B)、Lかる
後LDがt、s以下であるか否かの判定を行なう(ステ
ップ587)。
On the other hand, if the determination in step SBI is YES, cptr
tt shifts the document lines from the LD line to the Lε line one line backward in the document area 21 (step 565), and
In the row modification area 22, the row modification information from the LD row to the L.epsilon. row is shifted one row later (step 38B), and it is determined whether LD after L is less than or equal to t, s (step 587).

ステップS87の判定がNoの場合、即ち行コピー先が
行コピー元より先にある場合、CPUIIは上記のステ
ップSB3.S64を実行して処理を終了する。
If the determination in step S87 is No, that is, if the line copy destination is before the line copy source, the CPU II executes step SB3. Execute S64 and end the process.

一方、ステップSB7の判定がYESの場合には、ステ
ップS65.S6[1の移動処理で、第Ls行の文書行
および行修飾情報も1行後に(即ち第(Ls+1)行に
)ずれていることから、cptrttは文書領域21に
おいて第(Ls+1)行の文書行を第LD行にコピーす
る(ステップ868)と共に、行修飾領域22において
第(Ls+1)行の行修飾情報を第LD行にコピーしく
ステップ569)、行コピー処理を終了する。
On the other hand, if the determination in step SB7 is YES, step S65. In the movement process of S6[1, the document line and line modification information of the Lsth line are also shifted one line later (that is, to the (Ls+1)th line), so cptrtt moves the document of the (Ls+1)th line in the document area 21. The row is copied to the LD row (step 868), and the row modification information of the (Ls+1)th row is copied to the LD row in the row modification area 22 (step 569), thereby ending the row copy process.

なお、ステップS65,5613の実行に際して、第L
s行(行コピー元)の文書行および行修飾情報をRA 
M 20内の所定領域に一時記憶しておき、この一時記
憶情報を第LD行へのコピ一時にコピー元の情報として
用いることにより、ステップSG7〜5(i9は不要と
なり、t、、、、Lsの大小に無関係に共通のコピー処
理(ステップS fi3.  S 84)が適用できる
Note that when executing step S65, 5613,
RA document line and line modification information of line s (line copy source)
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 SG7 to SG5 (i9 become unnecessary, t, . . . A common copying process (steps S fi3 and S84) can be applied regardless of the size of Ls.

(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]キー
と[)]キーとの組合わ−已によるキー操作(これを便
宜上[右寄せ]キー操作と呼ぶ)を行なう。これにより
CI)ULIは、第16図のフローチャートに従って以
下に述べるセンタリング、右寄j1処理を行なう。
For example, when an operator wants to center or right-justify cde of the character string abcde in the first document line shown in FIG. Combine,
For centering, the key operation is the combination of the [Function 1] key and the [“] key (for convenience, this is called the [Centering] key operation), and for right alignment, the key operation is the combination of the [Function 1] key and the [“] key. A key operation based on the combination of (this will be referred to as a [right alignment] key operation for convenience) is performed.As a result, CI) ULI performs the centering and right alignment j1 processing described below according to the flowchart of FIG.

CPUIIは、まず文書書式領域23に設定゛されてい
る文書書式情報の示す文字サイズ値、文字量間隔値およ
び1行文字数【nにより、書式設定で定められた(印刷
イメージ上の)文書行の長さ、即ち1λ亭行長J!(第
15図(b)参照)を算出する(ステップS 81)。
The CPU II first uses the character size value, character spacing value, and number of characters per line (n) indicated by the document format information set in the document format area 23 to determine the number of document lines (on the print image) defined in the format settings. Length, i.e. 1λtei Yukinaga J! (see FIG. 15(b)) is calculated (step S81).

即ちcptrttは、(1+文書書式情報中の文字量間
隔)X24(ドツト)の示す全角文字(標準文字)の文
字ピッチに文書書式情報中の文字サイズの示す倍率を掛
けることにより、書式設定で定められた倍率の文字の文
字ピッチを求め、同文字ピッチに1行文字数mを七Fけ
ることによりノ(単位;ドラ゛I・)を求める。
In other words, cptrtt is determined in the format settings by multiplying the character pitch of the full-width characters (standard characters) indicated by (1 + character amount interval in the document format information) x 24 (dots) by the magnification indicated by the character size in the document format information. Find the character pitch of the characters with the given magnification, and then multiply the number of characters per line by 7F to the same character pitch to find the value (in units of Dr.I.).

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

次にCPUIIは、ノ、がノ以上であるか否かの判定を
行ない(ステップ583)、YESであればセンタリン
グ、右寄せが不可能であるものとして、そのまま処理を
終了する。一方ステップS83の判定がNoであれば、
CPUIIはlと11との差12を算出しくステップ5
84)、Lかる後文書領域21の第i行の文書行をサー
チしてセンタリング。
Next, the CPU II determines whether or not , is greater than or equal to , (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 l and 11. Step 5
84) Search and center the i-th document line in the L document area 21.

右寄せの対象文字列(カーソルの示す文字桁以降の第1
行文字列)の文字数fを求める(ステップ585)。そ
してCPUIIは、このfを用いてセンタリング、右寄
せ対象文字列(ここではcde)の行修飾を考慮した印
刷イメージ上での長さく対象文字列長)ノP (単位;
ドツト)を算出する(ステップ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 II uses this f to calculate the length of the target character string on the print image, taking into account the line modification of the centering and right-aligned target character string (here, cde).
dot) is calculated (step 886).

次にcptrttは、ノPが12以上であるか否かの判
定を行ない(ステップ587)、YESであればセンタ
リング、右寄せが不可能であるものとして、そのまま処
理を終了する。一方ステップS87の判定がNOであれ
ば、CP U 11は1lI2と、l’pとの差ノF、
(第15図(b)参照)を算出しくステップ38g)、
Lかる後右寄せ指定であるか否かの判定を行なう(ステ
ップ589)。もし右寄せ指定であれば、CPUIIは
ノEの示すドツト数を右寄せにより補うべき空白(スペ
ース)のドツト数としてノsにセットしくステップ59
0)、センタリング指定であれば、1Bの示すドツト数
の1/2をセンタリングにより補うべき空白(スペース
)のドツト数として、17sにセットしくステップ59
1)、いずれもステップS92に進む。
Next, cptrtt determines whether or not P is 12 or more (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 F between 1lI2 and l'p,
(see FIG. 15(b)) is calculated (step 38g),
It is determined whether right alignment is specified after L (step 589). If right alignment is specified, the CPU II sets the number of dots indicated by NoE to Nos as the number of blank dots to be compensated for by right alignment.Step 59
0), if centering is specified, 1/2 of the number of dots indicated by 1B should be set to 17s as the number of blank dots to be compensated for by centering.Step 59
1), both proceed to step S92.

ステップS92では、上記空白のドツト数J!sを、行
修飾を考慮した印刷イメージ上での空白文字数(スペー
ス数)、即ちセンタリング、右寄せ対象文字列の前に挿
入すべき空白文字数(スペース数)Nに変換する処理が
行なわれる。次に、(カーソルの示す文字桁−1)とN
と対象文字数fとの和Rが算出され(ステップ593)
、Rか書式設定で定められた1行文字数mに満たないか
否かの判定が行なわれる(ステップ594)。
In step S92, the number of blank dots J! Processing is performed to convert s into 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 character digit indicated by the cursor - 1) and N
and the number of target characters f is calculated (step 593).
, 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)。これにより文書領域
21における第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 (that is, the beginning of the target character string) (step 595). As a result, the first document line in the document area 21 correctly reflects the centering and right alignment on the print image in consideration of the line decoration.

一方ステップS94の判定がNOの場合には、N個のス
ペース挿入を行なうと第1行の文書行の文字数が1行文
字数m以上となることから、CPU11はN個のスペー
ス挿入に代えて対象文字列の右端への移動処理を行なう
(ステップ59B)。これにより文書領域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 in one line if N spaces are inserted. A process of moving the character string to the right end is performed (step 59B). 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)印刷時の印刷開始位置設定 ’As 17図は行単位並びに文書単位で設定される印
刷開始位置(左余白)を説明する図、第18図は印す1
1イメージ領域24の構成と書込み開始位置との関係を
示す図、第19図は印刷時における主として印刷開始位
置(印刷イメージ領域24への書込み開始位置)決定処
理のフローチャートである。
(7) Print start position setting when printing 'As Figure 17 is a diagram explaining the print start position (left margin) set for each line and document, and Figure 18 is marked 1
FIG. 19, which is a diagram showing the relationship between the configuration of one image area 24 and the writing start position, is a flowchart mainly of the process of determining the print start position (the writing start position in the print image area 24) during printing.

オペレータは、入力文書(または編集文書)を印IJI
I Lだい場合には、キーボード32の[印刷]キー(
実際には[機能1]キー+[≧]キー)を操作する。こ
れにより、CPUIIは印刷メニューを表示する。この
状態では、オペレータは左余白値U、縦/横印刷、和文
/英文印刷等の指定が行なえる。この左余白値Uの指定
にあっては、第17図に示すように、印刷機構の給紙部
(用紙挿入口)に設けられたスケール51に付された目
盛りが目安とされる。ここでは、標準の文字ピッチであ
る27ドツト(全角文字サイズ;24ドツト十文字間間
隔;3ドツト)を単位にθ〜56まで目盛りが付される
。この後[選択/実行]キーが操作されると、指定され
た印刷書式が印刷書式領域25に設定され、しかる後、
この印刷書式に従う印刷動作が行なわれる。この印刷動
作においては、行修飾領域22に設定されている行修飾
情報も参照される。
The operator marks the input document (or edited document) with IJI.
In case of I L, press the [Print] key (
Actually, operate the [Function 1] key + [≧] key). This causes the CPU II to display 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 θ to 56 in units of 27 dots (full-width character size; 24-dot cross-character spacing: 3 dots), which is a standard character pitch. When the [Select/Execute] key is operated after this, the specified print format is set in the print format area 25, and after that,
A printing operation is performed according to this printing 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.

この場合、CPUIIは、印刷イメージ領域24に設定
されている印刷書式情報中の左余白値Uにより、印刷書
式上での左余白(印刷開始位置)に対応する印刷イメー
ジ領域24内書込み開始アドレスP(RAM20上での
アドレス)を算出する(ステップ5LOL)。ここで印
刷イメージ領域24は、印字ヘッドの構成ドツト数であ
る24ドツト(即ち3バイト)×1ライン分の印字ヘッ
ド駆動操作範囲分(単位ドツト)の2次元メモリの如く
用いられる。そこで1ライン分の印字ヘッド駆動操作範
囲(1ゾーン印刷領域)での第j番目のドツト列の24
ドツト(3バイト)には、印刷イメージ領域24の3j
〜3j+2番地(印刷イメージ領域24内相対番地)、
即ちRAM20のT+3j−T+3j+2番地(TはR
A M 20における印刷イメージ領域24の先頭アド
レス)の3バイトが割当てられる・。
In this case, the CPU II 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 5LOL). 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 24th dot of the jth dot row in the print head drive operation range for one line (one zone printing area)
The dot (3 bytes) is 3j in the print image area 24.
~3j+2 address (relative address within print image area 24),
That is, address T+3j-T+3j+2 of RAM20 (T is R
3 bytes of the starting address of the print image area 24 in A M 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はステップS 101を終了すると、印刷対
象行である第i行の行修飾情報を行修飾領域22から読
出す(ステップ5102)。そしてCPUIIは、第i
行の行修飾情報中の左余白値Vの示す桁(文字桁)の占
める横方向のドツト長を、行修飾(文字サイズ、文字間
間阪、)を考慮して前記したセンタリング、右寄せの場
合と同様にして求め、このドツト長に3を掛けて(1ド
ツト列に印刷イメージ領域24内3バイトを要するため
)その結果にPを加えることにより、第i行の文書行の
印刷イメージの書込み開始アドレスSを算出する(ステ
ップ5103)。
After completing step S101, the CPU II reads the line modification information of the i-th line, which is the line to be printed, from the line modification area 22 (step 5102). And CPUII is the i-th
In the case of centering and right alignment as described above, the horizontal dot length occupied by the digit (character digit) indicated by the left margin value V in the line decoration information of the line is determined by taking into account the line decoration (character size, character spacing, etc.) Write the print image of the i-th document line by multiplying this dot length by 3 (because one dot row requires 3 bytes in the print image area 24) and adding P to the result. A start address S 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は、ステップS 104の判定がNoであれ
f:t:(Sの示すアドレスからの印刷イメージ書込み
は不可能なことから)時数えずSとしてTを採用してス
テップ8106に進み、ステップS 104の判定かY
ESであればそのままステップ8106に進む。
Even if the determination in step S104 is No, the CPU II does not count the time (since it is impossible to write a print image from the address indicated by S), proceeds to step S8106, and selects T as S, and proceeds to step S104. Judgment of 104 or Y
If it is ES, the process directly advances to step 8106.

ステップS IOGにおいては、CP U 11は、書
込み開始アドレスSから始まる(RAM20上の)印刷
イメージ領域24の領域に、第i行の文字列の行修飾を
考慮した印刷イメージ(即ち行修飾指定に従って拡大/
縮小、回転/斜体、或は白抜きパターン化された1ゾ一
ン分の行パターン)を展開する。次にCPUIIは、印
刷イメージ領域24に展開された印刷イメージを用いた
1ゾーン(1印字行)分の印刷を実行しくステップ51
07)、Lかる後、it行について必要なゾーン数分の
印刷か終了したか否かの判定を行なう(ステップ510
8)。そして文字サイズ等で決定されるゾーン数分の印
刷が行なわれることで第i行の印刷は終了する。この結
果、第17図に示す用紙52には、第i行の文字列か、
書式設定で定められる印刷左余白(基準となる印刷開始
位置)から、第i行の行修飾で検定されている左余白値
Vの示す桁数(文字桁の数)だけ左または右にずれた位
置から印刷される。なお、」−記の桁のピッチに、第i
行の行修飾で指定されている文字サイズ、文字量間隔が
反映されていることは言うまでもない。
In step S IOG, the CPU 11 writes a print image in consideration of the line decoration of the character string in the i-th line (i.e., according to the line decoration specification) into the area of the print image area 24 (on the RAM 20) starting from the write start address S. expansion/
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 L is completed, it is determined whether or not printing for the required number of zones has been completed for the it line (step 510).
8). Then, the printing of the i-th 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.
Shifted to the left or right by the number of digits (number of character digits) indicated by the left margin value V tested in the line modification of the i-th line from the printing left margin (standard printing start position) determined by the format settings. Printed from position. In addition, the i-th pitch is
It goes without saying that the font size and spacing specified in the line decoration are reflected.

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

[発明の効果] 以上詳述したようにこの発明によれば、文字または文字
列の挿入、削除などにより文書を構成する文書行が増減
した場合に、簡単な操作を行なうだけで文書行と行修飾
との対応のすれが、1!] sてきる。
[Effects of the Invention] As detailed above, according to the present invention, when the number of document lines constituting a document increases or decreases due to the insertion or deletion of characters or character strings, it is possible to change the document lines by performing a simple operation. The correspondence with the modification is 1! ] s comes.

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

第1図はこの発明の一実施例を示すブロックfA成図、
第2図は第1図のRA M 20のメモリマツプ、第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・・・ROM513・・・プロ
グラム領域、20・・・RAM、21・・・文書領域、
22・・・行修飾領域、23・・・文書書式領域、24
・・・印刷イメージ領域、25・・・印刷書式領域、3
2・・・キーボード(KB)、34・・・表示器、37
・・・プリンタ(PRT)。 出願人代理人 弁理士 鈴 江 武 章節1図 第2図 第3図 第7図 (スフ72°514へ) (スフ−,7’SI5へ)第
10図 第11図 (b) 第12図 一一一一一一一一一」 第13図 (a) Nイ囚・スやス  (1) (d) 第15図 第14図(叱り1) 第14図 (1の2) 第16図(里の1) 第17図 第18図
FIG. 1 is a block fA diagram showing an embodiment of the present invention.
Figure 2 is the memory map of RAM 20 in Figure 1,
The figure shows the correspondence between the document line field secured in the document area 21 in Figure 2 and the line modification information field secured in the line modification area 22, and Figure 4 is stored in the line modification area 22 in Figure 2. 5 is a diagram showing the structure of the document format information stored in the document format area 23 of FIG. 2, and FIG. 6 is a diagram showing each selection screen and screen when setting line decorations. Figure 7 is a diagram showing the order of switching operations. Figure 7 is a diagram showing each selection screen and the order of screen switching operations when setting a document format.
The figure is a flowchart of document format information setting processing, Figure 9 is a diagram showing the order of operations when specifying line modification front-justification and rear-feeding, and Figure 10 is a diagram showing an example of the state of the line modification area 22 before and after line modification front-justification. The diagrams shown corresponding to the area 21, FIG. 11 is a flowchart of the line modification front filling process, and FIG. 12 shows an example of the state of the line modification area 22 before and after forwarding after line modification.
Figure 13 is a flowchart of line modification post-feed processing, Figure 14 is a flowchart of line copy processing, Figure 15 is a diagram explaining centering and right alignment considering line modification, and Figure 16 is a flowchart of line modification post-feeding processing. 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. Figure 18 is the configuration of the print image area 24 and the writing start position within the same area 24. FIG. 19 is a flowchart mainly for determining the writing position in the print image area 24 during printing. 11... CPU, 12... ROM513... program area, 20... RAM, 21... document area,
22... Line modification area, 23... Document format area, 24
...Print image area, 25...Print format area, 3
2... Keyboard (KB), 34... Display, 37
...Printer (PRT). Applicant's representative Patent attorney Takeshi Suzue Chapter 1 Figure 2 Figure 3 Figure 7 (Go to Step 72°514) (Go to Step 7' SI5) Figure 10 Figure 11 (b) Figure 12 1 11111111'' Figure 13 (a) N-i prisoner Suyasu (1) (d) Figure 15 Figure 14 (Scolding 1) Figure 14 (1 of 2) Figure 16 ( Village 1) Figure 17 Figure 18

Claims (4)

【特許請求の範囲】[Claims] (1)文書形態を行単位で示す行修飾情報が文書の各行
に対応付けて設定される行修飾情報領域を有する記憶手
段と、任意の文書行に後続する各行に対応する上記行修
飾情報の前詰めを指示する第1指示手段と、この第1指
示手段の指示に応じ同指示手段により指定された文書行
に後続する各行に対応する上記行修飾情報を前から順に
1行分ずつ前詰めする前詰め手段と、任意の文書行以降
の各行に対応する上記行修飾情報の後送りを指示する第
2指示手段と、この第2指示手段の指示に応じ同指示手
段により指定された文書行以降の各行に対応する上記行
修飾情報を、後から順に1行分ずつ後送りする後送り手
段とを具備することを特徴とする行修飾前詰め/後送り
機能付き文書作成装置。
(1) A storage means having a line-modifying information area in which line-modifying information indicating the document format on a line-by-line basis is set in association with each line of the document, and the above-mentioned line-modifying information corresponding to each line following an arbitrary document line. A first instruction means for instructing front-justification, and in response to an instruction from the first instruction means, the above-mentioned line modification information corresponding to each line following the document line specified by the same instruction means is front-justified one line at a time from the front. a second instructing means for instructing to advance the line modification information corresponding to each line after an arbitrary document line, and a document line specified by the instructing means in response to an instruction from the second instructing means A document creation device with a line modification front-shift/backward-feed function, characterized in that it comprises a backward-feeding means for sequentially shifting the line-modification information corresponding to each subsequent line one line at a time.
(2)上記前詰め手段は、上記最終行に対応する上記行
修飾情報を上記前詰め後に初期化することを特徴とする
特許請求の範囲第1項記載の行修飾前詰め/後送り機能
付き文書作成装置。
(2) The line modification front-justification/backward-sending function as set forth in claim 1 is provided, wherein the front-filling means initializes the line modification information corresponding to the last line after the front-filling. Document production device.
(3)上記行修飾情報が頁境界を設定する用紙交換指定
情報を含んでいることを特徴とする特許請求の範囲第1
項記載の行修飾前詰め/後送り機能付き文書作成装置。
(3) Claim 1, wherein the line modification information includes paper exchange designation information for setting page boundaries.
Document creation device with line modification front-justification/backward-feeding function described in Section 1.
(4)上記後送り手段は、上記第2指示手段により指定
された文書行に対応する上記行修飾情報中の上記用紙交
換指定情報を上記後送り後に初期化することを特徴とす
る特許請求の範囲第3項記載の行修飾前詰め/後送り機
能付き文書作成装置。
(4) The post-feeding means initializes the paper exchange designation information in the line modification information corresponding to the document line designated by the second instruction means after the post-feeding. A document creation device with a line modification front-justification/backward-feeding function as described in scope 3.
JP60247540A 1985-11-05 1985-11-05 Document generator with function of cramming forward and shifting backward in line modification Pending JPS62108288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60247540A JPS62108288A (en) 1985-11-05 1985-11-05 Document generator with function of cramming forward and shifting backward in line modification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60247540A JPS62108288A (en) 1985-11-05 1985-11-05 Document generator with function of cramming forward and shifting backward in line modification

Publications (1)

Publication Number Publication Date
JPS62108288A true JPS62108288A (en) 1987-05-19

Family

ID=17165014

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60247540A Pending JPS62108288A (en) 1985-11-05 1985-11-05 Document generator with function of cramming forward and shifting backward in line modification

Country Status (1)

Country Link
JP (1) JPS62108288A (en)

Similar Documents

Publication Publication Date Title
KR100420971B1 (en) Character information processor for printing
JPS5913771B2 (en) Editing display method of display device
US4430725A (en) Method for displaying source and destination file headers for easy comparison of proposed header changes
JPS62108288A (en) Document generator with function of cramming forward and shifting backward in line modification
JPS62107367A (en) Document generating device with line modification setting function
JPS62108289A (en) Document generator with centering/right shifting
JPS62108287A (en) Document generator with line copying function
EP0254480B1 (en) Document processing apparatus
JPH0227150B2 (en)
JPS62105663A (en) Document forming apparatus with print starting position setting function
JPS62108286A (en) Document generator with line modification setting function
EP0292726B1 (en) Correction buffer
JPS61175682A (en) Character processor
JPH0128975B2 (en)
JPS6318780B2 (en)
JPS627593B2 (en)
JPH089245B2 (en) Character processor
JPS61122776A (en) Input/output device
JPS59135582A (en) Idle feed control system of printer for sentence processor
JPS612583A (en) Layout-displaying system for electronic japanese character typewriter
JPS61122778A (en) Input/output device provided with display device
JPH0520787B2 (en)
JPH0661038B2 (en) Character processor
JPH0666066B2 (en) Document processor with furigana addition function
JPS61175683A (en) Character processor