JP2728408B2 - Character processor - Google Patents

Character processor

Info

Publication number
JP2728408B2
JP2728408B2 JP62261615A JP26161587A JP2728408B2 JP 2728408 B2 JP2728408 B2 JP 2728408B2 JP 62261615 A JP62261615 A JP 62261615A JP 26161587 A JP26161587 A JP 26161587A JP 2728408 B2 JP2728408 B2 JP 2728408B2
Authority
JP
Japan
Prior art keywords
dictionary
storage means
identification information
external storage
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62261615A
Other languages
Japanese (ja)
Other versions
JPH01106166A (en
Inventor
英一朗 戸島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP62261615A priority Critical patent/JP2728408B2/en
Publication of JPH01106166A publication Critical patent/JPH01106166A/en
Application granted granted Critical
Publication of JP2728408B2 publication Critical patent/JP2728408B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は辞書データ記憶手段の着脱が可能な文字処理
装置に関するものであり、例えば、かな漢字変換を行い
ながら漢字等の文字を入力し、日本語の文書等のドキュ
メントを作成編集する文字処理装置に関するものであ
る。 〔従来の技術〕 従来から知られているこの種の文字処理装置において
は、かな漢字変換処理に従って漢字を入力するのが普通
であり、そのためには辞書データが不可欠である。その
辞書データは通常の場合極めて大容量であり、フロッピ
ーディスク(以下FDという)等の外部記憶装置に格納す
ることが広く行われている。この外部記憶装置のアクセ
スタイムは主記憶装置等の内部記憶装置に比べて遅いた
め、FD辞書データか格納されている場合には、主記憶装
置に索引など辞書データの内容の一部をロードしてお
き、アクセスを高速化するということが行われている。 このような方式を採用した場合、FDが交換されたとき
には、FD上の辞書データと主記憶装置上の辞書データの
内容が矛盾してしまう危険性がある。従って、辞書デー
タの交換が行われたかどうかをチェックする必要性が生
じ、もし交換されている事実が検出されれば、主記憶装
置上の辞書データをクリアし、再びFDより辞書データを
ロードするという再ロード処理を行わなければならな
い。 そこで、従来はFDが取り出されたと判定したときには
主記憶装置に記憶された辞書データをクリアし、次にFD
がセットさたときには、そのFDに格納されている辞書デ
ータを主記憶装置にロードすることが行われている。 〔発明が解決しようとする問題点〕 しかしながら、FDの着脱チェックに基づく辞書交換チ
ェックでは、FDを取り出した後にその取り出したFDを再
び装填したような場合、実際には辞書の交換が行われて
いないにもかかわらず、辞書が交換されたと判定されて
しまい、そのために辞書データのロードが無駄に行われ
るという不都合がみられた。 かかる不都合を回避するために、辞書データを主記憶
装置にロードする際に、特定の識別情報をFDと主記憶装
置の双方に設定しておき、FDの脱着が検出されたときに
は、再びFDから識別情報を読み込んで主記憶装置上の識
別情報との比較を行い、このことにより同一のFDが再セ
ットされたか否かを判定するという辞書交換チェック方
式も考えられる。 ところが、このような辞書交換チェック方式では、FD
にライトプロテクト処理がなされているときは所望の識
別情報を書き込むことができないため、FDの再装着時に
おける同一性判別が困難になる。 さらに、上述のように必ずFDに識別情報を書き込むと
いう方式では、製品の出荷検査、あるいは他人の辞書を
借りてきて参照する場合などのようにデータを書き込ん
ではいけないような場合に不便である。 よって本発明の目的は上述の点に鑑み、辞書データが
記憶されている外部記憶装置にライトプロテクト処理が
なされている場合にも、外部記憶装置の着脱の有無を確
実に判定することができる文字処理装置を提供すること
にある。 〔問題点を解決するための手段〕 上記の目的を達成するために、本発明に係る文字処理
装置は、内部記憶手段と、辞書情報を記憶する着脱自在
な外部記憶手段と、該外部記憶手段に記憶されている辞
書情報を前記内部記憶手段にロードするロード手段と、
該ロード手段による前記辞書情報のロードに伴って、前
記外部記憶手段が書き込み可能か否かを判定する判定手
段と、該判定手段により書き込み可能と判定された場合
は、前記外部記憶手段と前記内部記憶手段とに、前記辞
書情報を識別するための同一の識別情報を書き込み設定
し、前記判定手段により書き込み不能と判定された場合
は、前記外部記憶手段から前記辞書情報を識別するため
の識別情報を読み出して、読み出された当該識別情報を
前記内部記憶手段に書き込み設定する識別情報設定手段
と、前記内部記憶手段に記憶された辞書情報の参照に先
立って、前記外部記憶手段に設定されている識別情報を
読み出して、該識別情報と前記内部記憶手段に設定され
ている識別情報とを比較する識別情報比較手段と、該識
別情報比較手段による比較の結果、一致する場合は、前
記内部記憶手段に記憶された辞書情報を参照し、不一致
の場合は、前記ロード手段による辞書情報のロードを実
行し、ロード実行後に前記内部記憶手段に記憶された辞
書情報を参照するように制御する制御手段とを具えたも
のである。 〔作用〕 本発明の上記構成によれば、外部記憶手段がいったん
外された場合でも、再度同じ外部記憶手段が装着されて
いれば、無駄な辞書情報のロードが実行されることを禁
止できる。また、このような無駄なロードにより、内部
記憶手段にある有用な情報の喪失が防止できる。 さらに、外部記憶手段が書き込み可能の場合、辞書情
報のロードに伴って、外部記憶手段と内部記憶手段に同
一の識別情報が設定されるので、この場合は、かかる識
別情報を、辞書情報のロードに先立って外部記憶手段に
用意する必要がない。一方、外部記憶手段が書き込み不
能の場合は、外部記憶手段から識別情報を読み出して、
読み出された識別情報を内部記憶手段に書き込み設定す
るようにしているので、書き込み不能の場合も対処でき
る。 〔実施例〕 以下、実施例に基づいて本発明を詳細に説明する。 第1図は本発明の一実施例を示すブロック図である。
本実施例では、辞書データを記憶する取り外し可能な外
部記憶手段Aと、辞書データを記憶する取り外し不可能
な内部記憶手段Bと、外部記憶手段Aに記憶されている
辞書データを内部記憶手段Bにロードする辞書ロード手
段Cと、ロードされた辞書データを参照して入力文字デ
ータを処理する文字処理手段Dと、外部記憶手段Aにラ
イトプロテクトがかかっていることを検出するライトプ
ロテクト検出手段Eと、辞書データのロードに際してラ
イトプロテクト検出手段Eによりライトプロテクトがか
かっていないと判定されたときには対応する識別情報を
外部記憶手段Aおよび内部記憶手段Bの双方に設定する
第1識別情報設定手段Fと、ライトプロテクトがかかっ
ていると判定されたときには外部記憶手段Aに記憶され
ている識別情報を読み取り、対応する識別情報を内部記
憶手段Bに設定する第2識別情報設定示手段Gと、外部
記憶手段Aの取り外しが行われたかどうかを検出する脱
着検出手段Hと、外部記憶手段Aに記憶された識別情報
と内部記憶手段Bに記憶された識別情報との比較を行う
識別情報比較手段Iとを有し、脱着検出手段Hにより外
部記憶手段Aのと取り外しが検出された時に識別情報比
較手段Iを起動し、外部記憶手段Aが本当に交換されて
るかどうかを判定する。 第2図は上記実施例をより具体的に示したブロック構
成図である。 図示の構成において、CPUはマイクロプロセッサであ
り、文字処理のための演算,論理判断等を行い、アドレ
スバスAB,コントロールバスCB,データバスDBを介して、
それらのバスに接続された各構成要素を制御する。 アドレスバスABは、マイクロプロセッサCPUの制御対
象となる構成要素を指示するアドレス信号を転送する。
コントロールバスCBは、マイクロプロセッサCPUの制御
の対象となる各構成要素のコントロール信号を転送して
印加する。データバスDBは、各構成機器相互間のデータ
の転送を行う。 ROMは読出し専用の固定メモリであり、第6図〜第10
図につき後述するマイクロプロセッサCPUによる制御の
手順等を記憶させておく。 RAMは1ワード16ビットの構成の書込み可能なランダ
ムアクセスメモリであって、各構成要素からの各種デー
タの一時記憶に用いる。このRAMには、次に述べるエリ
アが含まれている。 INDEXは辞書データの索引であり、外部記憶装置DISK
上にある辞書データのうち索引部分のみを記憶するエリ
アである。 KBBUFは、入力された読み列を蓄えるためのキーボー
ドバッファエリアである。 MEMIDは辞書の交換をチェックするために、RAM上に蓄
えておく識別情報エリアである。 COUNTは内部で常に更新が行われているシステムカウ
ンタエリアである。 FDOUTは外部記憶DISKが脱着されたかどうかを示す外
部記憶脱着フラグエリアである。 KBはキーボードであって、アルファベットキー,ひら
かなキー,カタカナキー等の文字記号入力キー及び変換
キー等の本文字処理装置に対する各種機能を指示するた
めの各種のファンクションキーを備えている。 DISKは文書データ及び辞書データを記憶するための外
部記憶装置であり、作成された文書の保管を行い、保管
された文書はキーボードの指示により、必要な時呼び出
される。また、辞書データはRAM上に常駐する辞書索引I
NDEXにしたがって、必要部分のみがその都度RAM上にロ
ードされ、参照される。 CRはカーソルレジスタである。CPUにより、カーソル
レジスタの内容が読み書きされる。後述するCRTコント
ローラCRTCは、ここに蓄えられたアドレスに対応する表
示装置CRT上の位置にカーソルを表示する。 DBUFは表示用バッファメモリであり、表示すべきデー
タのパターンを蓄える。 CRTCはカーソルレジスタCR及び表示用バッファメモリ
DBUFに蓄えられた内容を表示器CRTに表示する役割を担
う。 CRTは陰極線管等を用いた表示装置データあり、その
表示装置CRTにおけるドット構成の表示パターンおよび
カーソルの表示はCRTコントローラCRTCにより制御され
る。 CGはキャラクタジェネレータであって、表示装置CRT
に表示される文字,記号のパターンを記憶するものであ
る。 かかる各構成要素からなる文字処理装置はキーボード
KBからの各種の入力に応じて作動するものである。キー
ボードKBから入力がなされると、まず、インタラプト信
号がマイクロプロセッサCPUに送られ、そのマイクロプ
ロセッサCPUがROM内に記憶してある各種の制御信号の読
出し、それらの制御信号に従って各種の制御が行われ
る。 第3図はDISK上に存在する辞書データの格納形式を説
明した図である。辞書データ全体は、識別情報,索引,
辞書本体の3つの部分から成っている。辞書本体は各単
語の読みに従って200のブロック(それぞれのブロック
は各々1024バイトで構成される)に区分されている。例
えば、かな漢字変換を行うときは、そのうち必要なブロ
ックが実際にメモリ上にロードされて参照される。索引
は辞書本体の各ブロックの先頭の単語の読みを羅列した
ものであり、ある読みの単語が実際に辞書本体のうちの
どのブロックに存在するかを示したデータである。索引
はシステムIPL直後にメモリ上の領域INDEXにロードさ
れ、常駐して参照される。識別情報は2バイトで構成さ
れ、その辞書が何時の時点に使用されていた辞書でるか
を識別するデータである。索引がDISK上からINDEXにロ
ードされたとき値が設定される。 第4図はキーボードバッファKBBUFの構成を示した図
である。キーボードKBから入力されたキーデータは一旦
このKBBUFに蓄えられる。例えば、かな漢字変換のとき
は変換される条件が整うまで、読み列がこのKBBUFに蓄
積され、変換条件が整った段階で漢字に変換され、バッ
ファがクリアされる。 文字は例えばJIS C−6226コードを使用して1文字1
バイトで格納される。図中「/」は変換キーを意味し、
「/」までに格納されている読み列を漢字に変換すると
いう意味である。 第5図は本実施例で使用する主要なワーク変数の構成
を示した図である。MEMIDはメモリ識別情報であり、DIS
K上の辞書の索引がINDEXにロードされた時点で、辞書中
の識別情報と同一の値をもつように設定される。 COUNTはシステムカウンタであり、システムの時点の
状態を記憶する変数である。通常の場合、辞書索引ロー
ド時にこのシステムカウンタの値が識別情報として採用
される。 FDOUTは外部記憶脱着フラグであり、辞書索引ロード
時に0にリセットされ、外部記憶DISKが取り出されたと
きに1がセットされる。 上述の実施例の動作をフローチャートに従って説明す
る。 第6図はシステムに電源が投入されたときの動作を示
すフローチャートである。 ステップ6−1においてIPL(イニシャル・プログラ
ム・ロード)が行われ、メモリチェック,システム変数
の初期化等が行なわれる。 ステップ6−2においては、辞書索引ロードの処理を
行う。この時点で文書の作成変数を行う基本条件の設定
が完了する。 ステップ6−3においては、実際の編集のために編集
処理が行われる。このステップは第8図に詳述される。 第7図は、ステップ6−2(第6図参照),ステップ
10−4(第10図参照)に表われる辞書索引ロードを詳細
に示したフローチャートである。 ステップ7−1においては、DISK上に存在する辞書デー
タの索引をRAM上のINDEXに読み込む。 ステップ7−1においては、DISK上に存在する辞書デ
ータの索引をRAM上のINDEXに読み込む。 ステップ7−2においては、DISKにライトプロテクト
がかけられているかどうかをチェックし、プロテクトが
かかっているときはステップ7−3に進み、かかってい
ないときはステップ7−4に進む。 ステップ7−3においては、DISK上の辞書の識別情報
の値をメモリ識別情報MEMIDに設定し、ステップ7−6
に進む。 ステップ7−4では、システムカウンタCOUNTの値をD
ISK上の辞書の識別情報に書き込む。 更にステップ7−5において、COUNTの値をメモリ識
別情報MEMIDに設定する。その後ステップ7−6に進
む。 ステップ7−6においては、辞書索引のロードが完了
しデータの設定を終了したので、外部記憶脱着フラグFD
OUTを0にクリアする。 第8図は、ステップ6−3の編集処理を詳細に示した
フローチャートである。 ステップ8−1Aは、第10図に詳述するようにキーボー
ドからのデータをKBBUFに取り込む処理である。KBBUF内
にもし変換キーのデータが含まれていたときは(ステッ
プ8−1B:Yes)、かな漢字変換を行うためにステップ8
−2に進む。そうでなければ通常の編集処理を行うため
にステップ8−5に進む。 ステップ8−2においては、辞書の交換が行われてい
るかどうを検出するために、第10図に詳述する辞書交換
チェックを行う。もし、交換が行われていれば、この処
理により辞書索引のロードが行われる。 ステップ8−3においては、かな漢字変換を行なうた
めにDISK上の辞書の必要なブロックをINDEX上の辞書索
引にしたがって求め、RAM上へのロードを行う。 ステップ8−4では、実際にかな漢字変換を行う。か
な漢字変換の技術そのものは公知であるので、ここでは
説明しない。 ステップ8−5ではカーソル移動,文字入力,文書保
存等の通常の文字処理を行う。その技術は公知であるの
で、説明は省略する。 第9図は、ステップ8−1(キー入力GET)を詳細に
説明したフローチャートである。 ステップ9−1において、キーボードにキー入力が溜
っているかどうかをセンスする。 ステップ9−2において、キーセンスの結果キー入力
が有ると判定されると、ステップ9−3に分岐し、キー
入力がなければステップ9−4に進む。 ステップ9−3においては、溜っているキーデータを
KBBUFに登録し、リターンする。 ステップ9−4において、システムカウンタCOUNTを
インクリメントする。この処理により、キー入力が行わ
れていないシステムが暇なときは、システムカウンタが
更にインクリメントされる。 ステップ9−5において外部記憶装置DISKが取り外さ
れているかどうかをセンスし、もし取り外されていれば
ステップ9−6に進む。取り外されていなければ、もう
一度ステップ9−1のキーセンスに戻る。 第10図は、ステップ8−2の辞書交換チェックを更に
詳細に示したフローチャートである。 ステップ10−1において外部記憶脱着フラグFDOUTが
1かどうかを比較することにより、DISKの脱着が行われ
たかどうかをチェックする。もし、脱着が行われている
ときは、ステップ10−2に進む。行われていないとき
は、そのままリターンする。 ステップ10−2において、識別情報の比較を行うため
にDISK上の辞書より識別情報を読み込む。 ステップ10−3において、DISK辞書より読み込まれた
識別情報とメモリ識別情報MEMIDの値を比較し、もし、
一致するときはそのままリターンする。一致しないとき
は辞書の交換が行われたと判断し、ステップ10−4に進
む。 ステップ10−4においては、第7図に説明済の辞書索
引ロードを行い、リターンする。 次に、その他の実施例について説明する。 以上の説明においては、識別情報としてシステム内部
でカウントしていくシステムカウンタの値を書き込む例
を示したが、そのようなものでなく、それぞれの装置で
固有の値、例えば製品番号あるいは各オペレータごとに
割り振られたユーザID等を書き込んでも同様の効果を得
ることができる。 あるいは、システム内部に時刻情報を持っているので
あれば、時刻情報を識別情報として書き込むということ
も可能である。 また、識別情報を書き込む領域は辞書内に設けられた
領域であったが、辞書とは全く無関係の場所であっても
DISK内の領域であれば同様に可能である。 更に、辞書を使用する処理としてかな漢字変換を行う
ことにしているが、他の処理、例えば単語登録等であっ
ても同様である。 〔発明の効果〕 以上説明したように、本発明によれば、辞書情報のロ
ードに伴って、外部記憶手段が書き込み可能か否かを判
定し、書き込み可能と判定された場合は、前記外部記憶
手段と内部記憶手段とに、前記辞書情報を識別するため
の同一の識別情報を書き込み設定し、書き込み不能と判
定された場合は、前記外部記憶手段から前記辞書情報を
識別するための識別情報を読み出して、読み出された当
該識別情報を前記内部記憶手段に書き込み設定するよう
にしておき、前記内部記憶手段に記憶された辞書情報の
参照に先立って、前記外部記憶手段に設定されている識
別情報を読み出して、該識別情報と前記内部記憶手段に
設定されている識別情報とを比較し、比較の結果、一致
する場合には、現在ロードされている辞書情報を参照
し、不一致の場合には、辞書情報のロードを実行して、
実行後の辞書情報を参照するようにしたので、外部記憶
手段がいったん外された場合でも、再度同じ外部記憶手
段が装着されていれば、無駄な辞書情報のロードが実行
されることを禁止できる。また、このような無駄なロー
ドにより、内部記憶手段にある有用な情報の喪失が防止
できる。 さらに、外部記憶手段が書き込み可能の場合、辞書情
報のロードに伴って、外部記憶手段と内部記憶手段に同
一の識別情報が設定されるので、この場合は、かかる識
別情報を、辞書情報のロードに先立って外部記憶手段に
用意する必要がない。一方、外部記憶手段が書き込み不
能の場合は、外部記憶手段から識別情報を読み出して、
読み出された識別情報を内部記憶手段に書き込み設定す
るようにしているので、書き込み不能の場合も対処でき
る。
Description: BACKGROUND OF THE INVENTION The present invention relates to a character processing apparatus capable of attaching and detaching dictionary data storage means, for example, by inputting characters such as kanji while performing kana-kanji conversion. The present invention relates to a character processing device for creating and editing a document such as a word document. [Prior Art] In a character processing apparatus of this type which has been conventionally known, it is common to input a kanji in accordance with a kana-kanji conversion process, and for that purpose, dictionary data is indispensable. Usually, the dictionary data has a very large capacity, and is widely stored in an external storage device such as a floppy disk (hereinafter referred to as FD). Since the access time of the external storage device is slower than that of the internal storage device such as the main storage device, when the FD dictionary data is stored, a part of the dictionary data such as an index is loaded into the main storage device. In addition, speeding up access has been performed. When such a method is adopted, when the FD is exchanged, there is a danger that the contents of the dictionary data on the FD and the dictionary data on the main storage device will be inconsistent. Therefore, it is necessary to check whether or not the exchange of the dictionary data has been performed. If the fact that the exchange has been performed is detected, the dictionary data on the main storage device is cleared, and the dictionary data is loaded again from the FD. Must be performed. Therefore, conventionally, when it is determined that the FD has been taken out, the dictionary data stored in the main storage device is cleared, and then the FD is
Is set, the dictionary data stored in the FD is loaded into the main storage device. [Problems to be Solved by the Invention] However, in the dictionary replacement check based on the attachment / detachment check of the FD, if the FD is taken out and then the taken out FD is loaded again, the dictionary is actually exchanged. Despite the absence, it was determined that the dictionary was exchanged, which resulted in the inconvenience of loading dictionary data wastefully. In order to avoid such inconveniences, when loading dictionary data into the main storage device, specific identification information is set in both the FD and the main storage device, and when attachment / detachment of the FD is detected, from the FD again. A dictionary exchange check method in which the identification information is read and compared with the identification information in the main storage device to determine whether or not the same FD has been reset, may be considered. However, in such a dictionary exchange check method, FD
Since the desired identification information cannot be written when the write protection process is performed on the FD, it is difficult to determine the identity when the FD is remounted. Furthermore, the method of always writing identification information to the FD as described above is inconvenient in cases where data cannot be written such as when inspecting a product for shipment or borrowing and referencing a dictionary of another person. Accordingly, an object of the present invention is to provide a character that can reliably determine whether or not an external storage device is attached / detached even when a write-protect process is performed on an external storage device in which dictionary data is stored, in view of the above points. An object of the present invention is to provide a processing device. [Means for Solving the Problems] To achieve the above object, a character processing apparatus according to the present invention includes an internal storage unit, a detachable external storage unit for storing dictionary information, and an external storage unit. Loading means for loading dictionary information stored in the internal storage means,
A determination unit that determines whether the external storage unit is writable with the loading of the dictionary information by the loading unit. If the determination unit determines that the external storage unit is writable, the external storage unit and the internal storage unit The same identification information for identifying the dictionary information is written and set in the storage means. If the determination means determines that the dictionary information cannot be written, the identification information for identifying the dictionary information from the external storage means is set. ID information setting means for reading and setting the read identification information in the internal storage means, and setting in the external storage means prior to reference to dictionary information stored in the internal storage means. Identification information comparing means for reading out the identification information and comparing the identification information with the identification information set in the internal storage means; If the result of the comparison is a match, the dictionary information stored in the internal storage means is referred to; if not, the dictionary information is loaded by the loading means, and after the loading is executed, the dictionary information is stored in the internal storage means. And control means for controlling so as to refer to the obtained dictionary information. [Operation] According to the above configuration of the present invention, even if the external storage unit is once removed, if the same external storage unit is mounted again, it is possible to prohibit execution of useless loading of dictionary information. Further, loss of useful information in the internal storage means can be prevented by such useless loading. Further, when the external storage means is writable, the same identification information is set in the external storage means and the internal storage means with the loading of the dictionary information. In this case, the identification information is loaded into the dictionary information. It is not necessary to prepare the external storage means prior to the operation. On the other hand, when the external storage means is not writable, the identification information is read from the external storage means,
Since the read identification information is written and set in the internal storage means, it is possible to cope with a case where writing is impossible. EXAMPLES Hereinafter, the present invention will be described in detail based on examples. FIG. 1 is a block diagram showing one embodiment of the present invention.
In this embodiment, the removable external storage means A for storing dictionary data, the non-removable internal storage means B for storing dictionary data, and the dictionary data stored in the external storage means A are stored in the internal storage means B. , A character processing means D for processing input character data with reference to the loaded dictionary data, and a write protection detecting means E for detecting that the external storage means A is write protected. A first identification information setting means F for setting corresponding identification information in both the external storage means A and the internal storage means B when the write protection detection means E determines that write protection has not been applied when loading dictionary data. When it is determined that the write protection is applied, the identification information stored in the external storage means A is The second identification information setting indicating means G for setting the corresponding identification information in the internal storage means B, the detachment detection means H for detecting whether the external storage means A has been removed, and the external storage means A An identification information comparison means for comparing the stored identification information with the identification information stored in the internal storage means, and the identification information when the detachment of the external storage means is detected by the detachment detection means. Activate the comparison means I and determine whether the external storage means A has really been replaced. FIG. 2 is a block diagram showing the above embodiment more specifically. In the configuration shown in the figure, the CPU is a microprocessor, which performs operations for character processing, logical judgment, and the like, and performs address bus AB, control bus CB, and data bus DB.
It controls each component connected to those buses. The address bus AB transfers an address signal indicating a component to be controlled by the microprocessor CPU.
The control bus CB transfers and applies a control signal of each component to be controlled by the microprocessor CPU. The data bus DB transfers data between the constituent devices. ROM is a read-only fixed memory, and is shown in FIGS.
A procedure of control by a microprocessor CPU, which will be described later with reference to the drawing, is stored. The RAM is a writable random access memory having a configuration of 16 bits per word, and is used for temporarily storing various data from each component. This RAM includes the following areas. INDEX is an index of dictionary data, and the external storage device DISK
This area stores only the index part of the dictionary data above. KBBUF is a keyboard buffer area for storing input readings. MEMID is an identification information area stored in RAM for checking exchange of the dictionary. COUNT is a system counter area that is constantly updated internally. FDOUT is an external storage detachment flag area indicating whether the external storage DISK has been detached. KB is a keyboard and includes various function keys such as alphabet keys, hiragana keys, and katakana keys, and various function keys for instructing various functions to the character processing apparatus, such as conversion keys. DISK is an external storage device for storing document data and dictionary data. The DISK stores created documents, and the stored documents are called up when necessary according to keyboard instructions. The dictionary data is stored in the dictionary index I resident on the RAM.
According to NDEX, only the necessary parts are loaded into RAM each time and referenced. CR is a cursor register. The CPU reads and writes the contents of the cursor register. A CRT controller CRTC described later displays a cursor at a position on the display device CRT corresponding to the address stored here. DBUF is a display buffer memory for storing a pattern of data to be displayed. CRTC is cursor register CR and display buffer memory
It plays the role of displaying the contents stored in DBUF on the display CRT. The CRT has display device data using a cathode ray tube or the like, and the display pattern of a dot configuration and the display of a cursor on the display device CRT are controlled by a CRT controller CRTC. CG is a character generator and a display device CRT
The pattern of the character and the symbol displayed in is stored. A character processing device including such components is a keyboard.
It operates according to various inputs from KB. When an input is made from the keyboard KB, first, an interrupt signal is sent to the microprocessor CPU, which reads various control signals stored in the ROM, and performs various controls according to the control signals. Will be FIG. 3 is a diagram for explaining a storage format of dictionary data existing on a disk. The entire dictionary data contains identification information, indexes,
The dictionary consists of three parts. The dictionary body is divided into 200 blocks (each block is composed of 1024 bytes) according to the reading of each word. For example, when performing Kana-Kanji conversion, the necessary blocks are actually loaded on the memory and referenced. The index is a list of readings of words at the head of each block of the dictionary main body, and is data indicating in which block of the dictionary main body a word of a certain reading actually exists. The index is loaded into the memory area INDEX immediately after the system IPL, and is resident and referenced. The identification information is composed of 2 bytes, and is data for identifying at what point in time the dictionary is being used. The value is set when the index is loaded into INDEX from DISK. FIG. 4 is a diagram showing the configuration of the keyboard buffer KBBUF. Key data input from the keyboard KB is temporarily stored in this KBBUF. For example, in the case of Kana-Kanji conversion, the reading sequence is accumulated in this KBBUF until the conditions for conversion are satisfied, and converted into Kanji when the conversion conditions are satisfied, and the buffer is cleared. Character is one character using JIS C-6226 code, for example.
Stored in bytes. In the figure, "/" means a conversion key,
This means that the reading sequence stored up to “/” is converted to kanji. FIG. 5 is a diagram showing the configuration of main work variables used in this embodiment. MEMID is memory identification information and DIS
When the index of the dictionary on K is loaded into INDEX, it is set to have the same value as the identification information in the dictionary. COUNT is a system counter, and is a variable that stores the state at the time of the system. Normally, the value of this system counter is adopted as identification information when the dictionary index is loaded. FDOUT is an external storage detachment flag, which is reset to 0 when the dictionary index is loaded, and is set to 1 when the external storage DISK is taken out. The operation of the above embodiment will be described with reference to a flowchart. FIG. 6 is a flowchart showing the operation when the power is turned on to the system. In step 6-1, an IPL (initial program load) is performed, and a memory check, initialization of system variables, and the like are performed. In step 6-2, a dictionary index loading process is performed. At this point, the setting of the basic conditions for performing the document creation variables is completed. In step 6-3, editing processing is performed for actual editing. This step is detailed in FIG. FIG. 7 shows step 6-2 (see FIG. 6), step
10 is a flowchart showing in detail a dictionary index load shown in 10-4 (see FIG. 10). In step 7-1, the index of the dictionary data existing on the disk is read into INDEX on the RAM. In step 7-1, the index of the dictionary data existing on the disk is read into INDEX on the RAM. In step 7-2, it is checked whether the disk is write-protected. If the disk is protected, the process proceeds to step 7-3. If not, the process proceeds to step 7-4. In step 7-3, the value of the identification information of the dictionary on the DISK is set in the memory identification information MEMID, and in step 7-6.
Proceed to. In step 7-4, the value of the system counter COUNT is set to D
Write to the identification information of the dictionary on ISK. Further, in step 7-5, the value of COUNT is set in the memory identification information MEMID. Thereafter, the process proceeds to step 7-6. In step 7-6, the loading of the dictionary index has been completed and the data setting has been completed.
Clear OUT to 0. FIG. 8 is a flowchart showing in detail the editing process in step 6-3. Step 8-1 A is a process for taking in data from the keyboard into the KBBUF as described in detail in FIG. If the conversion key data is included in KBBUF (step 8-1B: Yes), step 8 is performed to perform kana-kanji conversion.
Go to -2. Otherwise, the process proceeds to step 8-5 to perform normal editing processing. In step 8-2, a dictionary exchange check detailed in FIG. 10 is performed in order to detect whether or not the dictionary exchange has been performed. If the exchange has been performed, the dictionary index is loaded by this processing. In step 8-3, a necessary block of the dictionary on the DISK for performing the kana-kanji conversion is obtained according to the dictionary index on the INDEX, and loaded into the RAM. In step 8-4, kana-kanji conversion is actually performed. Since the kana-kanji conversion technique itself is known, it will not be described here. In step 8-5, normal character processing such as cursor movement, character input, and document storage is performed. Since the technique is well known, the description is omitted. FIG. 9 is a flowchart for explaining step 8-1 (key input GET) in detail. At step 9-1, it is sensed whether key input is accumulated on the keyboard. If it is determined in step 9-2 that there is a key input as a result of key sensing, the process branches to step 9-3, and if there is no key input, the process proceeds to step 9-4. In step 9-3, the stored key data is
Register in KBBUF and return. In step 9-4, the system counter COUNT is incremented. By this processing, when the system in which no key input is performed is idle, the system counter is further incremented. In step 9-5, it is sensed whether the external storage device DISK has been removed, and if it has been removed, the process proceeds to step 9-6. If it has not been removed, the process returns to the key sense of step 9-1 again. FIG. 10 is a flowchart showing the dictionary exchange check in step 8-2 in more detail. In step 10-1, it is checked whether or not the disk has been detached by comparing whether or not the external storage / removal flag FDOUT is 1. If the attachment / detachment has been performed, the process proceeds to step 10-2. If not, the process returns. In step 10-2, identification information is read from the dictionary on the disk in order to compare the identification information. In step 10-3, the identification information read from the DISK dictionary is compared with the value of the memory identification information MEMID.
If they match, return as is. When they do not match, it is determined that the exchange of the dictionary has been performed, and the process proceeds to step 10-4. In step 10-4, the dictionary index loading described in FIG. 7 is performed, and the routine returns. Next, other embodiments will be described. In the above description, an example of writing the value of the system counter that counts inside the system as identification information has been described. However, this is not the case, and a value unique to each device, for example, a product number or each operator. The same effect can be obtained by writing the user ID or the like assigned to the. Alternatively, if the system has time information, the time information can be written as identification information. Although the area for writing identification information is an area provided in the dictionary, even if the area is completely unrelated to the dictionary,
The same is possible for an area within DISK. Furthermore, kana-kanji conversion is performed as processing using a dictionary, but the same applies to other processing, such as word registration. [Effects of the Invention] As described above, according to the present invention, it is determined whether or not the external storage means is writable in accordance with the loading of the dictionary information. The same identification information for identifying the dictionary information is written and set in the means and the internal storage means, and when it is determined that writing is not possible, the identification information for identifying the dictionary information is determined from the external storage means. The identification information read out is written and set in the internal storage means, and the identification information set in the external storage means is set prior to referring to the dictionary information stored in the internal storage means. The information is read and the identification information is compared with the identification information set in the internal storage means. If the comparison results in a match, the currently loaded dictionary information is referred to, and If there is a match, load the dictionary information and
Since the dictionary information after execution is referred to, even if the external storage unit is once removed, if the same external storage unit is mounted again, it is possible to prohibit the unnecessary loading of the dictionary information from being executed. . Further, loss of useful information in the internal storage means can be prevented by such useless loading. Further, when the external storage means is writable, the same identification information is set in the external storage means and the internal storage means with the loading of the dictionary information. In this case, the identification information is loaded into the dictionary information. It is not necessary to prepare the external storage means prior to the operation. On the other hand, when the external storage means is not writable, the identification information is read from the external storage means,
Since the read identification information is written and set in the internal storage means, it is possible to cope with a case where writing is impossible.

【図面の簡単な説明】 第1図は本発明の一実施例を示すブロック図、 第2図は本実施例をより具体的に示したブロック図、 第3図はDISK上の辞書の構成を示した図、 第4図はキーボードバッファの構成を示した図、 第5図はその他のワーク変数の構成を示した図、 第6図〜第10図はそれぞれ第2図に示した文字処理装置
の動作を示すフローチャートである。 DISK…外部記憶装置、CPU…マイクロプロセッサ、ROM…
読出し専用メモリ、RAM…ランダムアクセスメモリ、IND
EX…メモリ上の辞書索引、KBBUF…キーボードバッフ
ァ、MEMID…メモリ識別情報、COUNT…システムカウン
タ、FDOUT…外部記憶脱着フラグ。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a block diagram showing this embodiment more specifically, and FIG. FIG. 4, FIG. 4 shows a configuration of a keyboard buffer, FIG. 5 shows a configuration of other work variables, and FIGS. 6 to 10 each show a character processing device shown in FIG. 6 is a flowchart showing the operation of the first embodiment. DISK… External storage device, CPU… Microprocessor, ROM…
Read only memory, RAM… Random access memory, IND
EX: Dictionary index on memory, KBBUF: Keyboard buffer, MEMID: Memory identification information, COUNT: System counter, FDOUT: External storage removable flag.

Claims (1)

(57)【特許請求の範囲】 1.内部記憶手段と、 辞書情報を記憶する着脱自在な外部記憶手段と、 該外部記憶手段に記憶されている辞書情報を前記内部記
憶手段にロードするロード手段と、 該ロード手段による前記辞書情報のロードに伴って、前
記外部記憶手段が書き込み可能か否かを判定する判定手
段と、 該判定手段により書き込み可能と判定された場合は、前
記外部記憶手段と前記内部記憶手段とに、前記辞書情報
を識別するための同一の識別情報を書き込み設定し、前
記判定手段により書き込み不能と判定された場合は、前
記外部記憶手段から前記辞書情報を識別するための識別
情報を読み出して、読み出された当該識別情報を前記内
部記憶手段に書き込み設定する識別情報設定手段と、 前記内部記憶手段に記憶された辞書情報の参照に先立っ
て、前記外部記憶手段に設定されている識別情報を読み
出して、該識別情報と前記内部記憶手段に設定されてい
る識別情報とを比較する識別情報比較手段と、 該識別情報比較手段による比較の結果、一致する場合
は、前記内部記憶手段に記憶された辞書情報を参照し、
不一致の場合は、前記ロード手段による辞書情報のロー
ドを実行し、ロード実行後に前記内部記憶手段に記憶さ
れた辞書情報を参照するように制御する制御手段と を具えたことを特徴とする文字処理装置。
(57) [Claims] Internal storage means; detachable external storage means for storing dictionary information; loading means for loading dictionary information stored in the external storage means into the internal storage means; loading of the dictionary information by the loading means Along with, determining means for determining whether or not the external storage means is writable, and if the determining means determines that writing is possible, the dictionary information is stored in the external storage means and the internal storage means. The same identification information for identification is written and set, and when it is determined that the writing is not possible by the determination means, the identification information for identifying the dictionary information is read from the external storage means, and the read information is read. Identification information setting means for writing and setting identification information in the internal storage means; and referring to the external storage prior to referring to dictionary information stored in the internal storage means. An identification information comparison unit that reads the identification information set in the column and compares the identification information with the identification information set in the internal storage unit; and when the comparison result by the identification information comparison unit matches, Refers to the dictionary information stored in the internal storage means,
A character processing unit for performing a load of the dictionary information by the loading means if the data does not match, and controlling the reference to the dictionary information stored in the internal storage means after the loading is performed. apparatus.
JP62261615A 1987-10-19 1987-10-19 Character processor Expired - Lifetime JP2728408B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62261615A JP2728408B2 (en) 1987-10-19 1987-10-19 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62261615A JP2728408B2 (en) 1987-10-19 1987-10-19 Character processor

Publications (2)

Publication Number Publication Date
JPH01106166A JPH01106166A (en) 1989-04-24
JP2728408B2 true JP2728408B2 (en) 1998-03-18

Family

ID=17364364

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62261615A Expired - Lifetime JP2728408B2 (en) 1987-10-19 1987-10-19 Character processor

Country Status (1)

Country Link
JP (1) JP2728408B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5456144A (en) * 1994-01-11 1995-10-10 Petersen Manufacturing Locking pliers with axial clamping action

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5826572A (en) * 1981-08-10 1983-02-17 Mitsubishi Electric Corp Controlling device
JPS61168060A (en) * 1985-01-20 1986-07-29 Ricoh Co Ltd Data processor
JPS6277660A (en) * 1985-09-30 1987-04-09 Yokogawa Electric Corp Arithmetic device
JPS6283788A (en) * 1985-10-08 1987-04-17 アルプス電気株式会社 Start control system for character proofreader
JPS62107353A (en) * 1985-11-05 1987-05-18 Toshiba Corp Write protecting system for floppy disk

Also Published As

Publication number Publication date
JPH01106166A (en) 1989-04-24

Similar Documents

Publication Publication Date Title
US5115508A (en) Password system utilizing two password types, the first being changeable after entry, the second being unchangeable until power is removed
US8612708B2 (en) Hardware data protection device
JP2728408B2 (en) Character processor
US4805136A (en) Program protection in a programmable electronic calculator
JPH07248755A (en) Character display method
JP2904488B2 (en) Character processor
JP2849088B2 (en) Character processor
JPH01106167A (en) Character processor
JPS5998362A (en) Discriminating device of memory cassette
JPH0522933B2 (en)
JPS59177635A (en) Kanji pattern managing system
JP3480957B2 (en) Memory programming equipment
JPH0479024B2 (en)
US5404434A (en) Document processor having identification display control means
JP2786260B2 (en) Kana-Kanji conversion device
JPH10240593A (en) Information processing system and its file managing method
JPH07152617A (en) Character processor
JPH05158680A (en) Rom rewrite processing system
JP2625972B2 (en) Information processing device
JP3236039B2 (en) Character processing apparatus and method
JPH06282463A (en) Memory control method for program test
JP2842110B2 (en) Printer device character pattern storage method
JPH0327468A (en) Document processor
JPS6348593A (en) Character processor
JPH04259006A (en) Address display method using pcm

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term