JPH01217550A - Display control system during clause resegmenting - Google Patents

Display control system during clause resegmenting

Info

Publication number
JPH01217550A
JPH01217550A JP63042482A JP4248288A JPH01217550A JP H01217550 A JPH01217550 A JP H01217550A JP 63042482 A JP63042482 A JP 63042482A JP 4248288 A JP4248288 A JP 4248288A JP H01217550 A JPH01217550 A JP H01217550A
Authority
JP
Japan
Prior art keywords
display
homophone
clause
phrase
displayed
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.)
Granted
Application number
JP63042482A
Other languages
Japanese (ja)
Other versions
JP2713951B2 (en
Inventor
Takashi Kusuhashi
楠橋 高史
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.)
Toshiba Corp
Toshiba Computer Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Computer Engineering 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 Toshiba Corp, Toshiba Computer Engineering Corp filed Critical Toshiba Corp
Priority to JP63042482A priority Critical patent/JP2713951B2/en
Publication of JPH01217550A publication Critical patent/JPH01217550A/en
Application granted granted Critical
Publication of JP2713951B2 publication Critical patent/JP2713951B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To attain clause resegmentation desired by a user by surely displaying some characters to include the termination of a clause during resegmentation even when the tip end and terminal end of the clause during resegmentation can not be simultaneously displayed in a display area. CONSTITUTION:When the reading data of the resegmenting clause are displayed, next calculation is executed in the course of resegmentation. At first, a CPU 10 executes the calculation to obtain a display starting position needed to receive the terminal position of the clause in the display area. Even when the leading position of the clause to be a display object is received in the display area as the present display starting position, the display starting position is corrected with priority to receive the terminal position in the display area when this terminal position is not received. Accordingly, even when the display area is limitted, some characters to include the terminal end of the resegmented clause are certainly displayed at least.

Description

【発明の詳細な説明】 [発明の目的]・ (産業上の利用分野) この発明は、文節切り直し機能を有するかな漢字変換方
式の文書作成装置に係り、特に文節切り直し中における
対象文字列の表示制御方式に関する。
[Detailed Description of the Invention] [Objective of the Invention] (Industrial Field of Application) The present invention relates to a document creation device using a kana-kanji conversion method that has a phrase reshuffling function, and particularly relates to a document creation device using a kana-kanji conversion method that has a phrase reshuffling function. Regarding display control methods.

(従来の技術) 一般にかな漢字変換方式を適用する文書作成装置は、入
力手段から入力された読みデータ列を文節単位に区切っ
てかな漢字変換を行い、その変換された文節列を構成す
る同音語候補列またはその一部を所定表示領域に表示し
て、ユーザ操作による同音語(同音異義語)選択確定に
供するようになっている。しかし、上記のかな漢字変換
における文節の区切りは、区切りそれ自体は文法的に問
題なくとも、ユーザの意図するものと異なる場合がある
。そこで、このような事態に対処するために、近年はユ
ーザのキー操作等で文節の区切りを変更する文節切り直
し機能を有する文書作成装置が開発されている。
(Prior Art) In general, a document creation device that applies the kana-kanji conversion method divides the reading data string inputted from an input means into phrases, performs kana-kanji conversion, and performs homophone candidate strings that constitute the converted phrase string. Alternatively, a part thereof is displayed in a predetermined display area to allow the user to confirm the selection of a homophone (homonym). However, the phrase breaks in the above-mentioned kana-kanji conversion may differ from what the user intended, even if the breaks themselves are grammatically acceptable. In order to deal with such a situation, document creation devices have been developed in recent years that have a clause re-segmentation function that changes the segmentation of clauses by a user's key operation or the like.

この種の文書作成装置では、文節切り直し中の文節(の
読みを示す文字列)の表示頭載上への表示を、選択確定
操作が可能な通常の同音語候補列の表示と同様に扱い、
切り直し中文節の少なくとも先端(先頭文字)が表示領
域に収まるように移動制御するのが一般的であった。こ
の方式は、表示領域が十分に確保されている場合には文
節終端も必ず表示されるため問題はない。しかし、マル
チウィンドウ機能等の利用により小さな表示領域が設定
されて表示文字数が制限された場合には、切り直し中文
節の文字長によっては、その先端(先頭文字)を含む数
文字は表示されても、その終端(最終文字)を含む数文
字は表示領域に収めることができず表示されない虞が生
ずる。この場合、ユーザは所望の文節切り直しを行うこ
とが困難であった。
In this type of document creation device, the display of the phrase (character string indicating the pronunciation of the phrase) that is being reshuffled is handled in the same way as the display of a normal homophone candidate string that can be selected and confirmed. ,
It was common practice to control the movement so that at least the tip (first character) of the recut Chinese phrase would fit within the display area. There is no problem with this method because the end of the phrase is always displayed if a sufficient display area is secured. However, if a small display area is set using the multi-window function, etc., and the number of displayed characters is limited, depending on the character length of the recut middle bunsetsu, some characters including the tip (first character) may not be displayed. However, there is a possibility that several characters, including the last character (the last character), cannot be accommodated in the display area and may not be displayed. In this case, it was difficult for the user to change the desired phrase.

(発明が解決しようとする課題) 上記したように従来は、表示領域の大きさが著しく制限
されるような場合には、文節切り直しの文節の終端が表
示されなくなる虞があり、この場合、ユーザは文節の切
れ目が視認できないために文節切り直しが思うように行
えないという問題があった。
(Problems to be Solved by the Invention) As mentioned above, conventionally, if the size of the display area is significantly limited, there is a risk that the end of the phrase to be recut may not be displayed. There was a problem in that the user could not change the phrases as desired because the breaks between the phrases could not be visually recognized.

したがってこの発明は、文節切り直し中の文節の文字数
が表示領域に表示可能な文字数より多い場合でも、文節
切り直しのための操作が思い通りに行える文節切り直し
中における表示制御方式を提供することを解決すべき課
題とする。
Therefore, it is an object of the present invention to provide a display control method during phrase reshuffling that allows the user to perform phrase reshuffling operations as desired even when the number of characters in the phrase being reshuffled is greater than the number of characters that can be displayed in the display area. Make it an issue to be solved.

[発明の構成コ (課題を解決するための手段) この発明は、文節切り直し中の文節の文字数が表示領域
に表示可能な文字数より多く、切り直し中の文節の先端
および終端が同時に表示不可能な場合などに、この文節
の終端をその先端よりも優先して表示するようにしたこ
とを特徴とするものである。
[Structure of the Invention (Means for Solving the Problems) This invention provides a method in which the number of characters in the phrase being recut is greater than the number of characters that can be displayed in the display area, and the beginning and end of the phrase being recut are simultaneously hidden from display. This system is characterized in that, when possible, the end of the phrase is displayed with priority over the beginning.

(作用) 上記の構成によれば、切り直し中の文節の終端を含む何
文字かは必ず表示されるので、文節の切れ目が明瞭に視
認でき、したがってユーザの思う通りの文節切り直しが
可能となる。
(Operation) According to the above configuration, some characters including the end of the phrase being recut are always displayed, so the break in the phrase can be clearly seen, and therefore the phrase can be rearranged as desired by the user. Become.

(実施例) 第1図はこの発明の一実施例に係る同音語表示制御処理
手順を示すフローチャート、第2図は上記処理手順を実
現するかな漢字変換方式の文書作成装置のブロック構成
図である。
(Embodiment) FIG. 1 is a flowchart showing a homophone display control processing procedure according to an embodiment of the present invention, and FIG. 2 is a block diagram of a document creation device using a kana-kanji conversion method that implements the above processing procedure.

第2図において、10はマイクロプロセッサ(以下、C
PUと称する)、11はCP U 10によりアクセス
されるRAM、12はROMである。
In FIG. 2, 10 is a microprocessor (hereinafter referred to as C
(referred to as PU), 11 is a RAM accessed by the CPU 10, and 12 is a ROM.

CPUl0は装置全体の制御を行うもので、上記RAM
IIおよびROM12をアクセスして、入力指示に従う
プログラムの起動で、かな漢字変換方式による文書作成
処理、更には上記第2図に示すような同音語表示制御処
理等を実行する。RA M 11には、文書領域、行イ
メージ領域(印字バッファ)、外字登録領域、語句登録
領域(いずれも図示せず)、更には後述する同音語表示
データブロックを格納するための同音語表示バッファl
laの領域などが確保される。ROM12は、CPUl
0の動作を決定するプログラムや第1図に示すような同
音語表示制御ルーチンを含む入出カプログラム等を格納
したプログラム領域13をはじめ、表示あるいは印字文
字パターン等を記憶する文字パターン領域14、′かな
“或はローマ字で入力された読みを漢字に変換するため
の各種辞書が登録された辞書領域15等を有している。
CPU10 controls the entire device, and the RAM
By accessing II and ROM 12 and activating a program according to input instructions, document creation processing using the kana-kanji conversion method, homophone display control processing as shown in FIG. 2, etc. are executed. RAM 11 includes a document area, a line image area (print buffer), a non-character registration area, a phrase registration area (none of which are shown), and a homophone display buffer for storing homophone display data blocks to be described later. l
An area such as la is secured. ROM12 is CPUl
A program area 13 stores input/output programs including a program for determining the operation of 0 and a homophone display control routine as shown in FIG. 1, a character pattern area 14 for storing display or print character patterns, etc. It has a dictionary area 15 etc. in which various dictionaries for converting readings input in kana or romaji into kanji are registered.

また、16はキーボード(KB)、18は表示器、21
はフロッピィディスク装置(FDD)、23はプリンタ
(PRT)である。キーボード(KB)1Gは、文書作
成等に必要な入力情報をキーボードインターフェイス(
KB−IF)17を介してCPU10へ入力する。この
キーボード16には、各種文字キー、(上下、左右の)
カーソルキー等に加えて、かな漢字変換指示、同音語候
補の切替指示等に供される変換/次峡捕キー、同音語選
択指示や各種処理の実行指示に供される選択/実行キー
、更にほかな漢字変換によって得られた文節列のうちの
任意文字列を1文節とする文節切り直しを指示するのに
供される文節切り直しキー等を含む各種のファンクショ
ンキー(いずれも図示せず)が設けられる。表示器18
は、例えばlO行表示の液晶デイスプレィ装置からなる
。表示コントローラ(表示−CNT)19は、CPUl
0の制御の下に表示用RAM (ドツトメモリ)20を
用い表示器18の表示制御を行なう。フロッピィディス
ク装置21は、ディスクインターフェイス(FDD−I
 F)22を介してCPUl0の制御の下に、作成され
た文書を保存したり外字等を記憶する。プリンタ23は
、プリンターインタフェイス(PRT−I F)24を
介してCPUl0の制御の下に、作成された文書或は上
記フロッピィディスク装置21から本体内に読込んだ文
字情報を印字する。
Also, 16 is a keyboard (KB), 18 is a display, 21
23 is a floppy disk device (FDD) and a printer (PRT). The keyboard (KB) 1G uses a keyboard interface (
The data is input to the CPU 10 via the KB-IF) 17. This keyboard 16 includes various character keys (up, down, left and right).
In addition to the cursor keys, etc., there are conversion/transition keys used to instruct kana-kanji conversion, instructions to switch homophone candidates, selection/execution keys used to instruct homophone selection and execution of various processes, and more. Various function keys (none of which are shown) are provided, including a bunsetsu reshuffling key used to instruct bunsetsu reshuffling using an arbitrary character string of the bunsetsu string obtained by kana-kanji conversion as one bunsetsu. It will be done. Display 18
consists of, for example, a liquid crystal display device displaying 10 rows. The display controller (display-CNT) 19
The display of the display 18 is controlled using a display RAM (dot memory) 20 under the control of the display 18. The floppy disk device 21 has a disk interface (FDD-I).
F) Save the created document and store external characters etc. under the control of CPU10 via 22. The printer 23 prints a created document or character information read into the main body from the floppy disk device 21 through a printer interface (PRT-IF) 24 under the control of the CPU 10.

第3図は第2図の同音語表示バッファllaに格納され
て表示器18の表示に供される同音語表示データブロッ
クのデータ構造を示す。この表示データブロックは、基
本的には文節単位で管理される。各文節毎のデータ(分
割ブロック)は、該当文節を構成する文字列の表示属性
を示すタイプ情報と、該当文節の文書上の開始位置から
のオフセットを示すオフセット情報と、該当文節の構成
文字数(表示文字数)と、該当文節を構成する各文字の
文字コードから成る。上記タイプ情報は、0〜4のいず
れかの値をとり、0の場合には表示属性なしとなって該
当文節(の文字列)が確定文字列であることが示される
。また、値1の場合には該当文節が反転表示され、文節
切り直し中文字列であることが示され、値2の場合には
該当文節に細線の上線が付されて同音語(未確定の同音
語候補)である″ことが示される。更に、値3の場合に
は該当文節に太線の下線が付されて選択操作の対象とな
っている同音語(選択中の同音語候補)であることが示
され、値4の場合には該当文節(該当文字列)に細線の
下線が付されて入力中の読みであることが示される。表
示データブロックの末尾には、ブロック終端であること
を示す所定のエンドコードが付される。
FIG. 3 shows the data structure of the homophone display data block stored in the homophone display buffer lla of FIG. 2 and provided for display on the display 18. This display data block is basically managed in units of clauses. The data for each clause (divided block) includes type information that indicates the display attributes of the character strings that make up the clause, offset information that indicates the offset from the starting position of the clause on the document, and the number of characters that make up the clause ( It consists of the number of displayed characters) and the character code of each character that makes up the relevant clause. The type information takes a value from 0 to 4, and when it is 0, there is no display attribute, indicating that the corresponding phrase (character string) is a confirmed character string. In addition, if the value is 1, the corresponding phrase is displayed in reverse video, indicating that it is a character string in which the phrase is being edited, and if the value is 2, the phrase is overlined with a thin line and the phrase is a homophone (undefined). Furthermore, if the value is 3, the corresponding phrase is underlined with a bold line, indicating that it is the homophone that is the target of the selection operation (the currently selected homophone candidate). If the value is 4, the corresponding clause (corresponding character string) is underlined with a thin line to indicate that it is the reading being input.At the end of the display data block, there is a symbol indicating that it is the end of the block. A predetermined end code indicating this is attached.

第4図は、第1図の同音語表示制御ルーチン(の実行手
段)にかな漢字変換制御手段から渡される同音語表示要
求のための入力パラメータの構造を示す。この入力パラ
メータは、図に示すように有効データ先頭アドレスと、
有効データ数(文節数)を含む。まず有効データ先頭ア
ドレスは、同音語表示バッファllaに積まれているデ
ータ(文節)のうち、今回の表示要求の対象となる先頭
のデータ(文節)のアドレスを示す。また、有効データ
数(文節数)は0のときに指定されたアドレス以降の全
データが有効(表示要求の対象)となることを示し、1
以上の値(ここでは1または2)のときには指定数のデ
ータ(文節)が有効であることを示す。
FIG. 4 shows the structure of input parameters for a homophone display request passed from the kana-kanji conversion control means to (the execution means of) the homophone display control routine of FIG. This input parameter includes the valid data start address and
Includes the number of valid data (number of clauses). First, the valid data head address indicates the address of the head data (clause) that is the subject of the current display request, among the data (clauses) stored in the homophone display buffer lla. In addition, when the number of valid data (number of clauses) is 0, it indicates that all data after the specified address is valid (target of display request), and 1
A value above (here, 1 or 2) indicates that the specified number of data (clauses) is valid.

次に、この発明の一実施例の動作を、第1図のフローチ
ャートを適宜参照して説明する。
Next, the operation of one embodiment of the present invention will be explained with reference to the flowchart of FIG. 1 as appropriate.

まず、CPUl0は、キーボード1Bの文字キーが操作
されて読みが入力されると、その読みをキーボードイン
ターフェイス17から1文字単位で入力してRA M 
11内の図示せぬ入力バッファに積む。
First, when a character key on the keyboard 1B is operated and a reading is input, the CPU 10 inputs the reading one character at a time from the keyboard interface 17 and stores it in the RAM.
The data is stored in an input buffer (not shown) in 11.

やがて、キーボード16の変換/次候補キーが操作され
ると、CPUl0は入力バッファに積んだ読みデータ列
を文節毎に区切ってROM12内の辞書領域15を用い
て文節単位で周知のかな漢字変換処理を行い、その変換
結果である全ての同音語情報を得る。モしてCPUl0
は、この同音語情報のうち最も優先順位の高い同音語(
ここでは助詞等が付された語を含む)を各文節毎に取出
して、第3図の形式の表示データブロック(ここでは、
先頭文節が選択中の同音語であり、残りの文節全て未確
定の同音語であることを示す表示属性を持つデータブロ
ック)を生成し、同音語表示バッファllaに格納する
Eventually, when the conversion/next candidate key on the keyboard 16 is operated, the CPU 10 divides the reading data string stored in the input buffer into phrases and uses the dictionary area 15 in the ROM 12 to perform the well-known kana-kanji conversion process for each phrase. and obtain all the homophone information that is the result of the conversion. CPU10
is the homophone with the highest priority among this homophone information (
(here, words with particles etc.) are extracted for each clause, and the display data block in the format shown in Figure 3 (here,
A data block having a display attribute indicating that the first phrase is the selected homophone and that all remaining phrases are undetermined homophones is generated and stored in the homophone display buffer lla.

次にCPUl0は、第4図において有効データ先頭アド
レスをデータブロックの先頭データ(文節)を示すアド
レスとし、有効データ数を0(有効データ先頭アドレス
以降の全データ指定)とした入力パラメータを生成して
、第1図の同音語表示制御ルーチンを起動する。これに
より、同音語表示バッファllaに格納されている表示
データブロックが取出され、その先頭データから順に指
定された表示属性で表示器18の所定表示領域内に表示
される。即ちユーザがキーボード16を操作して入力し
た読みデータ列のかな漢字変換結果が同音語列の形で表
示器18に表示される。ここでは、先頭の同音語(文節
)は選択中を示す表示属性で表示され、後続の各同音語
は未確定同音語を示す表示属性で表示される。なお、表
示領域に収まらないデータ部分は表示されない。また上
記の表示に際しては、ROM12の文字パターン領域1
4を参照して文字コードを文字パターンに変換して表示
用RAM20に展開する処理が行われることは勿論であ
る。
Next, CPU10 generates an input parameter in which the valid data first address is the address indicating the first data (clause) of the data block in FIG. 4, and the number of valid data is 0 (all data after the valid data first address is specified). Then, the homophone display control routine shown in FIG. 1 is activated. As a result, the display data blocks stored in the homophone display buffer lla are retrieved and displayed in a predetermined display area of the display 18 with the specified display attributes in order from the first data. That is, the kana-kanji conversion result of the reading data string inputted by the user by operating the keyboard 16 is displayed on the display 18 in the form of a homophone string. Here, the first homophone (clause) is displayed with a display attribute indicating that it is being selected, and each subsequent homophone is displayed with a display attribute indicating an undetermined homophone. Note that data portions that do not fit within the display area are not displayed. In addition, when displaying the above, the character pattern area 1 of the ROM 12
Of course, processing for converting the character code into a character pattern and developing it in the display RAM 20 is performed with reference to 4.

以上の同音語列表示状態でユーザは同音語の変換(切替
え)・選択操作を行う。即ちユーザは、選択中の同音語
が所望の表記の語であれば、その同音語(の文字列)の
確定(選択)を指示するためにキーボード16の選択/
実行キーを操作し、所望の表記の語でなければ他の表記
の同音語への切替え(変換)を指示するためにキーボー
ド16の例えば変換/次候補キーを操作する。
In the above homophone string display state, the user performs homophone conversion (switching) and selection operations. That is, if the selected homophone is a word with the desired notation, the user selects/selects the keyboard 16 to instruct (select) the homophone (character string).
The execution key is operated, and if the word is not in the desired notation, the user operates, for example, the conversion/next candidate key on the keyboard 16 to instruct switching (conversion) to a homophone in another notation.

今、同音語表示状態で選択/実行キーが操作されたもの
とする。この場合、CPUl0は同音語表示バッファ]
、la内の対応文節(同音語)のタイプ情報を確定文字
列表示属性に、次の文節を選択中表示属性にそれぞれ書
換えると共に、第4図において有効データ先頭アドレス
を上記対応文節を示すアドレスとし、有効データ数を2
とした入力パラメータを生成して、第1図の同音語表示
制御ルーチンを起動する。これにより、対応文節、即ち
選択確定指示された文節が表記はそのままで、表示属性
だけが属性なしの状態に切替えられて再表示され、次の
文節が表記はそのままで、表示属性だけが選択中の状態
に切替えられて再表示される。
Assume that the selection/execution key is now operated in the homophone display state. In this case, CPU10 is the homophone display buffer]
, rewrite the type information of the corresponding clause (homophone) in la to the confirmed character string display attribute and the next clause to the selected display attribute, and change the effective data start address in Fig. 4 to the address indicating the corresponding clause. and the number of valid data is 2
The input parameters are generated and the homophone display control routine of FIG. 1 is activated. As a result, the corresponding clause, that is, the clause for which selection confirmation was instructed, is redisplayed with the display attribute changed to no attribute, while the notation remains unchanged, and the next clause remains unchanged, but only the display attribute is selected. It will be switched to the state and redisplayed.

以上の選択確定動作が何回か繰返され、今度は変換/次
候補キーが操作されたものとする。この場合CPUl0
は、同音語表示バッファlla内の対応文節(選択中文
節)のデータを次候補となる同音語(読みが同じで表記
の異なる他の語)のデータで置換える。もし、次候補の
同音語の文字数が先の同音語の文字数と一致していない
ならば、後続の全ての文節(同音語)のデータのオフセ
ット情報が書換えられる。また、この場合には、後続文
節の表示位置が変わることから、第4図において有効デ
ータ先頭アドレスを上記対応文節を示すアドレスとし、
有効データ数を0とした入力パラメータ(即ち対応文節
以降の全文節の再表示を要求する入力パラメータ)が生
成されて、第1図の同音語表示制御ルーチンが起動され
る。これに対して、次候補の同音語の文字数が先の同音
語の文字数と一致しているならば、上記した後続文節(
同音語)のデータのオフセット情報の書換えは行われず
、また後続文節の表示位置は変わらないことから、第4
図において有効データ先頭アドレスを上記対応文節を示
すアドレスとし、有効データ数を1とした入力パラメー
タ(即ち対応文節のみの再表示を要求する入力パラメー
タ)が生成されて、第1図の同音語表示制御ルーチンが
起動される。
It is assumed that the above selection confirmation operation is repeated several times and that the conversion/next candidate key is operated this time. In this case CPU10
replaces the data of the corresponding clause (selected clause) in the homophone display buffer lla with the data of the next candidate homophone (another word with the same pronunciation but different spelling). If the number of characters of the next candidate homophone does not match the number of characters of the previous homophone, the offset information of the data of all subsequent clauses (homophones) is rewritten. In addition, in this case, since the display position of the subsequent phrase changes, the effective data start address in FIG. 4 is set as the address indicating the corresponding phrase, and
An input parameter with the number of valid data set to 0 (that is, an input parameter requesting redisplay of all phrases after the corresponding phrase) is generated, and the homophone display control routine of FIG. 1 is activated. On the other hand, if the number of characters of the next candidate homophone matches the number of characters of the previous homophone, then the following clause (
Since the offset information of the data of the homophone (homophone) is not rewritten and the display position of the subsequent clause does not change,
In the figure, an input parameter (in other words, an input parameter requesting redisplay of only the corresponding phrase) with the effective data start address set as the address indicating the corresponding phrase above and the number of valid data equal to 1 is generated, and the homophone display shown in FIG. 1 is generated. A control routine is started.

さて、第1図に示す同音語表示制御ルーチンでは、まず
RA M 11内の所定領域に用意されている後述する
アクティブ同音語フラグ、全同音語表示フラグ(いずれ
も図示せず)等が初期化(リセット)される(ステップ
S1.)。次に、同音語表示バッファlla内の表示デ
ータブロックの該当文節のタイプ情報により文節切り直
し中であるか否かが調べられ(ステップS2)、この実
施例のようにNoの場合には、次に述べるステップS5
゜S6が実行される。まずステップS5では、表示対象
となる(表示要求のあった)文節(同音語)の終端位置
を表示領域内に収めるのに必要な(文書上の)表示開始
位置を求める計算が行われる。
Now, in the homophone display control routine shown in FIG. 1, first, the active homophone flag, all homophone display flags (none of which are shown), etc., which will be described later, prepared in a predetermined area in the RAM 11 are initialized. (reset) (step S1.). Next, it is checked based on the type information of the corresponding clause in the display data block in the homophone display buffer lla (step S2), and if the answer is No as in this embodiment, the next Step S5 described in
°S6 is executed. First, in step S5, a calculation is performed to find the display start position (on the document) necessary to fit the end position of the phrase (homophone) to be displayed (requested for display) within the display area.

前記した次候補の同音語(新たに選択中となる同音語)
が表示対象となる場合に、その文字数が先の同音語と同
一であれば、表示開始位置は変わらない。次のステップ
S6では、文節(同音語)の先頭位置を表示領域内に収
めるのに必要な(文書上の)表示開始位置を求める計算
が行われる。そして、表示対象となる同音語の終端が現
在の表示開始位置のままで表示領域内に収まる場合でも
、先頭位置が収まらない場合には、この先頭位置を表示
領域内に収めることを優先して表示開始位置が補正され
る。
The next candidate homophone mentioned above (the newly selected homophone)
is to be displayed, and if the number of characters is the same as the previous homophone, the display start position will not change. In the next step S6, a calculation is performed to find the display start position (on the document) necessary to fit the beginning position of the phrase (homonym) within the display area. Even if the end of the homophone to be displayed fits within the display area at the current display start position, if the start position does not fit, priority is given to keeping this start position within the display area. The display start position is corrected.

ステップS6が終了すると、画面移動(表示開始位置の
変更)が必要か否かの判定が行われる(ステップS7)
。この判定は、最初は新たに選択中となる次候補の同音
語に関して行われ、もし画面移動が不要であればステッ
プ317に進む。この表示対象同音語は選択中の表示属
性を持っていることから、上記の表示要求が選択中同音
語の表示要求(以下、アクティブ同音語表示要求と称す
る)であるものと判断され、その旨を示すアクティブ同
音語表示フラグがセットされる(ステップS1?、  
818)。次に同音語表示バッファlla内の全同音語
を表示したことを示すための全同音語表示フラグがリセ
ット状態にあることから、表示対象となる同音語1エン
トリ(ここではアクティブ同音語となる次候補)が画面
表示される(ステップ520)。次に、要求データが全
て表示されたか否かが調べられ(ステップ521)、最
初の1文節だけが表示されたこの例ではNoが判定され
る。
When step S6 ends, it is determined whether screen movement (change of display start position) is necessary (step S7).
. This determination is first made regarding the next candidate homophone that is newly being selected, and if screen movement is not required, the process advances to step 317. Since this display target homophone has the currently selected display attribute, it is determined that the above display request is a display request for the currently selected homophone (hereinafter referred to as an active homophone display request), and that An active homophone display flag is set (step S1?,
818). Next, since the all homophone display flag, which indicates that all homophones in the homophone display buffer lla have been displayed, is in the reset state, one entry of the homophone to be displayed (in this case, the next homophone that becomes the active homophone) candidates) are displayed on the screen (step 520). Next, it is checked whether all the requested data has been displayed (step 521), and in this example, where only the first clause has been displayed, the answer is No.

更に同音語データ終了か否かが調べられ(ステップ52
2)、後続の同音語データが存在するこの例ではNoと
なる。この場合、同音語表示バッファ11a内の次の同
音語データを指定するための図示せぬ同音語データポイ
ンタが+1され(ステップ523)、ステップS2に戻
る。そして、今度は次の同音語(アクティブ同音語表示
状態にある次候補)について、前記した処理が行われる
Furthermore, it is checked whether or not the homophone data has ended (step 52).
2), No in this example where subsequent homophone data exists. In this case, a homophone data pointer (not shown) for specifying the next homophone data in the homophone display buffer 11a is incremented by 1 (step 523), and the process returns to step S2. Then, the above-described process is performed on the next homophone (the next candidate in the active homophone display state).

さて、上記アクティブ同音語の文字数が同音語切替え前
の同音語の文字数と一致しない場合、それ以降の同音語
は表示開始位置を変えて画面を移動しない限り表示領域
外となる可能性がある。
Now, if the number of characters of the active homophone does not match the number of characters of the homophone before switching the homophone, subsequent homophones may fall outside the display area unless the display start position is changed and the screen is moved.

もし画面移動が必要な場合、その表示対象同音語がアク
ティブ同音語表示要求されているか否かが、そのデータ
に付されたタイプ情報を参照して調べ′られる(ステッ
プS7.S8)。今回の表示対象となる同音語はアクテ
ィブ同音語でないため、ステップ81Bに進み、既にア
クティブ同音語が表示されているか否かが(アクティブ
同音語表示フラグのセット/リセット状態によって)調
べられる。
If screen movement is required, it is checked whether or not the homophone to be displayed is requested to be displayed as an active homophone by referring to the type information attached to the data (steps S7 and S8). Since the homophone to be displayed this time is not an active homophone, the process proceeds to step 81B, where it is checked (by the set/reset state of the active homophone display flag) whether or not an active homophone is already displayed.

ここではYESとなるため、前記したステップS17に
進み、ステップ818をスルーしてステップS19〜8
23の処理が行われる。即ち、アクティブ同音語が既に
表示されている場合には、後続の同音語はたとえ画面移
動を行わない限り表示領域に表示できない場合でも、画
面移動が禁止される。
Since the answer is YES here, the process proceeds to step S17 described above, skips step 818, and steps S19 to S8
23 processes are performed. That is, if the active homophone is already displayed, screen movement is prohibited even if subsequent homophones cannot be displayed in the display area unless the screen is moved.

このため、アクティブ同音語に後続する幾つかの同音語
を表示しようとして画面移動(画面スクロール)が発生
して、アクティブ同音語に対する視点が移動するといっ
た不都合が確実に防止できる。
Therefore, it is possible to reliably prevent the inconvenience that the screen movement (screen scrolling) occurs when trying to display some homophones following the active homophone, and the viewpoint for the active homophone moves.

上記の同音語切替えは、変換/次候補キーに限らず、例
えば“ひらがな″に確定することを指示する無変換キー
、“カタカナ”に確定することを指示する、カタカナ変
換キーの操作時等にも発生するが、この場合にも上記と
同様に処理される。
The above homophone switching is not limited to the conversion/next candidate key, but also when operating the no-conversion key, which instructs to confirm to "Hiragana", and the Katakana conversion key, which instructs to confirm to "Katakana", etc. may also occur, but this case is handled in the same way as above.

なお、アクティブ同音語となる同音語データについては
、画面移動を行わないとその先端位置および終端位置の
両方を表示領域内に収めることができない場合には、前
記ステップS7.S8からステップS9以降ステツプS
15までの周知の画面スクロール処理が行われる。もし
、このようなアクティブ同音語に対しても画面スクロー
ルを禁止してしまうと、アクティブ同音語全体が見えな
いために、操作性が逆に低下してしまう。
Note that for the homophone data that becomes the active homophone, if both the leading and ending positions cannot be placed within the display area without moving the screen, step S7. From S8 to Step S9 onwards Step S
A well-known screen scrolling process up to 15 is performed. If screen scrolling is also prohibited for such active homophones, the entire active homophone cannot be seen, and the operability will be adversely reduced.

次に文節切り直し中の同音語表示について説明する。Next, the display of homophones during segmentation will be explained.

まず、表示器18の表示領域上に、かな漢字変換結果で
ある同音語列が表示されているものとする。この同音語
列にユーザの意図した文節の区切りとは異なる文節が存
在する場合、ユーザは文節切り直しキーを操作して文節
切り直しを指示する。
First, it is assumed that a homophone string, which is a result of kana-kanji conversion, is displayed on the display area of the display 18. If there is a phrase in this homophone string that differs from the phrase break intended by the user, the user operates the phrase change key to instruct the phrase to be changed.

CPUl0はこの指示を検出すると、RAMIIの同音
語表示バッファlla内の表示データブロックを、指定
された切り直し文節(文字列)の読みデータを含むデー
タブロックに更新する。この、切り直し文節の読みデー
タのタイプ情報は文節切り直し中を示す値1に設定され
る。上記表示データブロックの生成に伴い、切り直し文
節の読みデータを表示要求の先頭データとして指定する
同音語表示入力パラメータも、生成されて第1図の同音
語表示制御ルーチンが起動される。もし、文節切り直し
によって、後続する同音語列の表示位置が変わる場合に
は、入力パラメータの有効データ数にはOが用いられる
When CPU10 detects this instruction, it updates the display data block in the homophone display buffer lla of RAM II to a data block containing the reading data of the specified recut phrase (character string). The type information of the reading data of the phrase being recut is set to a value of 1 indicating that the phrase is being recut. Along with the generation of the display data block, a homophone display input parameter that specifies the reading data of the recut clause as the first data of the display request is also generated, and the homophone display control routine of FIG. 1 is activated. If the display position of the subsequent homophone string changes due to phrase switching, O is used as the number of valid data of the input parameter.

さて、最初の表示対象文節、即ち文節切り直し文節の読
みデータの表示に際しては、ステップS2の判定がYE
Sとなることから、次に述べるステップS3.S4が実
行される。まずステップS3では、表示要求のあった文
節(文節切り直し中の文節)の先頭位置を表示領域内に
収めるのに必要な表示開始位置を求める計算が行われる
。次のステップS4では、文節(切り直し中の文節)の
終端位置を表示領域内に収めるのに必要な表示開始位置
を求める計算が行われる。そして、表示対象となる文節
の先頭位置が現在の表示開始位置のままで表示領域内に
収まる場合でも、終端位置が収まらない場合には、この
終端位置を表示領域内に収めることを優先して表示開始
位置が補正される。ステップS4が終了すると前記ステ
ップS7に進み、以後の動作は前記した文節切り直し中
でない場合の動作とほぼ同様である。但し、ステップS
3.S4の処理により、切り直し文節に関しては終端位
置が優先して表示される点に注意されたい。即ち、この
実施例によれば、表示領域の表示文字数が著しく制限さ
れている場合でも、少なくとも切り直し文節の終端を含
む何文字かは必ず表示される。
Now, when displaying the reading data of the first phrase to be displayed, that is, the phrase after phrase cutting, the determination in step S2 is YES.
Since S, the next step S3. S4 is executed. First, in step S3, a calculation is performed to find the display start position necessary to fit the beginning position of the phrase for which display has been requested (the phrase being recut) within the display area. In the next step S4, a calculation is performed to find the display start position necessary to fit the end position of the phrase (the phrase being recut) within the display area. Even if the beginning position of the phrase to be displayed fits within the display area at the current display start position, if the end position does not fit, priority is given to keeping this end position within the display area. The display start position is corrected. When step S4 is completed, the process proceeds to step S7, and the subsequent operation is almost the same as the operation when the phrase is not being changed. However, step S
3. It should be noted that in the process of S4, the terminal position of the phrase to be recut is displayed with priority. That is, according to this embodiment, even if the number of characters displayed in the display area is extremely limited, at least some characters including the end of the recut phrase are always displayed.

〔発明の効果] 以上詳述したようにこの発明によれば、切り直し中の文
節の先端および終端が限られた表示領域内に同時に表示
できない場合でも、切り直し中の文節の終端を含む何文
字かは必ず表示されるので、文節の切れ目が明瞭に視認
でき、したがってユーザの思う通りの文節切り直しが可
能となる。
[Effects of the Invention] As detailed above, according to the present invention, even if the beginning and end of the phrase being recut cannot be displayed simultaneously within a limited display area, any part of the phrase including the end of the phrase being recut cannot be displayed simultaneously. Since the characters are always displayed, the break between phrases can be clearly seen, and therefore the user can change the phrases as desired.

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

第1図はこの発明の一実施例に係る表示制御処理手順を
示すフローチャート、第2図は上記処理手順を実現する
かな漢字変換方式の文書作成装置のブロック構成図、第
3図は上記表示制御に洪される表示データブロックのデ
ータ構造を示す図、第4図は同音語表示要求のための人
力パラメータの構造を示す図である。 1口・・・CPU、11・・・RAM、lla・・・同
音語表示バッファ、12・・・ROM、13・・・プロ
グラム領域、16・・・キーボード、18・・・表示器
。 出願人代理人  弁理士 鈴江武彦 第2図
FIG. 1 is a flowchart showing the display control processing procedure according to an embodiment of the present invention, FIG. 2 is a block diagram of a document creation device using the Kana-Kanji conversion method that implements the above processing procedure, and FIG. 3 is a flowchart showing the display control processing procedure described above. FIG. 4 is a diagram showing the data structure of the display data block to be displayed. FIG. 4 is a diagram showing the structure of the manual parameter for the homophone display request. 1 port: CPU, 11: RAM, lla: homophone display buffer, 12: ROM, 13: program area, 16: keyboard, 18: display. Applicant's agent Patent attorney Takehiko Suzue Figure 2

Claims (1)

【特許請求の範囲】[Claims] 入力手段から入力された読みデータ列を文節単位に区切
ってかな漢字変換を行い、その変換された文節列を構成
する同音語列またはその一部を所定表示領域に表示する
文書作成装置において、上記文節列のうちの任意文字列
を1文節とする文節切り直しを指示するための文節切り
直し指示手段と、この文節切り直し指示手段によって指
示された文字列の読みを文節切り直し中文節として所定
表示属性でその終端を優先して上記表示領域内に表示す
る表示制御手段とを具備し、上記切り直し中文節の少な
くとも終端を上記表示領域内に表示するようにしたこと
を特徴とする文節切り直し中における表示制御方式。
In a document creation device that divides a reading data string inputted from an input means into phrases, performs kana-kanji conversion, and displays a homophone string or a part thereof constituting the converted phrase string in a predetermined display area. A bunsetsu reshuffling instruction means for instructing bunsetsu reshuffling using an arbitrary character string in the column as one bunsetsu, and a predetermined display of the reading of the character string instructed by the bunsetsu reshuffling instruction means as a middle bunsetsu for bunsetsu trimming. A display control means for displaying the end of the phrase with priority in the display area based on an attribute, and at least the end of the recut middle bunsetsu is displayed in the display area. Display control method inside.
JP63042482A 1988-02-25 1988-02-25 Document creation device and display control method Expired - Lifetime JP2713951B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63042482A JP2713951B2 (en) 1988-02-25 1988-02-25 Document creation device and display control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63042482A JP2713951B2 (en) 1988-02-25 1988-02-25 Document creation device and display control method

Publications (2)

Publication Number Publication Date
JPH01217550A true JPH01217550A (en) 1989-08-31
JP2713951B2 JP2713951B2 (en) 1998-02-16

Family

ID=12637277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63042482A Expired - Lifetime JP2713951B2 (en) 1988-02-25 1988-02-25 Document creation device and display control method

Country Status (1)

Country Link
JP (1) JP2713951B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60103389A (en) * 1983-11-11 1985-06-07 キヤノン株式会社 Character processor
JPS6281158U (en) * 1985-11-01 1987-05-23

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60103389A (en) * 1983-11-11 1985-06-07 キヤノン株式会社 Character processor
JPS6281158U (en) * 1985-11-01 1987-05-23

Also Published As

Publication number Publication date
JP2713951B2 (en) 1998-02-16

Similar Documents

Publication Publication Date Title
JPH024938B2 (en)
JPH01217550A (en) Display control system during clause resegmenting
JPH01217553A (en) Display control system at time of homonym candidate switching
JP2786260B2 (en) Kana-Kanji conversion device
JPH0823744B2 (en) Character string processor
JP2571043B2 (en) Character replacement device
JPH03282881A (en) Document preparation device
JP2756246B2 (en) Character processor
JPS59140541A (en) Character processing device
JP2944666B2 (en) Character processor
JPH07319870A (en) Device and method for inputting character
JPH0793303A (en) Document creation device and character modification control method
JP2635602B2 (en) Document creation device
JPS63257862A (en) Character processor
JPH0869351A (en) Pen input device and pen input method
JP2548129B2 (en) Text input device
JPH01231165A (en) Document generating device
JPH04268952A (en) Document preparing device
JPH05233601A (en) Document processor for setting automatically kana to kanji conversion mode
JPH08292953A (en) Document processor
JPH0230222A (en) Document forming and editing device
JPH0475164A (en) Document editing device
JPH076172A (en) Word processor
JPH07168829A (en) Document preparing method
JPS6341923A (en) Method of changing kind of character in keyboard inputting