JPH04259058A - Document processor with space deleting function - Google Patents

Document processor with space deleting function

Info

Publication number
JPH04259058A
JPH04259058A JP3020966A JP2096691A JPH04259058A JP H04259058 A JPH04259058 A JP H04259058A JP 3020966 A JP3020966 A JP 3020966A JP 2096691 A JP2096691 A JP 2096691A JP H04259058 A JPH04259058 A JP H04259058A
Authority
JP
Japan
Prior art keywords
code
space
line feed
codes
identified
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
JP3020966A
Other languages
Japanese (ja)
Inventor
Yoshiki Oka
芳樹 岡
Akira Hirami
彰 平見
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP3020966A priority Critical patent/JPH04259058A/en
Publication of JPH04259058A publication Critical patent/JPH04259058A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To attain the efficient use of a storage means and to improve the operation convenience of the storage means with omission of undesired jobs by deleting automatically the space codes existing between a line feed code and another code except the space codes. CONSTITUTION:A deleting means 5 is provided to delete the space codes existing between a retrieved line feed code and an identified code as long as the code identified by a code identifying means 4 is identical with another code except the space codes. Then a retrieving means 3 retrieves a line feed code out of those codes inputted from an input means 1 and stored in a storage means 2. The means 4 identifies the type of the code that is stored in the means 2 earlier than the line feed code. If the identified type of code is identical with a code except the space codes, the means 5 deletes the space codes existing between the retrieved line feed code and a code except the identified space codes.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は文書処理装置に関し、
さらに詳しくは入力された文字列と改行コードとの間に
スペースが存在する場合にそのスペースを自動的に削除
する機能を有する文書処理装置に関する。
[Field of Industrial Application] This invention relates to a document processing device.
More specifically, the present invention relates to a document processing apparatus having a function of automatically deleting a space when a space exists between an input character string and a line feed code.

【0002】0002

【従来の技術】従来、文書処理装置は、キーボードから
入力された文書情報が記憶装置であるRAMに記憶され
るとともに、同時にCRTなどの表示装置に表示される
ように、文書編集機能がプログラミングされたマイクロ
コンピュータを用いて構成されている。
2. Description of the Related Art Conventionally, a document processing device is programmed with a document editing function so that document information input from a keyboard is stored in a RAM, which is a storage device, and simultaneously displayed on a display device such as a CRT. It is constructed using a microcomputer.

【0003】文書編集機能の中で、文字列の削除という
機能がある。通常、文字列削除の機能は、1文字ごと、
あるいは範囲指定による複数文字を一括して削除できる
ように構成されている。文字列の削除は、記憶装置上の
記憶領域の空き領域を多くすることになる。
[0003] Among the document editing functions, there is a function for deleting character strings. Normally, the function for deleting strings is to delete each character.
Alternatively, it is configured so that multiple characters can be deleted at once by specifying a range. Deleting a character string increases the free space in the storage area on the storage device.

【0004】0004

【発明が解決しようとする課題】文書情報を入力してい
る際に、ある文章を入力して改行する。この場合入力さ
れた文章とともに改行コードがRAMに記憶される。改
行コードの直前にスペースを示すスペースコードが記憶
されることがある。これらのスペースコードは不要なこ
とが多く、したがって、RAMの記憶領域を無駄に使用
するものであった。このようなスペースコードを削除す
ることにより記憶領域は有効に利用できるものである。
[Problem to be Solved by the Invention] When inputting document information, a certain sentence is input and a line break is performed. In this case, the line feed code is stored in the RAM along with the input text. A space code indicating a space may be stored just before the line feed code. These space codes are often unnecessary and therefore waste RAM storage space. By deleting such space codes, the storage area can be used effectively.

【0005】しかしながら、これらの不要なスペースコ
ードを削除する場合、一箇所ずつ削除をおこなう、ある
いは範囲指定をおこなった後削除をおこなうもので、非
常に手間がかかった。
[0005] However, when deleting these unnecessary space codes, it is necessary to delete them one by one or after specifying a range, which is very time-consuming.

【0006】この発明は上記の事情を考慮してなされた
もので、改行コードの前に存在する不要なスペースコー
ドを自動的に削除することができるスペース削除機能付
文書処理装置を提供しようとするものである。
The present invention has been made in consideration of the above circumstances, and aims to provide a document processing device with a space deletion function that can automatically delete unnecessary space codes that exist before line feed codes. It is something.

【0007】[0007]

【課題を解決するための手段】図1はこの発明の構成を
明示するブロック図であり、同図に示すように、この発
明は、各種の文字に対応する文字コードとスペースコー
ドと改行コードとを少なくとも入力する入力手段1と、
入力手段1から入力されたそれぞれのコードを入力され
た順で記憶する記憶手段2と、記憶手段2に記憶された
改行コードを検索する検索手段3と、検索手段3により
検索された改行コードより先に記憶されたコードの種類
を順次さかのぼって識別するコード識別手段4と、コー
ド識別手段4により識別されたコードがスペースコード
以外のコードである場合に検索された改行コードと識別
されたコードとの間にあるスペースコードを削除する削
除手段5とを備えてなるスペース削除機能付文書処理装
置である。
[Means for Solving the Problems] Figure 1 is a block diagram clearly showing the configuration of the present invention. As shown in the figure, the present invention has character codes, space codes, and line feed codes corresponding to various characters. an input means 1 for inputting at least
A storage means 2 that stores each code input from the input means 1 in the order in which it was input; a search means 3 that searches for line feed codes stored in the storage means 2; and a line feed code searched by the search means 3. A code identification means 4 that sequentially identifies the type of previously stored code, and a code identified as a line feed code retrieved when the code identified by the code identification means 4 is a code other than a space code. This is a document processing device with a space deletion function, which includes a deletion means 5 for deleting the space code between the two spaces.

【0008】[0008]

【作用】入力手段により入力され記憶手段に記憶された
それぞれのコードのうちから、検索手段は改行コードを
検索する。改行コードが検索されると、コード識別手段
は改行コードより先に記憶手段に記憶されたコードの種
類を識別し、そのコードの種類がスペースコード以外の
コードである場合に、削除手段が検索された改行コード
と識別されたスペースコード以外のコードとの間にある
スペースコードを削除する。
[Operation] The search means searches for a line feed code from among the codes inputted by the input means and stored in the storage means. When a line feed code is searched, the code identification means identifies the type of code stored in the storage means before the line feed code, and if the type of code is a code other than a space code, the deletion means is searched. The space code between the new line code and the code other than the identified space code is deleted.

【0009】これによって不要なスペースコードが記憶
されていた記憶手段の領域が解放されて使用できること
となり、記憶手段を効率よく使用できるようになる。
[0009] As a result, the area of the storage means in which unnecessary space codes were stored can be freed and used, and the storage means can be used efficiently.

【0010】0010

【実施例】以下この発明の実施例を図面にて詳述するが
、この発明は以下の実施例に限定されるものではない。 図2はこの発明の実施例の構成を示すブロック図である
。この実施例は日本語ワードプロセッサとする。
EXAMPLES Examples of the present invention will be described in detail below with reference to the drawings, but the present invention is not limited to the following examples. FIG. 2 is a block diagram showing the configuration of an embodiment of the invention. This embodiment assumes a Japanese word processor.

【0011】図2においては、11はキーボード、12
は入力された文書情報を表示するCRT(陰極線管)で
ある。キーボード11及びCRT12は中央処理装置1
3に電気的に接続されている。キーボード11は中央処
理装置13との組み合せにより入力手段として機能する
In FIG. 2, 11 is a keyboard, 12
is a CRT (cathode ray tube) that displays input document information. The keyboard 11 and CRT 12 are the central processing unit 1
It is electrically connected to 3. The keyboard 11 functions as an input means in combination with the central processing unit 13.

【0012】中央処理装置13は、例えば16ビットの
マイクロコンピュータ、キーボード11からの信号を文
字コード、スペースコード及び改行コードなどに変換す
るコード発生回路、キャラクタジェネレータ、CRTコ
ントローラ、ビデオRAMなどにより構成され、プログ
ラムメモリ14に記憶された文書編集のためのプログラ
ムにより作動する。
The central processing unit 13 includes, for example, a 16-bit microcomputer, a code generation circuit that converts signals from the keyboard 11 into character codes, space codes, line feed codes, etc., a character generator, a CRT controller, a video RAM, and the like. , operated by a document editing program stored in the program memory 14.

【0013】15は文書メモリで、キーボード11から
入力された中央処理装置13から出力される文字コード
やスペースコード、改行コードなどを、入力された順に
マイクロコンピュータにより指定されたアドレスに記憶
する。
A document memory 15 stores character codes, space codes, line feed codes, etc. input from the keyboard 11 and output from the central processing unit 13 at addresses specified by the microcomputer in the order in which they were input.

【0014】次にこの実施例における改行コードと文字
コードなどのコードとの間にあるスペースコードの削除
動作について、図3のフローチャートにより説明する。 なお日本語文書の入力に関する動作については、従来公
知のものと同様であるので省略する。
Next, the operation of deleting a space code between a line feed code and a code such as a character code in this embodiment will be explained with reference to the flowchart shown in FIG. Note that the operation related to inputting a Japanese document is the same as that conventionally known, so a description thereof will be omitted.

【0015】まず、中央処理装置13は文章メモリ15
に記憶された各種のコードの中から改行コードを検索す
る(ステップ100)。次に改行コードが見つかったか
どうかを判断し(ステップ101)、見つからなければ
スペースコードを削除する動作を終了する。ステップ1
01で改行コードが見つかったと判断した場合は、その
改行コードの直前のコードの種類を識別する(ステップ
102)。すなわち、この識別の動作は、改行コードが
記憶されるより先に記憶されたコードの種類を調べるも
のである。ここで先に記憶されたコードとは、入力され
たコードが昇順のアドレスに順に記憶される場合は、改
行コードが記憶されているアドレスから降順のアドレス
に記憶されているコードを示すものである。
First, the central processing unit 13 stores the text memory 15.
A line feed code is searched from among the various codes stored in (step 100). Next, it is determined whether a line feed code is found (step 101), and if it is not found, the operation of deleting the space code is terminated. Step 1
If it is determined that a line feed code has been found in step 101, the type of code immediately preceding the line feed code is identified (step 102). That is, this identification operation is to check the type of code stored before the line feed code is stored. Here, the code stored first refers to the code stored in descending addresses from the address where the line feed code is stored, if the input codes are stored in ascending order of addresses. .

【0016】ステップ102で識別されたコードがスペ
ースコードであるかどうかを判断する(ステップ103
)。スペースコードでなければステップ100を再度実
行し、スペースコードである場合は、さらにそのスペー
スコードの直前にあるコードの種類を識別する(ステッ
プ104)。識別の結果がスペースコードであるかどう
かを判断する(ステップ105)。スペースコードであ
る場合はステップ104を再度実行する。
Determine whether the code identified in step 102 is a space code (step 103
). If it is not a space code, step 100 is executed again, and if it is a space code, the type of code immediately before the space code is further identified (step 104). It is determined whether the identification result is a space code (step 105). If it is a space code, step 104 is executed again.

【0017】改行コードの記憶されたアドレスより若い
アドレスごとに複数のスペースコードが記憶されている
場合には、ステップ104およびステップ105が繰り
返し実行することとなる。ステップ105でスペースコ
ードでないと判断されると、改行コードとステップ10
4で識別されたスペースコード以外のコード例えば文字
コードとの間に存在するスペースコードを、文書メモリ
15からすべて削除する(ステップ106)。
If a plurality of space codes are stored for each address younger than the address where the line feed code is stored, steps 104 and 105 are repeatedly executed. If it is determined in step 105 that it is not a space code, a line feed code and step 10
All space codes existing between the space code identified in step 4, such as the character code, are deleted from the document memory 15 (step 106).

【0018】このスペースコードの削除動作は、文書デ
ータの入力時において、改行コードの入力があるごとに
、図3に示したフローチャートの処理を実行して達成さ
れるものあってよい。またオペレータがキーボードから
例えば「スペース削除」の指示を入力した際に、編集処
理のために呼び出された文書を対象に図3に示したフロ
ーチャートに従い、削除動作が実行されるものであって
もよい。
This space code deletion operation may be accomplished by executing the process shown in the flowchart shown in FIG. 3 every time a line feed code is input when document data is input. Furthermore, when the operator inputs an instruction to "delete spaces" from the keyboard, for example, the deletion operation may be performed on the document called up for editing according to the flowchart shown in FIG. .

【0019】[0019]

【発明の効果】この発明によれば、改行コードとスペー
スコード以外のコードとの間に存在するスペースコード
が自動的に削除されるので、記憶手段が効率よく使用で
きるとともに、このようなスペースコードを削除するの
に必要な作業が不要となり、使い勝手が向上する。
[Effects of the Invention] According to the present invention, space codes that exist between line feed codes and codes other than space codes are automatically deleted, so that storage means can be used efficiently and such space codes can be deleted. The work required to delete the information is no longer necessary, improving usability.

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

【図1】この発明の構成を明示するブロック図。FIG. 1 is a block diagram showing the configuration of the present invention.

【図2】この発明の実施例の構成を示すブロック図。FIG. 2 is a block diagram showing the configuration of an embodiment of the invention.

【図3】実施例の動作を示すフローチャート。FIG. 3 is a flowchart showing the operation of the embodiment.

【符号の説明】[Explanation of symbols]

1  入力手段 2  記憶手段 3  検索手段 4  コード識別手段 5  削除手段 1 Input means 2. Storage means 3 Search means 4 Code identification means 5 Deletion method

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  各種の文字に対応する文字コードとス
ペースコードと改行コードとを少なくとも入力する入力
手段と、入力手段から入力されたそれぞれのコードを入
力された順で記憶する記憶手段と、記憶手段に記憶され
た改行コードを検索する検索手段と、検索手段により検
索された改行コードより先に記憶されたコードの種類を
順次さかのぼって識別するコード識別手段と、コード識
別手段により識別されたコードがスペースコード以外の
コードである場合に検索された改行コードと識別された
コードとの間にあるスペースコードを削除する削除手段
とを備えてなるスペース削除機能付文書処理装置。
Claim 1: Input means for inputting at least character codes, space codes, and line feed codes corresponding to various characters; storage means for storing the respective codes input from the input means in the order in which they were input; a search means for searching for a line feed code stored in the means; a code identification means for sequentially identifying the type of code stored before the line feed code searched by the search means; and a code identified by the code identification means. A document processing device with a space deletion function, comprising: deletion means for deleting a space code between the searched line feed code and the identified code when the line feed code is a code other than a space code.
JP3020966A 1991-02-14 1991-02-14 Document processor with space deleting function Pending JPH04259058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3020966A JPH04259058A (en) 1991-02-14 1991-02-14 Document processor with space deleting function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3020966A JPH04259058A (en) 1991-02-14 1991-02-14 Document processor with space deleting function

Publications (1)

Publication Number Publication Date
JPH04259058A true JPH04259058A (en) 1992-09-14

Family

ID=12041914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3020966A Pending JPH04259058A (en) 1991-02-14 1991-02-14 Document processor with space deleting function

Country Status (1)

Country Link
JP (1) JPH04259058A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11191105A (en) * 1997-09-18 1999-07-13 Just Syst Corp Method and device for processing document and recording medium recording processing program therefor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63244262A (en) * 1987-03-31 1988-10-11 Ricoh Co Ltd Data processor
JPH03156665A (en) * 1989-11-15 1991-07-04 Toshiba Corp Document preparing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63244262A (en) * 1987-03-31 1988-10-11 Ricoh Co Ltd Data processor
JPH03156665A (en) * 1989-11-15 1991-07-04 Toshiba Corp Document preparing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11191105A (en) * 1997-09-18 1999-07-13 Just Syst Corp Method and device for processing document and recording medium recording processing program therefor

Similar Documents

Publication Publication Date Title
EP0388148B1 (en) A multi-language conversion system
JPH0863346A (en) Program editing method and device therefor
JP2003084813A (en) Editing device for ladder circuit and its editing method
JPH04259058A (en) Document processor with space deleting function
JPH08272818A (en) Information retrieval system
JPH086963A (en) Character string retrieval device
JPH04311263A (en) Electronic dictionary retrieving device
JPH1021192A (en) Operation extraction system and macro generation system
JPH07306863A (en) Generation device for link between document and dictionary
JPH0830629A (en) Document processor
JPS63204434A (en) Electronic document retrieving device
JPH07121285A (en) Character string input system
JPS62282364A (en) Character string retrieval system
JPH1063678A (en) Full sentence retrieved result display device
JPS62109160A (en) Kana code input system
JPH05242073A (en) Retrieval method for kanji by radical
JPH07129609A (en) Method and device for processing data
JPH11242671A (en) Data copy system
JPH02255979A (en) Document producing device
JPH09212520A (en) Electronic dictionary formation device
JPH0320825A (en) Program editor
JPH02230372A (en) Electronic filing system
JPH05135010A (en) Character processing method and device therefor
JPH07249034A (en) Character string extraction processor
JPH07129599A (en) Data processing method and device therefor