JPH023860A - Document processor - Google Patents

Document processor

Info

Publication number
JPH023860A
JPH023860A JP63151468A JP15146888A JPH023860A JP H023860 A JPH023860 A JP H023860A JP 63151468 A JP63151468 A JP 63151468A JP 15146888 A JP15146888 A JP 15146888A JP H023860 A JPH023860 A JP H023860A
Authority
JP
Japan
Prior art keywords
character
search
attribute
data
character string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63151468A
Other languages
Japanese (ja)
Inventor
Tadashi Suzuki
正 鈴木
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP63151468A priority Critical patent/JPH023860A/en
Publication of JPH023860A publication Critical patent/JPH023860A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To substitute a document data for the character of desired attribute even when the character of the different attribute is mixed, and to widely shorten the working time of editing by searching the character according to the designated contents of the attribute, and substituting the character with the designated attribute. CONSTITUTION:Document data has a character code corresponding to each character and an attribute code corresponding to the character code. When a CPU decides whether the condition 'to substitute the attribute of a character string to be substituted' is designated or not, and when it is not designated, the CPU makes the attribute data of the character string to be substituted same as the attribute data of the first character of a coincident character string. Then, in a case that the attribute data of the coincident character string is substituted for the attribute data of the character string to be substituted, or in a case that designation 'to substitute the attribute of the character string to be substituted' is designated previously, the CPU deletes the attribute data corresponding to the coincident character string, and inserts the attribute data of the character string to be substituted. Thus, the time of the editing work can be shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野) 本発明は文字列の探索および置換機能を有する文書処理
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document processing device having a character string search and replacement function.

〔従来の技術〕[Conventional technology]

従来、支出9/j浬装置には、文字列の探索および置換
機能を有するものがある。このような文書処理装置では
、作成された文書中からアルファベット文字の大文字・
小文字を無視して、探索対象となるアルファベット文字
を探索するか否かを指定し、該指定結果に応じて探索さ
れた文字を所望するアルファベット文字に置換できるよ
うになっている。
Conventionally, some spending devices have a search and replace function for strings. In such document processing devices, uppercase and uppercase alphabetic characters are extracted from the created document.
It is possible to specify whether or not to search for alphabetic characters to be searched, ignoring lowercase letters, and to replace the searched characters with desired alphabetic characters according to the designation result.

〔発明が解決しようとする課題] ところで上記従来の文書処理装置では、アルファベット
文字の大文字・小文字を無視して探索するか否かを指定
する程度の機能しか有しておらず、文書中に異なる複数
の文字種(例えば、ゴシック体、ゴシック・ボールド体
、ゴシック・イタリック体等の各字体)の文字および異
なる文字サイズの文字が混在する場合には、検索/置換
処理を行うことができなかった。
[Problems to be Solved by the Invention] However, the conventional document processing device described above only has the function of specifying whether or not to search by ignoring uppercase and lowercase letters of the alphabet. Search/replacement processing cannot be performed when characters of multiple character types (for example, Gothic, Gothic Bold, Gothic Italic, etc.) and characters of different character sizes coexist.

したがって、上述した従来の文書処理装置では、支間中
に同一の文字に関して異なる複数の文字種の文字および
異なる文字サイズの文字が混在している場合において、
これら各文字を所望する文字に置換する場合には該当す
る文字ごとに、探索および置換指示を行わなければなら
ず、編集作業に時間がかかるとともに、編集作業の作業
効率が極めて低いという欠点があった。
Therefore, in the above-mentioned conventional document processing device, when characters of different character types and characters of different character sizes are mixed for the same character in the span,
When replacing each of these characters with a desired character, a search and replacement instruction must be made for each corresponding character, which has the disadvantage of taking time to edit and extremely low editing efficiency. Ta.

本発明は上記欠点を解消し、編集作業の時間を短縮させ
ることができるとともに、作業効率を向上させることの
できる文書処理装置を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a document processing device that can eliminate the above-mentioned drawbacks, shorten the time required for editing work, and improve work efficiency.

〔5!題を解決するための手段および作用〕本発明は、
検索対象となる文字の属性を、当該検索対象となる文字
を検索する際の条件とするか否かを指定する指定手段と
、前記指定手段の指定結果に応じた検索対象となる文字
を前記文書中から検索する検索手段と、前記検索手段に
よって検索された文字を特定の文字に変換する際、当該
特定の文字の属性を指定する属性指定手段とを具えてお
り、検索対象となる文字は、指定手段によって指定され
た属性内容に応じて探索され、さらに属性指定手段によ
って指定された属性を有する特定の文字に置換されるこ
とになる。
[5! Means and operation for solving the problem] The present invention has the following features:
a designation means for specifying whether or not the attribute of the character to be searched is to be used as a condition when searching for the character to be searched; It comprises a search means for searching from among the characters, and an attribute specifying means for specifying the attributes of the specific character when converting the character searched by the search means into a specific character, and the characters to be searched are: The character is searched according to the attribute content specified by the specifying means, and is further replaced with a specific character having the attribute specified by the attribute specifying means.

〔実施例〕〔Example〕

以下、本発明に係る文書処理装置の実施例を添附図面を
参照して説明する。
Embodiments of a document processing device according to the present invention will be described below with reference to the accompanying drawings.

第1図は、本発明に係る文書処理VtW1の一実施例を
示したブロック図である。同図において、キーボード/
マウス制御部11は、キーボード12およびキーボード
12に接続されたマウス13からの各種のデータ、指令
等を入力制御している。
FIG. 1 is a block diagram showing an embodiment of a document processing VtW1 according to the present invention. In the figure, the keyboard/
The mouse control unit 11 controls input of various data, commands, etc. from the keyboard 12 and the mouse 13 connected to the keyboard 12.

中央処J!!装置(以下、CPLJという)10は、上
記キーボード/マウス制御部11から入力する指令と対
応するプログラムによってキーボード/マウス制御部1
1、ディスク制御部14、表示制御部15等の各制御部
および実メモリ16を総括的に時分割制御するとともに
、所定の演算、処理等を実行する。
Chuo J! ! The device (hereinafter referred to as CPLJ) 10 controls the keyboard/mouse control section 1 by a program corresponding to a command inputted from the keyboard/mouse control section 11.
1. It performs overall time-sharing control of each control unit such as the disk control unit 14 and display control unit 15 and the real memory 16, and executes predetermined calculations, processing, etc.

外部記憶袋@(ディスク装置)17は文書データやプロ
グラム、階層構造からなるかな漢字変換用辞書群のファ
イル、フォント構成のデータ内容および上記各フォント
の表示用ビットマツプ等を格納している。
The external storage bag @ (disk device) 17 stores document data, programs, files of a group of dictionaries for kana-kanji conversion consisting of a hierarchical structure, data contents of font configurations, bitmaps for displaying each of the above-mentioned fonts, and the like.

実メモリ16は、RAMからなり、システムの運用を行
うオペレーティングプログラム、キーボード12又はマ
ウス13等から入力する命令群およびデータ群、上記デ
ィスク装置f17から読み出された変換用辞書ファイル
やフォント構成のデータおよび上記各フォントの表示用
ビットマツプ等のデータを格納する。に対応する属性デ
ータを有している。
The real memory 16 consists of a RAM, and stores an operating program for operating the system, a group of commands and a group of data input from the keyboard 12 or mouse 13, etc., and conversion dictionary files and font configuration data read from the disk device f17. It also stores data such as display bitmaps for each of the above fonts. It has attribute data corresponding to .

表示制御部15は、CRT18を制御し、上記実メモリ
16内のフォント構成のデータに対しピットマツプのデ
ータ等を表示させる。
The display control section 15 controls the CRT 18 to display pit map data and the like against the font configuration data in the real memory 16.

なお上記文書データは、第2図に示すように、各文字に
対応した文字コードと該文字コードに対応する属性デー
タを有している。
As shown in FIG. 2, the document data includes a character code corresponding to each character and attribute data corresponding to the character code.

上述したCPU10は、上記文書データが上記CRT1
8に表示されるときに、それら各文字の位置情報に関す
るデータ等を制御データとして作成する。
The CPU 10 described above stores the document data on the CRT 1.
8, data regarding the position information of each character is created as control data.

なお、実施例では、位置情報に対応して制御データが格
納されており、またその制御データに対応して文字コー
ドおよび属性データが格納されている。
In the embodiment, control data is stored in correspondence to position information, and character codes and attribute data are stored in correspondence to the control data.

上記CPU10は、第3図に示すように、文書中の文字
列に対する探索/W1換処理の要求があるか否かを判断
しくステップ100) 、要求がある場合には探索/置
換処理を実行しくステップ101)、反対に要求がない
場合には、続いて探索7w1換処理の終了を示す指示が
あるか否かを判断しくステップ102)、この判断結果
、終了を示す指示がある場合には探索/e1換処理を終
了する。
As shown in FIG. 3, the CPU 10 determines whether there is a request for search/W1 conversion processing for character strings in the document (step 100), and if there is a request, executes the search/replacement processing. Step 101) If there is no request, then it is determined whether or not there is an instruction indicating the end of the search 7w1 conversion process.Step 102) If the result of this judgment is that there is an instruction indicating the end, the search is performed. /e1 conversion processing ends.

なお、CPU10は、上記ステップ101の処理を終了
した場合、ステップ102において探索/置換処理の終
了を示す指示がない場合には、上記ステップ100にも
どり、このステップ以降を実行する。
Note that when the CPU 10 finishes the processing in step 101, if there is no instruction indicating the end of the search/replacement processing in step 102, the CPU 10 returns to step 100 and executes the steps from this step onward.

上述したステップ101における探索/置換処理を詳細
に示したものが第4図である。
FIG. 4 shows the search/replacement process in step 101 described above in detail.

まずcpui oは、オペレータのキーボード12(又
はマウス13)の所定の操作によって指定された探索条
件および置換条件を設定するくステップ200)。
First, CPU O sets search conditions and replacement conditions specified by the operator's predetermined operation of the keyboard 12 (or mouse 13) (step 200).

まず探索条件としては、「探索する文字列」、「文字が
一致するかどうかを判定するときに文字の属性も対象と
するかどうか」、[文字がアルファベットの場合に大文
字と小文字の違いを無視するかどうか」、の3点を指定
する。
First, the search conditions are ``character string to search'', ``whether to consider character attributes when determining whether characters match'', and [ignoring case differences if characters are alphabetic. Specify three points: ``Are you willing to do so?''

また置換条件としては、「置換する文字列」、「置換す
る際に探索によって見付かった文字列と置換用に指定さ
れた文字列のどちらの文字の属性に合せて置換するか」
、の2点を指定する。
In addition, the replacement conditions include "character string to be replaced" and "Which character attribute should be used for replacement, the character string found by search or the character string specified for replacement?"
, specify two points.

次に、CPU 10は、文書データと探索データを示す
ポインタをそれぞれのデータの先頭に設定しくステップ
201 ) 、該文書データを示すポインタを探索開始
位置のポインタとしてセーブしておく(ステップ202
)。
Next, the CPU 10 sets pointers indicating the document data and search data at the beginning of each data (step 201), and saves the pointers indicating the document data as the search start position pointer (step 202).
).

そしてCPU 10は、文書データに設定されるポイン
タが、文書の終わりを示すコード上に設定されているか
否かを判断しくステップ203)、まだ、文書データに
設定されるポインタが、文書データの終わりを示すコー
ドを除く文書データ上に設定されている場合には、続い
て、探索データに設定されるポインタが、この探索デー
タに該当づる文字列の終わりを示すコード上に設定され
ているか否かを判断する(ステップ204)。
Then, the CPU 10 determines whether or not the pointer set in the document data is set on the code indicating the end of the document (step 203). If the pointer is set on the document data excluding the code indicating the search data, then whether or not the pointer set in the search data is set on the code indicating the end of the character string corresponding to this search data. (step 204).

CPU10は、ステップ204において、探索データに
設定されるポインタが探索データの文字列上にある場合
には、この探索データに含まれている文字コードと、文
書データに含まれている文字コード(探索対象の文字)
との文字コードが一致するか否かを判断する(ステップ
205)。
In step 204, if the pointer set in the search data is on the character string of the search data, the CPU 10 selects the character code included in the search data and the character code included in the document data (search data). target character)
It is determined whether the character codes match (step 205).

ここで文字コードが一致していた場合には、CPU10
は、さらに、探索条件として「文字の属性も対象とする
」条件が指定されているか否かを判断しくステップ20
6)、指定されていない場合には、探索対象の文字が探
索条件を満足して一致しでいると判断し、文書データお
よび探索データのそれぞれのポインタを1つ先に進める
(ステップ207)。
If the character codes match here, CPU10
Further, in step 20, it is determined whether or not the search condition "also targets character attributes" is specified.
6) If not specified, it is determined that the search target character satisfies the search conditions and matches, and the pointers of the document data and the search data are moved forward by one (step 207).

なおCPU10は、ステップ206において文字の属性
も対象とする」条件が指定されていた場合には、文字コ
ードに加えて、文字の属性も一致するか否かを判断しく
ステップ208)、一致する場合には、探索対象の文字
が探索条件を満足して一致していると判断して上記ステ
ップ207に進む、反対に一致していない場合、つまり
探索対象の文字が探索条件を満足していない場合には、
探索開始位置のポインタを1つ先に進め、これを文書デ
ータへのポインタとして改めて設定し直すとともに、探
索データのポインタを先頭に戻す(ステップ209)。
Note that if the condition "also target character attributes" is specified in step 206, the CPU 10 determines whether or not the character attributes match in addition to the character code (step 208); In this case, it is determined that the character to be searched satisfies the search condition and the process proceeds to step 207. Conversely, if the character to be searched does not match, that is, the character to be searched does not satisfy the search condition. for,
The pointer at the search start position is moved forward by one, and this point is reset as the pointer to the document data, and the pointer for the search data is returned to the beginning (step 209).

一方、CPU10は、ステップ205において、文字コ
ードが一致していない場合、「アルファベットの大文字
と小文字の違いを「無視する」という探索条件が指定さ
れているか否かを判断しくステップ210)、ここで探
索条件が指定されていない場合には、探索対象の文字が
探索条件を満足していないと判断して上記ステップ20
9に進み、反対に探索条件が指定されている場合には、
探索対象の文字と、探索データに含まれている文字とが
同じアルファベット文字を表すものであるが否かを判断
する(ステップ211)。ここでCPU10は、アルフ
ァベット文字が一致する場合には上記ステップ206に
進み、反対に一致しない場合には上記ステップ209に
進む。 またcPUloは、上述したステップ204に
おいて、探索データに設定されるポインタが、この探索
データに該当する文字列の終わりを示すコード上に設定
された場合には、目的とする文字列が見付かったことに
なり、@換処理を行い(ステップ212)、さらに、こ
の置換処理を終了した場合は、文書データのポインタを
1つ先に進め、これを探索開始位置としてセーブすると
ともに、探索データのポインタを先頭に戻す(ステップ
213)。
On the other hand, if the character codes do not match in step 205, the CPU 10 determines whether a search condition of "ignoring" the difference between uppercase and lowercase letters of the alphabet is specified (step 210); If no search conditions are specified, it is determined that the search target character does not satisfy the search conditions, and step 20 is performed.
Proceed to step 9, and if search conditions are specified on the contrary,
It is determined whether the character to be searched and the character included in the search data represent the same alphabetic character (step 211). Here, the CPU 10 proceeds to step 206 described above if the alphabet characters match, and proceeds to step 209 described above if the letters do not match. In addition, cPUlo indicates that the target string has been found if the pointer set in the search data is set on the code indicating the end of the string corresponding to this search data in step 204 described above. , performs the @ conversion process (step 212), and furthermore, when this replacement process is finished, moves the document data pointer forward one step, saves this as the search start position, and changes the search data pointer to Return to the beginning (step 213).

なおCPU 10は、上述したステップ207、ステッ
プ209、ステップ213の各ステップのうちいずれか
のステップを終了した場合には、上記ステップ203に
もどり、このステップ以降を実行する。すなわち、文書
データと探索データのマツチングを行う。
Note that when the CPU 10 finishes any one of the steps 207, 209, and 213 described above, the CPU 10 returns to step 203 and executes the steps after this step. That is, document data and search data are matched.

この場合、CPU10は、ステップ203において、文
書データへのポインタが文書の終わりを示すコード上に
設定された際には、探索/置換処理を終了する。
In this case, the CPU 10 ends the search/replacement process when the pointer to the document data is set on the code indicating the end of the document in step 203.

次に上述したステップ212の置換処理を詳細に示した
ものが第5図である。
Next, FIG. 5 shows in detail the replacement process in step 212 described above.

第5図において、CPLI 10は、先ず、一致した文
字列の位置情報から、文書データ中の一致した文字列に
対応する文字コードを削除しくステップ212−1)、
削除された文字コードの代わりに置換文字列の文字コー
ドを挿入する(ステップ212−2)。
In FIG. 5, the CPLI 10 first deletes the character code corresponding to the matched character string in the document data from the position information of the matched character string (step 212-1);
The character code of the replacement character string is inserted in place of the deleted character code (step 212-2).

次にCPU10は、置換条件として「置換文字列の属性
で置換する」が指定されているか否かを判断しくステッ
プ212−3)、ここで[置換文字列の属性で置換する
]の指定がされていない場合、つまり、「一致した文字
列の属性で置換する」が指定されていた場合には、置換
文字列の属性データを、一致した文字列の最初の一文字
目の属性データと同じにする(ステップ212−4)。
Next, the CPU 10 determines whether or not "Replace with attributes of replacement character string" is specified as a replacement condition (step 212-3), and here, if "Replace with attributes of replacement character string" is specified. If not, that is, if "Replace with the attributes of the matched string" was specified, the attribute data of the replacement string will be the same as the attribute data of the first character of the matched string. (Step 212-4).

そしてCPU10は、前記ステップ212−4を終了し
た場合、つまり置換文字列の属性データを一致した文字
列の属性データに置換えた場合、あるいは上記ステップ
212−3において「W:tJ!j!文字列の属性で置
換する」の指定がされている場合には、一致した文字列
に対応する属性データを削除し、置換文字列の属性デー
タを挿入する(ステップ212−5)。
Then, when the CPU 10 ends the step 212-4, that is, when the attribute data of the replaced character string is replaced with the attribute data of the matched character string, or in the step 212-3, "replace with the attribute of" is specified, the attribute data corresponding to the matched character string is deleted, and the attribute data of the replacement character string is inserted (step 212-5).

次に上記文書処理装置の置換処理の一例を第6図乃至第
11図の図面に基づき説明する。
Next, an example of the replacement processing of the document processing apparatus will be explained based on the drawings of FIGS. 6 to 11.

まず、第6図に示すような文書について、以下に示す探
索条件および置換条件を指定して検索/置換処理を行っ
た場合について説明する。
First, a case will be described in which a search/replacement process is performed on a document as shown in FIG. 6 by specifying the search conditions and replacement conditions shown below.

[探索条件1] 探索内容:明朝  (明朝12ポイント)文字の属性を
無視 大文字/小文字を無視 〔置換条件11 置換内容:みんちょう(明朝12ポイント)文字の属性
も変更 上記探索条件1、置換条件1の各条件においては、文書
処理装置は、「明朝」という文字列を文字の属性を無視
して探索し、その探索された文字列を、「みんちょう」
という明朝12ポイントの文字列に、かつ置換文字列の
文字の属性で置換する。その結果、ポイントサイズの異
なる3つの明朝」という文字列は、第7図に示すように
、各文字列とも「みんちょう」という明朝12ポイント
の文字列に置換されることになる。
[Search condition 1] Search content: Mincho (Mincho 12 points) Ignore character attributes Ignore uppercase/lowercase letters [Replacement condition 11 Replacement content: Mincho (Mincho 12 points) Also change character attributes Search condition 1 above , Replacement Condition 1, the document processing device searches for the character string "Mincho", ignoring character attributes, and replaces the searched character string with "Mincho".
Replace with the Mincho 12 point character string and the character attributes of the replacement character string. As a result, the three character strings "Mincho" with different point sizes are replaced with the Mincho 12-point character string "Mincho" as shown in FIG.

また第6図に示すような文−について、以下に示す探索
条件および置換条件を指定して検索/It換処理を行っ
た場合について説明する。
Further, a case will be described in which a search/It conversion process is performed on a sentence as shown in FIG. 6 by specifying the search conditions and replacement conditions shown below.

[探索条件2] 探索内容:明朝  (明朝12ポイント)文字の属性を
無視 大文字/小文字を無視 [置換条件2] 置換内容:みんちょう(明朝12ポイント)文字の属性
は変更しない 上記探索条件2、置換条件2の各条件においては、文書
処理装置は、これら各条件に従って処理を実行する。な
おこの場合、置換文字列は、文字の属性は変更しないと
いう条件が指定されているので、検索された文字列の文
字属性に合せて置換される。
[Search condition 2] Search content: Mincho (Mincho 12 points) Ignore character attributes Ignore uppercase/lowercase letters [Replacement condition 2] Replacement content: Mincho (Mincho 12 points) The above search does not change character attributes In each of Condition 2 and Replacement Condition 2, the document processing device executes processing according to each of these conditions. In this case, since the replacement character string is specified with the condition that the character attributes are not changed, the replacement character string is replaced in accordance with the character attributes of the searched character string.

すなわち、ポイントサイズの異なる3つの「明朝」とい
う文字列は、第8図に示すように、各文字列の文字属性
に合せて10ポイント、14ポイント、18ポインの「
みんちょう」という文字列。
In other words, the three character strings "Mincho" with different point sizes are 10 points, 14 points, and 18 points, depending on the character attributes of each character string, as shown in Figure 8.
The character string "Mincho".

に置換される。will be replaced with

さらに、第9図に示すような文書について、以下に示す
探索条件および置換条件を指定して検索/置換処理を行
った場合について説明する[探索条件31 探索内容:ABG(ゴシック14ポイント)文字の属性
も含む 大文字/小文字を無視 [@換条件3] 置換内容:ABC (明朝18ポイント、アンダーライン付き)文字の属性
も変更 上記探索条件3、置換条件3においては、支出処理装置
は、fABcJというゴシック14ポイントの文字列を
文字の属性も含めて、大文字・小文字の違いは無視して
探索し、その探索された文字列を、置換文字列の文字の
属性でrABcJという明朝18ポイントでアンダーラ
イン付きの文字列に置換している。
Furthermore, we will explain the case where search/replace processing is performed on a document as shown in Figure 9 by specifying the search conditions and replacement conditions shown below [Search condition 31 Search content: ABG (Gothic 14 point) characters. Ignore uppercase/lowercase letters including attributes [@conversion condition 3] Replacement content: ABC (Mincho 18 points, with underline) Also change character attributes In search condition 3 and replacement condition 3 above, the expenditure processing device is fABcJ Search for the Gothic 14 point character string including the character attributes, ignoring the difference between uppercase and lowercase letters, and search for the searched character string in Mincho 18 point rABcJ with the character attributes of the replacement string. Replaced with an underlined string.

すなわち、探索された文字列ABC(ゴシック14ポイ
ント)、abc(ゴシック14ポイント)、AbC<ゴ
シック14ポイント)の各文字列は、第10図に示すよ
う−に、置換文字列の文字の属性で、明朝18ポイント
でアンダーライン付きのrABcJという文字列に置換
される。
In other words, each of the searched character strings ABC (Gothic 14 points), abc (Gothic 14 points), and AbC<Gothic 14 points) is determined by the attributes of the characters in the replacement string, as shown in Figure 10. , will be replaced with the underlined character string rABcJ in 18 point tomorrow morning.

次に、第9図に示すような文書について、以下に示す探
索条件および置換条件を指定して検索/置換処理を行っ
たの場合について説明する。
Next, a case will be described in which a search/replacement process is performed on a document as shown in FIG. 9 by specifying the search conditions and replacement conditions shown below.

[探索条件4] 探索内容:ABC(ゴシック14ポイント)文字の属性
を無視 大文字/小文字を区別 [置換条件4] W1換内容: XYZ (明朝18ポイント、アンダーライン付き)文字の属性
を変更しない 上記探索条件4、置換条件4においては、文書処理Hf
ffは、rABcJという文字列を文字の属性を無視し
、大文字・小文字の区別して探索し、その探索された文
字列を、文字の属性を変更しないで「XYZ」という文
字列に置換する。
[Search condition 4] Search content: ABC (Gothic 14 points) Ignore character attributes, distinguish between uppercase and lowercase letters [Replacement condition 4] W1 conversion content: XYZ (Mincho 18 points, with underline) Do not change character attributes In the above search condition 4 and replacement condition 4, document processing Hf
ff searches for the character string rABcJ, ignoring the character attributes and distinguishing between uppercase and lowercase letters, and replaces the searched character string with the character string "XYZ" without changing the character attributes.

つまり、探索された文字列ABC(ゴシック14ポイン
ト)、ABC(ゴシック・ボールド14ポイント)、A
BC(ゴシック・イタリック14ポイント)の各文字列
は、第11図に示すように、探索された文字列の属性に
あわせて、ゴシック14ポイント、ゴシック・ボールド
14ポイント、ゴシック・イタリック14ポイントの[
XYZJという文字列に置換される。なお、置換内容の
ところでrXYZJにアンダーラインが付いているが、
文字の属性を変更しないという置換条件が指定されてい
るので、前記置換文字列には、第11図に示すように、
アンダーラインは付加されない。
That is, the searched character strings ABC (Gothic 14 points), ABC (Gothic Bold 14 points), A
As shown in Figure 11, each BC (Gothic Italic 14 Point) character string is divided into Gothic 14 Point, Gothic Bold 14 Point, Gothic Italic 14 Point [] according to the attributes of the searched character string.
Replaced with the character string XYZJ. Note that rXYZJ is underlined in the replacement content,
Since the replacement condition that the character attributes are not changed is specified, the replacement character string has the following as shown in Figure 11.
No underline is added.

なお、上記実施例では、文書中の全ての一致する文字列
を置換しているが、本発明はこれに限定されることなく
、次のようにしても良い。
Note that in the above embodiment, all matching character strings in the document are replaced, but the present invention is not limited to this, and may be replaced as follows.

すなわち、探索だけを行い一致した個数を表示するよう
にしたり、一致する文字列が見付かった時点でユーザに
置換するかどうかをひとつひとつ確認させる方法や、変
換(置換)する個数を予め指定する方法を組合わせるこ
ともできる。
In other words, it is possible to perform only a search and display the number of matches, to have the user confirm whether or not to replace each string when a matching string is found, or to specify in advance the number of strings to be converted (replaced). They can also be combined.

また、上記実施例では、探索の範囲を、文書の先頭から
支間全体を対象としているが、本発明はこれに限定され
ることなく、マウスあるいはカーソルの表示されている
位置から文書の残りを対象とする方法や、探索の範囲を
マウス等で指定する方法も可能である。
Further, in the above embodiment, the search range is the entire span from the beginning of the document, but the present invention is not limited to this, and the search range is from the position where the mouse or cursor is displayed to the rest of the document. It is also possible to specify the search range using a mouse or the like.

上記実施例によれば、同一文字に関して異なる属性、例
えば、菫なる文字種、異なる文字サイズ、またアルファ
ベットについては大文字・小文字、等のように異なる属
性の文字が文書中に混在している場合でも、探索条件お
よび置換条件を設定することにより、異なる属性の文字
を同じ属性の文字に短時間に効率良く置換できる。
According to the above embodiment, even when characters with different attributes for the same character, such as violet character type, different character size, upper case and lower case alphabet, etc., are mixed in the document, By setting search conditions and replacement conditions, characters with different attributes can be efficiently replaced with characters with the same attribute in a short time.

(発明の効果) 以上説明したように本発明によれば、検索対象となる文
字は、指定手段によって指定された属性内容に応じて探
索され、さらに属性指定手段によって指定された属性を
有する文字に置換されるため、文書中に同じ文字に関し
て属性の異なる文字が混在している場合でも、これら属
性の異なる文字を所望するffi性の文字に統一して一
括に置換することができるので、編集作業の作業時間を
大幅に短縮させることができ、また作業効率を大幅に向
上させることが可能となる。
(Effects of the Invention) As explained above, according to the present invention, characters to be searched are searched according to the attribute contents specified by the specifying means, and characters having the attributes specified by the attribute specifying means are searched for. Even if the same character with different attributes coexists in a document, these characters with different attributes can be unified and replaced with the desired ffi character at once, making editing work easier. It is possible to significantly shorten the working time and to greatly improve the working efficiency.

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

第1図は本発明に係る支出処理装置の一実施例を示した
ブロック図、第2図は文書データの構成の一例を示した
図、第3図、第4図、第5図はそれぞれ第1図に示した
文書処理装置の探索/M換処理の動作を示したフローチ
ャート、第6図、第7図、第8図、第9図、第10図、
第11図はそれぞれ第1図に示した文書処理装置の探索
/置換処理の一例を示した図である。 10・・・中央処理装置(CPU)、11・・・キーボ
ード/マウス制御部、12・・・キーボード、13・・
・マウス、14・・・ディスク制御0部、15・・・表
示制御部、16・・・実メモリ、17・・・ディスク装
置、18・・・表示装置。 第2図 第5図 明11110ポイント、明朝14ポイント。明朝18ポ
イント。 第6図 みんちょう10ポイント、みんちrう14ポイント。 インド。 第7図 みんちょう18ポ 第3図 みんちrうlOポイント、みんちょう14ポイント。み
んちょう18ポイント。 第8因
FIG. 1 is a block diagram showing an embodiment of an expenditure processing device according to the present invention, FIG. 2 is a diagram showing an example of the structure of document data, and FIGS. Flowcharts showing the operation of the search/M conversion process of the document processing device shown in FIG. 1, FIGS. 6, 7, 8, 9, 10,
FIG. 11 is a diagram showing an example of the search/replace processing of the document processing apparatus shown in FIG. 1, respectively. 10... Central processing unit (CPU), 11... Keyboard/mouse control unit, 12... Keyboard, 13...
Mouse, 14...Disk control unit 0, 15...Display control unit, 16...Real memory, 17...Disk device, 18...Display device. Figure 2: Figure 5: 11,110 points in the morning, 14 points in the morning. 18 points tomorrow morning. Figure 6 Mincho 10 points, Mincho 14 points. India. Figure 7 Mincho 18 points Figure 3 Mincho 14 points. Mincho 18 points. 8th cause

Claims (1)

【特許請求の範囲】 文書中の所定の文字を検索し、該検索された文字を指定
された文字に変換する文書処理装置において、 検索対象となる文字の属性を、当該検索対象となる文字
を検索する際の条件とするか否かを指定する指定手段と
、 前記指定手段の指定結果に応じた検索対象となる文字を
前記文書中から検索する検索手段と、前記検索手段によ
って検索された文字を特定の文字に変換する際、当該特
定の文字の属性を指定する属性指定手段と を具えたことを特徴とする文書処理装置。
[Claims] In a document processing device that searches for a predetermined character in a document and converts the searched character into a specified character, a specifying means for specifying whether or not to be used as a condition for searching; a search means for searching the document for characters to be searched according to the specified result of the specifying means; and a character searched by the search means. 1. A document processing device comprising: an attribute specifying means for specifying an attribute of a specific character when converting the text into a specific character.
JP63151468A 1988-06-20 1988-06-20 Document processor Pending JPH023860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63151468A JPH023860A (en) 1988-06-20 1988-06-20 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63151468A JPH023860A (en) 1988-06-20 1988-06-20 Document processor

Publications (1)

Publication Number Publication Date
JPH023860A true JPH023860A (en) 1990-01-09

Family

ID=15519185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63151468A Pending JPH023860A (en) 1988-06-20 1988-06-20 Document processor

Country Status (1)

Country Link
JP (1) JPH023860A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05165820A (en) * 1991-12-13 1993-07-02 Sharp Corp Information processor
JPH06166235A (en) * 1992-11-27 1994-06-14 Nec Corp Character editing device
US6327718B1 (en) 1997-04-02 2001-12-11 Matsushita Electric Industrial Co., Ltd. Bidet
JP2005222164A (en) * 2004-02-03 2005-08-18 Just Syst Corp Device and method for data processing
US7323261B2 (en) 2001-09-27 2008-01-29 Kinyosha Co., Ltd. Compressible printing blanket and method of manufacturing a compressible printing blanket

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05165820A (en) * 1991-12-13 1993-07-02 Sharp Corp Information processor
JPH06166235A (en) * 1992-11-27 1994-06-14 Nec Corp Character editing device
US6327718B1 (en) 1997-04-02 2001-12-11 Matsushita Electric Industrial Co., Ltd. Bidet
US7323261B2 (en) 2001-09-27 2008-01-29 Kinyosha Co., Ltd. Compressible printing blanket and method of manufacturing a compressible printing blanket
US7361245B2 (en) 2001-09-27 2008-04-22 Kinyosha Co., Ltd. Compressible printing blanket and method of manufacturing a compressible printing blanket
JP2005222164A (en) * 2004-02-03 2005-08-18 Just Syst Corp Device and method for data processing

Similar Documents

Publication Publication Date Title
JPH023860A (en) Document processor
JPH076168A (en) Method for editing of structured document giving sbcs font and dbsc font by using dbsc code page
JPS5985532A (en) Designating system for editing range of sentence
JPH077411B2 (en) Document processor
JP3528249B2 (en) Document processing device
JP3847801B2 (en) Character processing apparatus and processing method thereof
JPH06149790A (en) Document processor
JP2898983B2 (en) Document processing device
JPH07152783A (en) Document editing device
JPH0731315Y2 (en) Electronics
JPS62263567A (en) Input system using pointing device and key
JPS6326766A (en) Kana/kanji converting device
JPH01177674A (en) Kana/kanji converter
JPH1166090A (en) Information processor, dictionary information using method and recording medium
JPH08297664A (en) Character string processor
JPS61272864A (en) Sentence processor
JPH0623973B2 (en) Character processor frequency change method
JPH0370066A (en) Character processor
JPH0467227B2 (en)
JPS62156761A (en) Document data processor
JPS6198475A (en) Japanese sentence input device
JPH0814819B2 (en) Kana-Kanji converter
JPH02136970A (en) English word retrieving device
JPH0256673A (en) Kana and kanji converting device
JPH02156378A (en) Word retrieve processing system