JPH0432957A - character processing device - Google Patents
character processing deviceInfo
- Publication number
- JPH0432957A JPH0432957A JP2131397A JP13139790A JPH0432957A JP H0432957 A JPH0432957 A JP H0432957A JP 2131397 A JP2131397 A JP 2131397A JP 13139790 A JP13139790 A JP 13139790A JP H0432957 A JPH0432957 A JP H0432957A
- Authority
- JP
- Japan
- Prior art keywords
- kanji
- level
- key
- document
- learning
- 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
Landscapes
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、文書を編集処理する文字処理装置に関し、詳
しくは文書中の問題点のある用語または文字列を自動的
に指摘する校正支援機能を有する文字処理装置に関する
。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a character processing device that edits a document, and more specifically, a proofreading support function that automatically points out problematic terms or character strings in a document. The present invention relates to a character processing device having a character processing device.
[従来の技術]
従来、文書中の難しい文字列を指摘する文字処理装置と
して、文字列を指摘する難易度を設定し、それに基づい
て指摘理由のみを提示する校正支援機能を備えた文字処
理装置が提案されている0例えば、文書中の常用漢字で
ない漢字(以下、常用外漢字と称する)を指摘し、その
指摘理由(この場合、「常用漢字でない」こと)のみを
表示装置上で提示するものが考えられる。[Prior Art] Conventionally, as a character processing device that points out difficult character strings in a document, a character processing device that has a proofreading support function that sets a difficulty level for pointing out character strings and presents only the reason for pointing out the difficulty level based on the difficulty level. For example, it is proposed to point out kanji that are not commonly used kanji (hereinafter referred to as non-commonly used kanji) in a document, and present only the reason for pointing them out (in this case, ``not commonly used kanji'') on the display device. I can think of things.
[発明が解決しようとする課題]
しかしながら、このような従来装置では、指摘理由のみ
を提示しているので、指摘されてもその指摘に係る文字
列をどのような簡単な文字列に置換えればよいのか分か
らず、使用者が辞書等で調べなければならないという欠
点があった。[Problem to be solved by the invention] However, in such conventional devices, only the reason for pointing out is presented, so even if a point is made, it is difficult to know what simple string to replace the character string related to the pointing out. There was a drawback that the user had to look it up in a dictionary or the like because he did not know if it was correct.
また、指摘された文字列の難易度に対応した指摘理由の
み提示している場合に、その指摘された文字列をどの平
仮名読み列に置換えればよいのか分からず、使用者が辞
書等で調べなければならないという欠点があった。In addition, when only the reason for pointing out a problem corresponding to the difficulty level of the pointed out character string is presented, the user does not know which hiragana pronunciation should be used to replace the pointed out character string, so the user looks it up in a dictionary, etc. There was a drawback that it had to be done.
本発明の目的は、上述のような欠点を除去し、難しい文
字列を指摘時に、文字列に対応した解釈を提示でき、ま
た解釈により文書の内容を変更できて、これにより使用
状況や文書の読み手の能力レベルに合わせた読みやすい
文書を作成することが可能な文字処理装置を提供するこ
とにある。The purpose of the present invention is to eliminate the above-mentioned drawbacks, to present an interpretation corresponding to the character string when a difficult character string is pointed out, and to change the content of the document through the interpretation, thereby improving the usage situation and document quality. To provide a character processing device capable of creating an easy-to-read document that matches the ability level of a reader.
[課題を解決するための手段]
かかる目的を達成するため、本発明は、文字列からなる
文書を記憶する文書記憶手段と、文字列と文字列の解釈
および難易度を対応させてあらかじめ記憶した文字列解
釈・難易度辞書と、文書記憶手段に記憶されている文書
中の文字列に対して指摘を行なうべき難易度を設定する
手段と、文字列解釈・難易度辞書を参照して、文書記憶
手段に記憶されている文書の中で設定された難易度に基
づいて文字列を指摘するとともに、当該文字列に対応し
た解釈を提示する解釈提示手段と、解釈提示手段で提示
された文字列に対応した解釈へ、文書記憶手段に記憶さ
れている文書の内容を変更する文書変更手段とを具備す
ることを特徴とする。[Means for Solving the Problems] In order to achieve the above object, the present invention provides a document storage means for storing a document consisting of character strings, and a document storage means for storing a document consisting of character strings, and a document storage means for storing a document consisting of character strings, and a document storing means for storing a document consisting of character strings in correspondence with each other. A text string interpretation/difficulty level dictionary, a means for setting a difficulty level for pointing out character strings in a document stored in a document storage means, and a text string interpretation/difficulty level dictionary are referenced. An interpretation presentation means for pointing out a character string based on a difficulty level set in a document stored in a storage means and presenting an interpretation corresponding to the character string; and a character string presented by the interpretation presentation means. The present invention is characterized by comprising a document changing means for changing the contents of the document stored in the document storage means to an interpretation corresponding to the document storage means.
[作 用]
本発明では、文書記憶手段によって記憶されている文書
の中の文字列の難易度を、文字列解釈・難易度辞書゛か
ら求めること、および文字列を指摘する難易度を設定す
ることにより文字列解釈・難易度辞書から設定された難
易度に基づいて文字列に対応した解釈を提示することが
でき、またその解釈へ、文書の内容を変更できるように
したので、使用状況や読み手の能力レベルに合わせた読
みやすい文書を作成することが可能な文字処理装置を実
現できる。[Function] In the present invention, the difficulty level of a character string in a document stored by the document storage means is determined from a character string interpretation/difficulty level dictionary, and the difficulty level for pointing out the character string is set. This makes it possible to present an interpretation corresponding to a character string based on the difficulty level set from the character string interpretation/difficulty dictionary.Also, it is possible to change the content of the document to that interpretation, so it is possible to It is possible to realize a character processing device that can create easy-to-read documents that match the ability level of readers.
[実施例]
以下、図面を参照して本発明の実施例を詳細に説明する
。[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.
第1図は本発明実施例の基本構成を示す。同図において
、Aは文字列からなる文書を記憶する文書記憶手段であ
る。Bは文字列とこの文字列の解釈および難易度を対応
させてあらかじめ記憶した文字列解釈・難易度辞書であ
る。Cは文字列解釈・難易度辞書Bおよび文字列指摘難
易度設定手段Eを参照して、文書記憶手段Aに記憶され
ている文書の中で設定され、あるいはそれ以上の難易度
の文字列を指摘するとともに、当該文字列に対応した解
釈を提示する解釈提示手段である。Dは解釈提示手段C
で提示された上記の文字列に対応した解釈に応じて、文
書記憶手段Aに記憶されている文書の内容を変更する文
書変更手段である。Eは文書記憶手段Aに記憶されてい
る文書の中で文字列を指摘する難易度を設定する手段で
ある。FIG. 1 shows the basic configuration of an embodiment of the present invention. In the figure, A is a document storage means for storing a document consisting of character strings. B is a character string interpretation/difficulty level dictionary in which character strings are associated with interpretations and difficulty levels of the character strings and stored in advance. C refers to the character string interpretation/difficulty level dictionary B and the character string pointing difficulty level setting means E to find a character string with a difficulty level that is set in the document stored in the document storage means A or higher. This is an interpretation presentation means that points out the character string and also presents an interpretation corresponding to the character string. D is interpretation presentation means C
This document changing means changes the content of the document stored in the document storage means A according to the interpretation corresponding to the above-mentioned character string presented. E is means for setting the difficulty level of pointing out character strings in the document stored in the document storage means A.
第2図は本発明の一実施例の文書処理装置の全体の回路
構成を示す。FIG. 2 shows the overall circuit configuration of a document processing device according to an embodiment of the present invention.
同図において1はマイクロプロセッサ(CPU)であり
、文字処理のための演算、論理判断等を行ない、アドレ
スバスAB、コントロールバスCB、データバスDBを
介して、それらのバスに接続された各構成要素を制御す
る。In the figure, 1 is a microprocessor (CPU) that performs calculations, logical judgments, etc. for character processing, and each component connected to these buses via an address bus AB, a control bus CB, and a data bus DB. Control elements.
アドレスバスABはマイクロプロセッサ1の制御の対象
とする構成要素を指示するアドレス信号を転送する。コ
ントロールバスCBはマイクロプロセッサ1の制御の対
象とする各構成要素のコントロール信号を転送して印加
する。データバスDBは各構成機器相互間のデータの転
送を行なう。Address bus AB transfers address signals indicating the components to be controlled by microprocessor 1. The control bus CB transfers and applies control signals for each component to be controlled by the microprocessor 1. The data bus DB transfers data between each component device.
2は、読み出し専用の固定メモリ(ROM)である。R
OMZ内のPAは、第8図〜第12図につき後述するマ
イクロプロセッサ1による制御手順等をあらかじめ記憶
したプログラムエリアである。2 is a read-only fixed memory (ROM). R
PA in the OMZ is a program area in which control procedures etc. by the microprocessor 1, which will be described later with reference to FIGS. 8 to 12, are stored in advance.
3は、1ワード16ビツトの構成の書込み可能のランダ
ムアクセスメモリ(RAM)であって、各構成要素から
の以下に述べる各種データの一時記憶に用いる。すなわ
ち、TBUFは文書バッファであり、キーボード(KB
)4から入力された文書情報を蓄えるための記憶領域で
ある。 DIGは文書バッファTBUFに格納されてい
る文書を解析し、文節情報を取り出すための単語辞書で
ある。KLDICは、指定された学習レベルの漢字を指
摘するために、漢字とその学習レベル等を対応させて格
納した漢字学習レベル辞書である。KAISは文書バッ
ファTBUFに格納されている文書を解析した結果であ
る文節情報を格納する解析結果テーブルのための記憶領
域である。 LEVELは、指摘すべき漢字の学習レベ
ルを格納する記憶領域である。 HANIは、学習レベ
ルLEVELで指定された漢字の学習レベルをもとに、
どの範囲の学習レベルの漢字まで指定するかどうかを指
示するための記憶領域である。Reference numeral 3 denotes a writable random access memory (RAM) having a configuration of 1 word and 16 bits, and is used for temporary storage of various data from each component, which will be described below. That is, TBUF is the document buffer, and the keyboard (KB
) 4 is a storage area for storing document information input from 4. DIG is a word dictionary for analyzing the document stored in the document buffer TBUF and extracting clause information. KLDIC is a kanji learning level dictionary that stores kanji and their learning levels in association with each other in order to point out kanji at a specified learning level. KAIS is a storage area for an analysis result table that stores clause information that is the result of analyzing the document stored in the document buffer TBUF. LEVEL is a storage area that stores the learning level of the kanji to be pointed out. HANI is based on the kanji learning level specified by the learning level LEVEL.
This is a storage area for instructing whether or not to specify the range of learning level of kanji.
また、GAKUは、指摘すべき漢字に、学習済であると
いう情報が与えられているときに、その漢字を指摘する
か指摘しないかを指示するためのフラグ領域である。K
OYUは、指摘すべき漢字が、固有名詞の一部であると
解析されたときに、漢字を指摘するか、指摘しないかを
指示するためのフラグ領域である。KAYOは、指摘す
べき漢字の学習レベルの判定を、漢字そのもので判定す
るか、あるいは漢字の読みによって判定するかを指示す
るためのフラグ領域である。さらに、iは、文書バッフ
ァTBUF中の文字を一つずつ取り出すためのカウンタ
である。Furthermore, GAKU is a flag area for instructing whether to point out a kanji character when information indicating that the kanji character to be pointed out has been learned has been given. K
OYU is a flag area for instructing whether or not to point out a kanji when the kanji to be pointed out is analyzed as part of a proper noun. KAYO is a flag area for instructing whether to judge the learning level of the kanji to be pointed out based on the kanji itself or the reading of the kanji. Further, i is a counter for extracting characters one by one from the document buffer TBUF.
キーボード(KB)4は、アルファベットキー、ひらが
なキー、カタカナキー等の文字記号入カキ−5およびカ
ーソル移動を指示するカーソル移動キーなどの各種のフ
ァンクションキーを備えている。特に、このキーボード
4は、次の特殊な機能キー(ファンクシ式ンキー)を有
する。すなわち、キーボード4上の5ITEは文書中の
特定の学習レベルの漢字の指摘を指示するための漢字レ
ベル指摘キー、KAKUは指摘されている漢字のレベル
等を確認するための漢字レベル確認キー、KENDは確
認を終えて指摘されている漢字を通常の状態に戻すため
の確認終了キー、YOMIは確認中の漢字をその読みに
置換えるための読み置換えキー、およびGCHGは確認
中の漢字の学習状態を切り替えるための学習切替キーで
ある。The keyboard (KB) 4 includes various function keys such as character/symbol keys 5 such as alphabet keys, hiragana keys, and katakana keys, and cursor movement keys for instructing cursor movement. In particular, this keyboard 4 has the following special function keys (funk keys). That is, 5ITE on the keyboard 4 is a kanji level indication key for pointing out kanji of a specific learning level in a document, KAKU is a kanji level confirmation key for checking the level of the kanji being pointed out, and KEND. is the confirmation end key to return the indicated kanji to its normal state after confirmation, YOMI is the reading replacement key to replace the kanji being confirmed with its reading, and GCHG is the learning state of the kanji being confirmed. This is a learning switch key for switching.
5は文書を記憶するためのディスクメモリ装置(DIS
K)であり、作成された文書の保管を行ない、この保管
された文書はキーボード4の指示により、必要な時に呼
び出される。5 is a disk memory device (DIS) for storing documents.
K), which stores the created documents, and the stored documents can be called up when necessary by instructions from the keyboard 4.
6はカーソルレジスタ(CR)である。CPUIにより
、このカーソルレジスタ6の内容を読み書きできる。後
述するCRTコントローラ(CRTC) 8はここに蓄
えられたアドレスに対する表示装置(CRT) 9上の
位置にカーソルを表示する。6 is a cursor register (CR). The contents of this cursor register 6 can be read and written by the CPU. A CRT controller (CRTC) 8, which will be described later, displays a cursor at a position on a display device (CRT) 9 corresponding to the address stored here.
7は表示用バッファメモリ(DBUF)であり、文書バ
ッファTBUFに蓄えられた文書情報等のパターンを蓄
える。A display buffer memory (DBUF) 7 stores patterns such as document information stored in the document buffer TBUF.
CRTC8はカーソルレジスタ6および表示用バッファ
メモリ7に蓄えられた内容を表示装置9に表示する役割
を担う。また、CRT9は陰極線管等を用いた表示装置
であって、その表示装置9におけるドツト構成のパター
ンおよびカーソルの表示をCRTコントローラ8で制御
する。さらに、10はキャラクタジェネレータ(CG)
であって、表示装置9に表示する文字、記号のパターン
を記憶する。The CRTC 8 plays the role of displaying the contents stored in the cursor register 6 and the display buffer memory 7 on the display device 9. The CRT 9 is a display device using a cathode ray tube or the like, and the display of a dot pattern and a cursor on the display device 9 is controlled by a CRT controller 8. Furthermore, 10 is a character generator (CG)
It stores patterns of characters and symbols to be displayed on the display device 9.
かかる各構成要素からなる本発明実施例の文字処理装置
は、キーボード4からの各種の入力情報に応じて作動す
るものであって、キーボード4からの入力情報が供給さ
れると、まず、インタラブド信号がマイクロプロセッサ
1に送られ、そのマイクロプロセッサ1がROMZ内に
記憶しである各種の制御信号を読み出し、それらの制御
信号に従って各種の制御が行なわれる。The character processing device according to the embodiment of the present invention, which is comprised of these components, operates in response to various types of input information from the keyboard 4. When input information from the keyboard 4 is supplied, the character processing device according to the embodiment of the present invention first outputs an interwoven signal. is sent to the microprocessor 1, which reads out various control signals stored in the ROMZ, and performs various controls in accordance with these control signals.
第3図は、第2図の文字処理装置において、本実施例で
の特定の漢字レベルの指摘操作が実行される場合の一例
を示す。同図において、(A)は特定の漢字レベルの指
摘の対象となる文書が表示されているCRT9の表示状
態を表わす。この(A)において(a)は、カーソルの
位置を示す。また、(A)の状態において、漢字レベル
指摘キー5ITEが入力され、続いて後述の(b) 、
(c) 、 (d) 、 (e) 、 (f)に示さ
れる複数の数字キーが入力されると、CRT9に現に表
示されている文書情報に対して、例えば小学5手生が習
っていない漢字のうちで、既に学習済の漢字と、固有名
詞の中で使われている漢字とを除いた漢字が、例えば網
かけで指摘され、CR丁9の状態は、同図の(B)に示
すようになる。同図の(B)において、(g)のように
網かけが施されている漢字が、このようにして指摘され
た漢字である。以上の操作において、漢字レベル指摘キ
ー5ITEは、前述のように特定のレベルの漢字の指摘
を指示するキーであり、第3図の実施例のキー人力は、
例えばr 5ITE、 5.0.0.1. IJとする
。FIG. 3 shows an example of a case where the character processing device shown in FIG. 2 executes an operation for pointing out a specific kanji level in this embodiment. In the figure, (A) represents the display state of the CRT 9 in which a document to be pointed out at a specific kanji level is displayed. In this (A), (a) indicates the position of the cursor. Also, in the state of (A), the kanji level indication key 5ITE is input, and then (b), which will be described later, is input.
When multiple numeric keys shown in (c), (d), (e), and (f) are input, the document information currently displayed on the CRT 9 is displayed, for example, when a 5th grade elementary school student is not familiar with the document information. Among the kanji, the kanji excluding the kanji that have already been learned and the kanji used in proper nouns are indicated by shading, for example, and the status of CR 9 is shown in (B) of the same figure. It comes to show. In (B) of the same figure, the Chinese characters that are shaded as in (g) are the Chinese characters that have been pointed out in this way. In the above operation, the kanji level indication key 5ITE is a key for instructing the indication of a kanji of a specific level as described above, and the key manual power in the embodiment shown in FIG.
For example r 5ITE, 5.0.0.1. I.J.
このとき、上述の(b)に示されるキーは、指摘すべき
漢字のレベルを指示するキーであり、例えば数字「5」
のキー人力は、漢字のレベルが小学5年で習う漢字のレ
ベルであることを示す。このように(b)において入力
できるキーは、rHからrB)までの数字キーであり、
それ以外のキーは無視される。ここで、「1」から「6
」までのキーは、それぞれ、小学1年で習う漢字のレベ
ルから小学6年で習う漢字のレベルを指示する。「7」
は中学校以降で習う常用漢字のレベルを指示し、「8」
は常用漢字以外の漢字のレベルを指示する。At this time, the key shown in (b) above is a key that indicates the level of the kanji to be pointed out, for example, the number "5".
The key human power indicates that the level of kanji is the level of kanji learned in the fifth grade of elementary school. In this way, the keys that can be input in (b) are the numerical keys from rH to rB),
All other keys are ignored. Here, from "1" to "6"
The keys up to `` respectively indicate the level of kanji learned in the first grade of elementary school to the level of kanji learned in the sixth grade of elementary school. "7"
indicates the level of commonly used kanji learned after junior high school, and "8"
indicates the level of kanji other than common kanji.
また、上述の(c)に示されるキーは、指摘すべき漢字
のレベルの範囲を指示するキーであり、この(c)のキ
ーとしては数字の「0」キーまたは「1」キーが入力可
能で、それ以外のキーは無視される。ここで、「0」キ
ーは、上述の(b)のキーにおいて指示したレベルの漢
字および、それよりも難しいレベルの漢字を指摘するこ
とを指示する。ここでは難しいレベルとは、(b)のキ
ーで指示する数字キーの数字の値が大きいもの程難しい
レベルであるとする。また「1」のキーは、上述の(b
)において指示したレベルの漢字のみを指摘することを
指示する。In addition, the key shown in (c) above is a key that indicates the level range of the kanji that should be pointed out, and the numerical "0" key or "1" key can be input as the key in (c). All other keys are ignored. Here, the "0" key instructs to point out the kanji of the level indicated by the above-mentioned key (b) and the kanji of a more difficult level. Here, it is assumed that the more difficult the level is, the higher the numerical value of the numerical key indicated by the key (b) is. In addition, the key “1” is the above-mentioned (b
) to point out only the kanji of the specified level.
(d)に示されるキーは、(b)のキーで指示した漢字
のレベルが、漢字そのもののレベルであるのか、あるい
は漢字に対する読みのレベルであるのかを指示するキー
であり、このキーとして数字の「0」キーまたは[1」
キーが可能である。ここで、「0」キーは、漢字そのも
ののレベルであることを指示し、「1」キーは、漢字に
対する読みのレベルであることを指示する。The key shown in (d) is a key that indicates whether the level of the kanji indicated by the key (b) is the level of the kanji itself or the level of the reading of the kanji. "0" key or [1]
key is possible. Here, the "0" key indicates the level of the kanji itself, and the "1" key indicates the level of the reading of the kanji.
(e)は、指摘すべき漢字に対して第4図において後述
するオペレータ(使用者)が設定した学習済の漢字であ
るか否かの情報を用いて、学習済の漢字であっても指摘
するか、学習済の漢字であれば指摘しないかを指示する
キーである。この(e)のキーとして、数字のrQJキ
ーまたばrlJキーのみが入力可能であり、それ以外の
キーは無視される。ここで、「0」キーは学習済の漢字
であっても指摘することを指示し、「1」キーは学習済
の漢字であれば指摘しないことを指示する。例えば、(
h)の「圧」という漢字は、小学5手生で習う漢字であ
るが、既に学習済であるという情報が設定され、(e)
でrlJが指示されているために、網かけで指摘されて
はいない。(e) uses the information set by the operator (user) described later in Figure 4 for the kanji to be pointed out to indicate whether or not it is a learned kanji. This key instructs whether to point out the kanji if it is a kanji that has already been learned. As the key (e), only the numeric rQJ key or rlJ key can be input, and other keys are ignored. Here, the "0" key instructs to point out even the learned kanji, and the "1" key instructs not to point out the learned kanji. for example,(
The kanji ``pressure'' in h) is a kanji learned by fifth-grade elementary school students, but information is set that it has already been learned, and in (e)
Since rlJ is specified in , it is not pointed out with shading.
さらに(f)に示されるキーは指摘すべき漢字が固有名
詞の単語の漢字として使われていた場合に、指摘するか
指摘しないかを指示するキーである。この(f)のキー
として数字の「0」キーまたはrlJキーのみが入力可
能であり、それ以外のキーは無視される。ここで「0」
キーは、固有名詞の単語の漢字として使われていた場合
でも指摘することを指示し、[1ツキ−は、固有名詞の
単語の漢字として使われていた場合には指摘しないこと
を指示する。例えば、「舞Jという漢字は小学6年で習
う漢字であるので、(B)の画面上の(i)において網
かけで指摘されているが、(j)においては固有名詞「
舞鶴jの一部であり、(f)で1月が指示されているの
で網かけで指摘されていない。Further, the key shown in (f) is a key for instructing whether to point out or not to point out when the kanji to be pointed out is used as a kanji in a proper noun word. Only the numeric "0" key or the rlJ key can be input as the (f) key, and other keys are ignored. Here "0"
The key instructs to point out even if the word is used as a kanji for a proper noun word, and the [1tsu key instructs not to point out if it is used as a kanji for a proper noun word. For example, the kanji ``Mai J'' is a kanji learned in the sixth grade of elementary school, so in (i) on the screen in (B) it is pointed out with shading, but in (j) it is pointed out as a proper noun ``
It is a part of Maizuru J, and since January is indicated in (f), it is not indicated by shading.
第4図は第2図の文字処理装置において、本実施例での
指摘された漢字に対して漢字レベルの確認操作が実行さ
れる場合の操作例を示す。同図において、(A)は第3
図の(B)と全く同じ内容の表示状態の図であり、特定
のレベルの漢字が指摘されているCBr4の表示状態を
示している。(A)の状態において、キーボード4上の
漢字レベル確認キーKAKUが入力されると、同図の(
B)に示すように、カーソル位置よりも後側(文末側)
に存在する最初の指摘された漢字(網かけ漢字)の位置
にカーソルが移動し、かつ図示のようなウィンドウが表
示され、このウィンドウ中に指摘されている漢字と、そ
の漢字のレベルと、その漢字の読みと、読みの学習レベ
ルと、学習済の漢字であるか否かの情報とが表示される
。ウィンドウ中の上のrレベル」は、漢字のレベルを表
わし、下の「レベル」は読みのレベルを表わしている。FIG. 4 shows an example of an operation when a kanji level confirmation operation is performed on the indicated kanji in this embodiment in the character processing device of FIG. In the same figure, (A) is the third
This is a diagram of a display state with exactly the same content as in FIG. In the state of (A), when the kanji level confirmation key KAKU on the keyboard 4 is input, (
As shown in B), after the cursor position (towards the end of the sentence)
The cursor moves to the position of the first pointed out kanji (shaded kanji) in The reading of the kanji, the learning level of the reading, and information as to whether the kanji has already been learned are displayed. The upper "r level" in the window represents the kanji level, and the lower "r level" represents the reading level.
さらに、同図の(B)の表示状態に右いて、確認終了キ
ーKENDが入力されると、同図の(C)に示すように
、ウィンドウが消え、カーソル位置の漢字の網かけが消
え、指摘されていない状態になる。Furthermore, when the confirmation end key KEND is inputted in the display state shown in (B) of the same figure, the window disappears and the shading of the kanji at the cursor position disappears, as shown in (C) of the same figure. It goes unnoticed.
また、同図の(B)の状態において、読み置換えキーY
OMIが入力されると、同図の(D)に示すように、ウ
ィンドウが消え、カーソル位置の漢字がウィンドウ中に
表示されていた漢字の読みに置換えられる。この置換え
られた読みには、網かけは施されていない。In addition, in the state of (B) in the same figure, the reading replacement key Y
When OMI is input, the window disappears and the kanji at the cursor position is replaced with the reading of the kanji displayed in the window, as shown in (D) of the figure. This replaced reading is not shaded.
また、同図の(B)の状態において、学習切替えキーG
CHGが入力されると、同図の(E)に示すように、対
象となっている漢字の学習の状態が「未」から「済」に
変更され、「街」という漢字が学習済の漢字であるとい
う情報が設定される。逆に、同図の(E)の状態におい
て、学習切替えキーGCHGが入力されると、同図の(
B)に示すように、対象となっている漢字の学習の状態
が「済」から「未Jに変更され、「街」という漢字が学
習されていない漢字であるという情報が設定される。In addition, in the state of (B) in the same figure, the learning switch key G
When CHG is input, as shown in (E) in the same figure, the learning status of the target kanji changes from "un" to "done", and the kanji "machi" becomes a learned kanji. The information that is is set. Conversely, if the learning switching key GCHG is input in the state shown in (E) in the same figure, the state shown in (E) in the same figure is
As shown in B), the learning status of the target kanji is changed from "completed" to "unJ", and information is set that the kanji "machi" is an unlearned kanji.
第5図の(A)〜(D)は第2図のRAM3内の文書バ
ッファTBUFの構成例を示す。FIGS. 5A to 5D show examples of the structure of the document buffer TBUF in the RAM 3 of FIG.
同図の(A)は指摘された漢字が存在しないときの文書
バッファTBUFの構成を示す。指摘された漢字が存在
しない場合は、文書バッファTBUFの先頭から、文書
の文字が1文字2バイトのJISコードで格納され、文
書の末尾は、2バイトの文書末コードrOx ffff
Jで示される。(A) in the same figure shows the structure of the document buffer TBUF when the pointed out kanji does not exist. If the indicated kanji does not exist, the characters of the document are stored as 2-byte JIS codes for each character from the beginning of the document buffer TBUF, and the end of the document is stored as a 2-byte end-of-document code rOx ffff.
Indicated by J.
同図の(B)は、文書バッファTBUF中における指摘
された漢字の構成を示す。1文字2バイトで表わしてい
た漢字が指摘されると、その2バイトのデータが指摘漢
字開始コードrOXe 0OOJと指摘漢字終了コード
rOXe 0OIJではさまれた不定長のデータ(指摘
漢字)に置換えられる。指摘漢字開始コードと指摘漢字
終了コードの内側には、先頭から2バイトのJISコー
ドで表わした指摘された漢字の文字コードと、2バイト
の指摘情報と、指摘した漢字の読みとが続けて格納され
る。指摘した漢字の読みは、1文字2バイトのJISコ
ードで格納される。(B) of the same figure shows the structure of the pointed out kanji in the document buffer TBUF. When a kanji character that is represented by 2 bytes per character is pointed out, the 2-byte data is replaced with data of indefinite length (indicated kanji) sandwiched between the indicated kanji start code rOXe 0OOJ and the indicated kanji end code rOXe 0OIJ. Inside the indicated kanji start code and indicated kanji end code, the character code of the indicated kanji expressed in 2-byte JIS code from the beginning, 2-byte indicated information, and the reading of the indicated kanji are successively stored. be done. The reading of the indicated kanji is stored as a JIS code of 2 bytes per character.
同図の(C)は、同図の(B)における指摘情報の構成
例を示す。指摘情報には、指摘された漢字の漢字自身の
学習レベル(漢字レベル)の情報と、読みの学習レベル
(読みレベル)の情報と、学習フラグの情報とが格納さ
れる。漢字レベルと読みレベルの値の持つ意味は、同図
の(D)に示されている。学習フラグは、指摘された漢
字の学習の状態を示す情報であり、lであれば学習済の
読みの漢字であることを意味し、0であればまだ学習さ
れていない読みの漢字であることを意味する。(C) of the same figure shows an example of the configuration of the indication information in (B) of the same figure. The pointing information stores information on the learning level (kanji level) of the pointed out kanji itself, information on the learning level (reading level) of the reading, and information on a learning flag. The meanings of the kanji level and reading level values are shown in (D) of the figure. The learning flag is information indicating the learning status of the indicated kanji, and if it is l, it means that the reading of the kanji has been learned, and if it is 0, it means that the reading of the kanji has not been learned yet. means.
第6図の(A)、(B)は、第2図のRAM5内の漢字
学習レベル辞書KLDICの構成例を示す。(A) and (B) of FIG. 6 show an example of the configuration of the kanji learning level dictionary KLDIC in the RAM 5 of FIG.
同図の(A)に示すように、漢字学習レベル辞書KLD
ICは、漢字レベル部と読み情報部とに別れており、漢
字レベル部では、漢字1つに対する漢字自身のレベル情
報(漢字レベル情報)と読み情報へのポインタとがそれ
ぞれ1バイトと4バイトの固定長で格納され、これらが
文字コード順に連続して格納されている。したがって、
この漢字レベル部で文字コードの値から、その文字に対
する漢字レベル情報と読み情報へのポインタとを得るこ
とができる。また、読み情報へのポインタをたどること
によって、読み情報部においてその漢字の読みの情報を
得ることができる。この読み情報部には、その漢字に対
する読みの候補が複数個格納でき、またこの読み候補に
は、読みとその読みのレベル情報(読みレベル情報)と
が格納される。As shown in (A) of the same figure, the Kanji learning level dictionary KLD
The IC is divided into a kanji level section and a reading information section. In the kanji level section, the level information of the kanji itself (kanji level information) and the pointer to the reading information for each kanji are stored in 1 byte and 4 bytes, respectively. They are stored in a fixed length, and are stored consecutively in character code order. therefore,
In this kanji level section, kanji level information and a pointer to reading information for the character can be obtained from the value of the character code. Furthermore, by following the pointer to the reading information, information on the reading of the kanji can be obtained in the reading information section. This reading information section can store a plurality of reading candidates for the kanji, and the reading candidates also store readings and level information of the reading (reading level information).
この読みは1文字2バイトのJISコードで格納され、
そのMSB (最上位のビット)はすべてoffであり
、レベル情報のMSBはすべてonであるので、読み候
補と読み候補の境目を判定できる。This reading is stored in JIS code of 1 character and 2 bytes,
Since all MSBs (most significant bits) are off and all MSBs of the level information are on, it is possible to determine the boundary between reading candidates.
同図の(B)には、漢字(または読み)レベル情報の構
成を示す。漢字(読み)レベル情報には、漢字(読み)
レベルと学習フラグが格納される。(B) of the figure shows the structure of kanji (or reading) level information. Kanji (reading) level information includes kanji (reading)
Level and learning flag are stored.
すなわち、漢字レベル情報には漢字自身のレベルが格納
され、読みレベル情報には、読みのレベルが格納される
。このレベルの値が意味するものは、第5図の(D)と
全く同じである。この漢字(読み)レベルの設定は、別
の手段によって与えられるものとする。また、学習フラ
グは、指摘された漢字(読み)の学習の状態を示す情報
であり、1であれば学習済の漢字(読み)であることを
意味し、0であればまだ学習されていない漢字(読み)
であることを意味する。1つの漢字に対する読み情報の
中の読みレベル情報の学習フラグが1つでも1であれば
、漢字レベル情報の学習フラグは必ず1であり、読みレ
ベル情報の学習フラグがすべてOであったときのみ、漢
字レベル情報の学習フラグは0となる。That is, the kanji level information stores the level of the kanji itself, and the reading level information stores the reading level. What this level value means is exactly the same as (D) in FIG. This kanji (reading) level setting shall be provided by another means. In addition, the learning flag is information indicating the learning status of the indicated kanji (reading), and if it is 1, it means that the kanji (reading) has been learned, and if it is 0, it means that it has not been learned yet. Kanji (reading)
It means that. If even one learning flag of the reading level information in the reading information for one kanji is 1, the learning flag of the kanji level information is always 1, and only when all the learning flags of the reading level information are O. , the learning flag of the kanji level information becomes 0.
第7図の(A) 、 (B)は、特定のレベルの漢字を
指摘するために文書バッファTBUF中の文書を解析し
た結果を格納する解析結果テーブルKAISの構成例を
示す。FIGS. 7A and 7B show an example of the structure of an analysis result table KAIS that stores the results of analyzing a document in the document buffer TBUF in order to point out kanji at a specific level.
同図の(A)に示すように、解析の結果、文書バッファ
TBUF中の文書の先頭から切り出された文節の情報が
、解析結果テーブルKAISの個数記入項の次から順次
詰めて格納される。この各文節情報には、文節情報のサ
イズ、文書の先頭から文字数で表わした文節開始位置9
文節文字数、自立語文字数、自立語品詞、および自立語
読みが格納される。この自立語読みには、自立語の読み
が1文字2バイトのJISコードで格納される。As shown in (A) of the figure, as a result of the analysis, the information on the clauses cut out from the beginning of the document in the document buffer TBUF is stored sequentially from the number entry in the analysis result table KAIS. This bunsetsu information includes the bunsetsu information size, the bunsetsu start position 9 expressed in number of characters from the beginning of the document.
The number of clause characters, the number of independent word characters, the independent word part of speech, and the independent word reading are stored. In this independent word reading, the reading of the independent word is stored as a JIS code of 1 character and 2 bytes.
また、自立語読みの各読みのMSBは、同図の(B)に
示すように、文書中の1文字に対する先頭の読みに対し
てはonされているが、2番目以降の読みに対してはo
ffされているので、1文字に対する読みを得ることが
できる。In addition, as shown in (B) in the same figure, the MSB of each reading of the independent word reading is turned on for the first reading of one character in the document, but for the second and subsequent readings. is o
ff, so you can get the reading for each character.
上述の本発明実施例の動作手順を第8図〜第12図のフ
ローチャートに従って詳細に説明する。The operation procedure of the embodiment of the present invention described above will be explained in detail according to the flowcharts of FIGS. 8 to 12.
第8図のフローチャートは本発明実施例の文字処理装置
の全体の動作を示す。The flowchart in FIG. 8 shows the overall operation of the character processing device according to the embodiment of the present invention.
まず、ステップS1においてキーボード4からキーが押
下され、割り込みが発生するのを待つ。キーが入力され
ると次のステップS2においてキーの判別をし、キーの
種類に応じてS3.S4.S5のいずれかのステップに
分岐する。First, in step S1, a key is pressed on the keyboard 4 and waits for an interrupt to occur. When a key is input, the key is determined in the next step S2, and step S3 is performed depending on the type of key. S4. The process branches to one of steps S5.
ステップS3は漢字レベル指摘キー5ITEが押下され
たときの処理であり、続いて入力される数字キーによっ
て指示される学習レベルの漢字を指摘する。Step S3 is a process performed when the kanji level indication key 5ITE is pressed, and indicates the kanji of the learning level indicated by the subsequently inputted numeric key.
ステップS4は漢字レベル確認キーKAKUが押下され
たときの処理であり、ステップS3で指摘された漢字に
対して、そのレベルや読みを確認し、必要に応じて文書
中の漢字を読みに置き換えたり、漢字に対する学習の状
態を切り替えたりすることができる。Step S4 is a process performed when the kanji level confirmation key KAKU is pressed, and the level and reading of the kanji pointed out in step S3 is checked, and if necessary, the kanji in the document is replaced with the reading. , you can switch the learning status for kanji.
ステップS5は、上述の5ITE、 KAKU以外のキ
ー(例えばカーソル移動キーなどの文書編集で用いるキ
ーなど)が押下された場合の処理であり、同種の文字処
理装置において一般に行われている処理であって、周知
の処理内容であるのでその詳細説明は省略する。Step S5 is a process performed when a key other than the above-mentioned 5ITE or KAKU (for example, a key used in document editing such as a cursor movement key) is pressed, and is a process commonly performed in character processing devices of the same type. Since the processing contents are well known, detailed explanation thereof will be omitted.
ステップS6は上記の各処理の結果、変更された部分を
表示する表示処理であり、文書中のデータ1文字を読ん
では表示用パターンに展開し、表示バッファに出力する
という通常広く行われている処理内容のものである。Step S6 is a display process that displays the changed part as a result of each of the above processes, and is usually widely performed by reading one character of data in a document, developing it into a display pattern, and outputting it to a display buffer. This is the processing content.
第9図のフローチャートは、上述の第8図のステップS
3の漢字レベル指摘処理を詳細に示す。The flowchart in FIG. 9 corresponds to step S in FIG.
3 shows the kanji level pointing process in detail.
まず、ステップS31では、漢字レベル指摘キーS I
TEに続けて入力された数字キーに従って、指摘すべき
漢字の学習レベルの範囲や、学習済の漢字を指摘するか
否か、また、固有名詞に使われている漢字を指摘するか
否かの指示を得る(第3図参照)。First, in step S31, the kanji level indication key S I
According to the number keys entered after TE, you can determine the learning level range of the kanji to be pointed out, whether or not to point out already learned kanji, and whether or not to point out kanji used in proper nouns. Obtain instructions (see Figure 3).
次のステップS32では、文書バッファTBUFに格納
されている文書(第5図参照)に対して、解析用の単語
辞書のDICを用いて解析を行い、文節単位に分割し、
漢字を指摘するために必要な情報を解析結果テーブルK
AIS (第7図参照)に出力する。このように解析用
の辞書を用いて文章を文節単位に分割する処理は周知技
術であるので、その詳細説明は省略する。In the next step S32, the document stored in the document buffer TBUF (see FIG. 5) is analyzed using DIC, a word dictionary for analysis, and divided into phrases.
Analysis result table K for the information necessary to point out kanji
Output to AIS (see Figure 7). Since the process of dividing a sentence into phrases using an analysis dictionary is a well-known technique, detailed explanation thereof will be omitted.
次のステップS33では、S32で得られた解析結果テ
ーブルKAISを用いて、文書バッファTBU)’に格
納されている文書に対して、ステップS31で指定され
た学習レベルの漢字を指摘し、指摘した漢字の文字コー
ドを指摘漢字データに置き換える。In the next step S33, using the analysis result table KAIS obtained in S32, the kanji of the learning level specified in step S31 is pointed out for the document stored in the document buffer TBU'. Replace the kanji character code with the indicated kanji data.
第10図のフローチャートは、上述の第9図のステップ
S31の漢字レベル設定処理の詳細を示す。The flowchart in FIG. 10 shows details of the kanji level setting process in step S31 in FIG. 9 described above.
まず、ステップ5311では、キーボード4からキーが
押下され、割り込みが発生するのを待つ。キーが入力さ
れると、入力されたキーがrlJキーからr8Jキーま
での数字キーであるか否かを判定する。そのような数字
キーであれば、そのキーの数字の値を学習レベルLEV
ELに格納し、次のステップ5312へ進む。一方、そ
のような数字キーでなければ、さらに次のキーが入力さ
れるのを待つ。First, in step 5311, a key is pressed on the keyboard 4 and waits for an interrupt to occur. When a key is input, it is determined whether the input key is a numeric key from the rlJ key to the r8J key. If it is such a number key, the value of the number of that key is set to the learning level LEV.
The information is stored in the EL and the process proceeds to the next step 5312. On the other hand, if it is not such a numeric key, it waits for the next key to be input.
ステップ5312では、キーボード4からキーが押下さ
れ、割り込みが発生するのを待つ、キーが入力されると
、入力されたキーがrQJキーまたは「1」キーの数字
キーであるか否かを判定する。そのような数字キーであ
れば、そのキーの数字の値を指摘範囲HANIに格納し
、次のステップ5313へ進む。一方、そのような数字
キーでなければ、さらに次のキーが入力されるのを待つ
。In step 5312, a key is pressed on the keyboard 4 and waits for an interrupt to occur. When a key is input, it is determined whether the input key is the rQJ key or the numeric key of the "1" key. . If it is such a numeric key, the numeric value of that key is stored in the indicated range HANI, and the process advances to the next step 5313. On the other hand, if it is not such a numeric key, it waits for the next key to be input.
ステップ5313では、キーボード4からキーが押下さ
れ、割り込みが発生するのを待つ。キーが入力されると
、入力されたキーが「0」キーまたは「1」キーの数字
キーであるか否かを判定する。そのような数字キーであ
れば、そのキーの数字の値を漢字/読み指定フラグKA
YOに格納し、次のステップ5314へ進む。一方、そ
のような数字キーでなければ、さらに次のキーが入力さ
れるのを待つ。In step 5313, a key is pressed on the keyboard 4 and waits for an interrupt to occur. When a key is input, it is determined whether the input key is a numeric key such as a "0" key or a "1" key. If it is such a numeric key, the numeric value of that key is set to the kanji/yomi specification flag KA.
It is stored in YO and the process advances to the next step 5314. On the other hand, if it is not such a numeric key, it waits for the next key to be input.
ステップ5314では、キーボード4からキーが押下さ
れ、割り込みが発生するのを待つ。キーが入力されると
、入力されたキーが「0」キーまたは[1」キーの数字
キーであるか否かを判定する。そのような数字キーであ
れば、そのキーの数字の値を学習利用フラグGAKUに
格納し、次のステップ5315へ進む。一方、そのよう
な数字キーでなければ、さらに次のキーが入力されるの
を待つ。In step 5314, a key is pressed on the keyboard 4 and waits for an interrupt to occur. When a key is input, it is determined whether the input key is a numeric key such as a "0" key or a "1" key. If it is such a numeric key, the numeric value of that key is stored in the learning use flag GAKU, and the process advances to the next step 5315. On the other hand, if it is not such a numeric key, it waits for the next key to be input.
ステップ5315では、キーボード4からキーが押下さ
れ、割り込みが発生するのを待つ。キーが入力されると
、入力されたキーが「0」キーまたは「1ツキ−の数字
キーであるか否かを判定する。そのような数字キーであ
れば、そのキーの数字の値を固有名詞フラグKOYUに
格納し、ステップS31の処理を終了する。一方、その
ような数字キーでなければさらに次のキーが入力される
のを待つ。In step 5315, a key is pressed on the keyboard 4 and waits for an interrupt to occur. When a key is input, it is determined whether the input key is a ``0'' key or a ``1'' key. If it is such a numeric key, the numerical value of that key is uniquely set. The key is stored in the noun flag KOYU, and the process of step S31 is ended.On the other hand, if it is not such a numeric key, it waits for the next key to be input.
第11図のフローチャートは、上述の第9図のステップ
333の漢字指摘処理を詳細に示す。The flowchart of FIG. 11 shows in detail the kanji pointing out process in step 333 of FIG. 9 described above.
まず、ステップ5331において、処理文字カウンタi
に1を格納して初期化する。First, in step 5331, the processed character counter i
Initialize by storing 1 in .
次のステップ5332において、文書バッファTBUF
に格納されているi番目(iはカウンタiのカウント値
)の文字を取ってくる。In the next step 5332, the document buffer TBUF
The i-th character (i is the count value of counter i) stored in is fetched.
さらに、ステップ5333において、ステップ5332
で文字を取ってこられたか否かを判定する6文字が取っ
てこられれば次のステップ5334へ進み、文字が取っ
てこられなければステップS33の処理を終了する。Further, in step 5333, step 5332
It is determined whether or not characters have been retrieved. If six characters have been retrieved, the process advances to the next step 5334, and if no characters have been retrieved, the process of step S33 is ended.
ステップ5334において、漢字学習レベル辞書KLD
IC(第6図参照)を用いて、ステップ5332で得た
文字が漢字であるか否かを判定する。漢字であれば次の
ステップ5335へ進み、漢字でなければステップ53
39へ飛ぶ。In step 5334, the kanji learning level dictionary KLD
Using the IC (see FIG. 6), it is determined whether the character obtained in step 5332 is a kanji. If it is a kanji, proceed to the next step 5335; if it is not a kanji, proceed to step 53
Jump to 39.
ステップ5335において、ステップ5332で得た漢
字が上述のステップS31で得た学習レベルの範囲に入
っているか否かを学習レベルLEVEL等を参照して判
定し、その範囲に入っていれば、次のステップ5336
へ進み、その範囲に入っていなければステップ5339
へ飛ぶ。すなわち、ステップ5332で得た漢字に対し
て、漢字学習レベル辞書KLDICを用い、漢字/読み
指定フラグKAYOの値がOであれば漢字自身の学習レ
ベルを得る。また、その値が1であれば、解析結果テー
ブルKAISに格納されている読みから、ステップ53
32で得た漢字の読みを得て、学習レベル辞書KLDI
C中の読みとマツチングを取り、その読みの学習レベル
を得る。そして、得られた学習レベルの値と、学習レベ
ルLEBELに格納されている値とを比較する。このと
き、指摘範囲HANIの値が0であるとき、ステップS
33:2で得た漢字の学習レベルが学習レベルLEBE
Lの値と等しいか大きければ次のステップ3336へ進
み、小さければステップ5339へ飛ぶ。一方、指摘範
囲HANIの値が1であるとき、ステップ5332で得
た漢字の学習レベルが学習レベルLEBELの値と等し
ければ次のステップ3336へ進み、等しくなければス
テップ5339へ飛ぶ。In step 5335, it is determined whether the kanji obtained in step 5332 is within the range of the learning level obtained in step S31 described above by referring to the learning level LEVEL, etc., and if it is within the range, the next Step 5336
If it is not within that range, proceed to step 5339.
fly to That is, for the kanji obtained in step 5332, the kanji learning level dictionary KLDIC is used, and if the value of the kanji/yomi specification flag KAYO is O, the learning level of the kanji itself is obtained. Further, if the value is 1, step 53
Obtain the reading of the kanji obtained in 32, and use the learning level dictionary KLDI.
Match the readings in C to get the learning level of that reading. Then, the obtained learning level value is compared with the value stored in the learning level LEBEL. At this time, if the value of the indicated range HANI is 0, step S
The learning level of the kanji obtained in 33:2 is the learning level LEBE.
If it is equal to or larger than the value of L, the process advances to the next step 3336, and if it is smaller, the process jumps to step 5339. On the other hand, when the value of the indicated range HANI is 1, if the learning level of the kanji obtained in step 5332 is equal to the value of the learning level LEBEL, the process advances to the next step 3336, and if not, the process jumps to step 5339.
ステップ5336において、学習の状態によってステッ
プ5332で得た漢字を指摘するか否かを判定する。す
なわち、学習利用フラグGAKUの値が1であれば、上
述のステップ5335と同様にして、ステップ5332
で得た漢字が漢字または読みに関して学習済であるか否
かの情報を学習レベル辞書KLDICから得る。学習利
用フラグGAKUの値が0であるか、または学習利用フ
ラグGAKUの値が1であってステップ5332で得た
漢字が学習済でなければ、次のステップ5337へ進む
。学習利用フラグGAKUの値が1でステップ5332
で得た漢字が学習済であればステップ5339へ飛び、
何も指摘しない。In step 5336, it is determined whether or not to point out the kanji obtained in step 5332, depending on the state of learning. That is, if the value of the learning use flag GAKU is 1, step 5332 is performed in the same manner as step 5335 described above.
Information on whether or not the kanji obtained in step 1 has already been studied in terms of kanji or reading is obtained from the learning level dictionary KLDIC. If the value of the learning use flag GAKU is 0 or the value of the learning use flag GAKU is 1 and the kanji obtained in step 5332 has not been learned, the process proceeds to the next step 5337. If the value of learning use flag GAKU is 1, step 5332
If the kanji obtained in has been learned, jump to step 5339,
don't point out anything.
ステップ5337において、固有名詞の漢字であるか否
かによって、ステップ5332で得た漢字を指摘するか
否かを判定する。すなわち、固有名詞フラグKOYLI
の値が0であれば、次のステップ5338に進んで指摘
する。固有名詞フラグKoyuの値が1であれば、解析
結果テーブルKAISの自立語品詞がらステップ533
2で得た漢字が固有名詞の一部であるか否かを判定し、
固有名詞の一部であれば、ステップ5339に飛んで何
も指摘しない。一方、固有名詞の一部でなければ次のス
テップ3338に進んで指摘する。In step 5337, it is determined whether or not to point out the kanji obtained in step 5332, depending on whether the kanji is a proper noun kanji. That is, the proper noun flag KOYLI
If the value is 0, the process proceeds to the next step 5338 and is pointed out. If the value of the proper noun flag Koyu is 1, step 533
Determine whether the kanji obtained in step 2 is part of a proper noun,
If it is part of a proper noun, the process jumps to step 5339 and nothing is pointed out. On the other hand, if it is not part of a proper noun, the process proceeds to the next step 3338 and points it out.
ステップ5338において、ステップ5332で得た漢
字を指摘する。すなわち、文書バッファTBUF上のス
テップ5332で得た漢字の文字コードを第5図の(B
)で示したフォーマット形式に置き換える。このとき必
要なデータは漢字学習レベル辞書KLDICから得るこ
とができる。In step 5338, the kanji obtained in step 5332 is pointed out. That is, the character code of the kanji obtained in step 5332 on the document buffer TBUF is converted to (B
) to the format shown. The data required at this time can be obtained from the Kanji learning level dictionary KLDIC.
ステップ5339において、カウンタiのカウント値を
インクリメントして、ステップ5332へ戻る。In step 5339, the count value of counter i is incremented, and the process returns to step 5332.
第12図のフローチャートは、上述の第8図のステップ
S4の漢字レベル確認処理を詳細に示す。The flowchart of FIG. 12 shows in detail the kanji level confirmation process in step S4 of FIG. 8 described above.
まず、ステップS41において、カーソル位置から文末
方向に向かって指摘された漢字をサーチする。すなわち
、指摘漢字開始コードをサーチする。First, in step S41, the indicated kanji is searched for from the cursor position toward the end of the sentence. That is, the indicated kanji start code is searched.
次に、ステップS42において、ステップS41で指摘
された漢字が見つかったか否かによって分岐する。指摘
された漢字が見つかれば、次のステップS43へ進み、
見つからなければステップS4の処理を終了する。Next, in step S42, the process branches depending on whether the kanji pointed out in step S41 is found. If the pointed out kanji is found, the process advances to the next step S43.
If it is not found, the process of step S4 ends.
ステップS43において、ステップS41で最初に見つ
かった指摘された漢字の位置にカーソルを移動する(第
4図の(B)参照)。In step S43, the cursor is moved to the position of the pointed out kanji character found first in step S41 (see (B) in FIG. 4).
次にステップS44において、ウィンドウを開いてウィ
ンドウ中に第4図の(B)に示す内容を表示する。ウィ
ンドウに表示する情報は、カーソル位置の指摘漢字開始
コードと指摘漢字終了情報によってはさまれたデータか
ら得ることができる。Next, in step S44, a window is opened and the contents shown in FIG. 4(B) are displayed in the window. The information displayed on the window can be obtained from the data sandwiched between the indicated kanji start code and the indicated kanji end information at the cursor position.
次のステップS45において、キーボード4からキーが
押下され、割り込みが発生するのを待つ。In the next step S45, a key is pressed on the keyboard 4 and waits for an interrupt to occur.
キーが入力されると次のステップ346においてキーの
判別をし、キーの種類に応じてステップS47゜S48
.S49.およびS45のいずれかのステップに分岐す
る。When a key is input, the key is determined in the next step 346, and steps S47 and S48 are performed depending on the type of key.
.. S49. Then, the process branches to one of steps S45.
ステップS47は学習切り替えキーGCHGが押下され
たときの処理であり、漢字の学習の状態を切り替えてス
テップS44へ戻る。すなわち、カーソル位置の指摘漢
字の中の指摘情報の学習フラグがOであれば1に、その
学習フラグが1であればOに切り替える。また、同時に
、漢字学習レベル辞書KLDIC中の学習フラグも次の
ように切り替える。Step S47 is a process performed when the learning switching key GCHG is pressed, and the kanji learning state is switched and the process returns to step S44. That is, if the learning flag of the indicated information in the indicated kanji at the cursor position is O, the learning flag is switched to 1, and if the learning flag is 1, it is switched to O. At the same time, the learning flag in the Kanji learning level dictionary KLDIC is also switched as follows.
すなわち、指摘情報の学習フラグを0から1に切り替え
た場合は、指摘漢字データ中の読みと一致する漢字学習
レベル辞書KLDIC中の読みに対する学習フラグを1
にし、さらに漢字自身の学習フラグも1にする。また、
指摘情報の学習フラグを1からOに切り替えたのであれ
ば、指摘漢字データ中の読みと一致する漢字学習レベル
辞書KLDIC中の読みに対する学習フラグをOにし、
さらに、指摘された漢字に対する漢字学習レベル辞書K
LDIC中の読みの学習フラグがすべて0であれば、漢
字自身の学習フラグをOにする(第4図の(E) 参照
)。In other words, when the learning flag of the indicated information is switched from 0 to 1, the learning flag for the reading in the Kanji learning level dictionary KLDIC that matches the reading in the indicated kanji data is changed to 1.
Also, set the learning flag for the kanji itself to 1. Also,
If you have switched the learning flag of the indicated information from 1 to O, change the learning flag for the reading in the Kanji learning level dictionary KLDIC that matches the reading in the indicated kanji data to O,
Furthermore, the kanji learning level dictionary K for the kanji pointed out is
If all reading learning flags in the LDIC are 0, the learning flag of the kanji itself is set to 0 (see (E) in Figure 4).
ステップS48は読み置き換えキーYOMIが押下され
たときの処理であり、カーソル位置の指摘漢字を指摘漢
字データ中の読みに置き換える。すなわち、指摘漢字デ
ータのうち、漢字読みのみを残して他をすべて削除する
。そして、ウィンドウをクローズする(第4図の(D)
を参照)。その後、ステップS4を終了する。Step S48 is a process performed when the reading replacement key YOMI is pressed, and replaces the indicated kanji at the cursor position with the reading in the indicated kanji data. That is, among the indicated kanji data, only the kanji reading is left and all others are deleted. Then, close the window ((D) in Figure 4).
). After that, step S4 ends.
ステップS49は確認終了キーKENDが押下されたと
きの処理であり、カーソル位置の指摘漢字を通常の文字
コードに置き換える。すなわち、指摘漢字データのうち
、漢字コードのみを残して他をすべて削除する。そして
、ウィンドウをクローズする(第4図の(C)を参照)
。その後、ステップS4を終了する。Step S49 is a process performed when the confirmation end key KEND is pressed, and the indicated kanji at the cursor position is replaced with a normal character code. That is, among the indicated kanji data, only the kanji code is left and all others are deleted. Then close the window (see (C) in Figure 4).
. After that, step S4 ends.
上記のGCHG、 YOMI 、 KENDキー以外の
キーが入力されれば、ステップS45に戻って次のキー
人力を待つ。If a key other than the above-mentioned GCHG, YOMI, and KEND keys is input, the process returns to step S45 and waits for the next key input.
以上の実施例の説明において用いた辞書は、漢字の難易
度を格納した辞書であるが、単語の難易度を格納した辞
書でもよい。また、日本語の単語に限らず、他の言語(
外国語)における文字、単語の難易度を用いて処理する
ことも可能である。The dictionary used in the description of the above embodiments is a dictionary that stores the difficulty levels of kanji characters, but it may also be a dictionary that stores the difficulty levels of words. In addition, it is not limited to Japanese words, but also other languages (
It is also possible to process using the difficulty level of characters and words in foreign languages.
また、漢字学習レベル辞書の漢字および読みの難易度を
変更できる処理や、漢字学習レベル辞書の漢字に対する
読みを付は加えたり、削除したりする処理や、あるいは
漢字学習レベル辞書をディスク装置に保存したり、呼出
したりする処理を付は加えて、使用者の実情にあった漢
字学習レベル辞書を構築できるようにすることも可能で
ある。In addition, there is a process that allows you to change the difficulty level of kanji and readings in the kanji learning level dictionary, a process that adds or deletes pronunciations for kanji in the kanji learning level dictionary, and a process that allows you to save the kanji learning level dictionary to a disk device. It is also possible to add processing to perform and call processes to construct a kanji learning level dictionary that suits the user's actual situation.
[発明の効果]
以上説明したように、本発明によれば、文書記憶手段に
よって記憶されている文書の中の文字列の難易度を、文
字列解釈・難易度辞書から求め、設定された難易度に基
づいて、該当する文字列に対して、文字列解釈・難易度
辞書から文字列に対応した解釈を提示することができ、
またその解釈により、文書の内容を変更できるようにし
たので、使用状況や読み手の能力レベルに合わせた読み
やすい文書を作成することが可能な文字処理装置を実現
できる。[Effects of the Invention] As explained above, according to the present invention, the difficulty level of a character string in a document stored in a document storage means is determined from a character string interpretation/difficulty dictionary, and the difficulty level is determined from a set difficulty level. Based on the degree, the interpretation corresponding to the string can be presented from the string interpretation/difficulty dictionary for the corresponding string.
Furthermore, since the content of the document can be changed based on the interpretation, it is possible to realize a character processing device that can create an easy-to-read document that matches the usage situation and the ability level of the reader.
第1図は本発明実施例の基本構成を示すブロック図、
第2図は本発明実施例の全体の回路構成を示すブロック
図、
第3図は本発明実施例の漢字レベル指摘の操作例を示す
説明図、
第4図は本発明実施例の漢字レベル確認の操作例を示す
説明図、
第5図は本発明実施例の第2図の文書バッファの構成例
を示す説明図、
第6図は本発明実施例の第2図の漢字学習レベル辞書の
構成例を示す説明図、
第7図は本発明実施例の第2図の解析結果テーブルの構
成例を示す説明図、
第8図〜第12図はそれぞれ本発明実施例の文字処理装
置の動作手順を示すフローチャートである。
1・・・マイクロプロセッサ(CPU)、2・・・固定
メモリ(ROM)、
3・・・ランダムアクセスメモリ(RAM)、4・・・
キーボード(KB)、
5・・・ディスク装置(DISK)、
6・・・カーソルレジスタ(CR)、
7・・・表示用バッファメモリ(DBUF)、8・・・
CRTコントローラ(CRTC)、9・・・装置表示(
CRT)、
10・・・キャラクタジェネレータ(CR)、TBUF
・・・文書バッファ、
DIC・・・単語辞書、
KLDIC・・・漢字学習レベル辞書、KAIS・・・
解析結果テーブル、
LEVEL・・・学習レベル、
1(ANI・・・指摘範囲、
GAKU・・・学習利用フラグ、
KOYU・・・固有名詞フラグ、
KAYO・・・漢字/読み指定フラグ、i・・・処理文
字カウンタ、
5ITE・・・漢字レベル指摘キー
KAKU・・・漢字レベル確認キー
KEND・・・確認終了キー
YOMI・・・読み置き換えキー
GCHG・・・学習切り替えキー
(A)
SITE。
V施例の基本4(域色示110・ツク図第1図
原字レベル指拭の操作例乏示1蚊四囚
第3図
→ さ h
裏側イ列の動作+禰と示1メインフローチャート第8図
実枳口列の漢享しベル指搏目酵星
の群庫田を示(フロー十ヤード
第9図
友施例の漢字レベル級定笈理
の*#田乏汀、1フローチv−)
第10図
寡施例の道キIシ檎火口lの詳細と示1フローナヤート
第11図Fig. 1 is a block diagram showing the basic configuration of the embodiment of the present invention, Fig. 2 is a block diagram showing the overall circuit configuration of the embodiment of the present invention, and Fig. 3 is an example of operation for pointing out kanji level in the embodiment of the present invention. FIG. 4 is an explanatory diagram showing an operation example of checking the kanji level in the embodiment of the present invention. FIG. 5 is an explanatory diagram showing an example of the structure of the document buffer in FIG. 2 in the embodiment of the present invention. is an explanatory diagram showing an example of the structure of the kanji learning level dictionary shown in FIG. 2 according to the embodiment of the present invention; FIG. 7 is an explanatory diagram showing an example of the structure of the analysis result table shown in FIG. 2 according to the embodiment of the present invention; FIG. 12 is a flowchart showing the operating procedure of the character processing device according to the embodiment of the present invention. 1... Microprocessor (CPU), 2... Fixed memory (ROM), 3... Random access memory (RAM), 4...
Keyboard (KB), 5... Disk device (DISK), 6... Cursor register (CR), 7... Display buffer memory (DBUF), 8...
CRT controller (CRTC), 9...Device display (
CRT), 10...Character generator (CR), TBUF
...Document buffer, DIC...Word dictionary, KLDIC...Kanji learning level dictionary, KAIS...
Analysis result table, LEVEL...learning level, 1 (ANI...pointed out range, GAKU...learning use flag, KOYU...proper noun flag, KAYO...kanji/yomi specification flag, i... Processing character counter, 5ITE...Kanji level indication key KAKU...Kanji level confirmation key KEND...Confirmation end key YOMI...Reading replacement key GCHG...Learning switching key (A) SITE. Basics 4 (color area 110/tsuku diagram Figure 1 Original character level Example of operation of finger wiping Example 1 Mosquito 4 prisoners Figure 3 → Sa h Back side A column operation + Ne and Figure 1 Main flowchart Figure 8 Actual diagram) Figure 10 shows the kanji of Kanji in the mouth row and the bell finger of the star. Details and illustrations of the small-scale roadside crater I Hronayat Figure 11
Claims (1)
かじめ記憶した文字列解釈・難易度辞書と、 前記文書記憶手段に記憶されている文書中の文字列に対
して指摘を行なうべき難易度を設定する手段と、 前記文字列解釈・難易度辞書を参照して、前記文書記憶
手段に記憶されている文書の中で前記設定の難易度に基
づいて文字列を指摘するとともに、当該文字列に対応し
た解釈を提示する解釈提示手段と、 該解釈提示手段で提示された前記文字列に対応した解釈
へ、前記文書記憶手段に記憶されている文書の内容を変
更する文書変更手段と を具備することを特徴とする文字処理装置。[Scope of Claims] 1) A document storage means for storing a document consisting of character strings, a character string interpretation/difficulty level dictionary in which character strings are stored in advance in association with interpretations and difficulty levels of the character strings, and the document means for setting a difficulty level at which a character string in a document stored in a document should be pointed out; an interpretation presenting means for pointing out a character string based on the difficulty level of the setting and presenting an interpretation corresponding to the character string; and an interpretation corresponding to the character string presented by the interpretation presenting means; A character processing device comprising: document changing means for changing the content of a document stored in the document storage means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2131397A JPH0432957A (en) | 1990-05-23 | 1990-05-23 | character processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2131397A JPH0432957A (en) | 1990-05-23 | 1990-05-23 | character processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0432957A true JPH0432957A (en) | 1992-02-04 |
Family
ID=15057021
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2131397A Pending JPH0432957A (en) | 1990-05-23 | 1990-05-23 | character processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0432957A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009140073A (en) * | 2007-12-04 | 2009-06-25 | Nippon Telegr & Teleph Corp <Ntt> | Term difficulty conversion device and term difficulty conversion program |
| JP2009140074A (en) * | 2007-12-04 | 2009-06-25 | Nippon Telegr & Teleph Corp <Ntt> | Term difficulty diagnosis device and term difficulty diagnosis program |
-
1990
- 1990-05-23 JP JP2131397A patent/JPH0432957A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009140073A (en) * | 2007-12-04 | 2009-06-25 | Nippon Telegr & Teleph Corp <Ntt> | Term difficulty conversion device and term difficulty conversion program |
| JP2009140074A (en) * | 2007-12-04 | 2009-06-25 | Nippon Telegr & Teleph Corp <Ntt> | Term difficulty diagnosis device and term difficulty diagnosis program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0432957A (en) | character processing device | |
| JPH04191966A (en) | Character processor | |
| JP2862236B2 (en) | Character processor | |
| JPH04191967A (en) | Character processor | |
| JPS6175950A (en) | Character correction method for solid kana-kanji conversion | |
| KR910001562B1 (en) | Method of input and display of koreancharacters | |
| JP2786260B2 (en) | Kana-Kanji conversion device | |
| JPS62257570A (en) | Kana-kanji conversion device | |
| JPH076172A (en) | Word processor | |
| JP3278148B2 (en) | Character processing apparatus and method | |
| JPS61175855A (en) | Kana to kanji converting device | |
| JP2771020B2 (en) | Character processor | |
| JPH02161560A (en) | Character processor | |
| JP2548129B2 (en) | Text input device | |
| JPH0442351A (en) | character processing device | |
| JPH0442350A (en) | character processing device | |
| JPS63257862A (en) | character processing device | |
| JPH06131325A (en) | Hangul input method | |
| JPH0385669A (en) | Retrieval replacing device with function for analyzing declensional kana ending | |
| JPH04332073A (en) | Method and device for processing character | |
| JPH0736902A (en) | Electronic dictionary device | |
| JPH03176759A (en) | Character processing device and method | |
| JPH0562794B2 (en) | ||
| JPH0816908B2 (en) | Character processing device and character processing method | |
| JPH03167660A (en) | Character processor |