JPH0646397B2 - Document processor - Google Patents
Document processorInfo
- Publication number
- JPH0646397B2 JPH0646397B2 JP57166685A JP16668582A JPH0646397B2 JP H0646397 B2 JPH0646397 B2 JP H0646397B2 JP 57166685 A JP57166685 A JP 57166685A JP 16668582 A JP16668582 A JP 16668582A JP H0646397 B2 JPH0646397 B2 JP H0646397B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- line
- input
- register
- code
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Input From Keyboards Or The Like (AREA)
- Digital Computer Display Output (AREA)
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】 本発明は、キーボード操作により、文書入力を行い、そ
の入力された文書を編集処理して出力する文書処理装置
に関し、特に欧米文や和文等の横書き文章中のひと区切
りを表わす段落あるいは節など(以下、パラグラフとい
う)に続く空白行を自動的に作成するようにした文書処
理装置に関するものである。The present invention relates to a document processing apparatus for inputting a document by a keyboard operation, editing and processing the input document, and outputting the document. In particular, the present invention relates to a document processing device for separating a horizontal sentence such as a Western sentence or a Japanese sentence. The present invention relates to a document processing device which automatically creates a blank line following a paragraph or a paragraph (hereinafter, referred to as a paragraph) indicating "."
従来、文書の入力を行うにあたって、ある行でパラグラ
フが終了した場合でも行間についての入力は連続行の入
力の場合と同じであった。Conventionally, when inputting a document, even when a paragraph ends at a certain line, the input about the line spacing is the same as the case of the continuous line input.
例えば、欧米文での各パラグラフ間は、行間が広くとら
れていることが多く、上述の場合には、改行指定などに
よって行間をあけてやらなければならず、タイピング作
業が煩雑であった。For example, the line spacing is often wide between European and American paragraphs, and in the above case, the line spacing must be opened by specifying a line break, and typing work is complicated.
本発明の目的は、上述の欠点を除去し、入力された文字
が当該入力行におけるる最後の文字であると判断された
ときには、その行の末の文字が文末を表す文字であるか
否かを判断し、当該入力行の末の文字が文末を表す文字
であると判断された場合には、次行を空白とするる機能
を有する文書処理装置を提供することにある。An object of the present invention is to eliminate the above-mentioned drawbacks, and when it is determined that the input character is the last character in the input line, whether the last character of the line is a character indicating the end of a sentence or not. If a character at the end of the input line is determined to be a character indicating the end of a sentence, the document processing apparatus has a function of leaving the next line blank.
以下、図面を参照し本発明の実施例を説明する。Embodiments of the present invention will be described below with reference to the drawings.
第1図は本発明文字処理装置の一実施例を示すブロック
図であり、ここで、1はキーボードであり、このキーボ
ード1には英数字、記号等の文字情報を入力するための
複数のキー、マージン情報を指示するためのマージンキ
ーおよびカーソルの移動キーが配置されている。FIG. 1 is a block diagram showing an embodiment of the character processing apparatus of the present invention, in which reference numeral 1 is a keyboard, and a plurality of keys for inputting character information such as alphanumeric characters and symbols on the keyboard 1. , A margin key for instructing margin information and a cursor movement key are arranged.
2はキーボード1のいずれかのキーの押下により入力さ
れたキー情報をこれに対応したコード信号に変換するた
めのエンコーダであり、3はエンコーダ2でコード化さ
れたキー情報がマージンキー入力であるか否かを判断す
るコード判別部である。Reference numeral 2 is an encoder for converting the key information input by pressing one of the keys of the keyboard 1 into a code signal corresponding to this, and 3 is the key information encoded by the encoder 2 is a margin key input. It is a code determination unit that determines whether or not.
4はカーソルの位置情報を示すレジスタである。このカ
ーソルレジスタ4は行数および各行内の水平位置を格納
している。Reference numeral 4 is a register indicating position information of the cursor. The cursor register 4 stores the number of rows and the horizontal position within each row.
5はコード判別部3によりマージン情報キーの入力であ
ると判別された場合に制御を開始する、マージン制御部
である。このマージン制御部5の詳細を第2図を参照し
て説明する。Reference numeral 5 denotes a margin control unit that starts control when the code determination unit 3 determines that the input is a margin information key. Details of the margin control unit 5 will be described with reference to FIG.
まず、ステップS1でキーコードが第1左マージンコード
であるか否かを判別し、第1左マージンコードであれ
ば、ステップS2に進み、逆に、そうでなければステップ
S3に進む。ステップS2ではカーソルレジスタ4の水平位
置のカーソル情報を第1左マージンレジスタ6に格納す
る。その後、ステップS3へ進む。ステップS3では、コー
ドが第2左マージンコードであるか否かを判別し、第2
左マージンコードであればステップS4へ、そうでなけれ
ばステップS5へ進む。ステップS4では第2左マージンレ
ジスタ7にカーソルレジスタ4の水平位置情報を格納し
てからステップS5に進む。ステップS5ではコードが右マ
ージンであるか否かを判別する。右マージンであればス
テップS6へ進み、カーソルレジスタ4の水平位置情報を
右マージンレジスタ8に格納する。この時、第1および
第2左マージンレジスタ6および7より水平位置が小さ
い場合は、1行の最大文字数の値をセットする。First, in step S1, it is determined whether or not the key code is the first left margin code. If the key code is the first left margin code, the process proceeds to step S2, and vice versa.
Proceed to S3. In step S2, the cursor information of the horizontal position of the cursor register 4 is stored in the first left margin register 6. Then, it progresses to step S3. In step S3, it is determined whether or not the code is the second left margin code, and the second
If it is the left margin code, proceed to step S4, otherwise proceed to step S5. In step S4, the horizontal position information of the cursor register 4 is stored in the second left margin register 7, and then the process proceeds to step S5. In step S5, it is determined whether the code has a right margin. If it is the right margin, step S6 follows and the horizontal position information of the cursor register 4 is stored in the right margin register 8. At this time, when the horizontal position is smaller than that of the first and second left margin registers 6 and 7, the value of the maximum number of characters in one line is set.
以上のようにしてマージン制御を終了し、キーボード1
からの入力待機状態とする。The margin control is completed as described above, and the keyboard 1
Wait for input from.
制御部9はコード判別部3によりマージンキー以外の入
力があった旨が判別された場合に制御を開始する。この
制御部9では、コード判別部3からの判別出力が処理の
塊始を指示する開始キーを意味するときには、カーソル
レジスタ4、第1左マージンレジスタ6および第2左マ
ージンレジスタ7をそれぞれ“1”初期化し、また右マ
ージンレジスタ8には1行の入力可能な最大の文字数値
をセットする。The control unit 9 starts the control when the code determination unit 3 determines that an input other than the margin key has been made. In the control unit 9, when the discrimination output from the code discriminating unit 3 means a start key for instructing the start of processing, the cursor register 4, the first left margin register 6 and the second left margin register 7 are respectively set to "1". "Initialization and the right margin register 8 is set to the maximum character value that can be input for one line.
また、制御部9では、コード半別部3からの判別出力が
文字状報コードある場合には、表示制御部10に該当文字
の表示を指令したり、文末制御部11に制御を指令したり
する。Further, in the control unit 9, when the discrimination output from the code semi-division unit 3 is a character report code, the display control unit 10 is instructed to display the corresponding character, and the sentence end control unit 11 is instructed to control. To do.
かかる詳細を第3図を参照して説明する。Such details will be described with reference to FIG.
まず、ステップS11では、入力キーがカーソル移動キー
であるか否かを判別する。カーソル移動キーであればス
テップS16へ進む。それ以外のときにはステップS12へ進
み、コードが文字コードである否かを判別する。文字コ
ードでなければステップS15に進む。文字コードであれ
ばステップ13に進み、表示制御部10に指令する。First, in step S11, it is determined whether or not the input key is the cursor movement key. If it is the cursor movement key, the process proceeds to step S16. Otherwise, the process proceeds to step S12, and it is determined whether the code is a character code. If it is not a character code, the process proceeds to step S15. If it is a character code, the process proceeds to step 13 to instruct the display control unit 10.
表示制御部10は、文字コードに対応した文字パターンを
キャラクタジェネレータ12より取り出してきて、表示部
13におけるカーソルレジスタ4の示す位置に表示する。
その後、ステップS14でカーソルレジスタ4の水平位置
を1進める。The display control unit 10 extracts a character pattern corresponding to the character code from the character generator 12, and displays the character pattern.
It is displayed at the position indicated by the cursor register 4 at 13.
Then, in step S14, the horizontal position of the cursor register 4 is advanced by 1.
続いて、ステップS15では、文末制御部11に文末処理の
制御を指令する。文末制御部11に関しては後述する。そ
の後、ステップS17へ移る。また、ステップS16ではカー
ソルレジスタ4の内容をカーソル移動キーで指定された
位置にセットする。ステップS17では、表示制御部10に
カーソルの表示を指令して制御を終了し、キーボード1
からの入力待ちとなる。Succeedingly, in a step S15, the end-of-sentence control unit 11 is instructed to control the end-of-sentence process. The sentence end control unit 11 will be described later. Then, it moves to step S17. Further, in step S16, the contents of the cursor register 4 are set at the position designated by the cursor movement key. In step S17, the display control unit 10 is instructed to display the cursor to end the control, and the keyboard 1
Wait for input from.
次に、文末制御部11における処理について説明する。Next, the processing in the sentence end control unit 11 will be described.
文末制御部11では、まず、入力キーがエンド・オブ・ペ
ージまたは文書作成開始等のコードであるか否かを判別
する。これらコードであれば、カーソルレジスタ4の水
平位置に第2左マージンレジスタ7の値をセットし、行
数を初期値“1”にセットする。The sentence ending control unit 11 first determines whether or not the input key is a code such as end of page or the start of document creation. With these codes, the value of the second left margin register 7 is set at the horizontal position of the cursor register 4, and the number of rows is set to the initial value "1".
また、キャリッジリターンコード入力の場合には、1つ
前の文字をサーチし、その1つ前の文字がピリオドであ
れば文末と判断し、第2左マージンレジスタ7の内容を
カーソルレジスタ4の水平位置にセットし、行数を2加
える。また、カーソルレジスタ4の水平位置がマージン
レジスタ8の内容と等しいか越えている場合、またはキ
ャリッジリターンコードの1つ前の文字がピリオド以外
の場合には、第1左マージンレジスタ6の値をカーソル
レジスタ4の水平位置にセットし、行数を+1加えて次
行にする。When a carriage return code is input, the character before the first character is searched, and if the character before the character is a period, it is determined to be the end of the sentence, and the content of the second left margin register 7 is set horizontally in the cursor register 4. Set to position and add 2 rows. When the horizontal position of the cursor register 4 is equal to or exceeds the content of the margin register 8 or when the character immediately before the carriage return code is not a period, the value of the first left margin register 6 is set to the cursor. It is set at the horizontal position of the register 4 and the number of rows is incremented by 1 to make it the next row.
第4図(A)および(B)は、それぞれ、本発明により文末処
理を施していない場合および施した場合の表示部13上の
表示結果を示す。ここで、左端の数字は行を示し、Kは
改行マーク、CSはカーソルを示す。FIGS. 4 (A) and 4 (B) show the display results on the display unit 13 with and without the sentence ending process according to the present invention. Here, the leftmost number indicates a line, K indicates a line feed mark, and CS indicates a cursor.
以上説明したとおり本発明によれば、入力された文末を
チェックしてパラグラフが終了したことを検出した場合
には、次のパラグラフとの間に数行、例えば1行の空白
行を自動的に付加することがきるので、パラグラフが終
了した後の空白行を操作者が意識することなく自動的に
入力することが可能となる。As described above, according to the present invention, when the end of a sentence is checked by detecting the end of a paragraph, a few lines, for example, one blank line, is automatically set between the paragraph and the next paragraph. Since it can be added, it becomes possible for the operator to automatically input a blank line after the paragraph is completed without being aware of it.
なお、上述した実施例では、各パラグラフ間の空白行を
1行に定めたが、かかる空白行の行数はキーボード1に
より任意に設定することも容易に考えることができる。In addition, in the above-described embodiment, the blank line between the paragraphs is set to one line, but the number of such blank lines can be easily set by the keyboard 1.
第1図は本発明文字処理装置の構成の1実施例を示すブ
ロック図、第2図はそのマージン制御部の動作を示すフ
ローチャート、第3図は同じくその制御部の動作を示す
フローチャート、第4図(A)および(B)はそれぞれ文末処
理を行わなない場合および文末処理を行った場合を示す
線図である。 1……キーボード、 2……エンコーダ、 3……コード判別部、 4……カーソルレジスタ、 5……マージン制御部、 6……第1左マージンジスタ、 7……第2左マージンレジスタ、 8……右マージンレジスタ、 9……制御部、 10……表示制御部、 11……文末制御部、 12……キャラクタジェネレータ、 13……表示部、 S1,S2,S3,S4,S5,S6,S11,S12,S13,S14,S15,S
16,S17……ステップ、 K……改行マーク、 CS……カーソル。FIG. 1 is a block diagram showing an embodiment of the configuration of the character processing device of the present invention, FIG. 2 is a flow chart showing the operation of the margin control unit, and FIG. 3 is a flow chart showing the operation of the control unit, and FIG. Figures (A) and (B) are diagrams showing the case where sentence ending processing is not performed and the case where sentence ending processing is performed, respectively. 1 ... Keyboard, 2 ... Encoder, 3 ... Code discriminating unit, 4 ... Cursor register, 5 ... Margin control unit, 6 ... First left margin register, 7 ... Second left margin register, 8 ... … Right margin register, 9 …… Control part, 10 …… Display control part, 11 …… Sentence control part, 12 …… Character generator, 13 …… Display part, S1, S2, S3, S4, S5, S6, S11 , S12, S13, S14, S15, S
16, S17 …… Step, K …… Line feed mark, CS …… Cursor.
Claims (1)
てかつ文末を表す文字であるか否かを判断する判断手段
と、 前記判断手段において、入力された文字が当該入力行に
おける最後の文字であってかつ文末を表す文字であると
判断された場合、前記出力手段により出力される前記文
末の文字が含まれる行の次の行を空白行とする制御手段
と を備えたことを特徴とする文書処理装置。1. An input unit for inputting a character, an output unit for outputting an input character, and whether or not the input character is the last character in the input line and represents the end of a sentence. The determining means for determining and the determining means, when the input character is determined to be the last character in the input line and the end-of-sentence character, the end-of-sentence character output by the output means And a control means for making the line next to the line including the line a blank line.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57166685A JPH0646397B2 (en) | 1982-09-27 | 1982-09-27 | Document processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57166685A JPH0646397B2 (en) | 1982-09-27 | 1982-09-27 | Document processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5957329A JPS5957329A (en) | 1984-04-02 |
| JPH0646397B2 true JPH0646397B2 (en) | 1994-06-15 |
Family
ID=15835831
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57166685A Expired - Lifetime JPH0646397B2 (en) | 1982-09-27 | 1982-09-27 | Document processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0646397B2 (en) |
-
1982
- 1982-09-27 JP JP57166685A patent/JPH0646397B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5957329A (en) | 1984-04-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0253653A2 (en) | Input control device | |
| JPS6037944B2 (en) | text processing device | |
| JPH0646397B2 (en) | Document processor | |
| US4402058A (en) | Keyboard mismatch correction | |
| EP0052711B1 (en) | Method of processing text by insertion of a block of text in a text processing system | |
| JPH0792797B2 (en) | Document processor | |
| EP0483368A1 (en) | Method of searching sequence program | |
| JP2615851B2 (en) | Key input device | |
| US4679952A (en) | Printing apparatus including tab position placement control | |
| JP2830113B2 (en) | Drawing input method | |
| JP2573183B2 (en) | Kana-Kanji conversion device | |
| JPH0222408B2 (en) | ||
| JP2621987B2 (en) | Document processing device | |
| JPS6231375B2 (en) | ||
| JP3108936B2 (en) | Document processing device | |
| JPS6136651B2 (en) | ||
| EP0470267A1 (en) | Document preparing device | |
| JP2542670B2 (en) | Word processor | |
| JPS6275756A (en) | Document layout display method | |
| JPS6041118A (en) | character processing device | |
| JPS59142632A (en) | character processing device | |
| JPH069047B2 (en) | Word processor | |
| JPH035876A (en) | Rubi kana (japanese syllabary alongside chinese character) input system | |
| JPH079705A (en) | Method of printing designated page in one lump and apparatus thereof | |
| JPH08212221A (en) | Character input device |