JPH0447331B2 - - Google Patents
Info
- Publication number
- JPH0447331B2 JPH0447331B2 JP57077265A JP7726582A JPH0447331B2 JP H0447331 B2 JPH0447331 B2 JP H0447331B2 JP 57077265 A JP57077265 A JP 57077265A JP 7726582 A JP7726582 A JP 7726582A JP H0447331 B2 JPH0447331 B2 JP H0447331B2
- Authority
- JP
- Japan
- Prior art keywords
- line
- character
- immediately before
- characters
- beginning
- 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
- 238000000034 method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】
本発明はワードプロセサのごとき文書装置に関
する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to document devices such as word processors.
この種の装置にあつては、CRT等の画面表示
部を使つて文書を作成し、作成した文書を必要に
応じてプリントできるものであるが、この場合、
文書を構成する1行分の文字数は予め固定値ある
いは任意の値に規格化されている。従つて第1図
Aに示すごとく、句読点1が行頭に来たり、また
第1図Cに示すごとく、前カツコ2のみが行末に
位置する場合が起こり得るが、かかる状態は、画
面表示にしろ、プリントにしろ非常に不自然であ
る。 With this type of device, documents can be created using a screen display such as a CRT, and the created documents can be printed as needed.
The number of characters in one line constituting a document is standardized in advance to a fixed value or an arbitrary value. Therefore, as shown in Figure 1A, punctuation mark 1 may be at the beginning of the line, or as shown in Figure 1C, only the front mark 2 may be located at the end of the line, but such a situation can occur even if it is displayed on the screen. , even when printed, it looks very unnatural.
通常この種装置では、上記不自然な状態となつ
た場合、行末の1文字3,2を第1図BやDに示
すごとく、次行の頭に移動する処理がなされる。
かかる移動により行末に空白部ができるが、プリ
ントする時に、空白部が残らない様に残りの文字
間隔が若干広げられる。 Normally, in this type of device, when the above-mentioned unnatural state occurs, a process is performed in which the characters 3 and 2 at the end of the line are moved to the beginning of the next line, as shown in FIGS. 1B and 1D.
This movement creates a blank space at the end of the line, but when printing, the spacing between the remaining characters is slightly widened so that no blank space remains.
この様に、行頭に来ては好ましくない文字は行
頭禁則文字と称され、その種類としては、句読点
の他に、後カツコ)やピリオド.やハイフン−な
どがある。また行末に来ては好ましくない文字は
行末禁則文字と称され、その種類としては前カツ
コの他に、単価記号@や円記号¥などがある。さ
らに、上記のごとく、禁則文字に関連してある行
の文字をその行から次行へ移動する処理は禁則処
理と称される。 In this way, characters that are undesirable at the beginning of a line are called non-startable characters, and in addition to punctuation marks, these characters include punctuation marks, periods, etc. and hyphen. Characters that are undesirable at the end of a line are called end-of-line characters, and their types include the front bracket, the unit price symbol @, and the yen symbol ¥. Further, as described above, the process of moving characters in a certain line in relation to prohibited characters from that line to the next line is called prohibited processing.
従来の文書装置では、行頭の1文字又は行末の
1文字のみにつき、それらが行頭禁則文字か、行
末禁則文字かを判定し、それにもとずいて禁則処
理を行なつている。従つて、第2図Aに示すごと
く、行頭に禁則文字4があり、かつ前行における
行末の直前に行末禁則文字5がある場合や、第2
図Cに示すごとく、行末及びその直前に行末禁則
文字6,7がある場合には、禁則処理を行なつて
もその結果は、夫れ夫れ第2図BやDに示すごと
くなり、依然として行末に禁則文字5や7が残る
ことになる。 In conventional document devices, it is determined whether a character at the beginning of a line or a character at the end of a line is a character prohibited at the beginning of a line or a character prohibited at the end of a line, and prohibition processing is performed based on the determination. Therefore, as shown in FIG.
As shown in Figure C, if there are line-end prohibited characters 6 and 7 at the end of the line or just before it, even if the prohibited characters are processed, the result will still be as shown in Figures B and D, respectively. The prohibited characters 5 and 7 will remain at the end of the line.
本発明は上記の点に鑑みてなされたもであり、
本発明によれば、例えば上記第2図AやCの場合
には、禁則処理後、それぞれ第3図AやBのごと
くなり、行末に禁則文字が残らない。 The present invention has been made in view of the above points,
According to the present invention, for example, in the cases of A and C in FIG. 2, after the prohibition processing, the characters become as shown in FIG. 3A and B, respectively, and no prohibition characters remain at the end of the line.
第4図は本発明実施例の文書装置を示す。本装
置にあつては、キーボード10より入力される文
書データにもとずいて制御部11が内部記憶部1
2で文書を作成すると共に、かかる文書作成状態
を画面表示部(例えばCRT装置13)で表示せ
しめる。制御部11は更に、キーボード10から
の指示に従つて作成された上記文書を外部記憶部
14に格納し、又内部記憶部12内の文書を、あ
るいは外部記憶部14内の文書を内部記憶部12
を通じてプリンタ部15でプリントせしめる。 FIG. 4 shows a document device according to an embodiment of the present invention. In this device, the control section 11 controls the internal storage section 1 based on document data input from the keyboard 10.
At step 2, a document is created, and the document creation status is displayed on a screen display section (for example, CRT device 13). The control unit 11 further stores the document created in accordance with instructions from the keyboard 10 in the external storage unit 14, and also stores the document in the internal storage unit 12 or the document in the external storage unit 14 in the internal storage unit. 12
The printer section 15 prints the image through the printer section 15.
本発明の最も重要な点として、制御11はキー
ボード10より禁則処理の指示があると、内部記
憶部12の文書に対して禁則処理を実施し、かつ
その処理状態を画面表示部13で表示せしめる。
制御部11は内部記憶部12に格納されているプ
ログラムに従つて禁則処理を実行する。第5図は
かかる禁則処理プログラムを示し、以下、第5図
及び画面表示部13での画面表示状態を示す第6
図を参照して、本装置の禁則処理を説明する。な
お第6図にて○印は通常文字、□は行頭禁則文
字、〓印は行末禁則文字、△印は禁則処理記号を
夫れ夫れ意味している。 The most important aspect of the present invention is that when the control 11 receives an instruction for prohibition processing from the keyboard 10, it performs prohibition processing on the document in the internal storage section 12, and displays the processing status on the screen display section 13. .
The control unit 11 executes the prohibition process according to a program stored in the internal storage unit 12. FIG. 5 shows such a prohibition processing program, and below, FIG.
The prohibition processing of this device will be explained with reference to the drawings. In FIG. 6, the ○ mark means a normal character, the □ mark means a character that cannot be used at the beginning of a line, the 〓 mark means a character that cannot be used at the end of a line, and the △ mark means a character that cannot be used at the end of a line.
禁則処理が開始されると、まず行ポインタLP
に“1”をセツトし、次いで該ポインタが指示す
る行の頭にカーソル20を位置する(第6図A)。
そしてカーソルの指示する文字、すなわち行頭の
文字が行頭禁則文字であるかを判定し、否の場合
カーソル20を同一行の行末に位置する(第6図
B)。同様にして、行末の文字が行末禁則文字で
あるかを判定し、否の場合行ポインタLPに“1”
を加算し、LPの内容が最終行(今の場合第24行)
を越えていない場合、再び行ポインタLPの指示
する新たな行の行頭にカーソルを位置する(第6
図C)。 When Kinsoku processing starts, the line pointer LP is first
is set to "1", and then the cursor 20 is positioned at the beginning of the line pointed to by the pointer (FIG. 6A).
Then, it is determined whether the character pointed to by the cursor, that is, the character at the beginning of the line, is a character that cannot be started at the beginning of a line, and if not, the cursor 20 is positioned at the end of the same line (FIG. 6B). Similarly, it is determined whether the character at the end of the line is a prohibited character at the end of the line, and if not, the line pointer LP is set to “1”.
and the contents of LP are the last line (in this case, the 24th line)
If the cursor has not exceeded the line pointer LP, position the cursor again at the beginning of the new line indicated by the line pointer LP (6th
Figure C).
上記行頭禁則文字の判断ステツプ(50)からカ
ーソルの行末への移動ステツプ(51)までの各ス
テツプは行頭の禁則文字に対する処理ステツプで
ある。すなわち、行頭に行頭禁則文字21があ
り、前行の行末及びその直前に行頭禁則文字がな
い場合(第6図D)、前行の行末の1文字22を
カーソル20の指示する位置に移動するととも
に、移動後の空白部に禁則処理記号23を挿入す
る(第6図E)。一方、行頭に行頭禁則文字24
があり、前行の行末に行頭禁則文字がなく、かつ
その直前に行末禁則文字25がある場合(第6図
F)、前行の行末の1文字26及びその直前の1
文字25を順次カーソル20の指示する行頭位置
に移動するとともに、移動後の空白部に禁則処理
記号27,28を挿入する(第6図G)。更に、
行頭及び前行の行末に夫れ夫れ行頭禁則文字29
及び30がある場合(第6図H)、前行の行末及
びその直前の各文字30,31を順次カーソル2
0の指示する行頭位置に移動するとともに、移動
後の空白部に禁則処理記号32,33を挿入する
(第6図I)。 Each of the steps from the step (50) for determining a character that cannot be placed at the beginning of a line to the step (51) for moving the cursor to the end of the line is a processing step for a character that cannot be placed at the beginning of a line. In other words, if there is a non-startable character 21 at the beginning of a line, and there is no non-startable character at the end of the previous line or immediately before it (FIG. 6D), move one character 22 at the end of the previous line to the position indicated by the cursor 20. At the same time, a prohibition processing symbol 23 is inserted into the blank space after the movement (FIG. 6E). On the other hand, at the beginning of the line, the non-starting character 24
If there is a non-starting character at the end of the previous line, and there is a non-starting character 25 immediately before it (Figure 6F), one character 26 at the end of the previous line and the 1 immediately before it.
The character 25 is sequentially moved to the line head position indicated by the cursor 20, and the prohibition processing symbols 27 and 28 are inserted into the blank space after the movement (FIG. 6G). Furthermore,
Non-first-line characters 29 at the beginning of a line and at the end of the previous line
and 30 (Figure 6H), move the cursor 2 sequentially to the end of the previous line and the characters 30 and 31 immediately before it.
0 and inserts the prohibition processing symbols 32 and 33 into the blank space after the movement (FIG. 6I).
上記カーソルの行末への移動ステツプ(51)か
ら行ポインタ更新ステツプ(52)までの各ステツ
プは行末の禁則文字に対応する処理ステツプであ
る。すなわち、行末禁則文字が行末にあり、かつ
その直前にない場合(第6図J)、行末の1文字
34を次行の行頭に移動すると共に、移動後の空
白部に禁則処理信号35を挿入する(第6図K)。
一方行末禁則文字が行末及びその直前にある場合
(第6図L)、これら各文字36,37を順次次行
の行頭に移動すると共に、移動後の空白部に禁則
信号38,39を挿入する。 Each step from the step of moving the cursor to the end of the line (51) to the step of updating the line pointer (52) is a processing step corresponding to an illegal character at the end of the line. In other words, if a character that is prohibited at the end of a line is present at the end of the line but not immediately before it (FIG. 6 J), the character 34 at the end of the line is moved to the beginning of the next line, and the prohibited character 35 is inserted into the blank space after the movement. (Figure 6K).
On the other hand, if the prohibited characters at the end of a line are at the end of the line or immediately before it (L in Figure 6), these characters 36 and 37 are sequentially moved to the beginning of the line, and prohibited signals 38 and 39 are inserted into the blank space after the movement. .
この様に、本発明の文書装置によつて行頭禁則
処理を行なう場合、当該行頭禁則文字の存在する
前行の行末文字及びその行末の直前の1文字を判
定することにより、前記行末の直前の1文字が行
末禁則文字に該当するときには、前記前行の行末
文字及びその行末の直前の1文字を行頭の前記行
頭禁則文字の直前に移動させて第3図A,Bの如
き処理とし、また前記行末文字が通常文字であ
り、その行末の直前の1文字が行末禁則文字に該
当しないときには、前記行末文字の通常文字のみ
を行頭の前記行頭禁則文字の直前に移動させる。 In this way, when the document device of the present invention performs the line-inhibited processing, the character immediately before the end of the line is determined by determining the line-end character of the previous line in which the line-inhibited character exists and the character immediately before the line end. When one character corresponds to a character that cannot be used at the end of a line, move the end-of-line character of the previous line and the character immediately before the end of the line to the position immediately before the character that cannot be used at the beginning of a line, and perform the processing as shown in Figure 3 A and B. When the line end character is a normal character and one character immediately before the line end does not correspond to a line end prohibited character, only the line end normal character is moved immediately before the line start prohibited character.
上記実施例の処理の拡張として、上記禁則判定
の対象を、連続する更に前方の文字にまで広げて
よいことはもちろんである。 As an extension of the processing of the above embodiment, it is of course possible to extend the subject of the prohibition determination to consecutive characters further forward.
なお、上記禁則処理記号はプリント処理の時に
利用される。すなわち制御部11は禁則処理記号
のある行については残りの文字の各間隔を禁則処
理記号の数に応じて均等に広げ、行末に空白が残
らない様にプリンタ部15でのプリントを制御す
る。 Note that the above-mentioned prohibition processing symbol is used during print processing. That is, the control unit 11 controls printing by the printer unit 15 so that the intervals between the remaining characters on a line containing a prohibition processing symbol are equally widened according to the number of prohibition processing symbols, and no blank space remains at the end of the line.
従つて、本発明の文書装置によつて行頭禁則処
理を行なう場合、当該行頭禁則文字の存在する前
行の行末文字及びその行末の直前の1文字を判定
することにより、前記行末の直前の1文字が行末
禁則文字に該当するときには、前記前行の行末文
字及びその行末の直前の1文字を行頭の前記行頭
禁則文字の直前に移動させ、また前記行末文字が
通常文字であり、その行末の直前の1文字が行末
禁則文字に該当しないときには、前記行末文字の
通常文字のみを行頭の前記行頭禁則文字の直前に
移動させるので、行末禁則文字が行末にほとんど
残らないようにすることができる。 Therefore, when the document device of the present invention performs a line-inhibited process, by determining the line-end character of the previous line in which the line-inhibited character exists and the character immediately before the end of the line, When a character corresponds to a character that cannot be used at the end of a line, the end-of-line character of the previous line and the character immediately before the end of the line are moved to the position immediately before the character that cannot be placed at the beginning of a line, and if the character at the end of the line is a normal character, the character at the end of the line is moved. When the immediately preceding character does not correspond to a character prohibited at the end of a line, only the normal character at the end of the line is moved immediately before the character prohibited at the beginning of the line, so that almost no prohibited character at the end of the line remains at the end of the line.
第1図ないし第3図はプリント状態を示す図、
第4図は本発明実施例装置のブロツク回路図、第
5図は同装置のプログラム流れ図、第6図は画面
表示状態を示す図である。
10:キーボード、11:制御部、12:内部
記憶部、13:画面表示部、15:プリンタ部。
Figures 1 to 3 are diagrams showing the printing state;
FIG. 4 is a block circuit diagram of an apparatus according to an embodiment of the present invention, FIG. 5 is a program flowchart of the apparatus, and FIG. 6 is a diagram showing a screen display state. 10: Keyboard, 11: Control unit, 12: Internal storage unit, 13: Screen display unit, 15: Printer unit.
Claims (1)
記憶する記憶部と、該記憶部への文書記憶を制御
する制御部とを備え、該制御部は、前記記憶部に
記憶されている文書の行頭文字が行頭禁則文字に
該当する場合、当該行頭禁則文字の存在する前行
の行末文字及びその行末の直前の1文字を判定す
ることにより、前記行末の直前の1文字が行末禁
則文字に該当するときには、前記前行の行末文字
及びその行末の直前の1文字を、また前記行末の
直前の1文字が行末禁則文字に該当しないときに
は、前記行末文字のみを前記行頭禁則文字の直前
に移動することを特徴とする文書装置。1. A storage unit that stores a document in a state in which the number of characters for one line is standardized, and a control unit that controls document storage in the storage unit, and the control unit is stored in the storage unit. If the first character of a document corresponds to a non-startable character, the character immediately before the end of the line is determined to be a non-end-of-line character by determining the end-of-line character of the previous line in which the non-startable character exists and the character immediately before the end of the line. If applicable, the end-of-line character of the previous line and the character immediately before the end of the line, and if the character immediately before the end of the line does not correspond to a non-end-of-line character, only the end-of-line character is placed immediately before the non-startable character. A document device characterized by being mobile.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57077265A JPS58195248A (en) | 1982-05-07 | 1982-05-07 | Text device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57077265A JPS58195248A (en) | 1982-05-07 | 1982-05-07 | Text device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS58195248A JPS58195248A (en) | 1983-11-14 |
JPH0447331B2 true JPH0447331B2 (en) | 1992-08-03 |
Family
ID=13629005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57077265A Granted JPS58195248A (en) | 1982-05-07 | 1982-05-07 | Text device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS58195248A (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61152139U (en) * | 1985-03-06 | 1986-09-20 |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5760385A (en) * | 1980-09-29 | 1982-04-12 | Canon Kk | Character processor |
-
1982
- 1982-05-07 JP JP57077265A patent/JPS58195248A/en active Granted
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5760385A (en) * | 1980-09-29 | 1982-04-12 | Canon Kk | Character processor |
Also Published As
Publication number | Publication date |
---|---|
JPS58195248A (en) | 1983-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0947930B1 (en) | Font sharing system and method, and recording medium storing program for executing font sharing method | |
EP0052724A2 (en) | Prompt line display arrangement in a word processing system | |
US5289573A (en) | Menu displaying apparatus for a word processor | |
JPH0447331B2 (en) | ||
EP0052711B1 (en) | Method of processing text by insertion of a block of text in a text processing system | |
JPH0522933B2 (en) | ||
JPH0733105B2 (en) | Ruled line printing method | |
JPS6038750B2 (en) | How to enter characters in a word processor | |
JPH01229673A (en) | English and european writing printing control system | |
JPH0359466B2 (en) | ||
JP2803087B2 (en) | Print processing device | |
JP2000181673A (en) | Document printer | |
JPH0679212B2 (en) | Display controller for variable pitch characters. | |
JP2612402B2 (en) | Display control method | |
JP3108936B2 (en) | Document processing device | |
JP2846211B2 (en) | Information processing device | |
JP3282647B2 (en) | Overlay printing system and method | |
JP3005344B2 (en) | Document processing device | |
JPS59123046A (en) | Display system of document processor | |
JP3416171B2 (en) | Graph processing apparatus and method | |
JPH076166A (en) | Setting method for document format | |
JPH10235823A (en) | Document composing device | |
JPH04118769A (en) | Document preparing device | |
JPH02165372A (en) | Character processor | |
Oets | The BASIC Factor |