JP2671978B2 - Document processing device - Google Patents

Document processing device

Info

Publication number
JP2671978B2
JP2671978B2 JP61044193A JP4419386A JP2671978B2 JP 2671978 B2 JP2671978 B2 JP 2671978B2 JP 61044193 A JP61044193 A JP 61044193A JP 4419386 A JP4419386 A JP 4419386A JP 2671978 B2 JP2671978 B2 JP 2671978B2
Authority
JP
Japan
Prior art keywords
character
search
character string
input
mode
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
JP61044193A
Other languages
Japanese (ja)
Other versions
JPS62203227A (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 JP61044193A priority Critical patent/JP2671978B2/en
Publication of JPS62203227A publication Critical patent/JPS62203227A/en
Application granted granted Critical
Publication of JP2671978B2 publication Critical patent/JP2671978B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、文字情報から記号を含む文字又は前記文字
から作られた文字列を検索する検索機能を備えた文字処
理装置に関するものである。 [従来の技術] 従来、この種の文書処理装置における文字又は文字列
検索機能、即ちサーチ機能は指定手段からサーチする文
字又は文字列を指定し、文書情報の中から、前記文字又
は文字列と同一文字列をサーチする機能を有するのみで
あった。 例えば、サーチしようとする文字又は文字列をアルフ
ァベットの文字又は文字列とすると、大文字,小文字に
ついては、サーチする文字又は文字列は指定時の大文
字,小文字に従い、大文字,小文字に特定せずにサーチ
することはできない。例えば、ある文書中の“s−e−
a−r−c−h"という文字列をサーチしたい場合に“se
arch"と指定すると、文書情報中の“search"という文字
列はサーチするが、“SEARCH"、或は“Search"等の文字
列まで同時にサーチすることはできない。 [発明が解決しようとする課題] したがって、上記従来の方法によると、文字種によら
ずにサーチを行うことができず、他の文字種の文字列も
サーチしたい場合には、サーチ用の文字列をその文字種
による文字列に変えて、サーチを繰り返さねばならなか
った。一方、常に文字種によらずにサーチを行ってしま
うと、サーチが冗長になってサーチ結果が膨大になり、
所望のサーチ結果が迅速に得られないことになる。 特公昭47−8493号には、オペレーシヨン字の入力によ
り、入力語が大文字もしくは小文字かを区別して予想語
との一致を検索するモードと、入力語が大文字もしくは
小文字であるに関わらず予想語との一致を検索するモー
ドを指定して、情報の検索を行う情報比較装置が開示さ
れている。 しかしながら、検索の度にその検索目的に応じて、オ
ペレーシヨン字の入力等によりモード切り換えを行うの
は、操作が煩雑になりユーザへの負担を高めることにな
る。 本発明は、上記従来の技術に鑑みてなされたもので、
文書中の文字列を検索する際に、検索文字列として入力
した文字列の文字種に応じて、入力された検索文字列と
同じ文字種の文字列のみの検索、或は、入力された検索
文字列と同じ文字種の文字列ばかりでなく、異なる文字
種の文字列も検索可能とし、少ない操作量で、きめ細か
い処理をすることができる文書処理装置を提供する。 [課題を解決するための手段] 上記課題を解決するために、本発明の文書処理装置
は、検索文字列を入力する入力手段と、前記入力手段に
より入力された検索文字列の各文字の文字種が、第1の
文字種か第2の文字種かを判断する判断手段と、前記判
断手段による判断の結果、前記第1の文字種の文字から
なる文字列であると判断された場合、前記入力手段によ
り入力された検索文字列と文字種によらず一致する文字
列を文書中から検索し、前記判断手段による判断の結
果、前記第2の文字種を含む文字列であると判断された
場合、前記入力手段により入力された検索文字列と文字
種を含めて一致する文字列を文書中から検索する検索手
段とを有することを特徴とする。 [作用] 上記構成により、本発明の文書処理装置は、入力手段
より入力された検索文字列に基づいて文字列を検索する
際に、第1の文字種の文字からなる文字列であると判断
された場合、前記検索文字列と文字種によらず一致する
文字列を文書中から検索し、第2の文字種を含む文字列
であると判断された場合、前記検索文字列と文字種を含
めて一致する文字列を文書中から検索することにより、
少ない操作量で、きめ細かい検索を可能とする。 [実施例] 以下、添付図面に従って、本発明に係る一実施例を詳
細に説明する。 尚、本発明における文書,文字列等は、図形,記号又
は画像を含めても良い。 第1図は本発明の一実施例を示すブロック図である。
図中、1は本実施例の主制御を掌るセントラルプロセツ
シングユニツト(以下CPUと称す)であり、システムバ
ス(System Bus)11を介して、互いに接続された後述す
る各構成要素を制御する。2は第4図〜第6図に示すCP
U1の処理手順を記憶する制御メモリとして用いられるリ
ードオンリメモリ(ROM)、3はランダムアクセスメモ
リ(RAM)であり、プログラム、各種データの一時記憶
のワークメモリとして使用される。4は文書等のデータ
を表示し、カーソルにより文字処理位置指定を行なうCR
T、5は作成,編集した文書等を記憶し保存を行なう外
部メモリ(以下FDと称す)、6はキーボード(以下KBと
称す)であり、CPU1に指示を与える各種キーが配置され
ている。ここでキー6aは検索モードを指定するモードキ
ーである。7はCRT4に表示すべき表示データを保持する
VRAM、8はCRT4の表示制御を行なうCRTコトローラ(以
下CRTCと称す)、9はFD5の制御装置(以下FDCと称
す)、10はKB6の制御を行なうキーボードコントローラ
(以下KBCと称す)である。 次にRAM内の一構成例を第2図に示す。 第2図中、12はボールドモードフラグレジスタで、サ
ーチ文字又は文字列の入力指定時に、現在の入力モード
がボールドモードであることを保持する領域である。13
は、アンダーラインモードフラグレジスタで、12と同様
にアンダーラインモードであることを保持する領域、14
は大文字,小文字フラグレジスタで、同じく大文字,小
文字であることを保持する領域である。12,13,14を総称
してSM−FLGとする。15はサーチ文字列モードフラグレ
ジスタ(MD−FLG)で、サーチ文字又は文字列中にモー
ドが存在していることを保持する領域、16はサーチ文字
列大小文字フラグレジスタ(UL−FLG)で、同じく大文
字が存在していることを保持する領域である。17は、サ
ーチ文字列バツフアポインタ(SC−P)で、後述のサー
チ文字又は文字列バツフアの位置指定を行なうポインタ
である。18は、テキストバツフアポインタ(TX−P)で
後述のテキストバツフアの位置指定を行なうポインタで
ある。19はサーチ文字列エンドバツフアポインタ(SC−
PE)で、サーチ文字又は文字列入力時にサーチ文字又は
文字列バツフアのどの位置まで、文字又は文字列が入力
されているかの位置を示し、最終入力時のSC−Pと等し
い。20はテキストキヤラクタテンポラリレジスタ(TX−
char)で、サーチ処理において、文字又は文字列を比較
する際のテンポラリ領域として使用される。21はサーチ
文字列バツフア(SC−buf)であり、サーチ文字又は文
字列を保持する領域である。また、22はテキストバツフ
ア(TX−buf)で本実施例における文書処理装置で入
力、編集処理される文書情報を保存する領域である。サ
ーチ文字列バツフア、テキストバツフアの内容は第3図
(a),(b)に詳細に示す。 以上の構成より成る本実施例の動作を以下に説明す
る。 本実施例においてはCPU1の制御のもとに、KB6より順
次文書情報を入力し、この入力された情報は一時RAM3に
格納されると共にCRT4に表示され、ここで編集された
後、FD5に記録される。 サーチ処理を行う場合は、第1図において、まずKB6
を介してサーチ文字又は文字列を入力すると共に、モー
ドキー6aにより文字又は文字列のモード指定がなされる
と、CPU1はROM2に格納されたプログラムに従つて、前述
のRAM3を使いながら指定されたモードによるサーチが実
行される。 本実施例において、サーチ機能が実行されると、サー
チ文字又は文字列入力が問われる。オペレータによりキ
ヤラクタの入力がなされると、入力キヤラクタコードが
第3図(a)において、サーチ文字列バツフアポインタ
17(SC−P)の指すサーチ文字列バツフア21(SC−bu
f)のキヤラクタ領域(以後charと略す)に順々に格納
される。このとき、各々のキヤラクタ入力時に、SM−FL
G12,13,14を参照して、各モードがSC−P17の指すSC−bu
f21の属性を記憶するアトリビユート領域(以後attrと
略す)にビツトフラグとして同時にセツトされる。サー
チ文字入力終了キーとしてリターンキー(SR)が入力さ
れると、SC−P17の値をSC−PE19にセツトし、入力処理
を終了する。サーチ処理が起動すると、SC−P17の指すS
C−buf21の情報と第3図(b)に示すTX−P18の指すTX
−buf21の情報とを比較しながら処理は進められ、条件
が満たされると、サーチしたとして、CRT4にその情報を
出力し、以後前処理を続行或は処理を終了する。 次に第4図と第5図(a),(b)と第6図とに示す
フローチヤートを用いて、より詳細に説明する。 第4図は本実施例におけるサーチ処理全体について示
している。ステップS1でサーチする文字又は文字列、及
びモードの入力指定を行ない、この処理に基づいてステ
ップS2により、文字又は文字列のサーチ処理を行ないサ
ーチ処理を終了する。 このステップS1におけるサーチ文字列入力処理、ステ
ップS2における文字列サーチ処理詳細を各々第5図
(a),(b)と第6図に示す。第5図(a)におい
て、まずステップS3にてSC−P17を0として、SC−buf21
への入力ポインタを先頭へ移動し、初期化する。次にス
テップS4において、KB6から入力されたキー情報の取り
込みを行ない、ここで入力キー情報を取り込むと、ステ
ップS5において、文字キーか否かの判定を行なう。文字
キーの場合はステップS6に進み、他のキーの場合はステ
ップS10へ進む。ステップS6ではSC−buf21のSC−P17の
指すchar領域に、入力された文字コードをセツトし、ス
テップS7にて現在のモードがチエツクされる。SM−FLG1
2,13,14がONであるならば、モードがセツトされている
のでステップS8に進みSC−buf21のSC−P17の指すattr領
域に現在の文字モードをセツトし、ステップS9に進む。
ステップS7にてSM−FLG12,13,14がOFFならば、どのモー
ドもセツトされていないので、そのままステップS9へ進
む。ステツプS9では、SC−P17を1つカウントアツプ
し、ステップS4へ戻る。一方、ステップS5で文字以外の
キーが入力された場合には、ステツプS10において、サ
ーチ文字又は文字列入力終了キーか否か判定され、終了
キーの場合には、ステツプS13にて入力されたサーチ文
字又は文字列中にモード或は大文字が存在するかチエツ
クされ、MD−FLG15,UL−FLG16を各々セツトして処理を
終了する。終了キーでない場合にはステツプS11にてモ
ードキー6aか判定され、モードキー6aの場合には、入力
されたモードによりステツプS12で各々のSM−FLG12,13,
14をセツトし、ステツプS11でモードキー6a以外のキー
の場合と共にステツプS4へ戻る。 第5図(b)はステツプS13のMD−FLG15,UL−FLG16の
セツトの内容を示している。まずステツプS14にてサー
チ文字又は文字列中にモードが存在するかどうか判定さ
れ、モードが存在する場合には、ステツプS15にてMD−F
LG15がONにセツトされステツプS16へ、モードが存在し
ない場合には、そのままステツプS16へ進む。ステツプS
16ではサーチ文字又は文字列中に大文字が存在するか否
かが判定され、大文字が存在する場合にはステツプS17
にてUL−FLG16がONにセツトされ、この処理を終了し、
大文字が存在しない場合はそのまま処理を終了する。 第5図(a)のサーチ文字列入力処理が終了すると、
処理は第6図における文字列サーチ処理に移る。 まず、ステツプS18にてS−CP17を0としてポインタ
をSC−buf21の先頭へ移動してTX−P18を現在の編集カー
ソル位置へ移動し、初期化を行なう。ステツプS19で、T
X−P18の指すTX−buf22のchar領域の内容がEOFの場合に
は、サーチ終了であるのでこの処理を終了する。EOF以
外の場合には、ステツプS20にて、UL−FLG16がONか否か
判定される。ONの場合には、前述サーチ文字列入力処理
により指定された文字又は文字列と全く同一の文字又は
文字列(大文字,小文字を区別する)をサーチする処理
がオペレータにより選択されたとみなし、ステツプS22
にて、TX−P18の指すTX−buf22のchar領域のコードをそ
のままTX−char20へ移動し、ステツプS23に進む。OFFの
場合には、指定文字を含む文字又は文字列(大文字,小
文字を同一視し、区別しない)をサーチする処理が選択
されたとみなし、ステツプS21にてTX−P18の指すTX−bu
f22のchar領域のコードと80h(Hex)とのANDをとり、大
文字を小文字化し、大文字,小文字の区別をなくし、TX
−char20へ移動する。ここで、コードがアルフアベツト
以外の文字コードであるならばステツプS21の処理によ
らず、ステツプS22と同様の処理を行ないステツプS23へ
進む。 ステツプS23では、TX−char20のコードとSC−P17の指
すSC−buf21のchar領域のコードとが等しいかどうか判
定され、等しくない場合にはサーチすべき文字ではない
ので、ステツプS30にてSC−P17を初期化し、ステツプS3
1にてTX−buf22のポインタTX−P18を1つカウントアツ
プし、ステツプS19へ戻る。等しい場合には、ステツプS
24にて、MD−FLG15がONか否かを判定する。ここでONの
場合には、前述サーチ文字列入力処理により指定された
文字又は文字列モードと同一モードの同一文字又は文字
列をサーチする処理が選択されたとみなし、ステツプS2
5にてSC−P17の指すSC−buf21のattr領域のモードとTX
−buf22のattr領域のモードが一致しているか否かが判
定され、一致しない場合には、ステツプS30へ進み、以
後ステツプS31、ステツプS19へと処理は戻る。また、ス
テツプS24でMD−FLG15がOFFの場合には、モードは無視
して指定文字又は文字列をサーチする処理が選択された
とみなし、ステツプS25でモードが一致した場合と同様
にステツプS26に進む。 ステツプS26では、SC−P17がSC−PE19となつたかどう
か、即ち最終的に指令文字又は文字列と一致したかどう
か、サーチされたかどうかを判定する。ここでNOの場合
には、まだサーチする文字又は文字列途中までしか、一
致していないのでステツプS29にてSC−P17を1つカウン
トアツプし、ステツプS31にてTX−P18を1つカウントア
ツプし、ステツプS19に戻り処理を続行させる。YESの場
合には、その時点で、指定文字又は文字列がサーチされ
たとして、ステツプS27にてCRT上のサーチされた文字又
は文字列にカーソルを移動し、オペレータにサーチされ
た情報を提供したりサーチを続行するか否かの入力を問
う等の処理を行なう。ステツプS28にて、入力キーの判
定が成され、図示しないNEXTキーが入力された場合に
は、ステツプS31でTX−P18を1つカウントアツプし、ス
テツプS19に戻り、次の位置のサーチを続行する。NEXT
キー以外の場合は、そこでサーチ処理がキヤンセルされ
たとみなし、サーチ処理を終了させる。 尚、本実施例においては、サーチ機能のみについて述
べたが、サーチ機能に付随する置換機能、即ちサーチ&
リプレイス機能についても同様に考えることができる。
リプレイス後の文字又は文字列指定時に、文字又は文字
列のみならず、文字又は文字列の属性モードの指定も可
能となる。 また、本実施例では文字又は文字列の属性モードをボ
ールド、アンダーラインとして説明したが、それに限る
ものではなく、センタリング、インデンテーシヨン等に
おいても同様である。 また、本実施例ではアルフアベツツトの大文字と小文
字について説明したが、本発明からはコードの変換ある
いは置換等によりカツコに囲まれた不特定の文字列をサ
ーチすることも考えられるし、他の種々のサーチ機能を
も作り出せる。 更に、前者の属性の指定と後者の検索の範囲拡張とを
組み合わせてもよい。 以上説明したように本発明によれば、サーチする文字
又は文字列を入力指定する際にモードの設定を可能と
し、また、アルフアベツトの大文字,小文字を使い分け
るという簡単な操作により、文書情報中の特定モードの
同一文字又は文字列をサーチ、或は大文字,小文字に関
せず、すべての同一文字又は文字列をサーチすることが
でき、1つのサーチ機能において、数種の機能性を選択
可能とし、オペレータの意に沿つて、きめ細かい操作性
を軽減した文書処理装置を提供できる。 [発明の効果] 以上説明したように、本発明によれば、文書中の文字
列を検索する際に、検索文字列として入力した文字列の
文字種に応じて、入力された検索文字列と同じ文字種の
文字列のみの検索、或は、入力された検索文字列と同じ
文字種の文字列ばかりでなく、異なる文字種の文字列も
検索可能とするので、少ない操作量で、きめ細かい処理
をすることができる。
Description: TECHNICAL FIELD The present invention relates to a character processing apparatus having a search function for searching a character including a symbol or a character string formed from the character from character information. [Prior Art] Conventionally, a character or character string search function in this type of document processing apparatus, that is, a search function, specifies a character or a character string to be searched from a specifying unit, and selects the character or character string from the document information. It only had the function of searching for the same character string. For example, if the character or character string to be searched is an alphabetic character or character string, the uppercase and lowercase letters will be searched according to the specified uppercase and lowercase letters without specifying uppercase and lowercase letters. You cannot do it. For example, "s-e-" in a document
If you want to search for the character string "a-r-c-h", use "se
When "arch" is specified, the character string "search" in the document information is searched, but it is not possible to simultaneously search for character strings such as "SEARCH" or "Search." [Problems to be solved by the invention Therefore, according to the above-mentioned conventional method, if the search cannot be performed regardless of the character type and you want to search for character strings of other character types, change the search character string to the character string of that character type. , I had to repeat the search.On the other hand, if I always search regardless of the character type, the search becomes redundant and the search results become huge,
The desired search result cannot be obtained quickly. Japanese Examined Patent Publication No. 47-8493 has a mode in which by inputting operation characters, the input word is distinguished whether it is uppercase or lowercase, and a search is made for a match with the predicted word. There is disclosed an information comparison device that searches for information by designating a mode for searching for a match with. However, if the mode is switched by inputting operation letters or the like according to the search purpose each time the search is performed, the operation becomes complicated and the burden on the user is increased. The present invention has been made in view of the above conventional techniques,
When searching for a character string in a document, depending on the character type of the character string input as the search character string, only the character string of the same character type as the input search character string is searched, or the input search character string Provided is a document processing device which can search not only character strings of the same character type as, but also character strings of different character types, and can perform fine processing with a small amount of operation. [Means for Solving the Problems] In order to solve the above problems, a document processing apparatus according to the present invention includes an input unit for inputting a search character string, and a character type of each character of the search character string input by the input unit. Is a first character type or a second character type, and as a result of the determination by the determination means, the input means determines that the character string is composed of the characters of the first character type. When a character string that matches the input search character string regardless of the character type is searched from the document, and the result of the judgment by the judging means is that the character string includes the second character type, the input means And a search means for searching a document for a matching character string including a character type with the search character string input by. [Operation] With the above configuration, when the document processing device of the present invention searches for a character string based on the search character string input by the input means, it is determined that the character string is a character string of the first character type. In the case where the character string matches the search character string regardless of the character type, the document is searched, and when it is determined that the character string includes the second character type, the character string matching the search character string includes the character type. By searching for a character string in the document,
Enables fine search with a small amount of operation. [Embodiment] An embodiment according to the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the documents, character strings and the like in the present invention may include figures, symbols or images. FIG. 1 is a block diagram showing one embodiment of the present invention.
In the figure, reference numeral 1 denotes a central processing unit (hereinafter referred to as a CPU) which controls the main control of the present embodiment, and controls each constituent element, which will be described later, connected to each other via a system bus 11. To do. 2 is the CP shown in FIGS. 4 to 6
A read-only memory (ROM) 3 used as a control memory for storing the processing procedure of U1 is a random access memory (RAM), and is used as a work memory for temporarily storing programs and various data. 4 is a CR that displays data such as a document and specifies the character processing position with the cursor
T and 5 are external memories (hereinafter, referred to as FD) for storing and saving created and edited documents, and 6 is a keyboard (hereinafter, referred to as KB), and various keys for giving instructions to the CPU 1 are arranged. Here, the key 6a is a mode key for designating the search mode. 7 holds display data to be displayed on CRT4
VRAM, 8 is a CRT controller (hereinafter referred to as CRTC) that controls the display of CRT4, 9 is a control device of FD5 (hereinafter referred to as FDC), and 10 is a keyboard controller (hereinafter referred to as KBC) that controls KB6. Next, FIG. 2 shows a configuration example of the RAM. In FIG. 2, reference numeral 12 denotes a bold mode flag register, which is an area for holding that the current input mode is the bold mode when inputting a search character or a character string. 13
Is the underline mode flag register, which holds the underline mode in the same way as 12.
Is an uppercase / lowercase flag register, which is an area for holding uppercase / lowercase. 12,13,14 are collectively referred to as SM-FLG. 15 is a search character string mode flag register (MD-FLG), an area for holding the existence of a mode in a search character or character string, 16 is a search character string case flag register (UL-FLG), Similarly, this is an area that retains the presence of uppercase letters. A search character string buffer pointer (SC-P) 17 is a pointer for designating the position of a search character or character string buffer described later. Reference numeral 18 denotes a text buffer pointer (TX-P) for designating the position of a text buffer described later. 19 is the search character string end buffer pointer (SC-
PE) indicates the position of the search character or character string buffer to which the character or character string is input when the search character or character string is input, and is equal to SC-P at the final input. 20 is the text character temporary register (TX-
char), which is used as a temporary area when comparing characters or character strings in the search process. Reference numeral 21 is a search character string buffer (SC-buf), which is an area for holding a search character or character string. A text buffer (TX-buf) 22 is an area for storing document information that is input and edited by the document processing apparatus of this embodiment. The contents of the search character string buffer and the text buffer are shown in detail in FIGS. 3 (a) and 3 (b). The operation of this embodiment having the above configuration will be described below. In the present embodiment, under the control of the CPU1, the document information is sequentially input from the KB6, and the input information is temporarily stored in the RAM3 and displayed on the CRT4, edited here, and then recorded in the FD5. To be done. When performing the search process, first refer to KB6 in Fig. 1.
While inputting a search character or character string via, and specifying the mode of the character or character string by the mode key 6a, the CPU1 is specified according to the program stored in the ROM2 while using the RAM3 described above. The mode search is executed. In this embodiment, when the search function is executed, a search character or character string input is required. When a character is input by the operator, the input character code is the search character string buffer pointer in FIG. 3 (a).
17 (SC-P) indicates the search character string buffer 21 (SC-bu
It is sequentially stored in the charactor area of f) (hereinafter abbreviated as char). At this time, when inputting each character, SM-FL
Refer to G12,13,14, SC-bu
It is simultaneously set as a bit flag in the attribute area (hereinafter abbreviated as attr) that stores the attribute of f21. When the return key (SR) is input as the search character input end key, the value of SC-P17 is set in SC-PE19, and the input process ends. When the search process starts, S-pointed by SC-P17
Information on C-buf21 and TX indicated by TX-P18 shown in Fig. 3 (b)
The process proceeds while comparing with the information of -buf21. When the condition is satisfied, it is determined that the search is performed, the information is output to the CRT 4, and thereafter the pre-process is continued or the process is terminated. Next, a more detailed description will be given with reference to the flow charts shown in FIGS. 4, 5 (a), 5 (b) and 6. FIG. 4 shows the entire search process in this embodiment. In step S1, a character or character string to be searched and a mode are designated and input. Based on this processing, in step S2, the character or character string is searched, and the search processing ends. Details of the search character string input processing in step S1 and the character string search processing in step S2 are shown in FIGS. 5 (a), 5 (b) and 6, respectively. In FIG. 5 (a), SC-P17 is first set to 0 in step S3, and SC-buf21 is set.
Move the input pointer to to the beginning and initialize it. Next, in step S4, the key information input from KB6 is taken in. When the input key information is taken in here, in step S5 it is determined whether or not it is a character key. If it is a character key, the process proceeds to step S6, and if it is another key, the process proceeds to step S10. In step S6, the input character code is set in the char area pointed to by SC-P17 of SC-buf21, and the current mode is checked in step S7. SM-FLG1
If 2, 13, and 14 are ON, the mode has been set, so the process proceeds to step S8, where the current character mode is set in the attr area pointed to by SC-P17 of SC-buf21, and the process proceeds to step S9.
If SM-FLGs 12, 13, and 14 are OFF in step S7, none of the modes have been set, and the process directly proceeds to step S9. At step S9, SC-P17 is counted up by 1, and the process returns to step S4. On the other hand, if a key other than a character is input in step S5, it is determined in step S10 whether or not it is the search character or character string input end key, and if it is the end key, the search input in step S13 is performed. The mode or uppercase character is checked in the character or character string, MD-FLG15 and UL-FLG16 are set respectively, and the process is terminated. If it is not the end key, it is determined in step S11 whether it is the mode key 6a.In the case of the mode key 6a, in step S12, each SM-FLG12, 13,
14 is set, and at step S11, if any key other than the mode key 6a is selected, the process returns to step S4. FIG. 5 (b) shows the contents of the MD-FLG15 and UL-FLG16 sets in step S13. First, in step S14, it is determined whether or not a mode exists in the search character or character string. If a mode exists, in step S15 MD-F
If LG15 is set to ON and the mode does not exist, the process directly proceeds to step S16. Step S
In step 16, it is determined whether uppercase letters are present in the search character or character string, and if uppercase letters are present, step S17
UL-FLG16 is set to ON at
If there is no uppercase letter, the process ends as it is. When the search character string input process of FIG.
The processing moves to the character string search processing in FIG. First, in step S18, S-CP17 is set to 0, the pointer is moved to the head of SC-buf21, and TX-P18 is moved to the current edit cursor position, and initialization is performed. Step S19, T
If the content of the char area of TX-buf22 pointed to by X-P18 is EOF, this means that the search has ended, so this processing ends. In cases other than EOF, in step S20, it is determined whether or not UL-FLG16 is ON. If it is ON, it is considered that the operator has selected the processing for searching the same character or character string (case sensitive) as the character or character string specified by the search character string input processing, and step S22
Then, the code of the char area of TX-buf22 pointed to by TX-P18 is moved to TX-char20 as it is, and the process proceeds to step S23. If it is OFF, it is considered that the process of searching for a character or character string including the specified character (uppercase and lowercase letters are identified and not distinguished) is selected, and at step S21, TX-bu indicated by TX-P18 is selected.
Take the AND of the code in the char area of f22 and 80h (Hex) to make the uppercase letters lowercase and eliminate the distinction between uppercase and lowercase letters.
-Move to char20. Here, if the code is a character code other than alphabet, the same process as step S22 is performed regardless of the process of step S21, and the process proceeds to step S23. In step S23, it is determined whether the code of TX-char20 and the code of the char area of SC-buf21 pointed to by SC-P17 are equal. If they are not equal, it is not a character to be searched, so in step S30 SC- Initialize P17, step S3
At 1, the pointer TX-P18 of TX-buf22 is counted up by 1, and the process returns to step S19. If equal, step S
At 24, it is determined whether MD-FLG15 is ON. If it is ON here, it is considered that the process of searching for the same character or character string in the same mode as the character or character string mode designated by the search character string input process has been selected, and step S2 is selected.
At 5 the mode of the attr area of SC-buf21 pointed to by SC-P17 and TX
It is determined whether or not the modes of the attr area of -buf22 match, and if they do not match, the process proceeds to step S30, and then the process returns to step S31 and step S19. If MD-FLG15 is OFF at step S24, it is considered that the process of ignoring the mode and searching for the designated character or character string is selected, and the process proceeds to step S26 in the same manner as when the mode matches at step S25. . In step S26, it is determined whether SC-P17 has become SC-PE19, that is, whether it has finally matched the command character or character string, or has been searched. In the case of NO here, since the character or character string to be searched does not match, the SC-P17 is counted up by 1 at step S29, and the TX-P18 is counted up by 1 at step S31. Then, the process returns to step S19 to continue the processing. If YES, it is determined that the specified character or character string has been searched at that time, and in step S27, the cursor is moved to the searched character or character string on the CRT and the operator is provided with the searched information. And processing such as inquiring whether or not to continue the search. If the input key is judged in step S28 and the NEXT key (not shown) is pressed, the TX-P18 is counted up by 1 in step S31, the process returns to step S19, and the search for the next position is continued. To do. NEXT
If it is other than the key, the search process is considered to be canceled there, and the search process is terminated. Although only the search function is described in the present embodiment, the replacement function associated with the search function, that is, the search &
The replace function can be similarly considered.
When the character or character string after replacement is specified, not only the character or character string but also the attribute mode of the character or character string can be specified. Further, in the present embodiment, the character or character string attribute mode is described as bold or underline, but the present invention is not limited to this, and the same applies to centering, indentation and the like. Further, although the upper and lower case letters of the alphanumeric character are described in the present embodiment, it is also possible to search for an unspecified character string surrounded by the brackets by converting or replacing the code from the present invention, and other various kinds. You can also create a search function. Furthermore, the former attribute designation and the latter search range extension may be combined. As described above, according to the present invention, it is possible to set a mode when inputting and specifying a character or a character string to be searched, and it is possible to specify in the document information by a simple operation of selectively using uppercase and lowercase letters of the alphabet. The same character or character string in the mode can be searched, or all the same characters or character strings can be searched regardless of whether they are uppercase or lowercase. In one search function, several types of functionality can be selected, In accordance with the wishes of the operator, it is possible to provide a document processing apparatus with reduced fine operability. [Effects of the Invention] As described above, according to the present invention, when searching for a character string in a document, the same as the input search character string depending on the character type of the character string input as the search character string. It is possible to search only for character strings of different character types, or to search not only for character strings of the same character type as the input search character string, but also for character strings of different character types, so fine processing can be performed with a small amount of operation. it can.

【図面の簡単な説明】 第1図は本実施例の文書処理装置のブロツク図、 第2図はRAMの構成例を示す図、 第3図(a)はサーチ文字列バツフアの内容を示す図、 第3図(b)はテキストバツフアの内容を示す図、 第3図(c)はテキストキヤラクタテンポラリレジスタ
の内容を示す図、 第4図はサーチ処理全体を示すフローチヤート、 第5図(a)はサーチ文字列入力処理を示すフローチヤ
ート、 第5図(b)はMD−FLG,UL−FLGセツトを示すフローチ
ヤート、 第6図は文字又は文字列サーチ処理を示すフローチヤー
トである。 図中、1……CPU、2……ROM、3……RAM、4……表示
装置CRT、5……外部記憶装置FD、6……キーボードK
B、6a……モードキー、7……ビデオ記憶VRAM、8……
表示装置コントローラCRTC、9……外部記憶装置コント
ローラFDC、10……キーボードコントローラKBC、11……
システムバスSBである。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a document processing apparatus according to the present embodiment, FIG. 2 is a diagram showing a configuration example of RAM, and FIG. 3 (a) is a diagram showing contents of a search character string buffer. , FIG. 3 (b) is a diagram showing the contents of the text buffer, FIG. 3 (c) is a diagram showing the contents of the text character temporary register, FIG. 4 is a flow chart showing the entire search process, FIG. (A) is a flow chart showing a search character string input process, FIG. 5 (b) is a flow chart showing an MD-FLG, UL-FLG set, and FIG. 6 is a flow chart showing a character or character string search process. . In the figure, 1 ... CPU, 2 ... ROM, 3 ... RAM, 4 ... Display device CRT, 5 ... External storage device FD, 6 ... Keyboard K
B, 6a …… Mode key, 7 …… Video storage VRAM, 8 ……
Display device controller CRTC, 9 ... External storage device controller FDC, 10 ... Keyboard controller KBC, 11 ...
It is the system bus SB.

Claims (1)

(57)【特許請求の範囲】 1.検索文字列を入力する入力手段と、 前記入力手段により入力された検索文字列の各文字の文
字種が、第1の文字種か第2の文字種かを判断する判断
手段と、 前記判断手段による判断の結果、前記第1の文字種の文
字からなる文字列であると判断された場合、前記入力手
段により入力された検索文字列と文字種によらず一致す
る文字列を文書中から検索し、前記判断手段による判断
の結果、前記第2の文字種を含む文字列であると判断さ
れた場合、前記入力手段により入力された検索文字列と
文字種を含めて一致する文字列を文書中から検索する検
索手段とを有することを特徴とする文書処理装置。 2.前記第1及び第2の文字種が、それぞれ小文字及び
大文字であることを特徴とする特許請求の範囲第1項記
載の文書処理装置。
(57) [Claims] Input means for inputting a search character string; determination means for determining whether the character type of each character of the search character string input by the input means is a first character type or a second character type; As a result, when it is determined that the character string is composed of the characters of the first character type, the character string that matches the search character string input by the input unit is searched from the document, and the determination unit is used. When it is determined that the character string includes the second character type as a result of the determination by the search unit, the search unit searches the document for a character string that matches the search character string input by the input unit. A document processing device comprising: 2. The document processing apparatus according to claim 1, wherein the first and second character types are a lower case character and an upper case character, respectively.
JP61044193A 1986-03-03 1986-03-03 Document processing device Expired - Lifetime JP2671978B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61044193A JP2671978B2 (en) 1986-03-03 1986-03-03 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61044193A JP2671978B2 (en) 1986-03-03 1986-03-03 Document processing device

Publications (2)

Publication Number Publication Date
JPS62203227A JPS62203227A (en) 1987-09-07
JP2671978B2 true JP2671978B2 (en) 1997-11-05

Family

ID=12684732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61044193A Expired - Lifetime JP2671978B2 (en) 1986-03-03 1986-03-03 Document processing device

Country Status (1)

Country Link
JP (1) JP2671978B2 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
富士ゼロックス株式会社、JStar リファレンスガイド(1984、11),p.5−51〜5−60

Also Published As

Publication number Publication date
JPS62203227A (en) 1987-09-07

Similar Documents

Publication Publication Date Title
JP2671978B2 (en) Document processing device
JP2685434B2 (en) Document processing device
US5262948A (en) Word processor
JP3064323B2 (en) Character string replacement device with attributes
EP0284355A2 (en) Document processing apparatus
JPS62203228A (en) Document processor
JP3466761B2 (en) Document processing apparatus and control method thereof
JP3749292B2 (en) Kana-kanji conversion device
JPH08329052A (en) Reading and notation converting method
JPS62180459A (en) Document processor
JPH0793303A (en) Document creation device and character modification control method
JPH06243136A (en) Document preparing device
JPH05135010A (en) Character processing method and device therefor
JPH04287158A (en) Document preparing device having character modifying function
JPH02230372A (en) Electronic filing system
JPH0799520B2 (en) Document editing device
JPH06231119A (en) Character processor
JPH06332898A (en) Document processor
JPH01231163A (en) Document generating device
JPH03129461A (en) Document edit processor
JPH02108158A (en) Character string retrieving device
JPH0115105B2 (en)
JPH09293067A (en) Document processor
JPH06236374A (en) Word processor and phonetic reading deleting method
JPH0289167A (en) Document generation supporting device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term