JPH02297167A - Character string editing device - Google Patents

Character string editing device

Info

Publication number
JPH02297167A
JPH02297167A JP1048216A JP4821689A JPH02297167A JP H02297167 A JPH02297167 A JP H02297167A JP 1048216 A JP1048216 A JP 1048216A JP 4821689 A JP4821689 A JP 4821689A JP H02297167 A JPH02297167 A JP H02297167A
Authority
JP
Japan
Prior art keywords
buffer
code
character string
text
byte 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.)
Pending
Application number
JP1048216A
Other languages
Japanese (ja)
Inventor
Yoshikoto Inoue
井上 美琴
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP1048216A priority Critical patent/JPH02297167A/en
Publication of JPH02297167A publication Critical patent/JPH02297167A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To accelerate the speed for accessing a character string on a display by equalizing a digit position on the display and the digit position on a buffer to each other in an interactive text editor. CONSTITUTION:A character string storing means 102 stores the one-byte code of a text stored by a text reading means 101 in a first code buffer 202, and stores a two-byte code except a functional characters KI, KO in a second code buffer 203, and a character string editing means 103 stores the one-byte code and the two-byte code stored by the character string storing means 102 in an editing buffer 204 by editing them by using the functional characters KI, KO. A displaying means 104 displays these on the display 302. Thus, by equalizing the digit position on the display 302 to the digit positions on the buffers 202, 203, 204 in the case of accessing the character corresponding to the digit position on the display 302, the access speed can be accelerated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機システムに利用する。本発明は電子
計算機システムの対話型テキストエディタに関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention is applied to an electronic computer system. The present invention relates to an interactive text editor for electronic computer systems.

〔概要〕〔overview〕

本発明はテキストを格納し編集する文字列編集装置にお
いて、 テキストを1バイトコードと2バイトコードに区別して
それぞれを格納するバッファを備え、デイスプレイ上の
桁位置とバッファ上の桁位置を同一にすることにより、 ディスプレイ装置上の桁位置にある文字へのアクセスを
高速にすることができるようにしたものである。
The present invention provides a character string editing device for storing and editing text, which is provided with a buffer that stores the text by distinguishing it into 1-byte code and 2-byte code, and makes the digit position on the display the same as the digit position on the buffer. This makes it possible to speed up access to characters located at digit positions on a display device.

〔従来の技術〕[Conventional technology]

従来は、第4図(a)、(b)、(C)、(6)に示す
ように1バイトコードと2バイトコードとが混在するテ
キストの文字列41を機能文字KI、KOを含んでバッ
ファ42に格納しディスプレイに表示するとディスプレ
イ上の文字列43となり、ディスプレイ上の桁位置44
に対応する文字をアクセスするためにはバッファの先頭
から機能文字Kl、KOを除いた桁位置までの長さ45
を計算していた。
Conventionally, as shown in FIG. 4(a), (b), (C), and (6), a text string 41 containing a mixture of 1-byte code and 2-byte code was created by including function characters KI and KO. When stored in the buffer 42 and displayed on the display, it becomes a character string 43 on the display, and a digit position 44 on the display.
To access the character corresponding to , the length from the beginning of the buffer to the column position excluding the function characters Kl and KO is 45.
was calculating.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の技術では、ディスプレイ上の桁位置に対応する文
字をアクセスするためバッファの先頭から桁位置までの
長さを計算していた。このため、文字列処理の高速性に
欠ける欠点があった。
In conventional techniques, the length from the beginning of the buffer to the digit position is calculated in order to access the character corresponding to the digit position on the display. For this reason, there was a drawback that the speed of character string processing was lacking.

本発明はこのような欠点を除去するもので、文字列処理
を高速にできる装置を提供することを目的とする。
The present invention aims to eliminate such drawbacks and provides a device that can process character strings at high speed.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、1バイトコードと2バイトコードとが混在す
る文字列の1バイトコードと2バイトコードとの識別を
機能文字で区別するコード体系を用いたテキストを読み
込みテキストバッファに格納するテキスト読み込み手段
と、このテキスト読み込み手段によりテキストバッファ
に格納された1バイトおよび2バイトコードをバッファ
に格納する文字列格納手段と、この文字列格納手段によ
り格納された1バイトおよび2バイトコードを機能文字
を用いて編集し編集バッファに格納する文字列編集手段
と、この文字列編集手段により格納された編集コードを
ディスプレイに表示する表示手段とを備えた文字列編集
装置において、1バイトコードを一時保持する第一のコ
ードバッファと、2バイトコードを保持する第二のコー
ドバッファとを別に設け、前記文字列格納手段に、前記
テキストバッファに格納されたテキストの1バイトコー
ドを前記第一のコードバッファへ、2バイトコードを機
能文字を除いて前記第二のコードバッファへ格納する手
段を備えたことを特徴とする。
The present invention provides a text reading means for reading text and storing it in a text buffer using a code system that uses functional characters to distinguish between 1-byte code and 2-byte code in a character string in which 1-byte code and 2-byte code are mixed. and a character string storage means for storing in the buffer the 1-byte and 2-byte codes stored in the text buffer by this text reading means, and the 1-byte and 2-byte codes stored by this character string storage means using function characters. In a character string editing device, a character string editing device is provided with a character string editing means for editing and storing the edited code in an editing buffer, and a display means for displaying the edited code stored by the character string editing means on a display. A code buffer and a second code buffer holding a 2-byte code are separately provided, and the character string storage means transfers the 1-byte code of the text stored in the text buffer to the first code buffer; The present invention is characterized by comprising means for storing the 2-byte code, excluding functional characters, in the second code buffer.

〔作用〕[Effect]

文字列格納手段がテキスト読み込み手段により格納され
たテキストの1バイトコードを第一のコードバッファへ
、2バイトコードを機能文字Kl、KOを除いて第二の
コードバッファに格納し、文字列編集手段が文字列格納
手段により格納された1バイトコードと2バイトコード
を機能文字KI。
The character string storage means stores the 1-byte code of the text stored by the text reading means into a first code buffer, the 2-byte code excluding function characters Kl and KO into a second code buffer, and the character string editing means. The 1-byte code and 2-byte code stored by the character string storage means are stored as function characters KI.

KOを用いて編集し編集バッファに格納する。文字列編
集手段により格納された編集バッファを表示手段がディ
スプレイに表示する。
Edit using KO and store in the edit buffer. The display means displays the editing buffer stored by the character string editing means on the display.

このように、ディスプレイ上の桁位置に対応する文字ア
クセスする場合にディスプレイ上の桁位置とバッファ上
の桁位置を同一にすることにより、アクセスする速度を
高速にすることができる。
In this way, when accessing a character corresponding to a digit position on the display, by making the digit position on the display and the digit position on the buffer the same, the access speed can be increased.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。 Next, embodiments of the present invention will be described based on the drawings.

第1図は本発明実施例の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

本発明実施例は対話型テキストエディタ100を装置例
として説明する。
The embodiment of the present invention will be described using an interactive text editor 100 as an example of a device.

本発明実施例の対話型テキストエディタ100は、1バ
イトコードと2バイトコードとが混在する文字列の1バ
イトコードと2バイトコードとの識別を機能文字で区別
するコード体系を用いたテキスト301を読み込みテキ
ストバッファ201に格納するテキスト読み込み手段1
01 と、このテキスト読み込み手段101によりテキ
ストバッファ201に格納された1バイトおよび2バイ
トコードをバッファに格納する文字列格納手段102と
、この文字列格納手段102により格納された1バイト
および2バイトコードを機能文字を用いて編集し編集バ
ッファ204に格納する文字列編集手段103と、この
文字列編集手段103により格納された編集コードをデ
ィスプレイ302に表示する表示手段104とを備え、 前記バッファとして、1バイトコードを一時保持する第
一のコードバッファ (1バイトコードバツフア)20
2と、2バイトコードを保持する第二のコードバッファ
 (2バイトコードバツフア)203とを別に設け、文
字列格納手段102に、テキストバッファ201に格納
されたテキスト301の1バイトコードを第一のコード
バッファ(1バイトコードバツフア)202へ、2バイ
トコードを機能文字を除いて第二のコードバッファ(2
バイトコードバツフア)203へ格納する手段を備える
。
The interactive text editor 100 according to the embodiment of the present invention creates a text 301 using a code system that uses functional characters to distinguish between 1-byte codes and 2-byte codes in a character string in which 1-byte codes and 2-byte codes are mixed. Text reading means 1 to store in reading text buffer 201
01, a character string storage means 102 that stores in the buffer the 1-byte and 2-byte codes stored in the text buffer 201 by this text reading means 101, and the 1-byte and 2-byte codes stored by this character string storage means 102. a character string editing means 103 for editing the text using functional characters and storing the edited code in an editing buffer 204; and a display means 104 for displaying the edited code stored by the character string editing means 103 on a display 302; First code buffer that temporarily holds 1-byte code (1-byte code buffer) 20
2 and a second code buffer (2-byte code buffer) 203 that holds a 2-byte code are separately provided, and the 1-byte code of the text 301 stored in the text buffer 201 is stored in the character string storage means 102 as the first code buffer. The 2-byte code is transferred to the second code buffer (1-byte code buffer) 202, excluding function characters.
Bytecode buffer) 203 is provided.

本発明に直接関係しないテキスト書き出し手段、その他
の手段は省略する。
Text writing means and other means not directly related to the present invention are omitted.

テキスト読み込み手段101はテキスト301を読み込
みテキストバッファ201に格納する。
Text reading means 101 reads text 301 and stores it in text buffer 201.

文字列格納手段102はテキスト読み込み手段101で
格納されたテキストバッファ201を人力し1バイトコ
ードバツフア202と2バイトコードバツフア203と
に区別しながら格納する。
The character string storage means 102 manually stores the text buffer 201 stored by the text reading means 101 while distinguishing it into a 1-byte code buffer 202 and a 2-byte code buffer 203.

文字列編集手段103は文字列格納手段102で格納さ
れた1バイトコードバツフア202と2バイトコードバ
ツフア203 とを編集し編集バッファ204に格納す
る。
The character string editing means 103 edits the 1-byte code buffer 202 and the 2-byte code buffer 203 stored in the character string storage means 102 and stores them in the editing buffer 204.

表示手段104は文字列編集手段103で格納された編
集バッファ204をディスプレイ302に表示する。
The display means 104 displays the editing buffer 204 stored by the character string editing means 103 on the display 302.

次に、このように構成された本発明実施例の対話型テキ
ストエディタ100の動作を説明する。第2図はその動
作の流れを示す流れ図である。
Next, the operation of the interactive text editor 100 according to the embodiment of the present invention configured as described above will be explained. FIG. 2 is a flowchart showing the flow of the operation.

対話型テキストエディタ100は、テキスト301が人
力され起動されるとテキスト読み込み手段101を用い
てテキストバッファ201にテキストを格納する (ス
テップ501)。
The interactive text editor 100 stores the text in the text buffer 201 using the text reading means 101 when the text 301 is manually inputted and activated (step 501).

次に、テキストバッファ201に格納されたテキストを
1桁ずつ人力しくステップ502)、その文字が1バイ
トコードか2バイトコードかを調べ(ステップ503)
、1バイトコードか2バイトコードかを判定しくステッ
プ504)、1バイトコードであれば1バイトコードバ
ツフア202に格納しくステップ505)、2バイトコ
ードであれば2バイトコードバツフア203に格納しく
ステップ506)、テキストの終わりを判定する(ステ
ップ507)文字列格納手段102を起動する。
Next, manually read the text stored in the text buffer 201 one digit at a time (step 502), and check whether the character is a 1-byte code or a 2-byte code (step 503).
, determine whether it is a 1-byte code or a 2-byte code (step 504), if it is a 1-byte code, store it in the 1-byte code buffer 202 (step 505), and if it is a 2-byte code, store it in the 2-byte code buffer 203). Step 506), the end of the text is determined (step 507), and the character string storage means 102 is activated.

次に、1バイトコードバツフア202の先頭から調べ(
ステップ508)、空白以外が格納されているかを判定
しくステップ509)、空白以外が格納されていれば編
集バッファ204にその文字を格納しくステップ510
)、そうでなければ2バイトコードバツフア203の先
頭から調べ(ステップ511)、空白以外が格納されて
いるか否かを判定しくステップ512)、格納されてい
れば機能文字KI、KOを前に格納した文字と整合性を
取りながら補正してその文字を編集バッファ204に格
納しくステップ513)、そうでなければ編集バッファ
204に空白を格納しくステップ514)、編集バッフ
ァ204に格納した桁数分各バッファの桁位置をずらし
くステップ515)、1バイトコードバツフア202ト
1バイトコードバツフア202が終わりかを判定しくス
テップ516)、終わりでない場合ステップ508に戻
り、終わりのときは編集バッファ204を表示しくステ
ップ517)で終了する。
Next, check from the beginning of the 1-byte code buffer 202 (
Step 508) It is determined whether a character other than a blank space is stored.Step 509). If a character other than a blank space is stored, the character is stored in the editing buffer 204.Step 510
), otherwise it is checked from the beginning of the 2-byte code buffer 203 (step 511), and it is determined whether or not anything other than a blank space is stored (step 512), and if it is, the function characters KI and KO are stored in front. Correct the character while maintaining consistency with the stored character and store it in the editing buffer 204 (step 513), otherwise store a blank space in the editing buffer 204 (step 514), for the number of digits stored in the editing buffer 204. Shift the digit position of each buffer (step 515), determine whether the 1-byte code buffer 202 is finished (step 516), and if it is not the end, return to step 508; if it is the end, edit the buffer 202 The process ends at step 517).

次に、各バッファの状態を第3図(a)、(b)、(C
)、(6)、(e)を用いて説明する。
Next, the status of each buffer is shown in Figure 3 (a), (b), (C
), (6), and (e).

テキストバッファ31を入力し1バイトコードバツフア
32と2バイトコードバツフア33に区別して格納し、
1バイトコードバツフア32と2バイトコードバツフア
33を編集バッファ34に編集し表示するとディスプレ
イ302上の文字列35となる。
A text buffer 31 is input and stored separately in a 1-byte code buffer 32 and a 2-byte code buffer 33,
When the 1-byte code buffer 32 and the 2-byte code buffer 33 are edited and displayed in the editing buffer 34, a character string 35 appears on the display 302.

これにより、ディスプレイ上の桁位置の文字列をバッフ
ァ上から高速にアクセスすることが可能となる。
This makes it possible to access the character string at the digit position on the display from the buffer at high speed.

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

本発明は以上に説明したように、対話型テキストエディ
タにおいてディスプレイ上の桁位置とバッファ上の桁位
置を同一にすることにより、バッファ上の桁位置まで長
さを求める方式よりもディスプレイ上の文字列をアクセ
スする速度を高速にすることができる効果がある。
As explained above, the present invention makes the digit position on the display the same as the digit position on the buffer in an interactive text editor, so that the character on the display This has the effect of increasing the speed of accessing columns.

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

第1図は本発明実施例の構成を示すブロック図。 第2図は本発明実施例の動作の流れを示す流れ図。 第3図は本発明実施例における各バッファの関係を示す
図。 第4図は従来技術における各バッファの関係を示す図。 100・・・対話型テキストエディタ、101・・・テ
キスト読み込み手段、102・・・文字列格納手段、1
03・・・文字列編集手段、104・・・表示手段、2
01・・・テキストバッファ、202 ・・・1バイト
コードノイツフア、203・・・2バイトコードバツフ
ア、204・・・編集ノくツファ、301・・・テキス
ト、302・・・ディスプレイ。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a flowchart showing the operation flow of the embodiment of the present invention. FIG. 3 is a diagram showing the relationship between each buffer in the embodiment of the present invention. FIG. 4 is a diagram showing the relationship between buffers in the prior art. 100... Interactive text editor, 101... Text reading means, 102... Character string storage means, 1
03... Character string editing means, 104... Display means, 2
01...Text buffer, 202...1 byte code buffer, 203...2 byte code buffer, 204...edit buffer, 301...text, 302...display.

Claims (1)

【特許請求の範囲】 1、1バイトコードと2バイトコードとが混在する文字
列の1バイトコードと2バイトコードとの識別を機能文
字で区別するコード体系を用いたテキストを読み込みテ
キストバッファに格納するテキスト読み込み手段と、 このテキスト読み込み手段によりテキストバッファに格
納された1バイトおよび2バイトコードをバッファに格
納する文字列格納手段と、 この文字列格納手段により格納された1バイトおよび2
バイトコードを機能文字を用いて編集し編集バッファに
格納する文字列編集手段と、この文字列編集手段により
格納された編集コードをディスプレイに表示する表示手
段と を備えた文字列編集装置において、 1バイトコードを一時保持する第一のコードバッファと
、2バイトコードを保持する第二のコードバッファとを
別に設け、 前記文字列格納手段に、前記テキストバッファに格納さ
れたテキストの1バイトコードを前記第一のコードバッ
ファへ、2バイトコードを機能文字を除いて前記第二の
コードバッファへ格納する手段を備えた ことを特徴とする文字列編集装置。
[Claims] 1. Text is read and stored in a text buffer using a code system that distinguishes between 1-byte code and 2-byte code using functional characters in a character string in which 1-byte code and 2-byte code are mixed. text reading means for storing in the buffer the 1-byte and 2-byte codes stored in the text buffer by the text reading means;
A character string editing device comprising a character string editing means for editing a bytecode using functional characters and storing the edited code in an editing buffer, and a display means for displaying the edited code stored by the character string editing means on a display, comprising: 1 A first code buffer that temporarily holds a byte code and a second code buffer that holds a 2-byte code are separately provided, and the 1-byte code of the text stored in the text buffer is stored in the character string storage means. A character string editing device comprising means for storing a 2-byte code excluding functional characters into a first code buffer and storing the 2-byte code into the second code buffer.
JP1048216A 1989-02-28 1989-02-28 Character string editing device Pending JPH02297167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1048216A JPH02297167A (en) 1989-02-28 1989-02-28 Character string editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1048216A JPH02297167A (en) 1989-02-28 1989-02-28 Character string editing device

Publications (1)

Publication Number Publication Date
JPH02297167A true JPH02297167A (en) 1990-12-07

Family

ID=12797218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1048216A Pending JPH02297167A (en) 1989-02-28 1989-02-28 Character string editing device

Country Status (1)

Country Link
JP (1) JPH02297167A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05135026A (en) * 1991-11-15 1993-06-01 Pfu Ltd Document editing processing system
JPH076168A (en) * 1993-02-03 1995-01-10 Internatl Business Mach Corp <Ibm> How to edit structured document providing SBCS font and DBCS font using DBCS code page
JPH0793335A (en) * 1993-06-07 1995-04-07 Internatl Business Mach Corp <Ibm> How to provide text language features

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05135026A (en) * 1991-11-15 1993-06-01 Pfu Ltd Document editing processing system
JPH076168A (en) * 1993-02-03 1995-01-10 Internatl Business Mach Corp <Ibm> How to edit structured document providing SBCS font and DBCS font using DBCS code page
JPH0793335A (en) * 1993-06-07 1995-04-07 Internatl Business Mach Corp <Ibm> How to provide text language features

Similar Documents

Publication Publication Date Title
JPH02208716A (en) Character and pattern output device
JPS6244661B2 (en)
JPS59191646A (en) Data processing system
JPS63288357A (en) Data editing method
JPS6255189B2 (en)
AU598010B2 (en) Text editor for multidimensional or multidirectional text
JP2758778B2 (en) Print data output method
JPH0648434B2 (en) CRT display screen device
KR860003531Y1 (en) Hangul(korean character) code selector
JPH0462586B2 (en)
JPH04167123A (en) Mixed data processing system
JPH05100657A (en) 2-byte full-width character display control method
JPS60103429A (en) Kana-Kanji conversion device
JPH0797371B2 (en) Character data storage
JPS5561879A (en) Optical character reader
JPS5981676A (en) Kanji learning machine
JPS6263367A (en) Kana/kanji converting device
JPH0352102B2 (en)
JPS61190385A (en) Multi-window display system for display unit
JPH05224852A (en) Display system for picture display data
JPH03116223A (en) Screen control method for variable length data input
JPS60204026A (en) Chinese character data displaying system
JPS58203547A (en) Column processing method
JPH0256059A (en) document creation device
Rudd File Tailoring (Skeleton) Services