JPH0683820A - Document data output device - Google Patents

Document data output device

Info

Publication number
JPH0683820A
JPH0683820A JP4253485A JP25348592A JPH0683820A JP H0683820 A JPH0683820 A JP H0683820A JP 4253485 A JP4253485 A JP 4253485A JP 25348592 A JP25348592 A JP 25348592A JP H0683820 A JPH0683820 A JP H0683820A
Authority
JP
Japan
Prior art keywords
data
line
page
document
format
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
JP4253485A
Other languages
Japanese (ja)
Other versions
JP2995313B2 (en
Inventor
Yoshio Kumakawa
善雄 熊川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP4253485A priority Critical patent/JP2995313B2/en
Priority to US07/992,867 priority patent/US5425138A/en
Publication of JPH0683820A publication Critical patent/JPH0683820A/en
Application granted granted Critical
Publication of JP2995313B2 publication Critical patent/JP2995313B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To arrange document data containing ruled line data while being well balanced on one page and to output them so as not to disorder relation between the digit and line positions of the ruled line data on one page. CONSTITUTION:A document shaping part 26 develops the document data of the designated page in a layout develop memory 28 by successively changing character sizes stored in text and table format memories 20 and 22. When these developed document data occupy over the 3/4 of a print enable area, those data are printed in that format by a printing part 32. When the character size exceeds a critical value set by a format table 18 before the data occupy over the 3/4 area, the line interval and the upper margin are successively changed similarly. When ruled lines get over in the case of changing the character size of the ruled line data, the ruled line is prevented from being shifted by returning the character size for one stage.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字数値等のテキスト
データと罫線データとを含むドキュメント(文書)デー
タを例えば印刷出力する文書データ出力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document data output device for printing out document data including text data such as character numbers and ruled line data.

【0002】[0002]

【従来の技術】ワードプロセッサやオフィスコンピュー
タに於いては、文字数値等のテキストデータと罫線デー
タとを含むドキュメント(文書)データを作成すること
ができる。この作成したドキュメントデータは、所定の
用紙にページ単位で印刷出力されることになるが、この
時、ドキュメントデータの各データが用紙上のどの位置
に配置されて出力されるのかは、そのドキュメントデー
タに対する印刷書式、即ち用紙サイズ,文字サイズ,文
字間隔,行間隔,等の情報で決定される。
2. Description of the Related Art In a word processor or an office computer, document data including text data such as character numerical values and ruled line data can be created. The created document data will be printed out on a predetermined paper page by page. At this time, the position on the paper where each data of the document data is arranged and output is determined by the document data. It is determined by the print format, that is, information such as paper size, character size, character spacing, line spacing, and the like.

【0003】[0003]

【発明が解決しようとする課題】上記印刷書式は、オペ
レータの指定により任意に設定できるものであるため、
場合によってはその印刷書式が、対応するドキュメント
データに相応しくない場合がある。即ち、ドキュメント
データの全体のデータ量に対して文字サイズ,文字間
隔,行間隔が小さい場合には、出力対象の用紙1頁に対
してドキュメントデータ全体が上方に偏って配置されて
しまう場合があり、非常にバランスの悪いものとなって
しまう。
Since the above print format can be arbitrarily set by the operator's designation,
In some cases, the print format may not be suitable for the corresponding document data. That is, when the character size, the character spacing, and the line spacing are small with respect to the entire amount of document data, the entire document data may be biased upward with respect to one page of the output target paper. , It will be very unbalanced.

【0004】このような場合、従来ではオペレータ自ら
がその印刷書式の変更を行い、用紙1頁に対してドキュ
メントデータがバランス良く配置されるまで上記印刷書
式の変更を繰り返し行わなければならないという問題が
あった。
In such a case, conventionally, there is a problem that the operator himself has to change the print format and repeatedly change the print format until the document data is arranged in a well-balanced manner on one page of paper. there were.

【0005】このような印刷書式の変更の際、特に問題
になるのが上記ドキュメントデータ内にテキストデータ
だけではなく罫線データを含む場合である。この罫線デ
ータは、ドキュメント上に罫線で囲まれる表を作成する
時に入力するものであるが、このような罫線データを含
む行は、その印刷書式の変更により用紙上におけるその
物理的な桁位置,行位置がずれてしまっては困るもので
ある。
A particular problem in changing the print format is when the document data includes ruled line data as well as text data. This ruled line data is input when a table surrounded by ruled lines is created on a document. A line containing such ruled line data has its physical column position on the paper changed by changing its print format. It is a problem if the line positions are misaligned.

【0006】図10は、論理的なデータであるドキュメ
ントデータを、実際の用紙に印字する場合、ドキュメン
トデータにおける各データの用紙上における物理的な出
力位置、即ち1頁上における桁位置及び行位置の関係
が、その時の印刷書式で指定されている文字サイズ,文
字間隔,行間隔で決まる桁ピッチ及び行ピッチに応じて
全く異なったものとなる場合を示したものである。
FIG. 10 shows a physical output position of each data in the document data, that is, a column position and a line position on one page when the document data which is logical data is printed on the actual paper. Shows a case in which the relationship between the two becomes completely different depending on the character size, character spacing, line pitch determined by the line spacing, and line pitch specified in the print format at that time.

【0007】ここで、不図示ドキュメントメモリに記憶
されている論理行データ100の1行は、実際の用紙1
02上における1行に相当するわけではなく、改行コー
ド104で区切られる1行である。また、用紙102上
における各文字の配置ピッチ(次文字,次行までのピッ
チ)は、文字サイズによって変化するものである。即
ち、論理行の1行が、実際の用紙102上で何行になる
かは、用紙102の最大(MAX)横幅と、書式データ
の文字サイズ及び文字間隔とから決まる。これは、次の
ようにして決定される。即ち、物理行1行文字数=用紙
MAX横幅/(文字サイズ×文字間隔)、論理行1行に
対する物理行数=論理行データの文字数/物理行1行文
字数である。
Here, one line of the logical line data 100 stored in the document memory (not shown) is an actual paper 1
02 does not correspond to one line on the line 02, but is one line delimited by the line feed code 104. Further, the arrangement pitch of each character on the paper 102 (next character, pitch to the next line) varies depending on the character size. That is, the number of lines of one logical line on the actual paper 102 is determined by the maximum (MAX) width of the paper 102 and the character size and character spacing of the format data. This is determined as follows. That is, the number of characters in one physical line = width of paper MAX / (character size × character spacing), the number of physical lines for one logical line = the number of characters in logical line data / the number of characters in one physical line.

【0008】このように、印刷書式、例えば文字サイズ
が変更されると、テキストデータは適宜改行されるため
用紙102からはみ出して消えてしまうという問題は生
じないが、罫線データについては、改行できないために
一部用紙102からはみ出て印刷出力されないこととな
ったり、あるいは強制的に改行してしまって表としての
体裁を崩し、表の用をなさなくなってしまう。
As described above, when the print format, for example, the character size is changed, the text data is appropriately line-wrapped, so that there is no problem that the text data runs off the paper 102 and disappears, but the ruled-line data cannot be line-broken. In addition, a part of the sheet 102 may not be printed out or may not be printed out, or a line feed may be forced to destroy the appearance of the table and render the table useless.

【0009】本発明の課題は、罫線データを含むドキュ
メントデータを1頁用紙上でバランス良く配置して出力
できるようにすることであり、且つその時の固定データ
の桁位置及び行位置の関係が1頁上で崩れることがない
ようにすることである。
An object of the present invention is to enable document data including ruled line data to be arranged and output on a 1-page paper in a well-balanced manner, and at that time, the relationship between the column position and the line position of the fixed data is 1. The goal is to keep it from collapsing on the page.

【0010】[0010]

【課題を解決するための手段】本発明の手段は次の通り
である。本発明の文書データ出力装置は、出力書式の変
更に応じた自動改行出力が可能なテキストデータと自動
改行出力が不所望な罫線データとを含む文書データを頁
単位に出力する文書データ出力装置である。記憶手段
は、1頁に割り付けられる上記文書データの1頁上にお
ける第1の配置ピッチを記憶する。識別手段は、上記1
頁に割り付けられる文書データ内で、上記罫線データを
含まない行からなるテキスト領域と、上記罫線データを
含む行からなる固定行領域とを識別する。第1の変更手
段は、上記テキスト領域における各データの配置ピッチ
が大きくなるように、上記記憶手段に記憶された上記第
1の配置ピッチを第2の配置ピッチに変更する。第2の
変更手段は、上記固定行領域における各データが次行に
回り込まない範囲で、且つ上記固定行領域における各デ
ータの配置ピッチが大きくなるように、上記記憶手段に
記憶された上記第1の配置ピッチを第3の配置ピッチに
変更する。出力手段は、上記テキスト領域のデータを上
記第2の配置ピッチで配置出力し、上記固定行領域のデ
ータを上記第3の配置ピッチで配置出力する。
The means of the present invention are as follows. The document data output device of the present invention is a document data output device for outputting page-by-page document data including text data capable of automatic line feed output according to a change in output format and ruled line data for which automatic line feed output is undesired. is there. The storage means stores the first arrangement pitch on one page of the document data assigned to one page. The identification means is the above 1
In the document data assigned to the page, a text area made up of lines not containing the ruled line data and a fixed line area made up of lines containing the ruled line data are identified. The first changing unit changes the first arrangement pitch stored in the storage unit to the second arrangement pitch so that the arrangement pitch of each data in the text area becomes large. The second changing means stores the first data stored in the storage means in a range in which each data in the fixed row area does not wrap around to the next row and in which the arrangement pitch of each data in the fixed row area is large. The arrangement pitch of is changed to the third arrangement pitch. The output means arranges and outputs the data in the text area at the second arrangement pitch, and arranges and outputs the data in the fixed line area at the third arrangement pitch.

【0011】[0011]

【作用】本発明の手段の作用は次の通りである。出力書
式の変更に応じた自動改行出力が可能なテキストデータ
と自動改行出力が不所望な罫線データとを含む文書デー
タを頁単位に出力する際に、識別手段は、1頁に割り付
けられる文書データ内で、上記罫線データを含まない行
からなるテキスト領域と、上記罫線データを含む行から
なる固定行領域とを識別する。また、第1の変更手段
は、上記テキスト領域における各データの配置ピッチが
大きくなるように、記憶手段に記憶されている上記第1
の配置ピッチを第2の配置ピッチに変更し、第2の変更
手段は、上記固定行領域における各データが次行に回り
込まない範囲で、且つ上記固定行領域における各データ
の配置ピッチが大きくなるように、上記記憶手段に記憶
された上記第1の配置ピッチを第3の配置ピッチに変更
する。そして、出力手段は、上記識別手段で識別された
上記テキスト領域のデータを上記第1の変更手段で変更
された上記第2の配置ピッチで配置出力し、また上記識
別手段で識別された上記固定行領域のデータを上記第2
の変更手段によって変更された上記第3の配置ピッチで
配置出力する。従って、罫線データを含むドキュメント
(文書)データを1頁用紙上でバランス良く配置して出
力できるようになると共に、且つその時の固定(罫線)
データの桁位置及び行位置の関係が1頁上で崩れること
がないようにすることができる。
The operation of the means of the present invention is as follows. When the document data including the text data capable of automatic line feed output according to the change of the output format and the ruled line data for which automatic line feed output is not desired is output in page units, the identification means is the document data assigned to one page. In the table, a text area made up of lines not containing the ruled line data and a fixed line area made up of lines containing the ruled line data are identified. Also, the first changing means stores the first data stored in the storage means so that an arrangement pitch of each data in the text area becomes large.
To a second arrangement pitch, and the second changing means increases the arrangement pitch of each data in the fixed row area within a range in which each data in the fixed row area does not wrap around to the next row. Thus, the first arrangement pitch stored in the storage means is changed to the third arrangement pitch. Then, the output means arranges and outputs the data of the text area identified by the identifying means at the second arrangement pitch changed by the first changing means, and the fixed portion identified by the identifying means. The data in the row area is the second
The third arrangement pitch is changed and output by the changing means. Therefore, the document data including the ruled line data can be arranged and output in a well-balanced manner on one page paper, and at the same time, the fixed (ruled line)
It is possible to prevent the relationship between the digit position and the line position of data from being broken on one page.

【0012】[0012]

【実施例】以下、本発明の一実施例を、図1乃至図9を
参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS.

【0013】図1はその構成を示すブロック図で、図中
の参照番号10は全体の制御を行うCPUである。12
は文字数値等のテキストデータと表のための罫線データ
とを含むドキュメント(文書)データの入力並びに出力
頁の指定を行うための入力部であり、14は入力された
ドキュメントデータを記憶するドキュメントデータメモ
リである。
FIG. 1 is a block diagram showing the configuration thereof, and reference numeral 10 in the figure is a CPU for controlling the whole. 12
Reference numeral 14 is an input unit for inputting document (document) data including text data such as character numerical values and ruled line data for a table and designating an output page, and 14 is document data for storing the input document data. It is a memory.

【0014】16は図2の(A)に示すように、上余白
16A,文字サイズ16B,文字間隔16C,行間隔1
6Dの各文書書式データを記憶する文書書式メモリであ
り、18は図2の(B)に示すように、文書書式データ
における各設定情報の限界値を記憶する書式テーブルで
ある。20はテキストデータの出力されるテキスト領域
内についての文書書式データを記憶するテキスト書式メ
モリであり、22は罫線データの出力される固定行領域
内についての文書書式データを記憶する表書式メモリで
ある。これらテキスト書式メモリ20及び表書式メモリ
22は、上記文書書式メモリ16と同様に、上余白,文
字サイズ,文字間隔,行間隔の各文書書式データを記憶
する。
As shown in FIG. 2A, reference numeral 16 denotes an upper margin 16A, a character size 16B, a character interval 16C, and a line interval 1.
A document format memory 6D stores each document format data, and a format table 18 stores the limit value of each setting information in the document format data as shown in FIG. 2B. Reference numeral 20 is a text format memory for storing the document format data in the text area where the text data is output, and 22 is a table format memory for storing the document format data in the fixed line area where the ruled line data is output. . Similar to the document format memory 16, the text format memory 20 and the table format memory 22 store the document format data of the upper margin, the character size, the character spacing, and the line spacing.

【0015】24は上記入力部12から出力指定された
頁が何頁であるのかを示すページ値情報を記憶するペー
ジ値記憶部である。26は頁内にバランス良く文書デー
タを配置するよう、上記書式テーブル18に記憶されて
いる限界値の範囲内で、上記テキスト書式メモリ20並
びに表書式メモリ22の内容を操作する文書整形部であ
り、28はこの文書整形部26によって、上記ドキュメ
ントデータメモリ14に記憶されている文書データの
内、上記ページ値記憶部に記憶されたページ値情報によ
り示される頁のデータを、上記テキスト書式メモリ20
及び表書式メモリ22の内容により示される書式で展開
する1頁分の容量を持つレイアウト展開メモリである。
上記文書整形部26は、このレイアウト展開メモリ28
に展開されたレイアウトを参照して、1頁内の文書デー
タのバランスを判定する。
Reference numeral 24 is a page value storage unit for storing page value information indicating how many pages the output designated from the input unit 12 is. A document shaping unit 26 operates the contents of the text format memory 20 and the table format memory 22 within a limit value stored in the format table 18 so as to arrange the document data in a page in a well-balanced manner. , 28 by the document shaping unit 26, converts the data of the page indicated by the page value information stored in the page value storage unit out of the document data stored in the document data memory 14 into the text format memory 20.
And a layout development memory having a capacity of one page developed in the format indicated by the contents of the table format memory 22.
The document shaping unit 26 uses the layout expansion memory 28.
The balance of the document data in one page is determined by referring to the layout developed in the above.

【0016】30はCRT等の表示部であり、32はプ
リンタ等の印字部である。34はこれら表示部30もし
くは印字部32に、上記文書書式メモリ16あるいは上
記テキスト書式メモリ20及び表書式メモリ22に記憶
された文書書式データに従って頁単位で出力されるデー
タが書き込まれるページメモリである。そして、36は
上記ドキュメントデータメモリ14に記憶されているテ
キストデータ(文字コード)をキャラクタに変換して上
記ページメモリ34に書き込むためのキャラクタジェネ
レータ(CG)である。
Reference numeral 30 is a display unit such as a CRT, and 32 is a printing unit such as a printer. Reference numeral 34 is a page memory in which data output in page units is written in the display unit 30 or the printing unit 32 in accordance with the document format data stored in the document format memory 16 or the text format memory 20 and the table format memory 22. . A character generator (CG) 36 converts the text data (character code) stored in the document data memory 14 into a character and writes the character in the page memory 34.

【0017】図2の(A)のように上記文書書式メモリ
16に記憶されている上余白16Aは、図3の(A)に
示すように、印刷用紙38の印字可能領域40の上端か
らの余白のサイズを示す情報であり、単位はmmであ
る。また、文字サイズ16Bはポイントで表され、文字
間隔16C及び行間隔16Dは、基本となる文字サイズ
を「1」として表される。即ち、文字サイズ16Bと文
字間隔16C(行間隔16D)との関係は、図4の
(A)及び(B)に示すようになっている。
As shown in FIG. 3A, the upper margin 16A stored in the document format memory 16 as shown in FIG. 2A extends from the upper end of the printable area 40 of the printing paper 38. This is information indicating the size of the margin, and the unit is mm. The character size 16B is represented by points, and the character spacing 16C and the line spacing 16D are represented with the basic character size being "1". That is, the relationship between the character size 16B and the character spacing 16C (line spacing 16D) is as shown in FIGS. 4A and 4B.

【0018】これら文字サイズに対する文字間隔及び行
間隔の限界値は、図2の(B)に示すように、上余白の
限界値に対応させて上記書式テーブル18に記憶されて
いる。この書式テーブル18には更に、印刷用紙38の
最大(MAX)横幅並びにMAX縦幅も記憶されてい
る。これらMAX幅は、図3の(A)に示すように、印
刷可能領域40の大きさに対応している。
The character spacing and line spacing limit values for these character sizes are stored in the format table 18 in correspondence with the upper margin limit values, as shown in FIG. 2B. The format table 18 also stores the maximum (MAX) horizontal width and the MAX vertical width of the printing paper 38. These MAX widths correspond to the size of the printable area 40, as shown in FIG.

【0019】また、上記ドキュメントデータメモリ14
に記憶されるドキュメントデータは、図3の(B)に示
すように、改行コード毎に区切られる各論理行の先頭
に、当該論理行がテキスト行であるのか罫線行であるの
かを識別するための識別フラグが付されて記憶されるよ
うになっている。
Further, the document data memory 14
As shown in (B) of FIG. 3, the document data stored in is to identify whether the logical line is a text line or a ruled line at the beginning of each logical line delimited by each line feed code. The identification flag is added and stored.

【0020】次に、以上のような構成における動作を説
明する。
Next, the operation of the above configuration will be described.

【0021】図5乃至図7は、印刷出力時の動作を示す
一連のフローチャートである。
5 to 7 are a series of flowcharts showing the operation at the time of print output.

【0022】即ち、テキストデータ及び罫線データでな
るドキュメントデータがドキュメントデータメモリ14
に記憶されている状態で、入力部12によって印字部3
2からの或るページの印刷出力が指示されると(ステッ
プS1)、文書整形部26は、その指定ページのページ
値をページ値記憶部24に記憶する(ステップS2)。
そして、文書書式メモリ16に記憶されている文書書式
データをテキスト書式メモリ20及び表書式メモリ22
にコピーする(ステップS3)。
That is, document data consisting of text data and ruled line data is stored in the document data memory 14
Stored in the printing unit 3 by the input unit 12
When the printout of a certain page is instructed from step 2 (step S1), the document shaping section 26 stores the page value of the designated page in the page value storage section 24 (step S2).
Then, the document format data stored in the document format memory 16 is converted into the text format memory 20 and the table format memory 22.
(Step S3).

【0023】次に、レイアウト比率の算出ルーチンをコ
ールして、レイアウト比率を算出する。このレイアウト
比率の算出ルーチンは、図8に示すようにして行われ
る。即ち、まずページ値記憶部24に記憶されている指
定ページ値に従って、そのページの論理行データを1つ
上記ドキュメントデータメモリ14から読出す(ステッ
プS41)。そして、その論理行データの先頭に配され
ている識別フラグを判定し(ステップS42)、それが
テキスト行を示すものであれば、テキスト書式メモリ2
0の内容に基づいて、桁ピッチ並びに行ピッチを決定す
る(ステップS43)。ここで、桁ピッチ及び行ピッチ
は、図2の(C)に示すように、或る文字の先頭座標か
ら次の文字の先頭座標までの長さのことである。即ち、
桁ピッチは文字サイズ×文字間隔、行ピッチは文字サイ
ズ×行間隔で決定されることができる。
Next, the layout ratio calculation routine is called to calculate the layout ratio. This layout ratio calculation routine is performed as shown in FIG. That is, first, one logical row data of the page is read from the document data memory 14 according to the designated page value stored in the page value storage unit 24 (step S41). Then, the identification flag arranged at the beginning of the logical line data is judged (step S42), and if it indicates a text line, the text format memory 2
The digit pitch and the row pitch are determined based on the contents of 0 (step S43). Here, the digit pitch and the line pitch are the lengths from the leading coordinates of a certain character to the leading coordinates of the next character, as shown in FIG. That is,
The digit pitch can be determined by character size × character spacing, and the line pitch can be determined by character size × line spacing.

【0024】そして、決定された桁ピッチ,行ピッチに
基づいて、論理行データをレイアウト展開メモリ28に
展開し(ステップS44)、指定ページ内に他の論理行
データがあれば(ステップS45)、上記ステップS4
1に戻って、次の論理行データに対する処理を行う。
Then, the logical row data is expanded in the layout expansion memory 28 based on the determined digit pitch and row pitch (step S44), and if there is other logical row data in the designated page (step S45), Step S4
Returning to 1, the process for the next logical row data is performed.

【0025】一方、上記ステップS42において、識別
フラグにより罫線行であると判定された場合には、表書
式メモリ22の内容に基づいて、桁ピッチ並びに行ピッ
チを決定する(ステップS46)。そして、決定された
桁ピッチ,行ピッチに基づいて、論理行データをレイア
ウト展開メモリ28に展開し(ステップS47)、指定
ページ内に他の論理行データがあれば(ステップS4
5)、上記ステップS41に戻って、次の論理行データ
に対する処理を行う。
On the other hand, if it is determined by the identification flag that the line is a ruled line in step S42, the digit pitch and the line pitch are determined based on the contents of the table format memory 22 (step S46). Then, the logical row data is expanded in the layout expansion memory 28 based on the determined digit pitch and row pitch (step S47), and if there is another logical row data in the designated page (step S4).
5) Returning to step S41, the process for the next logical row data is performed.

【0026】こうして、指定ページ内の全ての論理行デ
ータの展開が終了したならば、次に、レイアウト展開メ
モリ28に展開されたデータの最終位置を検索し(ステ
ップS48)、この検索された最終位置の1頁内の最大
(MAX)位置(用紙MAX縦幅)に対する比率を算出
して、上位のルーチンに戻る。
When the expansion of all the logical row data in the designated page is completed in this way, the final position of the expanded data is next searched in the layout expansion memory 28 (step S48), and the last searched position is searched. The ratio of the position to the maximum (MAX) position within one page (paper MAX vertical width) is calculated, and the process returns to the upper routine.

【0027】そして、このレイアウト比率の算出ルーチ
ンで算出された比率が、3/4以上の比率であるかどう
か判定し(ステップS5)、そうであれば、バランス良
く1頁内に文書データが配置されているとして、テキス
ト書式メモリ20及び表書式メモリ22の内容に基づい
て、ドキュメントデータメモリ14に記憶されている当
該ページのドキュメントデータを、CG36によってペ
ージメモリ14にパターン展開し(ステップS6)、印
字部32で印刷を行う(ステップS7)。
Then, it is judged whether or not the ratio calculated by this layout ratio calculation routine is a ratio of 3/4 or more (step S5), and if so, the document data is arranged in one page in good balance. Based on the contents of the text format memory 20 and the table format memory 22, the pattern data of the document data of the page stored in the document data memory 14 is developed in the page memory 14 by the CG 36 (step S6). Printing is performed by the printing unit 32 (step S7).

【0028】一方、上記ステップS5で、3/4よりも
小さい比率であると判定された場合、例えば図9の
(A)に示すような場合には、次に、テキスト書式メモ
リ20の文字サイズをチェックし(ステップS8)、そ
れが書式テーブル18に記憶されている限界値以下であ
るかどうか判定する(ステップS9)。限界値以下であ
れば、テキスト書式メモリ20の文字サイズを1段階大
きくした後(ステップS10)、上記ステップS4に戻
って、その文字サイズでのレイアウト比率の算出を行
う。このステップS4乃至S10のループにより、図9
の(B)に示すように、罫線データ即ち表はそのまま
で、テキストデータの文字サイズが徐々に大きくなり、
テキスト行の行ピッチ,桁ピッチが大きくなる(場合に
よっては、物理的行数が増えることもある)。
On the other hand, if it is determined in step S5 that the ratio is smaller than 3/4, for example, as shown in FIG. 9A, then the character size of the text format memory 20 is set. Is checked (step S8), and it is determined whether the value is equal to or less than the limit value stored in the format table 18 (step S9). If it is less than the limit value, the character size of the text format memory 20 is increased by one step (step S10), and then the process returns to the step S4 to calculate the layout ratio with the character size. By the loop of steps S4 to S10, as shown in FIG.
As shown in (B) of, the character size of the text data gradually increases with the ruled line data, that is, the table,
The line pitch and column pitch of the text lines are increased (in some cases, the number of physical lines may be increased).

【0029】そして、テキスト行の文字サイズが限界値
まで達しても3/4よりも小さい比率しか得られない場
合には、次に、表書式メモリ22の文字サイズをチェッ
クし(ステップS11)、それが書式テーブル18に記
憶されている限界値以下であるかどうか判定する(ステ
ップS12)。限界値を越えていれば、後述するステッ
プS19へと進み、限界値以下であれば、表書式メモリ
22の文字サイズを1段階大きくする(ステップS1
3)。これにより、例えば図9の(C)に示すように、
罫線行も桁ピッチ及び行ピッチが大きくなり、1頁の横
方向及び縦方向に伸びることになる。この文字サイズの
アップに続けて、レイアウト比率の算出ルーチンをコー
ルする(ステップS14)。このステップS14におけ
るレイアウト比率の算出ルーチンは、上記ステップS4
のそれと同じである。
When the character size of the text line reaches the limit value and a ratio smaller than 3/4 is obtained, the character size of the table format memory 22 is checked (step S11). It is determined whether it is less than or equal to the limit value stored in the format table 18 (step S12). If it exceeds the limit value, the process proceeds to step S19 described later, and if it is less than the limit value, the character size of the table format memory 22 is increased by one step (step S1).
3). As a result, for example, as shown in FIG.
The ruled line also has a large column pitch and a large line pitch, and extends one page in the horizontal and vertical directions. Following the increase of the character size, the layout ratio calculation routine is called (step S14). The layout ratio calculation routine in step S14 is based on the above step S4.
It is the same as that of.

【0030】このレイアウト比率が算出された後、上記
レイアウト展開メモリ28に展開された罫線行にオーバ
ーがあるかどうか、つまり罫線行が改行されてしまうか
否かをチェックし(ステップS15)、オーバーがなけ
れば(ステップS16)、上記算出した比率が3/4の
比率以上であるかどうかを判定する(ステップS1
7)。3/4以上の比率であれば、バランス良く1頁内
に文書データが配置されているとして、上記ステップS
6及びS7へ進んで、印刷を行う。
After the layout ratio is calculated, it is checked whether or not the ruled line expanded in the layout expansion memory 28 is over, that is, the ruled line is broken (step S15). If there is not (step S16), it is determined whether or not the calculated ratio is equal to or more than 3/4 (step S1).
7). If the ratio is 3/4 or more, it is assumed that the document data are arranged in one page in a well-balanced manner, and the above step S
In step 6 and S7, printing is performed.

【0031】一方、3/4よりも小さい比率であると判
定された場合には、上記ステップS11に戻って、上記
処理を繰り返す。
On the other hand, when it is determined that the ratio is smaller than 3/4, the process returns to step S11 and the above process is repeated.

【0032】また、上記ステップS16において、展開
された罫線行にオーバーがあると判定された場合には、
表書式メモリ22の文字サイズを1段階小さくして、罫
線行が改行されないようにする(ステップS18)。
If it is determined in step S16 that the developed ruled line is over,
The character size of the table format memory 22 is reduced by one step so that the ruled line is not broken (step S18).

【0033】こうして、テキスト行及び罫線行の各文字
サイズが両方とも限界値に達しても、まだ3/4の比率
に達しないときには、次に、テキスト書式メモリ行間隔
をチェックし(ステップS19)、それが書式テーブル
18に記憶されている限界値以下であるかどうか判定す
る(ステップS20)。限界値以下であれば、テキスト
書式メモリ20及び表書式メモリ22の行間隔を1段階
大きくする(ステップS21)。これにより、例えば図
9の(D)に示すように、テキスト行並びに罫線行の行
間隔が1頁の縦方向に伸びることになる。この行間隔の
アップに続けて、レイアウト比率の算出ルーチンをコー
ルする(ステップS22)。このステップS22におけ
るレイアウト比率の算出ルーチンも、上記ステップS4
のそれと同じである。そして、この算出したレイアウト
比率が3/4の比率以上であるかどうかを判定し(ステ
ップS23)、3/4以上の比率であれば、バランス良
く1頁内に文書データが配置されているとして、上記ス
テップS6及びS7へ進んで、印刷を行う。
Thus, when both the character sizes of the text line and the ruled line have reached the limit values but have not yet reached the ratio of 3/4, the text format memory line interval is checked (step S19). , It is determined whether it is less than or equal to the limit value stored in the format table 18 (step S20). If it is less than the limit value, the line spacing of the text format memory 20 and the table format memory 22 is increased by one step (step S21). As a result, for example, as shown in FIG. 9D, the line spacing between the text line and the ruled line extends in the vertical direction of one page. Following the increase of the line spacing, the layout ratio calculation routine is called (step S22). The routine for calculating the layout ratio in step S22 is also the same as in step S4.
It is the same as that of. Then, it is determined whether or not the calculated layout ratio is equal to or higher than the ratio of 3/4 (step S23), and if the ratio is equal to or higher than 3/4, it is determined that the document data are arranged in one page in good balance. Then, the process proceeds to steps S6 and S7 to perform printing.

【0034】一方、3/4よりも小さい比率であると判
定された場合には、上記ステップS19に戻って、上記
処理を繰り返す。
On the other hand, if it is determined that the ratio is smaller than 3/4, the process returns to step S19 and the above process is repeated.

【0035】こうして、行間隔を増加させていき、上記
ステップS20で限界値を越えたと判定されると、次
に、テキスト書式メモリ20の上余白をチェックし(ス
テップS24)、それが書式テーブル18に記憶されて
いる限界値以下であるかどうか判定する(ステップS2
5)。限界値以下であれば、テキスト書式メモリ20の
上余白を1段階大きくした後(ステップS26)、レイ
アウト比率の算出ルーチンをコールする(ステップS2
7)。このステップS27におけるレイアウト比率の算
出ルーチンも、上記ステップS4のそれと同じである。
そして、この算出したレイアウト比率が3/4の比率以
上であるかどうかを判定し(ステップS28)、3/4
以上の比率であれば、バランス良く1頁内に文書データ
が配置されているとして、上記ステップS6及びS7へ
進んで、印刷を行う。
In this way, the line spacing is increased, and if it is determined in step S20 that the limit value has been exceeded, then the upper margin of the text format memory 20 is checked (step S24), which is the format table 18. It is determined whether or not it is less than or equal to the limit value stored in (step S2
5). If it is less than or equal to the limit value, the upper margin of the text format memory 20 is increased by one step (step S26), and then the layout ratio calculation routine is called (step S2).
7). The layout ratio calculation routine in step S27 is the same as that in step S4.
Then, it is determined whether the calculated layout ratio is equal to or higher than the ratio of 3/4 (step S28), 3/4
If the ratio is above, it is determined that the document data are arranged in one page in a well-balanced manner, and the process proceeds to steps S6 and S7 to perform printing.

【0036】一方、3/4よりも小さい比率であると判
定された場合には、上記ステップS24に戻って、上記
処理を繰り返す。
On the other hand, if it is determined that the ratio is smaller than 3/4, the process returns to step S24 and the above process is repeated.

【0037】こうして、上記ステップS25で限界値を
越えてしまった場合には、これ以上の書式の変更は(で
きないので)行わず、その時の書式で、上記ステップS
6及びS7へ進んで、印刷を行う。
In this way, if the limit value is exceeded in step S25, no further format changes (because it cannot be done) are performed, and the format at that time is used for step S25.
In step 6 and S7, printing is performed.

【0038】このように、テキストデータについての文
字サイズを順次変更し、これによりバランス良く文書デ
ータが配置された場合にはその書式で印刷を行い、バラ
ンス良く配置されない場合には、次に、罫線データにつ
いての文字サイズを順次変更する。そして、これにより
バランス良く文書データが配置された場合にはその書式
で印刷を行い、バランス良く配置されない場合には、次
に、テキスト,罫線の両データについての行間隔を順次
変更する。そして、これによりバランス良く文書データ
が配置された場合にはその書式で印刷を行い、バランス
良く配置されない場合には、さらに上余白を調整し、こ
れによりバランス良く文書データが配置された場合には
その書式で印刷を行い、バランス良く配置されない場合
にも、それ以上の設定変更が不可能であるため、各文書
書式データの限界値に基づいて印刷を行うようにしてい
る。従って、テキストデータと罫線データを含むドキュ
メント(文書)データを1頁用紙上でバランス良く配置
して出力できるようになる。
As described above, the character size of the text data is sequentially changed, and when the document data is arranged in a good balance by this, printing is performed in that format. When the document data is not arranged in a good balance, the ruled line is next. Sequentially change the character size for data. Then, if the document data is arranged in a good balance, printing is performed in that format. If the document data is not arranged in a good balance, then the line spacings of both the text and ruled line data are sequentially changed. Then, when the document data is arranged in a good balance by this, printing is performed in that format, and when the document data is not arranged in a good balance, the upper margin is adjusted further, and when the document data is arranged in a good balance by this. Even if the printing is performed in that format and the arrangement is not balanced, it is impossible to change the setting any further, so printing is performed based on the limit value of each document format data. Therefore, the document data including the text data and the ruled line data can be arranged and output in a well-balanced manner on one page paper.

【0039】また、罫線データについての文字サイズを
変更した場合、罫線行におけるオーバーチェックを行
い、オーバーがあるときには文字サイズを1段階戻すよ
うにして、罫線行が改行されてしまうことを防いでい
る。従って、罫線データを含むドキュメント(文書)デ
ータを1頁用紙上でバランス良く配置して出力する時の
固定(罫線)データの桁位置及び行位置の関係が1頁上
で崩れることがないようにすることができる。
Further, when the character size of the ruled line data is changed, the ruled line is over-checked and the character size is returned by one step to prevent the ruled line from being broken. . Therefore, when the document (document) data including the ruled line data is arranged and output in a well-balanced manner on one page paper, the relationship between the column position and line position of the fixed (ruled line) data is not broken on one page. can do.

【0040】なお、上記ステップS24の上余白チェッ
ク並びにステップS26の上余白の1段階増大処理をテ
キスト書式メモリ20について行うようにしているが、
この上余白のデータは、表書式メモリ22も同一の内容
となっているため、こちらを処理対象としても良く、ま
た、ステップS6で文書書式メモリ16の上余白16A
を参照するように変更すれば、これらステップS24,
S26の処理対象を文書書式メモリ16とすることもで
きる。
Although the upper margin check in step S24 and the step of increasing the upper margin in step S26 by one step are performed on the text format memory 20,
Since the table format memory 22 has the same content as the upper margin data, this data may be processed, and in step S6, the upper margin 16A of the document format memory 16 is processed.
If it is changed so as to refer to these steps S24,
The processing target of S26 may be the document format memory 16.

【0041】また、文書データがバランス良く配置され
たかどうかを判定するための比率として印字可能領域4
0の縦方向の最大値つまり用紙MAX縦幅の3/4を採
用したが、これに限定されるものではなく、適宜設定可
能である。
The printable area 4 is used as a ratio for determining whether the document data are arranged in a well-balanced manner.
The maximum value of 0 in the vertical direction, that is, 3/4 of the vertical width of the sheet MAX is adopted, but the present invention is not limited to this and can be set as appropriate.

【0042】その他、本発明を逸脱しない範囲で、種々
の変更修正が可能なことは勿論である。
Of course, various changes and modifications can be made without departing from the present invention.

【0043】[0043]

【発明の効果】本発明によれば、罫線データを含むドキ
ュメント(文書)データを1頁用紙上でバランス良く配
置して出力できるようになると共に、且つその時の固定
(罫線)データの桁位置及び行位置の関係が1頁上で崩
れることがないようにすることができる。
According to the present invention, document data including ruled line data can be arranged and output in a well-balanced manner on one page paper, and the digit position of fixed (ruled line) data at that time and It is possible to prevent the relationship of the row positions from being broken on one page.

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

【図1】実施例のブロック構成図である。FIG. 1 is a block diagram of an embodiment.

【図2】(A)は図1中の文書書式メモリの記憶内容を
示す図、(B)は図1中の書式テーブルの記憶内容を示
す図であり、(C)は桁ピッチと行ピッチを説明するた
めの図である。
2A is a diagram showing stored contents of a document format memory shown in FIG. 1, FIG. 2B is a diagram showing stored contents of a format table shown in FIG. 1, and FIG. 2C is a digit pitch and a line pitch. It is a figure for explaining.

【図3】(A)は図1中の文書書式メモリ並びに書式テ
ーブルに記憶されるデート実際の印字用紙との関係を説
明するための図であり、(B)は図1中のドキュメント
データメモリに記憶される論理行データを説明するため
の図である。
3A is a diagram for explaining the relationship between the document format memory and the actual print paper stored in the format table in FIG. 1, and FIG. 3B is a document data memory in FIG. FIG. 6 is a diagram for explaining logical row data stored in FIG.

【図4】(A)及び(B)はそれぞれ文字サイズ及び文
字間隔と実際の文字との関係を示す図である。
4A and 4B are diagrams showing the relationship between the character size and character spacing and the actual character, respectively.

【図5】実施例の動作を説明するための一連のフローチ
ャートの最初の部分を示す図である。
FIG. 5 is a diagram showing the first part of a series of flowcharts for explaining the operation of the embodiment.

【図6】実施例の動作を説明するための一連のフローチ
ャートの真ん中の部分を示す図である。
FIG. 6 is a diagram showing the middle part of a series of flowcharts for explaining the operation of the embodiment.

【図7】実施例の動作を説明するための一連のフローチ
ャートの最後の部分を示す図である。
FIG. 7 is a diagram showing the last part of a series of flowcharts for explaining the operation of the embodiment.

【図8】図5乃至図7の一連のフローチャートの各所で
コールされるレイアウト比率の算出ルーチンのフローチ
ャートである。
FIG. 8 is a flowchart of a layout ratio calculation routine called at various places in the series of flowcharts of FIGS. 5 to 7.

【図9】(A)乃至(D)はそれぞれ図5乃至図7の一
連のフローチャートの各所におけるテキストデータと罫
線データの配置レイアウトを示す図である。
9A to 9D are diagrams showing layout layouts of text data and ruled line data at various points in the series of flowcharts of FIGS. 5 to 7, respectively.

【図10】文字サイズを変更した場合の物理的配置の変
化の様子を示す図である。
FIG. 10 is a diagram showing how the physical layout changes when the character size is changed.

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

10…CPU、12…入力部、14…ドキュメントデー
タメモリ、16…文書書式メモリ、18…書式テーブ
ル、20…テキスト書式メモリ、22…表書式メモリ、
24…ページ値記憶部、26…文書整形部、28…レイ
アウト展開メモリ、32…印字部、38…印刷用紙、4
0…印字可能領域。
10 ... CPU, 12 ... Input unit, 14 ... Document data memory, 16 ... Document format memory, 18 ... Format table, 20 ... Text format memory, 22 ... Table format memory,
24 ... Page value storage unit, 26 ... Document shaping unit, 28 ... Layout development memory, 32 ... Printing unit, 38 ... Printing paper, 4
0 ... Printable area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 出力書式の変更に応じた自動改行出力が
可能なテキストデータと自動改行出力が不所望な罫線デ
ータとを含む文書データを頁単位に出力する文書データ
出力装置に於いて、 1頁に割り付けられる上記文書データの1頁上における
第1の配置ピッチを記憶する記憶手段と、 上記1頁に割り付けられる文書データ内で、上記罫線デ
ータを含まない行からなるテキスト領域と、上記罫線デ
ータを含む行からなる固定行領域とを識別する識別手段
と、 上記テキスト領域における各データの配置ピッチが大き
くなるように、上記記憶手段に記憶された上記第1の配
置ピッチを第2の配置ピッチに変更する第1の変更手段
と、 上記固定行領域における各データが次行に回り込まない
範囲で、且つ上記固定行領域における各データの配置ピ
ッチが大きくなるように、上記記憶手段に記憶された上
記第1の配置ピッチを第3の配置ピッチに変更する第2
の変更手段と、 上記テキスト領域のデータを上記第2の配置ピッチで配
置出力し、上記固定行領域のデータを上記第3の配置ピ
ッチで配置出力する出力手段と、 を具備することを特徴とする文書データ出力装置。
1. A document data output device for outputting, in page units, document data including text data capable of automatic line feed output according to a change in output format and ruled line data for which automatic line feed output is not desired. Storage means for storing a first layout pitch on one page of the document data assigned to a page, a text area made up of lines not including the ruled line data in the document data assigned to the one page, and the ruled line Identification means for identifying a fixed line area composed of lines containing data, and the first arrangement pitch stored in the storage means so as to increase the arrangement pitch of each data in the text area. First changing means for changing the pitch, and a layout pattern of each data in the fixed row area within a range in which each data in the fixed row area does not wrap around to the next row. As Chi is increased, a second for changing the first arrangement pitch stored in the storage means in the third arrangement pitch
And changing means for arranging and outputting the data in the text area at the second arrangement pitch and outputting and outputting the data in the fixed line area at the third arrangement pitch. Document data output device.
JP4253485A 1991-12-26 1992-08-31 Document data output device Expired - Lifetime JP2995313B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP4253485A JP2995313B2 (en) 1992-08-31 1992-08-31 Document data output device
US07/992,867 US5425138A (en) 1991-12-26 1992-12-17 Apparatus and method for automatically editing documents including text data and table data with ruled lines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4253485A JP2995313B2 (en) 1992-08-31 1992-08-31 Document data output device

Publications (2)

Publication Number Publication Date
JPH0683820A true JPH0683820A (en) 1994-03-25
JP2995313B2 JP2995313B2 (en) 1999-12-27

Family

ID=17252041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4253485A Expired - Lifetime JP2995313B2 (en) 1991-12-26 1992-08-31 Document data output device

Country Status (1)

Country Link
JP (1) JP2995313B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0673746A1 (en) * 1994-03-11 1995-09-27 MASCHINENFABRIK HENNECKE GmbH Method and apparatus for manufacturing moulded articles from multi-component plastic materials

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0673746A1 (en) * 1994-03-11 1995-09-27 MASCHINENFABRIK HENNECKE GmbH Method and apparatus for manufacturing moulded articles from multi-component plastic materials

Also Published As

Publication number Publication date
JP2995313B2 (en) 1999-12-27

Similar Documents

Publication Publication Date Title
US5425138A (en) Apparatus and method for automatically editing documents including text data and table data with ruled lines
KR860001071B1 (en) Method for editing document
US5050101A (en) Printing apparatus
JPH0523956B2 (en)
JP2995313B2 (en) Document data output device
JPH0452476B2 (en)
JP3013512B2 (en) Barcode printer
JP3033287B2 (en) Form output device
JPH07102716B2 (en) Text printing control device
JPH0255164A (en) Information output device
JP2837497B2 (en) Output control device and output control method
JPS60109888A (en) Character processor
JPH0583384B2 (en)
JP2677442B2 (en) Method of capturing illustrations in editing machine and editing machine
JPS59186028A (en) Layout display unit
JPH04367928A (en) Business form printer
JPS6270065A (en) Document printing controlling system
JPH0596811A (en) Printing method
JPH03153298A (en) Document output device
JPH04353478A (en) Reduction print controller
JPH04344522A (en) Character output device
JPH05274309A (en) Information processor
JPH04238391A (en) Font data storage system
JPH05165824A (en) Information processor
JPS63264386A (en) Document data printer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071029

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081029

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091029

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101029

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101029

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111029

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111029

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121029

Year of fee payment: 13

EXPY Cancellation because of completion of term