JPH09171509A - Word processor - Google Patents

Word processor

Info

Publication number
JPH09171509A
JPH09171509A JP8353377A JP35337796A JPH09171509A JP H09171509 A JPH09171509 A JP H09171509A JP 8353377 A JP8353377 A JP 8353377A JP 35337796 A JP35337796 A JP 35337796A JP H09171509 A JPH09171509 A JP H09171509A
Authority
JP
Japan
Prior art keywords
character string
space
code
line
input
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
JP8353377A
Other languages
Japanese (ja)
Inventor
Yoshihiro Fujimoto
芳洋 藤本
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP8353377A priority Critical patent/JPH09171509A/en
Publication of JPH09171509A publication Critical patent/JPH09171509A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To automatically rearrange a character string only by designating the one portion of a line and to perform the rearrangement praessing in a state that the space code backward the character string is automatically delected if the space code exists. SOLUTION: When the prescribed instruction is performed for the one portion on the line of the character string inputted from a key input part 13, a CPU 11 discriminates whether a space code is inputted backward the location of the final figure of the character string. When the input of the space code is discriminated by the discrimination, the character string is rearranged on the line and is outputted in a state that the space due to the space code is deleted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、指定対象の文字列を
再配置処理する文字処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character processing device for rearranging a character string to be designated.

【0002】[0002]

【従来の技術】入力された文字列を表示する従来の文字
処理装置においては、その入力された文字列を均等割付
あるいはセンタリング(中央揃え)などの再配置処理を
行えるようにした技術が知られている。上記再配置処理
のうち上記均等割付の処理では、その再配置対象となる
文字列の入力後にその割付範囲をその始点と終点とによ
り特定するため操作をした上で上記均等割付の指示操作
を行うといった操作を行う必要があり、一方、上記再配
置対象のうち上記センタリングの処理では、その再配置
対象となる文字列の後方にスペースコードを入力した状
態のままで上記センタリング指定を行った場合には、そ
の文字列の後方のスペースコードも文字部分と見なした
センタリング処理が行われていた。
2. Description of the Related Art In a conventional character processing apparatus for displaying an input character string, there is known a technique capable of performing rearrangement processing such as even allocation or centering (center alignment) of the input character string. ing. In the uniform allocation process of the rearrangement process, after the character string to be rearranged is input, the allocation range is specified by the start point and the end point, and then the uniform allocation instruction operation is performed. On the other hand, in the centering process of the relocation target, when the centering is specified with the space code being input after the character string to be relocated, In the centering process, the space code behind the character string is also regarded as a character part.

【0003】[0003]

【発明が解決しようとする課題】即ち、上記均等割付の
処理では、その再配置対象となる範囲を指定するための
操作を事前に行っておく必要があり、その操作が煩雑な
ものとなっていた。また、上記センタリングの処理で
は、文字列の後方にスペースコードが入力されていた場
合にはそのスペースコード1つを1文字とみなしたセン
タリング処理を行ってしまうため、文字列の後方にスペ
ース部分が存在するようなセンタリング(即ち、対象と
する文字列そのものが左側に偏ったセンタリング)が行
われることになり、対象とする文字列のみをその行上に
おいて真に中央揃えすることはできなかった。本発明の
課題は、1行上に存在する文字列の再配置処理を行うに
当たって、その行の1カ所を指定するだけで(即ち、再
配置対象の範囲指定操作等を行うことなく)上記文字列
を自動的に再配置させることができ、しかもその際にそ
の文字列の後方にスペースコードが入力されていたとし
ても、そのスペースコードを自動的に削除した状態で再
配置処理できるようにすることである。
That is, in the above-described uniform allocation process, it is necessary to perform an operation for designating the range to be rearranged in advance, which makes the operation complicated. It was Further, in the above centering process, when a space code is input after the character string, the centering process is performed by regarding each space code as one character, so that there is a space portion behind the character string. The existing centering (that is, the centering of the target character string itself to the left) is performed, and only the target character string cannot be truly centered on the line. An object of the present invention is to perform a rearrangement process of a character string existing on one line by specifying only one place on the line (that is, without performing a range specifying operation of the rearrangement target). Columns can be automatically rearranged, and even if a space code is input after the character string, the rearrangement process can be performed with the space code automatically deleted. That is.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。表示手段は、文字列を表示する。判別手段
と、文字列の配置される行上において1カ所に対する所
定の指示がなされた際に、上記文字列の最終桁位置の後
方にスペースコードが入力されているか否かを判別す
る。設定手段と、上記スペースコードが入力されている
ことが判別された際は、そのスペースコードによるスペ
ースを削除した状態で上記文字列がその行上において再
配置出力されるように再配置情報を設定する。
The means of the present invention are as follows. The display means displays the character string. The determining means determines whether or not a space code is input after the last digit position of the character string when a predetermined instruction is given to one place on the line where the character string is arranged. When it is determined that the setting means and the space code have been input, the relocation information is set so that the character string is relocated and output on the line with the space due to the space code being deleted. To do.

【0005】[0005]

【作用】この発明の手段の作用は次の通りである。表示
手段には文字列が表示されている。そして、文字列の配
置される行上において1カ所に対する所定の指示がなさ
れた際に、上記文字列の最終桁位置の後方にスペースコ
ードが入力されているか否かが判別手段によって判別さ
れ、その判別でスペースコードが入力されていることが
判別された際は、そのスペースコードによるスペースを
削除した状態で上記文字列がその行上において再配置出
力されるように再配置情報が設定手段によって設定さ
れ、文字列の後方にスペースコードが入力された行にお
いて、その文字列の再配置処理を行う際は、その文字列
の後方における上記スペースコードによるスペースを削
除した状態で再配置処理を行う。したがって、行の1カ
所を指定するだけで上記文字列を自動的に再配置させる
ことができ、しかもその際にその文字列の後方にスペー
スコードが入力されていたとしても、そのスペースコー
ドを自動的に削除した状態で再配置処理することができ
る。
The operation of the means of the present invention is as follows. A character string is displayed on the display means. Then, when a predetermined instruction is given to one place on the line where the character string is arranged, it is judged by the judging means whether or not the space code is input after the last digit position of the character string, When it is determined that the space code has been input, the relocation information is set by the setting means so that the above character string is relocated and output on the line with the space due to the space code deleted. Then, when the rearrangement process of the character string is performed in the line where the space code is input after the character string, the rearrangement process is performed in a state in which the space by the space code behind the character string is deleted. Therefore, the above character string can be automatically rearranged only by specifying one place on the line, and even if a space code is input after the character string, the space code is automatically Relocation processing can be performed in the state in which it has been deleted.

【0006】[0006]

【実施の形態】以下、図1〜図4を参照して一実施例を
説明する。図1はワードプロセッサの構成を示したブ
ロック図である。CPU11はROM12に格納されて
いるシステムプログラムにしたがってこのワードプロセ
ッサの各種の動作を制御するもので、その周辺デバイス
としてのキー入力部13、表示部14、印字部15は、
対応する入出力インターフェース、即ち、キー入力制御
部16、表示制御部17、印字制御部18を介してCP
U11に接続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment will be described below with reference to FIGS. Figure 1 shows the block diagram of the word processor.
It is a lock figure. The CPU 11 controls various operations of this word processor according to the system program stored in the ROM 12, and the key input unit 13, the display unit 14, and the printing unit 15 as its peripheral devices are
CP via the corresponding input / output interface, that is, the key input control unit 16, the display control unit 17, and the print control unit 18.
It is connected to U11.

【0007】キー入力部13は文書データや各種のコマ
ンドを入力する通常のキーボード装置で、キー入力部1
3から入力された文書データは、キー入力制御部16を
介してCPU11に取り込まれる。この場合、入力され
た文書データをCPU11が表示メモリ(ビデオRA
M)19に書き込むと、表示制御部17は表示メモリ1
9内の文書データを表示部14(CRT表示装置)のテ
キスト画面へ出力させる。
The key input unit 13 is an ordinary keyboard device for inputting document data and various commands.
The document data input from No. 3 is taken into the CPU 11 via the key input control unit 16. In this case, the CPU 11 displays the input document data in the display memory (video RA
M) 19 and the display control unit 17 displays
The document data in 9 is output to the text screen of the display unit 14 (CRT display device).

【0008】印字部15は用紙と印字ヘッドとを相対的
に移動させながら印字動作を行う通常のサーマルプリン
タで、CPU11はキー入力部13からの印字指令に応
答してRAM20の内容を読み出す。この場合、印字制
御部18は文書メモリ20−1に格納されている文書デ
ータを書式情報メモリ20−2に予め設定されている設
定書式に基づいて印字部15から印字出力させる。
The printing unit 15 is an ordinary thermal printer which performs a printing operation while moving the paper and the print head relatively, and the CPU 11 reads the contents of the RAM 20 in response to a printing command from the key input unit 13. In this case, the print control unit 18 causes the print unit 15 to print out the document data stored in the document memory 20-1 based on the setting format preset in the format information memory 20-2.

【0009】RAM20は文書メモリ20−1、書式情
報メモリ20−2を有し、文書メモリ20−1は文書作
成処理によって作成された文書データをコード形式で記
憶するもので、文書メモリ20−1には均等割付の為の
範囲を指定する均等割付コードも記憶される。
The RAM 20 has a document memory 20-1 and a format information memory 20-2. The document memory 20-1 stores the document data created by the document creating process in a code format. A uniform allocation code designating a range for even allocation is also stored in.

【0010】次に、本実施例の動作を説明する。図2は
文書作成時の動作を示したフローチャートで、キー入力
部13からキー操作が行われる毎に図2のフローチャー
トが実行開始される。
Next, the operation of this embodiment will be described. FIG. 2 is a flow chart showing the operation at the time of creating a document. The execution of the flow chart of FIG.

【0011】先ず、改行キーが操作されたか否かを調べ
(ステップA1)、改行キーが操作されなければ、その
操作キーに応じた通常の処理、例えば文書作成処理を行
う(ステップA1)。したがって、変換キーが操作され
ると、入力かな文字列をかな漢字混り文に変換して文書
メモリ20−1に格納し、またスペースキーが操作され
ると、文書メモリ20−1内にスペースコードを格納す
る。
First, it is checked whether or not the line feed key has been operated (step A1). If the line feed key has not been operated, normal processing according to the operation key, for example, document creation processing is performed (step A1). Therefore, when the conversion key is operated, the input kana character string is converted into a kana-kanji mixed sentence and stored in the document memory 20-1, and when the space key is operated, the space code is stored in the document memory 20-1. To store.

【0012】しかして、改行キーが操作されると、ステ
ップA1でそのことが検出されてステップA3に進み、
改行指示された位置とその行の文字列の最終位置との間
に空白が有るか否かを調べる。ここで、例えば図4
(A)に示すように、入力文字列「ABC」の後に2桁
分のスペースを確保したのち、改行キーを操作した場合
には空白有りが検出されるが、入力文字列「ABC」の
直後に改行キーを操作した場合には空白無しが検出され
る。
When the line feed key is operated, the fact is detected in step A1 and the process proceeds to step A3.
It is checked whether or not there is a space between the position where the line feed is designated and the end position of the character string on the line. Here, for example, in FIG.
As shown in (A), if a space for two digits is secured after the input character string "ABC" and then the line feed key is operated, a blank is detected, but immediately after the input character string "ABC". When the line feed key is operated on, no blank is detected.

【0013】いま、空白有りが検出されると、ステップ
A4に進み、文書メモリ20−1内においてその文字列
の先頭位置と改行指示された位置に夫々均等割付コード
が挿入される。つまり、均等割付の為の範囲指定処理が
行われる。そして、改行コードの書き込み処理(ステッ
プA5)が行われるが、この場合、改行指示された位置
の後に改行コードが書き込まれる。
When a blank is detected, the process proceeds to step A4, and the even allocation codes are inserted in the document memory 20-1 at the start position of the character string and the position where the line feed is instructed. That is, a range designation process for even allocation is performed. Then, the line feed code writing process (step A5) is performed. In this case, the line feed code is written after the position where the line feed is instructed.

【0014】一方、空白無しがステップA3で検出され
る と、ステップA5に進み、通常と同様、改行指示位
置に改行コードが書き込まれる。図3は文書メモリ20
−1内の文書データを印字する場合の動作を示したフロ
ーチャートで、キー入力部13からの印字指令に応答し
て図2のフローチャートが実行開始される。
On the other hand, when no blank is detected in step A3, the process proceeds to step A5, and the line feed code is written in the line feed instruction position as usual. FIG. 3 shows the document memory 20.
2 is a flowchart showing the operation for printing the document data within -1, the flowchart of FIG. 2 is started in response to a print command from the key input unit 13.

【0015】先ず、文書メモリ20−1から印字対象の
文書データを指定し、その先頭からデータ読み出しを行
う(ステップB1)。そして、文書メモリ20−1から
読み出したデータが均等割付コードか否かを調べる(ス
テップB2)。ここで、文書メモリ20−1から読み出
した データが均等割付コードでなければ、ステップB
3に進み、他の処理、つまり、読み出したデータが文字
データの場合は書式情報メモリ20−2内に予め設定さ
れている書式情報にしたがって印字処理を行い、均等割
付コードを除く他の制御コード、例えば、白抜き、倍角
等の場合はその制御コードにしたがった印字処理を行
う。
First, the document data to be printed is specified from the document memory 20-1, and the data is read from the beginning (step B1). Then, it is checked whether or not the data read from the document memory 20-1 is a uniform allocation code (step B2). If the data read from the document memory 20-1 is not the even allocation code, step B
3 proceeds to other processing, that is, when the read data is character data, print processing is performed according to the format information preset in the format information memory 20-2, and other control codes except the even allocation code are executed. For example, in the case of white, double-width, etc., printing processing is performed according to the control code.

【0016】一方、文書メモリ20−1から均等割付コ
ードが読み出された場合は、ステップB4に進み、均等
割付コードで挾まれた文字列の文字数と、均等割付コー
ド間の大きさに基づいて文字ピッチを算出する。そし
て、均等割付コード間に存在する文字列の各文字を算出
した文字ピッチ毎に印字出力させる(ステップB5)。
このような印字処理は、印字対象の文書データを全て印
字し終ったことがステップB6で検出されるまで繰り返
される。
On the other hand, if the evenly-allocated code is read from the document memory 20-1, the process proceeds to step B4, based on the number of characters in the character string sandwiched by the evenly-allocated code and the size between the evenly-allocated codes. Calculate the character pitch. Then, each character of the character string existing between the evenly-allocated codes is printed out for each calculated character pitch (step B5).
Such a printing process is repeated until it is detected in step B6 that the printing of all the document data to be printed is completed.

【0017】図4(B)は図4(A)で示した各入力状
態に対応する印字例で、入力文字列「ABC」の後にス
ペースを確保したのち、改行指示を行った場合は、図4
(B)に示す如く、均等割付印字が行われるが、入力文
字列「ABC」の直後で改行指示を行った場合は、図3
(B)に示す如く、通常印字が行われる。
FIG. 4B is a printing example corresponding to each input state shown in FIG. 4A. When a space is secured after the input character string "ABC" and a line feed instruction is given, Four
As shown in (B), evenly-allocated printing is performed, but if a line feed instruction is given immediately after the input character string "ABC", the
As shown in (B), normal printing is performed.

【0018】[0018]

【発明の効果】この発明は、1行上に存在する文字列の
再配置処理を行うに当たって、その行の1カ所を指定す
るだけで(即ち、再配置対象の範囲指定操作等を行うこ
となく)、上記文字列をその行内において自動的に再配
置処理することができ、しかもその際にその文字列の後
方にスペースコードが入力されていたとしても、そのス
ペースコードが自動的に削除された状態で再配置処理さ
れるものであり、簡易な指定操作のみにより再配置対象
の文字列のみ(即ち後方のスペースを除いた文字列の
み)を直ちに再配置処理することができる。
According to the present invention, when relocating a character string existing on one line, only one place on the line is designated (that is, the range designation operation of the relocation target is not performed). ), The above character string can be automatically rearranged within the line, and even if a space code is entered after the character string, the space code is automatically deleted. Since the rearrangement process is performed in a state, only the character string to be rearranged (that is, only the character string excluding the trailing space) can be immediately rearranged by only a simple designation operation.

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

【図1】ワードプロセッサの基本的な構成を示すブロッ
ク図。
FIG. 1 is a block diagram showing a basic configuration of a word processor.

【図2】文書作成処理を示すフローチャートFIG. 2 is a flowchart showing a document creation process.

【図3】印字処理を示すフローチャート。FIG. 3 is a flowchart showing a printing process.

【図4】(A)は均等割付を行う場合と行わない場合の
入力状態を説明する為の図、(B)は図4(A)で示し
た各入力状態に対応する印字例を示した図。
FIG. 4A is a diagram for explaining an input state with and without uniform allocation, and FIG. 4B shows a print example corresponding to each input state shown in FIG. 4A. Fig.

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

11 CPU 12 ROM 13 キー入力部 20−1 文書メモリ 11 CPU 12 ROM 13 key input unit 20-1 document memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 文字列を表示する表示手段と、 文字列の配置される行上において1カ所に対する所定の
指示がなされた際に、上記文字列の最終桁位置の後方に
スペースコードが入力されているか否かを判別する判別
手段と、 上記スペースコードが入力されていることが判別された
際は、そのスペースコードによるスペースを削除した状
態で上記文字列がその行上において再配置出力されるよ
うに再配置情報を設定する設定手段と、 を具備し、文字列の後方にスペースコードが入力された
行において、その文字列の再配置処理を行う際は、その
文字列の後方における上記スペースコードによるスペー
スを削除した状態で再配置処理を行うようにしたことを
特徴とする文字処理装置。
1. A display means for displaying a character string and a space code is input behind the last digit position of the character string when a predetermined instruction is given to one position on a line where the character string is arranged. If it is determined that the space code is input, the character string is rearranged and output on the line with the space defined by the space code deleted. Setting means for setting the rearrangement information as described above, and when the rearrangement processing of the character string is performed in the line where the space code is input after the character string, the space above the character string is used. A character processing device characterized in that a rearrangement process is performed in a state where a space due to a code is deleted.
JP8353377A 1996-12-17 1996-12-17 Word processor Pending JPH09171509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8353377A JPH09171509A (en) 1996-12-17 1996-12-17 Word processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8353377A JPH09171509A (en) 1996-12-17 1996-12-17 Word processor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP1327220A Division JPH03188558A (en) 1989-12-19 1989-12-19 Document producer with even allocation function

Publications (1)

Publication Number Publication Date
JPH09171509A true JPH09171509A (en) 1997-06-30

Family

ID=18430432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8353377A Pending JPH09171509A (en) 1996-12-17 1996-12-17 Word processor

Country Status (1)

Country Link
JP (1) JPH09171509A (en)

Similar Documents

Publication Publication Date Title
US5878198A (en) Information processing apparatus and method and memory medium storing information processing program
JPS6342799B2 (en)
JPS628833B2 (en)
JPH09171509A (en) Word processor
JPH0330977A (en) Page printer control system
JPH0437951A (en) Document processor
JPH0245218B2 (en)
JP2882793B2 (en) Document editing device
JPS60253572A (en) Blank filling printing system
JPH0340871B2 (en)
JPS61175765A (en) Format setting system for document processor
JPH0746306B2 (en) Data processing system with printing function
JP3104655B2 (en) Document data processing device
JPS59201129A (en) Document producer
JPH0340870B2 (en)
JPH079705A (en) Method of printing designated page in one lump and apparatus thereof
JPH0422653A (en) Printer
JPH07106654B2 (en) Information processing method
JPS605470B2 (en) typesetting system
JPH07168836A (en) Document processing system
JPH0830597A (en) Method and device for laying out character string
JPH0581249A (en) Word processor
JPH09128378A (en) Document display controller
JPH0325659A (en) Kanji input system
JPH05274311A (en) Device and method for preparing document