JPH0449425A - Document processor - Google Patents

Document processor

Info

Publication number
JPH0449425A
JPH0449425A JP2160247A JP16024790A JPH0449425A JP H0449425 A JPH0449425 A JP H0449425A JP 2160247 A JP2160247 A JP 2160247A JP 16024790 A JP16024790 A JP 16024790A JP H0449425 A JPH0449425 A JP H0449425A
Authority
JP
Japan
Prior art keywords
processing
input
control
processing control
retrieving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2160247A
Other languages
Japanese (ja)
Other versions
JP2855798B2 (en
Inventor
Akihiko Niwa
明彦 丹羽
Shoji Sakuragi
桜木 章二
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2160247A priority Critical patent/JP2855798B2/en
Publication of JPH0449425A publication Critical patent/JPH0449425A/en
Application granted granted Critical
Publication of JP2855798B2 publication Critical patent/JP2855798B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To shorten the retrieving processing time of previously set specific retrieving processing control out of plural retrieving processing control by providing the document processor with a means for inhibiting I/O processing control to be executed by interrupting processing during the execution of the specific retrieving processing control. CONSTITUTION:While executing various retrieving processing control for retrieving stored information storing means or an input information storing means based upon various inputs from an input means, a control means controls the input means and an output means by interrupting processing based upon an input from the input means or a retrieved result. On the other hand, an interrupting processing inhibiting means completely inhibits I/O processing control to be executed by interrupting processing when the previously set specific retrieving processing control out of plural retrieving processing control is executed. Since the I/O processing control to be executed by interrupting processing is inhibited during the execution of the specific retrieving processing control, the retrieving processing time of the specific retrieving processing control can be shortened and the working efficiency of document processing can be improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は文書処理装置に関し、特に予め設定された特定
の検索処理制御の検索処理時間の短縮化を図るようにし
たものに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document processing device, and particularly to one that is designed to shorten the search processing time of a specific search processing control set in advance.

〔従来技術〕[Prior art]

一般に、キーボードや液晶デイスプレィや印字機構など
を備えるとともに、多数の単語のスペルデータを格納し
た固定辞書メモリを備えた欧文用のワードプロセッサや
電子タイプライタなとでは、種々の検索機能を備えたも
のが実用化されている。
In general, word processors and electronic typewriters for Roman languages are equipped with a keyboard, liquid crystal display, printing mechanism, etc., as well as a fixed dictionary memory that stores spelling data for many words, and some are equipped with various search functions. It has been put into practical use.

これらの検索機能として、例えばキーボードから人力し
た単語のスペルと固定辞書メモリやユーザー辞書メモリ
に格納したスペルデータと照合して入力単語のスペルを
チエツクするスペルチェック機能、ミススペル単語に関
連する正しいスペルの候補単語を検索する候補単語検索
機能、文書データ中の指定した特定の単語を他の単語に
入れ換える検索・置換機能、単語「tO」、「too」
、rtwo」のように発音が類似で混同し易い単語を文
書データ中に検出したときには、警告したりその類似の
単語を表示するワードアラート機能、文書中で「(」や
[〔」に対応する「)」や「]」をつけること或いは各
文章の先頭文字を大文字とすることなどのように文書作
成上の一般的ルールに違反しているときに警告するパン
クチユニージョン機能などが実用化されている。
These search functions include, for example, a spell check function that checks the spelling of words input manually from the keyboard against spelling data stored in the fixed dictionary memory or user dictionary memory, and a spell check function that checks the spelling of words entered manually from the keyboard and the spelling data stored in the fixed dictionary memory or user dictionary memory. Candidate word search function to search for candidate words, search/replace function to replace specified words in document data with other words, words "tO", "too"
, rtwo", when words with similar pronunciations that are easily confused are detected in the document data, a word alert function that warns you and displays the similar words, and a word alert function that responds to "(" and [[]) in the document. A punctuation union function has been implemented that warns when general rules for document creation are violated, such as adding ")" or "]" or capitalizing the first letter of each sentence. has been done.

ところで、前記種々の検索処理を実行中に、キーボード
やデイスプレィや印字機構などの周辺機器(入出力機器
)を制御する種々の入出力処理を周期的に割込みで実行
するために、制御装置のCPUには複数の内部タイマが
設けられ、またcPUに対して外部から外部割込みを指
令するための専用の発信素子が設けられ、内部タイマか
らの割込み信号により印字機構のキャリッジ駆動用ステ
ッピングモータやデイジ−ホイール駆動用ステンピング
モータなどを略所定微小時間毎に内部割込み処理で夫々
制御し、また外部の発信素子からの割込み指令信号によ
りキーボードのキースキャンや表示情報の表示制御を正
確な所定微小時間毎に外部割込み処理で夫々制御するよ
うになっている。
By the way, while executing the various search processes, the CPU of the control device periodically interrupts various input/output processes to control peripheral devices (input/output devices) such as keyboards, displays, and printing mechanisms. The CPU is equipped with a plurality of internal timers, and is also equipped with a dedicated transmitting element for commanding an external interrupt from the outside to the cPU.The interrupt signal from the internal timer is used to control the stepping motor for driving the carriage of the printing mechanism and the daisy chain. Stamping motors for driving wheels, etc. are controlled by internal interrupt processing approximately every predetermined minute time, and keyboard key scanning and display control of display information are controlled at precisely every predetermined minute time using interrupt command signals from external transmitting elements. Each of these is controlled by external interrupt processing.

この場合、検索処理実行中に割込み処理が入ると検索処
理が中断することになる。
In this case, if an interrupt process occurs during execution of the search process, the search process will be interrupted.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の欧文用のワードプロセッサや電子タイプライタな
どにおいては、検索処理の実行中に微小時間毎に割込み
処理が繰り返して実行されるので、特に検索処理時間が
長くなり易い候補単語検索処理などの実行中には、割込
み処理の回数が多くなり、その割込み処理に要する時間
だけ検索処理時間が大幅に長くなること、そのために文
書処理の作業能率が低下すること、などの問題がある。
In conventional word processors and electronic typewriters for Roman languages, interrupt processing is repeatedly executed at minute intervals during search processing, so it is especially difficult to perform interrupt processing during candidate word search processing, which tends to take a long time. However, there are problems in that the number of interrupt processing increases, the search processing time becomes significantly longer by the time required for the interrupt processing, and the efficiency of document processing decreases as a result.

本発明の目的は、予め設定した特定の検索処理制御の検
索処理時間を短縮し得るような文書処理装置を提供する
ことにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a document processing device that can shorten search processing time for specific search processing control set in advance.

〔課題を解決するための手段〕[Means to solve the problem]

本発明に係る文書処理装置は、第1図の機能ブロック図
に示すように、文字や記号のデータ及び種々の指令を入
力する為の入力手段と、出力媒体に文字や記号を出力す
る出力手段と、予め格納された多数の情報を分類して格
納している格納情報記憶手段と、入力手段で入力された
入力情報を記憶する入力情報記憶手段と、入力手段から
の入力に基いて、格納情報記憶手段又は入力情報記憶手
段を検索する種々の検索処理制御を実行しつつ、入力手
段からの入力又は検索処理の検索結果に基いて割込み処
理にて入力手段及び出力手段を制御する入出力処理制御
を実行する制御手段とを備えた文書処理装置において、
複数の検索処理制御のうち予め設定された特定の検索処
理制御の実行中には割込み処理で行なう入出力処理制御
を禁止する割込み処理禁止手段を設けたものである。
As shown in the functional block diagram of FIG. 1, the document processing device according to the present invention includes input means for inputting character and symbol data and various commands, and output means for outputting characters and symbols on an output medium. a storage information storage means for classifying and storing a large number of pre-stored information; an input information storage means for storing input information inputted by the input means; Input/output processing that controls input means and output means by interrupt processing based on input from input means or search results of search processing while executing various search processing controls for searching information storage means or input information storage means. In a document processing device equipped with a control means for executing control,
An interrupt processing inhibiting means is provided for inhibiting input/output processing control performed by interrupt processing during execution of a specific search processing control set in advance among a plurality of search processing controls.

〔作用〕[Effect]

本発明に係る文書処理装置においては、制御手段は、入
力手段からの種々の入力に基いて、格納情報記憶手段又
は入力情報記憶手段を検索する種々の検索処理制御を実
行しつつ、入力手段からの入力又は検索処理の検索結果
に基いて割込み処理にて入力手段及び出力手段を制御す
る入出力処理制御を実行する。
In the document processing device according to the present invention, the control means executes various search processing controls for searching the stored information storage means or the input information storage means based on various inputs from the input means. Input/output processing control for controlling input means and output means is executed in interrupt processing based on the input or the search result of the search processing.

一方、割込み処理禁止手段は、複数の検索処理制御のう
ち予め設定された特定の検索処理制御が実行されている
ときには、割込み処理で行なう入出力処理制御を一切禁
止する。
On the other hand, the interrupt processing prohibition means prohibits input/output processing control performed by interrupt processing at all when a preset specific search processing control among the plurality of search processing controls is being executed.

〔発明の効果〕〔Effect of the invention〕

本発明に係る文書処理装置によれば、割込み処理禁止手
段により特定の検索処理制御の実行中には割込み処理で
行なう入出力処理制御が禁止されるので、この特定の検
索処理制御の検索処理時間が大幅に短縮され、文書処理
の作業能率を大幅に向上させることができる。
According to the document processing device according to the present invention, the input/output processing control performed by interrupt processing is prohibited by the interrupt processing prohibition means while a specific search processing control is being executed, so that the search processing time of this specific search processing control is This greatly reduces the time required to process documents, and greatly improves the efficiency of document processing.

〔実施例〕〔Example〕

以下、本発明の実施例について図面に基いて説明する。 Embodiments of the present invention will be described below with reference to the drawings.

本実施例は電子タイプライタに本発明を適用した場合の
ものである。
This embodiment is a case where the present invention is applied to an electronic typewriter.

第2図に示すように、電子タイプライタ1の本体フレー
ム2の前部にはキーボード3が配設され、キーボード3
の後方で本体フレーム2内にはデイジ−ホイール式の印
字機構PMが配設されている。
As shown in FIG. 2, a keyboard 3 is disposed at the front of the main body frame 2 of the electronic typewriter 1.
A daisy-wheel type printing mechanism PM is disposed within the main body frame 2 at the rear of the main body frame 2.

また、この本体フレーム2には文字や記号からなる表示
情報を表示する液晶デイスプレィ10が配設されている
Further, a liquid crystal display 10 for displaying display information consisting of characters and symbols is disposed on the main body frame 2.

キーボード3には、アルファヘットキーと数字キーと記
号キーとを含む文字キー、スペースキーリターンキー、
デイスプレィ10上のカーソルを左右方向に夫々移動さ
せるためのカーソル移動キ、各種の機能キーなどが通常
のものと同様に設けられるとともに、スペルチェックモ
ードを設定或いは解除するためのスペルチェックモード
設定キー、ミススペル単語に関する候補単語を検索して
表示させるための候補単語表示キー、文書データ中の特
定の単語を他の単語に置換するためのサーチキーやリプ
レースキー、ワードアラート機能を作動させるためのワ
ードアラートキー、パンクチユニージョン機能を作動さ
せるためのパンクチユニージョンキーが設けられている
The keyboard 3 includes character keys including an alpha key, number keys, and symbol keys, a space key, a return key,
Cursor movement keys for moving the cursor on the display 10 in the left and right directions, various function keys, etc. are provided in the same way as normal ones, as well as a spell check mode setting key for setting or canceling the spell check mode, Candidate word display key to search and display candidate words related to misspelled words, search key and replace key to replace a specific word in document data with another word, word alert to activate the word alert function A puncture union key is provided for activating the puncture union function.

印字機構PMには、少なくとも、印字用紙を紙送りする
プラテン4とそれを駆動するステッピングモータ、プラ
テン4と平行なガイドに支持されたキャリッジ5とそれ
を左右方向へ往復駆動するステッピングモータ、ホイー
ルカセットに収容された活字ホイール6とそれを駆動す
るステッピングモータ、リボンカセット7に収納された
印字リボン8とそれを巻取るステッピングモータ、活字
活字ホイール6の活字を打撃するソレノイド9などが設
けられ、これらのステッピングモータやソレノイド9は
駆動回路14からの駆動信号で夫々駆動される。
The printing mechanism PM includes at least a platen 4 that feeds printing paper, a stepping motor that drives it, a carriage 5 that is supported by a guide parallel to the platen 4, a stepping motor that drives it back and forth in the left and right direction, and a wheel cassette. A type wheel 6 housed in the type wheel 6 and a stepping motor that drives it, a print ribbon 8 housed in a ribbon cassette 7 and a stepping motor that winds it, a solenoid 9 that hits the type on the type type wheel 6, etc. are provided. The stepping motor and solenoid 9 are each driven by a drive signal from a drive circuit 14.

次に、電子タイプライタ1の制御系は第3図のブロック
図に示すように構成されている。
Next, the control system of the electronic typewriter 1 is constructed as shown in the block diagram of FIG.

表示機構DMは、液晶デイスプレィ10と、このデイス
プレィ10に表示データを出力するための表示用RAM
及び文字や記号などの多数のドツトパターンを格納した
キャラクタジェネレータROMを含むデイスプレィコン
トローラ11とを備えた一般的な構成のものである。尚
、符号AMはブザー12とこのブザー12を鳴動させる
駆動回路13とを備えたアラーム機構である。
The display mechanism DM includes a liquid crystal display 10 and a display RAM for outputting display data to the display 10.
and a display controller 11 including a character generator ROM storing a large number of dot patterns such as characters and symbols. Incidentally, reference numeral AM designates an alarm mechanism that includes a buzzer 12 and a drive circuit 13 that causes the buzzer 12 to sound.

制御装置CはCPU17と、CPU17にデータバスな
どのバス16を介して接続された入出力インターフェイ
ス15、ROM1B・19及びRAM20とから構成さ
れている。
The control device C includes a CPU 17, an input/output interface 15 connected to the CPU 17 via a bus 16 such as a data bus, a ROM 1B/19, and a RAM 20.

ここで、前記CPU17には、印字機構PMの各ステッ
ピングモータを割込み処理で夫々制御するための内部タ
イマが必要数設けられている。更に、図示しないが制御
装置Cにはキーボード3のキースキャンや表示制御をイ
ンターバル割込み処理で夫々制御するインターバル割込
みを指令するインターバル割込み信号を入力するための
専用の発信素子が必要数設けられている。
Here, the CPU 17 is provided with a necessary number of internal timers for controlling each stepping motor of the printing mechanism PM by interrupt processing. Furthermore, although not shown, the control device C is provided with a necessary number of dedicated transmitting elements for inputting interval interrupt signals that command interval interrupts that control key scanning and display control of the keyboard 3 through interval interrupt processing. .

ROM1Bのプログラムメモリには、キーボード3から
入力されるコードデータに対応させて表示機構DM及び
印字機構PMを制御する制御プログラムやそのコードデ
ータを入力データバッファ21や人力単語メモリ24に
格納する制御プログラム、カーソル移動キーの操作に応
してカーソルを移動させるカーソル移動制御プログラム
、電源投入直後に印字機構PMなどを初期設定する初期
設定処理制御プログラム、スペルチェック/候補単語検
索制御プログラム、文書データ中の指定した特定の単語
を他の単語に入れ換える検索・置換制御プログラム、発
音が類似で混同し易い単語について警告するワードアラ
ート制御プログラム、文書作成上の一般的ルールに違反
しているときに警告するパンクチユニージョン制御プロ
グラム、インターバル割込み信号入力時に表示制御など
種々のインターバル割込み処理のための割込み処理制御
プログラムなどが格納されている。
The program memory of the ROM 1B includes a control program that controls the display mechanism DM and the printing mechanism PM in response to code data input from the keyboard 3, and a control program that stores the code data in the input data buffer 21 and the manual word memory 24. , a cursor movement control program that moves the cursor in response to the operation of a cursor movement key, an initial setting processing control program that initializes the printing mechanism PM, etc. immediately after power is turned on, a spell check/candidate word search control program, A search/replace control program that replaces a specified word with another word, a word alert control program that warns about words that have similar pronunciations and are easily confused, and a punctuation program that alerts you when general rules for document creation are violated. A union control program, an interrupt processing control program for various interval interrupt processing such as display control when an interval interrupt signal is input, and the like are stored.

前記スペルチェック/候補単語検索制御プログラムには
、入力単語についてスペルチェック処理を実行するため
のスペルチェック処理サブルーチンとミススペル単語の
候補単語を辞書メモリ19内で検索する候補単語検索処
理サブルーチンとが格納されている。
The spell check/candidate word search control program stores a spell check processing subroutine for executing spell check processing on input words and a candidate word search processing subroutine for searching the dictionary memory 19 for candidate words for misspelled words. ing.

ROM19の辞書メモリには、単語のスペルをチエツク
するために、例えば約70,000語の単語に関するス
ペルデータが通常の辞書と同様にアルファヘット順に格
納されている。
In the dictionary memory of the ROM 19, spelling data regarding approximately 70,000 words, for example, is stored in alphabetical order like a normal dictionary in order to check the spelling of words.

ここで、スペルチェック処理は周知の一般的なものなの
で簡単に説明すると、キーボード3から入力されて入力
単語メモリ24に格納された単語の単語データについて
ROM19の辞書メモリに格納した多数の単語データと
比較してスペルをチエツクするものである。
Here, the spell check process is a well-known and common process, so it will be briefly explained. The word data of the word input from the keyboard 3 and stored in the input word memory 24 is compared with a large number of word data stored in the dictionary memory of the ROM 19. It is used to check spelling by comparison.

候補単語検索処理は周知の一般的なものなので簡単に説
明すると、ミススペル単語の各文字をアルファベットの
各文字と入れ換えた単語が辞書メモリ19に存在するか
否かを順次繰り返して検索し、或いは同様の発音等でス
ペルを間違い易い規則に基いて文字列を入れ換える等し
て検索し、ミススペル単語に関連する正しいスペルの候
補単語を検索するものである。
Candidate word search processing is a well-known and general process, so to briefly explain it, it is a process of repeatedly searching the dictionary memory 19 to see if there is a word in which each letter of the misspelled word is replaced with each letter of the alphabet, or a similar process. This method searches for correctly spelled candidate words related to the misspelled word by transposing character strings based on rules that make misspellings easier.

ワードアラート処理について簡単に説明すると、単語「
to」、rtoo」、rtwoJのように発音が類似で
行動し易い単語を文書データ中に検出したときには、警
告したりその類似の単語を表示するものである。
A simple explanation of word alert processing is that the word "
When words that have similar pronunciations and are easy to act on, such as "to", "rtoo", and "rtwoJ", are detected in the document data, a warning is given and the similar words are displayed.

パンクチユニージョン処理について簡単に説明すると、
文書データ中に、「(」や「〔」に対応する「)」やF
〕jが存在しないとき、各文章の先頭文字が大文字でな
いとき、などのように文書作成上の一般的ルールに違反
しているときに警告するものである。
A brief explanation of puncture union processing is as follows.
In the document data, ")" or F that corresponds to "(" or "[")
] It warns when general rules for document creation are violated, such as when j does not exist, when the first letter of each sentence is not capitalized, etc.

RAM20の入力データバッファ21は約5印字行分の
メモリ容量を有し、これにはキーボード3から入力され
た複数の単語からなる文書データが格納される。
The input data buffer 21 of the RAM 20 has a memory capacity for approximately 5 print lines, and document data consisting of a plurality of words input from the keyboard 3 is stored therein.

ラインバッファ22には、キーボード3から入力され或
いはテキストメモリ23から読出されてデイスプレィ1
0に表示される文字などのデータが格納される。
The line buffer 22 receives input from the keyboard 3 or reads out from the text memory 23 and displays the display 1.
Data such as characters displayed in 0 is stored.

テキストメモリ23には、入力された文書データが格納
される。入力単語メモリ24には、最新の入力単語のデ
ータが格納される。
The text memory 23 stores input document data. The input word memory 24 stores the latest input word data.

候補単語メモリ25には、ミススペル単語について検索
された正しいスペルの候補単語のデータが格納される。
The candidate word memory 25 stores data on correctly spelled candidate words searched for misspelled words.

RAM20には、更にCPUI 7で演算した演算結果
を一時的に格納する各種メモリやカウンタなどが設けら
れている。
The RAM 20 is further provided with various memories, counters, etc. for temporarily storing the results of calculations performed by the CPU 7.

割込み指令メモリ26には、種々の割込み処理を実行さ
せるための割込み指令コードが格納される。
The interrupt command memory 26 stores interrupt command codes for executing various interrupt processes.

フラグメモリ27には、スペルチェックモード設定キー
の操作によりスペルチェックモードが設定されたときに
セット(データが「1」)され、解除されたときにリセ
ット(データが「0」)するスペルチェックモードフラ
グFのフラグデータが格納される。
The flag memory 27 has a spell check mode that is set (data is "1") when the spell check mode is set by operating the spell check mode setting key and reset (data is "0") when it is canceled. Flag data of flag F is stored.

次に、電子タイプライタ1の制御装置Cで行なわれる、
初期設定処理制御のルーチンについて第4図のフローチ
ャートに基いて、スペルチェック/候補単語検索制御の
ルーチンについて第5図のフローチャートに基いて、割
込み処理制御のルーチンについて第6図のフローチャー
トに基いて夫々説明する。尚、図中St (i=1.2
.3・・・)は各ステップである。
Next, the control device C of the electronic typewriter 1 performs the following steps.
The initial setting processing control routine is based on the flowchart in Figure 4, the spell check/candidate word search control routine is based on the flowchart in Figure 5, and the interrupt processing control routine is based on the flowchart in Figure 6. explain. In addition, St (i=1.2
.. 3...) are each step.

先ず、初期設定処理制御について説明すると、タイプラ
イタ1に電源が投入されてこの制御が開始され、先ず入
出力インターフェイス15の各出力ポートや表示機構D
Mのデイスプレィコントローラ11及びRAM20など
のハードウェアの初期設定が実行され(SL)、メイン
プログラムの起動や割込み処理に関する初期設定が実行
され(S2)、印字機構PMの初期設定制御を内部割込
みにより実行させるために、割込みを掛ける時間(例え
ば、約1m5ec)を内部タイマにセットする(S3)
。このとき、この内部タイマのカウントが開始される。
First, to explain the initial setting processing control, this control is started when the typewriter 1 is powered on, and first, each output port of the input/output interface 15 and the display mechanism D
Initial settings for hardware such as the display controller 11 and RAM 20 of M are executed (SL), initial settings for starting the main program and interrupt handling are executed (S2), and initial setting control for the printing mechanism PM is performed by internal interrupts. To execute, set the interrupt time (for example, about 1m5ec) to the internal timer (S3)
. At this time, this internal timer starts counting.

次に、印字機構PMの初期設定制御を割込み処理により
実行させるために、割込み指令メモリ26に初期設定指
令コードが格納され(S4)、割込みイネーブル命令E
lにより内部の割込みイネーブル・フリップ・フロップ
をセットすることにより割込みの受付けが許可され(S
5)、印字機構PMの初期設定制御が実行される(S6
)。そして、印字機構PMの初期設定処理が終了したと
き(S7:Yes)、このとき以降において、種々の内
部割込みやインターバル割込みの受付けが可能になる。
Next, in order to execute initial setting control of the printing mechanism PM by interrupt processing, an initial setting command code is stored in the interrupt command memory 26 (S4), and an interrupt enable command E is stored.
Interrupt acceptance is enabled by setting the internal interrupt enable flip-flop (S
5), initial setting control of the printing mechanism PM is executed (S6
). When the initial setting process of the printing mechanism PM is completed (S7: Yes), various internal interrupts and interval interrupts can be accepted from then on.

ここで、例えば、印字機構PMのステッピングモータが
所定時間毎に1駆動パルスずつ制御される内部割込み処
理制御について説明する。
Here, for example, internal interrupt processing control in which the stepping motor of the printing mechanism PM is controlled by one drive pulse every predetermined time will be described.

この割込み処理が開始されると、CPU17のレジスタ
がスタックに退避させられ(S41)、ステッピングモ
ータに供給する駆動パルスの残りのカウント値が「0」
のときつまり新規の割込み処理のときには(S42:N
o)、割込み指令メモリ26に格納されている指令コー
ドが検索され、指令コードが格納されているときには(
S43:Ye s)  指令コードに応じた処理つまり
キャリッジ駆動用ステッピングモータやプラテン駆動用
ステッピングモータが1駆動パルスだけ駆動される(S
44)。但し、S43において、割込み指令メモリ26
の指令コードが割込み処理ルーチンにより検索されると
、その指令コードは消去される。
When this interrupt processing is started, the register of the CPU 17 is saved to the stack (S41), and the remaining count value of the drive pulses supplied to the stepping motor becomes "0".
In other words, when processing a new interrupt (S42:N
o) The command code stored in the interrupt command memory 26 is searched, and when the command code is stored (
S43: Yes s) Processing according to the command code, that is, the stepping motor for driving the carriage and the stepping motor for driving the platen are driven by one drive pulse (S
44). However, in S43, the interrupt command memory 26
When the command code is retrieved by the interrupt handling routine, that command code is erased.

次に、前記残りのカウント値が「0」でなく駆動処理が
終了していないときには(S45:No)、次の割込み
処理を実行するための時間が内部タイマにセットされ(
846)、スタックに退避させていたレジスタの内容を
レジスタに戻して割込み処理を終了して(S47)、R
TI命令により中断されたメインルーチンの処理が続行
される。そして、S46でセットした時間が経過する毎
に割込み処理つまりS41〜S42:Yes、S44、
S45 :No、S46〜S47が実行される。
Next, if the remaining count value is not "0" and the driving process is not completed (S45: No), the time for executing the next interrupt process is set in the internal timer (
846), returns the contents of the register that had been saved to the stack to the register, ends the interrupt processing (S47), and
The main routine processing interrupted by the TI instruction continues. Then, each time the time set in S46 elapses, interrupt processing is performed, that is, S41 to S42: Yes, S44,
S45: No, S46 to S47 are executed.

一方、344を実行中に駆動処理が終了したときには(
S45:Yes)、次に指令コードを検索するための時
間が内部タイマにセットされ(84B)、S47を経て
RTI命令により中断されたメインルーチンの処理が続
行される。
On the other hand, when the drive process ends while executing 344 (
(S45: Yes), then a time for searching the command code is set in the internal timer (84B), and the main routine processing interrupted by the RTI command is continued through S47.

ところで、文字キーが操作されたときには(S8:Ye
s、S9・SIO:No)、文字キーに対応する文字コ
ードが入力データバッファ21や入力単語メモリ24に
格納される。そして、スペースキーやリターンキーなど
の単語の区切りキーが操作され(S8 ・S9 :Ye
s)、フラグFがセットされているとき(Sll:Ye
s)、或いは候補単語表示キーが操作されたときには(
S8・SIO:Yes)、スペルチェック/候補単語検
索処理制御が実行される(S12)。
By the way, when a character key is operated (S8: Ye
s, S9・SIO: No), the character code corresponding to the character key is stored in the input data buffer 21 and input word memory 24. Then, word separator keys such as the space key and return key are operated (S8/S9: Ye
s), when flag F is set (Sll:Ye
s), or when the candidate word display key is operated (
S8/SIO: Yes), spell check/candidate word search processing control is executed (S12).

この処理制御が開始されると、入力単語メモリ24に格
納されている入力単語のデータが読出され(S21)、
その入力単語データについて辞書メモリ19に格納され
たスペルデータが検索され(S22)、入力単語と同一
の単語が存在せずミススペルのときには(323:Ye
s)、ブザー12の鳴動によりミススペルが警告され(
S24)、印字機構PMのステッピングモータの夫々に
供給する駆動パルスの残りのカウント値に基いて一連の
割込み処理が実行中のときには(S25:Yes)、そ
のカウント値が「0」になるまでつまり一連の割込み処
理が終了するまでS25が繰り返される。
When this process control is started, the input word data stored in the input word memory 24 is read out (S21),
The spelling data stored in the dictionary memory 19 is searched for the input word data (S22), and if the same word as the input word does not exist and there is a misspelling (323: Ye
s), the buzzer 12 sounds to warn you of the misspelling (
S24), when a series of interrupt processing is being executed based on the remaining count value of the drive pulses supplied to each of the stepping motors of the printing mechanism PM (S25: Yes), the interrupt processing is stopped until the count value reaches "0". S25 is repeated until the series of interrupt processing is completed.

カウント値が「0」になり割込み処理が終了したときに
は(S25:No)、割込みイネーブル命令DIにより
内部の割込みイネーブル・フリップ・フロップをリセッ
トすることにより割込みの受イ」けが禁止される(S2
6)。つまり、この時点からS30又は332で割込み
が許可されるまで、前述した内部割込み処理やインター
バル割込み処理が一切禁止される。
When the count value becomes "0" and the interrupt processing is completed (S25: No), the internal interrupt enable flip-flop is reset by the interrupt enable instruction DI, thereby disabling the reception of interrupts (S2
6). That is, from this point on until interrupts are permitted in S30 or 332, the above-described internal interrupt processing and interval interrupt processing are completely prohibited.

次に、入力単語メモリ24に格納されているミススペル
単語に関連する候補単語が辞書メモリ19内で検索され
(S27)、候補単語が検出されたときには(328:
Yes)、全ての・候補単語が候補単語メモリ25に格
納される(S29)。
Next, the dictionary memory 19 is searched for a candidate word related to the misspelled word stored in the input word memory 24 (S27), and when a candidate word is detected (328:
Yes), all candidate words are stored in the candidate word memory 25 (S29).

そして、割込みイネーブル命令Elにより割込みの受付
けが許可され(S30)、候補単語メモリ25に格納さ
れている全ての候補単語がデイスプレィ10に表示され
(S31)、メインルーチンにリターンする。一方、入
力単語のスペルが正しいときには(S23:No)、直
ちにメインルーチンにリターンし、また候補単語が検出
されなかったときには(328:No)、S30と同様
に割込みイネーブル命令Elにより割込みの受付けが許
可され(332)、ブザー12で警告した後(S33)
、メインルーチンにリターンする。
Then, acceptance of an interrupt is permitted by the interrupt enable command El (S30), all candidate words stored in the candidate word memory 25 are displayed on the display 10 (S31), and the process returns to the main routine. On the other hand, if the spelling of the input word is correct (S23: No), the process immediately returns to the main routine, and if no candidate word is detected (328: No), the interrupt is accepted by the interrupt enable command El as in S30. After being permitted (332) and warning with buzzer 12 (S33)
, return to the main routine.

更に、サーチキーやリプレースキー、ソードアラードキ
ー、パンクチユニージョンキーなどのキーが操作された
ときには(S8 : Ye s、S9・SIO:No)
、操作された機能キーに対応する検索・置換処理やワー
ドアラート処理やパンクチユニージョン処理が夫々実行
される(S13)。
Furthermore, when keys such as the search key, replace key, sword alert key, puncture union key, etc. are operated (S8: Yes, S9/SIO: No)
, a search/replace process, a word alert process, and a puncture union process corresponding to the operated function key are executed (S13).

以上説明したように、候補単語検索処理制御の実行中に
は割込み処理制御が一切禁止されるので、この候補単語
検索処理制御に要する検索処理時間を割込み処理制御に
費やす余分な処理時間を含まない本来の検索処理時間に
まで大幅に短縮することができる。
As explained above, since any interrupt processing control is prohibited while candidate word search processing control is being executed, the search processing time required for candidate word search processing control does not include the extra processing time spent on interrupt processing control. The original search processing time can be significantly reduced.

尚、スペルチェック処理制御やワードアラート処理制御
やパンクチユニージョン処理制御などを実行中に割込み
処理を禁止するようにしてもよく、固定辞書メモリやユ
ーザー辞書メモリを備え種々の検索処理制御が可能な欧
文用ワードプロセッサや日本語用ワードプロセッサなど
の文書処理装置に本発明を適用し得ることは勿論である
Note that interrupt processing may be prohibited while spell check processing control, word alert processing control, punctuation union processing control, etc. are being executed, and various search processing controls are possible with fixed dictionary memory and user dictionary memory. Of course, the present invention can be applied to document processing devices such as word processors for Roman languages and word processors for Japanese.

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

第1図は本発明の構成を示す機能ブロック図、第2図〜
第6図は本発明の実施例を示すもので、第2図は電子タ
イプライタの斜視図、第3図は電子タイプライタの制御
系のブロック図、第4図は初期設定処理制御のルーチン
の概略フローチャート、第5図はスペルチェック/候補
単語検索処理制御のルーチンの概略フローチャート、第
6図は割込み処理制御のルーチンのフローチャートであ
る。 1・・電子タイプライタ、  3・・キーボード、10
・・液晶デイスプレィ、  17・・CPU、18・・
ROM (プログラムメモリ)、  19・・ROM 
(辞書メモリ)、 20・・RAM。 C・・制御装置、 DM・・表示機構、 PM・・印字
機構。
Figure 1 is a functional block diagram showing the configuration of the present invention, Figures 2-
Fig. 6 shows an embodiment of the present invention, Fig. 2 is a perspective view of an electronic typewriter, Fig. 3 is a block diagram of the control system of the electronic typewriter, and Fig. 4 is a routine for controlling initialization processing. FIG. 5 is a schematic flowchart of a spell check/candidate word search processing control routine, and FIG. 6 is a flowchart of an interrupt processing control routine. 1...Electronic typewriter, 3...Keyboard, 10
・・Liquid crystal display, 17・・CPU, 18・・
ROM (program memory), 19...ROM
(Dictionary memory), 20...RAM. C: Control device, DM: Display mechanism, PM: Printing mechanism.

Claims (1)

【特許請求の範囲】[Claims] (1)文字や記号のデータ及び種々の指令を入力する為
の入力手段と、出力媒体に文字や記号を出力する出力手
段と、予め格納された多数の情報を分類して格納してい
る格納情報記憶手段と、入力手段で入力された入力情報
を記憶する入力情報記憶手段と、入力手段からの入力に
基いて、格納情報記憶手段又は入力情報記憶手段を検索
する種々の検索処理制御を実行しつつ、入力手段からの
入力又は検索処理の検索結果に基いて割込み処理にて入
力手段及び出力手段を制御する入出力処理制御を実行す
る制御手段とを備えた文書処理装置において、 前記複数の検索処理制御のうち予め設定された特定の検
索処理制御の実行中には割込み処理で行なう入出力処理
制御を禁止する割込み処理禁止手段を設けたことを特徴
とする文書処理装置。
(1) Input means for inputting character and symbol data and various commands, output means for outputting characters and symbols on an output medium, and storage for classifying and storing a large amount of pre-stored information An information storage means, an input information storage means for storing input information inputted by the input means, and various search processing controls for searching the stored information storage means or the input information storage means based on the input from the input means. and a control means for executing input/output processing control for controlling the input means and the output means in interrupt processing based on the input from the input means or the search result of the search processing, A document processing apparatus comprising an interrupt processing prohibition means for prohibiting input/output processing control performed by interrupt processing during execution of a specific search processing control set in advance among the search processing controls.
JP2160247A 1990-06-19 1990-06-19 Document processing device Expired - Fee Related JP2855798B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2160247A JP2855798B2 (en) 1990-06-19 1990-06-19 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2160247A JP2855798B2 (en) 1990-06-19 1990-06-19 Document processing device

Publications (2)

Publication Number Publication Date
JPH0449425A true JPH0449425A (en) 1992-02-18
JP2855798B2 JP2855798B2 (en) 1999-02-10

Family

ID=15710882

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2160247A Expired - Fee Related JP2855798B2 (en) 1990-06-19 1990-06-19 Document processing device

Country Status (1)

Country Link
JP (1) JP2855798B2 (en)

Also Published As

Publication number Publication date
JP2855798B2 (en) 1999-02-10

Similar Documents

Publication Publication Date Title
JPS63149719A (en) Information processor
US4671684A (en) Electronic typewriter with selectively deactuatable spelling checking apparatus
JPS63167960A (en) Document processor
JPS63120362A (en) Document processor having spelling check function
JPH0449425A (en) Document processor
US5115410A (en) Program processing system having standard program for processing optionally post-stored programs
CA1301349C (en) Bounded word replace function for an electronic typewriter
JPS63149758A (en) Information processor
EP0274436B1 (en) Word processing apparatus
JPH0476760A (en) Document processor with spelling checking function
JPH0476759A (en) Document processor with spelling checking function
JPH0471065A (en) Document processor with spelling check function
JP2930139B2 (en) Document processing device
JPS63192157A (en) Document processor
JPS63131264A (en) Document processor
JPH04213157A (en) Word processor with spell check function
JPH03238554A (en) Document processor
JPS63148370A (en) Data processor
JPH0476761A (en) Document processor with spelling checking function
JPS6190260A (en) Electronic typewriter
JPH04115971A (en) Printer
JPS63148371A (en) Printer
JPH03134768A (en) Printer with spelling check function
JPH0476762A (en) Document processor with spelling checking function
JPS62266661A (en) Japanese language word processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071127

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081127

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091127

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees