JP2972791B2 - Editing and correction system for document creation devices - Google Patents
Editing and correction system for document creation devicesInfo
- Publication number
- JP2972791B2 JP2972791B2 JP4198298A JP19829892A JP2972791B2 JP 2972791 B2 JP2972791 B2 JP 2972791B2 JP 4198298 A JP4198298 A JP 4198298A JP 19829892 A JP19829892 A JP 19829892A JP 2972791 B2 JP2972791 B2 JP 2972791B2
- Authority
- JP
- Japan
- Prior art keywords
- line
- centering
- row
- justified
- processing
- 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 - Lifetime
Links
Landscapes
- Document Processing Apparatus (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、文書作成装置(日本語
ワードプロセッサ)において作成し編集が終了した文書
について、改めて書式を変更した場合に、もとの編集処
理状態(具体的にはセンタリングおよび右詰め)を自動
的に実現する編集修正システムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus (Japanese word processor) which has been edited and has been edited. (Right-justified).
【0002】[0002]
【従来の技術】従来の日本語ワードプロセッサにおける
編集修正の仕方は次のとおりであり、それはマニュアル
操作によるものであって、自動的な編集修正ではない。2. Description of the Related Art The method of editing and correcting in a conventional Japanese word processor is as follows, which is a manual operation, not an automatic editing and correcting.
【0003】まず、センタリング処理機能について説明
する。図8の(a)に示すように、書式設定において一
行字数を例えば30字に設定し、例えば「記」という文
字aをある行に入力し、引き続いて改行キーを操作した
後、センタリングキーを操作することにより編集機能の
一つであるセンタリング処理機能を働かせて、その
「記」という文字aがその行の真ん中にくるようにレイ
アウトする。First, the centering processing function will be described. As shown in FIG. 8A, in the format setting, the number of characters per line is set to, for example, 30 characters, for example, the character "a" is input in a certain line, and then the line feed key is operated, and then the centering key is set. By performing the operation, the centering processing function, which is one of the editing functions, is activated, and the layout is performed so that the letter a of the "note" is in the center of the line.
【0004】一行字数が30字であるから真ん中の桁
は、30/2=15文字目に当たり、その行のどこの桁
に「記」という文字aをキー入力していても、センタリ
ング処理により自動的に15文字目のセンタ位置に移動
することになる。もし、一行字数が偶数ではなく奇数で
あったとすると、その字数を2で割った商の小数点以下
を切り上げて整数にする。例えば29字であったとする
と、29/2=14.5であるから、やはり15文字目
がセンタ位置となる。Since the number of characters in one line is 30 characters, the middle digit corresponds to the 30/2 = 15th character, and even if the character "a" is entered by a key in any digit of the line, the centering process is performed automatically. Thus, the center position of the fifteenth character is moved. If the number of characters in one line is not an even number but an odd number, the quotient obtained by dividing the number of characters by 2 is rounded up to the nearest whole number to obtain an integer. For example, if there are 29 characters, 29/2 = 14.5, so the 15th character is also the center position.
【0005】以下、次の行から次々と文字入力を行って
希望する文書を、必要な編集を行いながら作成してい
く。[0005] Hereinafter, a desired document is created by inputting characters one after another from the next line while performing necessary editing.
【0006】このように作成・編集の終わった文書につ
いて、文書全体のレイアウト修正のために、書式を変更
することはしばしば行われることである。[0006] For a document that has been created and edited in this way, the format is often changed to correct the layout of the entire document.
【0007】例えば、元の書式設定で一行字数が30字
であったところを40字に変更し、書式処理を行ったと
すると、図8の(b)に示すように、「記」という文字
aは元通り15字目に位置したままであり、その行に対
して行った編集機能であるセンタリング処理機能が無効
化された状態となってしまう。なぜならば、その「記」
という文字aは、レイアウト上、その行の真ん中である
20文字目にきているべきだからである。しかし、セン
タリング機能は消え、その文字の右側に10文字分のス
ペースが広がるだけである。換言すれば、文字の右側に
10文字分のスペースを挿入するという当初のセンタリ
ング処理がそのまま残存した形態となり、これでは、現
状の書式に対応したセンタリング処理とはならず、意図
した形態とは異なる形態の文書に変わってしまうのであ
る。For example, if the number of characters per line was changed from 30 characters to 40 characters in the original format setting, and the format processing was performed, as shown in FIG. Is still located at the fifteenth character, and the centering processing function, which is the editing function performed on the line, is invalidated. Because the "note"
This is because the character a should come to the 20th character in the middle of the line in the layout. However, the centering function disappears, and only a space for 10 characters expands to the right of the character. In other words, to the right of the character
Initial centering to insert a space for 10 characters
In this case, the processing remains unchanged.
The centering process does not correspond to the form of the letter, and the document is changed to a form different from the intended form.
【0008】そこで、改めて、その「記」という文字a
がある行にカーソルを移動させ、センタリングキーを操
作することにより、図8の(c)に示すように、「記」
という文字aに対してセンタリング処理を行い、20文
字目のセンタ位置に移動させ、当初意図していた通りの
レイアウトに修正するのである。もちろん、これはマニ
ュアル操作によって行う。[0008] Therefore, once again, the character a
By moving the cursor to a certain line and operating the centering key, as shown in FIG.
The centering process is performed on the character a, and the character is moved to the center position of the twentieth character, and the layout is corrected as originally intended. Of course, this is done manually.
【0009】次に、右詰め処理機能について説明する。
図9の(a)に示すように、書式設定において一行字数
を例えば40字に設定し、例えば「以上」という文字b
をある行に入力し、右詰めキーを操作することにより右
詰め処理機能を働かせて、その「以上」という文字bが
その行の右端にくるようにレイアウトする。「以上」の
「以」は38文字目に、「上」は39文字目にそれぞれ
位置することになる。Next, the right-justification processing function will be described.
As shown in FIG. 9A, in the format setting, the number of characters per line is set to, for example, 40 characters, and for example, the character b
Is input to a certain line, and the right-justification key is operated to activate the right-justification processing function, so that the character “b” or more is laid out at the right end of the line. The “more” of “more” is located at the 38th character, and the “upper” is located at the 39th character.
【0010】次に、文書全体のレイアウト修正のため
に、元の書式設定で一行字数が40字であったところを
30字に変更し、書式処理を行ったとすると、「以上」
という文字bを含む右端の10文字分が図9の(b)に
示すように次の行の左端(行頭)から幾文字分か後ろの
位置に移動し、かつ、その「以上」という文字bのある
行の1つ前の行が全くの空白な行となり、「以上」が位
置していた行に対して行った編集機能である右詰め処理
機能が無効化された状態となってしまう。すなわち、こ
の場合も、当初に意図した形態とは異なる形態の文書に
変わってしまうのである。Next, if the number of characters per line was changed from 40 characters in the original format setting to 30 characters in order to correct the layout of the entire document, and the format processing was performed, the "more than"
As shown in FIG. 9B, the rightmost 10 characters including the character b move to a position a few characters later from the left end (head of line) of the next line, and the character b The line immediately before the line with the line becomes a completely blank line, and the right-justification processing function, which is an editing function performed on the line where “or more” is located, is invalidated. That is, also in this case, the document is changed to a form different from the form originally intended.
【0011】そこで、改めて、その「以上」という文字
bがある行にカーソルを移動させ、右詰めキーを操作す
ることにより、図9の(c)に示すように右詰め処理を
行い、さらに、図9の(d)のようにその1行上の全く
空白の余分な行を削除して、当初意図していた通りのレ
イアウトに修正するのである。もちろん、これもマニュ
アル操作によって行う。Then, the cursor is again moved to the line where the character "b" is located and the right-justified key is operated, thereby performing right-justified processing as shown in FIG. 9 (c). As shown in FIG. 9D, a completely blank extra line on one line is deleted, and the layout is corrected to the originally intended layout. Of course, this is also performed manually.
【0012】なお、センタリング行の場合でも、一行字
数がある程度を超えて減る場合には書式変更後の書式処
理により全く空白の行が生じるときがあるし、右詰め行
の場合でも、左端からの位置が不変でその右側にいくつ
かのスペースが生じるときがある。Note that even in the case of a centering line, if the number of characters per line decreases beyond a certain level, a completely blank line may occur due to the format processing after the format change. Sometimes the position is constant and there is some space to its right.
【0013】[0013]
【発明が解決しようとする課題】以上のように、従来の
日本語ワードプロセッサにおいては、作成・編集の終わ
った文書について改めて書式を変更し、書式処理を行っ
た場合には、もとの編集処理状態であるセンタリングま
たは右詰めの状態が崩れてしまうため、当初意図したレ
イアウトに戻すためにマニュアル操作により再度のセン
タリング処理や右詰め処理を行わなければならなかっ
た。As described above, in the conventional Japanese word processor, when the format of a document that has been created and edited is changed again and the format processing is performed, the original editing process is performed. Since the state of centering or right-justified state collapses, the centering processing and right-justified processing have to be performed again by manual operation in order to return to the originally intended layout.
【0014】しかし、マニュアルによるセンタリング処
理操作や右詰め処理操作は、それが単に1行に対するも
のであっても相当に面倒なものである。まして、一つの
文書中にセンタリング行や右詰め行がいくつもある場
合、まず、それらマニュアル修正を行わなければならな
い該当行を文書中で探し出すだけでも大変であるし、探
し出したあとで一々修正作業を行うことははなはだしく
面倒なことで、多大な労力と時間とを費やすこととなっ
ていた。However, manual centering processing operation and right-justification processing operation are considerably troublesome even if they are simply performed on one line. Furthermore, if there are many centering lines and right-justified lines in one document, it is difficult to find the relevant lines in the document that need to be manually corrected first, and after that, it is necessary to correct them one by one. It was extremely tedious to do, and would require a great deal of effort and time.
【0015】本発明は、このような事情に鑑みて創案さ
れたものであって、作成・編集の終わった文書に対して
書式変更を行って書式処理した場合に、面倒なマニュア
ル操作による修正作業を不要化し、元の文書で行った編
集処理であるセンタリングまたは右詰めの処理を自動的
に実現できるようにすることを目的とする。The present invention has been made in view of such circumstances, and when a document that has been created and edited is changed in format and subjected to format processing, a complicated manual operation for correction work is performed. Is unnecessary, and the centering or right-justified processing which is the editing processing performed on the original document can be automatically realized.
【0016】[0016]
【課題を解決するための手段】本発明に係る文書作成装
置における編集修正システムは、文章中のスペース情報
と文字情報の行長に対する各々の長さと配置関係に基づ
いてセンタリング行または右詰行を検索する手段と、そ
の検索によって識別した行についての行情報としてセン
タリング行または右詰行を記憶する手段と、書式変更処
理において各行毎に前記行情報に基づいてセンタリング
行または右詰行を判定する手段と、判定した行に対して
センタリング処理または右詰処理を実行する手段とを備
えたことを特徴とするものである。According to the present invention, there is provided an editing / correcting system for a document creating apparatus, comprising: a centering line or a right-justified line based on the length and arrangement of space information and character information in a sentence. Means for searching, means for storing a centering row or right-justified row as row information for a row identified by the search, and determining a centering row or right-justified row for each row in the format change processing based on the row information. Means and means for executing a centering process or a right-justified process on the determined row.
【0017】[0017]
【作用】作成・編集の終わった文書に対して当該編集修
正システムを機能させると、まず準備作業としてセンタ
リング行と右詰め行とを検索によって求め、該当する行
に各々センタリング行または右詰め行の行情報を付加し
て記憶する。次の段階で、書式変更処理を行うのである
が、各行ごとに行情報に基づきその行がセンタリング行
であるのか右詰め行であるのかあるいはそのどちらでも
ないのかの判定を行うとともに、センタリング行と判定
した行に対しては自動的にセンタリング処理を行い、ま
た、右詰め行と判定した行に対しては自動的に右詰め処
理を行う。またその際、スペース挿入によりセンタリン
グや右詰め処理を行う従前のデータ形式と全く同じデー
タ形式のままで上記処理を行うことができる。 When the editing / modifying system is operated for a document which has been created and edited, first, a centering line and a right-justified line are searched for as a preparatory work, and a centering line or a right-justified line is obtained for the corresponding line. Line information is added and stored. In the next step, but it is performed to form varying Sarasho management, together with the row based on the row information and determines whether neither is the or one that is right justified line whether a centering line for each row, the centering A centering process is automatically performed on a row determined as a row, and a right-aligned process is automatically performed on a row determined as a right-justified row. At that time, insert the space to
Data that is exactly the same as the previous data format that performs
The above processing can be performed in the data format.
【0018】[0018]
【実施例】以下、本発明に係る文書作成装置における編
集修正システムの一実施例を図面に基づいて詳細に説明
する。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of an editing and correcting system in a document creating apparatus according to the present invention.
【0019】図1は文書作成装置(日本語ワードプロセ
ッサ)の概略的な電気的構成を示すブロック線図であ
る。図において、2はシステム全体の制御を司るCPU
(中央演算処理装置)、4はその制御のためのプログラ
ムを格納しているROM(リードオンリーメモリ)、6
は制御を補助するとともにデータを格納するワーキング
メモリおよびユーザーメモリとして機能するRAM(ラ
ンダムアクセスメモリ)、8はフロッピーディスクやハ
ードディスクなどの外部記憶装置、10はキーボードな
どの入力装置、12はCRTや液晶ディスプレイ(LC
D)などの表示装置、14はプリンタ(印刷装置)であ
る。FIG. 1 is a block diagram showing a schematic electrical configuration of a document creation device (Japanese word processor). In the figure, reference numeral 2 denotes a CPU that controls the entire system.
(Central processing unit), 4 is a ROM (read only memory) storing a program for its control, 6 is
A RAM (random access memory) which functions as a working memory and a user memory which assists control and stores data, 8 is an external storage device such as a floppy disk or hard disk, 10 is an input device such as a keyboard, 12 is a CRT or liquid crystal Display (LC
A display device such as D), and 14 is a printer (printing device).
【0020】図2は表示装置12の画面上に表示されて
いる1行での文字列Xを示す。1行の長さ(1行字数で
あって、請求項では行長と表現している)をLm、編集
処理の行われている文字列Xの長さをLc、行頭からそ
の文字列Xまでの長さをLsとする。FIG. 2 shows a character string X in one line displayed on the screen of the display device 12. Length of one line (in characters per line )
In the claims, the length is expressed as Lm, the length of the character string X being edited is Lc, and the length from the beginning of the line to the character string X is Ls.
【0021】タブ行あるいはインデント行におけるセン
タリング処理や右詰め処理はほとんど意味をもたない。
したがって、文字列Xが存在する行がセンタリング行で
あるか右詰め行であるかの判定を行うに際しては、タブ
行およびインデント行を除くものとする。Centering processing and right-justification processing on tab lines or indent lines have little meaning.
Therefore, when determining whether the line where the character string X exists is a centering line or a right-justified line, the tab line and the indented line are excluded.
【0022】タブ行でもなくインデント行でもないとき
は、文字列Xがセンタリング処理されたものである場
合、次の式が成り立つ。If neither the tab line nor the indent line is used, and the character string X has been subjected to the centering processing, the following expression is established.
【0023】 Lm−(Ls+Lc)=Lsまたは(Ls+0.5) ………………(1) また、文字列Xが右詰め処理されたものである場合、次
の式が成り立つ。Lm− (Ls + Lc) = Ls or (Ls + 0.5) (1) When the character string X is right-justified, the following equation is satisfied.
【0024】 Lm−(Ls+Lc)=1または0.5 ………………………………(2) この(1),(2)が編集修正の該当行を検索するとき
の原理の式である。Lm− (Ls + Lc) = 1 or 0.5... (2) The principle of (1) and (2) when searching for the relevant line for editing and correction It is an expression.
【0025】次に、図3〜図5のフローチャートに基づ
いて自動編集修正の動作を説明する。Next, the operation of automatic editing and correction will be described with reference to the flowcharts of FIGS.
【0026】図3において、CPU2はROM4に格納
されたプログラムに従って動作し、ステップS1で入力
装置10の書式キーが操作されるのを待ってステップS
2に進み、表示装置12に書式設定メニュー画面を表示
する。そして、ステップS3でキー入力を待ち、ステッ
プS4でそのキー入力が自動編集修正であるかどうかを
判断する。自動編集修正でないときはステップS5に進
んで通常の書式処理を実行するが、自動編集修正が選択
されたときはステップS6に進んで編集状態認識処理サ
ブルーチンを実行する。この編集状態認識処理サブルー
チンの詳しい動作は図4に示されている。以下、これを
説明する。In FIG. 3, the CPU 2 operates in accordance with the program stored in the ROM 4, and waits for the operation of the format key of the input device 10 in step S1 and then proceeds to step S1.
Proceed to 2 to display a format setting menu screen on the display device 12. Then, in step S3, a key input is waited, and in step S4, it is determined whether the key input is an automatic editing correction. If it is not an automatic edit correction, the process proceeds to step S5 to execute a normal format process. If the automatic edit correction is selected, the process proceeds to step S6 to execute an edit state recognition process subroutine. The detailed operation of this editing state recognition processing subroutine is shown in FIG. Hereinafter, this will be described.
【0027】ステップS6−1において行数レジスタR
に初期値として“1”をセットする。ステップS6−2
で現在の行がインデント行かタブ行のいずれかであるこ
とを判断する。インデント行かタブ行のときはセンタリ
ング処理や右詰め処理は意味をなさないので、そのまま
ステップS6−8にスキップする。インデント行でもな
くタブ行でもないときはステップS6−3に進んでセン
タリング行であることの条件式(1)、すなわち、 Lm−(Ls+Lc)=Lsまたは(Ls+0.5) が成立しているかどうかを判断する。これが成立してい
るときはステップS6−4に進んでその行についての行
情報として「センタリング行」を設定し、RAM6に記
憶した後、ステップS6−8に進む。In step S6-1, the row number register R
Is set to "1" as an initial value. Step S6-2
Determines that the current line is either an indented line or a tab line. In the case of an indent line or a tab line, the centering processing or right-justification processing does not make sense, and therefore, the processing directly skips to step S6-8. If it is neither an indented line nor a tab line, the flow advances to step S6-3 to determine whether conditional expression (1) for a centering line, that is, Lm- (Ls + Lc) = Ls or (Ls + 0.5) is satisfied. Judge. If this is true, the flow proceeds to step S6-4, where "centering line" is set as the line information for the line, and stored in the RAM 6, and then the flow proceeds to step S6-8.
【0028】条件式(1)が成立していないときはステ
ップS6−5に進み、右詰め行であることの条件式
(2)、すなわち、 Lm−(Ls+Lc)=1または0.5 が成立しているかどうかを判断する。これが成立してい
るときはステップS6−6に進んでその行の行末に改行
または改頁があるかどうかを判断する。改行や改頁でな
いことは次の行に引き続く文の一部であって右詰めでは
ないと考えられるので、ステップS6−8に進むが、改
行または改頁のときは右詰めであると考えられるのでス
テップS6−7に進んでその行についての行情報として
「右詰め行」を設定し、RAM6に記憶した後、ステッ
プS6−8に進む。If the conditional expression (1) is not satisfied, the process proceeds to step S6-5, and the conditional expression (2) for right-justified row, that is, Lm- (Ls + Lc) = 1 or 0.5 is satisfied. Determine if you are. If this is the case, the flow advances to step S6-6 to determine whether there is a line feed or page break at the end of the line. Since it is considered that the non-line feed or page break is a part of the sentence following the next line and is not right-justified, the process proceeds to step S6-8. Therefore, the process proceeds to step S6-7, in which "right-justified line" is set as the line information for the line, stored in the RAM 6, and then the process proceeds to step S6-8.
【0029】ステップS6−8では現在の行が文末であ
るかどうかを判断し、文末でなければ、ステップS6−
9に進んで行数レジスタRの内容を+1だけインクリメ
ントした後、ステップS6−2にリターンして次の行に
ついて上記と同様の1行ごとのセンタリング行、右詰め
行の検索と、行情報の設定記憶の処理を文書の全体に対
して繰り返す。この繰り返しによって文末になったとき
は、ステップS6−8の判断が肯定的となり、図3のス
テップS7に進む。In step S6-8, it is determined whether or not the current line is at the end of the sentence.
9, the content of the row number register R is incremented by +1. Then, the process returns to step S6-2 to search the next row for the centering row and the right-justified row for each row as described above, and for the row information. The setting storage process is repeated for the entire document. When the end of the sentence is reached by this repetition, the determination in step S6-8 becomes affirmative, and the process proceeds to step S7 in FIG.
【0030】ステップS7では書式設定メニュー画面に
おいて新たな書式の値を入力装置10の操作によって設
定した後、確定キーの操作によりステップS8に進む。
ステップS8では書式自動修正処理サブルーチンを実行
する。書式自動修正処理サブルーチンの詳しい動作は図
5に示されている。以下、これを説明する。In step S7, a new format value is set on the format setting menu screen by operating the input device 10, and then the operation proceeds to step S8 by operating the enter key.
In step S8, a format automatic correction subroutine is executed. The detailed operation of the automatic format correction subroutine is shown in FIG. Hereinafter, this will be described.
【0031】ステップS8−1において行数レジスタR
に初期値として”1”をセットする。ステップS8−2
で現在の行がセンタリング行であるかどうかをRAM6
からの行情報に基づいて判断する。その行情報が「セン
タリング行」を示しているときはステップS8−3に進
んでその行に対してセンタリング処理を実行した後、ス
テップS8−7に進む。このセンタリング処理に当たっ
ては、例えば、その行の文字列を一旦左詰めにして行頭
にもって行った後に、新たな書式設定に対応して(1)
式を満たすような書式処理(スペース挿入等の処理)を
行えばセンタリング処理が行われる。ただし、必ずしも
文字列を一旦左詰めにする必要はなく、所要の演算によ
ってダイレクトにセンタリング処理してもよい。In step S8-1, the row number register R
Is set to "1" as an initial value. Step S8-2
To determine if the current row is a centering row
Is determined based on the line information from. If the line information indicates a "centering line", the process proceeds to step S8-3 to execute the centering process on the line, and then proceeds to step S8-7. In this centering process, for example, after the character string of the line is once left-justified and brought to the beginning of the line, the character string corresponding to the new format setting is set (1).
If the format processing (processing such as space insertion ) that satisfies the formula is performed, the centering processing is performed. However, the character string does not necessarily need to be left-justified once, and the centering processing may be directly performed by a required operation.
【0032】ステップS8−2でセンタリング行ではな
いと判断したときはステップS8−4に進み、現在の行
が右詰め行であるかどうかをRAM6からの行情報に基
づいて判断する。その行情報が「右詰め行」を示してい
るときはステップS8−5に進んでその行に対して右詰
め処理を実行した後、ステップS8−7に進む。この右
詰め処理に当たっては、例えば、その行の文字列を一旦
左詰めにして行頭にもって行った後に、新たな書式設定
に対応して(2)式を満たすような書式処理(スペース
挿入等の処理)を行えば右詰め処理が行われる。ただ
し、この場合も、必ずしも文字列を一旦左詰めにする必
要はなく、所要の演算によってダイレクトに右詰め処理
してもよい。If it is determined in step S8-2 that the line is not a centering line, the process proceeds to step S8-4, and it is determined whether the current line is a right-justified line based on the line information from the RAM 6. If the line information indicates "right-justified line", the process proceeds to step S8-5 to execute a right-justified process on the line, and then proceeds to step S8-7. In this right-justification processing, for example, after the character string of the line is once left-justified and carried to the beginning of the line, the format processing ( space
If processing such as insertion is performed, right-justification processing is performed. However, also in this case, the character string does not necessarily have to be left-justified once, and may be directly right-justified by a required operation.
【0033】ステップS8−4で右詰め行でもないと判
断したときはステップS8−6に進んで通常の書式処理
を実行した後、ステップS8−7に進む。If it is determined in step S8-4 that the line is not a right-justified line, the flow advances to step S8-6 to execute normal format processing, and then to step S8-7.
【0034】ステップS8−7では現在の行が文末であ
るかどうかを判断し、文末でなければ、ステップS8−
8に進んで行数レジスタRの内容を+1だけインクリメ
ントした後、ステップS8−2にリターンして次の行に
ついて上記と同様の1行ごとの行情報の判定とそれに基
づく書式処理(センタリング処理または右詰め処理を含
む)を文書の全体に対して繰り返す。この繰り返しによ
って文末になったときは、ステップS8−7の判断が肯
定的となり、図3のメインルーチンに戻って次の処理に
移る。In step S8-7, it is determined whether or not the current line is at the end of the sentence.
8, the content of the row number register R is incremented by +1. Then, the process returns to step S8-2 to determine the row information for each row in the same manner as described above for the next row and perform the format processing (centering processing or (Including right justification) for the entire document. When the end of the sentence is reached by this repetition, the determination in step S8-7 becomes affirmative, and the process returns to the main routine of FIG. 3 and proceeds to the next process.
【0035】自動編集修正の具体例を図6と図7に示
す。図6はセンタリング処理の場合を示し、図7は右詰
め処理の場合を示す。FIGS. 6 and 7 show specific examples of automatic editing and correction. FIG. 6 shows the case of centering processing, and FIG. 7 shows the case of right justification processing.
【0036】図6の(a)は自動編集修正前の状態を示
し、一行字数が30字に設定され、「記」という文字a
が15文字目にきている。図6の(b)は自動編集修正
が行われた状態を示し、新たな書式設定での一行字数が
40字に設定され、「記」という文字aが自動的に20
文字目にセンタリングされている。マニュアル操作によ
るレイアウト修正は不要である。FIG. 6A shows a state before automatic editing and correction, in which the number of characters per line is set to 30 and the character a
Comes to the 15th character. FIG. 6B shows a state in which the automatic editing and correction have been performed. In the new format setting, the number of characters per line is set to 40, and the character "a" is automatically changed to 20 characters.
Centered on the letter. No layout correction by manual operation is required.
【0037】図7の(a)は自動編集修正前の状態を示
し、一行字数が40字に設定され、「以上」という文字
bが右詰めされ、38文字目と39文字目にきている。
図7の(b)は自動編集修正が行われた状態を示し、新
たな書式設定での一行字数が30字に設定されたが、
「以上」という文字bは、28文字目と29文字目にき
た状態で右詰めされている。この場合も、マニュアル操
作によりレイアウト修正は不要である。しかも、このよ
うな処理において、センタリングおよび右詰めの編集修
正をスペースの挿入といった従前のセンタリングや右詰
め処理と同様の方法により実施するので、扱うデータの
形式が従前のものと同一となり、データの共通化が図れ
る。 FIG. 7 (a) shows a state before automatic editing and correction. The number of characters per line is set to 40 characters, the character "b" is right-justified, and the 38th and 39th characters are reached. .
FIG. 7B shows a state in which automatic editing and correction have been performed, and the number of characters per line has been set to 30 in a new format setting.
The character "b" is right-justified at the 28th and 29th characters. Also in this case, it is unnecessary to correct the layout by manual operation. And this is it
Centering and right-justified editing
Conventional centering or right-justification, such as inserting a positive space
Of the data to be handled
The format is the same as the previous one, and data can be shared
You.
【0038】[0038]
【発明の効果】以上のように、本発明によれば、作成・
編集の終わった文書を書式変更するに際して、当該編集
修正システムを機能させるだけで、センタリングおよび
右詰めの編集修正を行うべき行を自動的に探し出し、か
つ、実際の書式処理において該当する行に対して所要の
センタリング処理、右詰め処理を自動的に実行するもの
で、書式変更に際してオペレータが行うべきマニュアル
操作はわずかであり、あとはすべて自動的に編集修正が
行われるので、書式変更作業がオペレータに与える負担
を大幅に軽減することができるとともに、作業効率を著
しく向上させることができる。しかも、扱うデータの形
式を全く変更させることなく、書式変更処理時に自動的
にセンタリングないし右詰め処理を行うことができるの
で、扱うデータの形式が従前のものと同一となり、デー
タの共通化が図れる。 As described above, according to the present invention,
When changing the format of a document after editing, simply operate the editing and correction system to automatically find the line on which centering and right-justification should be performed, and also search for the relevant line in the actual formatting process. The required centering and right-justification processes are performed automatically, and there are few manual operations to be performed by the operator when changing the format, and all the rest is automatically edited and corrected. it is possible to greatly reduce the burden on the can make significantly improve work efficiency. Moreover, the form of data to be handled
Automatically during the format change process without changing the formula at all
Can be centered or right justified
And the format of the data handled is the same as the previous one,
Data can be shared.
【図1】本発明の一実施例に係る文書作成装置(日本語
ワードプロセッサ)の概略的な電気的構成を示すブロッ
ク線図である。FIG. 1 is a block diagram showing a schematic electrical configuration of a document creation device (Japanese word processor) according to an embodiment of the present invention.
【図2】実施例においてセンタリング処理や右詰め処理
を判定する条件式を導くための説明図である。FIG. 2 is an explanatory diagram for deriving a conditional expression for determining a centering process or a right-justified process in the embodiment.
【図3】実施例の動作説明に供するフローチャートであ
る。FIG. 3 is a flowchart for explaining the operation of the embodiment.
【図4】実施例における編集状態認識処理サブルーチン
のフローチャートである。FIG. 4 is a flowchart of an editing state recognition processing subroutine in the embodiment.
【図5】実施例における書式自動修正処理サブルーチン
のフローチャートである。FIG. 5 is a flowchart of a format automatic correction processing subroutine in the embodiment.
【図6】実施例において行われたセンタリング処理につ
いての自動編集修正を示す画面表示図である。FIG. 6 is a screen display diagram showing automatic editing and correction for centering processing performed in the embodiment.
【図7】実施例において行われた右詰め処理についての
自動編集修正を示す画面表示図である。FIG. 7 is a screen display diagram showing automatic editing correction for right-justified processing performed in the embodiment.
【図8】従来例におけるセンタリング処理についての編
集修正の仕方を説明する画面表示図である。FIG. 8 is a screen display diagram for explaining a method of editing and correcting a centering process in a conventional example.
【図9】従来例における右詰め処理についての編集修正
の仕方を説明する画面表示図である。FIG. 9 is a screen display diagram for explaining a method of editing and correcting right-justified processing in a conventional example.
【符号の説明】 2 CPU 4 ROM 6 RAM 8 外部記憶装置 10 入力装置 12 表示装置 14 プリンタ S6 編集状態認識処理サブルーチン S8 書式自動修正処理サブルーチン[Description of Signs] 2 CPU 4 ROM 6 RAM 8 External storage device 10 Input device 12 Display device 14 Printer S6 Edit state recognition processing subroutine S8 Format automatic correction processing subroutine
Claims (1)
に対する各々の長さと配置関係に基づいてセンタリング
行または右詰行を検索する手段と、その検索によって識
別した行についての行情報としてセンタリング行または
右詰行を記憶する手段と、書式変更処理において各行毎
に前記行情報に基づいてセンタリング行または右詰行を
判定する手段と、判定した行に対してセンタリング処理
または右詰処理を実行する手段とを備えたことを特徴と
する文書作成装置における編集修正システム。1. Line length of space information and character information in a sentence
Means for retrieving a centering row or right-justified row based on the respective lengths and arrangement relations with respect to, means for storing the centering row or right-justified row as row information about the row identified by the search, and each row in the format change processing. Editing means for determining a centering line or a right-justified line based on the line information for each time, and executing a centering process or a right-justified process on the determined line. Correction system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4198298A JP2972791B2 (en) | 1992-07-24 | 1992-07-24 | Editing and correction system for document creation devices |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4198298A JP2972791B2 (en) | 1992-07-24 | 1992-07-24 | Editing and correction system for document creation devices |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0644232A JPH0644232A (en) | 1994-02-18 |
| JP2972791B2 true JP2972791B2 (en) | 1999-11-08 |
Family
ID=16388809
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4198298A Expired - Lifetime JP2972791B2 (en) | 1992-07-24 | 1992-07-24 | Editing and correction system for document creation devices |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2972791B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9994368B2 (en) | 2012-10-30 | 2018-06-12 | The Procter & Gamble Company | Closure for a container |
-
1992
- 1992-07-24 JP JP4198298A patent/JP2972791B2/en not_active Expired - Lifetime
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9994368B2 (en) | 2012-10-30 | 2018-06-12 | The Procter & Gamble Company | Closure for a container |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0644232A (en) | 1994-02-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2972791B2 (en) | Editing and correction system for document creation devices | |
| JPS6017487A (en) | How to automatically set the line pitch of a document creation device | |
| US5504850A (en) | Data processing apparatus with headline representation | |
| US4850726A (en) | Word processor provided with an automatic tabset means | |
| JPH10216379A (en) | Embroidery data processing device | |
| JPS6320666A (en) | document processing device | |
| JPH08202856A (en) | Image processing method | |
| JPH0969098A (en) | Document creation device | |
| JPH08185452A (en) | Document creation device | |
| JP2518157B2 (en) | Method and device for generating revision history of program | |
| JPH0830617A (en) | Information processing device | |
| JP2001282773A (en) | Device and method for editing structured document and recording medium | |
| JPH0778008A (en) | Programmable device for programmable controller | |
| JP2713924B2 (en) | Document editing device | |
| JPH0749851A (en) | Document shaping device | |
| JP2595196B2 (en) | Table setting method | |
| JPH0414169A (en) | document processing device | |
| JP3046429B2 (en) | Document processing apparatus and document processing method | |
| JP2593975B2 (en) | Character string extraction method and character string extraction device in electronic typesetting device | |
| JP3082977B2 (en) | Character processing method and apparatus | |
| JPH08293033A (en) | Information processing device | |
| JPH06214789A (en) | Fuzzy rule development support device | |
| JPH064531A (en) | Document processing method and apparatus | |
| JPH07152734A (en) | Document information processing device | |
| JPH0573548A (en) | Document shaping device |