JPH06259417A - Sentence information processor - Google Patents

Sentence information processor

Info

Publication number
JPH06259417A
JPH06259417A JP5045049A JP4504993A JPH06259417A JP H06259417 A JPH06259417 A JP H06259417A JP 5045049 A JP5045049 A JP 5045049A JP 4504993 A JP4504993 A JP 4504993A JP H06259417 A JPH06259417 A JP H06259417A
Authority
JP
Japan
Prior art keywords
data
process proceeds
columns
variable
column
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.)
Granted
Application number
JP5045049A
Other languages
Japanese (ja)
Other versions
JP3035105B2 (en
Inventor
Tadasu Watabe
校 渡部
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 JP5045049A priority Critical patent/JP3035105B2/en
Publication of JPH06259417A publication Critical patent/JPH06259417A/en
Application granted granted Critical
Publication of JP3035105B2 publication Critical patent/JP3035105B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To prepare a table in which columns are made uniform without taking trouble and time by providing a means for setting the uppermost stage of the table or a column position of one arbitrary line, aligning other lines with the column position of the line and making automatically the columns uniform in the lump. CONSTITUTION:The processor is provided with a central processing unit(CPU) for executing a program, a RAM(random access memory) for storing sentence data and values of each variable, a ROM(read-only memory) for storing a control program, a printer controller, a printer, an IC card, an IC card interface, a floppy disk(FD), an FD controller, a keyboard, a key interface, a display device, and a display controller. Such a sentence information processor is constituted so that the columns can be made uniform automatically in the lamp without depressing a 'column arranging' key, whenever one data is inputted, with respect to table data in which column positions are not uniform, at the time of preparing the table.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ワードプロセッサ,コ
ンピュータなど文章を入力・編集する機能を持つ文章情
報処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a text information processing apparatus having a function of inputting / editing text such as a word processor and a computer.

【0002】[0002]

【従来の技術】従来、上記のような文章情報処理装置に
おいて、表などデータの桁を揃える場合には、通常はオ
ペレータが表示画面を見ながら、全て1つ1つ手作業で
空白文字を挿入したり削除したりすることによって行っ
ていた。あるいは、オペレータがキーボードに用意され
ているタブキーを押すことによって、予じめRAM内に
設定されていたタブ位置まで表示画面に表示されている
カーソルが移動するという装置があり、このタブ設定を
利用して「ケタ揃」機能を実現していた(シャープ書院
シリーズ)。
2. Description of the Related Art Conventionally, in the above-mentioned text information processing apparatus, when aligning the digits of data such as a table, an operator normally inserts blank characters one by one while watching the display screen. It was done by doing and deleting. Alternatively, there is a device in which the cursor displayed on the display screen is moved to the tab position set in advance RAM by the operator pressing the tab key prepared on the keyboard. And realized the "digit alignment" function (Sharp Shoin series).

【0003】ワードプロセッサ等の上記機能は、「ケタ
揃」キーを押すとカーソルがタブ位置まで移動し、文
字,数字の入力を待ち、数字の場合はその位置が小数点
位置となるように桁を揃え、文字の場合はその位置が左
端となるように桁を揃えるというものである。例えば、
図9(a)のように表示画面にタブが設定されていると
きに、「ケタ揃」キーを押すと、図9(b)のようにカ
ーソルがタブ位置に移動する。ここで、数「123.
4」を入力すると、図9(c)のように小数点がタブ位
置にくるように桁が揃えられる。もう一度「ケタ揃」キ
ーを押すと、図9(d)のようにカーソルが次のタブ位
置まで移動し、ここで文字列「ABC」を入力すると、
図9(e)のように文字列の左端がタブ位置にくるよう
に桁が揃えられたことになる。
In the above function of a word processor or the like, when the "digit alignment" key is pressed, the cursor moves to the tab position, waits for the input of letters and numbers, and in the case of numbers, aligns the digits so that the position becomes the decimal point position. In the case of characters, the digits are aligned so that the position is at the left end. For example,
When tabs are set on the display screen as shown in FIG. 9A, if the "digit alignment" key is pressed, the cursor moves to the tab position as shown in FIG. 9B. Here, the number “123.
When "4" is input, the digits are aligned so that the decimal point is at the tab position as shown in FIG. 9 (c). When the "digit alignment" key is pressed again, the cursor moves to the next tab position as shown in FIG. 9 (d), and when the character string "ABC" is entered here,
As shown in FIG. 9E, the digits are aligned so that the left end of the character string is at the tab position.

【0004】[0004]

【発明が解決しようとする課題】上記ワードプロセッ
サ,コンピュータなどの文章情報処理装置においては、
オペレータが全て1つ1つ手作業で空白文字を挿入また
は削除して桁を揃える方法は、非常に手間や時間がかか
る。また「ケタ揃」機能の例でも、1つのデータを入力
するたびに「ケタ揃」キーを押さなければならず手間が
かかる。また、タブ位置を基準としているため、データ
の桁数に合わせてオペレータがタブ位置を適切な位置に
設定する必要がある。
In the text information processing apparatus such as the word processor and the computer described above,
A method in which the operator manually inserts or deletes blank characters one by one to align the digits is very time-consuming and time-consuming. Also in the case of the "digit alignment" function, the "digit alignment" key must be pressed every time one data is input, which is troublesome. Further, since the tab position is used as a reference, it is necessary for the operator to set the tab position to an appropriate position according to the number of digits of data.

【0005】上記のような従来の装置では、オペレータ
が操作しなければならないことが多く、手間や時間がか
かり面倒である点に課題がある。
The conventional apparatus as described above has a problem in that the operator often has to operate the apparatus, which is troublesome, time-consuming, and troublesome.

【0006】[0006]

【課題を解決するための手段】本発明の文章情報処理装
置は、上記のような課題を解決するため、桁位置の揃っ
ていない表データにおいて、表の最上段あるいは任意の
一行の桁位置を設定し、その他の行を上記行の桁位置に
合わせて自動的に一括して桁を揃える手段を有すること
を特徴とするものである。
In order to solve the above problems, the text information processing apparatus of the present invention sets the column position in the top row of the table or any one line in the table data in which the column positions are not aligned. It is characterized by having means for setting and automatically aligning the columns of the other rows automatically according to the column positions of the rows.

【0007】また、桁位置の揃っていない表データにお
いて、タブ位置を任意に設定し、該タブ位置に合わせて
自動的に一括して桁を揃える手段を有することを特徴と
するものである。
In addition, in tabular data in which the digit positions are not aligned, a tab position is arbitrarily set, and means for automatically aligning the digits collectively in accordance with the tab position is provided.

【0008】更にまた、桁位置の揃っていない表データ
において、左右データ間の最小空白数を設定し、該最小
空白数の条件に合うように一括して桁を揃える手段を有
することを特徴とするものである。
Further, in the table data in which the digit positions are not aligned, there is provided means for setting the minimum number of blanks between the left and right data and collectively aligning the digits so as to meet the condition of the minimum number of blanks. To do.

【0009】[0009]

【作用】本発明によれば、ワードプロセッサやコンピュ
ータなどの文章情報処理装置において、表を作成する
際、桁位置の揃っていない表データを、1つのデータを
入力するたびに「ケタ揃」キーを押すことなく、自動的
に一括して桁を揃え得るものである。
According to the present invention, in a text information processing device such as a word processor or a computer, when a table is created, table data whose digit positions are not aligned is pressed with the "digit alignment" key each time one data is input. It is possible to automatically align the digits collectively without pressing.

【0010】[0010]

【実施例】本発明の文章情報処理装置について、以下図
面と共に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A text information processing apparatus of the present invention will be described below with reference to the drawings.

【0011】図1は、本発明の一実施例の装置の構成を
示すブロック図であり、符号1はプログラムの実行を行
う中央演算処理装置(CPU)、2は文章データや各変
数の値を格納するRAM(ランダム・アクセス・メモ
リ)、3は制御プログラムを格納するROM(リード・
オンリー・メモリ)、4はプリンタコントローラ、5は
プリンタ、6はICカード、7はICカードインターフ
ェース、8はフロッピーディスク(FD)、9はFDコ
ントローラ、10はキーボード、11はキーインターフ
ェイス、12は表示装置、13は表示コントローラであ
る。上記ICカード6及びFD8はそれぞれ上記のIC
カードインターフェース7及びFDコントローラ9によ
り制御され、データのロード・セーブが可能である。ま
た、キーインターフェイス11はキーボード10で押さ
れたキーを判別しそれに対応するデータに変換する。
FIG. 1 is a block diagram showing a configuration of an apparatus according to an embodiment of the present invention. Reference numeral 1 is a central processing unit (CPU) for executing a program, 2 is text data and values of respective variables. RAM (random access memory) for storing 3 and ROM (read for storing control program)
(Only memory), 4 printer controller, 5 printer, 6 IC card, 7 IC card interface, 8 floppy disk (FD), 9 FD controller, 10 keyboard, 11 key interface, 12 display The device, 13 is a display controller. The IC card 6 and the FD 8 are the above ICs, respectively.
Controlled by the card interface 7 and the FD controller 9, data can be loaded / saved. Further, the key interface 11 discriminates the key pressed on the keyboard 10 and converts it into the corresponding data.

【0012】本実施装置では、桁揃の処理対象となる領
域の指定方法には次の2つの方法を用いる。
In the present embodiment, the following two methods are used to specify the area to be processed for alignment.

【0013】その1つの方法は、「領域指定」機能によ
るものである。キーボードに「領域指定」キーを設け、
このキーを対象とする最初の行と最後の行で入力するこ
とによって、領域を指定するものである。「領域指定」
を行うことによって、対象領域が、RAM内に領域指定
データとして記憶される。もう1つの方法は、処理を行
いたい領域の前後に、何もデータ入力されていない空行
を設けておくものである。その空行に囲まれた領域内に
カーソルを移動させた状態で桁揃え機能を実行すると、
その領域内のデータが桁揃えの対象となる。
One way is by the "area designation" function. "Area designation" key is provided on the keyboard,
The area is specified by inputting this key on the first and last lines of the target. "Specify area"
By performing the above, the target area is stored in the RAM as area designation data. Another method is to provide a blank line in which no data is input before and after the region to be processed. If you execute the alignment function while moving the cursor inside the area surrounded by the blank lines,
The data in that area is subject to digit alignment.

【0014】以下に本発明のそれぞれの方法を実現する
実施例についての説明を行うが、対象文章はすべて横書
きの文章であるものとする。また、「L(DP)」とい
う表現は、配列変数L()のDP番目という意味であ
り、LP=1であれば処理領域内の1行目の処理、DP
=1であれば左から数えて1番目の処理という意味であ
る。
Examples for realizing the respective methods of the present invention will be described below, but it is assumed that the target sentences are all horizontally written sentences. Further, the expression “L (DP)” means the DP th of the array variable L (), and if LP = 1, the processing of the first row in the processing area, DP
= 1 means the first process counting from the left.

【0015】、最上段あるいは任意の1行を参考行と
して桁を揃える方法について、以下に、最上段を参考行
として桁を揃える方法を実現する実施例を挙げる(任意
の1行を参考行として桁を揃える方法は、ほぼ同様であ
るため省略する)。
Regarding the method of aligning the digits with the top row or any one row as the reference row, an embodiment for realizing the method of aligning the digits with the top row as the reference row will be described below (using any one row as the reference row. The method of aligning the digits is omitted because it is almost the same).

【0016】図6は本方法の実施例であり、図6(a)
のように最上段のみを、オペレータが桁位置を設定する
ことによって、図6(b)のように以下のすべての行が
桁揃えされることを表している。
FIG. 6 shows an embodiment of this method, which is shown in FIG.
As shown in FIG. 6 (b), all the following lines are aligned by setting the column position only in the uppermost row as shown in FIG.

【0017】図3は本方法を実現するためのフローチャ
ートである。
FIG. 3 is a flow chart for implementing the method.

【0018】ステップS1では、RAM上に必要な変数
領域を確保し初期化を行う。図2のように、桁位置を保
存するための配列変数L(),R()および、現在行の
位置を示す行ポインタLP、1行中の何個目のデータか
を示すデータポインタDP、1行中の個数を記憶するD
N、幾つの空白文字を挿入するかを記憶するS、エラー
の個数を記憶するENを確保し、初期化(LP=1、そ
の他は0)し、S2へ進む。但し、最小空白数MIN、
最大値MAXはの方法では使用しない。
In step S1, a necessary variable area is secured on the RAM and initialization is performed. As shown in FIG. 2, array variables L () and R () for storing the digit position, a row pointer LP indicating the position of the current row, a data pointer DP indicating the number of data in the row, D to store the number of lines
N, S for storing how many blank characters to insert, and EN for storing the number of errors are secured, initialized (LP = 1, 0 otherwise), and the process proceeds to S2. However, the minimum number of blanks MIN,
The maximum value MAX is not used in the method.

【0019】S2では、桁位置の参考とする最上段の、
データの個数を変数DNに、桁位置を配列変数L・Rに
格納する。L(1)には一つ目のデータの左端の桁位
置、R(1)には一つ目のデータの右端の桁位置を、と
いうように最上段のすべてのデータについて記憶し、S
3へ進む。
In S2, the uppermost row for reference of the digit position,
The number of data is stored in the variable DN, and the digit position is stored in the array variable LR. The leftmost digit position of the first data is stored in L (1), the rightmost digit position of the first data is stored in R (1), and so on.
Go to 3.

【0020】S3では、行ポインタLPの値を1増やし
て、次の行へと移動する。また、データポインタDPの
値を1とし、S4へ進む。
In S3, the value of the row pointer LP is incremented by 1 and the line is moved to the next line. Further, the value of the data pointer DP is set to 1, and the process proceeds to S4.

【0021】S4では、データポインタDPの示す(最
初は1つ目の)データが、文字列であるか、数字である
かを判断し、文字列であればS5、数字であればS6へ
進む。
At S4, it is determined whether the data (first at first) indicated by the data pointer DP is a character string or a numeral, and if it is a character string, it proceeds to S5, and if it is a numeral, it proceeds to S6. .

【0022】S5では、配列変数L(DP)の値から現
在のDPの指し示すデータの左端の桁位置数を減算した
値を変数Sへ記憶し、S7へ進む(例えば、DP=2,
L(2)=18,2番目のデータの左端が10桁目、と
いう場合、S=8となる)。
In S5, a value obtained by subtracting the leftmost digit position number of the data pointed to by the current DP from the value of the array variable L (DP) is stored in the variable S, and the process proceeds to S7 (for example, DP = 2.
L (2) = 18, and if the left end of the second data is the 10th digit, then S = 8).

【0023】S6では、配列変数R(DP)の値から現
在のDPの指し示すデータの小数点の桁位置数を減算し
た値を変数Sへ記憶し、S7へ進む(ただし、整数の場
合は、小数点があるべき桁位置を減算する)。
In S6, the value obtained by subtracting the number of decimal places of the data pointed to by the current DP from the value of the array variable R (DP) is stored in the variable S, and the process proceeds to S7 (however, in the case of an integer, the decimal point Subtract the digit positions where there should be).

【0024】S7では、変数Sの値が正か負かを調べ、
正であればS8へ、負(エラー)であればS9へと進
む。
In S7, it is checked whether the value of the variable S is positive or negative,
If it is positive, the process proceeds to S8, and if it is negative (error), the process proceeds to S9.

【0025】S9では、エラー1(データの桁数が最上
段に比べて多すぎて、桁そろえを正常に行うことができ
ない)の処理をして、S11へ進む。
In step S9, error 1 (the number of digits in the data is too large compared to the uppermost row and digit alignment cannot be performed normally), and the process proceeds to step S11.

【0026】S11では、データポインタDPの値を1
増やして、S13へ進む。
In S11, the value of the data pointer DP is set to 1
Increase and proceed to S13.

【0027】S13では、データポインタDPの値が最
上段のデータ数DNより大きいかどうかを判断し、大き
ければS15へ進み、そうでなければS4へ戻る。
In S13, it is determined whether or not the value of the data pointer DP is larger than the data number DN in the uppermost stage. If it is larger, the process proceeds to S15, and if not, the process returns to S4.

【0028】S15では、エラー2(現在行のデータの
数が最上段のデータの数より多い)の処理をROM内の
処理ルーチンに従って行い、S16へ進む。
In step S15, error 2 (the number of data in the current row is larger than the number of data in the uppermost row) is processed according to the processing routine in the ROM, and the process proceeds to step S16.

【0029】一方、S7で変数Sが正であった場合はS
8へ進むが、S8では、変数Sの値の数だけ空白文字を
RAM内の対象データの直前位置に挿入し、S10へ進
む。これにより、対象データの桁位置が、最上段のデー
タと揃ったことになる。
On the other hand, if the variable S is positive in S7, S
8. In S8, blank characters are inserted in the RAM immediately before the target data in the number of variables S, and the process proceeds to S10. As a result, the digit position of the target data is aligned with the uppermost data.

【0030】次にS10では、現在行(行ポインタLP
の示す行)に、まだ次のデータがあるかどうかをRAM
内の文章データから判断し、あればS11へ、なければ
S12へと進む。
Next, in S10, the current line (line pointer LP
RAM) to see if there is still the next data
Judgment is made from the text data in the above, and if there is, proceed to S11, and if not, proceed to S12.

【0031】S12では、DPの値とDNの値が等しい
かどうかを判断し、等しければS16へ、等しくなけれ
ばS14へ進む。
In S12, it is determined whether the DP value and the DN value are equal. If they are equal, the process proceeds to S16, and if they are not equal, the process proceeds to S14.

【0032】S14では、エラー3(現在行のデータの
数が最上段のデータの数より少ない)の処理をROM内
の処理ルーチンにしたかって行い、S16へ進む。
In step S14, the processing for error 3 (the number of data in the current row is smaller than the number of data in the uppermost row) is performed according to the processing routine in the ROM, and the process proceeds to step S16.

【0033】S16では、次の行が処理すべき行である
かどうかをRAM内の文章データおよび領域指定データ
より判断し、そうであればS3へ戻り、そうでなければ
S17へ進む。
In S16, it is determined whether or not the next line is a line to be processed based on the text data and area designation data in the RAM. If so, the process returns to S3, and if not, the process proceeds to S17.

【0034】S17では、ENが0であるかどうかを判
断し、0であればS18へ、0でなければ(エラーがあ
れば)S19へ進む。
In S17, it is determined whether EN is 0. If it is 0, the process proceeds to S18, and if it is not 0 (if there is an error), the process proceeds to S19.

【0035】S18では、正常終了のメッセージを表示
して終了する。
In S18, a message indicating normal termination is displayed and the process ends.

【0036】S19では、エラー情報(何行目でデータ
の数が多い,少ない、データの桁数が多すぎて桁が合わ
ない等)を表示して、終了する。
In S19, error information (in which line the number of data is large or small, the number of digits of data is too large and the digits do not match, etc.) is displayed, and the process ends.

【0037】、タブの設定位置に合わせて桁を揃える
方法について、以下に、タブの設定位置に合わせて桁を
揃える方法を実現する実施例を挙げる。図7は本方法の
実施例であり、図7(a)のようにタブ位置を、オペレ
ータが設定することによって、図7(b)のように全て
の行が桁揃えされることを表している。上記方法の実現
方法は、の方法とほぼ同じなため、異なっている部分
のみ説明する。
Regarding the method of aligning the digits according to the tab setting position, an embodiment for realizing the method of aligning the digits according to the tab setting position will be described below. FIG. 7 shows an embodiment of the present method, and shows that all lines are aligned as shown in FIG. 7B by setting the tab positions by the operator as shown in FIG. 7A. There is. Since the method of realizing the above method is almost the same as the method of, only different points will be described.

【0038】図4は本方法を実現するためのフローチャ
ートである。
FIG. 4 is a flow chart for implementing the method.

【0039】ステップS1では、RAM上に必要な変数
領域を確保し、初期化(LP=1、その他は0)を行
い、S2へ進む。確保する変数は、の方法と同様で図
2に示すようなものであるが、本方法ではいくつか使用
しない変数R(),MIN,MAXもある。
In step S1, a necessary variable area is secured in the RAM, initialization is performed (LP = 1, 0 otherwise), and the process proceeds to S2. The variables to be secured are the same as those in the method shown in FIG. 2, but there are variables R (), MIN, and MAX that are not used in this method.

【0040】S2ではタブ位置の設定値を配列変数
L()に格納し、タブの設定されている個数を変数DN
に記憶し、S3へ進む(例えば、10桁目と20桁目だ
けにタブが設定されている場合は、L(1)=10,L
(2)=20,DN=2と設定される)。
In S2, the set value of the tab position is stored in the array variable L (), and the number of tabs set is set to the variable DN.
, And proceed to S3 (for example, if tabs are set only in the 10th and 20th digits, L (1) = 10, L
(2) = 20 and DN = 2 are set).

【0041】S3〜S5はの方法と同様である。The steps S3 to S5 are the same as the method.

【0042】S6では、配列変数L(DP)の値から現
在のDPの指し示すデータの小数点位置を減算した値を
変数Sへ記憶し、S7へ進む(例えばDP=2、L=
(2)=18、2番目のデータの小数点位置が10桁
目、という場合、S=8となる)。
In S6, a value obtained by subtracting the decimal point position of the data pointed to by the current DP from the value of the array variable L (DP) is stored in the variable S, and the process proceeds to S7 (for example, DP = 2, L =).
(2) = 18, if the decimal point position of the second data is the 10th digit, then S = 8).

【0043】S7以降はの方法と同様であるので、説
明を省略する。
Since the method after S7 is the same as the method after that, the explanation is omitted.

【0044】、データ間の最小空白数を決め、それに
合わせて桁を揃える方法について、以下に、データ間の
最小空白数を決め、それに合わせて桁を揃える方法を実
現する実施例を挙げる。図8は本方法の実施例であり、
図8(a)のようなデータを、オペレータが最小空白数
を入力するだけで、図8(b)のように全ての行が桁揃
えされることを表している。
Regarding the method of determining the minimum number of blanks between data and aligning the digits accordingly, an embodiment for realizing the method of determining the minimum number of blanks between data and aligning the digits accordingly will be described below. FIG. 8 is an example of the method,
The data shown in FIG. 8A indicates that all the lines are aligned as shown in FIG. 8B only by the operator inputting the minimum number of blanks.

【0045】図5は本方法を実現するためのフローチャ
ートである。
FIG. 5 is a flow chart for implementing the method.

【0046】ステップS1では、RAM上に図2に示す
ような変数領域を確保し、0に初期化し、S2へ進む。
In step S1, a variable area as shown in FIG. 2 is secured in the RAM, initialized to 0, and the process proceeds to S2.

【0047】S2では、横方向のデータとデータの間の
最小空白数をいくつにするかを、オペレータがキーボー
ドから入力し、変数MINに記憶し、S3へ進む。
In S2, the operator inputs from the keyboard how much the minimum number of blanks between data in the horizontal direction is to be set, stored in the variable MIN, and the process proceeds to S3.

【0048】S3では、データポインタDPの値を1増
やし、行ポインタLPの値を0とし、S4へ進む。
In S3, the value of the data pointer DP is incremented by 1, the value of the row pointer LP is set to 0, and the process proceeds to S4.

【0049】S4では、行ポインタLPの値を1増や
し、S5へ進む。
In S4, the value of the row pointer LP is incremented by 1, and the process proceeds to S5.

【0050】S5では、現在対象となっている(DPと
LPによって指し示されている)データと、1つ前の
(DP−1とLPによって指し示されている)データの
間の空白数が、最小空白数となるように、ROM内の処
理ルーチンにしたがって空白を挿入し、S6へ進む。
In S5, the number of blanks between the data currently being targeted (pointed by DP and LP) and the immediately preceding data (pointed by DP-1 and LP) is calculated. , A blank is inserted according to the processing routine in the ROM so that the number of blanks is the minimum, and the process proceeds to S6.

【0051】S6では、対象データの種類が文字である
か数であるかを判断し、文字であればS7へ、数であれ
ばS8へ進む。
In S6, it is determined whether the type of the target data is a character or a number, and if it is a character, the process proceeds to S7, and if it is a number, the process proceeds to S8.

【0052】S7では、配列変数L(LP)に対象デー
タの左端の桁位置を代入し、S9へ進む。
In S7, the leftmost digit position of the target data is substituted into the array variable L (LP), and the process proceeds to S9.

【0053】S8では、配列変数L(LP)に対象デー
タの小数点の桁位置を代入し、S9へ進む。
In S8, the digit position of the decimal point of the target data is assigned to the array variable L (LP), and the process proceeds to S9.

【0054】S9では、配列変数L(LP)の値と、変
数MAXの値を比較し、L(LP)が大きければS10
へ、MAXが大きければS11へ進む。
In S9, the value of the array variable L (LP) is compared with the value of the variable MAX, and if L (LP) is large, S10.
If MAX is large, the process proceeds to S11.

【0055】S10では、変数MAXに、L(LP)の
値を代入し、S11へ進む。
At S10, the value of L (LP) is substituted into the variable MAX, and the routine proceeds to S11.

【0056】S11では、ROM内の処理ルーチンにし
たがって、次の行が処理すべき行であるかどうかをRA
M内の文書データおよび領域指定データにより判断し、
そうであればS4へ戻り、そうでなければS12へ進
む。
In step S11, it is determined whether the next line is a line to be processed according to the processing routine in the ROM.
Judgment based on the document data and area designation data in M,
If so, the process returns to S4, and if not, the process proceeds to S12.

【0057】上記のように、S4〜S11を必要回数繰
り返すことにより領域内の全ての行のDP番目のデータ
が、DP−1番目のデータとの間に最小空白数の空白が
あり、また、変数MAXにはすべての行のDP番目のデ
ータの中で最も右側に位置するデータの桁位置が記憶さ
れたことになる。
As described above, by repeating S4 to S11 a required number of times, the DP-th data in all rows in the area have a minimum number of blanks between them and the DP-1th data, and This means that the variable MAX stores the digit position of the data located on the rightmost side among the DPth data of all rows.

【0058】次にS12では、変数LPの値を0に初期
化し、S13へ進む。
Next, in S12, the value of the variable LP is initialized to 0, and the process proceeds to S13.

【0059】S13では、変数LPの値を1増やし、S
14へ進む。
In S13, the value of the variable LP is incremented by 1, and S
Proceed to 14.

【0060】S14では、変数SにMAX−L(LP)
の値を代入し、S15へ進む。
In S14, the variable S is MAX-L (LP).
Value is substituted, and the process proceeds to S15.

【0061】S15では、対象データ(DP、LPによ
って指し示されているデータ)の直前に、変数Sの数だ
け空白文字を挿入し、S16へ進む。
At S15, blank characters are inserted by the number of variables S immediately before the target data (data indicated by DP and LP), and the routine proceeds to S16.

【0062】S16では、ROM内の処理ルーチンにし
たがって、次の行が処理すべき行であるかどうかをRA
M内の文書データおよび領域指定データにより判断し、
そうであればS13へ戻り、そうでなければS17へ進
む。このように、S13〜S16を必要回数繰り返すこ
とにより、領域内のすべての行のDP番目のデータの桁
位置が揃えられたことになる。
In step S16, it is determined whether the next line is a line to be processed according to the processing routine in the ROM.
Judgment based on the document data and area designation data in M,
If so, the process returns to S13, and if not, the process proceeds to S17. Thus, by repeating S13 to S16 a required number of times, the column positions of the DP-th data in all the rows in the area are aligned.

【0063】次にS17では、ROM内の処理ルーチン
にしたがって、次の(現在の対象データの右に)データ
があるかどうかをRAM内の文書データによって調べ、
あればS3へ戻り、なければ終了する。
Next, in S17, according to the processing routine in the ROM, it is checked by the document data in the RAM whether or not there is the next data (to the right of the current target data),
If so, the process returns to S3, and if not, the process ends.

【0064】[0064]

【発明の効果】本発明は、叙上のような構成であるか
ら、ワードプロセッサやコンピュータなどの文章情報処
理装置において、表を作成する際、手間や時間をかけず
に桁揃えのできた見栄えのよい表を作成することができ
る。
EFFECTS OF THE INVENTION Since the present invention has the above-described structure, it is possible to perform digit alignment without creating time and effort when creating a table in a text information processing device such as a word processor or a computer, which is good looking. You can create a table.

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

【図1】本発明の文章情報処理装置の構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing a configuration of a text information processing apparatus of the present invention.

【図2】本装置の文書作成に使用する使用変数名を示す
図である。
FIG. 2 is a diagram showing use variable names used for creating a document of this apparatus.

【図3】本装置において最上段あるいは任意の1行を参
考行として桁揃えを実現するためのフローチャートであ
る。
FIG. 3 is a flowchart for realizing column alignment in the present apparatus using the uppermost row or any one row as a reference row.

【図4】本装置においてタブの設定位置に合わせて桁揃
えを実現するためのフローチャートである。
FIG. 4 is a flowchart for realizing digit alignment according to a tab setting position in the present apparatus.

【図5】本装置においてデータ間の最小空白数を決め桁
揃えを実現するためのフローチャートである。
FIG. 5 is a flowchart for determining the minimum number of blank spaces between data and realizing digit alignment in the present apparatus.

【図6】本装置において最上段を参考行とする桁揃えの
例を示す図である。
FIG. 6 is a diagram showing an example of digit alignment using the uppermost row as a reference row in the present apparatus.

【図7】本装置においてタブ設定による桁揃えの例を示
す図である。
FIG. 7 is a diagram showing an example of digit alignment by tab setting in this device.

【図8】本装置においてタブ設定による桁揃えの例を示
す図である。
FIG. 8 is a diagram showing an example of digit alignment by tab setting in this apparatus.

【図9】従来の装置においてタブ設定を利用した桁揃え
の例を示す図である。
FIG. 9 is a diagram showing an example of digit alignment using tab setting in a conventional device.

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

1 中央演算処理装置(CPU) 2 ランダム・アクセス・メモリ(RAM) 3 リード・オンリー・メモリ(ROM) 4 プリンタコントローラ 5 プリンタ 6 ICカード 7 ICカードインターフェース 8 フロッピーディスク(FD) 9 FDコントローラ 10 キーボード 11 キーインターフェース 12 表示装置 13 表示コントローラ 1 Central Processing Unit (CPU) 2 Random Access Memory (RAM) 3 Read Only Memory (ROM) 4 Printer Controller 5 Printer 6 IC Card 7 IC Card Interface 8 Floppy Disk (FD) 9 FD Controller 10 Keyboard 11 Key interface 12 Display device 13 Display controller

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 桁位置の揃っていない表データおいて、
表の最上段あるいは任意の一行の桁位置を設定し、その
他の行を上記行の桁位置に合わせて自動的に一括して桁
を揃える手段を有する文章情報処理装置。
1. In tabular data whose digit positions are not aligned,
A text information processing apparatus having means for setting the column position of the top row of the table or an arbitrary line and automatically aligning the columns of the other lines collectively according to the column position of the line.
【請求項2】 桁位置の揃っていない表データにおい
て、タブ位置を任意設定し、該タブ位置に合わせて自動
的に一括して桁を揃える手段を有する文章情報処理装
置。
2. A text information processing apparatus having means for arbitrarily setting tab positions in table data whose column positions are not aligned and automatically aligning the columns collectively according to the tab positions.
【請求項3】 桁位置の揃っていない表データにおい
て、左右データ間の最小空白数を設定し、該最小空白数
の条件に合うように一括して桁を揃える手段を有する文
章情報処理装置。
3. A text information processing apparatus having means for setting a minimum number of blanks between left and right data in table data whose column positions are not aligned, and aligning columns collectively so as to meet the condition of the minimum number of blanks.
JP5045049A 1993-03-05 1993-03-05 Sentence information processing equipment Expired - Lifetime JP3035105B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5045049A JP3035105B2 (en) 1993-03-05 1993-03-05 Sentence information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5045049A JP3035105B2 (en) 1993-03-05 1993-03-05 Sentence information processing equipment

Publications (2)

Publication Number Publication Date
JPH06259417A true JPH06259417A (en) 1994-09-16
JP3035105B2 JP3035105B2 (en) 2000-04-17

Family

ID=12708511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5045049A Expired - Lifetime JP3035105B2 (en) 1993-03-05 1993-03-05 Sentence information processing equipment

Country Status (1)

Country Link
JP (1) JP3035105B2 (en)

Also Published As

Publication number Publication date
JP3035105B2 (en) 2000-04-17

Similar Documents

Publication Publication Date Title
JP3083314B2 (en) Document processing method and apparatus
JP3105895B2 (en) Document processing device
KR100235523B1 (en) Character insert device and method
JPH06259417A (en) Sentence information processor
JP3382257B2 (en) Character processing apparatus and method
JP2855027B2 (en) Graphic display device
JP3032399B2 (en) Kana-Kanji conversion device
JPH11184949A (en) Slip processing device and storage medium
JP3082940B2 (en) Character processing apparatus and method
JPH03269665A (en) Original character drawing/character font control system
JPH06149235A (en) Musical note editing device
JPH04111051A (en) Document processor
JP3006988B2 (en) Spreadsheet apparatus and data management method for spreadsheet apparatus
JPH06149236A (en) Musical note editing device
JPH0721182A (en) Character processor and its method
JP2996583B2 (en) Document processing apparatus and document processing method
JPH04158469A (en) Document preparing device
JP3047400B2 (en) Data processing device
JPS62284456A (en) Information processor
JPH08255204A (en) Data input device
JPS60114936A (en) Support device of specification forming
JPH06259419A (en) Ruled line processing method
JPS62219016A (en) Data input device
JPH07282031A (en) Information processor
JPH01277961A (en) Character conversion system