JPH0526227B2 - - Google Patents

Info

Publication number
JPH0526227B2
JPH0526227B2 JP57013082A JP1308282A JPH0526227B2 JP H0526227 B2 JPH0526227 B2 JP H0526227B2 JP 57013082 A JP57013082 A JP 57013082A JP 1308282 A JP1308282 A JP 1308282A JP H0526227 B2 JPH0526227 B2 JP H0526227B2
Authority
JP
Japan
Prior art keywords
width
character
characters
full
cursor
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
Application number
JP57013082A
Other languages
Japanese (ja)
Other versions
JPS58129636A (en
Inventor
Katsumi Masaki
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP57013082A priority Critical patent/JPS58129636A/en
Publication of JPS58129636A publication Critical patent/JPS58129636A/en
Publication of JPH0526227B2 publication Critical patent/JPH0526227B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、半巾文字(半角文字)及び全巾文字
(全角文字)の混在した文字列の処理を行う文字
処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a character processing device that processes a character string containing a mixture of half-width characters (half-width characters) and full-width characters (full-width characters).

[従来技術の説明とその課題] 従来半巾文字(半角文字)と全巾文字(全角文
字)との混在した文字列を取扱うことのできる文
字処理装置があつた。又一度全巾文字として入力
した文字列を半巾文字列に変換するという考え方
も既に存在し、オペレータが半巾文字や、全巾文
字を自由に入力するのに役立つている。
[Description of the prior art and its problems] Conventionally, there has been a character processing device that can handle character strings containing a mixture of half-width characters (half-width characters) and full-width characters (full-width characters). There also already exists a concept of converting a character string once input as a full-width character into a half-width character string, which is useful for operators to freely input half-width characters or full-width characters.

しかしながら、上記従来の文字処理装置にあつ
ては、既に入力された半巾文字と全巾文字の混在
した文字列において、半巾文字のみを全巾文字に
変換したり、全巾文字のみを半巾文字に変換した
りすることはできず、例えば既に入力された文字
列について半巾文字を全巾文字に変換したいと言
う欲求があつたときには、また始めから半巾文字
を全巾文字で入力し直さねばならず非常に不便で
あつた。
However, in the case of the above-mentioned conventional character processing device, in a character string that is already input as a mixture of half-width characters and full-width characters, only half-width characters are converted to full-width characters, or only full-width characters are converted to half-width characters. For example, if you want to convert half-width characters to full-width characters in a character string that has already been input, you will have to re-enter the half-width characters as full-width characters from the beginning. It was extremely inconvenient.

[課題を解決するための手段及び作用] 本発明の目的は、半巾文字と全巾文字とが混在
した状態の文字列において、半巾文字を再入力す
る必要なく、一括して全巾文字を半巾文字列に変
換することが可能な文字処理装置を提供すること
にある。
[Means and effects for solving the problem] An object of the present invention is to convert full-width characters into half-width characters at once in a character string in which half-width characters and full-width characters are mixed, without having to re-input the half-width characters. An object of the present invention is to provide a character processing device capable of converting characters into character strings.

本発明の他の目的は、全巾文字1文字あるい
は、半巾文字2文字を単位として処理を行う文字
処理装置にあつて、半巾文字に後続する全巾文字
のために半巾文字列の末尾に余分に付加されたと
考えられる半巾スペースコードを自動的に削除し
た上で一括して半巾にすることのできる文字処理
装置を提供することにある。
Another object of the present invention is to provide a character processing device that processes one full-width character or two half-width characters as a unit, and to add an extra character to the end of a half-width character string for a full-width character following a half-width character. To provide a character processing device capable of automatically deleting a half-width space code thought to have been added to a character and converting it to half-width at once.

本発明の目的は、1度半巾文字として入力した
文字列であつても、後から全巾文字に変換したい
という欲求があつた時に、再度全巾文字にて入力
しなおす必要がなく、一括して全巾文字に変換で
きる文字処理装置を提供することにある。
An object of the present invention is that even if a character string has been input as half-width characters once, when there is a desire to convert it to full-width characters later, there is no need to input it again in full-width characters, and the string can be converted to full-width characters all at once. An object of the present invention is to provide a character processing device that can convert characters into full-width characters.

本発明に係る文字処理装置は上記の目的を達成
するために、 全巾文字及び半巾文字を入力するための入力手
段と、 該入力手段により入力された全巾文字及び半巾
文字が混在する文字列を記憶する記憶手段と、 該記憶手段に記憶された文字列を表示する表示
手段と、 前記表示手段に表示された全巾文字を半巾文字
に変換することを指示する指示手段と、 前記指示された全巾文字が奇数個の場合、当該
全巾文字が変換された半巾文字と、該半巾文字の
後に半巾ダミーキヤラクタを付けて前記表示手段
に表示する表示制御手段とを有する。
In order to achieve the above object, the character processing device according to the present invention includes an input means for inputting full-width characters and half-width characters, and a character string input by the input means that includes a mixture of full-width characters and half-width characters. a display means for displaying the character string stored in the storage means; an instruction means for instructing to convert full-width characters displayed on the display means to half-width characters; If there is an odd number of full-width characters, the full-width character is converted into a half-width character, and display control means adds a half-width dummy character after the half-width character and displays it on the display means.

[実施例] 本発明の一実施例を説明する。[Example] An embodiment of the present invention will be described.

第5図に、本実施例の構成を示す。以下各構成
要素を説明する。
FIG. 5 shows the configuration of this embodiment. Each component will be explained below.

CPUは、中央演算処理ユニツトであり、本実
施例の制御を行う。
The CPU is a central processing unit and controls this embodiment.

ROMは、コントロールプログラムが格納され
る制御メモリであり、第7図〜第10図に示す制
御プログラムが格納される。
The ROM is a control memory in which a control program is stored, and the control programs shown in FIGS. 7 to 10 are stored therein.

RAMは、ランダムアクセスメモリであり、制
御メモリROMに格納された制御プログラムが実
行されるにあつてのワークレジスタとして使用さ
れる。
RAM is a random access memory and is used as a work register when the control program stored in the control memory ROM is executed.

KB1,KB2,KB3は、キーボードであり、
操作者が本装置に対する入力を行う。KB1は、
全巾文字を入力するためのキーボードであり、
KB1の内の1つのキーを押下することにより、
第6図aに示す全巾文字コードが出力される。
KB2は半巾文字入力を入力するためのキーボー
ドであり、KB2の内の任意の二つのキーを押下
することにより、半巾文字を二つペアにした形で
データが出力される。第6図bがその時に出力さ
れる、二つの半巾文字を示すコードである。KB
3は、フアンクシヨンキーから成る。
KB1, KB2, KB3 are keyboards,
The operator performs input to this device. KB1 is
A keyboard for entering full-width characters,
By pressing one of the keys in KB1,
The full-width character code shown in FIG. 6a is output.
KB2 is a keyboard for inputting half-width characters, and by pressing any two keys on KB2, data is output in the form of a pair of two half-width characters. Figure 6b shows the code that is output at that time and shows two half-width characters. KB
3 consists of function keys.

入力を開始する時に使用するイニシヤライズキ
ーINT, 入力した文字列を半巾化することを指示する半
巾化キーHZ, 入力した半巾文字の削除をするにあたつてカー
ソルが指し示す2つの半巾文字列の左側を削除す
ることを指示する削除キーLD, 入力した半巾文字の削除をするにあたつてカー
ソルが指し示す2つの半巾文字列の右側を削除す
ることを指示する右削除キーRD, 入力した全巾文字列を削除することを指示する
全巾削除キーAD, 入力した文字列を全巾化する全巾化キーAZ, CRT上のカーソルを移動させるカーソルキー
CU, 等から成る。
The initialization key INT used when starting input, the half-width conversion key HZ that instructs to convert the entered character string to half-width, and the two half-width character strings that the cursor points to when deleting the input half-width character. The right deletion key LD instructs to delete the left side of the two half-width characters pointed to by the cursor when deleting the input half-width character, and the right delete key RD instructs to delete the right side of the two half-width character strings pointed to by the cursor. Full-width delete key AD to instruct to delete a character string, Full-width key AZ to make the entered character string full-width, Cursor key to move the cursor on the CRT
It consists of CU, etc.

BUF1は、キーボードKB1,KB2から入力
された文字列を蓄えるバツフアーであり、このバ
ツフアー内に文章等情報が蓄えられる。
BUF1 is a buffer that stores character strings input from keyboards KB1 and KB2, and information such as sentences is stored in this buffer.

又BUF1の内容は後述するDISPに表示され
る。本実施例の場合、バツフアBUF1の容量は、
全巾文字が32文字分収納される容量である。
Also, the contents of BUF1 are displayed on DISP, which will be described later. In the case of this embodiment, the capacity of buffer BUF1 is
It has the capacity to store 32 full-width characters.

BUF2は、ワーク用バツフアであり、バツフ
アBUF1と同等の容量を有する。
BUF2 is a work buffer and has the same capacity as buffer BUF1.

CPはカーソルポインタで、表示装置DISP上に
示されるカーソルのアドレスを格納するレジスタ
であり、表示装置DISP上のカーソルと、バツフ
アBUF1のアドレスとを対応づけるものである。
CP is a cursor pointer, which is a register that stores the address of the cursor shown on the display device DISP, and associates the cursor on the display device DISP with the address of the buffer BUF1.

DISPは、カーソルポインタCPによつて示され
る位置にカーソルを表示し、又バツフアBUF1
の内容を表示する表示装置である。本実施例の場
合第1図aに示すように横8文字縦4行の文字列
が表示される。
DISP displays the cursor at the position indicated by the cursor pointer CP, and also displays the buffer BUF1.
This is a display device that displays the contents of. In this embodiment, a character string of 8 horizontal characters and 4 vertical lines is displayed as shown in FIG. 1a.

以上の構成より成る本実施例の動作を第7図〜
第10図を用い詳述する。電源をONすると、 以下の作動を行なう。
The operation of this embodiment with the above configuration is shown in Figures 7 to 7.
This will be explained in detail using FIG. When the power is turned on, the following operations occur.

まず、ステツプ1でキーボード上のキーが操作
されたかを調べる処理が行なわれる。もしキーが
操作されれば、ステツプ2以下の処理に移つて行
き、操作されたキーに応じた処理がなされる。
First, in step 1, a process is performed to check whether a key on the keyboard has been operated. If a key is operated, the process moves to step 2 and subsequent steps, and processing is performed in accordance with the operated key.

1 KBからのデータの入力を持つ。もし入力が
有れば、ステツプ2に進む。
It has an input of data from 1 KB. If there is an input, proceed to step 2.

2 KB(KB1,KB2,KB3)からのデータを
入力する。
Input data from 2 KB (KB1, KB2, KB3).

3 入力したデータの種別により処理の方法を判
断する。
3. Determine the processing method based on the type of input data.

もしイニシヤルライズキーであるならステツプ
4に進む もし、文字キーであるならステツプ5に進む もし半巾化キーであるならステツプ6に進む もし左削除キーであるならステツプ7に進む もし、右削除キーであるならステツプ8に進む もし、全巾削除キーであるならステツプ9に進
む もし、全巾化キーであるならステツプ10に進む もし、カーソルキーであるならステツプ11に進
む 4 イニシヤライズ処理を行う。即ち各種バツフ
ア、レジスタのイニシヤライズを行なう。
If it is an initialize key, go to step 4. If it is a character key, go to step 5. If it is a half-width key, go to step 6. If it is a left delete key, go to step 7. If it is a left delete key, go to step 7. If so, proceed to step 8. If it is a full-width deletion key, proceed to step 9. If it is a full-width change key, proceed to step 10. If it is a cursor key, proceed to step 11. 4. Perform initialization processing. That is, various buffers and registers are initialized.

5 文字入力処理を行なう。即ち入力したデータ
を、バツフアBUF1の中に書き込む。書き込
む位置はカーソルポインタCPが指し示す位置
に対応したアドレスの位置である。
5 Perform character input processing. That is, the input data is written into buffer BUF1. The writing position is the address position corresponding to the position pointed to by the cursor pointer CP.

書き込んだ後は、カーソルを1つ進める。 After writing, move the cursor forward one step.

6 半巾化処理を行う。即ちバツフアBUF1に
蓄えられた情報の半巾化を行う。詳細は後述す
る。
6 Perform half-width processing. That is, the information stored in the buffer BUF1 is reduced in width to half. Details will be described later.

7 左削除処理を行う。即ちカーソルが存在して
いる位置の文字が半巾2文字から成る時、その
左部分の削除を行なう。詳細は後述する。
7 Perform left deletion processing. That is, when the character at the cursor position consists of two half-width characters, the left part is deleted. Details will be described later.

8 右削除処理を行う。即ちカーソルが存在して
いる位置の文字が半巾2文字から成る時、その
右部分の削除を行う。詳細は後述する。
8 Perform right deletion processing. That is, when the character at the cursor position consists of two half-width characters, the right part is deleted. Details will be described later.

9 全巾削除処理を行う。即ちカーソルが存在し
ている位置の文字が全巾文字であるならば、そ
の文字を削除し、後続する文字をすべて左づめ
にする。
9 Perform full width deletion processing. That is, if the character where the cursor is located is a full-width character, that character is deleted and all subsequent characters are left-justified.

10 全巾化処理を行う。即ちバツフアBUF1に
蓄えられた文字列の全てを全巾化する。詳細は
後述する。
10 Perform full width processing. That is, all the character strings stored in buffer BUF1 are made full-width. Details will be described later.

11 カーソル移動処理を行う。カーソルを1つ歩
進させる。もし、カーソルがバツフアBUF1
の末尾をさしているならば、カーソルをバツフ
アBUF1の先頭を指すようにする。カーソル
を1つ歩進させるためには、カーソルポインタ
CPを1つインクリメントし、カーソルをバツ
フアBUF1の先頭に対応する位置に持つてく
るにはカーソルポインタCPを0にクリアすれ
ば良い。
11 Perform cursor movement processing. Move the cursor one step forward. If the cursor is BUF1
If it is pointing to the end of buffer BUF1, move the cursor to the beginning of buffer BUF1. To advance the cursor by one step, move the cursor pointer
To increment CP by one and move the cursor to the position corresponding to the beginning of buffer BUF1, clear the cursor pointer CP to 0.

前述のステツプ6の半巾化処理について第8図
を参照してさらに説明する。かかる処理の各ステ
ツプの内容を以下に示す 6,1 BUF1に入つている情報をすべてBUF
2に移す。その際既に半巾になつている文字は
全て全巾に変換した後BUF2に移すものとす
る。又半巾スペースの直ぐ次に全巾文字がある
時、その半巾スペースは、無意味なスペースで
あるのでBUF2へは移さないものとする。
The half-width processing in step 6 described above will be further explained with reference to FIG. The contents of each step of this process are shown below.6.1 All information contained in BUF1 is converted to BUF.
Move to 2. At that time, all characters that are already half-width will be converted to full-width and then transferred to BUF2. Also, when a full-width character immediately follows a half-width space, that half-width space is a meaningless space and should not be moved to BUF2.

6,2 BUF2にセーブされた情報を再びBUF
1に戻す。その際必ず二文字ずつバツキングを
行ないながら移す。二文字の全巾文字を二文字
の半巾文字にパツキングするためには各一文字
ごとに半巾文字コードを求め、第6図に示すフ
オーマツトに従つて、16bitのパツキングされ
たコードにする。
6.2 BUF the information saved in BUF2 again
Return to 1. When doing so, be sure to move two letters at a time. In order to pack two full-width characters into two half-width characters, find a half-width character code for each character and create a 16-bit packed code according to the format shown in Figure 6.

上述のステツプ6,1によつて行なわれた結果
を第1図bに示す。かかる処理についてさらにそ
の詳細を後述する。またステツプ6,2によつて
得られた結果を第1図cに示す。
The results obtained by step 6.1 above are shown in FIG. 1b. Further details of this processing will be described later. The results obtained in steps 6 and 2 are shown in FIG. 1c.

第8図を参照しステツプ6,1の詳細を以下に
示す。
Details of steps 6 and 1 will be described below with reference to FIG.

6,1,1 バツフアBUF1の内容を順に全巾
文字分づつ1つ取り出す。
6, 1, 1 Extracts the contents of buffer BUF1 one full width character at a time.

6,1,2 取り出したデータをバツフアBUF
2に順にセーブするのであるが、その前に場合
分けをする。
6, 1, 2 Buffer the retrieved data
Step 2 is to save in order, but before that, let's analyze the cases.

即ち、セーブしようとするデータが、全巾文
字データであるならば、ステツプ6,1,5に
進む。否なら6,1,3に進む。
That is, if the data to be saved is full-width character data, the process proceeds to steps 6, 1, and 5. If not, proceed to 6, 1, 3.

6,1,3 セーブしようとしているデータの次
のデータが全巾文字データであるならステツプ
6,1,4に進む。否ならステツプ6,1,6
に進む。
6, 1, 3 If the data following the data to be saved is full-width character data, proceed to steps 6, 1, 4. If not, step 6, 1, 6
Proceed to.

6,1,4 セーブしようとしているデータは、
二文字の半巾文字データであるが、その二文字
の内右側の文字がスペースであるならば、ステ
ツプ6,1,7に進む。否ならステツプ6,
1,6に進む。
6,1,4 The data you are trying to save is
If the data is two-character half-width characters, and the right-hand character of the two characters is a space, proceed to steps 6, 1, and 7. If no, step 6,
Proceed to steps 1 and 6.

6,1,5 セーブしようとするデータは、1文
字の全巾文字データであり、そのデータを
BUF2に順に移す。
6,1,5 The data to be saved is one full-width character data, and the data is
Move to BUF2 in order.

6,1,6 セーブしようとするデータは2文字
の半巾文字データであり、その二文字の半巾文
字データを二文字の全巾文字データに変換し、
BUF2に順に移す。それらのデータ構造は第
6図に示す通りであり容易に全巾コードに変換
することができる。
6,1,6 The data you are trying to save is two-character half-width character data, convert the two-character half-width character data to two-character full-width character data,
Move to BUF2 in order. Their data structure is as shown in FIG. 6 and can be easily converted into a full-width code.

6,1,7 セーブしようとするデータは、2文
字の半巾文字コードであり、かつその右側の文
字は、スペースである。この場合は、左側文字
のみセーブすることにする。
6, 1, 7 The data to be saved is a two-character half-width character code, and the character to the right is a space. In this case, only the characters on the left side will be saved.

6,1,8 BUF1にあるデータを全て、上記
の方法によりBUF2に移すまで6,1,1〜
6,1,7までのステツプを繰り返す。
6,1,1 ~ 6,1,1 until all data in BUF1 is transferred to BUF2 using the above method
Repeat steps 6, 1, and 7.

上述のステツプ6の半巾化処理により第1図a
に示す如き形態のバツフアBUF1の内容を第1
図cに示す如き形にさせる。従つて全巾文字と半
巾文字が混在している文字列の半巾化を行なうこ
とができる。
By the half-width processing in step 6 described above, FIG.
The contents of buffer BUF1 in the form shown in
Shape it as shown in Figure c. Therefore, a character string containing a mixture of full-width characters and half-width characters can be converted to half-width characters.

次に第7図に示すステツプ7の左削除処理の詳
細を第9図を参照して説明する。その各ステツプ
の詳細の内容を以下に示す。
Next, details of the left deletion process in step 7 shown in FIG. 7 will be explained with reference to FIG. The details of each step are shown below.

7,1 カーソルが存在する位置の文字が、全巾
文字であるならリターンする。否ならば即ち2
つの半巾文字から成るならばステツプ7,2に
進む。
7,1 Returns if the character at the cursor position is a full-width character. If no, that is 2
If it consists of two half-width characters, proceed to step 7,2.

7,2 半巾文字列がカーソル以降どこまで続く
かその範囲を決定する。
7,2 Determine how far the half-width character string continues after the cursor.

7,3 ステツプ7,2で決定された範囲内で先
頭の半巾文字を削除し、以降に続く全ての半巾
文字列を左へ1文字分だけシフトし、末尾には
半巾スペースを2つ埋める。
7, 3 Delete the first half-width character within the range determined in steps 7 and 2, shift all subsequent half-width characters to the left by one character, and fill in two half-width spaces at the end.

7,4 末尾に追加した半巾スペースの直ぐ左降
りの半巾文字スペースであるならステツプ7,
5に進む否ならリターンする。
7, 4 If it is a half-width character space immediately to the left of the half-width space added at the end, step 7.
If you do not want to proceed to 5, return.

7.5 追加した半巾スペースと直左の半巾スペー
スとの二つの半巾スペース文字を一括して削除
する。即ち、二つの半巾スペースを一つの全巾
スペースと同等と見なし、削除を行ない、以降
に続くすべての文字を、全巾1文字分だけ左側
にシフトする。この処理は、ステツプ9と同等
である。
7.5 Delete the two half-width space characters, the added half-width space and the half-width space immediately to the left, all at once. That is, two half-width spaces are treated as equivalent to one full-width space, deleted, and all subsequent characters are shifted to the left by one full-width space. This process is equivalent to step 9.

上述の処理を実行することにより例えば第3図
aに示す如き内容がバツフアBUF1に入つてい
るとき、カーソルで指示された「DE」のうちの
左側の「D」が解除され、そこで「D」以降に続
く半巾文字列「EFGHIJK」をすべて半巾1文字
分前に詰め(左方向に詰める)末尾に半巾スペー
スを追加する。かかる処理結果が第3図(b)であ
る。
By executing the above process, for example, when the content shown in FIG. Move all subsequent half-width character strings "EFGHIJK" forward by one half-width character (to the left) and add a half-width space at the end. The result of this processing is shown in FIG. 3(b).

次にステツプ8の右削除処理の詳細を第9図を
参照して説明する。第9図に示す右削除処理の各
ステツプの内容は以下の通りである。
Next, details of the right deletion process in step 8 will be explained with reference to FIG. The contents of each step of the right deletion process shown in FIG. 9 are as follows.

8,1 カーソルが存在する位置の文字が、全巾
文字であるならばリターンする。否ならば即ち
二つの半巾文字から成るならばステツプ8,2
に進む。
8,1 Returns if the character at the cursor position is a full-width character. If not, that is, if it consists of two half-width characters, step 8, 2
Proceed to.

8,2 カーソル以降、半巾文字が連続して続く
範囲を求める。
8, 2 Find the range of consecutive half-width characters after the cursor.

7,3 カーソルが存在する位置の次の文字が、
半巾文字であるならそれ以降に続く半巾文字を
すべて半巾文字分だけ左づめ(前づめ)にし、
末尾に半巾スペースを1つ追加する。その範囲
は、ステツプ8,2で決定された範囲である。
もし、カーソルが存在する位置の次の文字が全
巾文字であるならば、カーソルが存在する位置
の二つの半巾文字の内右側の半巾文字を半巾ス
ペースに変更する。
7,3 The next character at the cursor position is
If it is a half-width character, all subsequent half-width characters are left-justified (front-justified) by the half-width character.
Add one half-width space at the end. The range is the range determined in step 8,2.
If the next character at the cursor position is a full-width character, the right half-width character of the two half-width characters at the cursor position is changed to a half-width space.

8,4 追加又は、変更された半巾スペースの直
前(直左)の半巾文字が半巾スペースであるな
らばステツプ8,5に進む、否ならリターンす
る。
8,4 If the half-width character immediately before (directly to the left of) the added or changed half-width space is a half-width space, proceed to steps 8 and 5; otherwise, return.

8,5 追加又は、変更した半巾スペースとの二
つの半巾スペース文字を、一つの全巾スペース
文字と同様に一括して削除する。ステツプ7,
5あるいはステツプ9と同等である。
8, 5 Delete the added or changed half-width space and two half-width space characters at once in the same way as one full-width space character. Step 7,
5 or step 9.

上述の処理はカーソルキーによりカーソルマー
クを所望の位置に移動させた後、右削除キーを操
作することにより起動され実行される。バツフア
BUF1の内容が第4図aに示す如き半巾と全巾
との文字が混在している文字列で、今半巾の文字
「E」を削除する場合、上述の処理を実行するこ
とによりバツフアBUF1の内容は第4図bに示
す如き配列となる。そこでさらに半巾文字Fを削
除しようとすると、同様にF以降に続く半巾文字
がすべて左づめまたは前詰めされ半巾文字列の末
尾に半巾スペースが追加されるが、この場合2回
の半巾文字の削除により半巾スペースが2個連続
するので、ステツプ8,5で削除し、それ以降の
文字列を第4図cに示す如く前詰めまたは左詰め
する。
The above process is activated and executed by moving the cursor mark to a desired position using the cursor keys and then operating the right delete key. Batsuhua
If the content of BUF1 is a character string containing a mixture of half-width and full-width characters as shown in Figure 4a, and you want to delete the half-width character "E", by executing the above process, the buffer BUF1 can be deleted. The contents are arranged as shown in FIG. 4b. If you then try to delete the half-width character F again, all the half-width characters that follow F are left-justified or front-justified and a half-width space is added to the end of the half-width character string, but in this case, half-width characters are deleted twice. Since there are two consecutive half-width spaces, they are deleted in steps 8 and 5, and the subsequent character strings are front-justified or left-justified as shown in FIG. 4c.

次にステツプ10の全巾処理の詳細を第10図を
参照して説明する。第10図に示す全巾処理の各
ステツプの内容は以下の通りである。
Next, details of the full width processing in step 10 will be explained with reference to FIG. The contents of each step of the full-width processing shown in FIG. 10 are as follows.

10,1 ステツプ6,1と同等の処理を行う。10,1 Perform the same processing as step 6,1.

10,2 ステツプ10,1でバツフアBUF2に蓄
えられた情報をそのままバツフアBUF1に戻
す。
10, 2 The information stored in buffer BUF2 in steps 10 and 1 is returned to buffer BUF1 as is.

上述の処理は全巾化キーAZを操作することに
より起動され実行される。バツフアBUF1の内
容が第2図aに示す如き文字列であるとき、上述
の処理により第2図bに示す如く半巾の文字が全
巾化される。第2図cはバツフアBUF2の内容
を再びバツフアBUF1にもどしたところである。
The above process is activated and executed by operating the full width key AZ. When the content of the buffer BUF1 is a character string as shown in FIG. 2a, the half-width characters are converted to full-width characters by the above-described processing as shown in FIG. 2b. Figure 2c shows the contents of buffer BUF2 being returned to buffer BUF1.

1 本実施例においては、左削除キーと右削除キ
ーとを別に設けたが、例えば、コントロールキ
ーあるいは、制御キーあるいはコードキーと呼
ばれているシフトキーを用い、そのシフトキー
と半巾削除とを組み合わせて、左削除あるいは
右削除を指示しても良い。
1 In this embodiment, a left delete key and a right delete key are provided separately, but for example, by using a shift key called a control key, control key, or code key, and combining the shift key and half-width delete, , left deletion or right deletion may be instructed.

2 本実施例においては全巾単位の削除キーと半
巾単位の削除キーとを別に設けたが、例えばカ
ーソルが指し示している文字によつてそのモー
ド切換えを行つても良い。即ち、カーソルが全
巾文字を指し示していれば全巾削除を意味し、
半巾文字を指し示していれば半巾削除を意味す
るようにしても良い。さらにカーソルが半巾文
字を指し示している時、単に削除キーを押した
時は、左側半巾文字の削除が行なわれ、シフト
キーを押して又は押しながら削除キーを押した
時には右側半巾文字の削除が行なわれるように
しても良い。
2 In this embodiment, a full-width unit deletion key and a half-width unit deletion key are separately provided, but the mode may be switched by, for example, the character pointed to by the cursor. In other words, if the cursor points to a full-width character, it means full-width deletion.
If it points to a half-width character, it may mean half-width deletion. Furthermore, when the cursor points to a half-width character, simply pressing the delete key will delete the half-width character on the left, and pressing the shift key or holding down the shift key while pressing the delete key will delete the half-width character on the right. You can also do it.

3 内部処理としては、全巾文字も半巾文字も空
きなく、つまつた状態で処理できる(即ち半巾
文字が奇数個の時も余分なスペースコードを付
加する必要が無く処理できる)機能を有してい
るが、例えばCRTの表示機能のみつめた表示
ができない(即ち、半巾文字が奇数個連続して
存在する時は必ず半巾のスペースを1つ付加し
て表示しなければならない)場合は、CRTに
表示を行なおうとする時のみ半巾スペースを1
つ付加させて、表示する必要が有る。
3. As for internal processing, it has a function that can process both full-width characters and half-width characters without any space left and in a jammed state (that is, even when there is an odd number of half-width characters, it can be processed without the need to add extra space codes). However, for example, if it is not possible to display only the display functions of a CRT (i.e., when an odd number of half-width characters are consecutively displayed, one half-width space must be added to the display), the CRT 1 half-width space only when trying to display
It is necessary to add one and display it.

4 半巾文字と全巾文字とが混在している文字列
を一括して半巾文字列に変換する時、もし全巾
文字列の中に半巾化不可能な文字が混ざつてい
たとしても本実施例におけるパツキング処理を
工夫することにより問題なく、本処理を実行で
きる。即ちもし、半巾化可能な文字と半巾化不
可能な文字とをパツキングしなければいけない
時は、その間に半巾化可能であるダミーキヤラ
クタ例えばスペースを挿入した上でパツキング
を行えば良い。又半巾化不可能な文字は、あえ
てパツキングを行なわずにリストアすれば十分
である。
4 When converting a character string containing a mixture of half-width characters and full-width characters into a half-width character string, even if the full-width character string contains characters that cannot be converted to half-width characters, this implementation will not work. By devising the packing process in the example, this process can be executed without any problem. That is, if it is necessary to pack a character that can be made into half-width and a character that cannot be made into half-width, it is sufficient to insert a dummy character that can be made into half-width, such as a space, between them and then perform the packing. Also, for characters that cannot be made into half-width characters, it is sufficient to restore them without performing any packing.

5 本実施例においては、半巾文字の削除を行う
にあたつて削除を行なうとする半巾文字が属す
る半巾文字列の末尾に半巾スペースを付加させ
ることを行うが、半巾スペースのかわりに他の
コード、例えば半巾の空白を付加させても良
い。
5 In this embodiment, when deleting a half-width character, a half-width space is added to the end of the half-width character string to which the half-width character to be deleted belongs, but instead of the half-width space, another code is added. , for example, a half-width blank space may be added.

又、本実施例においては、文字列を記憶する
バツフア内で半巾スペースの付加を行なつた
が、バツフア内では半巾スペースの付加を行な
わず、例えばCRTに表示する時に半巾スペー
スを付加しても良い。
Also, in this embodiment, a half-width space is added in the buffer that stores the character string, but the half-width space is not added in the buffer, and even if a half-width space is added when displaying on a CRT, for example. good.

[発明の効果] 以上説明したように、本願発明に係る文字処理
装置は、半巾文字及び全巾文字が混在した文字列
において、全巾文字の半巾化が一括して容易に行
なえるので、半巾化したい文字を始めから再入力
する必要がなく非常に便利である。
[Effects of the Invention] As explained above, the character processing device according to the present invention can easily convert full-width characters to half-width all at once in a character string containing a mixture of half-width characters and full-width characters. This is very convenient as there is no need to re-enter the characters you want to convert from the beginning.

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

第1図a,b,cは半巾化を説明する図、第2
図a,b,cは全巾化を説明する図、第3図a,
b,cは半巾文字の左削除を説明する図、第4図
a,b,cは半巾文字の右削除を説明する図、第
5図は本発明による1実施例を示すブロツク図、
第6図a,bはコードを説明する図、第7図〜第
10図は制御手順を示す図、 KB3……キーボード、BUF1,BUF2……
バツフア。
Figures 1 a, b, and c are diagrams explaining half-width conversion, and Figure 2
Figures a, b, and c are diagrams explaining full-width expansion, Figure 3 a,
b, c are diagrams illustrating left deletion of half-width characters; FIGS. 4 a, b, c are diagrams illustrating right deletion of half-width characters; FIG. 5 is a block diagram showing one embodiment of the present invention;
Figures 6a and b are diagrams explaining the code, Figures 7 to 10 are diagrams showing the control procedure, KB3...Keyboard, BUF1, BUF2...
Batsuhua.

Claims (1)

【特許請求の範囲】 1 全巾文字及び半巾文字を入力するための入力
手段と、 該入力手段により入力された全巾文字及び半巾
文字が混在する文字列を記憶する記憶手段と、 前記記憶手段に記憶された文字列を表示する表
示手段と、 前記表示手段に表示された全巾文字を半巾文字
に変換することを指示する指示手段と、 前記指示された全巾文字が奇数個の場合、当該
全巾文字が変換された半巾文字と、該半巾文字の
後に半巾ダミーキヤラクタを付けて前記表示手段
に表示する表示制御手段と を有することを特徴とする文字処理装置。
[Scope of Claims] 1. Input means for inputting full-width characters and half-width characters; Storage means for storing a character string containing a mixture of full-width characters and half-width characters input by the input means; and the storage means. a display means for displaying a character string stored in the display means; an instruction means for instructing to convert the full-width characters displayed on the display means to half-width characters; when the number of the instructed full-width characters is an odd number; A character processing device comprising: a half-width character obtained by converting the full-width character; and display control means for adding a half-width dummy character after the half-width character and displaying the half-width dummy character on the display means.
JP57013082A 1982-01-29 1982-01-29 Character processing device Granted JPS58129636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57013082A JPS58129636A (en) 1982-01-29 1982-01-29 Character processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57013082A JPS58129636A (en) 1982-01-29 1982-01-29 Character processing device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP4258214A Division JPH07104859B2 (en) 1992-09-28 1992-09-28 Character processor

Publications (2)

Publication Number Publication Date
JPS58129636A JPS58129636A (en) 1983-08-02
JPH0526227B2 true JPH0526227B2 (en) 1993-04-15

Family

ID=11823240

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57013082A Granted JPS58129636A (en) 1982-01-29 1982-01-29 Character processing device

Country Status (1)

Country Link
JP (1) JPS58129636A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6129968A (en) * 1984-07-20 1986-02-12 Fujitsu Ltd Kana-kanji conversion display system
JPS62209660A (en) * 1986-03-06 1987-09-14 Fujitsu Ltd Document exchange system for word processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5595985A (en) * 1979-01-11 1980-07-21 Yokogawa Electric Works Ltd Method and device for indicating characters
JPS55143645A (en) * 1979-04-26 1980-11-10 Toshiba Corp Input-output system for en character and em character
JPS5729180A (en) * 1980-07-29 1982-02-17 Sharp Corp Character conversion controller of document editing device
JPS57153375A (en) * 1981-03-19 1982-09-21 Sharp Corp Automatic conversion system of half-square and full-square characters

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5595985A (en) * 1979-01-11 1980-07-21 Yokogawa Electric Works Ltd Method and device for indicating characters
JPS55143645A (en) * 1979-04-26 1980-11-10 Toshiba Corp Input-output system for en character and em character
JPS5729180A (en) * 1980-07-29 1982-02-17 Sharp Corp Character conversion controller of document editing device
JPS57153375A (en) * 1981-03-19 1982-09-21 Sharp Corp Automatic conversion system of half-square and full-square characters

Also Published As

Publication number Publication date
JPS58129636A (en) 1983-08-02

Similar Documents

Publication Publication Date Title
JPH0526227B2 (en)
JP3529948B2 (en) Display method of mathematical formulas including electronic devices and variables
JPH05242092A (en) Character processor
JPH0640329B2 (en) Character processing apparatus and method
JPH0411393B2 (en)
JPH0551943B2 (en)
JPH0650504B2 (en) Kana-Kanji converter
JP2655900B2 (en) Character processor
JPS5819936A (en) Kanji (chinese character) input device
JPS62237492A (en) Handy tabulator
JP2675476B2 (en) Character input device
JPH0565898B2 (en)
JPH0245596B2 (en)
JPH0648434B2 (en) CRT display screen device
JPS6346564A (en) Documentation device
JPH0798698A (en) Document processor
JP2821002B2 (en) Character processing device and character processing method
JPS5818732A (en) Character processing device
JPH0666065B2 (en) Document processor with furigana addition function
JPS63138390A (en) Character processor
JPH03179553A (en) Producing device for japanese document
JPH0564926U (en) Several character input device
JPH0661080B2 (en) Document processor with furigana addition function
JPH0546593A (en) Character input device
JPS6217818A (en) Character input control system