JPH07219923A - Character processor and its method - Google Patents

Character processor and its method

Info

Publication number
JPH07219923A
JPH07219923A JP6013696A JP1369694A JPH07219923A JP H07219923 A JPH07219923 A JP H07219923A JP 6013696 A JP6013696 A JP 6013696A JP 1369694 A JP1369694 A JP 1369694A JP H07219923 A JPH07219923 A JP H07219923A
Authority
JP
Japan
Prior art keywords
character
processing
centering
line
alignment
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
JP6013696A
Other languages
Japanese (ja)
Inventor
Hiroshi Maruoka
広 丸岡
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 JP6013696A priority Critical patent/JPH07219923A/en
Publication of JPH07219923A publication Critical patent/JPH07219923A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To automatically execute the up shift, centering or down shift of a character string within a processing area by detecting the digit direction width of all lines in the processing area and setting up a condition that the detected width is the same. CONSTITUTION:Within a processing area storing a character string to be moved, a CPU 1 executes transformation processing by a control program read out from a ROM 2 under the condition that the the digit direction width of all lines is the same. Namely when 'centering' is specified from a keyboard 6, an input character string is automatically moved to the center part in the line direction to execute a 'centering function' in the line direction. When 'left shift' is specified, the input character string is moved to the upper side in the line direction to execute an 'up shift' in the line direction, and when 'right shift' is specified, the character string is moved to the lower side in the line direction to execute a 'down shift' function. Thereby transformation processing in the line direction can be automatically executed within a processing area surrounded by ruled lines or indent marks.

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 apparatus and method for performing an upper justification process, a centering process or a lower justification process on a character string arranged in a row direction orthogonal to a digit direction.

【0002】[0002]

【従来の技術】従来の文字処理装置においては、本文テ
キスト内に罫線やインデントマーク等で囲まれた領域
(処理領域)内で行方向(縦方向)に文字列を配置し、
行方向に対して文字列をセンタリング/上寄せ/下寄せ
する場合には、削除・挿入や移動等の編集操作を行うこ
とにより、行方向の文字列を位置を調整していた。
2. Description of the Related Art In a conventional character processing device, a character string is arranged in a line direction (vertical direction) within an area (processing area) surrounded by ruled lines or indent marks in a body text,
When centering / upper / lowering a character string in the row direction, the position of the character string in the row direction is adjusted by performing an editing operation such as deleting / inserting or moving.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来の文字処理装置においては削除・挿入や移動等の編集
操作を行うことにより行方向の文字列の位置を調整して
いたため、処理対象となる領域全体が表示画面に収まら
ない場合には、画面を切り替えたり、レイアウト表示で
全体を確かめながら調整しなければならないという欠点
があった。
However, in the above-mentioned conventional character processing apparatus, since the position of the character string in the row direction is adjusted by performing the editing operation such as deletion / insertion or movement, the region to be processed is processed. If the whole image does not fit on the display screen, there is a drawback that it is necessary to switch the screens or make adjustments while checking the entire layout display.

【0004】よって本発明の第1の目的は、罫線等で囲
まれた処理領域内で文字列の上寄せ,センタリングまた
は下寄せを自動的に実行できる文字処理装置および方法
を提供することにある。
Therefore, it is a first object of the present invention to provide a character processing apparatus and method capable of automatically performing top-alignment, centering or bottom-alignment of a character string within a processing area surrounded by ruled lines or the like. .

【0005】本発明の第2の目的は、罫線あるいはイン
デントマーク等で挾まれた領域内において、自動的に文
字列の行方向への移動、すなわち上寄せ、センタリン
グ、または下寄せを可能とした文字処理装置および方法
を提供することにある。
A second object of the present invention is to automatically move a character string in the row direction, that is, to top, center, or bottom within an area sandwiched by ruled lines or indent marks. To provide a character processing device and method.

【0006】本発明の第3の目的は、行方向への文字列
移動処理を各行での文字配置状態によって実行可能/実
行不能とすることができる文字処理装置および方法を提
供することにある。
A third object of the present invention is to provide a character processing apparatus and method capable of enabling / disabling character string movement processing in the row direction depending on the character arrangement state in each row.

【0007】本発明の第4の目的は、キーボードあるい
はポインティングデバイスを用いて自動的に上寄せ、セ
ンタリングあるいは下寄せを行うことができる文字処理
装置および方法を提供することにある。
A fourth object of the present invention is to provide a character processing apparatus and method capable of automatically performing top-up, centering or bottom-alignment using a keyboard or a pointing device.

【0008】本発明の第5の目的は、キーボード上から
左寄せ、センタリングあるいは右寄せを指定した場合に
も、これらの各指定に応じて上寄せ、センタリングある
いは下寄せを自動的に実行可能とした文字処理装置およ
び方法を提供することにある。
A fifth object of the present invention is that even when left-justification, centering or right-justification is designated on the keyboard, characters which can automatically perform upper-justification, centering or lower-justification in accordance with these designations. It is to provide a processing device and method.

【0009】本発明の第6の目的は、移動処理すべき文
字列が収容されている文書メモリ内の処理領域におい
て、各行の桁数に基づいて当該移動処理を実行するか否
かを決定する文字処理装置および方法を提供することに
ある。
A sixth object of the present invention is to determine whether or not to execute the moving process based on the number of digits of each line in the processing area in the document memory in which the character string to be moved is stored. To provide a character processing device and method.

【0010】[0010]

【課題を解決するための手段】第1の目的を達成するた
めに、本発明は、桁方向と直交する行方向に並んだ文字
列に対して上寄せ処理またはセンタリング処理または下
寄せ処理を行う文字処理装置であって、移動処理すべき
文字列が収容されている処理領域について、当該領域内
に含まれる全ての行の桁方向の幅を検出する検出手段
と、前記検出手段により検出された前記処理領域の幅が
全て同一であることを条件として、前記文字列を前記領
域内で上寄せまたはセンタリングまたは下寄せする移動
手段とを具備したものである。また、本発明に係る文字
処理方法は、桁方向と直交する行方向に並んだ文字列に
対して上寄せ処理またはセンタリング処理または下寄せ
処理を行う際に、移動処理すべき文字列が収容されてい
る処理領域について、当該領域内に含まれる全ての行の
桁方向の幅を検出し、検出された前記処理領域の幅が全
て同一であることを条件として、前記文字列を前記領域
内で上寄せまたはセンタリングまたは下寄せするもので
ある。
In order to achieve the first object, according to the present invention, an upper justification process, a centering process or a lower justification process is performed on a character string arranged in a row direction orthogonal to a digit direction. In the character processing device, for a processing area in which a character string to be moved is stored, a detection unit that detects the width in the column direction of all the lines included in the area, and the detection unit detects the width. On the condition that the widths of the processing areas are all the same, a moving means for moving the character string up, centering or down in the area is provided. Further, according to the character processing method of the present invention, a character string to be moved is accommodated when the upper justification process, the centering process or the lower justification process is performed on the character string arranged in the row direction orthogonal to the digit direction. For the processing area, the widths in the column direction of all the lines included in the area are detected, and the character string in the area is detected on condition that the widths of the detected processing areas are all the same. Top, centering or bottom.

【0011】第2の目的を達成するために、前記処理領
域は罫線あるいはインデントマーク等で挾まれた領域で
あるものとする。
In order to achieve the second object, it is assumed that the processing area is an area sandwiched by ruled lines or indent marks.

【0012】第3の目的を達成するために、前記処理領
域に含まれる各行について(1)1文字あるいは複数の
文字が含まれ、かつ当該行の左もしくは右には空白が生
じてていないこと、あるいは(2)ある行については全
ての桁位置が空白となっているとき、前記移動手段によ
る行方向への移動処理を実行する。
In order to achieve the third object, (1) one line or a plurality of characters is included in each line included in the processing area, and there is no blank on the left or right of the line. Alternatively, (2) when all the column positions of a line are blank, the moving process in the line direction by the moving means is executed.

【0013】第4の目的を達成するために、所定のキー
入力あるいはポインティングデバイスの指示により上寄
せ処理、センタリング処理または下寄せ処理を指定す
る。
In order to achieve the fourth object, an upper alignment process, a centering process, or a lower alignment process is designated by a predetermined key input or an instruction from a pointing device.

【0014】第5の目的を達成するために、キーボード
上から左寄せ/センタリング/右寄せを指示したとき、
これらの指示に対応して上寄せ/センタリング/下寄せ
を実行する。
In order to achieve the fifth object, when left-alignment / centering / right-alignment is instructed from the keyboard,
The upper alignment / centering / lower alignment is executed in response to these instructions.

【0015】第6の目的を達成するために、文書メモリ
内における前記処理領域の行方向への連続性を判別しな
がら各行の桁数を検出し、各行の検出桁数が全て同一で
あることを条件として前記文字列の行方向への移動処理
を実行する。
In order to achieve the sixth object, the number of digits in each line is detected while determining the continuity of the processing area in the document memory in the line direction, and the number of detected digits in each line is the same. Under the condition, the moving process of the character string in the row direction is executed.

【0016】[0016]

【作用】請求項1および7に記載した本発明によれば、
罫線等で囲まれた処理領域内で文字列の上寄せ、センタ
リング、または下寄せを自動的に実行することができ
る。
According to the present invention described in claims 1 and 7,
It is possible to automatically perform the top alignment, centering, or bottom alignment of a character string within a processing area surrounded by ruled lines and the like.

【0017】請求項2および8に記載した本発明によれ
ば、罫線あるいはインデントマーク等で挾まれた領域内
において、自動的に文字列の行方向への移動、すなわち
上寄せ、センタリング、または下寄せが可能となる。
According to the present invention as set forth in claims 2 and 8, within a region sandwiched by ruled lines or indent marks, the character string is automatically moved in the row direction, that is, upper alignment, centering, or lower alignment. It is possible to gather.

【0018】請求項3および9に記載した本発明によれ
ば、行方向への文字列移動処理を各行での文字配置状態
によって実行可能/実行不能とすることができる。
According to the present invention described in claims 3 and 9, it is possible to enable / disable the character string movement processing in the row direction depending on the character arrangement state in each row.

【0019】請求項4および10に記載した本発明によ
れば、キーボードあるいはポインティングデバイスを用
いて自動的に上寄せ、センタリングあるいは下寄せを行
うことができる。
According to the present invention as set forth in claims 4 and 10, it is possible to automatically perform the upper alignment, the centering or the lower alignment by using a keyboard or a pointing device.

【0020】請求項5および11に記載した本発明によ
れば、キーボード上から左寄せ、センタリングあるいは
右寄せを指定した場合にも、これらの各指定に応じて上
寄せ、センタリングあるいは下寄せを自動的に行うこと
ができる。
According to the present invention as set forth in claims 5 and 11, even when left alignment, centering or right alignment is designated from the keyboard, the upper alignment, centering or lower alignment is automatically performed according to each designation. It can be carried out.

【0021】請求項6および12に記載した本発明によ
れば、移動処理すべき文字列が収容されている文書メモ
リ内の処理領域において、各行の桁数に基づいて当該移
動処理を実行するか否かを決定することができる。
According to the present invention as set forth in claims 6 and 12, whether the movement processing is executed based on the number of digits of each line in the processing area in the document memory in which the character string to be moved is stored. You can decide whether or not.

【0022】[0022]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0023】図1は、本発明を適用した文字処理装置の
全体構成を示すブロック図である。本図において1は中
央演算処理装置(CPU)であり、図2〜図16を参照
して後に詳述する文字列移動処理を実行する。2は読み
出し専用メモリ(ROM)であり、図2,図3および図
6に示した制御手順およびその他の制御プログラムを記
憶させてある。3は読み書き可能なメモリ(RAM)で
あり、本実施例におけるワーク領域を有している。すな
わち、RAM3には「先頭位置」,「文字配置フラ
グ」,「現処理位置」,「領域内桁数」,「判別結果」
(いずれも後に詳述する)を記憶する領域が含まれてい
る。
FIG. 1 is a block diagram showing the overall construction of a character processing device to which the present invention is applied. In the figure, reference numeral 1 denotes a central processing unit (CPU), which executes a character string moving process which will be described in detail later with reference to FIGS. A read-only memory (ROM) 2 stores the control procedure shown in FIGS. 2, 3 and 6 and other control programs. A readable / writable memory (RAM) 3 has a work area in this embodiment. That is, in the RAM 3, "start position", "character arrangement flag", "current processing position", "number of digits in area", "discrimination result"
An area for storing (each of which will be described in detail later) is included.

【0024】4は外部に増設された読み出し専用メモリ
(外部ROM)である。5はキーボード制御装置(KB
C)であり、6はキーボード(KB)である。7は表示
制御装置(CRTC)であり、8は表示装置(CRT)
である。本実施例ではこの表示面上において、カーソル
の移動方向を桁方向と呼び、この桁方向(=横方向)に
直交する方向を行方向と呼ぶことにする。
Reference numeral 4 is a read-only memory (external ROM) externally added. 5 is a keyboard control device (KB
C) and 6 is a keyboard (KB). 7 is a display control device (CRTC), 8 is a display device (CRT)
Is. In this embodiment, the moving direction of the cursor on this display surface is called the digit direction, and the direction orthogonal to this digit direction (= horizontal direction) is called the row direction.

【0025】9は周辺装置制御装置(PUC)である。
10はフロッピーディスク(FD)、11はハードディ
スク(HD)であり、これらの外部記憶装置FDまたは
HDに図2,図3および図6に示すプログラムを記憶し
ておいてもよい。12は印刷装置(PRT)である。1
3はポインティングデバイス(PD)である。14は、
各種のデータおよび制御信号の送受信を行うためのシス
テムバスである。
Reference numeral 9 is a peripheral device controller (PUC).
Reference numeral 10 is a floppy disk (FD), 11 is a hard disk (HD), and the programs shown in FIGS. 2, 3 and 6 may be stored in these external storage devices FD or HD. Reference numeral 12 is a printing device (PRT). 1
Reference numeral 3 is a pointing device (PD). 14 is
A system bus for transmitting and receiving various data and control signals.

【0026】上述したとおり本装置の制御プログラム
は、ROM2(またはFD10,HD11あるいはRA
M3)上に存在し、CPU1がシステムバス14を通じ
て読み出した制御プログラムにより目的の処理を行う。
As described above, the control program of this apparatus is stored in the ROM 2 (or FD10, HD11 or RA).
M3), which is present on the M3) and performs the intended processing by the control program read by the CPU 1 through the system bus 14.

【0027】ここで述べる実施例では、(1)キーボー
ド上から「センタリング」が指示された場合には、自動
的に入力文字列を行方向中央部へ移動させて、行方向へ
の「センタリング」機能を実行し、(2)キーボード上
から「左寄せ」が指示された場合には、自動的に入力文
字列を行方向上側へ移動させて、行方向への「上寄せ」
機能を実行し、(3)キーボード上から「右寄せ」が指
示された場合には、自動的に入力文字列を行方向下側へ
移動させて、行方向への「下寄せ」機能を実行させるも
のである。
In the embodiment described here, (1) when "centering" is instructed from the keyboard, the input character string is automatically moved to the center in the row direction, and "centering" in the row direction. When the function is executed and (2) "Left justification" is instructed from the keyboard, the input character string is automatically moved to the upper side in the line direction, and "Up justification" in the line direction is performed.
When the function is executed and (3) "right justification" is instructed from the keyboard, the input character string is automatically moved to the lower side in the row direction and the "lower justification" function in the row direction is executed. It is a thing.

【0028】換言すれば、本実施例では 桁方向への「センタリング」→行方向への「センタリン
グ」 桁方向への「左寄せ」→行方向への「上寄せ」 桁方向への「右寄せ」→行方向への「下寄せ」 を自動的に変換して実行させるものである。ただし、こ
れらの変換処理は無条件に行われるものではなく、図2
以降を参照して後に詳述する条件下において実行され
る。
In other words, in this embodiment, "centering" in the column direction → "centering" in the row direction "left alignment" in the column direction → "top alignment" in the row direction "right alignment" in the column direction → This is to automatically convert and execute the "downward alignment" in the row direction. However, these conversion processes are not performed unconditionally.
It is carried out under the conditions detailed later with reference to the following.

【0029】図2は、本実施例の全体的な制御手順を示
すフローチャートである。以下、図示した各ステップに
従って説明を行っていく。ここでは説明の都合上、通常
の文字入力および編集が行われ、例えば図8に示すよう
な入力画面がCRT8上に既に表示されているものとす
る。
FIG. 2 is a flowchart showing the overall control procedure of this embodiment. Hereinafter, description will be given according to the illustrated steps. Here, for convenience of description, it is assumed that normal character input and editing are performed and, for example, an input screen as shown in FIG. 8 is already displayed on the CRT 8.

【0030】まず、キーボード(KB)6上に配置され
ているキー操作により入力文字列の「センタリング」,
「右寄せ」あるいは「左寄せ」処理が指示されたことを
検知する(ステップS21)。次に、その指示内容の判
別を行い(ステップS22)、「センタリング」,「右
寄せ」あるいは「左寄せ」以外の指示に対しては、それ
に対応する個々の処理を実行する(ステップS23)。
First, the "centering" of the input character string is performed by operating the keys arranged on the keyboard (KB) 6,
It is detected that "right justification" or "left justification" processing has been instructed (step S21). Next, the content of the instruction is determined (step S22), and for instructions other than "centering", "right justification" or "left justification", individual processing corresponding to that is executed (step S23).

【0031】ステップS22において「センタリン
グ」,「右寄せ」あるいは「左寄せ」の指示が入力され
ていると判断された場合には、S24において、カーソ
ルが正常の位置にあるか(例えば、罫線上などに位置し
ているか否か)を判別する。なお、カーソル位置が正常
であるためには、上述したとおりカーソルが罫線等の真
上に位置していないだけでなく、罫線あるいはインデン
ト等で囲まれた領域(以下、処理領域)内に含まれてい
ることが必要である。
If it is determined in step S22 that the "centering", "right justification" or "left justification" instruction has been input, then in step S24 it is determined whether the cursor is in a normal position (for example, on a ruled line). (Whether it is located or not) is determined. Note that in order for the cursor position to be normal, not only is the cursor not located directly above the ruled line as described above, but it is also included in the area surrounded by the ruled line or indent (hereinafter referred to as the processing area). It is necessary to have

【0032】ステップS24においてカーソル位置が異
常であると判断された場合、すなわちカーソルが有効位
置にないと判断された場合には、本処理は終了する。
If it is determined in step S24 that the cursor position is abnormal, that is, if the cursor is not in the valid position, this process ends.

【0033】ステップS24でカーソル位置が正常であ
ると判断された場合には、次に、カーソルが位置する処
理領域内において桁方向への文字列移動を行うのか、あ
るいは、行方向への文字列移動を行うのかを判別する
(ステップS25,S26)。なお、ステップS25に
おける「処理方向判別」については、後に図3を用いて
さらに詳述する。
If it is determined in step S24 that the cursor position is normal, then the character string is moved in the digit direction in the processing area in which the cursor is positioned, or the character string is moved in the row direction. It is determined whether to move (steps S25 and S26). The "processing direction determination" in step S25 will be described in more detail later with reference to FIG.

【0034】その判別結果として、桁方向(=横方向)
への文字列移動が決定された場合にはステップS27へ
進み、公知の桁方向編集処理であるセンタリング/右寄
せ/左寄せが行われる。
As a result of the determination, the digit direction (= horizontal direction)
When it is determined to move the character string to, the process proceeds to step S27, and centering / right justification / left justification which is a known digit direction editing process is performed.

【0035】他方、行方向(=縦方向)への文字列移動
処理が決定された場合には、ステップS28において、
行方向への文字列移動処理(センタリング/上寄せ/下
寄せ)が行われる。このステップS28の処理内容は、
後に図6を参照して詳細に説明する。
On the other hand, when the character string moving process in the row direction (= vertical direction) is determined, in step S28,
A character string moving process (centering / top / bottom) in the row direction is performed. The processing contents of this step S28 are
A detailed description will be given later with reference to FIG.

【0036】図3は、図2の処理方向判別処理(ステッ
プS25)を詳細に示したフローチャートである。
FIG. 3 is a flow chart showing in detail the processing direction discrimination processing (step S25) of FIG.

【0037】まずステップS31では、カーソルが位置
している処理領域での先頭行・先頭桁位置(図4参照)
を検出し、その位置データをRAM3の「先頭位置」記
憶領域に記憶する。図8に例示した入力画面では、カー
ソル位置P2より先頭方向および文頭方向に向かって処
理領域の連続性を検知し、先頭位置P1を検出する。
First, in step S31, the first row and first column position in the processing area where the cursor is positioned (see FIG. 4).
Is detected, and the position data is stored in the “leading position” storage area of the RAM 3. On the input screen illustrated in FIG. 8, the continuity of the processing area is detected from the cursor position P2 toward the head direction and the sentence head direction, and the head position P1 is detected.

【0038】次に、上記「先頭位置」と同じ位置データ
をRAM3の「現処理位置」記憶領域に記憶する(ステ
ップS32)。
Next, the same position data as the "start position" is stored in the "current processing position" storage area of the RAM 3 (step S32).

【0039】次のステップS33では、上記「現処理位
置」を含む行の処理領域に何桁ぶんの幅が有るかを検出
する。例えば、図4についてみると、全角文字4桁ぶん
の桁数が検出される。また、図8に例示した例では、全
角文字1桁ぶんの桁数が検出される。そして、この検出
桁数を、RAM3の「領域内桁数」記憶領域に記憶する
(ステップS34)。
In the next step S33, it is detected how many digits the width of the processing area of the line including the "current processing position" is. For example, referring to FIG. 4, the number of digits of four full-width characters is detected. Further, in the example illustrated in FIG. 8, the number of digits corresponding to one full-width character is detected. Then, the number of detected digits is stored in the "number of digits in area" storage area of the RAM 3 (step S34).

【0040】引き続いて次のステップS35では、処理
領域内における当該行(現処理位置を含む行)に、1つ
の文字(空白文字を含む)が空き無く入力されているか
否かを検出し、当該行に1つの文字が空き無く入力され
ている場合には「文字配置フラグ」をOFFとする。例
えば図5の第2行目には、全角2桁ぶんの領域に1つの
横2倍角文字“あ”が入力されているので、「文字配置
フラグ」はOFFとなる。しかし、同図の第1行目には
2つの全角文字“あ”が入力されているので、「文字配
置フラグ」はONとなる。このようにして得られた「文
字配置フラグ」は、RAM3の「文字配置フラグ」記憶
領域に記憶される。
Subsequently, in the next step S35, it is detected whether or not one character (including a blank character) is completely input in the relevant line (the line including the current processing position) in the processing area. When one character is input without any space in the line, the "character arrangement flag" is turned off. For example, in the second line of FIG. 5, since one horizontal double-width character "a" is input in the area of two full-width characters, the "character arrangement flag" is turned off. However, since the two full-width characters "A" are input in the first line of the figure, the "character arrangement flag" is turned ON. The “character arrangement flag” thus obtained is stored in the “character arrangement flag” storage area of the RAM 3.

【0041】ステップS36では、現処理位置を含む行
の次の行が有るか否かを検出し、次行が有る場合には、
ステップS37において「現処理位置」を更新する。そ
して、更新した現処理位置を含む行の桁数を検出し(ス
テップS38)、その検出桁数が既に記憶されている
「領域内桁数」と等しいか否かを判別する(ステップS
39)。ステップS39で“YES”の判別結果が得ら
れたことは、処理領域に含まれている行の幅に変化がな
いことを意味する。
In step S36, it is detected whether or not there is a line next to the line including the current processing position. If there is a next line,
In step S37, the "current processing position" is updated. Then, the digit number of the line including the updated current processing position is detected (step S38), and it is determined whether or not the detected digit number is equal to the already stored "area digit number" (step S38).
39). Obtaining the determination result of "YES" in step S39 means that the width of the line included in the processing region does not change.

【0042】ステップS39において“YES”の判別
結果が得られたときには、次のステップS40に進み、
当該行(更新した現処理位置を含む行)の「文字配置フ
ラグ」を検出する。そして、そのフラグの内容をRAM
3の上記「文字配置フラグ」記憶領域に記憶する。従っ
て、ステップS35で記憶した「文字配置フラグ」と同
じフラグが検出された場合には、RAM3の「文字配置
フラグ」記憶領域に記憶されている内容に変化はないこ
とになる。
When a "YES" determination result is obtained in step S39, the process proceeds to the next step S40,
The "character arrangement flag" of the line (the line including the updated current processing position) is detected. Then, the contents of the flag are stored in the RAM
3 is stored in the "character arrangement flag" storage area. Therefore, when the same flag as the "character arrangement flag" stored in step S35 is detected, the contents stored in the "character arrangement flag" storage area of the RAM 3 are not changed.

【0043】また、ステップS36において“次行な
し”と判断された場合にはステップS41に進み、「先
頭位置」=「現処理位置」であるか否かを判別する。そ
して、その結果が“YES”であるときには、処理領域
として1行しか含まれないことになり行方向処理は不可
能となるので、ステップS43において、RAM3の
「判別結果」記憶領域に“桁方向”が記憶される。
If it is determined that there is no next line in step S36, the process proceeds to step S41, and it is determined whether or not "start position" = "current processing position". If the result is "YES", only one row is included as the processing area, and the row direction processing is impossible. Therefore, in step S43, the "digit direction" is stored in the "determination result" storage area of the RAM 3. Is stored.

【0044】ステップS41の判別において“NO”が
得られた場合には、さらにステップS42に進み、上記
「文字配置フラグ」が“ON”であるか否かを判別す
る。その結果、“YES”であるならば、処理領域内の
いずれかの行に1文字(空白文字を含む)以外の複数の
文字が存在することになるのでステップS43に移り、
「判別結果」として“桁方向”をRAM3に記憶させ
る。
When "NO" is obtained in the determination in step S41, the process further proceeds to step S42, and it is determined whether or not the "character arrangement flag" is "ON". As a result, if “YES”, there is a plurality of characters other than one character (including a blank character) in any of the lines in the processing area. Therefore, the process proceeds to step S43.
The “digit direction” is stored in the RAM 3 as the “discrimination result”.

【0045】他方、ステップS42において“NO”、
すなわち「文字配置フラグ」が“OFF”であると判断
された場合には、処理領域内の各行には全て1文字のみ
が入力されている(例えば、半角1桁の幅の領域内には
半角1文字が、半角4桁の幅の領域内には横2倍角1文
字が入力されている:図5参照)ので、ステップS44
において、RAM3の「判別結果」記憶領域に“行方
向”を記憶する。
On the other hand, in step S42, "NO",
That is, when it is determined that the “character arrangement flag” is “OFF”, only one character is entered in each line in the processing area (for example, a half-width character is entered in the half-width area). Since one character is input as one double-width character in the area having a width of four half-width characters (see FIG. 5), step S44
In, the “row direction” is stored in the “discrimination result” storage area of the RAM 3.

【0046】また、ステップS39において“NO”と
判別された場合には、処理領域内の各行の幅が同一でな
いことになるので、ステップS43に制御を移す。
If "NO" is determined in the step S39, it means that the widths of the respective lines in the processing area are not the same, so the control is moved to the step S43.

【0047】図6は、図2の行方向処理(ステップS2
8)を詳細に示したフローチャートである。
FIG. 6 shows the row direction processing of FIG. 2 (step S2).
8 is a flowchart showing in detail 8).

【0048】まずステップS61において、行方向に移
動処理すべき対象文字列の有無を判別する。対象文字列
が無い場合には、本処理を終了する。
First, in step S61, it is determined whether or not there is a target character string to be moved in the row direction. If there is no target character string, this process ends.

【0049】ステップS62では、対象文字列の範囲を
検出する(図7参照)。すなわち、先頭位置より最終位
置方向に向かって最初に出現した文字あるいは制御文字
の位置を始点位置とし、最終位置方向から先頭位置方向
に向かって最初に出現した文字あるいは制御文字の位置
を終点位置とする対象文字列の範囲を検出する。
In step S62, the range of the target character string is detected (see FIG. 7). That is, the position of the character or control character that first appears from the start position toward the final position is the start point position, and the position of the character or control character that first appears from the final position direction toward the start position direction is the end point position. The range of the target character string to be detected is detected.

【0050】次にステップS63に進み、キーボード6
から指示した指示が「右寄せ」の場合はステップS64
に進み、「センタリング」の場合はステップS65に進
み、「左寄せ」の場合はステップS66に進む。
Next, in step S63, the keyboard 6
If the instruction given from is "right justification", step S64
If "centering" is selected, the process proceeds to step S65, and if "left alignment" is selected, the process proceeds to step S66.

【0051】ステップS64では、下寄せ先頭位置算出
処理を行う。本処理では、対象文字列の始点位置の移動
先位置を求め、次のステップS67に進む(図9参
照)。その移動先位置は例えば、以下の式で求める。
In step S64, the lowering top position calculation process is performed. In this processing, the destination position of the starting point position of the target character string is obtained, and the process proceeds to the next step S67 (see FIG. 9). The destination position is calculated by the following formula, for example.

【0052】[0052]

【数1】移動先位置=最終位置−終点位置+始点位置 ステップS65では、センタリング先頭位置算出処理を
行う。本処理では、対象文字列の始点位置の移動先位置
を求め、次のステップS67に進む(図10参照)。そ
の移動先位置は例えば、以下の式で求める。
## EQU1 ## Destination position = final position-end point position + start point position In step S65, centering start position calculation processing is performed. In this process, the destination position of the starting point position of the target character string is obtained, and the process proceeds to the next step S67 (see FIG. 10). The destination position is calculated by the following formula, for example.

【0053】[0053]

【数2】移動先位置=(最終位置+先頭位置−終点位置
+始点位置)/2(切捨て) ステップS66では、上寄せ先頭位置算出処理を行う。
本処理では、対象文字列の始点位置の移動先位置を求
め、次のステップS67に進む(図11参照)。その移
動先位置は、以下の式で求める。
[Formula 2] Destination position = (final position + start position−end point position + start point position) / 2 (truncated) In step S66, top-aligned start position calculation processing is performed.
In this processing, the destination position of the starting point position of the target character string is obtained, and the process proceeds to the next step S67 (see FIG. 11). The destination position is calculated by the following formula.

【0054】[0054]

【数3】移動先位置=先頭位置 ステップS67では、(終点位置−始点位置+1)行分
の文字列を移動する移動処理を行う。
## EQU00003 ## Moving destination position = starting position In step S67, a moving process of moving a character string of (end point position-start point position + 1) lines is performed.

【0055】その他の実施例 (1)これまで説明してきた実施例で用いた罫線の他
に、例えばインデント制御文字やタブ位置等で規定され
る処理領域の境界の連続性を判別してもよい。すなわ
ち、処理領域の連続性を判断するに際して、可能な情報
であれば種々変形して用いることが可能である。
Other Embodiments (1) In addition to the ruled lines used in the embodiments described so far, the continuity of the boundaries of the processing area defined by, for example, indent control characters or tab positions may be determined. . That is, when determining the continuity of the processing area, various kinds of information can be modified and used if possible.

【0056】(2)図6のステップS65に関して述べ
たセンタリング移動先位置を求める式において、対象文
字列がちょうどセンタリングされない場合には上1行寄
せとしているが、これは下に1行寄せる構成にしても構
わない。
(2) In the formula for obtaining the centering movement destination position described with respect to step S65 in FIG. 6, when the target character string is not just centered, the line is shifted to the upper line by one line. It doesn't matter.

【0057】また、キーボードから各種の移動処理を指
示するようにしたが、例えばポインティングデバイス1
3により画面上の特定の位置を指定することにより、各
種の移動処理が選択できるようにしてもよい。すなわち
機能選択については種々変形することが可能である。
Further, although various movement processes are instructed from the keyboard, for example, the pointing device 1
By designating a specific position on the screen by 3, various movement processes may be selected. That is, the function selection can be variously modified.

【0058】(3)また、図3に示した処理方向判別処
理では、処理領域の各行に文字が1つ(図5の第2行参
照:空白文字を含む)だけ埋められている必要があった
が、図5の第1行目に示す如く、桁方向への寄せ処理が
不可能な場合には、行方向への移動処理を行うことも可
能である。例えば図12に示すような画面が表示されて
いるときには、桁方向への寄せ処理が不可能であるの
で、図13に示す下寄せ、図14に示すセンタリング、
図15に示す上寄せを行うことも可能である。
(3) In the processing direction determination processing shown in FIG. 3, only one character (see the second line in FIG. 5: including a blank character) needs to be embedded in each line of the processing area. However, as shown in the first line of FIG. 5, when the shifting process in the column direction is impossible, the moving process in the row direction can be performed. For example, when the screen as shown in FIG. 12 is displayed, since it is impossible to perform the shifting process in the digit direction, the lowering shown in FIG. 13, the centering shown in FIG.
It is also possible to perform the top alignment shown in FIG.

【0059】(4)さらに、図2および図6では、桁方
向の「左寄せ」を行方向の「上寄せ」に対応させ、桁方
向の「センタリング」を行方向の「センタリング」に対
応させ、桁方向の「右寄せ」を行方向の「下寄せ」に対
応させてきたが、これらの対応関係は全く自由に設定す
ることが可能である。
(4) Further, in FIGS. 2 and 6, "left justification" in the digit direction corresponds to "top justification" in the row direction, and "centering" in the digit direction corresponds to "centering" in the row direction. The "right justification" in the column direction has been made to correspond to the "bottom justification" in the row direction, but these correspondences can be set completely freely.

【0060】(5)本発明は、複数の機器から構成され
るシステムに適用しても1つの機器からなる装置に適用
しても良い。また、本発明は、システムあるいは装置に
プログラムを供給することによって達成される場合にも
適用できることはいうまでもない。
(5) The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0061】(6)さらに、処理領域の形は長方形ある
いは正方形に限らず、桁方向の幅が同一である平行四辺
形であってもよい(図16参照)。
(6) Further, the shape of the processing area is not limited to a rectangle or a square, but may be a parallelogram having the same width in the digit direction (see FIG. 16).

【0062】[0062]

【発明の効果】以上説明してきたとおり本発明によれ
ば、本文テキスト内に罫線やインデントマーク等で囲ま
れた処理領域内で行方向に文字列を配置した場合、この
領域内で自動的に行方向にセンタリング/下寄せ/上寄
せを行うことができるので、画面を切り替えたり、レイ
アウト表示で全体を確かめながら細かな調整を行わなく
て済む文字処理装置および方法を得ることができる。
As described above, according to the present invention, when a character string is arranged in the line direction in a processing area surrounded by ruled lines or indent marks in the main text, the text is automatically arranged in this area. Since centering / lower / upper alignment can be performed in the row direction, it is possible to obtain a character processing apparatus and method that do not require fine adjustments while switching screens and checking the entire layout display.

【0063】すなわち、請求項1および7に記載した本
発明によれば、罫線等で囲まれた処理領域内で文字列の
上寄せ、センタリング、または下寄せを自動的に実行す
ることができる。
That is, according to the present invention as set forth in claims 1 and 7, it is possible to automatically perform the upper alignment, centering, or lower alignment of a character string within a processing area surrounded by ruled lines or the like.

【0064】請求項2および8に記載した本発明によれ
ば、罫線あるいはインデントマーク等で挾まれた領域内
において、自動的に文字列の行方向への移動、すなわち
上寄せ、センタリング、または下寄せが可能となる。
According to the present invention as set forth in claims 2 and 8, in a region sandwiched by ruled lines or indent marks, the character string is automatically moved in the row direction, that is, upper alignment, centering, or lower alignment. It is possible to gather.

【0065】請求項3および9に記載した本発明によれ
ば、行方向への文字列移動処理を各行での文字配置状態
によって実行可能/実行不能とすることができる。
According to the present invention as set forth in claims 3 and 9, it is possible to enable / disable the character string movement processing in the row direction depending on the character arrangement state in each row.

【0066】請求項4および10に記載した本発明によ
れば、キーボードあるいはポインティングデバイスを用
いて自動的に上寄せ、センタリングあるいは下寄せを行
うことができる。
According to the present invention as set forth in claims 4 and 10, it is possible to automatically perform the upper alignment, the centering or the lower alignment by using the keyboard or the pointing device.

【0067】請求項5および11に記載した本発明によ
れば、キーボード上から左寄せ、センタリングあるいは
右寄せを指定した場合にも、これらの各指定に応じて上
寄せ、センタリングあるいは下寄せを自動的に行うこと
ができる。
According to the present invention as set forth in claims 5 and 11, even when left alignment, centering or right alignment is designated from the keyboard, the top alignment, centering or bottom alignment is automatically performed according to each designation. It can be carried out.

【0068】請求項6および12に記載した本発明によ
れば、移動処理すべき文字列が収容されている文書メモ
リ内の処理領域において、各行の桁数に基づいて当該移
動処理を実行するか否かを決定することができる。
According to the present invention as set forth in claims 6 and 12, whether the movement processing is executed based on the number of digits of each line in the processing area in the document memory in which the character string to be moved is accommodated. You can decide whether or not.

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

【図1】本発明を適用した文字処理装置を示すブロック
図である。
FIG. 1 is a block diagram showing a character processing device to which the present invention is applied.

【図2】図1に示した文字処理装置の全体的制御手順を
示すフローチャートである。
FIG. 2 is a flowchart showing an overall control procedure of the character processing device shown in FIG.

【図3】図2の処理方向判別(ステップS25)の詳細
を示したフローチャートである。
FIG. 3 is a flowchart showing details of processing direction determination (step S25) in FIG.

【図4】先頭行、先頭桁についての説明図である。FIG. 4 is an explanatory diagram of a first row and a first digit.

【図5】文字配置フラグについての説明図である。FIG. 5 is an explanatory diagram of a character arrangement flag.

【図6】図2の行方向処理(ステップS28)の詳細を
示したフローチャートである。
FIG. 6 is a flowchart showing details of the row direction processing (step S28) in FIG.

【図7】行方向移動についての説明図である。FIG. 7 is an explanatory diagram of movement in the row direction.

【図8】行方向への寄せ処理を行う前の具体的な表示例
を示す図である。
FIG. 8 is a diagram showing a specific display example before performing a process of shifting in the row direction.

【図9】下寄せ処理を行った具体例を示す図である。FIG. 9 is a diagram illustrating a specific example in which a lowering process is performed.

【図10】センタリング処理を行った具体例を示す図で
ある。
FIG. 10 is a diagram showing a specific example of performing centering processing.

【図11】上寄せ処理を行った具体例を示す図である。FIG. 11 is a diagram showing a specific example in which an upper alignment process is performed.

【図12】行方向への寄せ処理を行う前のその他の具体
例を示す図である。
FIG. 12 is a diagram showing another specific example before performing the shifting process in the row direction.

【図13】下寄せ処理を行ったその他の具体例を示す図
である。
FIG. 13 is a diagram showing another specific example in which the lowering process is performed.

【図14】センタリング処理を行ったその他の具体例を
示す図である。
FIG. 14 is a diagram showing another specific example in which centering processing is performed.

【図15】上寄せ処理を行ったその他の具体例を示す図
である。
FIG. 15 is a diagram illustrating another specific example in which the upper alignment process is performed.

【図16】その他の実施例における処理領域を示す説明
図である。
FIG. 16 is an explanatory diagram showing a processing area in another embodiment.

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

1 CPU 2 ROM 3 RAM 8 CRT 1 CPU 2 ROM 3 RAM 8 CRT

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 9288−5L G06F 15/20 548 E Continuation of front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location 9288-5L G06F 15/20 548 E

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 桁方向と直交する行方向に並んだ文字列
に対して上寄せ処理またはセンタリング処理または下寄
せ処理を行う文字処理装置であって、 移動処理すべき文字列が収容されている処理領域につい
て、当該領域内に含まれる全ての行の桁方向の幅を検出
する検出手段と、 前記検出手段により検出された前記処理領域の幅が全て
同一であることを条件として、前記文字列を前記領域内
で上寄せまたはセンタリングまたは下寄せする移動手段
とを具備したことを特徴とする文字処理装置。
1. A character processing device for performing an up-alignment process, a centering process, or a down-alignment process on a character string arranged in a row direction orthogonal to a digit direction, in which a character string to be moved is stored. Regarding the processing area, the character string is provided on condition that the detection means for detecting the width in the column direction of all the lines included in the area and the widths of the processing areas detected by the detection means are all the same. A character processing device, comprising: a moving unit that moves up, centering or down within the area.
【請求項2】 請求項1において、前記処理領域は罫線
あるいはインデントマーク等で挾まれた領域であること
を特徴とする文字処理装置。
2. The character processing device according to claim 1, wherein the processing area is an area sandwiched by ruled lines or indent marks.
【請求項3】 請求項1または2において、前記処理領
域に含まれる各行について(1)1文字あるいは複数の
文字が含まれ、かつ当該行の左もしくは右には空白が生
じていないとき、あるいは(2)ある行については全て
の桁位置が空白となっているとき、前記移動手段による
行方向への移動処理を実行することを特徴とする文字処
理装置。
3. The method according to claim 1 or 2, wherein each line included in the processing area includes (1) one character or a plurality of characters, and there is no blank on the left or right of the line, or (2) A character processing device characterized in that, when all the column positions of a certain line are blank, the moving means executes the moving process in the line direction.
【請求項4】 請求項1ないし3のいずれかにおいて、
所定のキー入力あるいはポインティングデバイスの指示
により上寄せ処理、センタリング処理または下寄せ処理
を指定することを特徴とする文字処理装置。
4. The method according to any one of claims 1 to 3,
A character processing device characterized in that an upper alignment process, a centering process, or a lower alignment process is designated by a predetermined key input or an instruction from a pointing device.
【請求項5】 請求項4において、キーボード上から左
寄せ/センタリング/右寄せを指示したとき、前記移動
手段ではこれらの指示に対応して上寄せ/センタリング
/下寄せを実行することを特徴とする文字処理装置。
5. The character according to claim 4, wherein, when left alignment / centering / right alignment is instructed from the keyboard, the moving means executes up alignment / centering / down alignment in response to these instructions. Processing equipment.
【請求項6】 請求項1ないし5のいずれかにおいて、
前記検出手段は、文書メモリ内における前記処理領域の
行方向への連続性を判別しながら各行の桁数を検出し、
各行の検出桁数が全て同一であることを条件として前記
移動手段による行方向への移動処理を実行することを特
徴とする文字処理装置。
6. The method according to any one of claims 1 to 5,
The detection means detects the number of digits in each line while determining the continuity in the line direction of the processing area in the document memory,
A character processing device, wherein the moving process in the line direction by the moving means is executed on condition that the number of detected digits in each line is the same.
【請求項7】 桁方向と直交する行方向に並んだ文字列
に対して上寄せ処理またはセンタリング処理または下寄
せ処理を行う際に、 移動処理すべき文字列が収容されている処理領域につい
て、当該領域内に含まれる全ての行の桁方向の幅を検出
し、 検出された前記処理領域の幅が全て同一であることを条
件として、前記文字列を前記領域内で上寄せまたはセン
タリングまたは下寄せすることを特徴とする文字処理方
法。
7. A processing region in which a character string to be moved is stored when performing an up-alignment process, a centering process, or a down-alignment process on a character string arranged in a row direction orthogonal to a digit direction, The column widths of all the lines included in the area are detected, and the character strings are aligned within the area by aligning or centering or lowering them, provided that the detected widths of the processing areas are all the same. A character processing method characterized by gathering.
【請求項8】 請求項7において、前記処理領域は罫線
あるいはインデントマーク等で挾まれた領域であること
を特徴とする文字処理方法。
8. The character processing method according to claim 7, wherein the processing area is an area sandwiched by ruled lines or indent marks.
【請求項9】 請求項7または8において、前記処理領
域に含まれる各行について(1)1文字あるいは複数の
文字が含まれ、かつ、当該行の左もしくは右には空白が
生じていないとき、あるいは(2)ある行については全
ての桁位置が空白となっているとき、前記文字列の行方
向への移動処理を実行することを特徴とする文字処理方
法。
9. The method according to claim 7, wherein each line included in the processing area includes (1) one character or a plurality of characters, and a blank is not formed on the left or right of the line, Alternatively, (2) a character processing method, characterized in that when all the column positions of a certain line are blank, the process of moving the character string in the line direction is executed.
【請求項10】 請求項7ないし9のいずれかにおい
て、所定のキー入力あるいはポインティングデバイスの
指示により上寄せ処理、センタリング処理または下寄せ
処理を指定することを特徴とする文字処理方法。
10. The character processing method according to claim 7, wherein the upper justification process, the centering process or the lower justification process is designated by a predetermined key input or an instruction from a pointing device.
【請求項11】 請求項10において、キーボード上か
ら左寄せ/センタリング/右寄せを指示したとき、これ
らの指示に対応して上寄せ/センタリング/下寄せを実
行することを特徴とする文字処理方法。
11. The character processing method according to claim 10, wherein when left alignment / centering / right alignment is instructed from the keyboard, up alignment / centering / down alignment is executed in response to these instructions.
【請求項12】 請求項7ないし11のいずれかにおい
て、文書メモリ内における前記処理領域の行方向への連
続性を判別しながら各行の桁数を検出し、各行の検出桁
数が全て同一であることを条件として前記文字列の行方
向への移動処理を実行することを特徴とする文字処理方
法。
12. The number of digits in each line is detected while determining the continuity in the row direction of the processing area in the document memory, and the number of digits detected in each line is the same. A character processing method, characterized in that the processing for moving the character string in the row direction is executed on condition that there is a certain condition.
JP6013696A 1994-02-07 1994-02-07 Character processor and its method Pending JPH07219923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6013696A JPH07219923A (en) 1994-02-07 1994-02-07 Character processor and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6013696A JPH07219923A (en) 1994-02-07 1994-02-07 Character processor and its method

Publications (1)

Publication Number Publication Date
JPH07219923A true JPH07219923A (en) 1995-08-18

Family

ID=11840367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6013696A Pending JPH07219923A (en) 1994-02-07 1994-02-07 Character processor and its method

Country Status (1)

Country Link
JP (1) JPH07219923A (en)

Similar Documents

Publication Publication Date Title
US5835916A (en) Document preparing apparatus capable of relocating cells forming a table and resetting cell size
US4783648A (en) Display control system for multiwindow
JP3025121B2 (en) Information processing method and apparatus
US4802104A (en) Dual screen document processing system
US4734689A (en) Display apparatus which can scroll displayed data with regard to cursor position
JPH02110496A (en) Information processor
JPH0594253A (en) Screen touch type key input device
JPH07219923A (en) Character processor and its method
US5727224A (en) Document image processor for inserting and editing bracket symbols and associated text
US4839827A (en) Document processing apparatus
JP2000088888A (en) Display control device, display control method and memory medium memorizing display control program
US5442743A (en) Electronic device for calculating and displaying a matrix
JPH0522933B2 (en)
JPH0640296B2 (en) Character processor
JP2700001B2 (en) Character data output device
JP3200249B2 (en) Document processing device
JPS5949609B2 (en) Calibration position indication method
JPS59148975A (en) Editing device of pattern
JP3080105B2 (en) Ruled line selection device
JPH08180118A (en) Table processor
JPH0740182B2 (en) Document processing apparatus and method
JPH07110753A (en) Picture display controller
JPS63191221A (en) Dividing system for display picture of computer system
JPH1021237A (en) Document preparing and editing device
JPH0463785B2 (en)