JPS62140162A - Document processing system - Google Patents

Document processing system

Info

Publication number
JPS62140162A
JPS62140162A JP60282317A JP28231785A JPS62140162A JP S62140162 A JPS62140162 A JP S62140162A JP 60282317 A JP60282317 A JP 60282317A JP 28231785 A JP28231785 A JP 28231785A JP S62140162 A JPS62140162 A JP S62140162A
Authority
JP
Japan
Prior art keywords
character
width
line
buffer
full
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
JP60282317A
Other languages
Japanese (ja)
Other versions
JP2651138B2 (en
Inventor
Fumiko Kobayashi
文子 小林
Naoko Isohara
磯原 直子
Keiko Ishii
啓子 石井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP60282317A priority Critical patent/JP2651138B2/en
Publication of JPS62140162A publication Critical patent/JPS62140162A/en
Application granted granted Critical
Publication of JP2651138B2 publication Critical patent/JP2651138B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To discriminate whether a blank space formed at the end of a line is an intentional blank space or that for display control, by setting a specific character code showing invalidity at the position of a half-em character in case an em character is set at the half-em character position at the end of a line. CONSTITUTION:A memory 2 is controlled via a processor 1 and both em and half-em characters are written mixedly on a buffer 5 in response to the input of a keyboard 4 and displayed on a display device 6. In this case, a special character code showing invalidity is set at the position of a half-em character if an em character is set at said half-em character position at the end of a line of a buffer 5 by a processor 1. Thus the em character is shifted to the head of the next line. In such a way, it is decided whether a blank space formed at the line end is an intentional space or the one for display control. Then the blank space for display control can be used effectively.

Description

【発明の詳細な説明】 〔概 要〕 全角及び半角文字を混合して扱う文書処理装置の文書処
理方式である。表示バッファで、表示面の行の最後に半
角文字の空きができて、続(文字が全角の場合には、そ
の半角文字位置に無効文字位置を示す特定コード(例え
ばヌルコード)を置き、その次に該全角文字コードを置
き、従って全角文字は次の行の先頭に表示されるように
する。
[Detailed Description of the Invention] [Summary] This is a document processing method for a document processing device that handles a mixture of full-width and half-width characters. In the display buffer, a half-width character becomes empty at the end of a line on the display surface, and the next character is filled in. (If the character is full-width, a specific code (for example, a null code) indicating an invalid character position is placed at the half-width character position, and the next Place the full-width character code in , so that the full-width character will be displayed at the beginning of the next line.

この方式により、文書の’tM’JL、印刷等の場合に
は、該特定コードを識別して、例えば続(全角文字以下
の文書を詰める等の処理を要することが効率良く識別で
きる。
With this method, in the case of 'tM'JL, printing, etc. of a document, the specific code can be identified and it can be efficiently identified that, for example, processing such as continuation (continuation (continuation), etc. (reducing documents with full-width characters or less) is required.

〔産業上の利用分野〕[Industrial application field]

本発明は、全角文字及び半角文字を混合して扱う文書処
理装置、特に日本語の文書処理装置における文書処理方
式に関する。
The present invention relates to a document processing method in a document processing device that handles a mixture of full-width characters and half-width characters, particularly in a Japanese document processing device.

特に日本語文書処理装置において、所定の標準字形のい
わゆる全角文字と、その1/2の文字位置を占める、い
わゆる半角文字とを、1文書中で自由に混合して使用で
きることが望まれる。
In particular, in a Japanese document processing device, it is desired that so-called full-width characters of a predetermined standard character shape and so-called half-width characters occupying half the character positions can be freely mixed and used in one document.

このように両種文字を混合できる方式では、更に全角文
字の位置を半角文字と同じ任意の位置から始まるように
配置できることが望まれる。
In such a system that allows both types of characters to be mixed, it is further desirable to be able to arrange the full-width characters so that they start from the same arbitrary position as the half-width characters.

〔従来の技術と発明が解決しようとする問題点〕第2図
は文書処理装置の一構成例を示すプロ、。
[Prior art and problems to be solved by the invention] FIG. 2 shows an example of the configuration of a document processing device.

り図である。This is a diagram.

プロセッサ1はメモリ2にロードされたプログラム3を
実行することにより、キーボード4から入力される指令
及び文字情報を受信して処理し、メモリ2上のバッファ
5に文書を逐次設定し、該バッファ5の内容及び所要の
メソセージ等を、いわゆるCRTディスプレイ等からな
る表示装置6に表示する。
By executing the program 3 loaded into the memory 2, the processor 1 receives and processes commands and character information input from the keyboard 4, sequentially sets documents in the buffer 5 on the memory 2, and stores the documents in the buffer 5. The content and required messages are displayed on a display device 6 such as a so-called CRT display.

又、プロセッサ1はメモリ2上で作成した文書を、逐次
ディスク記憶装置等の記憶装置7に格納し、又指令に応
じて記憶装置7から文書の一部をメモリ2にロードして
処理する。記憶装置7には、文書の他に、プログラム、
かな漢字変換のための辞書、文字パターン等を記憶し、
プロセッサ1はそれらを随時読み出して、処理及び表示
装置6の制御等に使用する。
Further, the processor 1 sequentially stores the document created on the memory 2 in a storage device 7 such as a disk storage device, and also loads a portion of the document from the storage device 7 into the memory 2 in response to a command for processing. In addition to documents, the storage device 7 stores programs,
Memorizes dictionaries, character patterns, etc. for kana-kanji conversion,
The processor 1 reads them as needed and uses them for processing, controlling the display device 6, and the like.

バッファ5は、例えば第3図に示すように、適当な行数
の行10からなる記憶領域であり、各行10は、表示装
置6の表示面に対応した所定の文字数の、半角文字に対
応する文字コードを保持することのできる文字フィール
ド11からなる。
For example, as shown in FIG. 3, the buffer 5 is a storage area consisting of an appropriate number of lines 10, and each line 10 corresponds to a predetermined number of half-width characters corresponding to the display surface of the display device 6. It consists of a character field 11 that can hold a character code.

例えば公知の1コ一ド体系を使用する場合に、半角文字
は8ビツト、全角文字は16ビツトで表されるので、各
文字フィールド11を8ビツトの1バイトとし、全角文
字は連続する2文字フィールドを使用して表す。
For example, when using the well-known one-code system, half-width characters are represented by 8 bits and full-width characters by 16 bits, so each character field 11 is represented by one 8-bit byte, and a full-width character is represented by two consecutive characters. Represent using fields.

例えば第4図の■に示すように全角文字A、全角文字B
、半角文字123がバッファ5に入力されて、行の末尾
に半角文字位置12が1個だけ残った状態になると、カ
ーソル(図に回によって示す)は該半角文字位置12に
あって、その位置から入力可能なことを示している。
For example, as shown in Figure 4 ■, full-width character A, full-width character B
, when a half-width character 123 is input into the buffer 5 and only one half-width character position 12 remains at the end of the line, the cursor (indicated by times in the figure) is at the half-width character position 12 and This indicates that input is possible from .

しかし、こ\で全角文字の例えばCを入力すると、この
行には全角文字を表示する位置がないので、■に示すよ
うに、強制的に半角文字位置12には「空白」が入力さ
れたものとし、入力文字Cを次の文字位置である次の行
の先頭の2半角文字位置に表示するように該文字コード
を置く。
However, if you enter a full-width character such as C here, there is no position to display a full-width character on this line, so "blank" is forced into half-width character position 12, as shown in ■. Then, the character code is placed so that the input character C is displayed at the next character position, which is the first two half-width character position of the next line.

その結果、この文書に挿入/削除等が行われて半角文字
位置12にあった空白の位置が移動した場合、咳空白が
文書作成者の意図によるか否かの識別ができないために
、■のように空白として保存せざるを得す、この空白を
詰めるためには、作成者が「削除」の操作を行う必要が
ある。
As a result, if insertion/deletion, etc. is performed in this document and the position of the blank space at half-width character position 12 is moved, it will not be possible to determine whether the cough space was intended by the document creator or not. In order to fill in the blank space, the creator must perform the "delete" operation.

又、前記例の全角文字Cが、何等かの半角文字に書き直
された場合、行をつないで1行に印刷する場合等にも、
作成者の意図に関わらず、空白として残されてしまうと
いう問題があった。
Also, if the full-width character C in the example above is rewritten to some kind of half-width character, or if the lines are connected and printed on one line, etc.
Regardless of the creator's intentions, there was a problem in that they were left blank.

c問題点を解決するための手段] 第1図は、本発明の処理の流れ図である。cMeans for solving problems] FIG. 1 is a flowchart of the process of the present invention.

図は第2図のバッファ5に文字コードをセットする処理
の流れを示し、20〜26は処理のステップである。
The figure shows the flow of processing for setting a character code in the buffer 5 of FIG. 2, and 20 to 26 are processing steps.

〔作 用〕[For production]

キーボード4から入力される文字等、バッファ5の現カ
ーソル位置に設定すべき1文字がステップ20で決定す
ると、ステップ21で現カーソルが行の末尾の半角文字
位置か判定し、末尾でなければステップ25へ進む。
When one character to be set at the current cursor position in the buffer 5, such as a character input from the keyboard 4, is determined in step 20, it is determined in step 21 whether the current cursor is at the half-width character position at the end of the line, and if it is not at the end, the step Proceed to step 25.

行の末尾の場合には、ステップ22で受信文字が全角文
字かを、文字コードによって識別し、半角文字であれば
ステップ25へ進む。
If it is at the end of the line, it is determined in step 22 whether the received character is a full-width character or not using a character code, and if it is a half-width character, the process proceeds to step 25.

全角文字であれば、ステップ23において、現カーソル
位置、即ち行の末尾の半角文字位置に、無効文字位置を
示すように定めた特定コードをセントする。
If it is a full-width character, in step 23, a specific code determined to indicate an invalid character position is placed at the current cursor position, that is, at the half-width character position at the end of the line.

ステップ24でカーソル位置を次の文字位置、即ち次の
行の第1文字位置に更新した後、ステップ25に進む。
After updating the cursor position to the next character position, ie, the first character position of the next line, in step 24, the process proceeds to step 25.

ステップ25では、従来と同様に、現カーソル位置に始
まる1又は2ハイドの文字フィールドに、受信文字の文
字コードを設定し、ステップ26でカーソルを次の文字
位置へ進めて処理を終わる。
In step 25, the character code of the received character is set in the 1- or 2-hide character field starting at the current cursor position, and in step 26, the cursor is advanced to the next character position, and the process ends.

以上により、行末の空きが、文書作成者の意図する空白
か、表示制御上の空きかの識別が可能となり、表示制御
上の空きの場合には、制御上の必要がなくなった場合に
は、その文字位置を後続文字列で埋めること等が可能に
なる。
As described above, it is possible to identify whether a blank space at the end of a line is a blank space intended by the document creator or a blank space for display control purposes, and if it is a blank space for display control purposes, if it is no longer necessary for control purposes, It becomes possible to fill that character position with a subsequent character string, etc.

〔実施例〕〔Example〕

第1図に示す処理により、文字コードを設定するバッフ
ァは、前記と同様の構成のバッファ5とする。
Through the process shown in FIG. 1, the buffer in which the character code is set is the buffer 5 having the same configuration as described above.

バッファ5の現カーソル位置に設定すべき1文字がステ
ップ20で決定するとする。
Assume that one character to be set at the current cursor position in buffer 5 is determined in step 20.

そのような場合は、新規又は挿入のための1文字の入力
がキーボード4から行われた場合、バッファ5に既に設
定されている文書に文字列の挿入/削除が行われて、バ
ッファ上の文字列を順次移動する場合等がある。
In such a case, when a single character for new or insertion is entered from the keyboard 4, the character string is inserted/deleted in the document already set in the buffer 5, and the characters on the buffer are There are cases where the columns are moved sequentially.

次のステップ21で現カーソルが行の末尾の半角文字位
置か判定し、末尾でなければ特別の処理を必要とし7な
いので、ステップ25へ進む。
In the next step 21, it is determined whether the current cursor is at the half-width character position at the end of the line, and if it is not at the end, no special processing is required, so the process proceeds to step 25.

行の末尾の場合には、ステップ22で受信文字が全角文
字かを、文字コードによって識別し、半角文字であれば
特別の処理を要しないので、直らにステップ25へ進む
If the received character is at the end of the line, it is determined in step 22 whether the received character is a full-width character or not using a character code, and if it is a half-width character, no special processing is required, so the process immediately proceeds to step 25.

全角か半角かの識別は、例えば文字コードの最上位1ビ
ツトによって識別され、全角文字コードの場合該ビット
以下の2バイト、半角文字コードの場合1バイトが有効
コードとなる。
Identification of full-width or half-width is made, for example, by the most significant 1 bit of the character code; in the case of a full-width character code, the 2 bytes below this bit, and in the case of a half-width character code, the 1 byte is the valid code.

ステップ22の判定で全角文字と識別した場合には、ス
テップ23に進んで、現カーソル位置、即ち行の末尾の
半角文字位置に、無効文字位置を示すように定めた特定
コードをセットする。この特定コードとしては、例えば
いわゆるヌル(null)コードを使うことができる。
If it is determined in step 22 that it is a full-width character, the process proceeds to step 23, where a specific code determined to indicate an invalid character position is set at the current cursor position, that is, at the half-width character position at the end of the line. As this specific code, for example, a so-called null code can be used.

このヌルコード等の特定コードは、表示装置6における
表示には、例えば空白と同様に、地色のま−の空き位置
として表示する。あるいは、特別の表示を定めて、無効
位置であることを積極的に表示するようにしてもい。
The specific code such as the null code is displayed on the display device 6 as a blank space with a background color, similar to a blank space, for example. Alternatively, a special display may be provided to actively indicate that the position is invalid.

ステップ24でカーソル位置を次の文字位置、即ち次の
行の第1文字位置に更新した後、ステップ25に進む。
After updating the cursor position to the next character position, ie, the first character position of the next line, in step 24, the process proceeds to step 25.

ステップ25では、従来と同様に、現カーソル位置に始
まる1又は2バイトの文字フィールドに、受信文字の文
字コードを設定し、ステップ26でカーソルを次の文字
位置へ進めて処理を終わる。
In step 25, the character code of the received character is set in the 1- or 2-byte character field starting at the current cursor position, and in step 26, the cursor is advanced to the next character position, and the process ends.

第4図の例の場合について、前記と同様に同図■の状態
で全角文字Cが入力されると、以上の第1図の処理を実
行することにより、バッファ5は第4図■に示すように
なる。
In the case of the example shown in Figure 4, when the full-width character C is input in the state shown in ■ in the same figure as described above, by executing the process shown in Figure 1 above, the buffer 5 is created as shown in ■ in Figure 4. It becomes like this.

又、例えばこの文書に文字列の削除があって、前記第4
図■に示すような関係位置にAB−が移動する場合等に
ついては、このように文字列を移動するだめの、第1図
の処理において、例えばス゛テップ20内で文字がヌル
コードかを識別するようにし、ヌルコードであれば、単
にその文字コードを捨てて処理を終わり、次の文字の処
理を始めるようにする。
Also, for example, if there is a character string deleted in this document, the fourth
In the case where AB- is moved to the related position as shown in Figure ■, in the process of Figure 1 to move the character string in this way, for example, in step 20, it is necessary to identify whether the character is a null code. and if it is a null code, simply discard that character code, finish processing, and start processing the next character.

この方式により、容易に第4図■のように、文書作成者
の意図しない空き文字位置を詰めることが自動的に行わ
れる。
With this method, empty character positions not intended by the document creator can be easily and automatically filled in, as shown in FIG. 4 (2).

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明によれば、全角
文字と半角文字を混合して扱うことのできる文書処理装
置において、表示制御上から行末に生じる半角文字位置
の空きを、所要の場合に自動的に埋めるように処理され
るので、装置の使い易さを向上する効果がある。
As is clear from the above description, according to the present invention, in a document processing device that can handle a mixture of full-width characters and half-width characters, empty spaces in half-width character positions that occur at the end of lines due to display control can be used as needed. This has the effect of improving the usability of the device.

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

第1図は本発明の処理の流れ図、 第2図は文書処理装置の一構成例ブロック図、第3図は
バッファ構成の説明図、 第4図は文字配列の説明図である。 図において、 1はプロセッサ、    2はメモリ、3はプログラム
、    4はキーボード、5はバッファ、     
6は表示装置、7は記憶装置、    10は行、 11は文字フィールド、 12は半角文字位置、第1図 文書処理装置の一構成例プロ、り同 第2図 バッファ構成の説明図 第 3 図 丈粍Jりの説明図 第4図
FIG. 1 is a flowchart of a process according to the present invention, FIG. 2 is a block diagram of an example of the configuration of a document processing device, FIG. 3 is an explanatory diagram of a buffer configuration, and FIG. 4 is an explanatory diagram of a character arrangement. In the figure, 1 is the processor, 2 is the memory, 3 is the program, 4 is the keyboard, 5 is the buffer,
6 is a display device; 7 is a storage device; 10 is a line; 11 is a character field; 12 is a half-width character position; Figure 4: Explanatory diagram of length

Claims (2)

【特許請求の範囲】[Claims] (1)バッファと、該バッファに保持される文字コード
に従って全角文字及び半角文字を混合して表示する表示
装置を有する文書処理装置において、該表示装置表示面
の各行の末端半角文字位置に始まる文字位置に、全角文
字が配置されることが検出された場合には、 上記表示バッファの該半角文字位置に、無効文字位置で
あることを示す特定文字コードを置き、該指定の全角文
字コードを該半角文字位置の直後の文字位置に置くよう
に構成されていることを特徴とする文書処理方式。
(1) In a document processing device having a buffer and a display device that displays a mixture of full-width characters and half-width characters according to character codes held in the buffer, characters starting at the terminal half-width character position of each line on the display surface of the display device. If it is detected that a full-width character is placed at a position, a specific character code indicating that it is an invalid character position is placed at the half-width character position in the display buffer, and the specified full-width character code is applied to the position. A document processing method characterized by being configured to place a character at a character position immediately after a half-width character position.
(2)上記特定文字コードは、上記表示面に空白として
表示されることを特徴とする特許請求の範囲第1項記載
の文書処理方式。
(2) The document processing method according to claim 1, wherein the specific character code is displayed as a blank on the display screen.
JP60282317A 1985-12-16 1985-12-16 Document processing device Expired - Lifetime JP2651138B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60282317A JP2651138B2 (en) 1985-12-16 1985-12-16 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60282317A JP2651138B2 (en) 1985-12-16 1985-12-16 Document processing device

Publications (2)

Publication Number Publication Date
JPS62140162A true JPS62140162A (en) 1987-06-23
JP2651138B2 JP2651138B2 (en) 1997-09-10

Family

ID=17650835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60282317A Expired - Lifetime JP2651138B2 (en) 1985-12-16 1985-12-16 Document processing device

Country Status (1)

Country Link
JP (1) JP2651138B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01125654A (en) * 1987-11-11 1989-05-18 Canon Inc Information processor
JPH04268632A (en) * 1991-02-22 1992-09-24 Fujitsu Ltd Conversion method for file including japanese language and alternate symbol

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS599691A (en) * 1982-07-09 1984-01-19 三菱電機株式会社 Character display

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS599691A (en) * 1982-07-09 1984-01-19 三菱電機株式会社 Character display

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01125654A (en) * 1987-11-11 1989-05-18 Canon Inc Information processor
JPH04268632A (en) * 1991-02-22 1992-09-24 Fujitsu Ltd Conversion method for file including japanese language and alternate symbol

Also Published As

Publication number Publication date
JP2651138B2 (en) 1997-09-10

Similar Documents

Publication Publication Date Title
EP0186007B1 (en) Apparatus, method, and structure for translating a document having one structure into a document having another structure
JPS5862728A (en) Copying system for text data
JPS6037944B2 (en) text processing device
JPS62140162A (en) Document processing system
EP0052711A1 (en) Method of processing text by insertion of a block of text in a text processing system
JPS62151891A (en) Document processing system
JPH0522933B2 (en)
JPH03179553A (en) Producing device for japanese document
JP2567187B2 (en) Character processing method
JPH04190450A (en) Document processor
JP3550715B2 (en) Document processing device
JP3104655B2 (en) Document data processing device
JPH03141461A (en) Document processor
JPH0440741B2 (en)
JPH06301673A (en) Document data processor
JPS61230194A (en) Word processor
JPH0546606A (en) Document input device
JPH0256670A (en) Document processing device
JPS62256071A (en) Character processor
JPS63219058A (en) Character processor
JPH03171252A (en) Character processor
JPH09171509A (en) Word processor
JPH0475164A (en) Document editing device
JPH01216462A (en) Document preparing device
JPH0233222A (en) Method for converting internal expression form of character string