JPH04268953A - Document preparing device - Google Patents

Document preparing device

Info

Publication number
JPH04268953A
JPH04268953A JP3030254A JP3025491A JPH04268953A JP H04268953 A JPH04268953 A JP H04268953A JP 3030254 A JP3030254 A JP 3030254A JP 3025491 A JP3025491 A JP 3025491A JP H04268953 A JPH04268953 A JP H04268953A
Authority
JP
Japan
Prior art keywords
column
inter
document
column line
line
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
JP3030254A
Other languages
Japanese (ja)
Inventor
Michio Seki
美智夫 関
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP3030254A priority Critical patent/JPH04268953A/en
Publication of JPH04268953A publication Critical patent/JPH04268953A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To automatically draw an inter-column line at a proper line between step blocks in a document by using document format information in a document forming device having a stepped function. CONSTITUTION:A coordinate calculating part 10 calculates the number of steps corresponding to the number of step blocks based on the document format information of a document and calculates the start and end coordinates of an inter-column line corresponding to the number of steps. A memory 9 stores an inter-column line table consisting of the calculated start and end coordinates of the inter-column line. An editing part 8 executes processing for drawing an inter-column line between respective column blocks connecting two points based upon the start and end coordinates extracted from the inter-column line table.

Description

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

【0001】0001

【産業上の利用分野】本発明は、文書を複数の段ブロッ
クに分割して編集する段組機能を有する文書作成装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document creation device having a column function for editing a document by dividing it into a plurality of column blocks.

【0002】0002

【従来の技術】従来、作成した文書を任意の段数に編集
する段組機能を備えた文書作成装置が開発されている。 この装置では、文書データを例えば3段組に編集処理す
ると、1頁の文書データが3段ブロックに分割されて、
各段ブロック間にはスペース(2箇所)が設けられる。 ここで、文書形式情報(段組数、字数、行数、文字間、
行ピッチ等)を変更することにより、3段組から例えば
2段組に変更することが可能である。この場合、行ピッ
チまたは行数を変更すると、段ブロック間のスペースの
位置は変更となる。
2. Description of the Related Art Conventionally, document creation devices have been developed that have a column function for editing a created document into an arbitrary number of columns. In this device, when document data is edited into three-column blocks, one page of document data is divided into three-column blocks.
Spaces (two locations) are provided between each stage block. Here, document format information (number of columns, number of characters, number of lines, character spacing,
By changing the row pitch, etc.), it is possible to change from three columns to, for example, two columns. In this case, if the row pitch or the number of rows is changed, the position of the space between the column blocks will be changed.

【0003】ところで、文書が複数の段ブロックに分割
された場合に、各段ブロック間のスペースの位置に段間
の境界線として段間線を引くことができれば、有用な文
書編集機能を得ることができる。従来では、段間線を引
く場合には、図形または罫線機能により、段間線に相当
する線を形成していた。
By the way, when a document is divided into a plurality of column blocks, if it is possible to draw intercolumn lines as boundary lines between columns in the spaces between each column block, a useful document editing function can be obtained. Can be done. Conventionally, when drawing inter-column lines, lines corresponding to the inter-column lines have been formed using graphics or ruled line functions.

【0004】0004

【発明が解決しようとする課題】従来の段組機能では、
分割された各段ブロック間に段間線を引く機能はなく、
段間線に相当する線を引く場合には、図形または罫線機
能を利用する必要があった。しかしながら、図形または
罫線機能では、各段ブロック間の適正な位置に線を引く
には、煩わしい入力操作が必要である。また、前記のよ
うに文書形式情報を変更した場合に、これに伴って段間
線に相当する線の位置を変更することは容易でない。
[Problem to be solved by the invention] In the conventional column function,
There is no function to draw inter-column lines between each divided column block,
When drawing a line equivalent to a line between columns, it was necessary to use a graphic or ruled line function. However, with the graphic or ruled line function, cumbersome input operations are required to draw lines at appropriate positions between each column block. Further, when the document format information is changed as described above, it is not easy to change the position of the line corresponding to the intercolumn line accordingly.

【0005】本発明の目的は、文書形式情報に応じて、
文書の段ブロック間の適正な位置に段間線を自動的に引
くことが可能な段組機能を有する文書作成装置を提供す
ることにある。
[0005] The object of the present invention is to
It is an object of the present invention to provide a document creation device having a column function capable of automatically drawing column lines at appropriate positions between column blocks of a document.

【0006】[0006]

【課題を解決するための手段】本発明は、段組機能を有
する文書作成装置において、段間数に応じた段間線のス
タート座標およびエンド座標を算出する段間線算出手段
、算出されたスタート座標およびエンド座標を格納する
段間線テーブルメモリ手段および段間線テーブルメモリ
手段から取出されるスタート座標およびエンド座標に基
づいて段ブロック間に段間線を出力する段間線出力手段
を備えた装置である。
[Means for Solving the Problems] The present invention provides an inter-column line calculation means for calculating start coordinates and end coordinates of an inter-column line according to the number of columns in a document creation device having a column function. An inter-column line table memory means for storing start coordinates and an end coordinate, and an inter-column line output means for outputting an inter-column line between column blocks based on the start coordinates and end coordinates retrieved from the inter-column line table memory means. It is a device that has

【0007】[0007]

【作用】本発明では、段間線算出手段は、文書の文書形
式情報に基づいて段ブロックの段数に応じた段間数を算
出し、段間数に応じた段間線のスタート座標およびエン
ド座標を算出する。段間線テーブルメモリ手段は算出さ
れた段間線のスタート座標およびエンド座標を格納する
。段間線出力手段は、段間線テーブルメモリ手段から取
出されるスタート座標およびエンド座標に基づいて、2
点間を結ぶ各段ブロック間の段間線を引く処理を実行す
る。
[Operation] In the present invention, the inter-column line calculation means calculates the number of column gaps according to the number of columns of column blocks based on the document format information of the document, and calculates the start coordinates and end of the inter-column line according to the number of columns. Calculate coordinates. The inter-column line table memory means stores the calculated start coordinates and end coordinates of the inter-column lines. The inter-column line output means outputs two output coordinates based on the start coordinate and the end coordinate taken out from the inter-column line table memory means.
Executes the process of drawing inter-level lines between each level block connecting points.

【0008】[0008]

【実施例】以下図面を参照して本発明の実施例を説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Examples of the present invention will be described below with reference to the drawings.

【0009】図1は同実施例に係わる文書作成装置の要
部を示すブロック図である。本装置は、装置全体の制御
を行なう制御部(CPU)1、キーボード2、入力制御
部3、ディスプレイ4、表示制御部5、プリンタ6およ
び印字制御部7を有する。
FIG. 1 is a block diagram showing the main parts of a document creation device according to the same embodiment. This device includes a control section (CPU) 1 that controls the entire device, a keyboard 2, an input control section 3, a display 4, a display control section 5, a printer 6, and a print control section 7.

【0010】キーボード2は、文字入力、文書編集処理
および文書形式情報の入力等に必要な各種キーを有する
。入力制御部3は、キーボード2から入力される各種キ
ー入力信号をキーコードに変換して制御部1に出力する
。ディスプレイ4およびプリンタ6は出力装置である。 ディスプレイ4は、表示制御部5により制御されて文書
を表示する。プリンタ6は、印字制御部7により制御さ
れて文書を印刷する。
The keyboard 2 has various keys necessary for character input, document editing processing, input of document format information, and the like. The input control section 3 converts various key input signals input from the keyboard 2 into key codes and outputs them to the control section 1. Display 4 and printer 6 are output devices. The display 4 is controlled by the display control section 5 to display a document. The printer 6 is controlled by the print control unit 7 to print a document.

【0011】さらに、本装置は、編集部8、メモリ9、
座標計算部10および文書バッファメモリ11を有する
。編集部8は、文書編集処理、文書の保存,呼出し処理
および文書の表示処理等を実行する。メモリ9はRAM
からなり、文書形式情報および座標計算部10の計算結
果(段間線テーブル)等を格納する。座標計算部10は
、本発明に係わる段間線処理に必要な座標計算処理を実
行する。文書バッファメモリ11は、作成した文書デー
タを格納するメモリである。次に、同実施例の動作を説
明する。
[0011] Furthermore, this device includes an editing section 8, a memory 9,
It has a coordinate calculation section 10 and a document buffer memory 11. The editing unit 8 executes document editing processing, document storage/retrieval processing, document display processing, and the like. Memory 9 is RAM
It stores document format information, calculation results of the coordinate calculation unit 10 (inter-column line table), and the like. The coordinate calculation unit 10 executes coordinate calculation processing necessary for the inter-column line processing according to the present invention. The document buffer memory 11 is a memory that stores created document data. Next, the operation of this embodiment will be explained.

【0012】まず、キーボード2からの文字入力に基づ
いて、制御部1は文書の作成処理を実行し、作成した文
書データを文書バッファメモリ11に格納する。ここで
、図3の(A)に示すように、文書形式情報の入力画面
において、段組機能に必要な形式情報が入力されている
と(図5のステップS1)、編集部8は作成された文書
に対する段組処理を実行する。文書形式情報は、段組機
能に必要な形式情報以外に、字数、行数、文字間、行ピ
ッチ等からなる。文書形式情報は、キーボード2から入
力されると、メモリ9に格納される。この段組処理によ
り、例えば図2に示すように、1ページの文書が3段組
の各段ブロック(段1〜段3)に分割された編集処理が
なされる。
First, based on character input from the keyboard 2, the control unit 1 executes document creation processing and stores the created document data in the document buffer memory 11. Here, as shown in FIG. 3(A), if the format information necessary for the column function is input on the document format information input screen (step S1 in FIG. 5), the editing section 8 is created. Execute column processing on the document. The document format information includes the number of characters, number of lines, character spacing, line pitch, etc. in addition to the format information necessary for the column function. When the document format information is input from the keyboard 2, it is stored in the memory 9. Through this column processing, editing processing is performed in which a one-page document is divided into three column blocks (column 1 to column 3), as shown in FIG. 2, for example.

【0013】次に、座標計算部10は、メモリ9に格納
された文書形式情報に段組機能に必要な形式情報がセッ
トされていれば(ステップS2のYES)、段組処理さ
れた文書の段間数を算出する(ステップS3)。即ち、
座標計算部10は、文書形式情報の段数(3)に基づい
て、「段数−1=段間数」の計算式により算出する。
Next, if the format information necessary for the column function is set in the document format information stored in the memory 9 (YES in step S2), the coordinate calculation unit 10 calculates the format of the column-processed document. The number of gaps is calculated (step S3). That is,
The coordinate calculation unit 10 calculates based on the number of columns (3) in the document format information using the calculation formula "number of columns - 1 = number of columns."

【0014】さらに、座標計算部10は、一つ目の段ブ
ロック(段1)の左上座標(LTx,LTy )をセッ
トし(ステップS4)、かつその段ブロックのサイズを
算出する(ステップS5)。段ブロック(段1)の左上
座標(LTx ,LTy )は、図2に示すように、左
側余白と上部余白に相当する値である。段ブロックのサ
イズBSx は、「文字サイズ×(1+文字間)×字数
」の計算式により算出する。また、サイズBSy は、
「行ピッチ×行数」の計算式により算出する。
Furthermore, the coordinate calculation unit 10 sets the upper left coordinates (LTx, LTy) of the first step block (step 1) (step S4), and calculates the size of the step block (step S5). . The upper left coordinates (LTx, LTy) of the column block (column 1) are values corresponding to the left margin and the top margin, as shown in FIG. The size BSx of the column block is calculated using the formula "character size x (1 + character spacing) x number of characters". Also, the size BSy is
Calculated using the formula "line pitch x number of lines".

【0015】この左上座標(LTx ,LTy )およ
びサイズBSx ,BSy を使用して、座標計算部1
0は、段間線20aのスタート座標LS(Sx ,Sy
 )とエンド座標LE(Ex ,Ey )を算出する(
ステップS6)。 スタート座標LS(Sx ,Sy )は、「Sx =L
Tx +BSx +段間幅W/2、Sy =LTy 」
の計算式により算出する。また、エンド座標LE(Ex
 ,Ey )は、「Ex =LTx +BSx+段間幅
W/2、Ey =LTy +BSy 」の計算式により
算出する。
Using these upper left coordinates (LTx, LTy) and sizes BSx, BSy, the coordinate calculation unit 1
0 is the start coordinate LS (Sx, Sy
) and end coordinates LE (Ex, Ey) are calculated (
Step S6). The start coordinates LS (Sx, Sy) are “Sx = L
Tx + BSx + inter-stage width W/2, Sy = LTy”
Calculated using the formula. Also, the end coordinate LE (Ex
, Ey) are calculated using the formula: "Ex = LTx + BSx + inter-stage width W/2, Ey = LTy + BSy".

【0016】座標計算部10は、算出したスタート座標
LSとエンド座標LEを段間線テーブルにセットし、メ
モリ9に格納する(ステップS7)。段間線テーブルは
、図3の(B)に示すように、各段ブロック(段1〜段
3)毎に、スタート座標(L1S〜L3S)とエンド座
標(L1E〜L3E)からなる。
The coordinate calculation section 10 sets the calculated start coordinate LS and end coordinate LE in the inter-column line table and stores them in the memory 9 (step S7). As shown in FIG. 3B, the inter-stage line table consists of start coordinates (L1S-L3S) and end coordinates (L1E-L3E) for each stage block (stages 1-3).

【0017】座標計算部10は、全ての段間数に応じた
段間線(ここでは、段間線20a,20bの2本となる
)のスタート座標LSとエンド座標LEを算出するまで
、前記のような処理を繰り返す(ステップS8〜S10
)。
The coordinate calculation unit 10 calculates the start coordinate LS and the end coordinate LE of the inter-column lines (here, two inter-column lines 20a and 20b) corresponding to all the number of inter-columns. Repeat the process like (steps S8 to S10)
).

【0018】次に、編集部8は、文書編集処理時に表示
または印刷の指示が制御部1からなされると、メモリ9
に格納された段間線テーブルを利用して、各段ブロック
(段1〜段3)間に段間線20a,20bを引く処理を
実行する。
Next, when the editing section 8 receives a display or printing instruction from the control section 1 during document editing processing, the editing section 8 stores the memory 9.
Using the inter-column line table stored in , a process of drawing inter-column lines 20a and 20b between each column block (column 1 to column 3) is executed.

【0019】即ち、編集部8は、メモリ9に格納された
文書形式情報の段数(3)に基づいて、「段数−1=段
間数」の計算式により段組処理された文書の段間数を算
出する(図6のステップS11,S12)。さらに、文
書形式情報の段間線の指定(図3の(A)を参照)があ
れば、編集部8は、メモリ9に格納された段間線テーブ
ルからスタート座標LSとエンド座標LEを取出す(ス
テップS14)。
That is, based on the number of columns (3) of the document format information stored in the memory 9, the editing unit 8 calculates the column spacing of the document that has been processed into columns using the calculation formula "number of columns - 1 = number of columns". The number is calculated (steps S11 and S12 in FIG. 6). Furthermore, if there is a specification of inter-column lines in the document format information (see (A) in FIG. 3), the editing unit 8 retrieves the start coordinate LS and the end coordinate LE from the inter-column line table stored in the memory 9. (Step S14).

【0020】編集部8は、取出したスタート座標LSと
エンド座標LEの2点間を、文書形式情報で指定された
線種(図3の(A)を参照)により結ぶ段間線データを
生成する。この段間線データをディスプレイ4またはプ
リンタ6の出力装置に出力することにより、図4の(A
)に示すように、各段ブロック間に段間線20a,20
bが引かれることになる。
The editing unit 8 generates inter-column line data that connects the extracted start coordinate LS and end coordinate LE using the line type specified in the document format information (see (A) in FIG. 3). do. By outputting this inter-column line data to the output device of the display 4 or printer 6, (A
), there are inter-stage lines 20a, 20 between each stage block.
b will be subtracted.

【0021】このようにして、段組機能に必要な文書形
式情報を利用して、段組処理されて得られる文書の各段
ブロック間の適正な位置に引く段間線の座標情報(段間
線テーブル)を生成する。この座標情報に基づいて、各
段ブロック間の適正な位置に段間線データを出力し、各
段ブロック間の境界線となる段間線を自動的に引くこと
ができる。本発明の方式であれば、文書形式情報を利用
した段間線の座標情報に基づいて段間線を引く処理を実
行するため、図4の(B)に示すように、3段組から例
えば2段組に変更した場合に、文書形式情報の変更によ
り、2段組の各段ブロック間の適正な位置に段間線を容
易に引くことができる。
In this way, by using the document format information necessary for the column function, the coordinate information of the intercolumn line drawn at the appropriate position between each column block of the document obtained by column processing (column interval line table). Based on this coordinate information, it is possible to output inter-column line data at appropriate positions between each column block, and automatically draw inter-column lines serving as boundaries between each column block. According to the method of the present invention, since the process of drawing intercolumn lines based on the coordinate information of the intercolumn lines using document format information is executed, for example, from a three-column set, as shown in FIG. When changing to a two-column format, by changing the document format information, it is possible to easily draw inter-column lines at appropriate positions between each column block of the two-column format.

【0022】[0022]

【発明の効果】以上詳述したように本発明によれば、段
組機能を有する文書作成装置において、図形または罫線
機能を利用することなく、文書形式情報を利用して文書
の段ブロック間の適正な位置に段間線を自動的に引くこ
とができる。したがって、文書形式情報の変更により、
段組数等が変更した場合に、段ブロック間に引く段間線
の適正な位置を容易に変更することができる。また、図
形または罫線機能を利用する必要がないため、段間線を
引くための入力操作は簡単である。
As described in detail above, according to the present invention, in a document creation device having a column function, document format information is used to create a document between column blocks in a document without using a graphic or ruled line function. Inter-column lines can be automatically drawn at appropriate positions. Therefore, by changing the document format information,
When the number of columns etc. is changed, the appropriate position of the inter-column line drawn between the column blocks can be easily changed. Furthermore, since there is no need to use graphics or ruled line functions, input operations for drawing inter-column lines are easy.

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

【図1】本発明の実施例に係る文書作成装置の要部を示
すブロック図。
FIG. 1 is a block diagram showing the main parts of a document creation device according to an embodiment of the present invention.

【図2】同実施例の動作を説明するための概念図。FIG. 2 is a conceptual diagram for explaining the operation of the embodiment.

【図3】(A)は同実施例に係わる文書形式情報を説明
するための概念図。 (B)は同実施例に係わる段間線テーブルを説明するた
めの概念図。
FIG. 3A is a conceptual diagram for explaining document format information according to the same embodiment. (B) is a conceptual diagram for explaining an inter-column line table according to the same embodiment.

【図4】同実施例に係わる出力結果の一例を示す図。FIG. 4 is a diagram showing an example of output results according to the same example.

【図5】同実施例の動作を説明するためのフローチャー
ト。
FIG. 5 is a flowchart for explaining the operation of the embodiment.

【図6】同実施例の動作を説明するためのフローチャー
ト。
FIG. 6 is a flowchart for explaining the operation of the embodiment.

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

1…制御部、8…編集部、9…メモリ、10…座標計算
部。
DESCRIPTION OF SYMBOLS 1...control part, 8...editing part, 9...memory, 10...coordinate calculation part.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  作成した文書を複数の段ブロックに分
割して編集する段組機能を有する文書作成装置において
、前記文書の文書形式情報に基づいて前記段ブロックの
段数に応じた段間数を算出し、前記段間数に応じた段間
線のスタート座標およびエンド座標を算出する段間線算
出手段と、この段間線算出手段により算出された前記ス
タート座標およびエンド座標を格納する段間線テーブル
メモリ手段と、この段間線テーブルメモリ手段から取出
される前記スタート座標およびエンド座標に基づいて前
記段ブロック間に段間線を出力する段間線出力手段とを
具備したことを特徴とする文書作成装置。
1. A document creation device having a column function for editing a created document by dividing it into a plurality of column blocks, the number of columns being determined according to the number of columns of the column blocks based on document format information of the document. an inter-column line calculation means for calculating the start coordinate and end coordinate of the inter-column line according to the number of inter-column intervals; and an inter-column line calculation means for storing the start coordinate and end coordinate calculated by the inter-column line calculation means. It is characterized by comprising a line table memory means, and an inter-column line output means for outputting an inter-column line between the column blocks based on the start coordinates and end coordinates taken out from the inter-column line table memory means. document creation device.
JP3030254A 1991-02-25 1991-02-25 Document preparing device Pending JPH04268953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3030254A JPH04268953A (en) 1991-02-25 1991-02-25 Document preparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3030254A JPH04268953A (en) 1991-02-25 1991-02-25 Document preparing device

Publications (1)

Publication Number Publication Date
JPH04268953A true JPH04268953A (en) 1992-09-24

Family

ID=12298578

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3030254A Pending JPH04268953A (en) 1991-02-25 1991-02-25 Document preparing device

Country Status (1)

Country Link
JP (1) JPH04268953A (en)

Similar Documents

Publication Publication Date Title
US4608662A (en) Method for editing document
JPH06124078A (en) Kerning processing method for european language document process
JPH04268953A (en) Document preparing device
JPH0143338B2 (en)
JPH0522933B2 (en)
JPH0324701B2 (en)
US5526019A (en) Character processing apparatus
JP3083665B2 (en) Sentence information processing equipment
JPH0361197B2 (en)
JP2699974B2 (en) Pattern registration method
JPH0361198B2 (en)
JPH0143339B2 (en)
JPS5965339A (en) Document editing device
JPH0731671B2 (en) Formula input editing method
JPH01103467A (en) Document output method
JPH0445875B2 (en)
JP3412203B2 (en) String output device
JP2698348B2 (en) Character processor
JP3412202B2 (en) String output device
JP3056850B2 (en) Document creation device with graph creation function
JP2612402B2 (en) Display control method
JPH0411909B2 (en)
JPS63111564A (en) Word processor
JPH0782311B2 (en) Character spacing adjustment method
JPH06286231A (en) Printer