JPH0630096B2 - Japanese processor - Google Patents

Japanese processor

Info

Publication number
JPH0630096B2
JPH0630096B2 JP59056267A JP5626784A JPH0630096B2 JP H0630096 B2 JPH0630096 B2 JP H0630096B2 JP 59056267 A JP59056267 A JP 59056267A JP 5626784 A JP5626784 A JP 5626784A JP H0630096 B2 JPH0630096 B2 JP H0630096B2
Authority
JP
Japan
Prior art keywords
cursor
input
hiragana
katakana
key
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
JP59056267A
Other languages
Japanese (ja)
Other versions
JPS60200360A (en
Inventor
健司 松瀬
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP59056267A priority Critical patent/JPH0630096B2/en
Publication of JPS60200360A publication Critical patent/JPS60200360A/en
Publication of JPH0630096B2 publication Critical patent/JPH0630096B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/53Processing of non-Latin text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Machine Translation (AREA)

Description

【発明の詳細な説明】 技術分野 本発明は日本語処理装置、より具体的には、入力した日
本語文中のかな文字を必要に応じてひらがな文字からか
たかな文字へ、または、かたかな文字からひらがな文字
へ変換するひらがなかたかな変換機能を備えた日本語処
理装置に関するものである。
Description: TECHNICAL FIELD The present invention relates to a Japanese language processing device, and more specifically, to kana characters in an input Japanese sentence from hiragana characters to katakana characters, or katakana characters. The present invention relates to a Japanese language processor having a Hiragana-Katakana conversion function for converting characters into Hiragana characters.

従来技術 日本語処理装置は、文書作成や文書管理を迅速・容易と
し、事務処理作業の合理化を可能にするものとして近年
急速な普及を見せている装置である。
2. Description of the Related Art Japanese language processing devices have rapidly spread in recent years as they enable quick and easy document creation and document management and rationalization of office work.

日本語処理装置の内、例えばかな漢字変換式では、キー
ボードによりかな文字で入力された日本語文をかな漢字
変換し画面に表示する。そしてオペレータは画面を見な
がら挿入・削除・訂正などの所望の編集作業を行なうこ
とができるようになっている。キーボードは、かなキー
及びひらがなとかたかなの間でモード切換(ここで、モ
ードは、ひらがな,かたかな,漢字,英字などの種別を
指す。)を行なうためのかなモード指定キーを有してお
り、オペレータはこのかなモード指定キーを切換えてひ
らがな入力又はかたかな入力を選択することができる。
Among Japanese language processing devices, for example, in a kana-kanji conversion type, a Japanese sentence input with kana characters by a keyboard is converted into kana-kanji characters and displayed on the screen. Then, the operator can perform desired editing work such as insertion, deletion and correction while looking at the screen. The keyboard has a kana key and a kana mode designation key for performing mode switching between hiragana and katakana (where mode refers to a type such as hiragana, katakana, kanji, and English characters). The operator can switch the kana mode designating key to select the hiragana input or the katakana input.

ところで、従来の日本語処理装置においては、日本語入
力操作の際、ひらがなとかたかなのモードを間違えて、
入力しようとしたモードとは異なるモードで入力を行な
ってしまった場合、それからモードを切換ても、その後
のキー入力に関してのみ有効であり、既に入力を終えた
文字に関してはモードの変更処理はされない。従って。
日本語入力をやり直すか、後に行なう編集作業において
訂正しなければならなかった。一方、編集作業での訂正
は、一文字単位でしか処理できないので誤入力した文字
が複数並んで存在する場合には、個々にカーソルの移
動、訂正キーの操作及び訂正する文字キーの入力操作を
くり返し行なわれなければならず、操作上非常に不便で
作業能率の低下を招く原因となっていた。
By the way, in the conventional Japanese language processing device, when inputting Japanese, the mode of Hiragana and Katakana is wrong,
When an input is made in a mode different from the mode in which the input was attempted, even if the mode is switched from then on, it is effective only for the subsequent key input, and the mode changing process is not performed for the characters already input. Therefore.
I had to redo the Japanese input or correct it in the editing work to be performed later. On the other hand, since the correction in the editing work can be processed only on a character-by-character basis, if there are multiple erroneously input characters in a line, the cursor movement, the correction key operation, and the correction key input operation are repeated individually. It has to be performed, which is very inconvenient in operation and causes a reduction in work efficiency.

目的 本発明はこのような従来技術の欠点を解消し、簡単なキ
ー操作で画面に表示された日本語文を見ながら、あるモ
ードで既に入力されているひらがな又はかたかな文字列
を一度に他のモードのかたかな又はひらがな文字列に変
換することのできる操作性の良好な日本語処理装置を提
供することを目的とする。
The object of the present invention is to solve the above-mentioned drawbacks of the prior art, and to view a Japanese sentence displayed on the screen by a simple key operation, and at the same time, enter a Hiragana or Katakana character string that has already been input in a certain mode. It is an object of the present invention to provide a Japanese language processing device having good operability, which can be converted into a Katakana or Hiragana character string of the mode.

構成 本発明の構成について以下、一実施例に基づいて説明す
る。
Configuration The configuration of the present invention will be described below based on an embodiment.

第1図は本発明によるかな漢字変換式の日本語処理装置
の構成例を示すブロック図である。同図において、キー
ボード10にキー判定部12を介して日本語処理部14
が接続されている。キーボード10は、かなキー、英字
キーなどの文字キー、挿入キー、削除キー、訂正キーな
どのファンクションキーなど日本語入力操作及びかな漢
字変換、編集操作等を行なうために必要な各種キーを有
しており、キーを押下すると各キーに対応するコードデ
ータが出力されるようになっている。キーボード10に
はカタカナキー、シフトキー、ひらがな・カタカナ変換
キー、カーソルキーも設けられている。カタカナキーを
解除した状態でかなキーを押下するとひらがな文字を入
力することができ、カタカナキーを押下した状態でかな
キーを押下するとかたかな文字を入力することができ
る。日本語入力はかな文字を用いてべた書で行なう。ひ
らがな・カタカナ変換キーは既に入力したかな文字のモ
ード変換を指示するためのもので、シフトキーを解除し
た状態で押下したときはひらがなからカタカナへの変
換、シフトキーを押下した状態のときはかたかなからひ
らがなへの変換を表わす。カーソルキーを操作すると、
移動量データが後述するカーソル移動部16へ出力され
るようになっており、画面上のカーソルがx又はy方向
へ移動する。
FIG. 1 is a block diagram showing a configuration example of a kana-kanji conversion type Japanese processing device according to the present invention. In the figure, a Japanese processing unit 14 is provided on the keyboard 10 via the key determination unit 12.
Are connected. The keyboard 10 has various keys necessary for performing Japanese input operations, kana-kanji conversion, editing operations, etc., such as character keys such as kana key and alphabetic key, function keys such as insert key, delete key, and correction key. When the key is pressed, the code data corresponding to each key is output. The keyboard 10 is also provided with katakana keys, shift keys, hiragana / katakana conversion keys, and cursor keys. If you press the Kana key with the Katakana key released, you can enter Hiragana characters, and if you press the Kana key with the Katakana key pressed, you can enter Katakana characters. Japanese input is done in plain text using kana characters. The Hiragana / Katakana conversion key is for instructing the mode conversion of the Kana characters that have already been entered.When the shift key is pressed down, it is converted from Hiragana to Katakana, and when the shift key is pressed, it is Katakana. Represents the conversion from Japanese to Hiragana. When you operate the cursor keys,
The moving amount data is output to the cursor moving unit 16 described later, and the cursor on the screen moves in the x or y direction.

キー判定部12は、キーボード10からの入力データが
ひらがな・カタカナ変換キーに係るコマンドか否か判定
する機能を有しひらがな・カタカナ変換キーに係るコマ
ンド以外の文字データ又はコマンドを入力したときは日
本語処理部14へそのまま出力する。ひらがな・カタカ
ナ変換キーに係るコマンドを入力したときは出力側に接
続されたカーソル位置記憶部18へ読込信号を出力する
ようになっている。
The key determination unit 12 has a function of determining whether or not the input data from the keyboard 10 is a command related to the Hiragana / Katakana conversion key. When the character data or the command other than the command related to the Hiragana / Katakana conversion key is input, It is directly output to the word processing unit 14. When a command related to the Hiragana / Katakana conversion key is input, a read signal is output to the cursor position storage unit 18 connected to the output side.

日本語処理部14は、オペレータの入力操作でキーボー
ド10から送られるべた書きの日本語文をまずメモリ2
0の入力行記憶領域へ蓄積する。そして、句読点若しく
はスペースを入力すると日本語処理部14は入力行記憶
領域に蓄積したべた書きの日本語文を単語辞書及び文法
規則を用いてかな漢字変換しメモリ20の変換行記憶領
域に蓄積する。メモリ20の出力側にはCRT制御部2
2、CRTディスプレイ24が接続されており、メモリ2
0に蓄積された入力文及び変換文データが文字パターン
に変えられて各々画面の所定の入力行表示位置及び変換
行表示位置に表示されるようになっている。CRT制御部
22はカーソル移動部16から送られるカーソルデータ
に基づき画面にカーソル表示も行なう。
The Japanese processing unit 14 first writes a solid Japanese sentence sent from the keyboard 10 by an operator's input operation to the memory 2
0 is stored in the input row storage area. Then, when a punctuation mark or a space is input, the Japanese processing unit 14 performs kana-to-kanji conversion on the Japanese sentence of the full text stored in the input line storage area using the word dictionary and grammatical rules and stores it in the converted line storage area of the memory 20. The CRT control unit 2 is provided on the output side of the memory 20.
2, CRT display 24 is connected, memory 2
The input sentence and converted sentence data accumulated in 0 are converted into character patterns and displayed at predetermined input line display positions and converted line display positions on the screen, respectively. The CRT control unit 22 also displays a cursor on the screen based on the cursor data sent from the cursor moving unit 16.

日本語処理部14は、また変換文に削除・挿入・訂正な
どを施す編集機能を有している。画面に表示された変換
文を変更するためオペレータがキーボード10のカーソ
ルキーを操作して位置を指定するとカーソル移動部16
からカーソルデータが日本語処理部14に入力される。
また削除・挿入・訂正キーなどの編集キー(但し、ひら
がな・カタカナ変換キーを除く)及び変更に必要な文字
キーを操作すると対応するコマンド及び文字データが日
本語処理部14に送られる。
The Japanese processing unit 14 also has an editing function of deleting / inserting / correcting a converted sentence. When the operator operates the cursor keys of the keyboard 10 to specify the position in order to change the conversion sentence displayed on the screen, the cursor moving unit 16
From the cursor data is input to the Japanese language processing unit 14.
When an edit key such as a delete / insert / correct key (except for the hiragana / katakana conversion key) and a character key required for change are operated, the corresponding command and character data are sent to the Japanese language processing unit 14.

日本語処理部14は、入力した編集コマンドに基づきメ
モリ20に蓄積した変換文を読出し削除・挿入・訂正等
を行なって修正・変更する。編集後の変換文を再びメモ
リ20の変換行記憶領域に蓄積し、画面に表示させる。
The Japanese processing unit 14 reads out the converted sentence stored in the memory 20 based on the input editing command, and deletes / inserts / corrects the converted sentence to correct / change the sentence. The edited converted sentence is stored again in the converted line storage area of the memory 20 and displayed on the screen.

また、本構成例による日本語処理装置は、かな文字で日
本語入力を行なっている際、既に入力してしまったモー
ドの間違ったひらがな文字列又はかたかな文字列のモー
ドを訂正したいときは画面の入力行に表示されている所
望のかな文字列の最後の文字にカーソルを合わせたのち
ひらがな・カタカナ変換キーを押せば前にさかのぼって
複数文字分一度にモード変換できるようになっている。
また、編集時に、画面の変換行に表示されているひらが
な文字列又はかたかな文字列のモードを変換したいとき
は画面の変換行に表示されている所望のかな文字列の最
初と最後の文字にカーソルを合わせたのち各々ひらがな
・カタカナ変換キーを押せばカーソルで指定された区間
のかな文字列を一度にモード変換できるようになってい
る。
Also, when the Japanese processing device according to this configuration example is performing Japanese input with Kana characters, and wants to correct the wrong Hiragana character string or Katakana character string mode that has already been input, If you move the cursor to the last character of the desired kana character string displayed on the input line of the screen and then press the Hiragana / Katakana conversion key, you can go back and perform mode conversion for multiple characters at once.
When you want to change the mode of the Hiragana character string or Katakana character string displayed on the conversion line of the screen during editing, if you want to convert the first and last characters of the desired Kana character string displayed on the conversion line of the screen. After you put the cursor on and press the Hiragana / Katakana conversion key respectively, you can convert the kana character string in the section specified by the cursor to the mode at once.

既ち、キーボード10でひらがな・カタカナ・変換キー
が押下されるとキー判定部12がこれを判別してカーソ
ル位置記憶部18へ読込信号を送出する。また、この
際、シフトキーが押下されている場合には、キー判定部
12はカーソル位置記憶部18の出力側に接続されたひ
らがな・カタカナ変換部26にシフトキーが押下されて
いることを表わすシフト信号を送出する。カーソル位置
記憶部18は、モード変換するかな文字列の区間を記憶
する機能を有している。最初の読込信号を入力するとま
ずカーソル位置記憶部18はそのときカーソル移動部1
6が出力しているカーソルデータを読込み第1データと
して記憶する。続いて、カーソルデータが画面の変換行
表示領域にかかるデータか、入力行表示領域にかかるデ
ータか判別し前者の場合はキー判定部12から次の読込
信号が入力されるのを待つ。そしてカーソルキー操作で
カーソル移動後ひらがな・カタカナ変換キーの押下で2
回目の読込信号を入力すると、カーソル位置記憶部18
は再びそのときカーソル移動部16が出力している第2
のカーソルデータを読込み記憶する。カーソル位置記憶
部18に記憶された第1,第2のカーソルデータは変換
文の中のモード変換を所望するかな文字列の区間を表わ
す。
When the hiragana / katakana / conversion key is pressed on the keyboard 10, the key determination unit 12 determines this and sends a read signal to the cursor position storage unit 18. Further, at this time, if the shift key is pressed, the key determination unit 12 causes the hiragana / katakana conversion unit 26 connected to the output side of the cursor position storage unit 18 to indicate that the shift key is pressed. Is sent. The cursor position storage unit 18 has a function of storing a section of a kana character string whose mode is to be converted. When the first read signal is input, the cursor position storage unit 18 firstly moves the cursor moving unit 1 at that time.
The cursor data output by 6 is read and stored as the first data. Subsequently, it is determined whether the cursor data is data on the converted line display area of the screen or data on the input line display area. In the former case, the key determination unit 12 waits until the next read signal is input. After moving the cursor by operating the cursor keys, press the Hiragana / Katakana conversion key to 2
When the second read signal is input, the cursor position storage unit 18
Is again the second output by the cursor moving unit 16 at that time.
Read and store the cursor data of. The first and second cursor data stored in the cursor position storage unit 18 represents a section of a kana character string in the conversion sentence for which mode conversion is desired.

これとは別に1回目の読込信号に応動してカーソル移動
部16から入力したカーソルデータが、画面の入力行表
示領域にかかるデータのときカーソル位置記憶部18は
このデータを第1のカーソルデータとして記憶するとと
もにカーソル移動部16にカーソル後退信号を出力す
る。
Separately, when the cursor data input from the cursor moving unit 16 in response to the first read signal is data that covers the input line display area of the screen, the cursor position storage unit 18 uses this data as the first cursor data. The memory is stored and a cursor retreat signal is output to the cursor moving unit 16.

カーソル移動部16は、カーソルデータレジスタを有し
ており、カーソルキー操作によってキーボード10から
x方向又はy方向の移動量データを入力するとレジスタ
に貯えたカーソルデータに加減算しカーソルデータの更
新を行なう。また、カーソル位置記憶部18からカーソ
ル後退信号を入力するとレジスタに貯えたカーソルデー
タを逐次デクリメントしカーソルを1文字ずつ後退させ
るようになっている。このカーソルデータの後退はカー
ソル位置記憶部18から停止信号を入力するまで行なわ
れる。カーソル移動部16に貯えられたカーソルデータ
はCRT制御部22に送出されて画面にカーソル表示が行
なわれるとともに、かな文字のモード変換処理を行なう
間カーソル位置記憶部18に送出される。また、カーソ
ル後退信号を入力してデクリメントを行なう場合カーソ
ルデータはカーソル移動部16の出力側に接続されたモ
ード記憶部28に送出されるようになっている。
The cursor moving unit 16 has a cursor data register, and when moving amount data in the x direction or the y direction is input from the keyboard 10 by operating the cursor keys, the cursor data is added to or subtracted from the cursor data stored in the register to update the cursor data. When a cursor backward signal is input from the cursor position storage unit 18, the cursor data stored in the register is sequentially decremented and the cursor is moved backward character by character. This backward movement of the cursor data is performed until a stop signal is input from the cursor position storage unit 18. The cursor data stored in the cursor moving unit 16 is sent to the CRT control unit 22 so that the cursor is displayed on the screen and is also sent to the cursor position storage unit 18 during the mode conversion process of kana characters. Further, when the cursor backward signal is input to perform decrement, the cursor data is sent to the mode storage unit 28 connected to the output side of the cursor moving unit 16.

モード記憶部28は、カーソル移動部16からカーソル
データを入力するとメモリ20の入力行記憶領域からカ
ーソルデータが示すアドレスの文字データを読出し文字
モードがひらがな(mode=1)かかたかな(mode=2)
かを識別する。そして、デクリメントする前のオペレー
タによって指定された最初のカーソルデータに係る文字
(変換を所望するかな文字列の最後の文字)Aのモード
modeA(=1又は2)とし、デクリメント中の各カーソ
ルデータに係る文字モードを順にmodeB,modeB
modeB,…(=1又は2)として記憶するとともに出
力側に接続されたモード判定部30へ出力する。
When the cursor data is input from the cursor moving unit 16, the mode storage unit 28 reads the character data at the address indicated by the cursor data from the input line storage area of the memory 20, and whether the character mode is Hiragana (mode = 1) or not (mode = 2)
Identify. The mode of the character (the last character of the kana character string to be converted) A related to the first cursor data specified by the operator before decrementing
The mode A (= 1 or 2) is set, and the character mode related to each cursor data during decrement is modeB 1 , modeB 2 ,
It is stored as modeB 3 , ... (= 1 or 2) and is output to the mode determination unit 30 connected to the output side.

モード判定部30は、modeAを基準にしてカーソルデー
タのデクリメント動作に従い順にモード記憶部28から
送出されるmodeB,modeB,…と比較して行く。変
換を所望するかな文字列の最後の文字とは異なるモード
の文字となりmodeA≠modeBとなったときカーソル位
置記憶部18に選定信号を出力する。この選定信号を入
力したカーソル位置記憶部18はそのときカーソル移動
部16ガ出力しているカーソルデータを入力し、1だけ
インクリメントし第2のカーソルデータとして記憶す
る。但し、入力行の文頭までカーソルを後退してもmode
A≠modeBとならないときは文頭アドレスを第2のカ
ーソルデータとする。これにより、入力行のモード変換
を所望するかな文字列の最後の文字位置を指定すれば最
初の文字位置が自動的に選定されることになる。
The mode determination unit 30 sequentially compares modeB 1 , modeB 2 , ... That are transmitted from the mode storage unit 28 according to the decrement operation of the cursor data with reference to modeA. When a character of a mode different from the last character of the kana character string desired to be converted becomes modeA ≠ modeB i , a selection signal is output to the cursor position storage unit 18. The cursor position storage unit 18, which has received this selection signal, inputs the cursor data output by the cursor moving unit 16 at that time, increments it by 1 and stores it as second cursor data. However, even if the cursor moves backward to the beginning of the input line, mode
When A ≠ modeB i is not satisfied, the beginning address is used as the second cursor data. Thus, if the last character position of the kana character string for which mode conversion of the input line is desired is designated, the first character position is automatically selected.

カーソル位置記憶部18の出力側にはひらがな・カタカ
ナ変換部26が接続されている。カーソル位置記憶部1
8は、変換すべきかな文字列の区間の選定動作を終える
と、範囲を表わす第1・第2のカーソルデータをひらが
な・カタカナ変換部26へ出力する。このひらがな・カ
タカナ変換部26は、メモリ20と接続されており、こ
のメモリ20から第1,第2のカーソルデータで表わさ
れた区間にあるかな文字列データを読出し、モードを変
換して再びメモリ20に記憶されるようになっている。
但し、ひらがな・カタカナ変換部26はキー判定部12
からシフト信号を入力しているときはかたかなからひら
がなへモード変換を行ない、シフト信号の入力がないと
きはひらがなからかたかなへモード変換を行なう。モー
ド変換処理は、例えばひらがなコードとかたかなコード
が一定の対応関係にあることを利用して一定数の加減算
で行なうことができる。
A hiragana / katakana conversion unit 26 is connected to the output side of the cursor position storage unit 18. Cursor position storage unit 1
After finishing the operation of selecting the section of the kana character string to be converted, 8 outputs the first and second cursor data representing the range to the hiragana / katakana conversion unit 26. The hiragana / katakana conversion unit 26 is connected to the memory 20. The kana character string data in the section represented by the first and second cursor data is read from the memory 20, the mode is converted, and the mode is converted again. It is adapted to be stored in the memory 20.
However, the hiragana / katakana conversion unit 26 is the key determination unit 12
When a shift signal is being input from, the mode conversion is performed from katakana to hiragana, and when there is no shift signal input, the mode is converted from hiragana to katakana. The mode conversion process can be performed by a certain number of additions and subtractions by utilizing the fact that the hiragana code and the katakana code have a certain correspondence relationship.

このようにしてかな文字列のモードが訂正されたメモリ
20の記憶内容は、CRTディスプレイ24の画面に直ち
に表示される。入力行のかな文字列のモードを訂正した
ときは一文入力完了後前述したように日本語処理部14
でかな漢字変換がなされる。また、変換行のかな文字列
のモードを訂正したときは、続いて挿入・削除等他の編
集作業を行なうことが可能である。
The stored contents of the memory 20 in which the kana character string mode is corrected in this manner are immediately displayed on the screen of the CRT display 24. When the mode of the kana character string in the input line is corrected, the Japanese processing unit 14 is executed as described above after the completion of inputting one sentence.
Big Kanji conversion is done. Further, when the mode of the kana character string in the conversion line is corrected, other editing work such as insertion / deletion can be performed subsequently.

次に、上記実施例の全体的な作用を第2図及び第3図に
基づいて説明する。第2図は、編集時に変換文中のかな
文字列のモード変換を行なう場合の動作を表わすフロー
チャートであり、第3図は入力時に入力文中のかな文字
列のモード変換を行なう場合のフローチャートである。
Next, the overall operation of the above embodiment will be described with reference to FIGS. 2 and 3. FIG. 2 is a flow chart showing the operation in the case of performing mode conversion of the kana character string in the conversion sentence at the time of editing, and FIG. 3 is a flow chart in the case of performing mode conversion of the kana character string in the input sentence at the time of input.

初めに第2図を参照しながら変換文中のひらがな文字列
をかたかな文字列に変換する場合について述べる。ま
ず、オペレータが画面を見ながらカーソルキーを操作し
て変換行の内、モード変換をしたいひらがな文字列の最
初の文字位置にカーソルを合わせる。このときカーソル
移動部16が最初の文字位置のカーソルデータをカーソ
ル位置記憶部18へ出力する。続いてシフトキーを解除
したままひらがな・カタカナ変換キーを押しコマンドを
キー判定部12へ送出する。
First, referring to FIG. 2, a case of converting a hiragana character string in a conversion sentence into a katakana character string will be described. First, the operator operates the cursor keys while looking at the screen to position the cursor on the first character position of the hiragana character string for which the mode conversion is desired, in the conversion line. At this time, the cursor moving unit 16 outputs the cursor data at the first character position to the cursor position storage unit 18. Then, the hiragana / katakana conversion key is pressed with the shift key released, and a command is sent to the key determination unit 12.

このキー判定部12は予めキーボード10によるキー入
力があるか否か判断しており(50)、キー入力がある
ときはひらがな・カタカナ変換キーによるものか否か判
断し(51)、他のキー入力のときは日本語処理部14
で対応する処理を行なわせる(52)。ひらがな・カタ
カナ変換キーによるものであるとき、キー判定部12は
読込信号を出力しカーソル位置記憶部18にカーソル移
動部16が出力している第1のカーソルデータを記憶さ
せる(53)。カーソルデータが変換行に関するデータ
であるので、次にカーソル位置記憶部18はひらがな・
カタカナ変換キーが2度押されたか判断し(54)、否
のときはキー入力あるかのフローへ戻る(50)。ここ
でオペレータが変換を所望するひらがな文字列の最後の
文字位置にカーソルを合わせ、ひらがな・カタカナ変換
キーを押すと、前述と同様にしてカーソル位置記憶部1
8にそのときカーソル移動部16が出力している第2の
カーソルデータを記憶させる(53)。
The key determination unit 12 determines in advance whether or not there is a key input from the keyboard 10 (50), and when there is a key input, determines whether or not the input is from a hiragana / katakana conversion key (51) and other keys. When inputting, Japanese processing unit 14
Then, the corresponding processing is performed (52). When the key is the Hiragana / Katakana conversion key, the key determination unit 12 outputs a read signal and causes the cursor position storage unit 18 to store the first cursor data output by the cursor movement unit 16 (53). Since the cursor data is the data related to the conversion line, the cursor position storage unit 18 next reads the hiragana /
It is determined whether the katakana conversion key has been pressed twice (54). If not, the flow returns to the flow of key input (50). Here, when the operator positions the cursor on the last character position of the hiragana character string desired to be converted and presses the hiragana / katakana conversion key, the cursor position storage unit 1 is operated in the same manner as described above.
The second cursor data output by the cursor moving unit 16 at that time is stored in the memory 8 (53).

ひらがな・カタカナ変換キーが2回押されてカーソル位
置記憶部18に第1,第2のカーソルデータが記憶され
ると、このデータはひらがな・カタカナ変換部26へ送
られる。シフト信号を入力していないひらがな・カタカ
ナ変換部26はメモリ20の変換行記憶領域の内第1,
第2のカーソルデータが示す区間のひらがな文字列デー
タを対応するかたかな文字列データに変換する(5
5)。画面上にはかたかな文字列に一度に訂正された変
換文が表示される。次にオペレータは変換文中のかな文
字列のモード変換が全て終了したか判断し(56)終了
したときはフローを終わり、否のときは最初に戻り同様
にして変換文中の他のかな文字列のモードを変換する。
この際、かたかな文字列をひらがな文字列に変換したい
場合は予めシフトキーを押しておけばよい。
When the hiragana / katakana conversion key is pressed twice to store the first and second cursor data in the cursor position storage section 18, this data is sent to the hiragana / katakana conversion section 26. The hiragana / katakana conversion unit 26 to which the shift signal is not input is the first in the conversion row storage area of the memory 20.
The hiragana character string data in the section indicated by the second cursor data is converted into the corresponding katakana character string data (5
5). On the screen, katakana character strings are displayed with the converted sentences corrected at once. Next, the operator judges whether or not the mode conversion of the kana character string in the conversion sentence has been completed (56). When the operation is completed, the flow is ended. Convert mode.
At this time, if it is desired to convert a katakana character string into a hiragana character string, the shift key may be pressed in advance.

なお、変換文中の或るかな文字にカーソルを合わせ、ひ
らがな・カタカナ変換キーを2度続けて押せば、第1カ
ーソルデータ=第2カーソルデータとなり一字だけモー
ドを変換できるようになっている。
If the cursor is moved to a certain kana character in the conversion sentence and the hiragana / katakana conversion key is pressed twice in succession, the first cursor data = the second cursor data, and the mode can be converted only for one character.

次に、第3図を参照しながらひらがなモードで日本語入
力を行なっている際、誤って入力したかたかな文字列を
ひらがな文字列に修正する場合について述べる。まず、
オペレータが画面を見ながらカーソルキーを操作して入
力行表示領域に表示された入力文の内、モード変換を所
望するかたかな文字列の最後の文字位置にカーソルを合
わせる。続いてシフトキーを押下した状態でひらがな・
カタカナ変換キーを押し所定のコマンドをキー判定部1
2へ送出する。
Next, referring to FIG. 3, a description will be given of a case where a Japanese character input in Hiragana mode is corrected to a Hiragana character string by mistake. First,
While looking at the screen, the operator operates the cursor keys to move the cursor to the last character position of the katakana character string for which mode conversion is desired among the input sentences displayed in the input line display area. Then press the shift key and press hiragana.
Press the Katakana conversion key and send a predetermined command to the key determination unit 1
Send to 2.

キー判定部12は、予め、キーボード10によるキー入
力があるか否か判断しており(60)、キー入力がある
ときは更にひらがな・カタカナ変換キーによるものか否
か判断し(61)、他のキー入力のときは日本語処理部
で対応する処理を行なわせる(62)。ひらがな・カタ
カナ変換キーによるものであるとき、キー判定部12は
ひらがな・カタカナ変換部26へシフト信号を出力する
とともに読込信号をカーソル位置記憶部18へ出力しカ
ーソル移動部16が出力している第1のカーソルデータ
を記憶させる(63)。このカーソルデータが入力行に
関するデータであるので、カーソル位置記憶部18は後
退信号をカーソル移動部20へ送出する。
The key determination unit 12 determines in advance whether or not there is a key input from the keyboard 10 (60), and if there is a key input, further determines whether or not the input is from a hiragana / katakana conversion key (61), etc. When the key is pressed, the Japanese processing section performs the corresponding processing (62). When using the Hiragana / Katakana conversion key, the key determination unit 12 outputs a shift signal to the Hiragana / Katakana conversion unit 26, a read signal to the cursor position storage unit 18, and a cursor moving unit 16. The cursor data of 1 is stored (63). Since this cursor data is data relating to the input line, the cursor position storage section 18 sends a backward signal to the cursor moving section 20.

後退信号を入力したカーソル移動部20は、カーソルデ
ータをデクリメントする前に、このカーソルデータをモ
ード記憶部22へ送出する。モード記憶部22はメモリ
20の入力行記憶領域に記憶された文字データの内カー
ソルデータが示す位置のかな文字(ここではかたかな文
字)のモードを識別しmodeA=2として記憶するととも
に(64)モード判定部24へ送出する。
The cursor moving unit 20 that has input the backward signal sends the cursor data to the mode storage unit 22 before decrementing the cursor data. The mode storage unit 22 identifies the mode of the kana character (here, katakana character) at the position indicated by the cursor data in the character data stored in the input line storage area of the memory 20, and stores it as modeA = 2 (64 ) Send to the mode determination unit 24.

一方、カーソル位置記憶部18はカーソル移動部20か
ら入力しているカーソルデータが入力行の文頭か判断し
(65)、文頭のときは第1カーソルデータ=第2カー
ソルデータとしてひらがな・カタカナ変換部26へデー
タを送出する。シフト信号を入力しているひらがな・カ
タカナ変換部26は、カーソルデータに対応するメモリ
20内のかたかな文字をひらがな文字に変換する(6
6)。
On the other hand, the cursor position storage unit 18 determines whether the cursor data input from the cursor moving unit 20 is the beginning of a sentence on the input line (65). If the cursor data is the beginning of the sentence, the first cursor data = the second cursor data and the Hiragana / Katakana conversion unit The data is sent to 26. The Hiragana / Katakana conversion unit 26 receiving the shift signal converts the Katakana character in the memory 20 corresponding to the cursor data into the Hiragana character (6
6).

これとは別に、カーソル移動部20から入力しているカ
ーソルデータが入力行の文頭でないとき、カーソル移動
部20がカーソルを1文字分戻し(67)、デクリメン
トしたカーソルデータをモード記憶部22へ送出する。
モード記憶部22は1だけデクリメントしたカーソルデ
ータが示す位置のかな文字のモードを識別しmodeB
1又は2として記憶するとともに(68)、モード判定
部24へ送出する。モード判定部24は、modeA=mode
か判断し(69)、同じとき、即ちmodeB=2の
ときは文頭かの判断に戻る(65)。そして、カーソル
データのデクリメントとともに順次modeAとmodeB
modeB,…を比較していく。カーソルデータが示す位
置の文字がひらがなでありmodeA≠modeBとなったと
き、モード判定部24からカーソル位置記憶部18に選
定信号が出力される。
Separately, when the cursor data input from the cursor moving unit 20 is not at the beginning of the input line, the cursor moving unit 20 returns the cursor by one character (67) and sends the decremented cursor data to the mode storage unit 22. To do.
The mode storage unit 22 identifies the mode of the kana character at the position indicated by the cursor data decremented by 1, and modeB 1 =
It is stored as 1 or 2 (68) and is sent to the mode determination unit 24. The mode determination unit 24 uses modeA = mode
It is judged whether it is B 1 (69), and when it is the same, that is, when mode B 1 = 2, the process returns to the judgment of whether it is the beginning of a sentence (65). Then, with the decrement of the cursor data, modeA and modeB 2 ,
The mode B 3 , ... Are compared. When the character at the position indicated by the cursor data is in hiragana and modeA ≠ modeB i , the mode determination unit 24 outputs a selection signal to the cursor position storage unit 18.

カーソル位置記憶部18は選定信号を入力したときカー
ソル移動部20から送られるカーソルデータを1だけイ
ンクリメントし、変換を所望するかたかな文字列の最初
の文字位置を表わす第2のカーソルデータとして記憶す
る(70)。
The cursor position storage unit 18 increments the cursor data sent from the cursor moving unit 20 by 1 when a selection signal is input, and stores it as second cursor data representing the first character position of the katakana character string desired to be converted. Yes (70).

カーソル位置記憶部20に第1,第2のカーソルデータ
が記憶されると、このデータはひらがな・カタカナ変換
部26へ送られる。シフト信号を入力しているひらがな
・カタカナ変換部26はメモリ20の入力行記憶領域の
内、第1,第2のカーソルデータが示す区間のかたかな
文字列データを対応するひらがな文字列データに変換す
る(71)。
When the first and second cursor data are stored in the cursor position storage unit 20, this data is sent to the Hiragana / Katakana conversion unit 26. The Hiragana / Katakana conversion unit 26 that inputs the shift signal converts the katakana character string data in the section indicated by the first and second cursor data in the input row storage area of the memory 20 into the corresponding Hiragana character string data. Yes (71).

次にオペレータは、既に入力した部分における入力文中
のかたかな文字列のモード変換が全て終了したか判断し
(72)、終了したときはフローを終わり、否のときは
最初に戻って入力文中の他のかたかな文字列を変換す
る。画面上には全てひらがな文字列に訂正された入力文
が表示される。従って、残りの未入力文字をひらがな入
力すれば日本語処理部16の働きで入力分がかな漢字変
換される。入力文中に1文字だけかたかな文字があると
きは、第1カーソルデータ=第2カーソルデータとなっ
て同様にモード変換される。
Next, the operator judges whether or not all the mode conversions of the katakana character string in the input sentence in the already input portion have been completed (72). When the operation is completed, the flow is ended. Convert other katakana character strings. On the screen, the input sentence corrected to all Hiragana character strings is displayed. Therefore, if the remaining unentered characters are entered in Hiragana, the Japanese processing unit 16 functions to convert the input into Kana-Kanji. When only one character is included in the input sentence, the first cursor data = the second cursor data and the mode is similarly converted.

なお、上記実施例ではかなキーを用いて入力した日本語
文をかな漢字変換する場合を例にして説明したが本発明
は何らこれに限定されるものではなく、ローマ字キーを
用いて入力した日本語文をローマ字漢字変換する場合に
もそのまま適用できるものである。
In the above embodiment, the case where the Japanese sentence input using the Kana key is converted into Kana-Kanji has been described as an example, but the present invention is not limited to this. It can be applied as it is when converting Roman characters to Kanji.

効果 本発明によればこのように、かな文字を用いて日本語入
力を行なっている際、モードを間違えて入力したかな文
字がある場合でも、簡単な操作で複数文字分一度にモー
ドの修正を行なうことができるので再入力する手間が除
け迅速な入力作業をなすことができる。また、かな漢字
変換後画面上で編集作業を行なう場合に、既に入力され
ている連続した複数文字からなるひらがな文字列又はか
たかな文字列のモードを所望の範囲分一度にモード変換
できるので編集作業が容易となり、全体として操作性の
極めて良好な日本語処理装置を得られる。
Effect According to the present invention, as described above, when performing Japanese input using kana characters, even if there is a kana character entered in the wrong mode, it is possible to correct the mode for a plurality of characters at once with a simple operation. Since it can be performed, it is possible to save time and labor for re-inputting and perform quick inputting work. Also, when performing editing work on the screen after Kana-Kanji conversion, the mode of the Hiragana character string or Katakana character string consisting of multiple consecutive characters that has already been input can be converted at once for the desired range. This makes it easy to obtain a Japanese language processing device with extremely good operability as a whole.

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

第1図は、本発明によるかな漢字変換式の日本語処理装
置の構成例を示すブロック図、 第2図は編集時にかな文字のモード変換処理を行なう場
合の動作を示すフローチャート、 第3図は入力時にかな文字のモード変換処理を行なう場
合の動作を示すフローチャートである。 主要部分の符号の説明 10……キーボード 14……日本語処理部 18……カーソル位置記憶部 20……メモリ 24……CRTディスプレイ 26……ひらがな・カタカナ変換部
FIG. 1 is a block diagram showing a configuration example of a kana-kanji conversion type Japanese language processing device according to the present invention, FIG. 2 is a flow chart showing an operation when mode conversion processing of kana characters is performed at the time of editing, and FIG. 3 is an input. It is a flow chart which shows operation at the time of performing mode conversion processing of a Kana character at times. Explanation of main part code 10 …… Keyboard 14 …… Japanese processing section 18 …… Cursor position storage section 20 …… Memory 24 …… CRT display 26 …… Hiragana / Katakana conversion section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】日本語入力操作を行なうための表音文字キ
ー及びカーソルキーを含む入力手段と、 該入力手段から入力された日本語文に対してかな漢字変
換及び語処理を行なう日本語処理手段と、 入力手段から入力された日本語文及び入力手段で位置指
定されたカーソルを表示する表示手段とを有する日本語
処理装置において、 前記入力手段は、ひらがな文字種とかたかな文字種との
間で文字種の変換を指示する変換キーを有し、 前記日本語処理手段は、入力された日本語文のひらがな
文字列またはかたかな文字列のある位置にカーソルが存
在するときに、前記変換キーが操作されると、カーソル
の存在する位置を終点とし、該終点位置からさかのぼっ
て該終点位置の文字種と同じ文字種が連続する区間を変
換区間として選定し、前記選定された変換区間の文字列
の文字種を他の文字種に変換するようになっていること
を特徴とする日本語処理装置。
1. Input means including phonetic character keys and a cursor key for performing Japanese input operation, and Japanese processing means for performing kana-kanji conversion and word processing for a Japanese sentence input from the input means. In the Japanese language processing device having a display unit for displaying a Japanese sentence input from the input unit and a cursor positioned by the input unit, the input unit converts a character type between a Hiragana character type and a Katakana character type. When the cursor is present at a position where the input Japanese sentence is in a hiragana or katakana character string, the Japanese processing means operates the conversion key. , The position where the cursor is located is the end point, and a section traced back from the end point position and in which the same character type as the end point position continues is selected as the conversion section. A Japanese processing device characterized by converting a character type of a character string of a converted section into another character type.
JP59056267A 1984-03-26 1984-03-26 Japanese processor Expired - Lifetime JPH0630096B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59056267A JPH0630096B2 (en) 1984-03-26 1984-03-26 Japanese processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59056267A JPH0630096B2 (en) 1984-03-26 1984-03-26 Japanese processor

Publications (2)

Publication Number Publication Date
JPS60200360A JPS60200360A (en) 1985-10-09
JPH0630096B2 true JPH0630096B2 (en) 1994-04-20

Family

ID=13022301

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59056267A Expired - Lifetime JPH0630096B2 (en) 1984-03-26 1984-03-26 Japanese processor

Country Status (1)

Country Link
JP (1) JPH0630096B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63263565A (en) * 1987-04-22 1988-10-31 Canon Inc Word processor
JPH02253369A (en) * 1989-03-28 1990-10-12 Canon Inc Electronic dictionary

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57203128A (en) * 1981-06-10 1982-12-13 Fujitsu Ltd Language processing system

Also Published As

Publication number Publication date
JPS60200360A (en) 1985-10-09

Similar Documents

Publication Publication Date Title
JPS5913771B2 (en) Editing display method of display device
JPH0630096B2 (en) Japanese processor
JPH0232660B2 (en)
JPH0117184B2 (en)
US4850726A (en) Word processor provided with an automatic tabset means
JPH0565898B2 (en)
JP3048242B2 (en) Character input device
JPS6172359A (en) Character correction system for close writing kana-to-kanji conversion
JPS6175950A (en) Character correction system for close writing kana-to-kanji conversion
JPS6172356A (en) Display cursor control system for close writing kana-to-kanji conversion
JP2972225B2 (en) Character converter
JPH0744299A (en) Character input device
JPS60238966A (en) Kana and kanji reverse conversion processing system
JPH01123359A (en) Kana/kanji conversion system
JPH0666065B2 (en) Document processor with furigana addition function
JPH04268957A (en) Document preparing device
JPH0638256B2 (en) I / O device
JPS63155262A (en) Japanese processing system
JPH024026A (en) Document processing device
JPS6218952B2 (en)
JPH05257932A (en) Document processor
JPS6172360A (en) Close writing kana-to-kanji conversion system
JPH04332074A (en) Method and device for processing character
JPH04369766A (en) Method and device for processing document
JPS6313097A (en) Cursor control