JPH05210661A - Word processor and method therefor - Google Patents

Word processor and method therefor

Info

Publication number
JPH05210661A
JPH05210661A JP4016338A JP1633892A JPH05210661A JP H05210661 A JPH05210661 A JP H05210661A JP 4016338 A JP4016338 A JP 4016338A JP 1633892 A JP1633892 A JP 1633892A JP H05210661 A JPH05210661 A JP H05210661A
Authority
JP
Japan
Prior art keywords
character string
area
document
center
document processing
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
JP4016338A
Other languages
Japanese (ja)
Other versions
JP3096123B2 (en
Inventor
Kenichi Matsuhashi
健一 松橋
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 JP04016338A priority Critical patent/JP3096123B2/en
Publication of JPH05210661A publication Critical patent/JPH05210661A/en
Application granted granted Critical
Publication of JP3096123B2 publication Critical patent/JP3096123B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To perform efficient document preparation by realizing a two-dimensional centering function of a document. CONSTITUTION:When execution of the two-dimensional centering function is indicated from a KB 17, a character string demarcated by a separation code or the like is selected from an area independently determined on a part displayed at present on a CRT 11 out of the document being in course of editing, and the center of this character string is determined. The character string is so moved that its center coincides with the center of the area, thus centering the character string. If plural character strings are selected and extend over plural rows, the longest character string is determined as the center row of the character string group, and the character string in each row is moved to the center of the row, and thereafter, the character string group is so moved that the center of the center row coincides with the center of the area.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば文書内の文字列
の再配置等、文書を編集する機能を備えた文書処理装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus having a function of editing a document, such as rearranging character strings in the document.

【0002】[0002]

【従来の技術】従来の文書処理装置においては、文書の
体裁を整えるため所望の文字列を桁の中央に移動する機
能(桁方向センタリング機能)を備えたものはあった
が、行・桁方向の中心に同時に移動させることは出来な
かった。文字列を桁方向のみならず行方向でも中央に置
き換えようとする場合には、桁方向に関して桁方向セン
タリング機能を用い、行方向では全体のレイアウトを確
認しながら、1行ずつ文字列を移動させ、所望の位置に
置き換えるという作業が必要であった。
2. Description of the Related Art Some conventional document processing apparatuses have a function of moving a desired character string to the center of a digit (column direction centering function) in order to arrange the appearance of a document, but the line / column direction It was not possible to move them to the center of at the same time. If you want to replace the character string in the center not only in the digit direction but also in the row direction, use the digit direction centering function in the digit direction to move the character string line by line while checking the overall layout in the row direction. It was necessary to replace it with the desired position.

【0003】[0003]

【発明が解決しようとする課題】このように前記従来技
術では、各行内で一次元的な文書整形しか考慮しておら
ず、二次元的に動的なレイアウトを行う際には、オペレ
ータは桁方向センタリング・行方向文書移動・レイアウ
ト確認という作業を繰り返し行わねばならず、文書編集
の作業効率が低下していた。
As described above, in the above-mentioned conventional technique, only one-dimensional document shaping is considered in each line, and when performing a two-dimensional dynamic layout, the operator does The work of centering the direction, moving the document in the row direction, and confirming the layout had to be repeated, and the work efficiency of the document editing was reduced.

【0004】本発明は上記従来例に鑑みてなされたもの
で、文字列の二次元的なセンタリング処理を行う際の効
率を向上させることを目的とする。
The present invention has been made in view of the above-mentioned conventional example, and an object thereof is to improve efficiency in performing two-dimensional centering processing of a character string.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に本発明の文書処理装置は次のような構成からなる。電
子文書の編集をおこなう文書処理装置であって、行方向
及び桁方向の広がりをもって前記文書上に設定された領
域の中央位置を算出する手段と、前記領域内から文字列
を選択する選択手段と、前記選択された文字列を前記領
域の中央位置に移動する手段とを備えることを特徴とす
る。
In order to achieve the above object, the document processing apparatus of the present invention has the following configuration. A document processing apparatus for editing an electronic document, comprising means for calculating a central position of an area set on the document with a spread in the row direction and the column direction, and a selection means for selecting a character string from the area. , A means for moving the selected character string to the central position of the area.

【0006】また、電子文書を表示しつつ編集をおこな
う文書処理装置であって、オペレータに指示内容を入力
させる入力手段と、前記表示された部分の上において、
前記指示に応じて行方向及び桁方向の広がりをもって前
記文書上に設定された領域の中央位置を算出する手段
と、前記指示に応じて前記領域内から文字列を選択する
選択手段と、前記選択された文字列を前記領域の中央位
置に移動する移動手段と、前記移動手段に文字列が移動
された結果として得られた文書をあらためて表示する手
段とを備えることを特徴とする。
Further, in a document processing apparatus for editing an electronic document while displaying it, the input means for allowing an operator to input instruction contents, and the above-mentioned displayed portion,
Means for calculating a central position of an area set on the document with a spread in the row direction and the column direction according to the instruction; selecting means for selecting a character string from the area according to the instruction; It is characterized by further comprising: a moving means for moving the generated character string to a central position of the area, and a means for newly displaying a document obtained as a result of the moving of the character string on the moving means.

【0007】また、本発明の文書処理方法は次のような
構成からなる。
The document processing method of the present invention has the following configuration.

【0008】電子文書の編集をおこなう文書処理方法で
あって、行方向及び桁方向の広がりをもって前記文書上
に設定された領域の中央位置を算出する行程と、前記領
域内から文字列を選択する選択行程と、前記選択された
文字列を前記領域の中央位置に移動する行程とを備える
ことを特徴とする。
A document processing method for editing an electronic document, wherein a process of calculating a central position of an area set on the document with a spread in the row direction and the column direction and a character string is selected from the area. It is characterized by comprising a selection process and a process of moving the selected character string to the center position of the area.

【0009】[0009]

【作用】上記構成により、文書内の領域内の行・桁方向
の中心を計算し、前記中心が選択された文字列の中心に
なるように当該文字列を移動する。また、前記移動は入
力手段からの指示に応じて行い、該当領域の文書を前記
移動の前後にわたり表示する。
With the above structure, the center in the row / column direction in the area in the document is calculated, and the character string is moved so that the center becomes the center of the selected character string. The movement is performed according to an instruction from the input unit, and the document in the corresponding area is displayed before and after the movement.

【0010】[0010]

【実施例】本発明の実施例として日本語ワードプロセサ
装置の説明をする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A Japanese word processor device will be described as an embodiment of the present invention.

【0011】<構成>図1は実施例のワードプロセサ装
置の構成を表すブロック図であり、図において、15は
装置全体の制御を司る中央処理装置CPUで、CPU1
5には記憶装置14が内蔵されている。CPU15は記
憶装置14に格納されたプログラムを実行することで文
書処理機能を実現している。二次元のセンタリング等の
文書編集を実現するための操作は入力用KB17と表示
用CRT11を用いて行われ、作成された文書は出力用
プリンタ(PRT)16へと出力される。なお、二次元
センタリング機能が専用のキーとして与えられる場合に
は、そのキーはKB17上に配置されることになる。
<Structure> FIG. 1 is a block diagram showing the structure of a word processor device according to an embodiment. In FIG. 1, reference numeral 15 denotes a central processing unit CPU which controls the entire device, and a CPU 1
A storage device 14 is built in the device 5. The CPU 15 realizes a document processing function by executing a program stored in the storage device 14. An operation for realizing document editing such as two-dimensional centering is performed using the input KB 17 and the display CRT 11, and the created document is output to the output printer (PRT) 16. When the two-dimensional centering function is given as a dedicated key, that key is arranged on the KB 17.

【0012】<二次元センタリングの説明>図2は本実
施例のワードプロセサ装置による編集処理中の画面の一
例を表すものである。図において、枠20は編集対象の
文書を模式的に表すもので、横書きのイメージで上から
下へと綴られており、文書に書き込まれた文字の位置は
後述のような座標系で表すことができる。この文書のな
かから、CRT11に表示される編集用ウインドウ領域
28に現在操作中の部分が表示される。二次元のセンタ
リング処理は領域28を基準として行われる。ここで
は、領域28は編集用のウインドウそのものとしたが、
ウインドウとは無関係に編集中の文書中にとられた領域
を示す枠であると考えても良い。例えば、文書をページ
ごとに区切った場合の1ページ等である。
<Description of Two-Dimensional Centering> FIG. 2 shows an example of a screen during the editing process by the word processor of this embodiment. In the figure, a frame 20 schematically represents the document to be edited, is spelled horizontally from the top to the bottom, and the position of the characters written in the document is represented by a coordinate system as described later. You can From this document, the portion currently being operated is displayed in the editing window area 28 displayed on the CRT 11. The two-dimensional centering process is performed with the area 28 as a reference. Although the area 28 is the editing window itself here,
It may be considered as a frame indicating an area taken in the document being edited regardless of the window. For example, one page when the document is divided into pages.

【0013】点21は文書の入力開始可能座標である。
点21を原点として桁位置方向、すなわち横方向をx軸
とし、行位置方向、すなわち縦方向をy軸とすれば文書
中での文字の位置を(x,y)により一意的に表すこと
ができる。領域28の始点(左上隅点)の行位置をh
1、桁位置をc1とし、終点(右下隅点)の行位置をh
2、桁位置をc2とする,すなわち始点の座標を(c
1,h1)とし、終点の座標を(c2,h2)とすると
領域28の中心点27の座標(cc,hc)は、 cc=(c1+c2)/2 hc=(h1+h2)/2 で求めることができる。文字列26を領域28の中央に
移動させるには、文字列26の真ん中が中心点27の位
置に来る様に、すなわち中心点27より文字列長の1/
2の値を減じた座標へと文字列26の先頭を移動させる
ことにより、二次元のセンタリング処理が完了する。
A point 21 is a coordinate at which the document can be input.
If the digit position direction, that is, the horizontal direction is the x axis and the line position direction, that is, the vertical direction is the y axis with the point 21 as the origin, the character position in the document can be uniquely represented by (x, y). it can. The line position of the start point (upper left corner point) of the area 28 is set to h
1, the column position is c1, and the line position of the end point (lower right corner point) is h
2, the digit position is c2, that is, the coordinates of the starting point are (c
1, h1) and the coordinates of the end point are (c2, h2), the coordinates (cc, hc) of the center point 27 of the region 28 can be obtained by cc = (c1 + c2) / 2 hc = (h1 + h2) / 2 it can. To move the character string 26 to the center of the area 28, the center of the character string 26 is located at the position of the center point 27, that is, 1 / the length of the character string from the center point 27.
The two-dimensional centering process is completed by moving the head of the character string 26 to the coordinate with the value of 2 subtracted.

【0014】図3は図2の文書領域28内の二次元セン
タリング処理が完了した状態を表しており、領域内の距
離l1・l2・l3・l4は枠線からセンタリングされ
た文字列26までの距離であり、 l1=l2 l3=l4 となっている。
FIG. 3 shows a state in which the two-dimensional centering process in the document area 28 of FIG. 2 is completed, and the distances l1, l2, l3, l4 in the area are from the frame line to the centered character string 26. It is a distance, and l1 = l2 l3 = l4.

【0015】図4は以上説明したような二次元センタリ
ング処理を行う際に、本ワードプロセサ装置のCPU1
5により実行される処理手順のフローチャートである。
FIG. 4 shows the CPU 1 of this word processor device when the two-dimensional centering processing as described above is performed.
6 is a flowchart of a processing procedure executed by No. 5.

【0016】以下、図2と図4に沿って二次元センタリ
ング処理を説明する。オペレータはセンタリングする文
字列26を特定する操作を行うとともに、二次元センタ
リングを実行する旨の指示をKB17から入力する。こ
の入力は特定キーや特定文字列の入力によっても良い
し、メニュー等から選択する方式であっても良い。フロ
ーチャートの説明は、これらの入力が済んだ後から開始
されている。
The two-dimensional centering process will be described below with reference to FIGS. 2 and 4. The operator performs an operation of specifying the character string 26 to be centered and inputs an instruction from the KB 17 to execute two-dimensional centering. This input may be performed by inputting a specific key or a specific character string, or may be performed by selecting from a menu or the like. The description of the flow chart starts after these inputs are completed.

【0017】<フローチャートの説明>まず、ステップ
S41で領域28の行・桁方向のサイズを計算し、ステ
ップS42で領域28の中心点27の座標を計算する。
ステップS43では、センタリングする文字列26の長
さが奇数であれば偶数になるよう1を加えて補正し、ス
テップS44で文字列26の先頭座標を獲得する。
<Description of Flowchart> First, the size of the area 28 in the row and column directions is calculated in step S41, and the coordinates of the center point 27 of the area 28 are calculated in step S42.
In step S43, if the length of the character string 26 to be centered is an odd number, it is corrected by adding 1 so that it becomes even, and in step S44, the leading coordinates of the character string 26 are acquired.

【0018】ステップS45で領域28内の中心座標の
行方向(y方向)の成分hc及び桁方向(x方向)の成
分ccを求め、ステップS46では、座標値の桁方向成
分ccからステップS43で補正した文字列長の2分の
1の値を減じる。すなわち、文字列26の長さをsとす
れば、座標(cc−s,hc)を得る。こうしてステッ
プS46で求めた座標位置(cc−s,hc)へと文字
列26を移動する処理をステップS47で行い、センタ
リング処理が完了する。
In step S45, a component hc in the row direction (y direction) and a component cc in the digit direction (x direction) of the central coordinates in the area 28 are obtained. In step S46, the digit direction component cc of the coordinate value is calculated in step S43. The value of 1/2 of the corrected character string length is subtracted. That is, if the length of the character string 26 is s, the coordinates (cc-s, hc) are obtained. In this way, the process of moving the character string 26 to the coordinate position (cc-s, hc) obtained in step S46 is performed in step S47, and the centering process is completed.

【0019】なお、センタリング対象となる文字列は、
オペレータが特に指定することによって選ばれるのでは
なくとも良い。例えば、領域28を文書を構成するペー
ジであるとする。編集中のページにおいて、二次元セン
タリング処理の指示がなされると、対象ページの先頭か
ら順に文字列を探し、空白や句読点等の分離記号で区切
られた文字列を見つけてそれを対象の文字列としても良
い。こうしておけば、ページの中央に何らかの文字列を
書き込もうとするときには、先頭から文字列を書いた後
で二次元センタリング機能を実行すれば良く、文字列を
特に指定する必要は無い。また、このように文字列をま
ったく指定させないのでは無く、所望の行を指定させ、
指定された行の中から文字列(分離記号で区切られた)
を見つけだしてそれをセンタリングの対象文字列とする
ことなどもできる。
The character string to be centered is
It does not have to be selected by the operator's special designation. For example, assume that the area 28 is a page forming a document. When a two-dimensional centering process is instructed on the page being edited, the character string is searched in order from the beginning of the target page, the character string delimited by separators such as blanks and punctuation marks, and the target character string. Also good. In this way, when writing a character string in the center of the page, it is sufficient to execute the two-dimensional centering function after writing the character string from the beginning, and it is not necessary to specify the character string. Also, instead of not specifying the character string at all, let the desired line be specified,
Character string from the specified line (separated by separators)
It is also possible to find out and set it as the target character string for centering.

【0020】また、領域28はページや編集用ウインド
ウといった定められた領域では無く、オペレタータが予
め或はそのつど定める領域であっても良い。この場合に
は領域28を設定する手順が必要であるが、このために
は左上隅点と右下隅点とを指定させる等により定義させ
た後、それによって定められる領域を座標値等として記
憶装置14に格納しておき、必要なときに参照する。
Further, the area 28 is not limited to a predetermined area such as a page or an editing window, but may be an area determined in advance by the operator or each time. In this case, a procedure for setting the area 28 is necessary. For this purpose, the upper left corner point and the lower right corner point are defined, and then the area defined by them is stored as a coordinate value or the like in the storage device. It is stored in 14 and referred to when necessary.

【0021】[0021]

【他の実施例】前記実施例では1行の文字列を対象とし
てセンタリングしていたが、本実施例は図5の51のよ
うな複数行にわたる文字列群のセンタリング処理を行う
装置の説明をする。装置の構成は図1に示されたものと
同一であるが、CPU15により実行される処理手順が
異なる。
[Other Embodiments] In the above embodiment, centering is performed on one line of character strings, but this embodiment describes an apparatus for performing centering processing of a character string group extending over a plurality of lines, such as 51 in FIG. To do. The configuration of the device is the same as that shown in FIG. 1, but the processing procedure executed by the CPU 15 is different.

【0022】文字列群51に対して二次元センタリング
処理を行う際は、文字列群51の全行に渡って各行にお
ける行内センタリング処理を行い、その後文字列長の一
番長い行が領域28内の行方向の中心になるようにす
る。図6は図5の文字列群51が領域28内でセンタリ
ングされた状態を表すものであり、文字列群51はその
中においてセンタリングされた文字列群61となり、そ
のうちで最も長い文字列「よいてんきでしょうね。」が
領域28の中央の行に置かれている。
When the two-dimensional centering process is performed on the character string group 51, the in-line centering process is performed on all lines of the character string group 51, and then the line having the longest character string length is within the area 28. Center in the row direction. FIG. 6 shows a state in which the character string group 51 of FIG. 5 is centered in the area 28, and the character string group 51 becomes the centered character string group 61 in which the longest character string "good. It will be "Tenki." Is placed in the central line of the area 28.

【0023】図7及び図8は、図5の領域28内の文字
列をセンタリングして図6の状態にするためにCPU1
5が実行する処理手順のフローチャートであり、以下、
図7・図8にそって本実施例の二次元センタリング処理
について説明する。
FIGS. 7 and 8 show the CPU 1 for centering the character string in the area 28 of FIG. 5 to bring it to the state of FIG.
5 is a flow chart of a processing procedure executed by No. 5,
The two-dimensional centering process of this embodiment will be described with reference to FIGS.

【0024】まず、領域28の始点の行座標(y座標)
をポインタlptrへ代入し(ステップS701)、領
域28の最終行の行座標をlendに与える(ステップ
S702)。センタリングする文字列群のうち最も長い
文字列の長さを代入する変数lmax及び注目文字列群
が最初に現れる行のポインタltopに初期値として−
1を代入し(ステップS703)、注目文字列群のうち
最も長い文字列の行座標lnoをlptrと同じにして
おく(ステップS704)。以上が初期化の手順であ
る。
First, the row coordinate (y coordinate) of the starting point of the area 28
Is assigned to the pointer lptr (step S701), and the row coordinate of the last row of the area 28 is given to lend (step S702). As a default value, a variable lmax for substituting the length of the longest character string in the centered character string group and a pointer ltop of a line in which the target character string group first appears-
1 is substituted (step S703), and the row coordinate lno of the longest character string in the focused character string group is set to be the same as lptr (step S704). The above is the initialization procedure.

【0025】次にセンタリングすべき文字列群を領域2
8の中から探しだす。まず、変数lptrが示す行li
ne(lptr)に文字列が存在するかを判定し(ステ
ップS705)、存在しなければステップS712へと
スキップする。存在していれば当該行内で文字列のセン
タリング処理を行い(ステップS706)、ポインタl
topが初期値のままかテストし(ステップS70
7)、初期値のままならばその文字列がセンタリング対
象の文字列群のうち最も上に位置するとして、ltop
をそのときのlptrの値に定める(ステップS70
8)。
Next, the character string group to be centered is set to the area 2
Search from 8 First, the line li indicated by the variable lptr
It is determined whether or not a character string exists in ne (lptr) (step S705), and if it does not exist, the process skips to step S712. If it exists, the character string is centered in the line (step S706), and the pointer l
It is tested whether top remains the initial value (step S70
7) If the initial value remains as it is, the character string is positioned at the top of the character string group to be centered, and ltop
To the value of lptr at that time (step S70
8).

【0026】また文字列が見つかった行を注目文字列群
のその時点での最終行として、最終行を示すポインタl
bottomにlptrの値を与える(ステップS70
9)。次にポインタlptrの指し示す文字列の長さl
en(lptr)がlmaxより長いかを判定し(ステ
ップS710)、長ければ最も長い文字列の座標lno
として現在の行座標lptrを代入し(ステップS71
1)、その文字列の長さlen(lprt)をlmax
へ代入する(ステップS712)。こうしてひとつの行
の判定が済んだなら行座標lptrを1つ進め(ステッ
プS713)、lptrが領域28の最終行であるかを
判定し(ステップS714)、最終行でなければステッ
プS705からの処理を次なる行に対して行う。
The line in which the character string is found is set as the last line of the character string group of interest at that time, and a pointer l indicating the last line is set.
The value of lptr is given to bottom (step S70)
9). Next, the length l of the character string pointed to by the pointer lptr
It is determined whether en (lptr) is longer than lmax (step S710). If long, the coordinate lno of the longest character string is determined.
The current row coordinate lptr is substituted as (step S71
1), the length len (lprt) of the character string is set to lmax
(Step S712). When the determination of one row is completed in this way, the row coordinate lptr is advanced by 1 (step S713), and it is determined whether lptr is the last row of the area 28 (step S714). If it is not the last row, the processing from step S705 is started. To the next line.

【0027】こうして文字列群のセンタリングに必要な
情報をとり込んだなら、次にこれらの情報に基づいて移
動先を定める。
When the information necessary for centering the character string group is fetched in this way, then the destination is determined based on these information.

【0028】領域28内の行方向の中心座標(前の実施
例でいうところの“hc”である)を変数lcenに与
え(ステップS715)、文字列群先頭行の移動先座標
の行方向成分lmovを計算する(ステップS71
6)。lmovが決定したら移動先が領域28の上端よ
り上に位置していないか判定し(ステップS717)、
領域28より上になったらlmovとして領域28の先
頭行を与えて補正する(ステップS718)。同様に移
動先終点が領域28の下端より下に位置していないを判
定し(ステップS719)、補正する(ステップS72
0)。
The central coordinate in the row direction within the area 28 (which is "hc" in the previous embodiment) is given to the variable lcen (step S715), and the row component of the destination coordinate of the first row of the character string group is given. lmov is calculated (step S71)
6). When lmov is determined, it is determined whether the movement destination is located above the upper end of the area 28 (step S717),
If it is above the area 28, the head row of the area 28 is given as lmov and corrected (step S718). Similarly, it is determined that the destination end point is not located below the lower end of the area 28 (step S719) and correction is performed (step S72).
0).

【0029】移動元・移動先とも定まったなら、最後に
文字列群を移動し、二次元センタリング処理を完了する
(ステップS721)。
When the source and destination are determined, the character string group is finally moved, and the two-dimensional centering process is completed (step S721).

【0030】図9は図7におけるステップS706の
「行内センタリング処理」を表すフローチャートであ
る。
FIG. 9 is a flow chart showing the "in-line centering process" of step S706 in FIG.

【0031】まず、注目行に書かれている文字列の先頭
桁を求める(S91)。次にその文字列の長さを調べ、
奇数なら1加えて偶数に補正する(S92)。
First, the leading digit of the character string written in the target line is obtained (S91). Then check the length of the string,
If it is an odd number, 1 is added to correct it to an even number (S92).

【0032】次に注目行の中心となる桁位置を求め(S
93)、ステップS92で得られた文字列長の2分の1
をその値から減じる(S94)。ステップS94で得ら
れた値が文字列の移動先の桁位置となり、そこに文字列
を移動してセンタリングは終了する(S95)以上説明
したような手順で複数の行にわたる文字列群を簡単にセ
ンタリングすることができる。なお、説明中の「領域」
とは、文書を構成するページや、編集処理用のウインド
ウ等であると考えても良い。
Next, the column position at the center of the line of interest is obtained (S
93), half the length of the character string obtained in step S92
Is subtracted from the value (S94). The value obtained in step S94 becomes the digit position of the destination of the character string, the character string is moved to that position and the centering ends (S95). A character string group extending over a plurality of lines can be easily performed by the procedure described above. Can be centered. The "area" in the description
It may be considered that a page is a page forming a document, a window for editing processing, or the like.

【0033】このように、文書編集枠内における任意の
領域を選択して領域内の文字の行・桁方向の中心座標を
計算し、二次元的に文字列をセンタリングする手段を備
えたので、桁方向のセンタリングを行った後、行方向の
レイアウトを整えるという手動作業なしに、より二次元
的な文書の自動レイアウトが可能となった。
As described above, since an arbitrary area in the document editing frame is selected, the center coordinates of the characters in the row / column direction in the area are calculated, and a means for centering the character string two-dimensionally is provided. After performing centering in the digit direction, it becomes possible to automatically layout a two-dimensional document without the manual work of adjusting the layout in the row direction.

【0034】尚、本発明は、複数の機器から構成される
システムに適用しても1つの機器から成る装置に適用し
ても良い。また、本発明は、システム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることはいうまでもない。
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.

【0035】[0035]

【発明の効果】以上説明したように、本発明に係る文書
処理装置は、文字列の二次元的なセンタリング処理を行
う際の作業効率を向上できるという効果がある。
As described above, the document processing apparatus according to the present invention has the effect of improving the work efficiency when performing two-dimensional centering processing of a character string.

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

【図1】本発明の一実施例を示す文書処理装置の構成を
説明するブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a document processing apparatus according to an exemplary embodiment of the present invention.

【図2】実施例のセンタリング処理前の文書編集枠を示
す図である。
FIG. 2 is a diagram illustrating a document edit frame before centering processing according to the embodiment.

【図3】実施例のセンタリング処理後の文書編集枠を示
す図である。
FIG. 3 is a diagram showing a document edit frame after centering processing according to the embodiment.

【図4】実施例の処理を表すフローチャートである。FIG. 4 is a flowchart showing the processing of the embodiment.

【図5】他の実施例のセンタリング処理前の文書編集枠
を示す図である。
FIG. 5 is a diagram showing a document edit frame before centering processing according to another embodiment.

【図6】他の実施例のセンタリング処理後の文書編集枠
を示す図である。
FIG. 6 is a diagram showing a document edit frame after centering processing according to another embodiment.

【図7】[Figure 7]

【図8】他の実施例の処理を表すフローチャートであ
る。
FIG. 8 is a flowchart showing a process of another embodiment.

【図9】他の実施例の行内センタリング処理を表すフロ
ーチャートである。
FIG. 9 is a flowchart showing an in-line centering process of another embodiment.

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

11 CRT 12 処理プログラムエリア 13 文書データ格納エリア 14 メモリ 15 CPU 16 プリンタ 17 キーボード 11 CRT 12 processing program area 13 document data storage area 14 memory 15 CPU 16 printer 17 keyboard

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 電子文書の編集をおこなう文書処理装置
であって、 行方向及び桁方向の広がりをもって前記文書上に設定さ
れた領域の中央位置を算出する手段と、 前記領域内から文字列を選択する選択手段と、 前記選択された文字列の中心が前記領域の中央位置なる
様に前記文字列を移動する移動手段と、を備えることを
特徴とする文書処理装置。
1. A document processing apparatus for editing an electronic document, comprising means for calculating a central position of an area set on the document with a spread in a row direction and a column direction, and a character string from the area. A document processing apparatus comprising: a selection unit that selects a character string; and a moving unit that moves the character string so that the center of the selected character string is located at the center of the area.
【請求項2】 前記領域は所望の方形領域としてオペレ
ータにより設定可能であることを特徴とする請求項1記
載の文書処理装置。
2. The document processing apparatus according to claim 1, wherein the area can be set by an operator as a desired rectangular area.
【請求項3】 前記領域は、前記文書を構成する単位と
なる領域として予め定められていることを特徴とする請
求項1記載の文書処理装置。
3. The document processing apparatus according to claim 1, wherein the area is predetermined as an area serving as a unit forming the document.
【請求項4】 前記選択手段は、所定の分離記号で区切
られた文字列を前記領域の中から探し、見いだされた文
字列を選択することを特徴とする請求項1記載の文書処
理装置。
4. The document processing apparatus according to claim 1, wherein the selecting means searches the area for a character string delimited by a predetermined separator and selects the found character string.
【請求項5】 前記文字列は複数の行に書かれた複数の
文字列群であり、該文字列群の中央とは文字列群中で最
も長い文字列の中央と定めることを特徴とする請求項1
記載の文書処理装置。
5. The character string is a plurality of character string groups written in a plurality of lines, and the center of the character string group is defined as the center of the longest character string in the character string group. Claim 1
Document processing device described.
【請求項6】 電子文書を表示しつつ編集をおこなう文
書処理装置であって、 オペレータに指示内容を入力させる入力手段と、 前記表示された部分の上において、前記指示に応じて行
方向及び桁方向の広がりをもって前記文書上に設定され
た領域の中央位置を算出する手段と、 前記指示に応じて前記領域内から文字列を選択する選択
手段と、 前記選択された文字列を前記領域の中央位置に移動する
移動手段と、 前記移動手段に文字列が移動された結果として得られた
文書をあらためて表示する手段と、 を備えることを特徴とする文書処理装置。
6. A document processing device for editing while displaying an electronic document, comprising: input means for allowing an operator to input instruction content; and a line direction and a digit on the displayed portion according to the instruction. Means for calculating the central position of the area set on the document with a spread in the direction, selecting means for selecting a character string from within the area according to the instruction, and the selected character string for the center of the area A document processing apparatus comprising: a moving unit that moves to a position; and a unit that newly displays a document obtained as a result of moving a character string on the moving unit.
【請求項7】 電子文書の編集をおこなう文書処理方法
であって、 行方向及び桁方向の広がりをもって前記文書上に設定さ
れた領域の中央位置を算出する行程と、 前記領域内から文字列を選択する選択行程と、 前記選択された文字列を前記領域の中央位置に移動する
行程と、を備えることを特徴とする文書処理方法。
7. A document processing method for editing an electronic document, comprising a step of calculating a central position of an area set on the document with a spread in a row direction and a column direction, and a character string from the area. A document processing method comprising: a selection step of selecting and a step of moving the selected character string to a central position of the area.
JP04016338A 1992-01-31 1992-01-31 Document processing apparatus and method Expired - Fee Related JP3096123B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04016338A JP3096123B2 (en) 1992-01-31 1992-01-31 Document processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04016338A JP3096123B2 (en) 1992-01-31 1992-01-31 Document processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH05210661A true JPH05210661A (en) 1993-08-20
JP3096123B2 JP3096123B2 (en) 2000-10-10

Family

ID=11913629

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04016338A Expired - Fee Related JP3096123B2 (en) 1992-01-31 1992-01-31 Document processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3096123B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017208605A (en) * 2016-05-16 2017-11-24 京セラドキュメントソリューションズ株式会社 Image processing device and image processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017208605A (en) * 2016-05-16 2017-11-24 京セラドキュメントソリューションズ株式会社 Image processing device and image processing method

Also Published As

Publication number Publication date
JP3096123B2 (en) 2000-10-10

Similar Documents

Publication Publication Date Title
JPH0221024B2 (en)
JPH07114548A (en) Label generating device
JPH05210661A (en) Word processor and method therefor
JPH0766385B2 (en) Document creation device
US4539563A (en) Method and apparatus for drawing lines
JPH08202856A (en) Picture processing method
JP2818067B2 (en) Bleed image processing method
JPH07114547A (en) Label generating device
JPH1011425A (en) Rectangular area production method for document preparing device
JP2650803B2 (en) Full screen editor control processor
JP2593975B2 (en) Character string extraction method and character string extraction device in electronic typesetting device
JP3396374B2 (en) Image processing apparatus and image processing method
JP3138546B2 (en) How to create user characters
JP2671598B2 (en) Document processing device
JP3144792B2 (en) Table editing device
JPH06342430A (en) Automatic page divided display editing device
JPS63163954A (en) Forme system
JP2690657B2 (en) Layout pattern generator
JPH08106452A (en) Document processor
JPH07325809A (en) Tablating method
JPH06348694A (en) Document editing method
JPH0773168A (en) Document editing device
JPH1021040A (en) Method and device for document display by screen division
JPH0619658B2 (en) Display method in numerical control device
JPH05181882A (en) Data processor and data expanding method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000703

LAPS Cancellation because of no payment of annual fees