JPH03132865A - Document processing device and method - Google Patents

Document processing device and method

Info

Publication number
JPH03132865A
JPH03132865A JP1270371A JP27037189A JPH03132865A JP H03132865 A JPH03132865 A JP H03132865A JP 1270371 A JP1270371 A JP 1270371A JP 27037189 A JP27037189 A JP 27037189A JP H03132865 A JPH03132865 A JP H03132865A
Authority
JP
Japan
Prior art keywords
line
character string
information
character
document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1270371A
Other languages
Japanese (ja)
Other versions
JP2870869B2 (en
Inventor
Shigeo Nara
茂雄 奈良
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP1270371A priority Critical patent/JP2870869B2/en
Publication of JPH03132865A publication Critical patent/JPH03132865A/en
Application granted granted Critical
Publication of JP2870869B2 publication Critical patent/JP2870869B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は文書処理装置、詳しくは文書を表示させながら
編集処理を行なう文書処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document processing device, and more particularly to a document processing device that performs editing processing while displaying a document.

[従来の技術] 通常、文書中の成る行にある文字列をセンタリング(中
央揃え)や右寄せする場合、対象文字列を何らかの手段
で指定し、そしてセンタリングキー或いは右寄せキー等
を押下するという手順を踏む。この場合のセンタリング
或いは右寄せ対象の文字列の指定は、その行にカーソル
を移動させることで行なうことが多い。
[Prior Art] Normally, when centering or right-justifying a string of characters on a line in a document, the procedure is to specify the target string by some means, and then press a centering key or right-aligning key. step on In this case, the character string to be centered or right-justified is often specified by moving the cursor to that line.

[発明が解決しようとする課題] しかしながら、上述した従来の文書処理装置において、
例えばセンタリング処理は実際にその文字列を中央に寄
せることのみに終始し、その箇所がセンタリングされた
(している)ことを示す情報を合わせて記憶してはいな
い。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional document processing device,
For example, centering processing only involves actually bringing the character string to the center, and does not store any information indicating that that part has been (has been) centered.

従って、−度センタリングした文字列を再編集する場合
には、その編集処理の後にその文字列を指定し、再度セ
ンタリング処理をしなければならないという問題が発生
する。
Therefore, when re-editing a character string that has been centered by − degrees, a problem arises in that the character string must be specified after the editing process and the centering process must be performed again.

第2図を用いて説明すると、「文書編集について」とい
う文字列をセンタリングする場合には、その文字列があ
る行中にカーソルを移動させ(状態200)、センタリ
ングキー等を押下することでセンタリングを行なう(状
態2o1)。この後、そのセンタリングした文字列を編
集した場合<状態202 )には、最後にもう一度セン
タリング(状態203)という処理を行なう必要がある
。
To explain using Figure 2, when centering the character string "About document editing," move the cursor to the line where the character string is located (state 200) and press the centering key etc. (state 2o1). After that, if the centered character string is edited <state 202), it is necessary to perform the process of centering (state 203) one last time.

本発明はかかる課題に鑑みなされたものであり、行毎の
レイアウト情報を記憶しておくことで、その処理を効率
的に行える文書処理装置を提供しようとするものである
。
The present invention has been made in view of this problem, and it is an object of the present invention to provide a document processing device that can efficiently perform processing by storing layout information for each line.

また、第2の発明は、上述した目的に加えて、個々の行
のレイアウト情報が容易に確認できる文書処理装置を提
供しようとするものである。
In addition to the above-mentioned object, the second invention aims to provide a document processing device that allows layout information of individual lines to be easily confirmed.

[課題を解決するための手段] この課題を解決する本第1の発明の文書処理装置は以下
に示す構成を備える。すなわち、表示画面に文書を表示
しながら文書の編集及び作成を行う文書処理装置におい
て、文書中の各行毎のレイアウト情報を記憶する記憶手
段と、注目行中に対して所定の編集処理を行ったとき、
当該編集済み注目行のレイアウトを前記記憶手段に記憶
されたレイアウト情報に基づいて表示する表示手段を備
える。
[Means for Solving the Problem] A document processing device of the first invention that solves this problem has the configuration shown below. That is, in a document processing device that edits and creates a document while displaying the document on a display screen, there is a storage means for storing layout information for each line in the document, and a predetermined editing process for the line of interest. When,
A display means is provided for displaying the layout of the edited line of interest based on the layout information stored in the storage means.

また、第2の発明は上述した構成に加えて、画面に表示
された個々の行に対して、前記記憶手段に記憶されたレ
イアウト情報に対応するマークを表示するマーク表示手
段を備える。
In addition to the above-described configuration, the second invention also includes mark display means for displaying a mark corresponding to the layout information stored in the storage means for each row displayed on the screen.

[作用コ かかる本第1の発明において、成る行に対して挿入や削
除等の編集を行ったとき、その行は記憶手段に記憶され
たレイアウト情報に従って表示する。
[Operation] In this first invention, when editing such as insertion or deletion is performed on a line, that line is displayed according to the layout information stored in the storage means.

また、第2の発明においては、個々の行毎に設定された
レイアウト情報に対応するマークを、該当する行毎に表
示する。
Further, in the second invention, a mark corresponding to layout information set for each row is displayed for each corresponding row.

[実施例] 以下、添付図面に従って本発明に係る実施例を詳細に説
明する。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

く装置構成の説明〉 第1図に本実施例における文書処理装置のブロック構成
を示す。
Description of Device Configuration> FIG. 1 shows a block configuration of a document processing device in this embodiment.

図中、1はラスクスキャン表示方式のCRT表示部、2
は1画面分の表示パターン情報を展開可能なビデオRA
M (VRAM) 、3はVRAM2に対するパターン
情報の書込み、CR7表示部1への読み出しの制御を行
なう表示制御部である。
In the figure, 1 is a CRT display unit using the Rusk scan display method; 2
is a video RA that can expand display pattern information for one screen.
M (VRAM), 3 is a display control unit that controls writing of pattern information into the VRAM 2 and reading out to the CR7 display unit 1.

4は装置全体の制御を司るマイクロプロセッサ(MPU
)である。5はMPU4がアドレス可能な主メモリであ
り、MPU4の動作処理手順(プログラム)を記憶して
いるROM5aとワークエリアとして使用したり、編集
中の文書情報を記憶したりするために使用されるRAM
5bから構成されている。尚、ROM 5 aには後述
する第7図に示すフローチャートのプログラムが格納さ
れている。6は文書ファイルや文字フォント等を記憶し
ているハードディスク装置である。8は装置への各種コ
マンドや文字列を入力するためのキーボード、9はキー
ボード8に接続されたポインティングデバイスPD(マ
ウス等)である。10は編集した文書等を印刷出力する
ためのプリンタ部、11は文書ファイルを保存するため
のフロッピーディスク装置である。尚、ハードディスク
装置6には共通の文書等を保存するのに使用し、フロッ
ピーディスク装置11は主として個人用のものである。
4 is a microprocessor (MPU) that controls the entire device.
). 5 is a main memory that can be addressed by the MPU 4, and includes a ROM 5a that stores the operation processing procedure (program) of the MPU 4, and a RAM that is used as a work area and for storing document information being edited.
5b. Incidentally, the ROM 5a stores a program of a flowchart shown in FIG. 7, which will be described later. 6 is a hard disk device that stores document files, character fonts, and the like. 8 is a keyboard for inputting various commands and character strings to the device; 9 is a pointing device PD (such as a mouse) connected to the keyboard 8; Reference numeral 10 is a printer section for printing out edited documents, etc., and reference numeral 11 is a floppy disk device for storing document files. The hard disk drive 6 is used to store common documents, etc., and the floppy disk drive 11 is mainly for personal use.

上述した各構成はシステムバス7を介して接続されてい
る。
Each of the above-mentioned components is connected via a system bus 7.

上述した実施例の構成における文書情報の格納状態を第
3図に示す。
FIG. 3 shows the storage state of document information in the configuration of the embodiment described above.

実施例において、編集中の文書情報は図示の様にその文
書情報に含まれる文字コード等を記憶しているテキスト
情報エリア30とその文書の各行毎の状態情報を記憶し
ている行情報エリア31の2つに分離されている。勿論
、テキスト情報エリア30にはその文書の出力用紙のサ
イズ等の情報も記憶されているが、これは本願発明の趣
旨から外れるので詳述はしない。
In the embodiment, the document information being edited is divided into a text information area 30 that stores character codes, etc. included in the document information, and a line information area 31 that stores status information for each line of the document, as shown in the figure. It is separated into two parts. Of course, the text information area 30 also stores information such as the size of the output paper of the document, but since this is outside the scope of the present invention, it will not be described in detail.

行情報エリア31における1行中の文字列に対する状態
情報は図示の様に、先頭文字の相対アドレス31a、寄
せ(右寄せ或いはセンタリング)情報31b、箇条書き
スタートポジション31C,ページスタート行又はエン
ド行情報31d。
As shown in the figure, the status information for the character string in one line in the line information area 31 includes the relative address 31a of the first character, alignment (right alignment or centering) information 31b, bullet point start position 31C, and page start line or end line information 31d. .

同音語分割フラグ31eから構成されている。It consists of a homophone division flag 31e.

先頭文字の相対アドレス31aは注目行の先頭文字が1
ページの1文字目から数えて何文字目のものであるかを
示すアドレスが格納されている。
The relative address 31a of the first character is 1 if the first character of the line of interest is 1.
An address indicating the number of characters counted from the first character of the page is stored.

寄せ情報31bには、注目行の文字列に対して右寄せ或
いはセンタリングが指定されているか否かを示す情報が
格納されている。箇条書スタートポジション31cは注
目行の何文字目から箇条書きになっているかを示す情報
が格納されている。
The alignment information 31b stores information indicating whether right alignment or centering is specified for the character string in the line of interest. The bullet point start position 31c stores information indicating from which character in the line of interest the bullet point starts.

ページスタート行又はエンド行情報31dには、注目行
がページの先頭行である場合や、ページの最後尾行であ
る場合等にその旨の状態が記憶される。尚、これは注目
行が設定したページの途中の行であっても、オペレータ
が注目行で強制的に改ページさせるためのキーを押下し
た場合に備えたものである。
In the page start line or end line information 31d, if the line of interest is the first line of the page or the last line of the page, a state to that effect is stored. This is to prepare for the case where the operator presses a key to force a page break at the line of interest even if the line of interest is a line in the middle of the set page.

尚、行情報としては、上述した情報のみに限定されるも
のではない。要は、最低でも寄せ情報31bが含まれれ
ば良いからである。
Note that the line information is not limited to the information described above. The point is that it is sufficient if at least the matching information 31b is included.

また、文書をハードディスク装置6やフロッピーディス
ク装置に保存するときには、テキスト情報エリアは勿論
、行情報エリア31も保存される。
Further, when a document is saved in the hard disk device 6 or floppy disk device, not only the text information area but also the line information area 31 is saved.

次に、実施例におけるセンタリング処理の動作概要を第
4図を用いて説明する。
Next, an overview of the centering process in the embodiment will be explained using FIG. 4.

ユーザーC本装置を使用する人)はセンタリング指定し
たい行へカーソルを移動する(状態4−1.4−2)。
User C (a person who uses this device) moves the cursor to the line for which he wants to specify centering (state 4-1.4-2).

この後、キーボード8よりセンタリングキーが押下され
ると、その行内の文字列を中央へ寄せると共に、対応す
る行情報中の寄せ情報31bにその旨のデータを記憶す
る。そして、ROM5aに記憶しておいたセンタリング
マークパターンを読み出しそれを該当行の左側に表示す
る(状態4−3)。尚、実施例におけるセンタリングは
、注目行に対しての文字挿入可能スペース(その行にあ
と回文字挿入できるか)が偶数個の場合には真の中央位
置に文字列を寄せ、それが奇数個の場合にはセンタリン
グする文字列の前に位置するスペース数を後のそれより
1つ少なくするものとする。
Thereafter, when the centering key is pressed on the keyboard 8, the character string in that line is shifted to the center, and data to that effect is stored in the shift information 31b in the corresponding line information. Then, the centering mark pattern stored in the ROM 5a is read out and displayed on the left side of the corresponding line (state 4-3). In addition, centering in the example is performed when the character string can be inserted to the true center position if the number of character insertable spaces for the line of interest (can characters be inserted later in that line) is an even number; In this case, the number of spaces located before the character string to be centered shall be one less than the number of spaces located after it.

こうして、文字列のセンタリングが行なわれる。この後
、例えば状態4−3において「文書編集」という文字列
の直後に「処理の寄せ」という文字列を挿入する場合に
は以下の様に処理される。
In this way, the character string is centered. After this, for example, in state 4-3, when inserting the character string "processing" immediately after the character string "document editing", the following processing is performed.

先ず、挿入された文字数がその注目行の文字挿入可能ス
ペースより小さい場合には、挿入された文字を含んだ注
目文字列のセンタリング処理を順次行なう。
First, if the number of inserted characters is smaller than the character insertable space of the line of interest, centering processing of the character string of interest including the inserted characters is sequentially performed.

第4図における状態4−4では、挿入文字列「処理の寄
せ」中の「処理」が挿入された状態を示しており、状態
4−5はその次の文字「の」が入力された状態を示して
いる。文字「の」が入力されたときには、文字挿入可能
スペースは“1“であるので、図示の様に、文字列の右
側にのみ空白が1個存在している。この後、文字列「寄
せ」が入力されるが、この時点で、挿入文字数が文字挿
入可能スペース以上になり、行あぶれが発生する。この
ように文字列の挿入でもって、文字挿入可能スペースが
“0” (或いはそれ以下)に達した場合には、センタ
リング処理の意味がなくなる。そこで、実施例では、こ
のような場合には、センタリングマークの表示をやめ、
同時に注目行に対する行情報中の寄せ情報31bのセン
タリングされた旨のデータをクリアする。このときの表
示例が状態4−6である。尚、寄せ情報31bを単にク
リアする場合には、キーボード8に設けられた所定キー
を押下することで、通常の左寄せ状態にすることができ
る。
State 4-4 in Figure 4 shows the state in which "processing" in the inserted character string "processing" has been inserted, and state 4-5 shows the state in which the next character "no" has been input. It shows. When the character "no" is input, the space available for character insertion is "1", so as shown in the figure, one blank space exists only on the right side of the character string. After this, the character string "Yose" is input, but at this point, the number of characters to be inserted exceeds the available space for character insertion, and lines are blurred. If the character insertable space reaches "0" (or less) due to the insertion of a character string in this way, the centering process becomes meaningless. Therefore, in this embodiment, in such a case, the display of the centering mark is stopped and
At the same time, the data indicating that the line of interest has been centered in the centering information 31b in the line information is cleared. A display example at this time is state 4-6. In addition, when simply clearing the alignment information 31b, by pressing a predetermined key provided on the keyboard 8, it is possible to return to the normal left alignment state.

次に、実施例における右寄せ処理の動作概要を第5図を
用いて説明する。
Next, an outline of the operation of the right alignment process in the embodiment will be explained using FIG. 5.

先ず、ユーザーは右寄せしたい行へカーソルを移動させ
る(状態5−1.5−2)。次に、キーボード8より右
寄せキーを押下すると状態5−3に示す様に、その行中
の文字列を右端に寄せ、そして右寄せを示すマークを表
示する。このとき、注目行に対する寄せ情報31bには
右寄せされたことを示す情報を記憶させる。
First, the user moves the cursor to the line he wants to right-justify (state 5-1.5-2). Next, when the right alignment key is pressed on the keyboard 8, the character string in that line is shifted to the right end, and a mark indicating right alignment is displayed, as shown in state 5-3. At this time, information indicating that the line has been right-aligned is stored in the alignment information 31b for the line of interest.

この後、右寄せした文字列中の「文書編集」の直後に文
字列「処理の寄せ」を挿入する場合には以下の様になる
。
After this, if you want to insert the character string "Processing Alignment" immediately after "Document Edit" in the right-justified character string, it will be as follows.

先ず、挿入された文字数がその注目行の文字挿入可能ス
ペースより小さい場合には、挿入された文字を含んだ注
目文字列の右寄せ処理を順次行なう。
First, if the number of inserted characters is smaller than the space in which characters can be inserted in the line of interest, the character string of interest including the inserted characters is sequentially right-justified.

第5図における状態5−4では、挿入文字列「処理の寄
せ」中の「処理」が挿入された状態を示しており、状態
5−5はその次の文字「の」が入力された状態を示して
いる。この後、文字列「寄せ」が入力されるが、この時
点で、挿入文字数が文字挿入可能スペース以上になり、
行あぶれが発生する。このように文字列の挿入でもって
、文字挿入可能スペースが“O” (或いはそれ以下)
に達した場合には、右寄せ処理の意味がなくなる。そこ
で、実施例では、このような場合には、右寄せマークの
表示をやめ、同時に注目行に対する行情報中の寄せ情報
31bの右寄せされた旨のデータをクリアする。このと
きの表示例が状態5−6である。
State 5-4 in Figure 5 shows the state in which "processing" in the inserted character string "processing" has been inserted, and state 5-5 shows the state in which the next character "no" has been input. It shows. After this, the character string "Yose" is input, but at this point, the number of characters to be inserted is greater than the space that can be inserted,
Lines are blurred. By inserting a character string like this, the available space for character insertion is “O” (or less)
If , the right alignment process becomes meaningless. Therefore, in this embodiment, in such a case, the display of the right alignment mark is stopped, and at the same time, the data indicating that the line has been right aligned is cleared in the alignment information 31b in the line information for the line of interest. A display example at this time is state 5-6.

上述したセンタリング処理及び右寄せ処理した後に文字
列を挿入しようとした場合、その挿入箇所がセンタリン
グ或いは右寄せされた文字列から外れた位置の場合には
、注目行に対する寄せ情報はクリアされ、且つ表示され
ていたセンタリングマークや右寄せマークは消去される
。
If you try to insert a string after performing the centering and right-aligning processes described above, and the insertion point is outside the centered or right-aligned string, the alignment information for the line of interest will be cleared and not displayed. The centering mark and right alignment mark that were previously displayed will be deleted.

第6図(A)はセンタリング文字列「文書編集」から外
れた同一行に文字列rl/3Jを挿入した例を示してお
り、同図(B)は右寄せ文字列rl/3Jから外れた同
一行に文字列「文書編集」を挿入した例を示している。
Figure 6 (A) shows an example where the character string rl/3J is inserted in the same line outside the centering character string "edit document", and Figure 6 (B) shows the same character string rl/3J outside the centering character string rl/3J. An example of inserting the character string "Document Edit" in a row is shown.

いずれも、その挿入以前に表示されていたマークが消去
され、その行情報の寄せ情報31bがクリアされたこと
がわかる。
In both cases, it can be seen that the mark displayed before the insertion has been erased, and the alignment information 31b of the line information has been cleared.

上述した動作を実現するためのMPU4の動作処理手順
を第7図のフローチャートに従って説明する。
The operation processing procedure of the MPU 4 for realizing the above-mentioned operation will be explained according to the flowchart of FIG. 7.

先ず、ステップ57−1で、キーボード8より文字列が
入力されると、その時点でカーソルが位置していた行情
報中の寄せ情報31bを調べ、注目行がセンタリングさ
れている行であるか否かを判断する(ステップS7−2
)。センタリング行でないと判断した場合には、ステッ
プ57−9に進んで、右寄せ行であるか否かを判断する
。ここで、右寄せ行でもないと判断した場合には、ステ
ップS7−13に進んで、通常の文字挿入処理を実行す
る。
First, in step 57-1, when a character string is input from the keyboard 8, the alignment information 31b in the line information where the cursor was positioned at that time is checked to determine whether the line of interest is a centered line. (Step S7-2)
). If it is determined that the row is not a centering row, the process advances to step 57-9, and it is determined whether the row is a right-justified row. If it is determined that the line is not a right-aligned line, the process advances to step S7-13 and normal character insertion processing is executed.

さて、ステップ57−2で、注目行がセンタリング行で
あると判断された場合、処理はステップ57−3に進み
、第4図の状態4−3〜4〜6で説明した処理を実現す
る。
Now, if it is determined in step 57-2 that the line of interest is a centering line, the process proceeds to step 57-3, and the processes described in states 4-3 to 4-6 in FIG. 4 are implemented.

先ず、ステップ57−3では、注目行に文字挿入可能ス
ペースがあるか否かを判断する。このスペースがないと
判断した場合には、ステップS7−12に進んで、寄せ
情報31b中のセンタリング情報をクリア(表示されて
いたマークも消去する)し、ステップS7−13に進む
。また、文字挿入可能スペースが存在すると判断した場
合には、次のステップ57−4に進んで、そのスペース
数は奇数か偶数かを判断する。そして、各々の場合に入
力された文字数が偶数か奇数かを判断する(ステップ5
7−5.S7−6)。文字挿入可能スペースが偶数で且
つ入力文字数が奇数の場合、或いは文字挿入可能スペー
スが奇数で入力された文字数が偶数である場合、換言す
れば、入力された文字数を注目文字列に挿入した場合の
文字挿入可能スペースが奇数になると判断した場合には
、ステップ57−7に進む。ここでは、入力した文字列
を含んだ注目行の全体文字列(=旧文字列十入力文字列
)の左スペース数をその文字列の右側のスペース数より
1つ少ない形式で表示する。これは注目行の文字列を真
の中央に寄せることができない場合の処理である。また
、入力文字列を含むその行全体の文字列における文字挿
入可能スペースが偶数であると判断した場合には、ステ
ップ57−8に進んで、その文字列の中心に位置する文
字をその行の中心に位置させ表示する。
First, in step 57-3, it is determined whether or not there is a space in which characters can be inserted in the line of interest. If it is determined that there is no space, the process proceeds to step S7-12, where the centering information in the centering information 31b is cleared (the displayed mark is also erased), and the process proceeds to step S7-13. If it is determined that there is a space in which characters can be inserted, the process proceeds to the next step 57-4, and it is determined whether the number of spaces is an odd number or an even number. Then, in each case, it is determined whether the number of characters input is an even number or an odd number (step 5).
7-5. S7-6). If the character insertable space is an even number and the number of input characters is odd, or if the character insertable space is an odd number and the number of input characters is an even number, in other words, when the number of input characters is inserted into the target character string. If it is determined that the character insertable space is an odd number, the process advances to step 57-7. Here, the number of spaces on the left of the entire character string of the line of interest (=old character string 10 input character strings) including the input character string is displayed in a format that is one less than the number of spaces on the right side of the character string. This process is performed when the character string in the line of interest cannot be brought to the true center. In addition, if it is determined that the space in which characters can be inserted in the entire line of strings including the input string is an even number, the process proceeds to step 57-8, and the character located at the center of the string is inserted into the line. Center and display.

さて、注目行が右寄せ行であると判断した場合、処理は
ステップ57−9からステップS7−10に進み、第5
図の状態5−3〜5〜6で説明した処理を実現する。
Now, if it is determined that the line of interest is a right-justified line, the process proceeds from step 57-9 to step S7-10, and the fifth
The processes described in states 5-3 to 5-6 in the figure are realized.

先ずステップS7−10では、注目行に対して入力した
文字列を挿入したとき、文字挿入可能スペースが発生す
るかどうかを判断する。そのスペースがないと判断した
場合には、ステップS7−12に進む。また、スペース
があると判断した場合には、ステップS7−11に進ん
で、その時点のカーソルより前の文字列を入力された文
字数介在に移動させ、空いた領域に入力文字列をセット
する。尚、上述した処理では特に説明しなかったが、入
力文字の挿入位置(カーソル位置)が注目行の文字列か
ら外れた位置にあるか否かを判断するステップSを設け
る場合には、その判断処理をステップ57−2とステッ
プ57−3間及びステップ57−9とステップS7−1
0の間に位置させれば良い。そして、外れた位置にカー
ソルが位置していると判断した場合には、ステップS7
−12に進み、注目行の文字列中にカーソルが位置して
いると判断した場合には、ステップ57−3若しくはス
テップS7−10に処理が進むようにすれば良い。
First, in step S7-10, it is determined whether or not a character insertable space will occur when the input character string is inserted into the line of interest. If it is determined that there is no such space, the process advances to step S7-12. If it is determined that there is a space, the process proceeds to step S7-11, where the character string before the cursor at that time is moved to the space between the input characters, and the input character string is set in the empty area. Although not specifically explained in the above processing, if step S is provided to determine whether the insertion position (cursor position) of the input character is outside the character string of the line of interest, the determination The processing is performed between step 57-2 and step 57-3 and between step 57-9 and step S7-1.
It is sufficient to position it between 0 and 0. If it is determined that the cursor is located outside the position, step S7
-12, and if it is determined that the cursor is located within the character string of the line of interest, the process may proceed to step 57-3 or step S7-10.

尚、上述した実施例は、例えば仮名漢字変換処理等で一
度に数文字づつ入力できる場合を説明した。しかし、1
文字づつ入力してはセンタリング或いは右寄せするタイ
プの文書処理装置においては、処理はより簡単になる。
In the above-described embodiment, a case has been described in which several characters can be input at a time, for example, in a kana-kanji conversion process. However, 1
In a type of document processing device that inputs characters one by one and then centers or right-aligns the input, the processing becomes easier.

例えば、ステップ57−4の判断でYESの場合、すな
わち、挿入する以前の注目行に対する文字挿入可能スペ
ースが奇数であると判断した場合には、カーソル以後の
文字列を1文字分布に移動させ、その空いた部分に入力
された1文字を挿入する。また、NOの場合には、カー
ソルより前の文字列を1文字介在に移動させ、その空い
た部分に入力された1文字を挿入するようにすれば良い
。
For example, if the determination in step 57-4 is YES, that is, if it is determined that the character insertable space for the line of interest before insertion is an odd number, the character string after the cursor is moved to a one-character distribution, Insert the input character into the empty space. Furthermore, in the case of NO, the character string before the cursor may be moved one character in between, and the one character inputted may be inserted into the empty space.

以上説明した様に本実施例によれば、センタリングや右
寄せ処理した行中の文字列に対して編集処理を施しても
、その行に設定されたレイアウト情報に従って編集後の
文字列を表示するので、効率的な編集環境を提供できる
。
As explained above, according to this embodiment, even if editing is performed on a character string in a line that has been centered or right-justified, the edited character string is displayed according to the layout information set for that line. , can provide an efficient editing environment.

また、各行のレイアウト状態(右寄せか、センタリング
か等)を個々の行毎に表示するようにすると、編集する
際の参考とすることができ、便利である。このとき、何
もマークが表示されていなければ、通常のモードの行で
あると判断できる。
Furthermore, it is convenient to display the layout status of each line (right alignment, centering, etc.) for each line, as this can be used as a reference when editing. At this time, if no mark is displayed, it can be determined that the line is in normal mode.

尚、実施例における編集処理は主として文字列の挿入を
例にして説明したが、削除等であっても良いことは勿論
である。
Note that although the editing process in the embodiment has mainly been explained using insertion of character strings as an example, it goes without saying that deletion or the like may also be performed.

[発明の効果] 以上説明したように本発明によれば、行中の文字列に対
して編集処理を施しても、その行に設定されたレイアウ
ト情報に従って編集後の文字列を表示するので、その効
率的な編集環境を提供できる。
[Effects of the Invention] As explained above, according to the present invention, even if a character string in a line is edited, the edited character string is displayed according to the layout information set for that line. It can provide an efficient editing environment.

また、各行のレイアウト状態(右寄せか、センタリング
か等)を個々の行毎に表示するようにすると、編集する
際の参考とすることができ、便利である。
Furthermore, it is convenient to display the layout status of each line (right alignment, centering, etc.) for each line, as this can be used as a reference when editing.

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

第1図は実施例の文書処理装置のブロック構成図、 第2図は従来の編集処理の動作概要を示す図、第3図は
実施例における行情報の内容を示す図、 第4図は実施例におけるセンタリング処理とその行に対
して編集処理を行ったときの動作概要を示す図、 第5図は実施例における右寄せ処理とその行に対して編
集処理を行ったときの動作概要を示す図、 第6図(A)、(B)はレイアウト情報は取り消される
例を示す図、 第7図は実施例のMPUの動作処理手順を説明するため
のフローチャートである。 図中、1・・・CRT表示部、2・・・ビデオRAM(
VRAM) 、3・・・表示制御部、4・・・マイクロ
プロセッサ(MPU) 、5・・・主メモリ、5a・・
・ROM、5b・・・RAM、6・・・ハードディスク
装置、7・・・システムバス、8・・・キーボード、9
・・・ポインティングデバイス、10・・・プリンタ装
置、11・・・フロッピーディスク装置である。 0 へ 〜 つ 吟 n 寸
Fig. 1 is a block diagram of the document processing device of the embodiment, Fig. 2 is a diagram showing an operational overview of conventional editing processing, Fig. 3 is a diagram showing the contents of line information in the embodiment, and Fig. 4 is an implementation diagram. Figure 5 is a diagram showing an overview of the centering process in the example and the operation when editing is performed on that line. Figure 5 is a diagram showing an overview of the operation when right alignment processing and editing is performed on the line in the example. , FIGS. 6A and 6B are diagrams showing an example in which layout information is canceled, and FIG. 7 is a flowchart for explaining the operation processing procedure of the MPU of the embodiment. In the figure, 1...CRT display unit, 2...Video RAM (
VRAM), 3...Display control unit, 4...Microprocessor (MPU), 5...Main memory, 5a...
・ROM, 5b...RAM, 6...Hard disk device, 7...System bus, 8...Keyboard, 9
. . . pointing device, 10 . . . printer device, 11 . . . floppy disk device. 0 to ~ tsuginn size

Claims (2)

【特許請求の範囲】[Claims] (1)表示画面に文書を表示しながら文書の編集及び作
成を行う文書処理装置において、文書中の各行毎のレイ
アウト情報を記憶する記憶手段と、 注目行中に対して所定の編集処理を行つたとき、当該編
集済み注目行のレイアウトを前記記憶手段に記憶された
レイアウト情報に基づいて表示する表示手段を備えるこ
とを特徴とする文書処理装置。
(1) A document processing device that edits and creates a document while displaying the document on a display screen, which includes a storage device that stores layout information for each line in the document, and a storage device that performs predetermined editing processing on the line of interest. 1. A document processing apparatus comprising: a display means for displaying a layout of the edited line of interest based on layout information stored in the storage means when a line of interest has been edited.
(2)更に、前記画面に表示された個々の行に対して、
前記記憶手段に記憶されたレイアウト情報に対応するマ
ークを表示するマーク表示手段を備えることを特徴とす
る請求項第1項に記載の文書処理装置。
(2) Furthermore, for each line displayed on the screen,
2. The document processing apparatus according to claim 1, further comprising mark display means for displaying a mark corresponding to the layout information stored in said storage means.
JP1270371A 1989-10-19 1989-10-19 Document processing apparatus and method Expired - Fee Related JP2870869B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1270371A JP2870869B2 (en) 1989-10-19 1989-10-19 Document processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1270371A JP2870869B2 (en) 1989-10-19 1989-10-19 Document processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH03132865A true JPH03132865A (en) 1991-06-06
JP2870869B2 JP2870869B2 (en) 1999-03-17

Family

ID=17485334

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1270371A Expired - Fee Related JP2870869B2 (en) 1989-10-19 1989-10-19 Document processing apparatus and method

Country Status (1)

Country Link
JP (1) JP2870869B2 (en)

Also Published As

Publication number Publication date
JP2870869B2 (en) 1999-03-17

Similar Documents

Publication Publication Date Title
US5689718A (en) System and method for processing document information using password protected icons that represent document content
JPS6290753A (en) Documentation device
JPH0585931B2 (en)
JPS60100220A (en) Document processor
JPH0236478A (en) information processing system
JPH06119327A (en) Document processor
JPH08127152A (en) Printing device and translation printing method of printing device
JP2870869B2 (en) Document processing apparatus and method
JP3561448B2 (en) Computer-readable storage medium storing a document creation program
JPS61231661A (en) Information processor
JPH0525344B2 (en)
JPH03108054A (en) Document processor
JPH0734197B2 (en) Information processing equipment
JPS63174162A (en) document processing device
JPH02297130A (en) Plural line feeds processing system in document processor
JPH0315968A (en) text editing device
WO1999054837A1 (en) Document production assisting device, document production assisting method, and recording medium on which document production assisting program is recorded
JP2002312347A (en) Text file editing method, document file editing method, system, program, and recording medium
JPH0414169A (en) document processing device
JPH076167A (en) Formatting method
JPH06325034A (en) Information processor
JP2003044465A (en) Device and method for processing document
JPS63298472A (en) document creation device
JPH03110667A (en) document processing device
JPH04320568A (en) Font size conversion method in word processors

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees