JPH03171252A - Character processor - Google Patents
Character processorInfo
- Publication number
- JPH03171252A JPH03171252A JP1311504A JP31150489A JPH03171252A JP H03171252 A JPH03171252 A JP H03171252A JP 1311504 A JP1311504 A JP 1311504A JP 31150489 A JP31150489 A JP 31150489A JP H03171252 A JPH03171252 A JP H03171252A
- Authority
- JP
- Japan
- Prior art keywords
- character
- data
- editing
- character data
- replacement
- 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
Links
- 238000006467 substitution reaction Methods 0.000 abstract 5
Landscapes
- Document Processing Apparatus (AREA)
Abstract
Description
【発明の詳細な説明】
(イ)産業上の利用分野
この発明は文書編集機能を有する文字処理装置に関し、
詳しくは文中から検索した文字を、指定した文字に置き
換える検索置換機能を有する文字処理装置に関する。DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Use This invention relates to a character processing device having a document editing function.
More specifically, the present invention relates to a character processing device having a search and replace function that replaces a character searched in a sentence with a specified character.
(ロ)従来の技術
従来、この種の文字処理装置における検索置換機能では
、文中に既に入力している文字“ABC“をすべて文字
“DEP“に置き換えるような場合、被検索文字“AB
C“に例えば倍角文字を示す編集コードか付されていて
も、置換する文字“DEF”には晧角文字を示す編集コ
ードが付されないため、置換後の文字“DEF”は普通
文字にて置換される。したがって、置換前の文字の書体
と置換後のそれとを同じにしたい場合は、置換後の各文
字ずつ倍角文字の編集コードを付加する必要があった。(B) Conventional technology Conventionally, in the search and replace function of this type of character processing device, when all the characters "ABC" that have already been input in a sentence are to be replaced with the characters "DEP", the characters to be searched "AB"
For example, even if an edit code indicating a double-width character is attached to "C", an edit code indicating a double-width character is not attached to the character "DEF" to be replaced, so the replaced character "DEF" will be replaced with a normal character. Therefore, if you wanted the font of the character before replacement to be the same as the font after replacement, it was necessary to add a double-width character edit code to each character after replacement.
また、特公昭63− 67215号公報の「文書作威装
置」には、文章中に文字を挿入する場合において、挿入
位置の前後の文字に付された制御コード(lit集コー
ド)に従って、挿入する文字にも制御コードを付加する
構威が開示されている。この従来の装置は、文字を文章
中に挿入する際に、前後の文字の制御コードが一致する
かどうかを判断し、一致する場合に自動的に前後の文字
と同じ制御コードを、挿入しようとする文字に付すよう
に構成されている。In addition, the "document production device" of Japanese Patent Publication No. 63-67215 has a method for inserting characters into text according to control codes (lit collection codes) attached to the characters before and after the insertion position. A structure is disclosed in which control codes are also added to characters. When inserting a character into a sentence, this conventional device judges whether the control codes of the preceding and following characters match, and if they match, it automatically attempts to insert the same control code as the preceding and following characters. It is configured to be attached to the character.
(ハ)発明が解決しようとする課題
しかしながら、このような文書作成装置は、検索置換や
、一字消去と一字挿入を同時に行い文字の置換を行うい
わゆる上書きによる訂正を行う際のように、単語や文字
を消去して他のそれらに置き換えろ処理には適用できず
、したかって上記した問題は依然として解消されなかっ
た。(C) Problems to be Solved by the Invention However, such document creation devices do not perform corrections such as search and replace, or so-called overwriting, which replaces characters by deleting and inserting a character at the same time. This method cannot be applied to the process of deleting words or characters and replacing them with other words, so the above-mentioned problems still remain.
この発明は以上の事情を考慮してなされたもので、検索
置換や上書き訂正において置換前の文字に付されていた
編集データを、置換後の文字に自動的に付すことのでき
ろ文字処理装置を提供する。This invention has been made in consideration of the above circumstances, and is a character processing device that can automatically add editing data attached to a character before replacement to a character after replacement in search and replacement or overwrite correction. I will provide a.
(二)課題を解決するための手段
第l図はこの発明の基本構威を明示するブロック図であ
る。同図においてこの発明は、文字データを入力する入
力手段1と、文字データを倍角文字やアンダーライン付
文字等の編集情報にしたがって編集する編集手段2と、
lっの文字データ毎に編集情報が付されてなる文書を記
憶する記憶手段3とを有する文字処理装置において、
文書中の少なくともl以上の文字データを指定する指定
手段4と、該指定手段4により指定された文字データの
先頭文字データに付されている編集データを前記記憶手
段3から読み出す読出手段5と、前記入力手段lから入
力される少なくとも1以上の置換用の文字データを記憶
する置換文字データ記憶手段6と、前記読出手段5より
読み出されたsgiデータを、置換文字データ記憶手段
6に記憶されている置換用の各文字データに付加する編
集データ付加手段7と、前記指定手段4により指定され
た文字データを、編集データ付加手段7により編集デー
タが付加された置換用の文字データと置き換えて前記記
憶手段3に記憶させる置換手段8とを備えてなる文字処
理装置である。(2) Means for Solving the Problems FIG. 1 is a block diagram showing the basic structure of the present invention. In the figure, the present invention includes an input means 1 for inputting character data, an editing means 2 for editing the character data according to editing information such as double-width characters and underlined characters,
A character processing device having a storage means 3 for storing a document in which editing information is attached to each character data of 1 characters, the designation means 4 for designating at least 1 character data in the document, and the designation means 4 reading means 5 for reading out from the storage means 3 the editing data attached to the first character data of the character data specified by; and a replacement for storing at least one character data for replacement inputted from the input means 1. a character data storage means 6; an edit data addition means 7 for adding the sgi data read from the reading means 5 to each character data for replacement stored in the replacement character data storage means 6; and the specification means. This character processing device comprises a replacing means 8 for replacing the character data specified by 4 with replacement character data to which editing data has been added by an editing data adding means 7, and storing the replaced character data in the storage means 3.
この発明において編集データとは、文章を構成している
特定の文字を強調したり、他の部分との区別を行う目的
で識別させるために付加する情報であり、具体的にはア
ンダーライン、網掛け、半角、臆倍角、縦倍角、4倍角
、拡大(文字毎にタテ、ヨコの拡大率を指定)、ボール
ド、斜体、白抜き文字、色指定(カラー印字機能を有す
るワードプロセッサにて文字毎に色を指定する場合)等
が挙げられる。なお;編集データを付加する方法として
は、各文字コードの未使用のビットに割り当てる方法、
付加情報として1バイトを付加する方法等が挙げられる
。In this invention, editing data refers to information that is added to emphasize specific characters that make up a text or to distinguish it from other parts, and specifically includes underlining, dots, etc. Multiply, half-width, double-width, double-height, quadruple-width, enlarge (specify the vertical and horizontal enlargement ratio for each character), bold, italic, white text, color specification (for each character with a word processor with color printing function) (when specifying a color), etc. Note: Methods for adding editing data include assigning it to unused bits of each character code,
Examples include a method of adding 1 byte as additional information.
(ホ)作用
この発明に従えば、指定手段によって文書中の少なくと
もl以上の文字データを指定し、入力手改−−L一−−
ILIJ&ヱ▲−1+怜●ゴ−x−Il\ナトノLナ1
以上入力し、置換の指示を行うと、読出手段は、指定し
た文字データにおける先頭文字データに付されている編
集データを記憶手段から読み出し、その読み出された編
集データは、編集データ付加手段によって、置き換えた
い文字データの各文字データに付加され、次いで指定し
た文字データは、置換手段によって、編集データの付さ
れた文字データに置き換えられて記憶手段に記憶されろ
よう作用する。(E) Effect According to this invention, at least l or more character data in a document is specified by the specifying means, and the input is manually changed.
ILIJ&ヱ▲-1+Rei●Go-x-Il\NatonoLna1
When the above input is made and a replacement instruction is given, the reading means reads out the editing data attached to the first character data in the specified character data from the storage means, and the read editing data is sent to the editing data adding means. , is added to each character data of the character data to be replaced, and then the designated character data is replaced by the character data to which the editing data has been added by the replacing means and stored in the storage means.
(へ)実施例
以下図に示す実施例に基づいてこの発明を詳述する。な
お、これによってこの発明は限定されるものではない。(F) EXAMPLES The present invention will be described in detail below based on examples shown in the figures. Note that this invention is not limited by this.
第2図はこの発明の一実施例としての日本語ワードプロ
セッサの構威を示すブロック図である。FIG. 2 is a block diagram showing the structure of a Japanese word processor as an embodiment of the present invention.
同図において10は入力手段としてのキーボードであり
、文字データを入力するための文字キー検索モードを呼
び出すための検索キー、検索置換を実行させるための実
行キー、および倍角指定、だめのファンクションキーを
備えている。このキーボードIOから入力された文字デ
ータや指示は、編集手段、指定手段、読出手段、編集デ
ータ付加手段および置換手段として機能するCPUII
(後述する)に与えられる。このCPUIIにはROM
l2、表示装置l3、記憶手段としての文章メモリl4
、検索語バッファl5、置換文字データ記憶手段として
の置換語バッファ16、比較バッファl7そして置換語
修飾バッファl8がそれぞれ接続されている。ROMl
2の記憶内容は、Cputiを制御するための制御プロ
グラムと、かな漢字変換を行うためのかな漢字変換辞書
とからなる。In the same figure, numeral 10 is a keyboard as an input means, which includes a search key for calling the character key search mode for inputting character data, an execution key for executing search and replace, and a function key for specifying double-width. We are prepared. Character data and instructions input from this keyboard IO are transferred to the CPU II, which functions as an editing means, a specifying means, a reading means, an edited data adding means, and a replacing means.
(described later). This CPU II has ROM
l2, display device l3, text memory l4 as a storage means
, a search word buffer l5, a replacement word buffer 16 as replacement character data storage means, a comparison buffer l7, and a replacement word modification buffer l8 are connected to each other. ROMl
The storage contents of 2 consist of a control program for controlling CPU and a kana-kanji conversion dictionary for performing kana-kanji conversion.
前記文章メモリl4の記憶内容は、文字データと編集デ
ータとからなる。検索語バッファl5は検索置換におい
て置き換えられる語を一時的に格納し、置換語バッファ
l6は同じく置き換える語を一時的に洛納する。そして
例えば単語“ABC”を単語“DEF”に検索置換する
際は、文章メモリl4から単語が1ずつ比較バッファl
7に転送され、転送された単語は、CPUIIにより、
検索語バッファl5に記憶されていろ単語“ABC”と
比較される。ここで一致した場合、CPUIIは、it
換語バッファl6に格納されていろ単語“DEF“を置
換語修飾バッファl8に転送し、比較バッファl7に格
納されていろ単語“ABC”に既に付されている編集デ
ータと同じ編集データを置換語修飾バブファ!s内の“
DEF”に付加する。そして編集データの付加された単
語“DEF”を、文章メモリ14において単語“ABC
”が先に記憶されていた位置に更新記憶させる。The stored contents of the text memory l4 consist of character data and editing data. The search word buffer l5 temporarily stores words to be replaced in search and replacement, and the replacement word buffer l6 also temporarily stores words to be replaced. For example, when searching and replacing the word "ABC" with the word "DEF", the words are extracted one by one from the text memory l4 into the comparison buffer l.
7, and the transferred words are transferred to CPU II by
It is compared with the word "ABC" stored in the search word buffer l5. If there is a match here, the CPUII
The word "DEF" stored in the replacement buffer l6 is transferred to the replacement word modification buffer l8, and the same editing data as the editing data already attached to the word "ABC" stored in the comparison buffer l7 is added to the replacement word. Qualified Babufa! " in s
Then, the word “DEF” to which the editing data has been added is added to the word “ABC” in the sentence memory 14.
” is updated and stored at the location where it was previously stored.
通常、文章中の単語は、それを構成しているすべての文
字が同じ編集情報(倍角、アンダーライン等の修飾情報
)を持っている。そしてその単語を他の単語に置き換え
る際は、ほとんどの場合、置き換える単語のすべてに対
し、置き換える前の文字に付されていた編集情報と同じ
編集情報を付け直す作業が発生する。したがって、単語
を置き換える場合には、置き換える単語を構戊するすべ
ての文字に、上記したように編集コードを一律に付加す
ることが効果的である。Normally, all the characters that make up a word in a sentence have the same editing information (modifying information such as double-width, underlining, etc.). When replacing that word with another word, in most cases, it is necessary to re-add the same editing information that was attached to the character before replacing it to all the replaced words. Therefore, when replacing a word, it is effective to uniformly add an edit code as described above to all characters that make up the word to be replaced.
次にこの実施例の動作を第3図に示すフローチャートに
従って説明する。なお、検索置換を例に取り説明する。Next, the operation of this embodiment will be explained according to the flowchart shown in FIG. Note that search and replacement will be explained as an example.
まず、検索キーを押して検索モードを呼び出し、画面上
に検索ウインドウを表示させる。そしてそのウインドウ
内に、置換される語としての検索文字を入力する。入力
された検索文字は検索語バッファ15に転送され、検索
語バッファl5に格納されろ(ステップ20)。次に同
じウインドウ内に置換する語としての置換文字を入力す
る。入力された置換文字は置換語バッファ16に転送さ
れ、置換語バッファ16に格納される(ステップ21)
。First, press the search key to call up search mode and display a search window on the screen. Then, enter search characters as the word to be replaced in the window. The input search characters are transferred to the search word buffer 15 and stored in the search word buffer l5 (step 20). Next, input the replacement character as the word to be replaced in the same window. The input replacement character is transferred to the replacement word buffer 16 and stored in the replacement word buffer 16 (step 21).
.
ここで実行キーを押すと検索置換が開始され、文書メモ
リl4に対し、検索語バッファl5に格納されていろ文
字の検索が行われる(ステップ22)。When the execution key is pressed here, search and replacement is started, and the document memory l4 is searched for the characters stored in the search word buffer l5 (step 22).
次いで検索文字が文書メモリ14内に見つかったかどう
かを判断し(ステップ23)、YESであれば置換語バ
ッファl6の文字を置換語修飾バッファ18にコピーす
る(ステップ24)。次いで置換語バッファl8内の文
字に対し、見つかった検索文字に付されていた編集デー
タを付加する(ステップ25)。次いで文章メモリ14
内の検索された文字を削除し、置換語修飾バッファ!8
内の文字すなわち編集データか付加された文字を、同じ
泣置に記憶させる(ステップ26)。次いで検索文字が
文末かどうかを判断し(ステップ27)、Noであれば
、上記ステップ22〜26のルーチンを繰り返し、また
、YESであれば検索置換の処理を終了する。Next, it is determined whether the search character is found in the document memory 14 (step 23), and if YES, the characters in the replacement word buffer l6 are copied to the replacement word modification buffer 18 (step 24). Next, the editing data attached to the found search character is added to the character in the replacement word buffer l8 (step 25). Next, text memory 14
Delete the searched characters in the modified buffer and replace them with the word! 8
The characters within, that is, the edited data or the added characters are stored in the same location (step 26). Next, it is determined whether the search character is at the end of the sentence (step 27), and if no, the routine of steps 22 to 26 is repeated, and if YES, the search and replace process is ended.
第4図の(a)(b)および(c)において、上記の処
理によって文字“ABC”を文字“DEF”に検索置換
した場合の表示例を示す。4A, 4B, and 4C show display examples when the characters "ABC" are searched and replaced with the characters "DEF" by the above process.
なお、この実施例においては検索置換を例に取り説明し
たが、上書きによる文字訂正を含み、l以上の単語また
は記号を、他の1以上の単語または記号に置き換える処
理すべてにこの発明を適用することができる。Although this embodiment has been explained using search and replace as an example, the present invention is applicable to all processes that replace l or more words or symbols with one or more other words or symbols, including character correction by overwriting. be able to.
(ト)発明の効果
この発明によれば、文章の編集において置換される単語
の先頭文字に付されているg集情報を、置換しようとす
る単語のすべての文字に自動的に付加することができる
ので、置換した単語を置換前の書式に合わせるための訂
正作業が不要となり編集作業の効率を著しく高めろこと
ができる。この発明は、検索置換のように置換する単語
が多数存在する場合に特に高い効果が得られる。(G) Effects of the Invention According to this invention, it is possible to automatically add g-collection information attached to the first character of a word to be replaced in text editing to all characters of the word to be replaced. This eliminates the need for correction work to match the replaced word to the format before replacement, making it possible to significantly improve the efficiency of editing work. This invention is particularly effective when there are many words to be replaced, such as in search and replace.
第l図はこの発明の基本構戒を明示するブロック図、第
2図は同じく一実施例の日本語ワードプロセッサの構成
を示すブロック図、第3図は同じく一実施例の動作を説
明するフローチャート、第4図の(a ).(b )お
よび(c)は同じく一実施例による表示例を示す説明図
である。
l・・・・・・入力手段、
2・・・・・・編集手段、
3・・・・・・記憶手段、
4・・・・・・指定手段、
5・・・・・・読出手段、
6・・・・・・置換文字データ記憶手段、7・・・・・
・編集データ付加手段、
8・・・・・・置換手段。
第
1
図
第
2
図
第
4
図
−−−−−−−−−−ABC−−−−−−ムX挟前
(a)
4
−−一−−−−−−DEF−−−−−−2換復
ー−−−−一−^8C−−−−−−
X挟前
(b)
1
−−−−−−−− DEF 一−−
X換後
(c)
−一一−−一一−一凹!.−−−−−−−1
−−−−−−−−−DEF−−−−−−−一夏換前
1換後FIG. 1 is a block diagram clearly showing the basic structure of this invention, FIG. 2 is a block diagram showing the configuration of a Japanese word processor according to an embodiment, and FIG. 3 is a flowchart explaining the operation of the embodiment. Figure 4 (a). (b) and (c) are explanatory diagrams similarly showing display examples according to one embodiment. l...Input means, 2...Editing means, 3...Storage means, 4...Designation means, 5...Reading means, 6...Replacement character data storage means, 7...
・Edited data addition means, 8... Replacement means. Fig. 1 Fig. 2 Fig. 4 2-conversion ----1-^8C-------- Before X (b) 1 ----------- DEF 1-- After X conversion (c) -11--11 - One dent! .. −−−−−−−1 −−−−−−−−−DEF−−−−−−−Before one summer change After one change
Claims (1)
角文字やアンダーライン付文字等の編集情報にしたがっ
て編集する編集手段と、1つの文字データ毎に編集情報
が付されてなる文書を記憶する記憶手段とを有する文字
処理装置において、文書中の少なくとも1以上の文字デ
ータを指定する指定手段と、該指定手段により指定され
た文字データの先頭文字データに付されている編集デー
タを前記記憶手段から読み出す読出手段と、前記入力手
段から入力される少なくとも1以上の置換用の文字デー
タを記憶する置換文字データ記憶手段と、前記読出手段
より読み出された編集データを、置換文字データ記憶手
段に記憶されている置換用の各文字データに付加する編
集データ付加手段と、前記指定手段により指定された文
字データを、編集データ付加手段により編集データが付
加された置換用の文字データと置き換えて前記記憶手段
に記憶させる置換手段とを備えてなる文字処理装置。1. An input means for inputting character data, an editing means for editing character data according to editing information such as double-width characters and underlined characters, and storing a document in which editing information is attached to each character data. A character processing device having a storage means, a designation means for designating at least one character data in a document, and a storage means for storing editing data attached to the first character data of the character data designated by the designation means. a reading means for reading from the input means; a replacement character data storage means for storing at least one replacement character data inputted from the input means; and a replacement character data storage means for storing the edited data read by the reading means. an editing data adding means for adding to each stored character data for replacement; A character processing device comprising: substitution means for storing in a storage means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1311504A JPH03171252A (en) | 1989-11-29 | 1989-11-29 | Character processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1311504A JPH03171252A (en) | 1989-11-29 | 1989-11-29 | Character processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03171252A true JPH03171252A (en) | 1991-07-24 |
Family
ID=18018033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1311504A Pending JPH03171252A (en) | 1989-11-29 | 1989-11-29 | Character processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03171252A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05165820A (en) * | 1991-12-13 | 1993-07-02 | Sharp Corp | Information processor |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS64148B2 (en) * | 1984-05-02 | 1989-01-05 | Mitsubishi Seiko Kk |
-
1989
- 1989-11-29 JP JP1311504A patent/JPH03171252A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS64148B2 (en) * | 1984-05-02 | 1989-01-05 | Mitsubishi Seiko Kk |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05165820A (en) * | 1991-12-13 | 1993-07-02 | Sharp Corp | Information processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7984076B2 (en) | Document processing apparatus, document processing method, document processing program and recording medium | |
JPS5913771B2 (en) | Editing display method of display device | |
US5261103A (en) | Method of and system for compiling source program | |
JPS60164863A (en) | Word processor | |
JPH03171252A (en) | Character processor | |
JPH03233670A (en) | Text data conversion system | |
JPS60176784A (en) | Table data insertion printing device | |
JPS5969831A (en) | Device for documentation | |
JPS6010348B2 (en) | Automatic conversion method for half-width and full-width characters | |
JPS58151677A (en) | Editing method of translated sentence | |
JPH08190561A (en) | Document correction device | |
JPH01159758A (en) | English editing system | |
JPH07306863A (en) | Document / Dictionary Link Generator | |
JPS59135533A (en) | Calibration method | |
JPS6366663A (en) | Control system for document structure | |
JPS62171068A (en) | Document preparing device | |
JPH04268957A (en) | Document preparing device | |
JPH0778799B2 (en) | Text coding method | |
JPH04190450A (en) | Document processor | |
JPH02116963A (en) | Document data processing device | |
JPS60221865A (en) | Document processor | |
JPS61285534A (en) | Index production system | |
JPH06243136A (en) | Document preparing device | |
JPS63174161A (en) | Document processor | |
JPH06203070A (en) | Document correction part retrieval system |