JPH03212757A - Romaji/kana conversion system - Google Patents
Romaji/kana conversion systemInfo
- Publication number
- JPH03212757A JPH03212757A JP2008802A JP880290A JPH03212757A JP H03212757 A JPH03212757 A JP H03212757A JP 2008802 A JP2008802 A JP 2008802A JP 880290 A JP880290 A JP 880290A JP H03212757 A JPH03212757 A JP H03212757A
- Authority
- JP
- Japan
- Prior art keywords
- romaji
- kana
- conversion
- 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
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 54
- 240000000220 Panda oleosa Species 0.000 title abstract description 21
- 235000016496 Panda oleosa Nutrition 0.000 title abstract description 21
- 239000000872 buffer Substances 0.000 claims abstract description 36
- 238000000034 method Methods 0.000 claims description 14
- 239000013256 coordination polymer Substances 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 239000012634 fragment Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000015654 memory Effects 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はローマ字かな変換方式に関し、特に日本語を入
力する機器のローマ字かな変換方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a Roman-ji-kana conversion method, and more particularly to a Roman-ji-kana conversion method for devices for inputting Japanese.
ローマ字かな変換は、計算機のキーボードにて文字を入
力するときや、ワードプロセッサなどで文字を入力する
ときに用いられる技術であり、特に日本語の表音語であ
る「かな」がアルファベットの数よりも多いことから日
本語の音による入力に有効な手段として広く用いられて
いる技術である。ローマ字かな変換では入力したい文字
の読みを表すデータをキーボード上のアルファベットキ
ーの組み合わせでローマ字として入力することによって
、ローマ字に対応する「がな」を入力するものである。Romaji-kana conversion is a technique used when entering characters on a computer keyboard or in a word processor. This technology is widely used as an effective means for inputting Japanese sounds. In romaji-kana conversion, data representing the pronunciation of the character you want to input is input as romaji using a combination of alphabet keys on the keyboard, and then the ``gana'' corresponding to the romaji is input.
ローマ字かな変換にはこの他にも、入力中にカーソルを
移動して入力中の文字列を編集する機能をも含む場合が
多い。すなわち、カーソルを移動し力〒ツルの前後の文
字列を削除したり、カーソルの位置にさらに入力を行っ
たりといったことが行われる。In addition to this, Romaji-Kana conversion often includes the ability to move the cursor during input to edit the character string being input. That is, the user moves the cursor and deletes the character strings before and after the scroll, or performs further input at the cursor position.
上述した従来のローマ字かな変換では、ローマ字を入力
している途中でローマ字がまだカナに変換されない状n
(例えばrshjと入力した状態)でカーソルを移動し
てしまうと、入力中だったローマ字はそのまま残ってし
まって、以後その部分に戻って続きを入力しても以前入
力中だったローマ字断片が用いられないという欠点があ
る。In the conventional romaji-kana conversion described above, there are cases where the romaji are not yet converted to kana while inputting the romaji.
(For example, if you move the cursor while inputting rshj), the Roman alphabet you were inputting will remain as is, and even if you return to that part and continue typing, the Roman alphabet fragment you were inputting previously will be used. The disadvantage is that it cannot be used.
例えば、rshJまで入力したところでカーソルを移動
し、そのfit r s h Jの直後にカーソルを戻
しriJを入力してもrLlには変換されずrshい」
のようになってしまうという欠点を持っていた。For example, if you move the cursor after inputting rshJ, and then move the cursor back immediately after that fit r sh J and input riJ, it will not be converted to rLl, but rsh.''
It had the disadvantage that it ended up looking like this.
本発明のローマ字かな変換方式は、アルファベット表示
のキーボードにて日本語を入力する機器のローマ字かな
変換方式において、ローマ字かな変換を実行中の文字列
を保持する文字列バッファと、前記文字列バッファに保
持されている文字に対応してその属性を保持する属性バ
ッファとを有し、前記文字列バッファと前記属性バッフ
ァとにそれぞれ付属するポインタに対応した前記文字列
バッファの文字を対象としてローマ字かな変換を行って
構成される。The Romaji-Kana conversion method of the present invention, in the Romaji-Kana conversion method for equipment that inputs Japanese using an alphabet display keyboard, has a character string buffer that holds a character string undergoing Romaji-Kana conversion, and a It has an attribute buffer that holds the attributes corresponding to the held characters, and performs Romaji-kana conversion for the characters in the string buffer that correspond to pointers attached to the string buffer and the attribute buffer, respectively. It is configured by doing the following.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例の構成を示すブロック図であ
る。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
利用者がローマ字かな変換を用いて日本語を入力する時
には、キーボード101を用いて入力を行い、その入力
が入力文字編集制御部103を経て、ローマ字かな変換
制御部104へ渡され、ローマ字かな変換されている経
過および結果がデイスプレィ装置102に表示される。When a user inputs Japanese using Romaji-Kana conversion, the user inputs using the keyboard 101, and the input is passed through the input character editing control unit 103 to the Romaji-Kana conversion control unit 104, where it is converted into Romaji-Kana. The progress and results of the process are displayed on the display device 102.
第2図は本発明によるローマ字かな変換制御部104が
ローマ字かな変換のために内部に持つ記憶制御の一例を
示す説明図である。FIG. 2 is an explanatory diagram showing an example of the storage control that the Romaji-Kana conversion control unit 104 according to the present invention has internally for Romaji-Kana conversion.
記憶領域は同様にインデックスづけされた2本のバッフ
ァが主体となっている。バッファは、ローマ字かな変換
されている途中の文字列を保持しておくための文字列バ
ッファ201と、文字列バッファ201に格納されてい
る各文字の属性を保持しておくための属性バッファ20
2により構成される。The storage area is mainly composed of two similarly indexed buffers. The buffers include a string buffer 201 for holding a string that is being converted to Roman to kana, and an attribute buffer 20 for holding the attributes of each character stored in the string buffer 201.
Consisting of 2.
文字列バッファにはローマ字かな変換されている途中の
文字列が保持されるが、属性バッファには文字列バッフ
ァの各文字について、その文字がローマ字かな変換が行
われて入力された文字であるのか、ローマ字かな変換に
使われるアルファベットであるのかを示すためのフラグ
が立てられる0例えば第2図においては、文字列バッフ
ァの文字のうち、「に」、「ゆ」、「う」についてはロ
ーマ字かな変換が行われていることを示す「1」が属性
バッファに蓄えられ、文字バッファの文字のうち、「s
」、「h」については、ローマ字かな変換がまだ行われ
ていないことを示す「0」が属性バッファに蓄えられる
。The string buffer stores the string that is currently being converted to Romaji-Kana, but the attribute buffer stores information about each character in the string buffer to determine whether that character was input after Romaji-Kana conversion. , a flag is set to indicate whether the alphabet is used for romaji-kana conversion.0For example, in Figure 2, among the characters in the string buffer, "ni", "yu", and "u" are in romaji or kana. "1" indicating that conversion is being performed is stored in the attribute buffer, and "s" among the characters in the character buffer is stored in the attribute buffer.
", "h", "0" indicating that Romaji-kana conversion has not yet been performed is stored in the attribute buffer.
バッファに対してはさらに、2本のポインタメモリによ
りカーソル位1の制m<第2図のカーソルポインタ(C
P’)203>およびローマ字かな変換の対象文字列の
制御(第2図のローマ字ポインタ<RP)204)が行
われる。Furthermore, for the buffer, two pointer memories are used to control the cursor position 1 < cursor pointer (C
P') 203> and control of the character string to be converted from Roman to Kana (Romaji pointer <RP) 204 in FIG. 2).
第2図のローマ字ポインタ(RP)204とカーソルポ
インタCP2O3との間の部分に存在する文字列バッフ
ァ中の文字列がローマ字かな変換の対象となる文字列で
ある。The character string in the character string buffer existing between the Romaji pointer (RP) 204 and the cursor pointer CP2O3 in FIG. 2 is the character string to be converted into Romaji-Kana.
カーソルポインタおよびローマ字ポインタはローマ字か
な変換入力が行われる際の編集機能によりその値を変化
させる。入力処理中に入力を挿入する位1であるカーソ
ルを変えることは即ちカーソルポインタ(CP>203
を変化させることになる。このときローマ字ポインタ(
RP)204もカーソルポインタCPに伴い移動する。The values of the cursor pointer and Romaji pointer are changed by the editing function when Romaji-Kana conversion input is performed. Changing the cursor, which is the place to insert input during input processing, means changing the cursor pointer (CP>203
will change. At this time, the romaji pointer (
RP) 204 also moves along with the cursor pointer CP.
第3図は1文字のローマ字が入力され、ローマ字かな変
換入力が行われる時の制御の流れを示すフローチャート
である。FIG. 3 is a flowchart showing the flow of control when one Roman character is input and Roman character-kana conversion input is performed.
このフローに従ってローマ字が入力されるときに、以前
に入力され変換の途中状態となっているローマ字の存在
をチエツクし、もし存在するのであれば、そのローマ字
をも含めてローマ字かな変換入力する処理が行われる。When Romaji is input according to this flow, the existence of Romaji that was previously input and is in the middle of conversion is checked, and if it exists, the process of inputting Romaji-Kana conversion including that Romaji is performed. It will be done.
ステップ302ではローマ字かな変換を行っていない文
字がカーソルの直前に存在するかどうかのチエツクを行
うかどうか判断している。In step 302, it is determined whether a check is to be made to see if a character that has not been converted to Romaji-Kana exists immediately before the cursor.
カーソルポインタ(CP)とローマ字ポインタ(RP)
が等しくないと言うことは、カーソルの移動が行われて
いないことの十分条件であり、その場合にはカーソルの
直前にローマ字かな変換されていない文字列が存在する
かどうかのチエツクは省略される。Cursor pointer (CP) and Roman pointer (RP)
Not being equal is a sufficient condition that the cursor has not been moved, in which case the check to see if there is an unconverted string in front of the cursor is omitted. .
ここで、カーソルポインタ(cp)とローマ字ポインタ
(RP)の値が等しい場合には、以下の手順でローマ字
かな変換されていない文字列の探索が行われる。Here, if the values of the cursor pointer (cp) and the Romaji pointer (RP) are equal, a search for a character string that has not been converted to Romaji-kana is performed in the following procedure.
まず、ローマ字ポインタ(RP)の値がデクリメントさ
れる。次に、デクリメントされたローマ字ポインタ(R
P)により示される文字属性が変換済を表す「1」にな
っているかどうかがチエツクされる。ローマ字ポインタ
(RP)のデクリメントおよび文字列の属性のチエツク
は、RPにより指される文字の属性が変換済になるが、
RPの指す部分が文字列バッファの先頭よりも前になっ
てしまうまで連続して行われる(ステップ303〜30
5)。RPのデクリメント終了した時点でRPを1回だ
けインクリメントすることにより(ステップ306)、
RPはカーソル直前に存在するローマ字かな変換されて
いない文字列の先頭を指すことになる。First, the value of the Roman pointer (RP) is decremented. Next, the decremented Roman pointer (R
It is checked whether the character attribute indicated by P) is "1" indicating that the conversion has been completed. Decrementing the Roman character pointer (RP) and checking the attributes of a character string will cause the attributes of the character pointed to by RP to be converted, but
This is performed continuously until the part pointed to by RP is before the beginning of the character string buffer (steps 303 to 30).
5). By incrementing RP only once when the decrement of RP is completed (step 306),
RP points to the beginning of the character string that exists immediately before the cursor and has not been converted to Roman characters.
この処理の後は、従来技術に見られるローマ字かな変換
とほぼ同一の処理が行われる。すなわち、入力された一
文字のローマ字をカーソルポインタのところに挿入し、
ローマ字ポインタとカーソルポインタとの間をローマ字
かな変換し、ローマ字ポインタとカーソルポインタの間
の文字列をローマ字かな変換しな結果得られた文字列と
置換する。After this process, almost the same process as the Romaji-kana conversion seen in the prior art is performed. In other words, insert the entered Roman character at the cursor pointer,
Converts the Roman character pointer and the cursor pointer to Roman character and Kana, and replaces the character string between the Roman character pointer and the cursor pointer with the character string obtained as a result of the Roman character to Kana conversion.
ただし、この後の処理で、ローマ字かな変換を行う時に
、未変換の文字列が正しく認識されるように置換された
部分の属性バッファの値を入れ直す必要がる。ローマ字
かな変換された結果は、変換されてカナになった部分と
、変換されずにローマ字のままの部分に分けられるので
、ローマ字かな変換されカナになった部分の属性バッフ
ァには変換済を表す「1」を設定し、ローマ字のまま残
っている部分には変換未了であることを表す「0」を設
定する(ステップ310)。However, in subsequent processing, when performing Romaji-Kana conversion, it is necessary to re-enter the value of the attribute buffer for the replaced part so that the unconverted character string can be recognized correctly. The result of romaji-kana conversion is divided into the part that has been converted to kana and the part that has not been converted to kana, so the attribute buffer for the part that has been converted to kana and romaji will indicate that it has been converted. "1" is set, and "0" indicating that the conversion has not been completed is set for the portion remaining in Roman letters (step 310).
第4図(a)〜(d)は、第3図におけるフローにてロ
ーマ字かな変換が行われていく状況を表している。40
1〜404はそれぞれ、文字列バッファ、属性バッファ
、カーソルポインタ、ローマ字ポインタである。第4図
(a)は、「がn」まで入力が行われており、「か」が
変換済になっており「n」が変換未了である状態を示し
ている。FIGS. 4(a) to 4(d) represent the situation in which Romaji-kana conversion is performed in the flow shown in FIG. 40
1 to 404 are a character string buffer, an attribute buffer, a cursor pointer, and a Roman character pointer, respectively. FIG. 4(a) shows a state in which input has been made up to "ga n", "ka" has been converted, and "n" has not yet been converted.
第4図(aンの状態に対して入力rke i Jが一文
字づつ入力されて行った状態が第4図(b)〜(d)に
あたる。The states shown in FIG. 4(b) to (d) correspond to the state of FIG. 4(a) in which input rke i J is input one character at a time.
その動作を述べると、「k」が入力された状態ではrn
kJがローマ字かな変換され、結果として「んk」が得
られる。「んk」のうち、「ん」はローマ字かな変換が
行われているが、rl(Jはローマ字かな変換が行われ
ていない。その結果として第4図(b)で表される状態
になり、「ん」には変換済を表す属性が立ち、I”k4
には変換未了である属性が付く。ローマ字ポインタは「
k」の部分に移動する。To describe its operation, when "k" is input, rn
kJ is converted to romaji and kana, and "nk" is obtained as a result. Of "nk", "n" has been converted to Roman Kana, but rl (J has not been converted to Romaji Kana. As a result, the state shown in Figure 4 (b) is obtained. , "n" has an attribute indicating that it has been converted, and I"k4
has an attribute indicating that the conversion has not been completed. The romaji pointer is “
Move to the "k" part.
さらに「e」を入力することにより、rke」がローマ
字かな変換され「けJが得られる。その結果が第4図(
C)で示される状態である。ここで「i」を入力すると
ローマ字かな変換が行われ「い」が得られる。その結果
は第4図(d)に示される。Furthermore, by inputting "e", "rke" is converted to romaji kana and "keJ" is obtained. The result is shown in Figure 4 (
This is the state shown in C). If you input "i" here, Romaji-kana conversion will be performed and you will get "i". The results are shown in FIG. 4(d).
第5図(a)〜(d)は、第3図のフローでローマ字か
な変換が行われれいく様子を示した別の例である。FIGS. 5(a) to 5(d) are other examples showing how Romaji-kana conversion is performed according to the flow shown in FIG. 3.
文字列バッファの途中に、ローマ字かな変換されていな
い「S」という文字が存在する時に、どのような処理が
行われるかを示すものである。すなわち、カーソルを移
動し、第5図(b)の状態となったところで「h」を入
力すると、ステップ303〜305に示される処理が行
われ、ローマ字ポインタが「s」を指すようになる。そ
の後にカーソルポインタ(cp)の位置にrh」が入力
され、ローマ字ポインタ(RP)とカーソルポインタ(
CP)との間にある文字列rsh、、1がローマ字かな
変換の対象となる。This shows what kind of processing is to be performed when the character "S" that has not been converted to Romaji or Kana exists in the middle of the character string buffer. That is, if the cursor is moved and "h" is input when the state shown in FIG. 5(b) is reached, the processes shown in steps 303 to 305 are performed and the Roman character pointer points to "s". After that, "rh" is input at the cursor pointer (cp) position, and the Roman pointer (RP) and cursor pointer (
The character string rsh, , 1 between CP) is the target of Romaji-Kana conversion.
「Sh」ではローマ字かな変換が行われず、「S」およ
びrhJの両方の文字が変換未了の文字として残存し、
ローマ字ポインタの位置も「S」を指したままである。Romaji-kana conversion is not performed for "Sh", and both characters "S" and rhJ remain as unconverted characters,
The position of the Roman character pointer also remains pointing to "S".
この状態でさらに「u」を入力すると、rshu」がロ
ーマ字かな変換の対象となり、「しゆ」が得られ、第5
図(d)の状態となる。If you enter "u" again in this state, "rshu" will be converted into Romaji-kana, "shiyu" will be obtained, and the fifth
The state shown in figure (d) is reached.
以上詳細に説明したように、本発明はローマ字かな変換
においてローマ字かな変換の対象となり得る文字列に対
して属性を付加することにより、ローマ字かな変換がな
されずに残された文字列を正しく認識し、正しくローマ
字かな変換の対象となるという効果がある。As explained in detail above, the present invention adds attributes to character strings that may be subject to Romaji-Kana conversion during Romaji-Kana conversion, thereby correctly recognizing character strings that remain without Romaji-Kana conversion. , it has the effect of being the correct target for romaji-kana conversion.
第1図は本発明の一実施例の構成を示すブロック図、第
2図は本発明によるローマ字かな変換制御部がローマ字
かな変換のために内部に持つ記憶制御の例を示す説明図
、第3図は1文字のローマ字が入力され、ローマ字かな
変換入力が行われる時の制御の流れを示すフローチャー
ト、第4図(a)〜(d)および第5図(a)〜(d)
は第3図のフローを用いて処理が進められる様子を示す
説明図。
101・・・キーボード、102・・・デイスプレィ装
置、103・・・入力文字編集制御部、104・・・ロ
ーマ字かな変換制御部。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is an explanatory diagram showing an example of the storage control that the Romaji-kana conversion control unit according to the present invention has internally for Romaji-kana conversion, and FIG. The figure is a flowchart showing the flow of control when one Roman character is input and Romaji-kana conversion input is performed, Figures 4 (a) to (d) and Figures 5 (a) to (d).
FIG. 4 is an explanatory diagram showing how the process proceeds using the flow shown in FIG. 3; 101...Keyboard, 102...Display device, 103...Input character editing control section, 104...Romaji-kana conversion control section.
Claims (1)
機器のローマ字かな変換方式において、ローマ字かな変
換を実行中の文字列を保持する文字列バッファと、前記
文字列バッファに保持されている文字に対応してその属
性を保持する属性バッファとを有し、前記文字列バッフ
ァと前記属性バッファとにそれぞれ付属するポインタに
対応した前記文字列バッファの文字を対象としてローマ
字かな変換を行って成ることを特徴とするローマ字かな
変換方式。In the Romaji-Kana conversion method of a device that inputs Japanese using an alphabet display keyboard, there is a string buffer that holds the character string that is undergoing Romaji-Kana conversion, and a character string that corresponds to the characters held in the string buffer. and an attribute buffer that holds the attributes, and performs Romaji-kana conversion on characters in the character string buffer that correspond to pointers attached to the character string buffer and the attribute buffer, respectively. Romaji-kana conversion method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008802A JPH03212757A (en) | 1990-01-17 | 1990-01-17 | Romaji/kana conversion system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008802A JPH03212757A (en) | 1990-01-17 | 1990-01-17 | Romaji/kana conversion system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03212757A true JPH03212757A (en) | 1991-09-18 |
Family
ID=11702982
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008802A Pending JPH03212757A (en) | 1990-01-17 | 1990-01-17 | Romaji/kana conversion system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03212757A (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS643774A (en) * | 1987-06-26 | 1989-01-09 | Hitachi Ltd | Kana/kanji conversion device |
-
1990
- 1990-01-17 JP JP2008802A patent/JPH03212757A/en active Pending
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS643774A (en) * | 1987-06-26 | 1989-01-09 | Hitachi Ltd | Kana/kanji conversion device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7519949B2 (en) | Marking changes based on a region and a threshold | |
| JP3082746B2 (en) | Speech recognition system | |
| JPH03212757A (en) | Romaji/kana conversion system | |
| JPS628259A (en) | Kana (japanese syllabary)-kanji (chinese character) converting system | |
| JPH04286000A (en) | Input method for voice control information | |
| JP3036005B2 (en) | Kana-Kanji conversion device | |
| JPH01302483A (en) | Document reader | |
| JPH0122621B2 (en) | ||
| JPH02255944A (en) | Kana/kanji converter | |
| JPH0650504B2 (en) | Kana-Kanji converter | |
| JPS61260353A (en) | Document processing system | |
| JP2509554B2 (en) | Character processing method | |
| JPH04130571A (en) | Numerical calculation method | |
| JP2003177860A (en) | System and method for inputting japanese syllabary character | |
| JPH01303514A (en) | Key input device | |
| JPH0414167A (en) | Roman character/kana conversion system | |
| JPH09185617A (en) | Character processing method and character processing device | |
| JPH06131333A (en) | Text editing device | |
| JPH03111966A (en) | Document preparing device | |
| JPH0431958A (en) | document processing device | |
| JPH04308923A (en) | Voice inputting device | |
| JPH04165462A (en) | Japanese language processor | |
| JPH0522268B2 (en) | ||
| JPS60138669A (en) | Japanese document producer | |
| JPH05108615A (en) | Non-priority learning japanese language input system |