JP3133575B2 - Sentence processing equipment - Google Patents
Sentence processing equipmentInfo
- Publication number
- JP3133575B2 JP3133575B2 JP05258295A JP25829593A JP3133575B2 JP 3133575 B2 JP3133575 B2 JP 3133575B2 JP 05258295 A JP05258295 A JP 05258295A JP 25829593 A JP25829593 A JP 25829593A JP 3133575 B2 JP3133575 B2 JP 3133575B2
- Authority
- JP
- Japan
- Prior art keywords
- line
- indent
- input
- column
- character
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Document Processing Apparatus (AREA)
Description
【0001】[0001]
【産業上の利用分野】この発明は、日本語ワードプロセ
ッサ、パーソナルコンピュータ、電子手帳などの文章処
理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sentence processing apparatus such as a Japanese word processor, a personal computer, and an electronic organizer.
【0002】[0002]
【従来の技術】従来の行頭インデント機能および行末イ
ンデント機能を備えた文章処理装置では、表示文章の左
又は右側に所定サイズの余白を設定するようにしたもの
が知られている(例えば、特開平1−217541号公
報参照)。2. Description of the Related Art A conventional text processing apparatus having a line indenting function and a line ending indenting function is known in which a margin of a predetermined size is set on the left or right side of a displayed text (see, for example, Japanese Patent Laid-Open No. See Japanese Patent Application Laid-Open No. 1-217541).
【0003】[0003]
【発明が解決しようとする課題】しかしながら、このよ
うな従来の文章処理装置では、左又は右側の余白設定機
能を呼び出して、余白のサイズを数値で入力する必要が
あるため、操作に手間を要するという問題点がある。こ
の発明はこのような事情を考慮してなされたもので、文
章の行頭および行末インデントを簡単に設定できるばか
りでなく、段組み編集をも容易に行うことが可能な文章
処理装置を提供するものである。However, in such a conventional sentence processing apparatus, it is necessary to call the left or right margin setting function and input the size of the margin by a numerical value. There is a problem. The present invention has been made in view of such circumstances, and provides a text processing apparatus that can not only easily set the beginning and end indent of a text but also easily perform column editing. It is.
【0004】[0004]
【課題を解決するための手段】この発明は、文字または
制御文字を入力する入力手段と、入力された文字および
制御文字を記憶する記憶手段と、記憶された文字および
制御文字を表示する表示手段と、表示手段上において文
字または制御文字を入力する位置を指示する指示手段
と、前記指示手段によって指示されている位置が入力禁
止領域内である場合、前記入力手段による文字の入力は
禁止し、制御文字の入力は許可する制御手段とを備え、
文字および第1および第2制御文字が入力され、入力禁
止領域内に第1制御文字が入力された場合、入力禁止領
域内で第1制御文字が特定する領域を入力可能領域と
し、表示されている文字の内、第2制御文字が特定する
領域に存在する文字を前記入力可能領域へ再配置するこ
とを特徴とする文章処理装置であって、さらに具体的に
は、図1に示すように、入力手段101と、表示手段1
02と、入力手段101からの出力をうけて表示手段1
02の表示を制御する制御手段を備え、入力手段101
が、文字および記号を入力する文字記号入力部101a
と、カーソル操作部101bを有し、制御手段103
が、入力される文字を1行当りN字数からなる複数の行
に入力順に配列して表示手段に表示させる配列制御部1
03aと、カーソル操作部101bの出力をうけて表示
手段102の任意の位置にカーソルを表示させると共に
入力される記号をカーソル位置に表示させるカーソル制
御部103bと、配列制御部103aによって配列され
た文字について、任意の行の行末からp番目(p<N)
の文字位置に行末インデント記号が表示されたとき、行
末インデント記号を含む行以降の各行の文字を行末から
(p+1)番目の文字位置で改行し、入力順に文字を再
配列する行末インデント制御部103cを有することを
特徴とする文章処理装置を提供するものである。SUMMARY OF THE INVENTION The present invention provides input means for inputting characters or control characters, storage means for storing the input characters and control characters, and display means for displaying the stored characters and control characters. And instruction means for instructing a position on the display means for inputting a character or a control character, and when the position designated by the instruction means is within an input prohibition area, input of the character by the input means is prohibited, Control means for permitting input of control characters,
Characters and the first and second control characters are input and
If the first control character is entered in the stop area,
The area specified by the first control character in the area is defined as an inputtable area.
And the second control character specifies the displayed character.
A sentence processing apparatus for rearranging characters existing in an area into the input enabled area, and more specifically, as shown in FIG.
02 and the display means 1 receiving the output from the input means 101
02, and a control means for controlling the display of the input means 101.
Is a character / symbol input unit 101a for inputting characters and symbols.
Control means 103 having a cursor operation unit 101b
Is an array control unit 1 for arranging input characters on a plurality of lines each consisting of N characters per line in the order of input and displaying them on a display means.
03a, a cursor control unit 103b for displaying a cursor at an arbitrary position of the display means 102 in response to an output from the cursor operation unit 101b and displaying an input symbol at the cursor position, and characters arranged by the arrangement control unit 103a. , P-th (p <N) from the end of any line
When the end-of-line indent symbol is displayed at the character position of, the line of the line after the line including the end-of-line indent symbol is changed to a (p + 1) th character position from the end of the line, and the characters are rearranged in the input order. A sentence processing apparatus characterized by having:
【0005】制御手段103は、カーソルの指示により
任意の行の行頭からq個の空白文字記号が表示され続い
て行頭インデント記号が表示されたとき、行頭インデン
ト記号を含む行以降の各行を行頭から(q+1)文字だ
け引込んで入力された順に文字を再配列する行頭インデ
ント制御部をさらに有することが好ましい。When q blank character symbols are displayed from the beginning of an arbitrary line according to a cursor instruction and the indentation symbol is subsequently displayed, the control means 103 shifts each line after the line including the indentation symbol from the beginning of the line. It is preferable to further include a line head indent control unit that rearranges characters in the order in which only (q + 1) characters are input.
【0006】制御手段103は、カーソルの指示により
インデント解除記号が表示されたときその次の行から行
末インデント制御部の改行機能および/又は行頭インデ
ント制御部の引込み機能を解除する解除制御部をさらに
備えてもよい。The control means 103 further includes a release control unit for releasing the line feed function of the line end indent control unit and / or the pull-in function of the line start indent control unit from the next line when the indent release symbol is displayed by the cursor. May be provided.
【0007】また、この発明は、図2に示すように、入
力手段201と、表示手段202と、入力手段201か
らの出力をうけて表示手段202の表示を制御する制御
手段203を備え、入力手段201が、文字を入力する
文字入力部と、段組領域数入力部201aと、カーソル
操作部201bを有し、制御手段203が、入力される
文字を1行当りN字数からなる複数の行に入力順に配列
して表示手段202に表示させる配列制御部203a
と、カーソル操作部201bの出力をうけて表示手段2
02の任意の位置にカーソルを表示させると共に入力さ
れる記号をカーソル位置に表示させるカーソル制御部2
03bと、配列制御部203aによって配列された文字
について、表示された文字の第s行の行頭から、第m番
目の文字位置に行末インデント記号が、第n番目(n>
m)の文字位置に行頭インデント記号が表示され、か
つ、第t行(t>s)の行頭から第m番目の文字位置に
インデント解除記号が表示された時、第s行〜第t行の
各行について、先ず、行頭から第(m−1)番目の文字
位置までの範囲に入力順に文字を再配列し、次に、第s
行以降の各行について、第(n+1)番目の文字位置を
行頭として残りの文字を入力順に再配列する再配列制御
部203cを備えたことを特徴とする文章処理装置を提
供するものである。Further, as shown in FIG. 2, the present invention includes an input means 201, a display means 202, and a control means 203 for controlling the display of the display means 202 in response to an output from the input means 201. The means 201 has a character input unit for inputting characters, a column area number input unit 201a, and a cursor operation unit 201b, and the control unit 203 converts a character to be input into a plurality of lines consisting of N characters per line. Array control section 203a for arranging in the order of input and displaying on display means 202
Display means 2 receiving the output of the cursor operation unit 201b.
02, a cursor control unit for displaying a cursor at an arbitrary position and displaying an input symbol at the cursor position.
03b and the characters arranged by the arrangement control unit 203a, the end-of-line indent symbol is placed at the m-th character position from the beginning of the s-th line of the displayed character, and the n-th (n>
When an indentation mark at the beginning of the line is displayed at the character position of m) and an indentation mark is displayed at the m-th character position from the beginning of the line at the tth line (t> s), the sth line to the tth line are displayed. For each line, first, characters are rearranged in the input order from the beginning of the line to the (m-1) th character position, and then the s-th
The present invention provides a text processing apparatus including a rearrangement control unit 203c for rearranging the remaining characters in the order of input from the (n + 1) th character position at the beginning of each line.
【0008】さらに、この発明は、図3に示すように、
入力手段301と、表示手段302と、入力手段301
からの出力をうけて表示手段302の表示を制御する制
御手段303を備え、入力手段301が、文字を入力す
る文字入力部301aと、段組領域数入力部301b
と、段組間隔入力部301cと、領域指定部301dを
有し、制御手段303が、入力される文字を1行当りN
字数からなる複数の行に入力順に配列して表示手段に表
示させる配列制御部303aと、配列制御部303aに
よって配列された文字について、文字の配列領域内の任
意の領域が領域指定部301dによって指定され段組領
域数と段組間隔が入力されたとき、1行当りの字数Nと
入力された段組領域数と段組領域間隔から段組領域の一
行あたりの文字数を算出すると共に指定された文字領域
の行数から各段組領域の行数を算出する算出部303b
と、算出結果から設定した段組領域に指定領域内の文字
を再配列する段組制御部303cを備えた文章処理装置
を提供するものである。Further, the present invention, as shown in FIG.
Input means 301, display means 302, input means 301
Control means 303 for controlling the display of the display means 302 in response to the output from the input unit 301. The input means 301 includes a character input unit 301a for inputting characters, and a columnar area number input unit 301b.
And a column spacing input unit 301c and an area designating unit 301d.
An array control unit 303a for arranging the characters on a plurality of lines in the input order and displaying the same on the display unit, and for the characters arranged by the array control unit 303a, an arbitrary region in the character arrangement region is designated by the region designation unit 301d. When the number of column areas and the column spacing are input, the number of characters per line of the column area is calculated and specified from the number of characters N per line, the input number of column areas and the column area spacing. Calculation section 303b for calculating the number of lines in each column area from the number of lines in the character area
And a sentence processing apparatus provided with a column control unit 303c for rearranging characters in a designated area in a column area set based on a calculation result.
【0009】入力手段101,201,301には主に
キーボードやタッチパネルなどを用いることができる。
表示手段102,202,302には、CRTや液晶デ
ィスプレイを使用することが好ましい。制御手段10
3,203,303は主にROM,RAM及びCPUか
ら構成される。As the input means 101, 201, 301, a keyboard, a touch panel or the like can be mainly used.
It is preferable to use a CRT or a liquid crystal display as the display means 102, 202, 302. Control means 10
Reference numerals 3, 203, and 303 mainly include a ROM, a RAM, and a CPU.
【0010】[0010]
【作用】図1において、配列制御部103aは、文字記
号入力部101aから入力される文字を1行当りN字数
からなる複数の行に入力順に配列して表示する。カーソ
ル制御部103bは、入力される記号を表示手段102
のカーソル位置に表示させる。そして、行末インデント
制御部103cは、任意の行の行末からp番目(p<
n)の文字位置に行末インデント記号が表示されたと
き、行末インデント記号を含む行以降の各行の文字を行
末から(p+1)番目の文字位置で改行し、入力順に文
字を再配列する。In FIG. 1, the arrangement control section 103a arranges and displays characters input from the character / symbol input section 101a on a plurality of lines each having N characters per line in the order of input. The cursor control unit 103b displays the input symbol on the display unit 102.
Is displayed at the cursor position. Then, the end-of-line indent control unit 103c sets the p-th (p <
When the end-of-line indent symbol is displayed at the character position n), the characters on each line after the line including the end-of-line indent symbol are line-breaked at the (p + 1) th character position from the end of the line, and the characters are rearranged in the input order.
【0011】図2において、配列制御部203aは文字
記号入力部201aから入力される文字を1行当りN字
数からなる複数の行に入力順に配列して表示する。カー
ソル制御部203bは、入力される記号を表示手段20
2のカーソル位置に表示させる。再配列制御部203c
は、表示された文字の第s行の行頭から第m番目の文字
位置に行末インデント記号が、第n番目(n>m)の文
字位置に行頭インデント記号が表示され、かつ、第t行
(t>s)の行頭から第m番目の文字位置にインデント
解除記号が表示された時、第s行〜第t行の各行につい
て、先ず、行頭から第(m−1)番目の文字位置までの
範囲に入力順に文字を再配列し、次に、第s行以降の各
行について、第(n+1)番目の文字位置を行頭として
残りの文字を入力順に再配列する。In FIG. 2, an arrangement control unit 203a arranges and displays characters input from a character / symbol input unit 201a on a plurality of lines each consisting of N characters per line in the order of input. The cursor control unit 203b displays the input symbol on the display unit 20.
2 is displayed at the cursor position. Rearrangement control unit 203c
Indicates that an end-of-line indent symbol is displayed at the m-th character position from the beginning of the s-th line of the displayed character, a head-of-line indent symbol is displayed at the n-th (n> m) character position, and the t-th line ( When an indent removal symbol is displayed at the m-th character position from the beginning of the line (t> s), for each line from the s-th line to the t-th line, first, from the beginning of the line to the (m-1) -th character position The characters are rearranged in the range in the input order, and then the remaining characters are rearranged in the input order for each line from the s-th line onward, starting from the (n + 1) th character position.
【0012】図3において、表示手段302は、文字入
力部301aから入力される文字を1行当りN字数から
なる複数の行に入力順に配列表示する。算出部303b
は、1行当りの字数Nと入力された段組領域数と段組領
域間隔から段組領域の一行あたりの文字数を算出すると
共に指定された文字領域の行数から各段組領域の行数を
算出する。段組制御部303cは、算出結果から設定し
た段組領域に指定領域内の文字を再配列する。In FIG. 3, a display means 302 arranges and displays characters input from a character input section 301a on a plurality of lines each consisting of N characters per line in the order of input. Calculation unit 303b
Calculates the number of characters per line of the column area from the number N of characters per line, the input number of column areas, and the column area interval, and calculates the number of lines of each column area from the number of lines of the specified character area. Is calculated. The column control unit 303c rearranges the characters in the designated area into the column area set from the calculation result.
【0013】[0013]
【実施例】以下、図面に示す実施例に基づいてこの発明
を詳述する。これによってこの発明が限定されるもので
はない。図4は本発明の一実施例としての日本語ワード
プロセッサの構成を示すブロック図である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the embodiments shown in the drawings. This does not limit the present invention. FIG. 4 is a block diagram showing a configuration of a Japanese word processor as one embodiment of the present invention.
【0014】図4において、1は装置を構成する各要素
の作動を制御してプログラムの実行を行うCPU(Cent
ral Processing Unit)、2は文章データ(文字コード、
各種制御コード)や各変数の値を格納するRAM(Rand
om Access Memory)、3は制御プログラムを格納するR
OM(Read Only Memory)、4はプリンタコントロー
ラ、5はプリンタ、6はICカード、7はICカードイ
ンターフェース、8はフロッピーディスク(FD)、9
はFDコントローラ、10はキーボード、11はキーイ
ンターフェース、12は表示装置、13は表示コントロ
ーラである。ICカード6及びFD8は、それぞれIC
カードインターフェース7及びFDコントローラ9によ
り制御され、データのロード・セーブが可能である。キ
ーインターフェース11は、キーボード10で押された
キーを判別し、それに対応するデータに変換する。キー
ボード10は、各種文字キー、各種ファンクションキー
で構成されているが、特に本実施例では、「行頭インデ
ント設定キー」「行末インデント設定キー」「インデン
ト解除キー」「段組キー」「段組自動作成キー」「段組
自動解除キー」などを備える。なお、Bはアドレスバス
およびデータバスである。In FIG. 4, reference numeral 1 denotes a CPU (Cent) for controlling the operation of each element constituting the apparatus and executing a program.
ral Processing Unit), 2 is sentence data (character code,
RAM (Rand) for storing various control codes) and values of each variable
om Access Memory), 3 is an R for storing a control program
OM (Read Only Memory), 4 is a printer controller, 5 is a printer, 6 is an IC card, 7 is an IC card interface, 8 is a floppy disk (FD), 9
Denotes an FD controller, 10 denotes a keyboard, 11 denotes a key interface, 12 denotes a display device, and 13 denotes a display controller. IC card 6 and FD8 are IC
Controlled by the card interface 7 and the FD controller 9, data can be loaded and saved. The key interface 11 determines a key pressed on the keyboard 10 and converts the key into data corresponding to the key. The keyboard 10 is composed of various character keys and various function keys. In the present embodiment, in particular, in the present embodiment, a “start of line indent setting key”, a “end of line indent setting key”, an “indent release key”, a “column set key”, a “column set automatic”. It has a creation key, a column automatic release key, and the like. B is an address bus and a data bus.
【0015】以下の説明において各種表示例を図示する
が、それらの表示例においては、例えば、図5に示すよ
うに「A,B,C……Z」は表示された文字を表し、M
1で参照されるマークはカーソルを、M2で参照される
マークはスペース(空白文字)を、M3で参照されるマ
ークは入力禁止領域を、M4で参照されるマークは改行
マークを、M5で参照されるマークは行頭インデントマ
ークを、M6で参照されるマークは行頭インデントマー
クを、M7で参照されるマークはインデント解除マーク
をそれぞれ表わす。In the following description, various display examples are shown. In these display examples, for example, as shown in FIG. 5, “A, B, C...
The mark referenced by 1 refers to the cursor, the mark referenced by M2 refers to a space (blank character), the mark referenced to M3 refers to an input prohibited area, the mark referenced to M4 refers to a line feed mark, and the mark referenced to M5. The mark referred to indicates a head-of-line indent mark, the mark referred to by M6 indicates a head-of-line indent mark, and the mark referred to by M7 indicates a de-indent mark.
【0016】また、図6の〜に見られるような破線
は書式の異なる領域の境界を表わし、図9のに見られ
るようにM8で参照されるマークは段組マークを表わ
す。さらに、図11のに見られるように、2つのカー
ソルで挟まれた領域は、領域指定された領域を表わし、
図12に見られるような一点鎖線は、ページの境界を表
わす。Also, the broken lines as shown in FIG. 6 to indicate the boundaries of areas having different formats, and the mark referred to by M8 as shown in FIG. 9 represents a column mark. Further, as shown in FIG. 11, the area sandwiched between the two cursors represents the area designated as the area,
The dashed line as seen in FIG. 12 represents a page boundary.
【0017】図5と図6は本実施例により、行頭インデ
ントおよび行末インデントを実現する表示例を図示した
ものである(1行字数は10文字に設定されているもの
とする)。ただし、以下の説明で1字抹消キーとはカー
ソルのある位置の文字を1文字削除し、以降の文を前方
に詰めるもので、後退キーとはカーソルのある位置の1
つ前方の文字を1文字削除し、以降の文を前方に詰める
ものである。FIGS. 5 and 6 show examples of display for realizing indentation at the beginning of a line and indentation at the end of a line according to the present embodiment (the number of characters per line is set to 10 characters). However, in the following description, the one-character erase key deletes one character at the position of the cursor and fills the subsequent sentences forward, and the backward key is one at the position of the cursor.
The next character is deleted by one character, and the following sentence is shifted forward.
【0018】また、文字の入力モードは挿入モードとな
っており、キーを入力するとカーソル位置にそのキーに
対応する文字または制御マークが表示され、その位置以
降の文字および制御マークは後方に移動されるものとす
る。The character input mode is an insert mode. When a key is input, a character or control mark corresponding to the key is displayed at the cursor position, and characters and control marks after that position are moved backward. Shall be.
【0019】図5のは元の文章である。この状態で、
カーソルを3行1桁目に移動し、スペースキーを1回と
行頭インデントキーを入力すると、図5のの状態のよ
うに2桁目に行頭インデントが設定され、4行目以降は
行頭から1桁目と2桁目は行頭入力禁止領域となる。FIG. 5 shows the original sentence. In this state,
When the cursor is moved to the first column of the third line and the space key is input once and the indent key of the line is input, the first line indent is set at the second column as shown in FIG. The second digit and the second digit are input-forbidden areas.
【0020】ここで例えば、図5のの状態で3行1桁
目でスペースキーを1回入力すると、空白文字が1文字
挿入され、以降の文字および行頭インデントマークは1
文字分右へ移動する。そのため、行頭インデント桁位置
は3桁目に変更される。Here, for example, when the space key is input once at the first digit of the third line in the state of FIG. 5, one blank character is inserted, and the subsequent characters and the indent mark at the beginning of the line are set to 1
Move right by characters. Therefore, the position of the indent column at the beginning of the line is changed to the third digit.
【0021】また、あるいは、図5のの状態で3行1
桁目で1字抹消キーを1回入力すると、その位置の空白
文字は削除され、以降の文字および行頭インデントマー
クは1文字分左へ移動する。そのため、行頭インデント
位置は1桁目に変更される。以上のように、本実施例で
は行頭インデント桁位置を容易に変更することができ
る。Alternatively, in the state of FIG.
When the one-letter erase key is input once at the digit, the blank character at that position is deleted, and the subsequent characters and the indent mark at the beginning of the line move one character to the left. Therefore, the indent position at the beginning of the line is changed to the first digit. As described above, in this embodiment, the position of the indent column at the beginning of the line can be easily changed.
【0022】次に図5のの状態で、カーソルを3行9
桁目に移動して、行末インデントキーを入力すると、図
5のの状態のように9桁目に行末インデントが設定さ
れ、4行目以降は9桁目と10桁目は行末入力禁止領域
となる。Next, in the state of FIG.
If you move to the column and enter the end-of-line indent key, the end-of-line indent is set to the ninth digit as shown in FIG. Become.
【0023】次に図5のの状態で6行目9桁目にカー
ソルを移動して、インデント解除キーを入力すると、図
5のの状態となり、7行目以降は行頭インデントおよ
び行末インデントは解除され、すべての行が入力入力可
能領域となる(本実施例では、インデント解除キーによ
り、その位置以前に設定されたすべての行頭インデント
および行頭インデントが解除されるものとする)。Next, when the cursor is moved to the ninth digit on the sixth line in the state shown in FIG. 5 and the indent release key is pressed, the state shown in FIG. 5 is obtained. Then, all the lines become an input-inputtable area (in the present embodiment, all the head indents and the head indents set before that position are released by the indent release key).
【0024】なお、図5のの状態で3行目以降の9桁
目は入力禁止領域であるが、禁則処理などのため句読点
や改行マーク、またインデント解除マークなどの特殊な
文字・記号は入力可能とする。また、図6のは5行目
で文章書式(1行字数や文字の大きさなど)が変更され
ている場合の例である。In the state shown in FIG. 5, the ninth digit after the third line is an input prohibited area. However, special characters and symbols such as punctuation marks, line feed marks, and indent release marks are input due to prohibition processing. Make it possible. FIG. 6 shows an example in which the sentence format (number of characters per line, character size, etc.) is changed on the fifth line.
【0025】図6のでカーソルを3行1桁目に移動
し、スペースキーを1回と行頭インデントキーを入力す
ると図6のの状態になり、図6のの状態でカーソル
を3行9桁目に移動して行末インデントキーを入力する
と図6のの状態となる。以上のように、行頭インデン
トおよび行末インデントは書式が変更されている行以降
は無効となる。In FIG. 6, when the cursor is moved to the third column and the first column, and the space key is input once and the indent key at the beginning of the line is input, the state shown in FIG. 6 is obtained. In the state of FIG. To enter the end-of-line indent key, the state shown in FIG. 6 is obtained. As described above, the line indent and the line indent become invalid after the line whose format is changed.
【0026】また、本実施例では行末インデントマーク
の挿入されている行での編集作業により安易に行末イン
デント桁位置が変化しないように、また、オペレータが
必要と思うときには容易に行末インデント桁位置が変更
できるように、以下のとおり動作するものとする。Further, in this embodiment, the indentation column position at the end of the line is not easily changed by editing work on the line where the indentation mark at the end of the line is inserted, and the indentation column position at the end of the line is easily changed when the operator thinks it is necessary. It shall operate as follows so that it can be changed.
【0027】また、図5のの状態で、カーソルを3行
3桁目〜3行8桁目に移動して1字抹消キーを入力、ま
たは3行4桁目〜3行8桁目にて後退キーを入力する
と、文字が1文字削除され、以降の文章は前方に詰めら
れるが、行末インデントマークはその位置を動かない。In the state shown in FIG. 5, the cursor is moved to the 3rd line, 3rd column to 3rd line, 8th column, and a one-character delete key is input. When the back key is pressed, one character is deleted and the following text is moved forward, but the end-of-line indent mark does not move its position.
【0028】図5のの状態で、カーソルを3行9桁目
(行末インデントマーク位置)に移動して後退キーを入
力すると、行末インデントマークは前方へ1文字分移動
し、そこにあった(3行8桁目)文字は次の行(4行3
桁目)へ移り、また4行目以降は8桁目〜行末が入力禁
止領域となる。In the state of FIG. 5, when the cursor is moved to the third line and the ninth column (the position of the indent mark at the end of the line) and the backward key is pressed, the indent mark at the end of the line moves forward by one character and is there ( The third line, 8th column) character is the next line (4 lines 3
Digit), and from the fourth line onward, the 8th digit to the end of the line are input prohibited areas.
【0029】図5のの状態で、カーソルを3行9桁目
(行末インデントマーク位置)に移動して1字抹消キー
を入力、または3行10桁目に移動して後退キーを入力
すると、行末インデントマークは消去され、3行目以降
の行末入力禁止領域は無くなる(図5のの状態に戻
る)。In the state shown in FIG. 5, when the cursor is moved to the third line and the ninth column (the position of the indent mark at the end of the line) and the one-character erase key is inputted, or the cursor is moved to the third line and the tenth column and the backward key is inputted. The end-of-line indent mark is erased, and the end-of-line input prohibition area for the third and subsequent lines disappears (return to the state of FIG. 5).
【0030】図5のの状態で、カーソルを3行3桁目
〜3行8桁目に移動して文字を入力するとカーソル位置
に文字が挿入され、以降の文章は後方に移動するが、行
末インデントマークはその位置を動かない。In the state of FIG. 5, when the cursor is moved to the third line and the third column to the third line and the eighth column and a character is input, the character is inserted at the cursor position, and the subsequent text is moved backward, but the end of the line is displayed. The indent mark does not move its position.
【0031】図5のの状態で、カーソルを3行9桁目
(行末インデントマーク位置)に移動して文字を入力す
るとカーソル位置に文字が挿入され、行末インデントマ
ークは後方に移動して、4行目以降は10行目だけが行
末入力禁止領域となる。図15は上記の動作を実現する
ものとして、1字抹消キーを入力した際の動作を示すフ
ローチャートである(後退キーの入力の場合は、消去対
象位置が1文字違うだけであり、また、文字入力の場合
は、削除と挿入の違いだけであるのでフローチャートは
省略する)。In the state of FIG. 5, when the cursor is moved to the third line and the ninth column (the position of the indent mark at the end of the line) and a character is input, the character is inserted at the cursor position, and the indent mark at the end of the line is moved backward. After the line, only the tenth line is a line end input prohibition area. FIG. 15 is a flowchart showing an operation when a one-character erase key is input to realize the above-described operation (in the case of a backward key input, the position to be erased is different by only one character. In the case of input, only the difference between deletion and insertion is omitted, so the flowchart is omitted).
【0032】まず、1字抹消キーが入力されると、ステ
ップS1でカーソル位置に行末インデントコードがある
かどうかを判断し、あればステップS2へ、なければス
テップS4へ進む。ステップS2では、文章データ内か
ら行末インデントコードを削除し、行末インデントの設
定を解除する。ステップS3では、行末インデントが解
除されたため、従来の方法によってカーソル位置以降の
表示画面の書き換えを行い、1字抹消の処理を終了す
る。一方、ステップS4では、文章データ内からカーソ
ル位置の文字や制御マークを削除する。First, when the one-character delete key is input, it is determined in step S1 whether or not there is an end-of-line indent code at the cursor position. If there is, the process proceeds to step S2, and if not, the process proceeds to step S4. In step S2, the line end indent code is deleted from the text data, and the setting of the line end indent is released. In step S3, since the end of line indent has been canceled, the display screen after the cursor position is rewritten by the conventional method, and the process of deleting one character ends. On the other hand, in step S4, the character or control mark at the cursor position is deleted from the text data.
【0033】ステップS5では、カーソルを次の文字へ
と移動させる。ステップS6では、カーソル位置に行末
インデントコードがあるかどうかを判断して、あればス
テップS7へ、なければそのままステップS8へ進む。
ステップS7では、文章データ内の行末インデントコー
ドと、そのコードの次の文字とを入れ替え、ステップS
8へ進む。In step S5, the cursor is moved to the next character. In step S6, it is determined whether or not there is an end-of-line indent code at the cursor position. If there is, the process proceeds to step S7; otherwise, the process proceeds to step S8.
In step S7, the end-of-line indent code in the sentence data is replaced with the next character of the code.
Proceed to 8.
【0034】ステップS8では、カーソル位置に改行コ
ードがあるかどうかを判断して、あればステップS9へ
進み、なければステップS5へ戻る。ステップS9で
は、処理を行って変更された文章データに即して、表示
画面上の表示を書き換え、1字抹消の処理を終了する。
以上のように、行頭インデントおよび行末インデント処
理を容易に実現することができる。In step S8, it is determined whether or not there is a line feed code at the cursor position. If there is a line feed code, the process proceeds to step S9; otherwise, the process returns to step S5. In step S9, the display on the display screen is rewritten according to the sentence data changed by the processing, and the processing of deleting one character is completed.
As described above, the indentation at the beginning of a line and the indentation at the end of a line can be easily realized.
【0035】次に、この発明によって、2段組の文章を
作成する方法を説明する。図7〜図9は、2段組の文章
作成の表示例を図示したものである(1行字数は10文
字に設定されているものとする)。なお、この例では2
段組としているが、同様の手順を繰り返すことによって
3段組・4段組などの多段組も可能である。Next, a method of creating a two-column sentence according to the present invention will be described. 7 to 9 show display examples of creating a two-column sentence (the number of characters per line is set to 10 characters). In this example, 2
Although a column system is used, a multi-stage system such as a three-stage system or a four-stage system can be realized by repeating the same procedure.
【0036】図7のは元の文章である。この状態で、
カーソルを3行5桁目に移動し、行末インデントキーを
入力すると図7のの状態となり、3行目以降は5桁目
から行末までが行末入力禁止領域となる。次に、図7の
の状態でカーソルを3行6桁目に移動し、行頭インデ
ントキーを入力すると、図7のの状態になり、3行目
以降は5桁目と6桁目は行中入力禁止領域となる。な
お、図7のの状態では3行6桁目は入力禁止領域であ
るが、行頭インデントは入力可能とする。FIG. 7 shows the original sentence. In this state,
When the cursor is moved to the third line and the fifth column and the end-of-line indent key is input, the state shown in FIG. 7 is obtained, and from the third line onward, the region from the fifth column to the end of the line is a line end input prohibited area. Next, when the cursor is moved to the third line and the sixth column in the state of FIG. 7 and the indent key at the beginning of the line is input, the state of FIG. 7 is obtained, and the third and subsequent lines are in the fifth and sixth columns. It becomes an input prohibition area. In the state of FIG. 7, the third line and the sixth column are the input prohibition area, but the indent of the line can be input.
【0037】次に図7のの状態で、3行7桁目以降の
入力可能領域に何らかの文字や記号などを入力すると、
10行3桁目の改行マークがインデント解除マークへ変
更される。また、図7のの状態で、カーソルを5行5
桁目に移動して、インデント解除キーまたは段組キーを
入力すると、図7のの6行1桁目以降の文章が3行7
桁目以降に移動し、図8のの状態になり、6行目以降
は行頭から6桁目までが行頭入力禁止領域となる。Next, in the state of FIG. 7, when any character or symbol is input in the input enabled area on the third row and the seventh digit,
The 10th line, 3rd column newline mark is changed to an indent release mark. Also, in the state of FIG.
After moving to the column and inputting the indent release key or the multi-column key, the text after the first digit on the sixth line in FIG.
After moving to the first digit, the state shown in FIG. 8 is obtained. From the sixth line onward, the area from the beginning of the line to the sixth digit is a line entry prohibited area.
【0038】なお、図8のはインデント解除キーを入
力した場合であるが、段組キーを入力した場合も以降の
動作は同じである。また、図7のの状態でカーソルを
5行5桁目に移動してインデント解除キーを入力すると
図7のの状態となり、図7のの状態でカーソルを3
行6桁目に移動して行頭インデントキーを入力すると、
図8ののようにインデント解除マーク以降の文章が行
頭インデントマーク以降に流し込まれる。FIG. 8 shows the case where the indent release key is input, but the subsequent operation is the same when the column key is input. When the cursor is moved to the fifth row and the fifth column in the state shown in FIG. 7 and the indent release key is input, the state shown in FIG. 7 is obtained.
When you enter the beginning of a line indent key to move to the line 6 digit,
As shown in FIG. 8, the text after the indentation mark is poured after the indentation mark at the beginning of the line.
【0039】次に、図8のの状態で、カーソルを4行
11桁目に移動してインデント解除キーを入力すると、
図9のの状態となり6行目以降は行頭インデントは解
除され、すべての桁が入力可能領域となる(行末インデ
ントは、先のインデント解除で既に解除されている)。
なお、図7のの状態でカーソルを5行5桁目に移動し
て、インデント解除キーを入力する代わりに、段組キー
を入力した場合も図9ののように同じ結果が得られ
る。Next, in the state of FIG. 8, when the cursor is moved to the fourth row and the eleventh column and the indent release key is input,
In the state shown in FIG. 9, the indentation at the beginning of the line is released from the sixth line onward, and all digits become an inputtable area (the indentation at the end of the line has already been released by the previous indentation release).
The same result can be obtained as shown in FIG. 9 by moving the cursor to the fifth row and the fifth column in the state of FIG. 7 and inputting a column key instead of inputting the indent release key.
【0040】インデント解除キーを入力した場合と、段
組キーを入力した場合の違いを以下に説明する。インデ
ント解除キーの場合、従来の行頭インデントのインデン
ト解除と同様に、改行の機能も含まれているが、段組キ
ーの場合は改行の機能は含まれていない。また、インデ
ント解除マークはそのマークの前部で文字の挿入・削除
などの編集を行うとそれに伴い前後へ移動するが、段組
マークは通常は移動しない。なお、行末インデントマー
クの場合同様に、そのマークの位置で後退キーを押した
場合のみ左へ移動し、またそのマークの位置で文字を入
力した場合のみ右へ移動する。The difference between the case where the indent release key is input and the case where the column key is input will be described below. In the case of the indent release key, a line feed function is included as in the conventional indentation of the line indent, but in the case of the column key, the line feed function is not included. Also, when editing such as insertion / deletion of a character at the front of the mark, the indent release mark moves forward and backward, but the column mark does not normally move. In the same way as in the case of the end-of-line indent mark, it moves to the left only when the backward key is pressed at the position of the mark, and moves to the right only when a character is input at the position of the mark.
【0041】図9のはインデント解除マークの場合の
動作を表しており、図9のの状態でカーソルを5行4
桁目へ移動して1字抹消キーを入力すると、図9のの
ように5行4桁目の文字が消去され、インデント解除マ
ークが左へ1文字分移動する。また、それ以降の文章
(3行7桁目以降及び6行1桁目以降)には影響を与え
ない。FIG. 9 shows the operation in the case of the indent release mark. In the state shown in FIG.
When the character is moved to the digit and the one-character erase key is input, the character at the fourth digit in the fifth row is erased as shown in FIG. 9, and the indent release mark moves one character to the left. In addition, it does not affect the text after that (the third column and the seventh column and the sixth line and the first column and the subsequent columns).
【0042】図9のは段組マークの場合の動作を表し
ており、図9のの状態でカーソルを5行4桁目へ移動
して1字抹消キーを入力すると、図9ののように5行
4桁目へ文字が消去されるが段組マークは移動せず、そ
の位置には3行7桁目の文字が移動して来ている。以上
のように動作するため、1つの文が終了した所で段を変
える場合にはインデント解除キーを使用し、文の途中で
段を変える場合には段組マークを使用するというように
使い分けると良い。FIG. 9 shows the operation in the case of a column mark. When the cursor is moved to the fifth row and the fourth column in the state of FIG. 9 and the one-character erase key is input, as shown in FIG. The character is erased to the fourth column and the fifth column, but the column mark does not move, and the character at the third column and the seventh column has moved to that position. To operate as described above, use the indent release key when changing columns at the end of one sentence, and use the column mark when changing columns in the middle of a sentence. good.
【0043】以上の動作について、図16〜図18のフ
ローチャートを用いて説明を行う。図16と図17は行
頭インデントキーを入力した際の動作のフローチャート
である。行頭インデントキーが入力されると、まずステ
ップS1で、キーが入力された場所が入力禁止領域内か
どうかを判断し、領域内でない場合はステップS2へ進
み、領域内である場合は(ステップS15)へ進む。The above operation will be described with reference to the flowcharts of FIGS. FIG. 16 and FIG. 17 are flowcharts of the operation when the line indent key is input. When the indent key at the beginning of the line is input, it is first determined in step S1 whether or not the place where the key is input is within the input prohibition area. If it is not within the area, the process proceeds to step S2. If it is within the area, (step S15) Proceed to).
【0044】ステップS2では、RAM内に格納されて
いる文章データ中の、現在のカーソルが指示している位
置に行頭インデントコードを挿入する。行頭インデン
トコードとは従来の行頭インデントと同じものであ
り、段組文章作成のための行頭インデントコードとは
区別される。In step S2, a line head indent code is inserted into the text data stored in the RAM at the position indicated by the current cursor. The line head indent code is the same as the conventional line head indent, and is distinguished from the line head indent code for creating a multi-column sentence.
【0045】ステップS3では、表示画面上のカーソル
位置に行頭インデントマークを表示する(図5のの
例の場合、3行2桁目)。なお、図5〜図9の表示例で
の行頭インデントマークのとは同じマークを使用し
ている。ステップS4では、行頭インデントの設定桁位
置をRAM2に記憶する。ステップS5では、行頭イン
デントの桁位置から行末まで文章データを表示画面上に
表示する。In step S3, an indent mark at the beginning of the line is displayed at the cursor position on the display screen (in the example of FIG. 5, the second digit of the third line). Note that the same mark as the head indent mark in the display examples of FIGS. 5 to 9 is used. In step S4, the set digit position of the line indent is stored in the RAM2. In step S5, the sentence data is displayed on the display screen from the column position of the line indent to the line end.
【0046】ただし、その途中でインデント解除コード
が現れたり、文章データが終了した場合は、ステップS
6・ステップS7へ進んで処理を行う。また、行末イン
デントコードが現れた場合は、図19〜図22に示す表
示フローチャートにしたがって表示処理を行う。However, if an indent release code appears on the way or the sentence data ends, step S
6. The process proceeds to step S7 to perform processing. If an end-of-line indent code appears, display processing is performed according to the display flowcharts shown in FIGS.
【0047】ステップS6では、インデント解除コード
が現れた場合ステップS12へ進む。ステップS7で
は、文章データが終了したかどうかを判断し、終了した
ならば行頭インデントキー入力の処理を終了する。ステ
ップS8では、現在の表示対象行が表示画面の最下行で
あるかどうかを判断し、そうであれば行頭インデントキ
ー入力の処理を終了する。In step S6, if an indent release code appears, the process proceeds to step S12. In step S7, it is determined whether or not the sentence data has been completed, and if so, the process of inputting the indent key at the beginning of the line ends. In step S8, it is determined whether or not the current display target line is the bottom line of the display screen, and if so, the process of inputting the indent key at the beginning of the line ends.
【0048】ステップS9では、表示対象行を次の行へ
と移動する。ステップS10では、現在の表示対象行で
文章書式が変更されているかどうかを判断し、変更され
ていればステップS13へ進み、変更されていなければ
ステップS11へ進む。In step S9, the line to be displayed is moved to the next line. In step S10, it is determined whether or not the sentence format has been changed in the current display target line. If the sentence format has been changed, the process proceeds to step S13, and if not, the process proceeds to step S11.
【0049】本実施例では、書式が変更されている場
合、文章データ中の書式変更行の行頭に書式情報が挿入
されているものとする。ステップS11では、行頭入力
禁止マークを、行頭から行頭インデント設定桁まで表示
し、ステップS5へ戻る。In this embodiment, when the format is changed, it is assumed that format information is inserted at the beginning of the format change line in the text data. In step S11, a line head input prohibition mark is displayed from the line head to the line head indent setting digit, and the process returns to step S5.
【0050】一方、ステップS6でインデント解除コー
ドがあった場合はステップS12へ進むが、ステップS
12では、表示画面上にインデント解除マークを表示
し、ステップS13へ進む。ステップS13では、行頭
インデント桁位置の設定を消去するなどのインデント解
除処理を行う。On the other hand, if there is an indent release code in step S6, the process proceeds to step S12, but the process proceeds to step S12.
In step 12, an indent release mark is displayed on the display screen, and the process proceeds to step S13. In step S13, indent cancellation processing such as erasing the setting of the line indent digit position is performed.
【0051】ステップS14では、残りの文章はインデ
ントは解除されているため、従来の方法に従って表示処
理を行い、行頭インデントキー入力時の処理を終了す
る。一方、ステップS1で、行末入力禁止領域内である
と判断された(図7のの3行6桁目などの)場合はス
テップS15へ進む。In step S14, since the remaining text has been deindented, display processing is performed according to the conventional method, and the processing at the time of inputting the indent key at the beginning of the line ends. On the other hand, if it is determined in step S1 that the position is within the line end input prohibition region (such as the third row and sixth digit in FIG. 7), the process proceeds to step S15.
【0052】ステップS15では、行末インデントコー
ド以降にインデント解除コードまたは段組コードがある
かどうかを判断し、あれば(図7ののような場合)ス
テップS17へ進み、なければ(図7ののような場
合)ステップS16へ進む。In step S15, it is determined whether there is an indent release code or a column code after the end-of-line indent code. If there is (in the case of FIG. 7), the process proceeds to step S17. If not, the process proceeds to step S17. In such a case, the process proceeds to step S16.
【0053】ステップS16では、文章データの最後に
行頭インデントコードおよび行頭インデント設定桁数
を挿入しステップステップS18へ進む(図7のの文
章データの内容は、図10のようになる)。ステップ
S17では、インデント解除コードまたは段組コードの
次に行頭インデントコードをおよび行頭インデント設
定桁数を挿入する(図7のの文章データは、行頭イン
デントキーを入力した時点で図10ののようにな
る)。In step S16, the line indent code and the number of digits set at the beginning of the line are inserted at the end of the sentence data, and the flow advances to step S18 (the contents of the sentence data in FIG. 7 are as shown in FIG. 10). In step S17, a line head indent code and a line head indent set number of digits are inserted after the indent release code or the column code (the sentence data in FIG. 7 is input at the time when the line head indent key is input, as shown in FIG. 10). Become).
【0054】行頭インデントコードとは段組文章作成
のための行頭インデントのコードであり、従来の方法に
よるの行頭インデントコードとは区別される。また、
行頭インデントコードの次の位置に行頭インデント設
定桁位置を表す数が同時に挿入されるものとする。The line head indent code is a line head indent code for creating a multi-column text, and is distinguished from the line head indent code according to the conventional method. Also,
It is assumed that a number indicating the digit position at which the line indent is set is inserted at the same time as the position following the line indent code.
【0055】ステップS18では、行末インデントマー
ク以降の文章を、図19〜図22に示す表示フローチャ
ートにしたがって表示処理を行い、行頭インデントキー
入力時の処理を終了する。図18はインデント解除キー
を入力した際の動作のフローチャートである。インデン
ト解除キーが入力されると、まずステップS1で、RA
M2内の文章データ中のカーソルが指示している場所に
インデント解除コードを挿入する。ステップS2では、
表示画面上のカーソル位置にインデント解除マークを表
示する。In step S18, the text after the end-of-line indent mark is displayed in accordance with the display flowcharts shown in FIGS. 19 to 22, and the process at the time of inputting the head-of-line indent key ends. FIG. 18 is a flowchart of the operation when the indent release key is input. When the indent release key is input, first, in step S1, RA
The indent release code is inserted at the position indicated by the cursor in the text data in M2. In step S2,
Displays an indentation mark at the cursor position on the display screen.
【0056】ステップS3では、文章データの最後が行
頭インデントコード(および行頭インデント桁数)で
あるかどうかを判断し、そうであれば(図7ののよう
な場合であれば)ステップS4へ、違うならばステップ
S5へ進む。ステップS4では、文章データの最後にあ
る行頭インデントコードおよび行頭インデント桁数
を、インデント解除コードの次の位置に移動する(図7
ので5行5桁目でインデント解除キーを入力した場
合、文章データは図10ののようになる)。In step S3, it is determined whether or not the end of the sentence data is the line indent code (and the number of indent digits at the line beginning). If so, the process proceeds to step S4 (in the case of FIG. 7). If not, the process proceeds to step S5. In step S4, the line indent code and the line indent number at the end of the sentence data are moved to the position next to the indent release code (FIG. 7).
Therefore, when the indent release key is input at the fifth row and the fifth column, the sentence data is as shown in FIG. 10).
【0057】ステップS5では行末インデントマーク以
降を図19〜図22に示すフローチャートにしたがって
表示処理を行う(図8の)。図19〜図22は行末イ
ンデントの設定されている文章を表示画面上に表示する
際のフローチャートを示したものである。In step S5, display processing is performed after the end-of-line indent mark in accordance with the flowcharts shown in FIGS. 19 to 22 (FIG. 8). FIGS. 19 to 22 show flowcharts for displaying a sentence in which the line indent is set on the display screen.
【0058】以下に図9のの表示例を参考にこれらの
フローチャートの説明をする。なお、以下の説明で2段
組文章の1段目(図9ので3行目の「U」〜5行目の
「F」)を文章、2段目(図9で3行目の「G」〜
4行目の「N」)を文章と呼ぶ。図9のの1〜2行
目は段組文章ではないので従来の方法によって表示を行
う。Hereinafter, these flowcharts will be described with reference to the display example of FIG. In the following description, the first column of the two-column sentence (“U” on the third line in FIG. 9 to “F” on the fifth line) is the second column of the sentence (“G” on the third line in FIG. 9). "~
“N” in the fourth line) is called a sentence. Since the first and second lines in FIG. 9 are not columnar sentences, they are displayed by a conventional method.
【0059】次に、3行目の1〜4桁目まで表示した後
に、行末インデントコードがあるので、ステップS1で
行末インデントマークを表示する。ステップS2では、
行末インデントの桁位置をRAM2に記憶する。ステッ
プS3では、行末インデントコード以降の文章データに
ついて、インデント解除コードまたは段組コードを検索
する。Next, after displaying the first to fourth digits on the third line, there is a line end indent code, so a line end indent mark is displayed in step S1. In step S2,
The column position of the line end indent is stored in the RAM 2. In step S3, an indent release code or a column code is searched for the text data after the line end indent code.
【0060】ステップS4では、インデント解除コード
または段組コードが見つかったかどうかを判断し、見つ
かったならばステップS5へ、見つからなかったならば
ステップS9へ進む。ステップS5では、ステップS3
で見つけたインデント解除コードまたは段組コードの次
のデータが行頭インデントコードであるかどうかを判
断して、そうであればステップS6へ、違うならばステ
ップS9へ進む(ステップS6以降は多段組になってい
る場合で、ステップS9以降は図7ののように行末イ
ンデントは設定されているが2段組にはなっていない場
合の表示の処理である)。In step S4, it is determined whether an indent release code or a column code is found, and if found, the process proceeds to step S5, and if not found, the process proceeds to step S9. In step S5, step S3
It is determined whether the data next to the indent release code or the column code found in the above is the line indent code, and if so, the process proceeds to step S6, and if not, the process proceeds to step S9. In this case, the display processing is performed when the line indent is set as shown in FIG. 7 but not in a two-column system as shown in FIG. 7).
【0061】ステップS9では、行末まで入力禁止マー
クを表示し、ステップS10で表示対象行を次の行へと
移動する。ステップS11では、そこで文章書式が変更
されているかどうかを判断し、変更されていればステッ
プS20へ、変更されていなければステップS12へ進
む。In step S9, an input prohibition mark is displayed until the end of the line, and in step S10, the display target line is moved to the next line. In step S11, it is determined whether or not the sentence format has been changed. If so, the process proceeds to step S20, and if not, the process proceeds to step S12.
【0062】ステップS12では、行頭インデントが設
定されているかどうかを判断し、設定されていればステ
ップS13では、入力禁止マークを設定桁まで表示して
からステップS14へ進み、設定されていなければその
ままステップS14へ進む。ステップS14では、次の
文章データを行末インデント設定桁まで表示する。ステ
ップS15では、次の文章データがインデント解除コー
ドであるかどうかを判断し、そうであればステップS1
8へ進み、そうでなければステップS9へ戻る。In step S12, it is determined whether or not the line indent is set. If it is set, in step S13, the input prohibition mark is displayed up to the set digit, and the process proceeds to step S14. Proceed to step S14. In step S14, the next sentence data is displayed up to the indent set digit at the end of the line. In step S15, it is determined whether or not the next sentence data is an indent release code.
Go to step S8, otherwise return to step S9.
【0063】なお、ステップS14で文章を1行分表示
する途中でインデント解除コードがあれば、その時点で
ステップS17・ステップS18へと進んで処理をす
る。ステップS18では、インデント解除マークを表示
し、ステップS19で入力禁止マークを行末まで表示
し、ステップS20でインデント解除処理を行い、ステ
ップS21で残りの文章を従来の方法によって表示し処
理を終了する。If there is an indent release code in the process of displaying one sentence of a sentence in step S14, the process proceeds to steps S17 and S18 at that time to perform processing. In step S18, an indentation cancellation mark is displayed, in step S19, an input prohibition mark is displayed up to the end of the line, in step S20, indentation cancellation processing is performed, and in step S21, the remaining text is displayed by a conventional method, and the processing ends.
【0064】一方、ステップS6では、行末インデント
マークの右側に、入力禁止マークを行頭インデントマー
ク表示桁まで必要個数表示する(図9のの場合、行末
インデントのすぐ隣が行頭インデント設定桁であるた
め、入力禁止マークは表示しない)。ステップS7で
は、行頭インデントマークを表示し、(ステップS2
2)へ進む。表示する行は行末インデント設定行、表示
桁は行頭インデントコードの次のデータに格納されてい
る桁とする。On the other hand, in step S6, the required number of input prohibition marks is displayed to the right of the end-of-line indent mark up to the line-indent mark display digit (in the case of FIG. 9, the line-end indent set digit is immediately adjacent to the line-end indent). , No entry prohibition mark). In step S7, an indent mark at the beginning of the line is displayed, and (step S2
Proceed to 2). The line to be displayed is the line at the end of line indent setting, and the display digit is the digit stored in the data following the line indent code.
【0065】ステップS22では、まだ表示されていな
い文章があるかどうかを判断し、あるならばステップ
S23へ進んで文章2を行末まで表示し、なければステ
ップS24へ進む。ステップS24では、行頭インデン
トが解除されたかどうかを判断し、解除されていなけ
ればステップS25へ進み、解除されていればステップ
S26へ進む。In step S22, it is determined whether there is a sentence that has not been displayed. If so, the flow advances to step S23 to display sentence 2 until the end of the line. If not, the flow advances to step S24. In step S24, it is determined whether or not the indentation at the beginning of the line has been canceled. If the indent has not been canceled, the process proceeds to step S25, and if it has been canceled, the process proceeds to step S26.
【0066】ステップS25では、行末まで空白文字
(あるいは何らかの制御マーク)を表示し、ステップS
29へ進む(これは図7ののように、行頭インデント
は解除されていないが、文章に文字が入力されていな
い場合のためである)。ステップS26では、入力禁止
マークを行末まで表示し、ステップS30へ進む(これ
は図9のの5行目のように、行頭インデントが解除さ
れているため文章は無いが、文章はあるという場合
のためである)。In step S25, a blank character (or some control mark) is displayed until the end of the line.
The process proceeds to step 29 (this is for the case where the indentation at the beginning of the line has not been canceled as shown in FIG. 7 but no character has been input to the text). In step S26, the input prohibition mark is displayed until the end of the line, and the process proceeds to step S30. (This is a case where there is no sentence because the indentation at the beginning of the line has been canceled as in the fifth line in FIG. 9, but there is a sentence. Because of that).
【0067】ステップS30では、行末インデントが解
除されているかどうかを判断し、解除されていなければ
へ進み、解除されていれば処理を終了する。In step S30, it is determined whether or not the end of line indent has been released. If it has not been released, the process proceeds to step S30. If it has been released, the process ends.
【0068】一方、ステップS22からステップS23
へ進んで文章2の表示を行った場合、ステップS27へ
進んで次のデータがインデント解除コードかどうかを判
断する。ステップS27でインデント解除コードである
と判断された場合、ステップS28へ進んで行頭インデ
ントの解除処理およびインデント解除マークの表示を行
い、ステップS29へ進む。On the other hand, from step S22 to step S23
If the process proceeds to step S27 to display the sentence 2, the process proceeds to step S27 to determine whether the next data is an indent release code. If it is determined in step S27 that the code is an indent release code, the flow advances to step S28 to perform processing for releasing the indentation at the beginning of the line and display an indent release mark, and then the flow advances to step S29.
【0069】なお、ステップS23で表示を行末まで行
う途中でインデント解除コードが現れた場合は、その時
点でステップS27・ステップS28へ進んで、行頭イ
ンデント解除処理を行う。ステップS29では、次のデ
ータが行末インデントコードであるかどうかを判断し
て、違うならば(ステップS31)へ進み次の行以降
の処理を行うが、そうであるならば(ステップS1)
へ戻る(行末インデントコードがあった場合は、3段組
の文章である可能性があるため、ステップS1へ戻って
再帰的に処理を繰り返す)。If an indent release code appears during the display up to the end of the line in step S23, the process proceeds to steps S27 and S28 at that point to perform a line indent release process. In step S29, it is determined whether or not the next data is an end-of-line indent code. If the next data is different (step S31), the process proceeds to the next line, and if so, the process is performed (step S1).
(If there is an end-of-line indent code, there is a possibility that the sentence is a three-column sentence, so the process returns to step S1 and repeats the process recursively.)
【0070】ステップS31では、現在の表示対象行が
表示画面の最下行であるかどうかを判断して、そうであ
れば表示の処理を終了し、そうでなければステップS3
2へ進み、表示対象行を次の行へと移動する。ステップ
S33では、文章のデータがあるかどうかを判断し、
あればステップS34へ、なければステップS37へ進
む。ステップS37では、文章のデータがあるかどう
かを判断し、あればステップS38へ、なければ表示の
処理を終了する。In step S31, it is determined whether or not the current line to be displayed is the bottom line of the display screen. If so, the display process is terminated.
Proceed to 2 to move the display target line to the next line. In step S33, it is determined whether there is text data,
If there is, go to step S34; otherwise, go to step S37. In step S37, it is determined whether or not there is text data. If there is, the process proceeds to step S38, and if not, the display process ends.
【0071】ステップS38では、入力禁止マークを行
頭から行頭インデント設定桁まで(図8のの6行1桁
目〜6桁目まで)表示し、(ステップS22)へ戻
る。一方、ステップS34では、文章を行末インデン
ト設定桁まで表示する。ステップS35では、次のデー
タがインデント解除コードであるかどうかを判断し、そ
うであればステップS23へ進み、そうでなければステ
ップS39へ進む。In step S38, the input prohibition mark is displayed from the beginning of the line to the indent setting digit at the beginning of the line (from the first digit to the sixth digit in the sixth line in FIG. 8), and the process returns to (step S22). On the other hand, in step S34, the sentence is displayed up to the indent set digit at the end of the line. In step S35, it is determined whether or not the next data is an indent release code. If so, the process proceeds to step S23; otherwise, the process proceeds to step S39.
【0072】ステップS36では、行末インデント解除
処理を行い、ステップS39へ進む(以降は文章は無
いものと処理される)。なお、ステップS34で表示を
行っている途中でインデント解除コードが現れた場合
は、その時点でステップS35・ステップS36へ進ん
で、行末インデント解除処理を行う。In step S36, a line end indent release processing is performed, and the flow advances to step S39 (hereinafter, it is assumed that there is no sentence). If an indent release code appears during the display in step S34, the process proceeds to step S35 / step S36 at that point to perform line end indent release processing.
【0073】ステップS39では、入力禁止マークを行
頭インデント設定桁まで表示し、(ステップS22)
へ戻る。以上のフローにしたがって処理を行う事によっ
て、行末インデントおよび行頭インデントの混在した文
章を表示画面上に表示することができる。つまり、段組
文章の作成を容易に実現することができる。In step S39, an input prohibition mark is displayed up to the indent setting digit at the beginning of the line (step S22).
Return to By performing the processing according to the above-described flow, a sentence in which both the indent at the end of the line and the indent at the beginning of the line are mixed can be displayed on the display screen. In other words, it is possible to easily create a multi-column sentence.
【0074】次に、この発明の段組自動作成について説
明する。なお、以下の説明において領域指定とは、文章
中のある一定範囲を指定することであるが、これは、公
知の技術であるため詳しい説明を省略する。図11と図
12は本機能の説明を行うための表示例である。図11
のの状態で、3行1桁目から5行11桁目まで領域指
定を行い、段組自動作成ファンクションキーを入力する
と、段組数および行中入力禁止領域の文字数を訪ねてく
るので、それに答えることによって、自動的に図11の
のような結果が得られるというものである。本表示例
では、段組数を2、行中入力禁止領域の文字数(段組間
隔)を2とした。Next, automatic column creation according to the present invention will be described. In the following description, the area designation means to designate a certain range in a sentence. However, since this is a known technique, a detailed description is omitted. FIG. 11 and FIG. 12 are display examples for explaining this function. FIG.
When the area is specified from the 3rd line, 1st digit to the 5th line, 11th column and the column setting automatic creation function key is entered, the number of columns and the number of characters in the inline input prohibited area are called. By answering, the result as shown in FIG. 11 is automatically obtained. In this display example, the number of columns is 2, and the number of characters (column spacing) in the in-line input prohibition area is 2.
【0075】また、途中で頁が変わるような場合、例え
ば図11ので4行目と5行目で頁が変わっているとす
ると、図12ののように違った結果が得られる。図2
3は段組自動作成のフローチャートである。ステップS
1では、領域指定がされているかどうかを判断し、され
ていればステップS3へ進み、されていなければステッ
プS2へ進み領域指定を行ってからステップS3へ進
む。If the page changes halfway, for example, if the page changes between the fourth and fifth lines in FIG. 11, a different result as shown in FIG. 12 is obtained. FIG.
3 is a flowchart for automatically creating a column. Step S
In step 1, it is determined whether or not an area has been designated. If so, the procedure proceeds to step S3. If not, the procedure proceeds to step S2, where the area is designated, and then the procedure proceeds to step S3.
【0076】ステップS3では、指定領域内で書式が変
更されていないかどうかを判断し、されていればステッ
プS4のエラー処理へと進み、されていなければステッ
プS5へ進む。ステップS4では、エラーメッセージを
表示するなどのエラー処理を行い終了する。書式が途中
で変更されている場合、特別な処理を行わなければ正し
い結果が得られないため、本実施例ではエラーとした。In step S3, it is determined whether or not the format has been changed in the designated area. If so, the flow proceeds to error processing in step S4, and if not, the flow proceeds to step S5. In step S4, error processing such as displaying an error message is performed, and the process ends. If the format is changed in the middle, a correct result cannot be obtained unless special processing is performed.
【0077】ステップS5では、段組数をオペレータが
キーボード10から入力する。ステップS6では、行中
入力禁止領域を何文字分にするかをキーボード10から
入力する。ただし、最低でもインデントマーク2個の表
示分を空けなければならないので、全角1文字以上とす
る(インデントマークを半角とした場合)。ステップS
7では、1つの段組の桁数を以下の計算式より計算する
(割り切れない場合は余りをRAM2内に記憶してお
き、小数点以下を切り捨てる)。 (1行字数−行中入力禁止領域文字数×(段組数−1)
÷段組数 図5の例では、(10−2(2−1))÷2より、4桁
となる。In step S 5, the operator inputs the number of columns from the keyboard 10. In step S6, the number of characters in the in-line input prohibited area is input from the keyboard 10. However, since at least two indentation marks must be displayed, at least one full-width character is used (when the indentation mark is half-width). Step S
In step 7, the number of digits in one column is calculated by the following formula (if not divisible, the remainder is stored in the RAM 2 and the decimal part is rounded down). (Number of characters in one line-Number of characters in input prohibited area in line x (Number of columns)-1)
{Number of Column Sets} In the example of FIG. 5, four digits are obtained from (10-2 (2-1)) ÷ 2.
【0078】ステップS8では、ステップS7で計算し
た桁数となるような場所(図11のの例の場合、3行
5桁目)に、行末インデント挿入の処理を行う(図11
のの状態となる)。ステップS9では、行中入力禁止
領域文字数を満足するような場所(図11のの例の場
合、3行6桁目)に、図16と図17のフローチャート
の通り、行頭インデント挿入の処理を行う。In step S8, a line end indent is inserted into a place where the number of digits calculated in step S7 is obtained (in the example of FIG. 11, the third row and the fifth digit) (FIG. 11).
State). In step S9, the process of inserting a line head indent is performed as shown in the flowcharts of FIGS. 16 and 17 in a place where the number of characters in the in-line input prohibition area is satisfied (in the example of FIG. 11, the third column, the sixth digit). .
【0079】ステップS10では、インデント解除コー
ドを何行目に入れるかを以下の計算式により計算する
(割り切れない場合は、小数点以下を切り上げる)。 領域内の全行数÷段組数 図11の例では、領域内の全行数は図11ののよう
に、3行目から10行目までであるから8行となり、8
÷2により4行となる。In step S10, the number of the line where the indent release code is to be inserted is calculated by the following formula (if it cannot be divided, the decimal part is rounded up). In the example of FIG. 11, the total number of rows in the area is from the third row to the tenth row, as shown in FIG.
$ 2 results in four rows.
【0080】ステップS11では、ステップS10で求
めた行数の場合、途中でページをはみ出さないかどうか
を判断し、はみ出さない場合はステップS13へ進み、
はみ出す場合はステップS12へ進む(図11ので、
4行目と5行目の間でページが変わる場合は、図11の
ではなくて、図12のの結果が得られるようにする
ため)。In step S11, in the case of the number of lines obtained in step S10, it is determined whether or not a page does not protrude in the middle, and if not, the process proceeds to step S13.
If it does, the process proceeds to step S12 (in FIG. 11,
If the page changes between the fourth and fifth lines, the result of FIG. 12 is obtained instead of FIG. 11).
【0081】ステップS12では、ページをはみ出さな
いように行数を減らし、また減らした分の行数はRAM
2に記憶しておき、ステップS13へ進む(図11の
で、4行目と5行目の間でページが変わる場合、行数は
2となる)。ステップS13では、求めた行数となるよ
うな場所(図11のの場合、6行5桁目)に、図18
のフローチャートの通り、インデント解除マークを挿入
する。In step S12, the number of lines is reduced so as not to protrude from the page.
2 and the process proceeds to step S13 (in FIG. 11, when the page changes between the fourth and fifth rows, the number of rows is two). In step S13, the location of FIG.
As shown in the flow chart of FIG.
【0082】ステップS14では、段組数分の処理が終
了したかどうかを判断して、終了であればステップS1
5へ進み、まだであればステップS8へ戻る。ステップ
S15では、ステップS7で余りが出た場合、その余り
の文字数分、行末に入力禁止領域ができるように、行末
インデントを挿入する。ステップS16では、領域の最
後にインデント解除コードを挿入する。ステップS17
では、ステップS11でページをはみ出すと判断された
場合はステップS18へ進み、そうでない場合は終了す
る。In step S14, it is determined whether or not the processing for the number of columns has been completed.
The process proceeds to step S5, and if not, returns to step S8. In step S15, if there is a remainder in step S7, a line end indent is inserted so that an input prohibition region is formed at the end of the line by the number of remaining characters. In step S16, an indent release code is inserted at the end of the area. Step S17
Then, if it is determined in step S11 that the page runs off, the process proceeds to step S18, and if not, the process ends.
【0083】ステップS18では、ステップS12でペ
ージをはみ出すため減らした分の行数を新しく設定し、
ステップS7へ戻る。以上のように、領域を指定し、段
組数と行中入力禁止領域文字数を入力するだけで、自動
的に図11のまたは図12ののような文章を自動的
に作成することができる。In step S18, the number of lines that have been reduced in order to protrude the page in step S12 is newly set,
It returns to step S7. As described above, a sentence as shown in FIG. 11 or FIG. 12 can be automatically created simply by designating the area and inputting the number of columns and the number of characters in the in-line prohibited area.
【0084】次に、段組自動解除について説明する。段
組自動解除とは、図13ののような段組文章があった
場合、範囲を指定して実行すると、範囲内の段組が解除
されて図13の〜図14ののような結果を得ること
ができるものである。図13のは図13ので1行目
から10行目まですべての範囲を指定した場合の結果で
ある。同様に図13のは1行目から5行目まで、図1
3のは6行目から10行目まで、図14のは4行目
から7行目までを指定した場合の結果である。Next, automatic column release will be described. Automatic column clearing means that if there is a columnar text as shown in FIG. 13, if a range is specified and executed, the columns within the range are released and the results shown in FIGS. What you can get. FIG. 13 shows the result when the entire range from the first line to the tenth line in FIG. 13 is designated. Similarly, FIG. 13 shows the first to fifth lines in FIG.
3 shows the result when the sixth to tenth lines are designated, and FIG. 14 shows the result when the fourth to seventh lines are designated.
【0085】なお、図13のおよび図13のの4行
目の行末に改行マークが付いているのは、図13のの
10行5桁目のインデント解除マークが改行マークに変
わったためである。もし、このインデント解除マークの
代わりに段組マークが使われていた場合は、改行マーク
は付かない。図24と図25は、段組自動解除を実現す
るフローチャートである。本実施例では、キーボード1
0上に設置した段組自動解除ファンクションキーを入力
すると段組自動解除の処理が開始されるものとする。The reason why the line feed mark is attached to the end of the fourth line in FIG. 13 and FIG. 13 is that the indent release mark on the tenth line and the fifth column in FIG. 13 has been changed to a line feed mark. If a column mark is used instead of the indentation mark, a line feed mark is not added. FIG. 24 and FIG. 25 are flowcharts for realizing automatic column release. In this embodiment, the keyboard 1
It is assumed that when a column automatic release function key set on the input unit 0 is input, the automatic column release processing is started.
【0086】ステップS1では、領域指定がなされてい
るかどうかを判断して、されていなければステップS2
へ、されていればステップS3へ進む。ステップS2で
は、領域指定が段組文章の全範囲(図13のの例で、
1行目から10行目)が領域指定されているものと設定
し、ステップS4へ進む。ステップS3では領域指定が
段組文章の全範囲にされているかどうかを判断し、そう
であればステップS4へ、そうでなければへ進む。In step S1, it is determined whether or not an area has been designated.
If yes, go to step S3. In step S2, the area specification is the entire range of the columnar text (in the example of FIG. 13,
The first line to the tenth line) are set to be designated as an area, and the process proceeds to step S4. In step S3, it is determined whether or not the area is specified in the entire range of the columnar text. If so, the process proceeds to step S4, and if not, the process proceeds to step S4.
【0087】ステップS4以降は全範囲段組自動解除の
フローである。ステップS4では、領域内の文章データ
から行末インデントコード(図13のの例では、1行
5桁目)を削除する。ステップS5では、領域内の文章
データから行頭インデントコード(図13ので1行
6桁目)を削除する。The flow from step S4 is a flow for automatically canceling the entire range of columns. In step S4, the end-of-line indent code (the fifth digit in the first line in the example of FIG. 13) is deleted from the text data in the area. In step S5, the indent code at the beginning of the line (the sixth digit in the first line in FIG. 13) is deleted from the text data in the area.
【0088】ステップS6では、領域内の1段目の最後
(図13ので10行5桁目)が段組コードであるの
か、インデント解除コードであるのかを判断し、段組コ
ードであればステップS8へ、インデント解除コードで
あればステップS7へ進む。ステップS7では、インデ
ント解除コードを改行コードに変更し、ステップS9へ
進む。In step S6, it is determined whether the last (first row, fifth column in FIG. 13) of the first column in the area is a column code or an indent release code. If it is an indent release code, the process proceeds to step S7. In step S7, the indent release code is changed to a line feed code, and the process proceeds to step S9.
【0089】ステップS8では、段組コードを削除し
て、ステップS9へ進む。ステップS9では、領域内の
2段目の文章の最後にある、インデント解除コード(図
13ので10行9桁目)を改行コードに変更する。ス
テップS10では、表示画面を最終的な結果の画面に書
き換え、処理を終了する。In step S8, the column code is deleted, and the flow advances to step S9. In step S9, the indent release code (10th line, 9th digit in FIG. 13) at the end of the second sentence in the area is changed to a line feed code. In step S10, the display screen is rewritten to the screen of the final result, and the process ends.
【0090】以上のようにステップS4〜ステップS1
0の処理によって、例えば図13ので1行目から10
行目まで領域指定を行い段組自動解除を実行すると、図
13ののような結果を得ることができる。一方、ステ
ップS3でに進んだ後、ステップS11では、段組文
章の上部(行末インデントマーク・行頭インデントマー
クを含むが、段組マーク・インデント解除マークを含
まない)に領域指定が行われたのか、下部(段組マーク
・インデント解除マークを含むが、行末インデントマー
ク・行頭インデントマークを含まない)に領域指定が
行われたのか、それとも中間(行末インデントマーク・
行頭インデントマークと段組マーク・インデント解除
マークの中間)に領域指定が行われたのかを判断し、そ
れぞれステップS12、ステップS16、ステップS2
2へ進む。As described above, steps S4 to S1
By the processing of 0, for example, from the first row in FIG.
When the area is specified up to the line and the column automatic release is executed, a result as shown in FIG. 13 can be obtained. On the other hand, after proceeding to step S3, in step S11, is an area specified in the upper part of the column text (including the indent mark at the end of the line and the indent mark at the beginning of the line, but not including the column mark and the indent release mark)? , Whether the area was specified at the bottom (including the column mark / indent mark, but not the end-of-line indent mark / head-of-line indent mark) or in the middle (line-end indent mark /
It is determined whether an area has been designated at the line indent mark (between the column indent mark and the column mark / indent release mark), and step S12, step S16, and step S2 are performed, respectively.
Proceed to 2.
【0091】ステップS12では、行末インデントの桁
位置および、行頭インデントの桁位置をRAM2内に
記憶する。ステップS13では、ステップS4〜ステッ
プS8と同様の処理を行い、段組文章全体の解除を行
う。ステップS14では、ステップS12で記憶した行
末インデント・行頭インデントの桁位置を使用して、
図11で示すフローチャートと同様な段組自動作成処理
を、指定領域の次の行(図13ので6行目)以降で行
う。ステップS15では、表示画面を最終的な結果の画
面に書き換え、処理を終える。以上のように、ステップ
S12〜ステップS15の処理によって、例えば図13
ので1行目から5行目まで領域指定を行い段組自動解
除を実行すると、図13ののような結果を得ることが
できる。In step S12, the digit position of the line end indent and the digit position of the line indent are stored in the RAM 2. In step S13, the same processing as in steps S4 to S8 is performed, and the entire column text is released. In step S14, using the column positions of the line end indent and the line indent stored in step S12,
The column automatic creation process similar to the flowchart shown in FIG. 11 is performed on the line following the designated area (the sixth line in FIG. 13) and thereafter. In step S15, the display screen is rewritten to the screen of the final result, and the process ends. As described above, by the processing of steps S12 to S15, for example, FIG.
Therefore, when the area is specified from the first line to the fifth line and the column automatic release is executed, the result as shown in FIG. 13 can be obtained.
【0092】一方、ステップS11で、段組文章の下部
で領域指定がされたと判断された場合には、ステップS
16で、文章データ内の、指定領域の1行上の1段目の
文章の最後(図13ので5行5桁目)に段組コードを
挿入する(ただし、最後のデータが改行コードであれ
ば、段組コードは挿入せず、改行コードをインデント解
除コードに変更する)。On the other hand, if it is determined in step S11 that an area has been designated at the bottom of the columnar text, the process proceeds to step S11.
In step 16, a column code is inserted at the end of the first sentence on the first line of the designated area in the sentence data (fifth row, fifth column in FIG. 13) (provided that the last data is a line feed code). In this case, the line feed code is changed to the indent release code without inserting the column code.)
【0093】ステップS17では、文章データ中の行頭
インデントコード(図13ので1行6桁目)を段組
コードの次の位置に移動する。ステップS18では、段
組コード(図13のでは10行5桁目)を削除する
(ただし、段組コードではなくインデント解除コードが
使用されている場合は、インデント解除コードを改行コ
ードに変更する)。In step S17, the indent code at the beginning of the line (the sixth digit in the first line in FIG. 13) in the text data is moved to the position next to the column code. In step S18, the column code (10th line, 5th column in FIG. 13) is deleted (however, if not the column code but the indent release code is used, the indent release code is changed to a line feed code). .
【0094】ステップS19では、文章データ内の、指
定領域の1行上の2段目の文章の最後(図13ので5
行11桁目)にインデント解除コードを挿入する。ステ
ップS20では、文章データの最後のインデント解除コ
ード(図13ので9行9桁目)を改行コードに変更す
る。ステップS21では、表示画面を最終的な結果の画
面に書き換え、処理を終える。以上のように、ステップ
S16〜ステップS21の処理によって、例えば図13
ので6行目から10行目まで領域指定を行い段組自動
解除を実行すると、図13ののような結果を得ること
ができる。In the step S19, the end of the second row of the text on the specified line in the text data (5 in FIG. 13).
Insert the indent release code at line 11 (column 11). In step S20, the last indentation code of the text data (9th line, 9th digit in FIG. 13) is changed to a line feed code. In step S21, the display screen is rewritten to the screen of the final result, and the process ends. As described above, by the processing of steps S16 to S21, for example, FIG.
Therefore, if the area is specified from the sixth line to the tenth line and the column automatic release is executed, a result as shown in FIG. 13 can be obtained.
【0095】一方、ステップS11では、段組文章の中
間で領域指定がされたと判断された場合には、ステップ
S22で、行頭インデントの桁位置および、行頭インデ
ントの桁位置をRAM2内に記憶する。ステップS2
3では、文章データ内の、指定領域の1行上の1段目の
文章の最後(図14ので3行5桁目)に段組コードを
挿入する(ただし、最後のデータが改行コードであれ
ば、段組コードは挿入せず、改行コードをインデント解
除コードに変更する)。On the other hand, if it is determined in step S11 that an area has been designated in the middle of a multi-column sentence, the column position of the line indent and the column position of the line indent are stored in the RAM 2 in step S22. Step S2
In step 3, a column code is inserted at the end of the first sentence on line 1 of the designated area in the sentence data (3rd line, 5th digit in FIG. 14) (however, if the last data is a line feed code). In this case, the line feed code is changed to the indent release code without inserting the column code.)
【0096】ステップS24では、文章データ中の行頭
インデントコード(図14の1行6桁目)を段組コ
ードの次の位置に移動する。ステップS25では、文章
データ内の、指定領域の1行上の2段目の文章の最後
(図14の3行11桁目)にインデント解除コードを
挿入する。ステップS26では、段組コード(図13の
で10行5桁目)を削除する(ただし、段組コードで
はなくインデント解除コードが使用されている場合は、
インデント解除コードを改行コードに変更する)。In step S24, the indent code at the beginning of the line (the sixth digit in the first line in FIG. 14) in the text data is moved to the position next to the column code. In step S25, an indent release code is inserted at the end of the second row of text on the specified line in the text data (3rd line, 11th column in FIG. 14). In step S26, the column code (10th row, 5th column in FIG. 13) is deleted (however, if the indent release code is used instead of the column code,
Change the indentation code to a line feed code).
【0097】ステップS27では、ステップS22で記
憶した行末インデント・行頭インデントの桁位置を使
用して、図11で示すフローチャートと同様な段組自動
作成処理を、指定領域の次の行(図14ので8行目)
以降で行う。ステップS28では、表示画面を最終的な
結果の画面に書き換え、処理を終える。In step S27, using the column positions of the line end indent and the line indent stored in step S22, a column automatic creation process similar to that shown in the flowchart of FIG. 11 is performed. (8th line)
It will be done later. In step S28, the display screen is rewritten to the screen of the final result, and the process ends.
【0098】以上のように、ステップS22〜ステップ
S28の処理によって、例えば図13ので4行目から
7行目まで領域指定を行い段組自動解除を実行すると、
図14ののような結果を得ることができる。以上のよ
うに多段組み(段組み無しとの混在や、桁数も自由に設
定可能)の文章を自動的に作成・解除することができ
る。As described above, by performing the processing in steps S22 to S28, for example, when the area is specified from the fourth line to the seventh line in FIG.
The result as shown in FIG. 14 can be obtained. As described above, a multi-column text (mixing with no column and the number of digits can be freely set) can be automatically created and released.
【0099】[0099]
【発明の効果】この発明によれば、文章の行頭および行
末インデントを簡単に設定できるばかりでなく、段組編
集をも容易に行うことができる。According to the present invention, not only can the line indent and the line end indent of a sentence be easily set, but also column editing can be easily performed.
【図1】この発明の基本原理を示すブロック図である。FIG. 1 is a block diagram showing the basic principle of the present invention.
【図2】この発明の基本原理を示すブロック図である。FIG. 2 is a block diagram showing the basic principle of the present invention.
【図3】この発明の基本原理を示すブロック図である。FIG. 3 is a block diagram showing the basic principle of the present invention.
【図4】この発明の一実施例における日本語ワードプロ
セッサを示すブロック図である。FIG. 4 is a block diagram showing a Japanese word processor according to one embodiment of the present invention.
【図5】文章の1部分に行頭インデントおよび行末イン
デントを行う動作を示す表示例である。FIG. 5 is a display example showing an operation of performing a line indent and a line end indent on a part of a sentence.
【図6】途中で書式が変更されている文章に同様の動作
を行った場合を示す表示例である。FIG. 6 is a display example showing a case where a similar operation is performed on a text whose format has been changed in the middle.
【図7】2段組の文章を作成する動作を示す表示例であ
る。FIG. 7 is a display example showing an operation of creating a two-column sentence.
【図8】2段組の文章を作成する動作を示す表示例であ
る。FIG. 8 is a display example showing an operation of creating a two-column sentence.
【図9】2段組の文章の1段目の最後に、インデント解
除キーを使用した場合と、段組キーを使用した場合の動
作の違いを示す表示例である。FIG. 9 is a display example showing a difference between an operation when using an indent release key and an operation when using a column key at the end of the first column of a two-column text.
【図10】は、図7のの表示例の場合の文章データ
の内容の1部分を示す説明図である。は、図8のの
表示例の場合の文章データの内容の1部分を示す説明図
である。FIG. 10 is an explanatory diagram showing a part of the contents of the sentence data in the case of the display example of FIG. 7; FIG. 9 is an explanatory diagram showing a part of the contents of the sentence data in the case of the display example of FIG.
【図11】段組文章自動作成を行った場合の表示例であ
る。FIG. 11 is a display example when a multi-column sentence is automatically created.
【図12】途中でページが変わっている文章に段組文章
自動作成を行った場合の表示例である。FIG. 12 is a display example in a case where a multi-column sentence is automatically created for a sentence whose page is changed in the middle.
【図13】段組文章自動解除を行った場合の表示例であ
る。FIG. 13 is a display example in a case where column-based sentence automatic release is performed.
【図14】段組文章自動解除を行った場合の表示例であ
る。FIG. 14 is a display example when automatic clearing of a multi-column sentence is performed.
【図15】1字抹消キーを入力した際の動作を示すフロ
ーチャートである。FIG. 15 is a flowchart showing an operation when a one-character erase key is input.
【図16】行頭インデントキーを入力した際の動作を示
すフローチャートである。FIG. 16 is a flowchart showing an operation when a line indent key is input.
【図17】行頭インデントキーを入力した際の動作を示
すフローチャートである。FIG. 17 is a flowchart showing an operation when a line indent key is input.
【図18】インデント解除キーを入力した際の動作を示
すフローチャートである。FIG. 18 is a flowchart showing an operation when an indent release key is input.
【図19】文章データを表示画面上に表示する動作を示
すフローチャートである。FIG. 19 is a flowchart showing an operation of displaying text data on a display screen.
【図20】文章データを表示画面上に表示する動作を示
すフローチャートである。FIG. 20 is a flowchart illustrating an operation of displaying text data on a display screen.
【図21】文章データを表示画面上に表示する動作を示
すフローチャートである。FIG. 21 is a flowchart illustrating an operation of displaying text data on a display screen.
【図22】文章データを表示画面上に表示する動作を示
すフローチャートである。FIG. 22 is a flowchart illustrating an operation of displaying text data on a display screen.
【図23】段組文章自動作成の動作を示すフローチャー
トである。FIG. 23 is a flowchart showing an operation of automatically creating a multi-column sentence.
【図24】段組文章自動解除の動作を示すフローチャー
トである。FIG. 24 is a flowchart illustrating an operation of automatically canceling a multi-column sentence.
【図25】段組文章自動解除の動作を示すフローチャー
トである。FIG. 25 is a flowchart illustrating an operation of automatically canceling a multi-column sentence.
1 CPU 2 RAM 3 ROM 4 プリンタコントローラ 5 プリンタ 6 ICカード 7 ICカードインターフェース 8 FD 9 FDコントローラ 10 キーボード 11 キーボードインターフェイス 12 表示装置 13 表示コントローラ B アドレスバスおよびデータバス DESCRIPTION OF SYMBOLS 1 CPU 2 RAM 3 ROM 4 Printer controller 5 Printer 6 IC card 7 IC card interface 8 FD 9 FD controller 10 Keyboard 11 Keyboard interface 12 Display device 13 Display controller B Address bus and data bus
Claims (2)
と、入力された文字および制御文字を記憶する記憶手段
と、記憶された文字および制御文字を表示する表示手段
と、表示手段上において文字または制御文字を入力する
位置を指示する指示手段と、前記指示手段によって指示
されている位置が入力禁止領域内である場合、前記入力
手段による文字の入力は禁止し、制御文字の入力は許可
する制御手段とを備え、文字および第1および第2制御
文字が入力され、入力禁止領域内に第1制御文字が入力
された場合、入力禁止領域内で第1制御文字が特定する
領域を入力可能領域とし、表示されている文字の内、第
2制御文字が特定する領域に存在する文字を前記入力可
能領域へ再配置することを特徴とする文章処理装置。An input unit for inputting a character or a control character; a storage unit for storing the input character and the control character; a display unit for displaying the stored character and the control character; Instructing means for instructing a position for inputting a control character, and control for prohibiting input of the character by the input means and permitting input of the control character when the position instructed by the instructing means is within an input prohibition area. Means and a character and first and second controls
A character is input and the first control character is input in the input prohibited area
Is specified, the first control character is specified in the input prohibited area.
Make the area an input-capable area, and select the
(2) A sentence processing apparatus wherein characters present in an area specified by a control character are rearranged in the inputtable area.
御コードによって生成された入力禁止領域であることを
特徴とする請求項1記載の文章処理装置。 2. The system according to claim 1, wherein the input prohibition area includes a control input in advance.
It is an input prohibited area generated by your code
The sentence processing apparatus according to claim 1, wherein
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP05258295A JP3133575B2 (en) | 1993-10-15 | 1993-10-15 | Sentence processing equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP05258295A JP3133575B2 (en) | 1993-10-15 | 1993-10-15 | Sentence processing equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07114527A JPH07114527A (en) | 1995-05-02 |
| JP3133575B2 true JP3133575B2 (en) | 2001-02-13 |
Family
ID=17318279
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP05258295A Expired - Fee Related JP3133575B2 (en) | 1993-10-15 | 1993-10-15 | Sentence processing equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3133575B2 (en) |
-
1993
- 1993-10-15 JP JP05258295A patent/JP3133575B2/en not_active Expired - Fee Related
Non-Patent Citations (1)
| Title |
|---|
| 「ハイC/P日本語ワープロ速習マニュアル 一太郎ガイド」小林みすづ 株式会社日本ソフトバンク出版部 昭和61年4月15日第6刷発行 P.82−87 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07114527A (en) | 1995-05-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH11219355A (en) | Document color editing device | |
| US4947370A (en) | Word processor for simultaneously displaying and scrolling documents and the corresponding titles | |
| JP3133575B2 (en) | Sentence processing equipment | |
| US5504850A (en) | Data processing apparatus with headline representation | |
| JPH0330056A (en) | document processing device | |
| JPH0560628B2 (en) | ||
| JPS6365988B2 (en) | ||
| JPH0345398B2 (en) | ||
| JPH01126683A (en) | String display device | |
| JPS605955B2 (en) | Display control method | |
| JPH03156566A (en) | Word processor | |
| JP2606579B2 (en) | Character display device | |
| JP2564779B2 (en) | Character output device | |
| JP2518189B2 (en) | Numerical data arithmetic device and method | |
| JPH0385670A (en) | Two-step display system document processor | |
| JPH03179553A (en) | Japanese document creation device | |
| JPH0330054A (en) | document processing device | |
| JPH08137659A (en) | Data input control method | |
| JPH0330051A (en) | document processing device | |
| JPH0528140A (en) | Document processor | |
| JPH0330053A (en) | document processing device | |
| JPH03282880A (en) | Document preparation device | |
| JPH06203021A (en) | Sentence information procesor | |
| JPH04287157A (en) | Numbering device | |
| JPH0225547B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081124 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091124 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091124 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101124 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111124 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |