JPH0414167A - Roman character/kana conversion system - Google Patents

Roman character/kana conversion system

Info

Publication number
JPH0414167A
JPH0414167A JP2117066A JP11706690A JPH0414167A JP H0414167 A JPH0414167 A JP H0414167A JP 2117066 A JP2117066 A JP 2117066A JP 11706690 A JP11706690 A JP 11706690A JP H0414167 A JPH0414167 A JP H0414167A
Authority
JP
Japan
Prior art keywords
romaji
character
kana
character string
buffer
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
JP2117066A
Other languages
Japanese (ja)
Inventor
Akira Kon
今 昭
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 JP2117066A priority Critical patent/JPH0414167A/en
Publication of JPH0414167A publication Critical patent/JPH0414167A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To ensure the free movement of a cursor on the basis of KANA (Japanese syllabary) characters by controlling the cursor position so as to secure the correspondence to a character except a head character based on such a rule that secures the correspondence to the next head character. CONSTITUTION:An attribute flag is stored in a Roman character string attribute buffer 110 to show whether each character of an unconverted character string is identical with a head character or not. Meanwhile an attribute flag is also stored in a KANA character string attribute buffer 107 to show each character of a converted character string is identical with a head character or not. A Roman character/KANA conversion control part 103 prepares such a rule that can secure the correspondence between a cursor and the next head character on an unconverted character string stored in a Roman character string buffer 109 for the characters except the head ones. Thus the control is carried out so that the correspondence is secured between the cursor position on a converted character string stored in a KANA character string buffer 106 and the cursor position on the converted character string stored in the buffer 109. As a result, a cursor can be freely moved for each character on the converted character string of the buffer 106.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はローマ字かな変換方式に関し、特にローマ字文
字列を入力してかな文字列に変換し変換されたかな文字
列をローマ字文字列に戻すことができるローマ字かな変
換方式に関する。
[Detailed Description of the Invention] [Industrial Field of Application] The present invention relates to a Romaji-kana conversion method, and in particular to a method for inputting a Romaji character string, converting it into a Kana character string, and converting the converted Kana character string back into a Romaji character string. Concerning the Romaji-Kana conversion method that can be used.

〔従来の技術〕[Conventional technology]

周知のように、ローマ字かな変換方式は、計算機やワー
ドプロセッサなどで文字を入力するときに用いられる技
術であり、入力したい文字の読みを表すローマ字をキー
ボード上のアルファへソトキーの組合せ等で入力するこ
とによってローマ字に対応するかな文字を入力する方式
である。日本語の表音文字であるかな文字がアルファヘ
ットの数よりも多いことから、日本語の音の入力に有効
な手段として広く用いられている。
As is well known, the Romaji-Kana conversion method is a technique used when inputting characters into computers, word processors, etc., and involves inputting the Romaji that represents the pronunciation of the character you want to input to alpha on the keyboard using a combination of keys, etc. This is a method of inputting kana characters corresponding to romaji. Since there are more kana characters, which are Japanese phonetic characters, than alphahets, it is widely used as an effective means of inputting Japanese sounds.

従来のローマ字かな変換方式は、かな文字列バッファを
備えていて、かな文字列バッファ上に蓄積されたローマ
字かな変換結果の文字列の任意の位置にカーソルを移動
してローマ字かな変換結果の文字列を編集することがで
きる機能が含まれている場合が多い。すなわち、カーソ
ルを移動しカーソルの前後の文字列を削除したり、カー
ソルの位置にさらに入力を行ったりすることができるよ
うになっている。
The conventional Romaji-Kana conversion method is equipped with a Kana character string buffer, and moves the cursor to any position in the Romaji-Kana conversion result string accumulated on the Kana string buffer to convert the Romaji-Kana conversion result string. It often includes a function that allows you to edit the . In other words, it is possible to move the cursor and delete the character strings before and after the cursor, or to input further information at the cursor position.

また、従来のローマ字かな変換方式は、基本的にキーボ
ード上のアルファヘットキーをベースに行われるので、
アルファへノドを入力する場合において、入力モードを
変更することなくローマ字かな変換モードのまま入力を
行い、ローマ字かな変換結果の文字列についてローマ字
かな変換前のローマ字文字列へと逆変換できるようにな
っている方式も存在する。
In addition, the conventional Romaji-kana conversion method is basically based on the alpha het key on the keyboard, so
When inputting Nodo to Alpha, it is now possible to input in Romaji-Kana conversion mode without changing the input mode, and convert the string resulting from Romaji-Kana conversion back to the Romaji string before Romaji-Kana conversion. There are also methods.

ところで、ローマ字かな変換結果の文字列についてロー
マ字かな変換前のローマ字文字列に逆変換できるように
なった従来のローマ字かな変換方式では、かな文字列バ
ッファの他にローマ字文字列バッファを備えていて、か
な文字列バッファに蓄積されているローマ字かな変換結
果の文字列をローマ字文字列バッファに蓄積されている
ローマ字かな変換前のローマ字文字列と置換することに
より逆変換を可能にしている。このため、かな文字列バ
ッファ上のローマ字かな変換結果の文字列とローマ字文
字列バッファ上のローマ字かな変換前のローマ字文字列
とを対応させておく必要があり、例えば’nyu」と入
力して「にゅ」と変換した後に拗音「ゆ」の位置にカー
ソルの移動を許容すると、rにJと拗音rゆJとの間に
文字が挿入されてローマ字かな変換結果の文字列とロー
マ字かな変換前のローマ字文字列との対応がとれなくな
るので、’n)IuJと入力して「にゅJと変換した後
に拗音「ゆjの位置にカーソルの移動が行えないような
制限が設けられていた。具体的には、’nyu」と入力
し「にゅjとローマ字かな変換されたところでカーソル
を後(左)に移動すると、ひらがなベースに考えれば拗
音「ゆ」の上にカーソルが移動すべきであるところが、
「に」の上にまでカーソルが移動されてしまっていた。
By the way, the conventional Romaji-Kana conversion method, which allows the reverse conversion of the Romaji-Kana conversion result string to the Romaji string before Romaji-Kana conversion, has a Romaji string buffer in addition to the Kana string buffer. Reverse conversion is made possible by replacing the character string resulting from Romaji-Kana conversion stored in the Kana character string buffer with the Romaji character string stored in the Romaji character string buffer before Romaji-Kana conversion. Therefore, it is necessary to make a correspondence between the character string resulting from Romaji-Kana conversion on the Kana character string buffer and the Romaji character string before Romaji-Kana conversion on the Romaji character string buffer.For example, if you enter 'nyu', If you allow the cursor to move to the position of the tsunoise ``yu'' after converting it to ``nyu'', a character will be inserted between J and zuon ryuJ in r, and the character string resulting from Romaji-kana conversion and the character string before Romaji-kana conversion will be inserted. Since it would not be possible to correspond to the Roman character string, there was a restriction that the cursor could not be moved to the position of ``Yuj'' after entering 'n)IuJ and converting it to ``NyuJ''. If you input 'nyu' and move the cursor to the back (to the left) where it has been converted to romaji kana as 'nyuj', the cursor should have moved over the ``yu'' sound based on hiragana, but
The cursor had been moved to the top of "ni".

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したローマ字かな変換結果の文字列についてローマ
字かな変換前のローマ字文字列に逆変換できるようにな
った従来のローマ字かな変換方式では、かな文字列バッ
ファのローマ字かな変換結果の文字列上でカーソルを移
動する場合にカーソルの移動にある種の制限が課されて
いたので、ローマ字かな変換結果の文字列をローマ字か
な変換前のローマ字文字列に戻すことができない従来の
ローマ字かな変換方式とは使い勝手が異なっており、ロ
ーマ字かな変換結果の文字列をローマ字かな変換前のロ
ーマ字文字列に戻すことがほとんどない通常のユーザを
混乱させるという欠点がある。
In the conventional Romaji-Kana conversion method, which allows the above-mentioned Romaji-Kana conversion result string to be converted back to the Romaji character string before Romaji-Kana conversion, the cursor is placed over the Romaji-Kana conversion result string in the Kana string buffer. Since certain restrictions were placed on the movement of the cursor when moving, it is not easy to use compared to the conventional Romaji-Kana conversion method, which cannot convert the Romaji-Kana conversion result string back to the Romaji string before Romaji-Kana conversion. This is different, and has the disadvantage that it confuses ordinary users who rarely convert the Romaji-Kana conversion result string back to the Romaji string before Romaji-Kana conversion.

本発明の目的は、上述の点に鑑み、ローマ字かな文字列
バッファ上のローマ字かな変換結果の文字列をローマ字
文字列バッファ上のローマ字かな変換前のローマ字文字
列に戻すことができるようにしたローマ字かな変換方式
において、かな文字列バッファのローマ字かな変換結果
の文字列上でカーソルを移動するのに際して文字単位に
カーソルの移動が自由に行えるようにしたローマ字かな
変換方式を提供することにある。
In view of the above-mentioned points, an object of the present invention is to provide a Romaji character string that can return a Romaji-Kana conversion result string on a Romaji-Kana character string buffer to a Romaji character string before Romaji-Kana conversion on a Romaji character string buffer. To provide a Romaji-Kana conversion method which allows the cursor to be freely moved character by character when moving the cursor on a character string resulting from Romaji-Kana conversion in a Kana character string buffer.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のローマ字かな変換方式は、入力されたローマ字
をローマ字文字列バッファに蓄積するとともにローマ字
かな変換してローマ字かな変換結果の文字列をかな文字
列バッファに蓄積し、前記かな文字列バッファに蓄積さ
れたローマ字かな変換結果の文字列に対してカーソルの
移動や文字列の削除および挿入を行うことができるとと
もに前記かな文字列バッファに蓄積されたローマ字かな
変換結果の文字列を前記ローマ字文字列バッファに蓄積
されたローマ字文字列に置換してローマ字かな変換結果
の文字列をローマ字かな変換前のローマ字文字列に逆変
換できるローマ字かな変換方式において、前記ローマ字
文字列バッファに対応して設けられローマ字かな変換前
のローマ字文字列の各ローマ字がローマ字かな変換の先
頭文字であるか否かを示す属性フラグを格納するローマ
字文字列属性バッファと、前記かな文字列バッファに対
応して設けられローマ字かな変換結果の文字列の各文字
がローマ字かな変換の先頭文字であるか否かを示す属性
フラグを格納するかな文字列属性バンファと、前記かな
文字列バンファのローマ字かな変換結果の文字列上でカ
ーソルの移動を行うときに拗音のようなローマ字かな変
換の先頭文字でない文字に対しては前記ローマ字文字列
バッファのローマ字かな変換前のローマ字文字列上では
カーソルが次の先頭文字に対応するような規則を設けて
前記かな文字列バッファのローマ字かな変換結果の文字
列上のカーソル位置と前記ローマ字文字列バッファのロ
ーマ字かな変換前のローマ字文字列上のカーソル位置と
を一意に対応させるように制御するローマ字かな変換制
御部とを有する。
The romaji-kana conversion method of the present invention stores input romaji in a romaji character string buffer, converts them into romaji and kana, stores the resulting string of romaji-kana conversion in a kana character string buffer, and stores it in the kana character string buffer. You can move the cursor, delete, and insert strings into the resulting Romaji-Kana conversion string, and also transfer the Romaji-Kana conversion result string accumulated in the Kana string buffer to the Romaji-Kana conversion result. In the Romaji-Kana conversion method, which can convert the Romaji-Kana conversion result string into the Romaji character string before Romaji-Kana conversion by replacing it with the Romaji character string stored in the Romaji character string, A Roman character string attribute buffer that stores an attribute flag indicating whether each Roman character in the Roman character string before conversion is the first character of Roman character to Kana conversion, and a Roman character string attribute buffer that is provided corresponding to the above Kana character string buffer to store the Roman character to Kana conversion result. Move the cursor over the Kana string attribute buffer that stores an attribute flag indicating whether each character in the string is the first character of the Roman-to-Kana conversion, and the string that is the result of the Roman-to-Kana conversion of the Kana string buffer. When performing Romaji-kana conversion, for characters such as zuon that are not the first character of Romaji-Kana conversion, a rule is established so that the cursor corresponds to the next first character on the Romaji string before Romaji-Kana conversion in the Romaji string buffer. Romaji-kana conversion that controls the cursor position on the character string of the Roman-ji-Kana conversion result of the Kana character string buffer to uniquely correspond to the cursor position on the Roman character string of the Roman character string buffer before Romaji-Kana conversion. It has a control section.

〔作用〕[Effect]

本発明のローマ字かな変換方式では、ローマ字文字列属
性バッファがローマ字文字列バッファに対応して設けら
れローマ字かな変換前のローマ字文字列の各ローマ字が
ローマ字かな変換の先頭文字であるか否かを示す属性フ
ラグを格納し、かな文字列属性バッファがかな文字列パ
フファに対応して設けられローマ字かな変換結果の文字
列の各文字がローマ字かな変換の先頭文字であるか否か
を示す属性フラグを格納し、ローマ字かな変換制御部が
かな文字列バッファのローマ字かな変換結果の文字列上
でカーソルの移動を行うときに拗音のようなローマ字か
な変換の先頭文字でない文字に対してはローマ字文字列
バッファのローマ字かな変換前のローマ字文字列上では
カーソルが次の先頭文字に対応するような規則を設けて
かな文字列バッファのローマ字かな変換結果の文字列上
のカーソル位置とローマ字文字列バッファのローマ字か
な変換前のローマ字文字列上のカーソル位置とを一意に
対応させるように制御する。
In the Romaji-Kana conversion method of the present invention, a Romaji character string attribute buffer is provided corresponding to the Romaji character string buffer, and indicates whether each Roman character in the Romaji string before Romaji-Kana conversion is the first character of the Romaji-Kana conversion. A kana string attribute buffer is provided corresponding to the kana string puffer, and stores attribute flags indicating whether each character in the string resulting from Roman-ji-kana conversion is the first character of the Roman-ji-kana conversion. However, when the Romaji-Kana conversion control unit moves the cursor over a string resulting from Romaji-Kana conversion in the Kana string buffer, for characters that are not the first character of the Romaji-Kana conversion, such as A rule is established so that the cursor corresponds to the next first character on the Roman character string before Romaji-Kana conversion, and the cursor position on the string resulting from Romaji-Kana conversion in the Kana string buffer and Romaji in the Romaji character string buffer. Controls so that it uniquely corresponds to the cursor position on the Roman character string before conversion.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例に係るローマ字かな変換方
式の構成を示すブロック図である。本実施例のローマ字
かな変換方式は、ローマ字かな変換部101と、ローマ
字かな変換辞書102と、ローマ字かな変換制御部10
3と、表示部104と、キーボード105と、かな文字
列バッファ106およびかな文字列属性バッファ107
からなるかなハ、ファ108と、ローマ字文字列バッフ
ァ109およびローマ字文字列属性ハ・2フアIfOか
らなるローマ字バッファ111とから、その主要部が構
成されている。
FIG. 1 is a block diagram showing the configuration of a Romaji-kana conversion system according to an embodiment of the present invention. The Romaji-kana conversion method of this embodiment includes a Romaji-kana conversion unit 101, a Romaji-kana conversion dictionary 102, and a Romaji-kana conversion control unit 10.
3, a display section 104, a keyboard 105, a kana character string buffer 106, and a kana character string attribute buffer 107.
Its main parts are composed of a Roman character string buffer 109 and a Roman character string buffer 111 consisting of a Roman character string attribute H, 2, IfO.

第2図を参照すると、かな文字列バッファ106には、
ローマ字かな変換結果の文字列が蓄積される。かな文字
列属性バッファ107には、かな文字列バッファ106
に蓄積されたローマ字かな変換結果の文字列の各文字に
対応して各文字がローマ字かな変換の先頭文字であるか
どうかを表す属性フラグ(先頭文字であるときに「1」
、先頭文字以外のときに「0」)が格納される。ローマ
字文字列バッファ109には、ローマ字かな変換前のロ
ーマ字文字列が蓄積される。ローマ字文字列属性バッフ
ァ110には、ローマ字文字列ハ。
Referring to FIG. 2, in the kana character string buffer 106,
Strings resulting from Romaji to Kana conversion are accumulated. The kana character string attribute buffer 107 contains the kana character string buffer 106.
An attribute flag indicating whether each character is the first character of the Romaji-Kana conversion corresponding to each character of the string of Romaji-Kana conversion results accumulated in
, "0") is stored when the character is not the first character. The Romaji character string buffer 109 stores Romaji character strings before Romaji-kana conversion. The Roman character string attribute buffer 110 contains the Roman character string H.

ファ109に蓄積されたローマ字かな変換前のローマ字
文字列の各ローマ字に対応して各ローマ字がローマ字か
な変換の先頭文字であるかどうかを表す属性フラグが格
納される。
An attribute flag indicating whether or not each Roman character is the first character of Roman character to Kana conversion is stored corresponding to each Roman character of the Roman character string before Roman character to Kana conversion stored in the file 109.

第2図の例では、かな文字列バッファ106上のローマ
字かな変換結果の文字列中のほとんどの文字がローマ字
かな変換のときの先頭文字であったことが、かな文字列
属性ハフノア10フ上の属性フラグによって示されてい
る。ただし、「にゅうshJのうちの拗音「ゆJだけが
ローマ字かな変換の先頭文字ではないことが示されてい
る。また、一般にローマ字かな変換のローマ字入力のと
きにはローマ字の文字数の方がかなの文字数よりも多く
なるので、ローマ字文字列バッファ109上に格納され
ているローマ字の半数近くがローマ字かな変換のときの
先頭文字ではないことが、ローマ字文字列属性バッファ
110上の属性フラグによって示されている。
In the example shown in Figure 2, most of the characters in the string resulting from Romaji-Kana conversion on the Kana character string buffer 106 were the first characters in the Romaji-Kana conversion. Indicated by attribute flags. However, it has been shown that ``YuJ'' is not the only first character in Romaji-Kana conversion.In general, when inputting Romaji for Romaji-Kana conversion, the number of Romaji characters is greater than the number of Kana characters. Therefore, the attribute flag on the Roman character string attribute buffer 110 indicates that nearly half of the Roman characters stored in the Roman character string buffer 109 are not the first characters when converting Roman characters to Kana. .

かな文字列バッファ106上のローマ字かな変換結果の
文字列およびローマ字文字列バッファ109上のローマ
字かな変換前のローマ字文字列は、カーソルポインタC
PIおよびCF2と、ローマ字ポインタRPIおよびR
P2とによってそれぞれ管理されている。カーソルポイ
ンタCPIおよびCF2とローマ字ポインタRPIおよ
びRP2とは、ローマ字かな変換が行われる際にローマ
字かな変換制御部103中の編集機能によりその値を変
更される。
The character string as a result of Romaji-kana conversion on the Kana character string buffer 106 and the Romaji character string before Romaji-Kana conversion on the Romaji character string buffer 109 are moved by the cursor pointer C.
PI and CF2 and Roman pointers RPI and R
They are managed by P2 and P2 respectively. The values of the cursor pointers CPI and CF2 and the Romaji pointers RPI and RP2 are changed by the editing function in the Romaji-Kana conversion control unit 103 when the Romaji-Kana conversion is performed.

第3図を参照すると、ローマ字かな変換制御部103の
ローマ字1字入力時の処理は、ローマ字挿入ステップ3
01と、属性フラグ設定ステップ302と、カーソルポ
インタ前進ステップ303と、ローマ字かな変換ステッ
プ304と、文字列置換えステップ305と、属性フラ
グ設定ステップ306と、ローマ字ポインタ更新ステッ
プ3゜7とからなる。
Referring to FIG. 3, the processing performed by the Romaji-kana conversion control unit 103 when inputting one Romaji character is the Romaji insertion step 3.
01, an attribute flag setting step 302, a cursor pointer advance step 303, a Romaji-kana conversion step 304, a character string replacement step 305, an attribute flag setting step 306, and a Romaji pointer update step 3.7.

第4図を参照すると、ローマ字かな変換制御部103の
カーソルの前(右)への移動処理は、カーソル位置文字
属性チエツクステップ401と、先頭文字判定ステップ
402と、カーソルポインタ前方先頭文字前進ステップ
403と、カーソルポインタ1つ前進ステップ404と
からなる。
Referring to FIG. 4, the process of moving the cursor forward (to the right) by the Romaji-kana conversion control unit 103 includes a cursor position character attribute check step 401, a first character determination step 402, and a cursor pointer forward first character step 403. and a step 404 for moving the cursor pointer forward one step.

第5図を参照すると、ローマ字かな変換制御部103の
カーソルの後(左)への移動処理は、カーソルポインタ
1つ後退ステップ501と、カーソル位置文字属性チエ
ツクステップ502と、先頭文字判定ステップ503と
、カーソルポインタ後方先頭文字後退ステップ504と
からなる。
Referring to FIG. 5, the process of moving the cursor to the rear (to the left) of the Romaji-kana conversion control unit 103 includes a step 501 for moving the cursor pointer back one step, a step 502 for checking character attributes at the cursor position, and a step 503 for determining the first character. , and step 504 for moving the first character backward from the cursor pointer.

次に、このように構成された本実施例のローマ字かな変
換方式の動作について説明する。
Next, the operation of the Romaji-kana conversion system of this embodiment configured as described above will be explained.

まず、キーボード105から1文字のローマ字が入力さ
れると、ローマ字かな変換制御部103は、入力された
ローマ字をローマ字文字列バッファ109のカーソルポ
インタCP2が指すカーソル位置に挿入する(ステップ
301)。
First, when one Roman character is input from the keyboard 105, the Roman-Kana conversion control unit 103 inserts the input Roman character into the cursor position pointed to by the cursor pointer CP2 in the Roman character string buffer 109 (step 301).

次に、ローマ字かな変換制御部103は、ローマ字文字
列属性バンファ110のカーソルポインタCP2が指す
位置にローマ字かな変換の先頭文字であることを表す属
性フラグ「1」を設定する(ステップ302)。
Next, the Roman-ji-kana conversion control unit 103 sets an attribute flag "1" indicating that the character is the first character of the Roman-ji-kana conversion at the position pointed to by the cursor pointer CP2 of the Roman character string attribute buffer 110 (step 302).

続いて、ローマ字かな変換制御部103は、カーソルポ
インタCP2を1つ前進させる(ステップ303)。
Subsequently, the Romaji-kana conversion control unit 103 advances the cursor pointer CP2 by one position (step 303).

次に、ローマ字かな変換制御部103は、ローマ字文字
列バッファ109上のローマ字ポインタRP2が指す位
置とカーソルポインタCP2が指す位置との間のローマ
字文字列をローマ字かな変換部101に渡して、ローマ
字かな変換部101を起動する(ステップ304)。
Next, the Romaji-Kana conversion control unit 103 passes the Romaji character string between the position pointed to by the Romaji pointer RP2 on the Romaji character string buffer 109 and the position pointed to by the cursor pointer CP2 to the Romaji-Kana conversion unit 101, and converts it to Romaji. The conversion unit 101 is activated (step 304).

ローマ字かな変換部101は、ローマ字かな変換制御部
103から渡されたローマ字文字列をローマ字かな変換
辞書102を参照してローマ字かな変換する。ここで、
ローマ字かな変換結果の文字列は、変換されてすべてか
な文字列になるか、変換されてかな文字列になった部分
と変換されずにローマ字文字列のまま残る部分とになる
か、変換されずにすべてローマ字文字列のまま残るかす
る。この後、ローマ字かな変換部101は、ローマ字か
な変換された結果の文字列を渡して、ローマ字かな変換
制御部103に制御を戻す。
The Romaji-Kana conversion unit 101 converts the Romaji character string passed from the Romaji-Kana conversion control unit 103 into Romaji-Kana by referring to the Romaji-Kana conversion dictionary 102. here,
The string resulting from Romaji-Kana conversion will either be converted entirely into a Kana string, some parts will be converted into a Kana string and some parts will remain as a Romaji string without being converted, or there will be no conversion at all. All roman strings remain as they are. Thereafter, the Romaji-Kana conversion unit 101 passes the character string resulting from the Romaji-Kana conversion and returns control to the Romaji-Kana conversion control unit 103.

次に、ローマ字かな変換制御部103は、ローマ字かな
変換部101から戻されたローマ字かな変換結果の文字
列を、かな文字列バッファ106のローマ字ポインタR
PIが指す位置とカーソルポインタCPIが指す位置と
の間のローマ字文字列と置換する。置き換えるローマ字
かな変換結果の文字列の文字数と置き換えられるローマ
字文字列の文字数とが異なる場合には、ローマ字かな変
換制御部103は、さらにカーソルポインタCP1をロ
ーマ字かな変換結果の文字列の末尾の次を指すように変
更する(ステップ305)。
Next, the Romaji-Kana conversion control unit 103 transfers the character string resulting from the Romaji-Kana conversion returned from the Romaji-Kana conversion unit 101 to the Romaji pointer R of the Kana character string buffer 106.
Replace with the Roman character string between the position pointed to by PI and the position pointed to by the cursor pointer CPI. If the number of characters in the Romaji-kana conversion result string to be replaced is different from the number of characters in the Romaji character string to be replaced, the Romaji-Kana conversion control unit 103 further moves the cursor pointer CP1 to the next point at the end of the Romaji-Kana conversion result string. (step 305).

続いて、ローマ字かな変換制御部103は、ローマ字か
な変換結果の文字列中のローマ字かな変換された部分に
対応するかな文字列属性バッファ107およびローマ字
文字列属性バンフ1110において、ローマ字かな変換
結果の文字列の最初の1文字に対応してローマ字かな変
換の先頭文字を表す属性フラグ「1」を設定し、先頭文
字以外には属性フラグ「0」を設定する。また、ローマ
字かな変換制御部103は、ローマ字のまま残っている
部分はすべてローマ字かな変換の先頭文字であるとみな
して、対応するかな文字列属性バッファ107およびロ
ーマ平文字列属性バッファ110において属性フラグr
lJを設定する(ステップ306)。
Next, the Romaji-Kana conversion control unit 103 stores the characters of the Romaji-Kana conversion result in the Kana character string attribute buffer 107 and the Romaji character string attribute buffer 1110 corresponding to the Romaji-Kana converted part of the Romaji-Kana conversion result string. An attribute flag "1" representing the first character of Roman-Kana conversion is set corresponding to the first character of the column, and an attribute flag "0" is set for characters other than the first character. In addition, the Romaji-Kana conversion control unit 103 regards all parts that remain as Romaji to be the first characters of the Romaji-Kana conversion, and sets the attribute flag in the corresponding Kana character string attribute buffer 107 and Romaji-hira character string attribute buffer 110. r
lJ is set (step 306).

最後に、ローマ字かな変換制御部103は、ローマ字ポ
インタRPIおよびRP2をローマ字かな変換されなか
った部分の先頭位置にまで進める(ステップ307)。
Finally, the Romaji-kana conversion control unit 103 advances the Romaji pointers RPI and RP2 to the beginning position of the part that has not been converted to Romaji-kana (step 307).

第6図(a)および(b)は、ローマ字かな変換の途中
の状態からローマ字かな変換が終了した状態への遷移を
表す図である。第6図(a)に示す遷移前の状態ですべ
て先頭文字の属性をもっていた未変換ローマ字が、第6
図(b)に示す遷移後の状態に移行したときにはローマ
字かな変換の単位にあわせて適切に属性フラグが付けら
れている。
FIGS. 6(a) and 6(b) are diagrams showing a transition from a state in the middle of Romaji-kana conversion to a state where Romaji-kana conversion has been completed. The unconverted Roman characters that all had the attribute of the first character in the state before the transition shown in Figure 6(a) are
At the time of transition to the post-transition state shown in Figure (b), attribute flags have been appropriately attached in accordance with the units of Romaji-Kana conversion.

第7図は、入力されたローマ字文字列と変換されたかな
文字列との対応の一例を示す図である。
FIG. 7 is a diagram showing an example of the correspondence between an input Roman character string and a converted Kana character string.

基本的には、入力される文字列は1文字車位以上のある
大きさ(例えば、r ny uJ −4Fにゅj)で入
力されるので、すべてのかな文字が対応するローマ字を
持つわけではないが、第7図のように対応を持たせるこ
とによってかな文字の1文字毎のカーソル移動に対して
もローマ字文字列バッファ109上でのカーソル位置を
一貫して管理することが可能となる。ここでは、拗音「
ゆjのようなローマ字かな変換の先頭文字でないかな文
字に対しては、ローマ字文字列バッファ109の次の先
頭文字が対応するような規則を設けている。このような
規則を設けたときのカーソル移動の制御を示すのが、第
6図および第7図である。
Basically, the input character string is input in a size larger than one character (for example, r ny uJ -4F nyu j), so not all kana characters have a corresponding Roman character. , as shown in FIG. 7, it becomes possible to consistently manage the cursor position on the Roman character string buffer 109 even when the cursor is moved character by character in kana characters. Here, it is
A rule is established such that the next first character of the Roman character string buffer 109 corresponds to a kana character such as ``yuj'' that is not the first character of Roman character-kana conversion. FIGS. 6 and 7 show control of cursor movement when such rules are provided.

詳しくは、キーボード105からカーソルの前(右)へ
の移動が指示されると、ローマ字かな変換制御部103
は、かな文字列バッファ106のカーソルポインタCP
Iが指す現在のカーソル位置の文字の属性をかな文字列
属性バッファ107の属性フラグを参照することにより
チエツクしくステップ401)、属性がローマ字かな変
換の先頭文字を示すかどうか(属性フラグがrlJであ
るかどうか)を判断する(ステップ402)、カーソル
ポインタCPIが指す現在のカーソル位置の文字の属性
がローマ字かな変換の先頭文字であれば、ローマ字かな
変換制御部103は、ローマ字文字列バフファ109の
カーソルポインタcP2を前方(右)の先頭文字まで進
める(ステップ403)。カーソルポインタCPIが指
す現在のカーソル位置の文字の属性がローマ字がな変換
の先頭文字でなければ、ローマ字かな変換制御部103
は、ステップ403をスキップする。次に、ローマ字か
な変換制御部103は、がな文字列バッファ106のカ
ーソルポインタCPIが指すカーソル位置を前方(右)
に1つ進める(ステップ404)。
Specifically, when a command is given from the keyboard 105 to move the cursor to the front (to the right), the Romaji-Kana conversion control unit 103
is the cursor pointer CP of the kana character string buffer 106
Check the attribute of the character at the current cursor position pointed to by I by referring to the attribute flag in the kana character string attribute buffer 107 (step 401), and check whether the attribute indicates the first character of Romaji-kana conversion (if the attribute flag is rlJ). If the attribute of the character at the current cursor position pointed to by the cursor pointer CPI is the first character of Romaji-Kana conversion, the Romaji-Kana conversion control unit 103 converts the Romaji-Kana conversion control unit 103 to the Romaji-Kana conversion controller 103. The cursor pointer cP2 is advanced to the front (right) first character (step 403). If the attribute of the character at the current cursor position pointed to by the cursor pointer CPI is not the first character for Romaji-Kana conversion, the Romaji-Kana conversion control unit 103
skips step 403. Next, the Romaji-Kana conversion control unit 103 moves the cursor position pointed by the cursor pointer CPI of the Gana character string buffer 106 forward (to the right).
is advanced by one (step 404).

一方、キーボード105からカーソルの後(左)への移
動が指示されると、ローマ字がな変換制御部103は、
かな文字列バッファ1060カーソルポインタCPIが
指す現在のカーソル位置を後方(左)に1つ進める(ス
テップ5o1)。次に、ローマ字かな変換制御部103
は、がな文字列バッファ106のカーソルポインタCP
1が指す現在のカーソル位置の文字の属性をがな文字列
属性バッファ107を参照することによりチエツクしく
ステップ502)、属性がローマ字がな変換の先頭文字
を示すかどうか(属性フラグが「1」であるかどうか)
を判断する(ステップ503)、カーソルポインタCP
Iが指す現在のカーソル位置の文字の属性がローマ字か
な変換の先頭文字であれば、ローマ字かな変換制御部1
03は、ローマ字文字列バッファ109のカーソルポイ
ンタCP2を後方(左)の先頭文字まで戻す(ステップ
504)、カーソルポインタCPIが指す現在のカーソ
ル位置の文字の属性がローマ字かな変換の先頭文字でな
ければ、ローマ字かな変換制御部103は、ステップ5
04をスキップする。
On the other hand, when an instruction is given from the keyboard 105 to move the cursor to the rear (to the left), the Romaji-kana conversion control unit 103
The current cursor position pointed to by the kana character string buffer 1060 cursor pointer CPI is advanced backward (to the left) by one position (step 5o1). Next, Romaji-kana conversion control unit 103
is the cursor pointer CP of the Gana character string buffer 106
The attribute of the character at the current cursor position pointed to by 1 is checked by referring to the Gana character string attribute buffer 107 (step 502), and whether the attribute indicates the first character of Romaji-Kana conversion (the attribute flag is "1"). whether it is)
(step 503), cursor pointer CP
If the attribute of the character at the current cursor position pointed to by I is the first character of Romaji-Kana conversion, Romaji-Kana conversion control unit 1
03 returns the cursor pointer CP2 of the Roman character string buffer 109 to the backward (left) first character (step 504), unless the attribute of the character at the current cursor position pointed to by the cursor pointer CPI is the first character for Roman character-kana conversion. , the romaji-kana conversion control unit 103 performs step 5.
Skip 04.

このようにして、ローマ字かな変換の先頭文字でない文
字の存在がローマ字文字列バッファ109上でのカーソ
ルの移動の振る舞いに大きな影響を及ぼすことになる。
In this way, the presence of a character that is not the first character in Romaji-Kana conversion has a large effect on the movement behavior of the cursor on the Romaji character string buffer 109.

以上の結果、ローマ字かな変換入力を行っている途中で
カーソルを移動し、例えば、rにゅ」の「にJと拗音「
ゆjとの間にカーソルを持って行き、その部分に入力を
行った後にかな文字列バッファ106上のローマ字かな
変換結果のかな文字列全体をローマ字かな変換前のロー
マ字文字列に戻す場合においても、一定のルールを持っ
てローマ字に戻すことが可能となる。
As a result of the above, if you move the cursor while inputting romaji-kana conversion, for example, ``niJ'' and ``niJ'' of ``rnyu''
Even when you move the cursor between ``Yuj'' and enter that part, the entire ``Kana'' string on the ``Kana'' character string buffer 106 is returned to the ``Romaji'' character string before the ``Romaji-Kana'' conversion. , it becomes possible to return to the Roman alphabet using certain rules.

なお、本発明は、始めから英語の単語を入力することを
意図しているときによく見られるように、ローマ字かな
変換が行われない文字が混在しているような場合にも有
効であることはいうまでもない。
Note that the present invention is also effective in cases where characters that cannot be converted to Romaji/Kana are mixed together, as is often the case when the intention is to input English words from the beginning. Needless to say.

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

以上説明したように本発明は、ローマ字がな文字列バッ
ファ上のローマ字かな変換結果の文字列をローマ字文字
列バッファ上のローマ字かな変換前のローマ字文字列に
戻すことができるようにしたローマ字かな変換方式にお
いて、かな文字列バッファ上においてカーソルの移動を
行うときに拗音のようなローマ字かな変換の先頭文字で
ない文字に対してローマ字文字列バッファの次の先頭文
字が対応するような規則に基づいてかな文字列バッファ
上のカーソル位置とローマ字文字列バッファ上のカーソ
ル位置との対応に一貫性を持たせるようにしたことによ
り、かな文字列バッファ上でカーソルを移動するのに際
してかな文字を基準として自由にカーソルの移動が行え
、ローマ字かな変換結果の文字列をローマ字かな変換前
のローマ字文字列に戻すことができない従来のローマ字
かな変換方式と同じ使い勝手となるので、ローマ字かな
変換結果の文字列をローマ字かな変換前のローマ字文字
列に戻すことがほとんどない通常のユーザを混乱させる
ことがなくなるという効果がある。
As explained above, the present invention provides Romaji-Kana conversion that enables the Romaji-Kana conversion result string on the Romaji-Kana string buffer to be returned to the Romaji character string before Romaji-Kana conversion on the Romaji string buffer. In this method, when moving the cursor on a kana string buffer, the next first character of the romaji string buffer corresponds to a character that is not the first character of the romaji-kana conversion, such as a sukuon. By ensuring consistency between the cursor position on the string buffer and the cursor position on the Roman character string buffer, you can now move the cursor on the kana character string buffer using the kana characters as a reference. The cursor can be moved, and the character string resulting from Romaji-Kana conversion cannot be returned to the Romaji character string before Romaji-Kana conversion.It has the same usability as the conventional Romaji-Kana conversion method, so the character string resulting from Romaji-Kana conversion can be converted to Romaji or Kana. This has the effect of eliminating confusion for ordinary users who rarely convert back to the Roman character string before conversion.

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

第1図は本発明の一実施例に係るローマ字かな変換方式
の構成を示すブロック図、 第2図は第1図中のかなバッファおよびローマ字バッフ
ァをさらに詳細に示す図、 第3図は第1図中のローマ字かな変換制御部のローマ字
が1文字入力されたときの処理を示す流れ図、 第4図は第1図中のローマ字かな変換制御部のかな文字
列バッファ上をカーソルが前進するときの処理を示す流
れ図、 第5図は第1図中のローマ字かな変換制御部のかな文字
列バッファ上をカーソルが後退するときの処理を示す流
れ図、 第6図(a)および(b)は1文字のローマ字が入力さ
れローマ字かな変換が完了するときのがなバッファおよ
びローマ字バッファの内容の推移を表す図、 第7図は第1図中のかなバッファの内容とローマ字バッ
ファの内容との対応を例示する図である。 図において、 101・・・ローマ字かな変換部、 102・・・ローマ字かな変換辞書、 103・・・ローマ字かな変換制御部、104・・・表
示部、 105・・・キーボード、 106・・・かな文字列バッファ、 107・・・かな文字列属性バッファ、108・・・か
なバッファ、 109・・・ローマ字文字列バッファ、110・・・ロ
ーマ字文字列属性バ・7フア、111・・・ローマ字バ
ッファである。
FIG. 1 is a block diagram showing the configuration of a Romaji-Kana conversion method according to an embodiment of the present invention, FIG. 2 is a diagram showing the Kana buffer and Romaji buffer in FIG. 1 in more detail, and FIG. Figure 4 is a flowchart showing the processing when a single Roman character is input in the Romaji-Kana conversion control section in the figure. A flowchart showing the processing. Figure 5 is a flowchart showing the processing when the cursor moves back on the kana character string buffer of the romaji-kana conversion control section in Figure 1. Figures 6 (a) and (b) are for one character. Figure 7 shows an example of the correspondence between the contents of the Kana buffer and the contents of the Romaji buffer in Figure 1. This is a diagram. In the figure, 101...Romaji-kana conversion unit, 102...Romaji-kana conversion dictionary, 103...Romaji-kana conversion control unit, 104...Display unit, 105...Keyboard, 106...Kana characters Column buffer, 107... Kana string attribute buffer, 108... Kana buffer, 109... Roman character string buffer, 110... Roman character string attribute buffer, 111... Roman character buffer. .

Claims (1)

【特許請求の範囲】 入力されたローマ字をローマ字文字列バッファに蓄積す
るとともにローマ字かな変換してローマ字かな変換結果
の文字列をかな文字列バッファに蓄積し、前記かな文字
列バッファに蓄積されたローマ字かな変換結果の文字列
に対してカーソルの移動や文字列の削除および挿入を行
うことができるとともに前記かな文字列バッファに蓄積
されたローマ字かな変換結果の文字列を前記ローマ字文
字列バッファに蓄積されたローマ字文字列に置換してロ
ーマ字かな変換結果の文字列をローマ字かな変換前のロ
ーマ字文字列に逆変換できるローマ字かな変換方式にお
いて、 前記ローマ字文字列バッファに対応して設けられローマ
字かな変換前のローマ字文字列の各ローマ字がローマ字
かな変換の先頭文字であるか否かを示す属性フラグを格
納するローマ字文字列属性バッファと、 前記かな文字列バッファに対応して設けられローマ字か
な変換結果の文字列の各文字がローマ字かな変換の先頭
文字であるか否かを示す属性フラグを格納するかな文字
列属性バッファと、 前記かな文字列バッファのローマ字かな変換結果の文字
列上でカーソルの移動を行うときに拗音のようなローマ
字かな変換の先頭文字でない文字に対しては前記ローマ
字文字列バッファのローマ字かな変換前のローマ字文字
列上ではカーソルが次の先頭文字に対応するような規則
を設けて前記かな文字列バッファのローマ字かな変換結
果の文字列上のカーソル位置と前記ローマ字文字列バッ
ファのローマ字かな変換前のローマ字文字列上のカーソ
ル位置とを一意に対応させるように制御するローマ字か
な変換制御部と を有することを特徴とするローマ字かな変換方式。
[Scope of Claims] The input Roman characters are stored in a Roman character string buffer, the Roman characters are converted to kana, and the character strings resulting from the Roman character to kana conversion are stored in a kana character string buffer, and the Roman characters stored in the kana character string buffer are It is possible to move the cursor and delete and insert character strings with respect to the character string resulting from the kana conversion, and the character string resulting from the romaji-kana conversion stored in the kana character string buffer can be stored in the romaji character string buffer. In a Romaji-Kana conversion method that can reversely convert the resulting Romaji-Kana conversion string into a Romaji character string before Romaji-Kana conversion, a A Roman character string attribute buffer that stores an attribute flag indicating whether each Roman character in a Roman character string is the first character of Roman character to Kana conversion, and a character string as a result of Roman character to Kana conversion that is provided corresponding to the above-mentioned Kana character string buffer. Kana string attribute buffer that stores attribute flags indicating whether each character is the first character of Romaji-Kana conversion, and when moving the cursor over the string resulting from Romaji-Kana conversion in the Kana string buffer. For characters that are not the first character of Romaji-Kana conversion, such as ``Zukuon'', a rule is established so that the cursor corresponds to the next first character on the Romaji string before Romaji-Kana conversion in the Romaji string buffer. a Romaji-Kana conversion control unit that controls a cursor position on a character string resulting from Romaji-Kana conversion in a character string buffer and a cursor position on a Romaji character string before Romaji-Kana conversion in the Romaji character string buffer; A romaji-kana conversion method characterized by having the following.
JP2117066A 1990-05-07 1990-05-07 Roman character/kana conversion system Pending JPH0414167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2117066A JPH0414167A (en) 1990-05-07 1990-05-07 Roman character/kana conversion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2117066A JPH0414167A (en) 1990-05-07 1990-05-07 Roman character/kana conversion system

Publications (1)

Publication Number Publication Date
JPH0414167A true JPH0414167A (en) 1992-01-20

Family

ID=14702582

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2117066A Pending JPH0414167A (en) 1990-05-07 1990-05-07 Roman character/kana conversion system

Country Status (1)

Country Link
JP (1) JPH0414167A (en)

Similar Documents

Publication Publication Date Title
US5313394A (en) Document assembly customization system for modifying a source instrument including text and decisional commands
JPH0414167A (en) Roman character/kana conversion system
US5742838A (en) Method for conversion mode selection in hangeul to hanja character conversion
JPH04286000A (en) Input method for voice control information
JP2713942B2 (en) Kana-Kanji conversion device
JPH08160930A (en) Screen display method by computer in plural languages
JPS61255467A (en) Machine translating system
JP2000048018A (en) Input prediction device, its method and recording medium recording input prediction program
JPS59140541A (en) Character processing device
CA2071307C (en) Document assembly customization system
JPH0448372A (en) Japanese language input system by roman letter 1 kana conversion
JPH03212757A (en) Romaji/kana conversion system
JPH0584934B2 (en)
JPH01118961A (en) Translating device
JPH0776966B2 (en) Kana-Kanji conversion device
JPH0488550A (en) Character processor
JPH05266006A (en) Character input device
JPH09269942A (en) Document generation device and same sound candidate output control method
JPH0442348A (en) Character processor
JPS61260353A (en) Document processing system
KR20020076648A (en) Apparatus for inputting Korean character using touch panel and method therefor
JPH0310368A (en) Attended data display processing system
JPH0362170A (en) Comment input method in cad system
JPH04165462A (en) Japanese language processor
JPS60138669A (en) Japanese document producer