JPH01243171A - Data processor - Google Patents

Data processor

Info

Publication number
JPH01243171A
JPH01243171A JP63070264A JP7026488A JPH01243171A JP H01243171 A JPH01243171 A JP H01243171A JP 63070264 A JP63070264 A JP 63070264A JP 7026488 A JP7026488 A JP 7026488A JP H01243171 A JPH01243171 A JP H01243171A
Authority
JP
Japan
Prior art keywords
code
processed
train
text
code 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
JP63070264A
Other languages
Japanese (ja)
Inventor
Ritsuko Kagami
加賀美 律子
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 JP63070264A priority Critical patent/JPH01243171A/en
Publication of JPH01243171A publication Critical patent/JPH01243171A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To facilitate the calibration and edit of data such as a sentence to which a successive number is added by processing the train of processed codes to be retrieved, replacing the train of the processed codes to be processed with the processed code train to be retrieved and storing it into a text storing means. CONSTITUTION:In a text area 14a in an memory 14, a text code train inputted from a keyboard 11 or an external storage device 17 is stored, a character train, etc., corresponding to the text code train is displayed on a display 15. A user stores a series of the code train to contain the successive number in a retrieved code train storage area 14b by substituting the successive number part for a normal code. The processed code train, in which the normal code is replaced with the other processed code or the train, is retrieved from the text code train. There, the train of a series of processed codes to contain the successive number, etc., is retrieved, a prescribed processing is executed to the successive number part, etc., of the processed code train, the processed code is replaced with the train of the processed code to be retrieved, and it is stored into the text storage area 14a. Thus, the processing of the successive number can be facilitated.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はワードプロセッサ、エデイツタ等の、文章等を
コード化したデータを処理するデータ処理装置に関する
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a data processing device, such as a word processor or an editor, which processes data in which a text or the like is encoded.

[従来技術] 従来のデータ処理装置として、利用者が指定した特定の
コード列を他のコード列に置換える置換機能を有するワ
ードプロセッサが知られでいる。
[Prior Art] As a conventional data processing device, a word processor is known which has a replacement function for replacing a specific code string specified by a user with another code string.

また、コード列の指定方法としては、被処理コード以外
の特定のコード(正規コード)を含ませ、その特定のコ
ードの位置に任意あるいは予め設定されたコード中の任
意のコードを挿入したコード列を検索し、そのコード列
を置換する機能を有したエデイツタもある。このような
指定方法を一般に正規表現と呼ぶ。
In addition, as a method of specifying a code string, a code string that includes a specific code (regular code) other than the code to be processed, and inserts an arbitrary code from among the codes set in advance at the position of the specific code. There is also an editor that has the function of searching for and replacing the code string. This type of specification method is generally called a regular expression.

E発明が解決しようとする課題1 しかし、例えば文書中にいくつかの項目があって、それ
らに連番号で数字の記号を付してあった場合、途中に項
目を追加する度にそれ以降の番号を付は直さなければな
らない。項目が数個であれば簡単だが、数が多くなると
面倒な作業である。
Problem to be solved by invention E 1 However, for example, if there are several items in a document and numerical symbols are attached to them with consecutive numbers, each time an item is added in the middle, the subsequent items will be Numbering must be corrected. This is easy when there are only a few items, but it becomes a tedious task when there are many items.

本発明は上記問題、αを解決するためになされたらので
、その目的は、連番号等の処理の容易なデータ処理装置
を提供することを目的とする。
The present invention was made to solve the above-mentioned problem α, and therefore, its object is to provide a data processing device that can easily process serial numbers and the like.

[課題を解決するための手段1 」二元目的を達成するために本発明は、テキストコード
列を記憶するテキスト記憶手段と、被検索コード列を記
憶する被検索コード列記憶手段と、被検索コード列を検
索する検索手段と、検索された被処理コードの列を処理
する処理手段と、処理された被処理コードの列を前記検
索された被処理コード列と置換えてテキスト記憶手段に
記憶させる置換手段とを有する。
[Means for Solving the Problem 1] In order to achieve the dual purpose, the present invention provides a text storage means for storing a text code string, a searched code string storage means for storing a searched code string, and a searched code string storage means for storing a searched code string. a search means for searching for a code string; a processing means for processing the searched code string to be processed; and a text storage means for storing the processed code string in place of the searched code string to be processed. and replacement means.

[作用] 以上のように構成された本発明において、例えば利用者
は連番号を含む一連のコード列を、その連番号部を正規
コードに代えて被検索コード列記憶手段に記憶させる。
[Operation] In the present invention configured as described above, for example, the user stores a series of code strings including serial numbers in the searched code string storage means by replacing the serial number part with the regular code.

検索手段はその正規コードを他の被処理コードあるいは
その列と置換えた被処理コード列をテキストコード列よ
り検索する。
The search means searches the text code string for a processed code string in which the regular code is replaced with another processed code or its sequence.

この検索により連番号等を含む一連の被処理コードの列
が検索される。次に処理手段は、前記検索された被処理
コード列の前記連番号部等に所定の処理を行う。置換手
段はその被処理コードを前記検索された被処理コードの
列と置換えてテキスト記憶手段に記憶させる。
This search searches for a series of processed codes including serial numbers and the like. Next, the processing means performs a predetermined process on the serial number part and the like of the retrieved code string to be processed. The replacing means replaces the processed code with the retrieved string of processed codes and stores it in the text storage means.

[実施例1 以下に本発明を具体化した一実施例を図面を参照して説
明する。
[Example 1] An example embodying the present invention will be described below with reference to the drawings.

第1図においてキーボード11は、入力された文章等を
コードに変換し、該キーボード11に接続される処理部
12にそのコードを送出すように構成されている。この
送出されるコードとしては、文章等を構成する被処理コ
ードと、他のコードと置換されて使用される正規コード
とがある。またこのキーボード11は、前記処理部12
の処理内容を指定する機能も有している。
In FIG. 1, the keyboard 11 is configured to convert input text, etc. into a code, and send the code to a processing section 12 connected to the keyboard 11. The transmitted codes include a processed code that constitutes a sentence, etc., and a regular code that is used in place of another code. Further, this keyboard 11 is connected to the processing section 12.
It also has a function to specify the processing content.

前記処理部12は、CPU13及びメモリ14を含んで
いる。このメモリ14は、文章等の文字をコード化した
各被処理コードの列であるテキストコード列を記憶する
ためのテキスト記憶手段に対応するテキストエリア14
a、被検索コード列に対応するコード列を記憶する被検
索コード列記憶手段に対応する検索コード列エリア14
b、及びその他種々の制御のための79−エリア14c
を有している。またこの処理部12には、コード列を出
力するためのデイスプレィ15及びプリンタ16、なら
びにコード列を記憶するための外部記憶装置17が接続
されている。
The processing section 12 includes a CPU 13 and a memory 14. This memory 14 includes a text area 14 corresponding to a text storage means for storing a text code string that is a string of each processed code that encodes characters such as sentences.
a. Search code string area 14 corresponding to the searched code string storage means for storing the code string corresponding to the searched code string.
b, and 79-area 14c for various other controls.
have. Also connected to this processing section 12 are a display 15 and a printer 16 for outputting the code string, and an external storage device 17 for storing the code string.

以上のように構成された本ワードプロセッサにおける本
発明に関連する機能及びその作用を以下に説明する。
The functions and operations related to the present invention in the word processor configured as described above will be explained below.

前記メモリ14におけるテキストエリア14aには、前
記キーボード11あるいは外部記憶装置17より入力さ
れたテキストコード列が記憶され、そのテキストコード
列に対応する文字列等がデイスプレィ15に表示されて
いる。テキストエリア14aに、第2図(a)に示す文
章に対応する被処理コード列が記憶されている場合につ
いて説明する。このような文における矢印Aで示す位置
に、例えば[(2)画像のディジタル信号処理]という
文を加入した場合、第2図(b)に示すようになり、矢
印Bで示す位置以後にある総ての「(」及び「)」で囲
まれた数字を書換える必要がある。この場合において、
利用者は先ず前記矢印Bの示す位置にカーソルを置く。
A text area 14a in the memory 14 stores a text code string input from the keyboard 11 or external storage device 17, and a character string etc. corresponding to the text code string is displayed on the display 15. A case will be described in which a to-be-processed code string corresponding to the sentence shown in FIG. 2(a) is stored in the text area 14a. For example, if the sentence [(2) Digital signal processing of images] is added to the position shown by arrow A in such a sentence, it will become as shown in Figure 2 (b), and after the position shown by arrow B. It is necessary to rewrite all the numbers enclosed in "(" and ")". In this case,
The user first places the cursor at the position indicated by the arrow B.

次にキーボード11を操作して「(」を表す被処理コー
ド、正規コード、及び「)」を表す被処理コードを順に
検索コード列エリア14bに記憶させる。次に同キーボ
ード11を操作して、前記正規コードに置換える被処理
コードの範囲を指定する。ここでは正規コードに、各数
字に対応する総てのコード及びコード列を置換可能に指
定する。更にキーボード11を操作して、前記正規コー
ドが置換えられる各コードに対する処理を入力する。こ
こでは正規コードが置換えられる各数字に討し1を加算
する処理手順を入力する。
Next, by operating the keyboard 11, the processed code representing "(", the regular code, and the processed code representing ")" are stored in order in the search code string area 14b. Next, the keyboard 11 is operated to designate the range of the processed code to be replaced with the regular code. Here, all codes and code strings corresponding to each number are specified as regular codes so that they can be replaced. Furthermore, by operating the keyboard 11, the user inputs processing for each code to be replaced with the regular code. Here, input a processing procedure for adding 1 to each number for which the regular code is to be replaced.

以上の入力を終了すると、キーボード11を操作して処
理部12に置換の処理の開始を指令する。
When the above input is completed, the keyboard 11 is operated to instruct the processing section 12 to start the replacement process.

以下にこの処理を第3図に示す70−チャートを参照し
て説明する。
This process will be explained below with reference to chart 70 shown in FIG.

処理部12は、先ずステップS21で、前記テキストエ
リア1.4aに記憶されるテキストコード列における前
記カーソルの位置より後方の領域において、前記検索コ
ード列エリア14bに記1にされるコード列、即ち、「
(」と「)」に対応するコードに数字を表すコードある
いはコード列が挟まれた一連のコード列を既知の手法で
検索する。前述の例では先ずr(2)Jが検索される。
First, in step S21, the processing unit 12 searches the code string written as 1 in the search code string area 14b in the area behind the position of the cursor in the text code string stored in the text area 1.4a, i.e. , “
A series of code strings in which a code or code string representing a number is sandwiched between codes corresponding to "(" and ")" is searched using a known method. In the above example, r(2)J is first searched.

前述のようにコード列が検索されると、ステップS22
の作用によりステップS23に進む。ステップS23で
は、検索されたコード列目2)」における前記正規コー
ドが置換えられたコード、即ち、前記検索コードエリア
14I]に記憶されるコーー列における正規コードの在
る位置と同じ位置にある被処理コード「2」について、
予め設定されるように、その被処理コードの表す数字に
1を加えて数字3を得る。次にステップS24において
検索された被処理コード列r(2)Jにおける前記正規
コードと置換えられた被処理コード「2」を前記3を表
す被処理コード「3」と置換え、その被処理コード列「
(3)」を置換コード列として、既知の手法により前記
検索された被処理コード列と置換える。次にステップS
21に戻り、前記検索された被処理コード列r(2)J
に続く被処理コード列「二次元・・・」に対して同様の
処理を繰返してゆき、r(3)J、r(4)」・・・を
同様にそれぞれr(4)JJ(5)J・・・に置換えて
いく。その結果、検索すべき被処理コード列が無くなる
と、ステップS22において分岐し、処理を終了する。
When the code string is searched as described above, step S22
The process proceeds to step S23 due to the action of. In step S23, the code in which the regular code in the retrieved code string 2) is replaced is the code that is located at the same position as the regular code in the code string stored in the search code area 14I. Regarding processing code “2”,
As previously set, 1 is added to the number represented by the code to be processed to obtain the number 3. Next, in step S24, the processed code "2" that has been replaced with the regular code in the processed code string r(2)J searched is replaced with the processed code "3" representing 3, and the processed code string is "
(3)'' is used as a replacement code string, and is replaced with the searched code string to be processed using a known method. Next step S
Returning to step 21, the searched code string to be processed r(2)J
The same process is repeated for the processed code string "2D..." following "2D...", and r(3)J, r(4)"... are similarly converted to r(4)JJ(5), respectively. Replace it with J... As a result, when there are no more processed code strings to be searched, the process branches to step S22 and ends the process.

このときテキストエリア14aには第2図(c)に示す
文章を表す被処理コード例が記憶されている。
At this time, an example of the code to be processed representing the sentence shown in FIG. 2(c) is stored in the text area 14a.

以」二、正規コードに数字を表すコードあるいはコード
列を対応させた例を示したが、アルファベット、カナ等
に対応させることも容易である。この場合、アルファベ
ットに対してはアルファベット類、カナに対しては50
音順に並べて数字に対応させると、処理が容易となる。
In the following, an example has been shown in which a regular code is associated with a code or a code string representing a number, but it is also easy to make it correspond to alphabets, kana, etc. In this case, alphabets for alphabets and 50 for kana.
Processing becomes easier if you arrange them in phonetic order and associate them with numbers.

[発明の効果] 以上詳述したように本発明のデータ処理装置では、連番
号等の付された文章等のデータの校正、編集等が容易と
なり、使用者の負担が軽減するとともに、操作効率が向
上する。
[Effects of the Invention] As detailed above, with the data processing device of the present invention, proofreading and editing of data such as sentences with serial numbers etc. are facilitated, reducing the burden on the user and improving operational efficiency. will improve.

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

第1図から第3図は本発明を説明するためのもので、第
1図は本発明の一実施例のワードプロセッサのMI!戊
を示す図、第2図(a)乃至第2図(c)は前記ワード
プロセンサの機能を説明するための図、第3図は前記ワ
ードプロセッサの置換処理における作用を説明するフロ
ーチャートである。 14a・・・テキストエリア、14b・・・検索コード
列エリア、S21・・・検索手段l:対応する処理、S
23・・・処理手段に対応する処理、S24・・・置換
手段に対応する処理。
1 to 3 are for explaining the present invention, and FIG. 1 shows MI! of a word processor according to an embodiment of the present invention. 2(a) to 2(c) are diagrams for explaining the functions of the word processor, and FIG. 3 is a flowchart for explaining the operation of the word processor in replacement processing. 14a...Text area, 14b...Search code string area, S21...Search means l: Corresponding process, S
23... Process corresponding to the processing means, S24... Process corresponding to the replacement means.

Claims (1)

【特許請求の範囲】 1、文字等を表す被処理コードにより構成されたテキス
トコード列を記憶するテキスト記憶手段と、 被検索コード列を記憶する被検索コード列記憶手段と、 該被検索コード列記憶手段に記憶された被検索コード列
に対応する被処理コードの列を前記テキスト記憶手段に
記憶されるテキストコード列より検索する検索手段と、 前記テキストコード列における前記検索手段により検索
された被処理コードの列が置換コード列と置換わるよう
に前記テキスト記憶手段に記憶されるテキストコード列
を書換える置換手段とを有し、 前記被検索コード列記憶手段に記憶される被検索コード
列に正規表現を表す正規コードが含まれる場合に、前記
検索手段が前記被検索コード列における前記正規コード
を他の被処理コードあるいは被処理コードの列と置換え
た被処理コードの列を検索するように構成したデータ処
理装置において、 前記検索手段によって検索された被処理コードの列にお
ける前記正規コードと置換えられた部分のコードに所定
の処理を施して、前記置換手段によって置換わる置換コ
ード列を作成する処理手段とを有することを特徴とする
データ処理装置。
[Scope of Claims] 1. Text storage means for storing a text code string composed of processed codes representing characters, etc.; Searched code string storage means for storing a searched code string; and the searched code string. a search means for searching the text code string stored in the text storage means for a string of to-be-processed codes corresponding to the searched code string stored in the storage means; a replacement means for rewriting the text code string stored in the text storage means so that the processing code string is replaced with a replacement code string; When a regular code representing a regular expression is included, the search means searches for a string of processed codes in which the regular code in the searched code string is replaced with another processed code or a string of processed codes. In the configured data processing device, a predetermined process is performed on the code of the part of the processed code string searched by the search means that has been replaced with the regular code to create a replacement code string to be replaced by the replacement means. A data processing device comprising a processing means.
JP63070264A 1988-03-24 1988-03-24 Data processor Pending JPH01243171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63070264A JPH01243171A (en) 1988-03-24 1988-03-24 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63070264A JPH01243171A (en) 1988-03-24 1988-03-24 Data processor

Publications (1)

Publication Number Publication Date
JPH01243171A true JPH01243171A (en) 1989-09-27

Family

ID=13426497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63070264A Pending JPH01243171A (en) 1988-03-24 1988-03-24 Data processor

Country Status (1)

Country Link
JP (1) JPH01243171A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01248273A (en) * 1988-03-30 1989-10-03 Toshiba Corp Document preparing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62235674A (en) * 1986-04-04 1987-10-15 Casio Comput Co Ltd Automatic retrieving, substituting and editing device
JPS62249270A (en) * 1986-04-23 1987-10-30 Toshiba Corp Document processor
JPS62290962A (en) * 1986-06-10 1987-12-17 Nec Corp Editing system for table of contents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62235674A (en) * 1986-04-04 1987-10-15 Casio Comput Co Ltd Automatic retrieving, substituting and editing device
JPS62249270A (en) * 1986-04-23 1987-10-30 Toshiba Corp Document processor
JPS62290962A (en) * 1986-06-10 1987-12-17 Nec Corp Editing system for table of contents

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01248273A (en) * 1988-03-30 1989-10-03 Toshiba Corp Document preparing device

Similar Documents

Publication Publication Date Title
JPH01243171A (en) Data processor
JPH0227423A (en) Method for rearranging japanese character data
JPS58151677A (en) Editing method of translated sentence
JPS60136865A (en) Retrieving device of dictionary
JPH052578A (en) Kana/kanji conversion system
JP3340124B2 (en) Kana-Kanji conversion device
JP3048793B2 (en) Character converter
JPH05108622A (en) Kana to kanji converter
JPS61285573A (en) Kana-to-kanji converting device
JPH10154141A (en) Kana-to-kanji (japanese syllabary-to-chinese character) conversion device
JPH0685169B2 (en) Document processing method
JPH0414168A (en) Word processor
JPH041849A (en) Japanese sentence processor
JPH04155571A (en) Document processor
JPH08297658A (en) Method and device for rearranging japanese characters
JPH05341961A (en) Alignment customizing method
JPH0443308B2 (en)
JPH0540748A (en) Word processor
JPH0610804B2 (en) Kana-Kanji converter
JPH08292954A (en) Japanese syllabary-chinese character converting device
JPH0578057B2 (en)
JPH10269211A (en) Japanese input method in japanese input system
JPH08137860A (en) Device and method for converting japanese syllabary to chinese character
JPH06215027A (en) Translated sentence example editing device
JPS59221731A (en) Kana/kanji conversion processor