JPS6269358A - Character processor - Google Patents

Character processor

Info

Publication number
JPS6269358A
JPS6269358A JP60209328A JP20932885A JPS6269358A JP S6269358 A JPS6269358 A JP S6269358A JP 60209328 A JP60209328 A JP 60209328A JP 20932885 A JP20932885 A JP 20932885A JP S6269358 A JPS6269358 A JP S6269358A
Authority
JP
Japan
Prior art keywords
parentheses
parenthesis
character
document memory
marks
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
JP60209328A
Other languages
Japanese (ja)
Inventor
Kazunobu Sugitani
和宣 杉谷
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 JP60209328A priority Critical patent/JPS6269358A/en
Publication of JPS6269358A publication Critical patent/JPS6269358A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To delete both of a pair of marks just by indicting one of these two marks with use of a character deletion instructing means, a right-left parenthesis discriminating means, a parenthesis retrieving means and a right-left parenthesis deleting means. CONSTITUTION:The characters are supplied to a document memory by a character input instructing device. Then a right-left parenthesis discriminating device is actuated by a deletion indicating means to discriminate the directions of the parentheses stored in the document memory. Then a parenthesis retrieving means works to retrieve the parentheses in the document memory. Furthermore the retrieved parentheses and the parentheses discriminated by the right-left parenthesis discriminating means are deleted out of the document memory by a right-left parenthesis deleting means. Thus both marks used in a pair can be deleted at a time just by designating one of these paired marks.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は文字及び記号を入力し、且つ削除する事の出来
る文字処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a character processing device that can input and delete characters and symbols.

[従来技術] 従来、文字及び記号を入力し、且つ削除する事の出来る
文字処理装置があった。しかしながら文字や記号を削除
するにあたっては1例えば成る文字列から括弧を外した
い場合でもその都度左括弧、右括弧を別々に検索して削
除しなければならず、常にペアで使用される記号の削除
は煩雑という欠点があった。
[Prior Art] Conventionally, there have been character processing devices that can input and delete characters and symbols. However, when deleting characters or symbols, for example, if you want to remove parentheses from a string of characters, you must search for and delete the left and right parentheses separately each time, and always delete symbols that are used in pairs. had the disadvantage of being complicated.

[発明が解決しようとする問題点] 本発明は上述した欠点を補い、ベアで使用される記号の
削除にあたっては片方を削除するだけでもう片方も同時
に削除する様にした文字処理装置を提供する事にある。
[Problems to be Solved by the Invention] The present invention compensates for the above-mentioned drawbacks and provides a character processing device that deletes only one symbol used in a bare symbol and deletes the other symbol at the same time. It's true.

[問題点を解決しようとするための手段及び作用] 本発明は第1図に示す如くまず文字入力指示装置によっ
て文書メモリに文字が入力され、削除指示手段により左
右括弧判別手段が働き文書メモリ中の括弧の向きを判別
し、さらに括弧検索手段が働き文書メモリ中の括弧が検
索される0次に左右括弧削除手段により検索された括弧
と前記左右括弧判別手段により判別された括弧の両方を
文書メモリ中から削除するものである。
[Means and operations for solving the problem] As shown in FIG. 1, the present invention first inputs characters into a document memory by a character input instructing device, and the left and right parentheses discriminating means is activated by the deletion instructing device to input characters into the document memory. Then, the parenthesis search means operates to search for parentheses in the document memory.Next, both the parentheses searched by the left and right parenthesis deletion means and the parentheses determined by the left and right parenthesis determination means are added to the document. It is deleted from memory.

[実施例] 以下図面を参照して本発明の詳細な説明する。[Example] The present invention will be described in detail below with reference to the drawings.

第2図は本発明文字処理装置の構成例を示す図である。FIG. 2 is a diagram showing an example of the configuration of the character processing device of the present invention.

CPU (中央処理装置)はROM (リードオンリメ
モリ)に含まれた第5図〜第7図に示す手順のプログラ
ムの内容を実行処理する事によりパスラインを介して接
続される各装置を制御する。このパスラインにはキーボ
ードKBが接続され、このキーボードKBから入力され
た文字情報はパスラインBを介してランダムアクセスメ
モリRAMの一部にある文書メモリBSMに供給記憶さ
れる。記憶された文字情報を表示器LCD (リキッド
クリスタルディスプレイ)に表示するには表示制御装置
LCDCで制御されているキャラクタジェネレータCG
の中から文字コードに相当するフォントをパスラインB
を介してCPUの指示により行ない、フォントを表示制
御装置の表示メモリLCDMに記憶する。メモリRAM
には前述の文書メモリBSMの他にカーソル位置を示す
CRLM等の一時記憶用の領域がある。プリンタPRT
は前述の文書メモリBSMの内容をCPUの指示により
印刷する為の装置である。
The CPU (Central Processing Unit) controls each device connected via the path line by executing the contents of the program included in the ROM (Read Only Memory) and having the procedures shown in Figures 5 to 7. . A keyboard KB is connected to this pass line, and character information input from this keyboard KB is supplied and stored via the pass line B to a document memory BSM located in a part of the random access memory RAM. To display the stored character information on the LCD (liquid crystal display) display, a character generator CG controlled by the display control device LCDC is used.
Select the font corresponding to the character code from path line B
The font is stored in the display memory LCDM of the display control device. memory RAM
In addition to the document memory BSM described above, there is a temporary storage area such as CRLM indicating the cursor position. Printer PRT
is a device for printing the contents of the document memory BSM described above according to instructions from the CPU.

第3図は第2図のキーボードの拡大詳細図である。この
白文字キーは通常の文字を入力する為のキーであり、こ
こで入力されたキーに対応した文字コードが前述の文書
メモリに格納されかつLCDに表示される。削除キーは
括弧を削除する為のキーである。
FIG. 3 is an enlarged detailed view of the keyboard of FIG. 2; This white character key is a key for inputting ordinary characters, and the character code corresponding to the key input here is stored in the document memory and displayed on the LCD. The delete key is used to delete parentheses.

第4図は第2図におけるRAM内の文書メモリBSMの
詳細説明図である0文書メモリBSMは文字情報が格納
されるシリアルなメモリで先頭からアドレス順に構成さ
れており、順にBSM(1)、BSM (2)−−−一
般にBSM (i)と表現する。
FIG. 4 is a detailed explanatory diagram of the document memory BSM in the RAM in FIG. BSM (2)---Generally expressed as BSM (i).

以上の構成の下で、本発明実施例の動作を第5図〜第7
図のフローチャート及び第8図の例を参照して説明する
Under the above configuration, the operation of the embodiment of the present invention is illustrated in FIGS. 5 to 7.
This will be explained with reference to the flowchart shown in the figure and the example shown in FIG.

本装置は、電源を投入するとまず第5図ステップS1に
進む、ステップslではRAM内の文書メモリBSMを
スペースクリヤし、カーソルを文書メモリBSMの先頭
にセットしてカーソル位置メモリCRLMを初期状態に
セットする。
When this device is powered on, it first proceeds to step S1 in FIG. 5. In step sl, the document memory BSM in the RAM is cleared of space, the cursor is set at the beginning of the document memory BSM, and the cursor position memory CRLM is returned to its initial state. set.

その後、ステップS2に進み第3図に示したキーボード
KBからのキー人力待ちの状態を保つ、そこで何らかの
キーが入力されたならステップS3に進み入力されたキ
ーの判別を行ないステップS4又はステップS5に進む
After that, the process advances to step S2, and the state of waiting for the key input from the keyboard KB shown in FIG. move on.

ステップS4は文字キーが操作された時の処理を行なう
、第6図において、文字キーが操作されるとカーソル位
置メモリCRLMに対応した文書メモリBSMに文字コ
ードを格納する。しかる後、カーソルは1つ歩進し同時
にカーソル位置メモリCRLMの内容もlアドレス分進
む。
Step S4 performs processing when a character key is operated. In FIG. 6, when a character key is operated, a character code is stored in the document memory BSM corresponding to the cursor position memory CRLM. Thereafter, the cursor advances by one and at the same time the contents of the cursor position memory CRLM also advance by l addresses.

次にステップS6において、文書メモリBSMの所定の
文字コード列(表示器の表示容量により定まる)をキャ
ラクタジェネレータCGでパターン化して表示制御装5
iLCDCのメモリI、CDMに記憶させる。
Next, in step S6, a predetermined character code string (determined by the display capacity of the display device) in the document memory BSM is patterned by the character generator CG, and the display control device 5
Store it in memory I and CDM of iLCDC.

ステップS5は削除処理を行なう訳であるが、第6図を
参照して説明する。まずステップ55.1でカーソル上
の文字を判別する。その結果括弧の場合はステップ55
.2に進む、それ以外の時はステップ55.3〜ステッ
プ55.5に進むが、ここでの説明は省略する。
Step S5 performs deletion processing, which will be explained with reference to FIG. 6. First, in step 55.1, the character on the cursor is determined. If the result is parentheses, step 55
.. Otherwise, the process proceeds to steps 55.3 to 55.5, but the explanation here will be omitted.

ステップ55.2の詳細を第7図のフローチャート及び
第8図の実際のテキスト例を用いて説明する。まずステ
ップs5.2.1に進みカーソル上の括弧の向きを判別
する。その結果、第8図(1)に示した様に左括弧の場
合はステップs5.2.2に進み文末方向に対して右括
弧を捜す、続いてステップs5.2.3に進み第8図(
2)に示した様に右括弧を削除してそれ以下の文字を左
に1文字詰める。さらにステップs5.2.6に進みカ
ーソル上の括弧を削除しそれ以降の文字を1文字キに詰
め、カーソル位置も左へ1文字移動する。その結果が第
8図(3)の状態である。
The details of step 55.2 will be explained using the flowchart of FIG. 7 and the actual text example of FIG. 8. First, proceeding to step s5.2.1, the direction of the parentheses on the cursor is determined. As a result, if it is a left parenthesis as shown in Figure 8 (1), the process goes to step s5.2.2 and searches for a right parenthesis in the direction of the end of the sentence.Then, the process goes to step s5.2.3 as shown in Figure 8. (
As shown in 2), delete the right parenthesis and move the following characters one character to the left. Further, the process proceeds to step s5.2.6, where the parentheses on the cursor are deleted, the subsequent characters are packed into one character, and the cursor position is also moved to the left by one character. The result is the state shown in FIG. 8(3).

一方、カーソル上の文字が第8図(4)に示した様に右
括弧の場合はステップs5.2.4に進み文頭方向に対
して左括弧を捜す。左括弧が見付かった時はステップs
5.2.5に進み左括弧を削除し、それ以降の文字を1
文字左に詰め、カーソルも1文字左へ移動する。しかる
後にステップs5.2.6に進む。その結果が第8図(
6)の状態である。
On the other hand, if the character on the cursor is a right parenthesis as shown in FIG. 8(4), the process goes to step s5.2.4 and searches for a left parenthesis in the direction of the beginning of the sentence. When the left parenthesis is found, step s
Go to 5.2.5, delete the left parenthesis, and change the following characters to 1
Shifts characters to the left and moves the cursor one character to the left. Thereafter, proceed to step s5.2.6. The results are shown in Figure 8 (
6).

なお、本実施例では括弧は()「」だけとしたが、r 
」や()[]等の括弧も有効であるし、英文で使用する
パ°パ等のマークであっても本発明の主旨を損なうもの
でない。
Note that in this example, only parentheses () and ``'' were used, but r
", () [], etc. are also effective, and marks such as "Papa" used in English do not detract from the gist of the present invention.

さらに本実施例では表示装置はLCD (リキッドクリ
スタルディスプレイ)としたが他の表示装置、例えばC
RT(カソードレイチューブ)にしても本発明の主旨を
損なうものでない。
Furthermore, although the display device in this embodiment is an LCD (liquid crystal display), other display devices, such as a C
Even if the RT (cathode ray tube) is used, it does not detract from the gist of the present invention.

[効  果] 上述した様に本発明によると、ベアで使用される記号の
削除にあたっては片方を削除するだけでもう片方も同時
に削除する事が可能となった。
[Effect] As described above, according to the present invention, when deleting symbols used in bare, it is possible to delete only one symbol and the other symbol at the same time.

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

第1図は、本発明の実施例を示す図。 第2図は、本発明の一実施例の構成を示すブロック図。 第3図は、キーボードのキートップ概略図。 第4図は、メモリ構造の説明図。 第5図〜第7図は、処理の過程を示すフローチャート。 第8図は、実際の削除過程を示した説明図。 BSM−m−文書メモリ FIG. 1 is a diagram showing an embodiment of the present invention. FIG. 2 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 3 is a schematic diagram of the key tops of the keyboard. FIG. 4 is an explanatory diagram of the memory structure. 5 to 7 are flowcharts showing the process. FIG. 8 is an explanatory diagram showing the actual deletion process. BSM-m-document memory

Claims (1)

【特許請求の範囲】[Claims] 文字を入力する文字入力指示手段と該手段により構成さ
れる文書メモリを有する文字処理装置において、文字を
削除する削除指示手段と前記文書メモリ中の左右括弧を
判別する左右括弧判別手段とを有し、該左右括弧判別手
段により判別された括弧の向きと逆の向きを持つ括弧を
検索する括弧検索手段、及び該括弧検索手段により検索
された括弧並びに前記左右括弧判別手段により判別され
た括弧を削除する左右括弧削除手段を備えた事を特徴と
した文字処理装置。
A character processing device having a character input instruction means for inputting characters and a document memory constituted by the means, comprising a deletion instruction means for deleting characters, and a left and right parenthesis determining means for determining left and right parentheses in the document memory. , a parenthesis search means for searching for parentheses having a direction opposite to the direction of the parentheses determined by the left and right parenthesis discrimination means, and deleting the parentheses searched by the parenthesis search means and the parentheses determined by the left and right parenthesis discrimination means. A character processing device characterized by having left and right parenthesis deletion means.
JP60209328A 1985-09-20 1985-09-20 Character processor Pending JPS6269358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60209328A JPS6269358A (en) 1985-09-20 1985-09-20 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60209328A JPS6269358A (en) 1985-09-20 1985-09-20 Character processor

Publications (1)

Publication Number Publication Date
JPS6269358A true JPS6269358A (en) 1987-03-30

Family

ID=16571123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60209328A Pending JPS6269358A (en) 1985-09-20 1985-09-20 Character processor

Country Status (1)

Country Link
JP (1) JPS6269358A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH052583A (en) * 1991-10-29 1993-01-08 Casio Comput Co Ltd Document processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH052583A (en) * 1991-10-29 1993-01-08 Casio Comput Co Ltd Document processor
JPH0675263B2 (en) * 1991-10-29 1994-09-21 カシオ計算機株式会社 Document processor

Similar Documents

Publication Publication Date Title
JPS61120275A (en) Japanese word processor
JPS6269358A (en) Character processor
JPH0117185B2 (en)
US5262948A (en) Word processor
JPS63289667A (en) Japanese document editor
JP2815911B2 (en) Electronic dictionary
JPS62226269A (en) Document preparing device
JPH0726763Y2 (en) Spell checker
JPH04148370A (en) Document processor
JP2756246B2 (en) Character processor
JPS62156762A (en) Document data processor
JPS62263570A (en) Document forming device
JP2761635B2 (en) Kanji processing device
JP2645023B2 (en) Character string search device and character string search method
JPS6269357A (en) Character processor
JPS6379178A (en) Electronic document image file device
JPS6269359A (en) Character processor
JPS6257055A (en) Japanese word processor
JPS6375872A (en) Sentence processor
JPS6311712B2 (en)
JPH02299060A (en) Kana-kanji converting device
JPS62156761A (en) Document data processor
JPH04367970A (en) Area designating method
JPH03141465A (en) Sentence processor
JPH06314277A (en) Document preparing device