JPH04344926A - Data output device - Google Patents

Data output device

Info

Publication number
JPH04344926A
JPH04344926A JP3146753A JP14675391A JPH04344926A JP H04344926 A JPH04344926 A JP H04344926A JP 3146753 A JP3146753 A JP 3146753A JP 14675391 A JP14675391 A JP 14675391A JP H04344926 A JPH04344926 A JP H04344926A
Authority
JP
Japan
Prior art keywords
character
data
spacing
line
ruled 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
JP3146753A
Other languages
Japanese (ja)
Inventor
Fumihiko Yoshihisa
吉久 史彦
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 JP3146753A priority Critical patent/JPH04344926A/en
Publication of JPH04344926A publication Critical patent/JPH04344926A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To output data to meet character size without executing the complicated designation of a character pitch, and to effectively generate beautiful business form, etc., by retrieving a character pitch storage means based on the character size of character data, and determining the corresponding pitch of a character. CONSTITUTION:The character pitch storage means is provided with a ruled line interval table 14 to store an interval to a ruled line in accordance with the character size, a character pitch table 15 to store the character pitch between every character and another, and a line pitch table 16 to store a line pitch, etc. For instance, at the time of the generation of the business form, each table 14 to 16 is retrieved based on the character size of the character data read out of a layout registration memory 13 through prescribed key operation, and the character pitch, the interval to the ruled line, and the line pitch of the corresponding character data are read out. Then, the character data read out of a record memory 20 is outputted in conformity to the read out character pitch, etc. Accordingly, the data is outputted in the proper character pitch, the proper ruled line interval and the proper line pitch in accordance with the size of the outputted character.

Description

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

【0001】0001

【産業上の利用分野】本発明は、データ出力装置に係り
、詳細には帳票上にデータを印刷するデータ出力装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data output device, and more particularly to a data output device for printing data on a form.

【0002】0002

【従来の技術】従来のデータ出力装置では、印字データ
の出力は図11に示すように、データの文字数、文字サ
イズ、データの印字開始位置及び印字領域を指定して印
字を行っていた。すなわち、基本的にはデータの文字数
と文字サイズを考慮して印字領域内で均等割付けするこ
とによって文字間が決定されている。
2. Description of the Related Art In conventional data output devices, print data is output by specifying the number of data characters, character size, data print start position, and print area, as shown in FIG. That is, the character spacing is basically determined by evenly allocating data within the printing area, taking into consideration the number of characters in the data and the character size.

【0003】0003

【発明が解決しようとする課題】しかしながら、このよ
うな従来のデータ出力装置にあっては、データの文字数
、文字サイズ等の印字データ指定項目を逐一指定する構
成となっていたため、指定に手間がかかるという欠点が
あった。例えば、図11においてデータの文字数や印字
領域には無関係に、文字サイズのみによって一定の文字
間(適切な文字間)で常に印字したい場合には、データ
の文字数によって一定の文字間(適切な文字間)になる
ような印字領域を計算して指定しなければならない。 また、従来のデータ出力装置では、図12(A)に示す
ように縦罫線と文字との間隔を1文字分空けると間隔が
広すぎ、同図12(B)に示すように罫線と同じデータ
の文字数を指定すると間隔が狭すぎるという問題がある
。そこで同図12(C)に示すように文字サイズによる
適切な間隔をあけようとすると、位置の指定を小数点付
きで行わなければならないという欠点があった。
[Problem to be Solved by the Invention] However, in such conventional data output devices, printing data specification items such as the number of characters of data, character size, etc. are specified one by one, so it takes time and effort to specify. There was a drawback that it took a while. For example, in Figure 11, if you want to always print with a constant character spacing (appropriate character spacing) depending on the font size, regardless of the number of characters in the data or the print area, You must calculate and specify the printing area so that the In addition, in conventional data output devices, if the space between the vertical ruled line and the character is one character as shown in FIG. 12(A), the interval is too wide, and as shown in FIG. If you specify the number of characters, there is a problem that the spacing is too narrow. Therefore, if an attempt is made to create an appropriate spacing based on the character size as shown in FIG. 12(C), there is a drawback that the position must be specified with a decimal point.

【0004】さらに、従来のデータ出力装置では、行間
の決定は1ページ内の行数を指定することによって1ペ
ージの縦の長さを行数で割って行っている。つまり個々
の行内にどのような大きさの文字を印字しようとしてい
るということとは全く無関係に決められており、文字の
大きさに適した見易い行間の印字が行えない場合があっ
た。特に、文字の大きさが混在している場合(文字と数
字の場合等)に適切な行間とならず、また、所望の行間
にするためには指定に手間がかかってしまう。してみれ
ば、出力される文字サイズに応じた所定の情報を記憶し
ておき、この情報を参照してデータ印字を行うようにす
れば、指定の手間を省きデータを見易く印字できること
は明かである。
Furthermore, in conventional data output devices, line spacing is determined by specifying the number of lines in one page and dividing the vertical length of one page by the number of lines. In other words, the size of the characters is determined completely without regard to the size of the characters to be printed in each line, and it may not be possible to print with easy-to-read line spacing that is appropriate for the character size. In particular, when characters have mixed sizes (such as letters and numbers), appropriate line spacing may not be achieved, and it takes time and effort to specify the desired line spacing. It is clear that if you memorize certain information according to the font size to be output and print data by referring to this information, you can save the trouble of specifying and print data in an easy-to-read manner. be.

【0005】本発明の課題は、出力される文字サイズに
応じてユーザが希望するようなデータの出力を行えるよ
うにすることである。
[0005] An object of the present invention is to enable the user to output data as desired depending on the font size to be output.

【0006】[0006]

【課題を解決するための手段】本発明の手段は次の通り
である。出力データ記憶手段1(図1の機能ブロック図
を参照、以下同じ)は、文字データ及び罫線データを含
む出力データを記憶するもので、例えば出力すべきデー
タを所定のレコード単位で記憶するレコードメモリ等で
ある。文字間隔記憶手段2は、文字サイズに対応する文
字間隔を文字間隔テーブルの形で記憶するRAM等であ
る。文字間隔算出手段3は、出力データ記憶手段1から
読出された文字データの文字サイズに基づいて文字間隔
記憶手段2を検索し、対応する文字データの文字間隔を
読み出すもので、例えばCPUにより実行される。出力
手段4は、文字間隔算出手段3により算出された文字間
隔に従って出力データ記憶手段2から読出した文字デー
タを出力するためのもので、例えばCRT,LCD等に
作成した帳票イメージを表示する表示部、作成した帳票
をプリントアウトするプリンタ等の印字部である。
Means for Solving the Problems The means of the present invention are as follows. The output data storage means 1 (see the functional block diagram of FIG. 1, the same applies hereinafter) stores output data including character data and ruled line data, and is, for example, a record memory that stores data to be output in predetermined record units. etc. The character spacing storage means 2 is a RAM or the like that stores the character spacing corresponding to the character size in the form of a character spacing table. The character spacing calculation means 3 searches the character spacing storage means 2 based on the character size of the character data read from the output data storage means 1 and reads out the character spacing of the corresponding character data, and is executed by, for example, a CPU. Ru. The output means 4 is for outputting character data read from the output data storage means 2 according to the character spacing calculated by the character spacing calculation means 3, and is, for example, a display section for displaying a created form image on a CRT, LCD, etc. This is a printing unit of a printer or the like that prints out the created form.

【0007】[0007]

【作用】本発明の手段の作用は次の通りである。先ず、
文字間隔記憶手段2の例えば文字間隔テーブルには文字
サイズに応じた文字間隔が記憶されている。例えば、帳
票を作成しようとして所定のキー操作をすると、出力デ
ータ記憶手段1から読み出された文字データの文字サイ
ズに基づいて文字間隔記憶手段2が検索され、対応する
文字データの文字間隔が読み出される。そして、文字間
隔算出手段2により算出された文字間隔に従って前記出
力データ記憶手段1から読出された文字データが出力さ
れる。従って、出力される文字の大きさに応じて適切な
文字間隔でデータが出力される。
[Operation] The operation of the means of the present invention is as follows. First of all,
For example, a character spacing table in the character spacing storage means 2 stores character spacings corresponding to character sizes. For example, when a predetermined key operation is performed to create a form, the character spacing storage means 2 is searched based on the character size of the character data read out from the output data storage means 1, and the character spacing of the corresponding character data is read out. It will be done. Then, character data read from the output data storage means 1 is output in accordance with the character spacing calculated by the character spacing calculation means 2. Therefore, data is output at appropriate character intervals depending on the size of the output characters.

【0008】[0008]

【実施例】以下、図2〜図10を参照して実施例を説明
する。図2〜図10はデータ出力装置の一実施例を示す
図である。
[Embodiment] An embodiment will be described below with reference to FIGS. 2 to 10. 2 to 10 are diagrams showing one embodiment of a data output device.

【0009】先ず、構成を説明する。図2はデータ出力
装置のブロック図である。この図において、11は装置
全体の制御、並びに後述するデータ出力を含む各種のデ
ータ処理を行うCPUであり、CPU11はROM12
に格納されているマイクロプログラムに従ってデータ出
力装置の各種の動作を制御する。CPU11には、処理
手順をプログラム及び固定データの形で格納するROM
12と、出力すべき文字・罫線の始点位置、大きさ、区
分(細罫・太罫又は左詰・右詰文字等)及び種別(縦罫
、横罫、文字種等)のレイアウト情報を、処理順序を管
理するポインタFに従って登録したレイアウト登録メモ
リ13と、文字サイズに応じて罫線との間隔を記憶する
罫線間隔テーブル14と、文字サイズに応じて各文字同
士の文字間隔を記憶する文字間隔テーブル15と、文字
サイズに応じて行間隔を記憶する行間隔テーブル16と
、罫線配置データを一時的に格納するレジスタx,yか
らなるワークレジスタ17と、データ出力がどこまで終
了しているかを管理するポインタF及び演算処理のデー
タを一時的に格納する各種レジスタ群(文字サイズS、
罫線間隔a、文字間隔b、行間隔c、最大文字サイズM
S)18と、確定されたデータを所定のレコード単位毎
に格納するレコードファイル19と、レコードファイル
19から順次読出したレコードを記憶するレコードメモ
リ20と、各種データ入力のためのキー及び機能キー等
を備えたキーボードからなる入力部21、表示メモリ2
2に記憶された入力データ、印刷データ等を表示する表
示部23と、ページメモリ24に記憶された印刷データ
を印刷出力する印字部25とがそれぞれ接続されている
First, the configuration will be explained. FIG. 2 is a block diagram of the data output device. In this figure, 11 is a CPU that controls the entire device and performs various data processing including data output, which will be described later.
Various operations of the data output device are controlled according to microprograms stored in the data output device. The CPU 11 includes a ROM that stores processing procedures in the form of programs and fixed data.
12, and process the layout information of the starting point position, size, division (thin line/broad line, left justified/right justified character, etc.) and type (vertical ruled, horizontal ruled, character type, etc.) of the characters/rules to be output. A layout registration memory 13 registered according to the pointer F that manages the order, a ruled line spacing table 14 that stores the spacing between characters according to the character size, and a character spacing table that stores the character spacing between each character according to the character size. 15, a line spacing table 16 for storing line spacing according to character size, a work register 17 consisting of registers x and y for temporarily storing ruled line arrangement data, and a work register 17 for managing how far data output has been completed. Various register groups (character size S,
Line spacing a, character spacing b, line spacing c, maximum character size M
S) 18, a record file 19 that stores confirmed data in predetermined record units, a record memory 20 that stores records sequentially read out from the record file 19, and keys and function keys for inputting various data. An input section 21 consisting of a keyboard equipped with a display memory 2
A display section 23 that displays input data, print data, etc. stored in page memory 24 and a printing section 25 that prints out print data stored in page memory 24 are connected to each other.

【0010】また、上記レイアウト登録メモリ13、罫
線間隔テーブル14、文字間隔テーブル15、行間隔テ
ーブル16、ワークレジスタ17、レジスタ群18、レ
コードメモリ20、表示メモリ22及びページメモリ2
4は、例えばRAMの記憶領域を分割して使用される。 キー入力部12は、英数字、平仮名等を入力するキーや
、カーソル移動キー、実行キー、中止キー等のファンク
ションキーが配置された操作盤であり、操作盤上のいず
れかのキーが操作された場合、図示しない制御部によっ
てそのキーに対応する所定のキーコードに変換され、C
PU11に出力される。
The layout registration memory 13, ruled line spacing table 14, character spacing table 15, line spacing table 16, work register 17, register group 18, record memory 20, display memory 22 and page memory 2
4 is used by dividing the RAM storage area, for example. The key input unit 12 is an operation panel on which keys for inputting alphanumeric characters, hiragana, etc., and function keys such as a cursor movement key, an execution key, and a cancel key are arranged, and when any key on the operation panel is operated. If the
It is output to PU11.

【0011】図3はレイアウト登録メモリ13に格納さ
れたレイアウト登録書31を示す図であり、図4はその
レイアウト登録書31に従って印字されたデータの出力
イメージを示す図である。図3において、レイアウト登
録書31は、1レコードについてポインタF毎に細罫,
太罫,左詰文,右詰文,横罫,縦罫,名称(A,B,C
,…)等の区分、文字・罫線の始点座標を示すY座標,
Y座標、その範囲(長さ)及び12p(ポイント)、6
p等の文字のサイズが指定される。例えば、図3に示し
たレイアウト登録書31の場合、先ず、Y座標「31」
、X座標「20」の始点から長さ「220」の細罫の横
罫が引かれ、以下ポインタF順に従ってX座標「20」
の位置(Y座標は変更なく「30」)から細罫の縦罫が
引かれる(図4参照)。このようにして罫線が配置され
ると、図4に示すように罫線で区切られた範囲で左詰又
は右詰で文字A,B,Cが所定の文字サイズで指定され
る。ここでは、文字Aが文字サイズ12p(ポイント)
で左詰に、文字Bが文字サイズ6pで左詰に、文字Cが
文字サイズ8pで右詰にそれぞれ指定されている。なお
、本実施例では罫線の種類を細罫・太罫の2種類の太さ
の罫線としているがこの太さの罫線に限らず、また、飾
罫であってもよい。また、文字は右詰、左詰に限らず上
付、下付、均等割付け等であってもよく、文字のサイズ
も図3のものに限定されないことは勿論である。
FIG. 3 is a diagram showing the layout registration form 31 stored in the layout registration memory 13, and FIG. 4 is a diagram showing an output image of data printed according to the layout registration form 31. In FIG. 3, the layout registration form 31 includes thin ruled lines for each pointer F for one record.
Thick ruled line, left lined text, right lined text, horizontal lined line, vertical lined line, name (A, B, C
,...) etc., Y coordinate indicating the starting point coordinates of characters/ruled lines,
Y coordinate, its range (length) and 12p (points), 6
The size of characters such as p is specified. For example, in the case of the layout registration form 31 shown in FIG. 3, first, the Y coordinate is "31".
, a horizontal line with a length of ``220'' is drawn from the starting point of the X coordinate ``20'', and then the X coordinate ``20'' is drawn according to the order of the pointer F.
A narrow vertical rule is drawn from the position (the Y coordinate remains unchanged at "30") (see FIG. 4). When the ruled lines are arranged in this manner, the characters A, B, and C are specified in a predetermined character size in a left-justified or right-justified manner within the range delimited by the ruled lines, as shown in FIG. Here, the letter A is in font size 12p (points)
, the character B is specified to be left justified with a character size of 6p, and the character C is specified to be right justified with a character size of 8p. Note that in this embodiment, the types of ruled lines are ruled lines of two thicknesses, thin ruled lines and thick ruled lines, but the ruled lines are not limited to these thicknesses, and may also be decorative ruled lines. Further, the characters are not limited to right-justification or left-justification, but may be superscripted, subscripted, evenly distributed, etc., and the size of the characters is of course not limited to that shown in FIG. 3.

【0012】図5は文字サイズに応じた適切な文字間隔
を記憶する文字間隔テーブル15であり、文字間隔テー
ブル15には文字サイズに対応して最も見易い適切な文
字間隔データが格納されている。図6は文字サイズ及び
罫線の種類に応じた適切な文字と罫線との間隔を記憶す
る罫線間隔テーブル14であり、罫線間隔テーブル14
には文字サイズと罫線の種類(例えば、細罫、太罫)に
対応して最も見易い適切な間隔データが格納されている
。図7は文字サイズに応じた適切な行間隔を記憶する行
間隔テーブル16であり、行間隔テーブル16には文字
サイズに対応して適切な行間隔データが格納されている
。行間隔を指定する場合はこの行間隔テーブル16を基
に行間隔が決定されるのであるが、ある行内に文字サイ
ズの異なる文字が混在する場合には後述する図8に示す
プログラムによって行内の最大文字サイズが検出されこ
の最大の文字サイズにより行間が決定される。
FIG. 5 shows a character spacing table 15 that stores appropriate character spacing according to the character size. The character spacing table 15 stores the most legible appropriate character spacing data corresponding to the character size. FIG. 6 is a ruled line spacing table 14 that stores appropriate spacing between characters and ruled lines according to character size and type of ruled line.
Stores the most legible and appropriate spacing data corresponding to the character size and the type of ruled line (for example, thin ruled line, thick ruled line). FIG. 7 shows a line spacing table 16 that stores appropriate line spacing according to the character size, and the line spacing table 16 stores appropriate line spacing data corresponding to the character size. When specifying the line spacing, the line spacing is determined based on this line spacing table 16, but if characters of different sizes are mixed in a line, the maximum size in the line is determined by the program shown in FIG. 8, which will be described later. The font size is detected and the line spacing is determined based on this maximum font size.

【0013】次に、本実施例の動作を説明する。図8は
データ出力処理のプログラムを示すフローチャートであ
り、本フローは所定の開始キー操作により実行される。 同図中、符号Sn(n=1,2,…)はフローの各ステ
ップを示している。先ず、ステップS1で初期値をレジ
スタyに格納し(y←初期値)、ステップS2でこの初
期値に基づくY座標(行方向)位置に横罫線を配置する
。これにより1レコード単位のデータ出力が行えるよう
に初期設定が終了する。次いで、ステップS3で複数の
レコードデータを記憶したレコードメモリ20から指定
されたレコードを読出し、ステップS4でポインタFに
1を格納してポインタFが図3に示すレイアウト登録書
31の最初の行位置を指示するようにする。次いで、ス
テップS5でポインタF対応の項目における文字サイズ
をレジスタSに格納し、ステップS6でポインタFに示
す行位置の文字が左詰めか否かを判別する。左詰めのと
きは単純に罫線の位置から適切な間隔をとるように順次
ポインタFによって指示される処理を行えばよいが、右
詰めのときは左詰めのときのように行頭(行の左側)か
らの処理は手間がかかる。そこで、右詰めのときは次の
ポインタ(F+1)に示す座標を読出して行末(すなわ
ち、行の右側)から同様の処理を行う。具体的には、左
詰めのときはステップS7でポインタF対応の縦罫線の
座標をレジスタxに格納し、ステップS8でポインタF
対応の縦罫線の線種及び文字サイズSに応じた罫線間隔
を図6に示す罫線間隔テーブル14から読出してレジス
タaに格納する。次いで、ステップS9でポインタF対
応の縦罫線の座標に文字サイズSに応じた罫線間隔が格
納されたレジスタaの値を加算してレジスタxに格納し
(x←x+a)、ステップS10でレジスタxに格納さ
れた座標値xの位置に先頭文字を配置する。すなわち、
左詰めの場合には図9に示すように先ずデータの印字開
始位置として直接縦罫線の位置を指定し、指定された文
字サイズS及び罫線の種類を基に罫線間隔テーブル14
から適切な間隔を検索し、縦罫線の位置から右方向に向
かってその間隔aだけ離れた位置から1文字ずつ印字バ
ッファ上に文字を組み立てるようにする。このようにし
て罫線位置を指定するようにすると罫線と文字位置とが
最も見易くなるように罫線間隔が適切に設定される。
Next, the operation of this embodiment will be explained. FIG. 8 is a flowchart showing a program for data output processing, and this flow is executed by operating a predetermined start key. In the figure, the symbol Sn (n=1, 2, . . . ) indicates each step of the flow. First, in step S1, an initial value is stored in register y (y←initial value), and in step S2, a horizontal ruled line is placed at a Y coordinate (row direction) position based on this initial value. This completes the initial setting so that data can be output in units of one record. Next, in step S3, the specified record is read from the record memory 20 storing a plurality of record data, and in step S4, 1 is stored in the pointer F, so that the pointer F points to the first row position of the layout registration form 31 shown in FIG. to instruct. Next, in step S5, the character size in the item corresponding to pointer F is stored in register S, and in step S6, it is determined whether the character at the line position indicated by pointer F is left justified. When aligning to the left, it is sufficient to simply perform the processing instructed by pointer F in order to create an appropriate spacing from the position of the ruled line, but when aligning to the right, the beginning of the line (on the left side of the line) Processing from there is time-consuming. Therefore, when aligning to the right, the coordinates indicated by the next pointer (F+1) are read out and the same process is performed from the end of the line (that is, from the right side of the line). Specifically, when aligning to the left, the coordinates of the vertical ruled line corresponding to pointer F are stored in register x in step S7, and the coordinates of the vertical ruled line corresponding to pointer F are stored in register x in step S8.
The line type of the corresponding vertical ruled line and the ruled line interval according to the character size S are read from the ruled line interval table 14 shown in FIG. 6 and stored in register a. Next, in step S9, the value of register a, which stores the ruled line spacing according to character size S, is added to the coordinates of the vertical ruled line corresponding to pointer F and stored in register x (x←x+a), and in step S10, register x is The first character is placed at the position of the coordinate value x stored in . That is,
In the case of left-justification, as shown in FIG. 9, first, the position of the vertical ruled line is directly specified as the data printing start position, and the ruled line spacing table 14 is created based on the specified character size S and type of ruled line.
An appropriate interval is searched from , and characters are assembled one character at a time on the print buffer starting from a position spaced apart from the vertical ruled line by the distance a to the right. By specifying the ruled line position in this manner, the ruled line interval is appropriately set so that the ruled line and character position are most easily seen.

【0014】ステップS11では文字サイズSに応じた
文字間隔を図5に示す文字間隔テーブル15から読出し
てレジスタbに格納し、ステップS12で行の先頭文字
の座標に文字サイズSに応じた文字間隔が格納されたレ
ジスタbの値を加算してレジスタxに格納し(x←x+
b)、ステップS13でレジスタxに格納された座標値
xの位置に次文字を配置する。次いで、ステップS14
で次文字があるか否かを判別し、次文字があるときはス
テップS12に戻って同様の処理を繰返し次文字がなく
なるとステップS23に進む。従って、図9に示すよう
に文字と文字との間隔が文字サイズSに対応して最も見
易くなるような文字間隔bに設定される。一方、ステッ
プS6で左詰めでないと判別されたときはステップS1
5に進み、ステップS15でポインタ(F+1)対応の
縦罫線の座標をレジスタxに格納し、ステップS16で
ポインタ(F+1)対応の縦罫線の線種及び文字サイズ
Sに応じた罫線間隔を図6に示す罫線間隔テーブル14
から読出してレジスタaに格納する。次いで、ステップ
S17でポインタ(F+1)対応の縦罫線の座標から文
字サイズSに応じた罫線間隔が格納されたレジスタaの
値と文字サイズSとを減算してレジスタxに格納し(x
←x−a−S)、ステップS18でレジスタxに格納さ
れた座標値xの位置に最終文字を配置する。すなわち、
右詰めの場合には図9に示すようにデータの印字開始位
置として直接縦罫線の位置を指定し、指定された文字サ
イズS及び罫線の種類を基に罫線間隔テーブル14を検
索し、縦罫線の位置から前記左詰めの場合とは逆に左方
向に向かってその間隔a及び文字サイズSだけ離れた位
置から1文字ずつ印字バッファ上に文字を組み立てるよ
うにする。従って、右詰めの場合でも罫線位置を指定す
るだけで罫線と文字位置とが最も見易くなるように罫線
間隔が適切に設定される。
In step S11, the character spacing corresponding to the character size S is read from the character spacing table 15 shown in FIG. Adds the value of register b where is stored and stores it in register x (x←x+
b) The next character is placed at the position of the coordinate value x stored in the register x in step S13. Next, step S14
It is determined whether or not there is a next character. If there is a next character, the process returns to step S12 and the same process is repeated. When there is no next character, the process advances to step S23. Therefore, as shown in FIG. 9, the character spacing b is set to be the most legible character spacing corresponding to the character size S. On the other hand, if it is determined in step S6 that it is not left justified, step S1
5, in step S15 the coordinates of the vertical ruled line corresponding to the pointer (F+1) are stored in the register x, and in step S16, the line type of the vertical ruled line corresponding to the pointer (F+1) and the ruled line spacing according to the character size S are determined as shown in FIG. Ruled line spacing table 14 shown in
It is read from and stored in register a. Next, in step S17, the character size S is subtracted from the value of register a, which stores the ruled line spacing according to character size S, from the coordinates of the vertical ruled line corresponding to pointer (F+1), and the result is stored in register x (x
←x-a-S), the final character is placed at the position of the coordinate value x stored in the register x in step S18. That is,
In the case of right alignment, as shown in FIG. 9, the position of the vertical ruled line is directly specified as the data printing start position, the ruled line spacing table 14 is searched based on the specified character size S and the type of ruled line, and the vertical ruled line is Contrary to the case of left alignment, characters are assembled on the print buffer one character at a time from a position spaced apart by the distance a and character size S toward the left. Therefore, even in the case of right alignment, by simply specifying the ruled line position, the ruled line interval can be appropriately set so that the ruled line and character position are most easily seen.

【0015】ステップS19では文字サイズSに応じた
文字間隔を図5に示す文字間隔テーブル15から読出し
てレジスタbに格納し、ステップS20で最終文字の座
標から文字サイズSに応じた文字間隔が格納されたレジ
スタbの値及び文字サイズSを減算してレジスタxに格
納し(x←x−b−S)、ステップS21でレジスタx
に格納された座標値xの位置に前文字を配置する。次い
で、ステップS22で前文字があるか否かを判別し、前
文字があるときはステップS20に戻って同様の処理を
繰返し前文字がなくなるとステップS23に進む。従っ
て、右詰めの場合であっても図9に示すように文字と文
字との間隔が文字サイズSに対応して最も見易くなるよ
うに設定される。ステップS23ではポインタFは最終
項目か否かを判別し、ポインタFが最終項目を示してい
るときはその行についての罫線との間隔及び文字間隔に
ついての処理は終了しその行と次行との行間隔を最適化
する処理に移行すべきであると判断してステップS24
で行内の最大文字サイズを検索してレジスタMSに格納
し、ステップS25で最大文字サイズMSが格納された
レジスタMSの値に応じた行間を図7に示す行間隔テー
ブル16から読出してレジスタcに格納する。次いで、
ステップS26で各縦罫線を、最大文字サイズMSに応
じた行間が格納されたレジスタcの値に従って配置し、
ステップS27で横罫線の配置座標に上記レジスタcの
値を加算してレジスタyに格納する(y←y+c)。次
いで、ステップS28でレジスタyに格納された座標値
yの位置に横罫線を配置し、ステップS29で処理すべ
きレコードがあるか否かを判別しレコードがあれば前記
ステップS3に戻り、処理すべきレコードがなければ本
フローの処理を終える。一方、前記ステップS23でポ
インタFが最終項目でないときはポインタFが示す次の
項目の処理をすべきであると判断してステップS5に戻
る。
In step S19, the character spacing corresponding to the character size S is read from the character spacing table 15 shown in FIG. 5 and stored in register b, and in step S20, the character spacing corresponding to the character size S is stored from the coordinates of the final character. The value of register b and character size S are subtracted and stored in register x (x←x-b-S), and in step S21, register x
The previous character is placed at the position of the coordinate value x stored in . Next, in step S22, it is determined whether or not there is a preceding character. If there is a preceding character, the process returns to step S20 and the same process is repeated, and when there is no preceding character, the process advances to step S23. Therefore, even in the case of right-justification, the spacing between characters is set so as to be most legible in accordance with the character size S, as shown in FIG. In step S23, it is determined whether the pointer F indicates the last item or not. If the pointer F indicates the last item, the processing regarding the interval between the ruled line and the character interval for that line is completed, and the processing for the interval between that line and the next line is completed. It is determined that it is necessary to proceed to the process of optimizing the line spacing, and the process proceeds to step S24.
In step S25, the maximum character size within a line is retrieved and stored in the register MS, and in step S25, the line spacing corresponding to the value of the register MS in which the maximum character size MS is stored is read out from the line spacing table 16 shown in FIG. 7 and stored in the register c. Store. Then,
In step S26, each vertical ruled line is arranged according to the value of register c storing the line spacing according to the maximum character size MS,
In step S27, the value of the register c is added to the arrangement coordinates of the horizontal ruled line and stored in the register y (y←y+c). Next, in step S28, a horizontal ruled line is placed at the position of the coordinate value y stored in register y, and in step S29, it is determined whether or not there is a record to be processed. If there is a record, the process returns to step S3 and is processed. If there is no record to be recorded, the process of this flow ends. On the other hand, if the pointer F is not the last item in step S23, it is determined that the next item indicated by pointer F should be processed, and the process returns to step S5.

【0016】上記ステップS23〜S30を実行するこ
とにより行間の指定は行わなくても、自動的に文字サイ
ズによる適切な行間が出力できるようになる。例えば、
種々の文字サイズが混在する行の状態を図10で示すよ
うに、先ずこの行を左端よりスキャンし、行における最
大の文字サイズを検出する。次いで、いま、求めた最大
文字サイズに基づいて行間隔テーブル16を検索して適
切な行間を得、この行間で印字バッファを組立て印字す
る。このような動作がページの終わりまで繰り返して行
われる。すなわち、頁内において行間は常に一定とはな
らず、行毎にその行に存在する最大の文字サイズによっ
て可変とされるものとなる。
By executing steps S23 to S30 above, it becomes possible to automatically output an appropriate line spacing depending on the character size without specifying the line spacing. for example,
As shown in FIG. 10, the state of a line in which various character sizes are mixed is scanned from the left end to detect the largest character size in the line. Next, the line spacing table 16 is searched based on the currently determined maximum character size to obtain an appropriate line spacing, and a print buffer is assembled using this line spacing and printing is performed. This operation is repeated until the end of the page. That is, the line spacing within a page is not always constant, but varies from line to line depending on the maximum character size existing on that line.

【0017】以上説明したように、本実施例では文字デ
ータの文字サイズに対応する文字間隔、罫線との間隔及
び行間隔を記憶する文字間隔テーブル15、罫線間隔テ
ーブル14、行間隔テーブル16を設け、読出された文
字データの文字サイズに基づいて各テーブルを検索し、
対応する文字データの文字間隔、罫線との間隔、行間隔
を決定するようにしているので、手間のかかる小数点計
算を行うことなく、文字同士及び文字と罫線との間隔を
自動的に指定することができ、美しい帳票を効率的に作
成することができる。また、行間に関する指定を行わな
くても常に適切な行間で印字ができるので、指定の手間
が省け印字品質を向上させることができる。
As explained above, in this embodiment, a character spacing table 15, a ruled line spacing table 14, and a line spacing table 16 are provided for storing character spacing, ruled line spacing, and line spacing corresponding to the character size of character data. , searches each table based on the character size of the read character data,
Since the character spacing, the spacing with ruled lines, and the line spacing of the corresponding character data are determined, the spacing between characters and between characters and ruled lines can be automatically specified without the need for time-consuming decimal point calculations. This allows you to efficiently create beautiful forms. Furthermore, since printing can always be performed with appropriate line spacing without specifying the line spacing, it is possible to save time and effort in specifying the line spacing and improve printing quality.

【0018】なお、本実施例では文字サイズに対応した
3つのテーブル14,15,16を設定した例を示した
が、文字サイズに対応して文字に関する間隔を決定する
ものであれば何でもよく、上記3つのテーブルのうちの
1つのみを用いるようにしてもよい。また、本実施例で
示した項目数や行数、文字サイズ、罫線種等はどのよう
な数、種類であってもよいことは言うまでもない。
Although this embodiment shows an example in which three tables 14, 15, and 16 are set corresponding to the character size, any table may be used as long as it determines the spacing between characters in accordance with the character size. Only one of the above three tables may be used. Further, it goes without saying that the number of items, number of lines, character size, type of ruled line, etc. shown in this embodiment may be any number or type.

【0019】[0019]

【発明の効果】本発明によれば、文字データの文字サイ
ズに基づいて文字間隔記憶手段を検索し、対応する文字
データの文字の間隔を決定するようにしているので、煩
雑な文字間等の指定を行うことなく、文字サイズに応じ
たデータを出力することができ、美しい帳票等を効率的
に作成することができる。
According to the present invention, the character spacing storage means is searched based on the character size of character data and the character spacing of the corresponding character data is determined. It is possible to output data according to the font size without specifying it, and it is possible to efficiently create beautiful forms and the like.

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

【図1】本発明の機能ブロック図である。FIG. 1 is a functional block diagram of the present invention.

【図2】データ出力装置のブロック構成図である。FIG. 2 is a block configuration diagram of a data output device.

【図3】データ出力装置のレイアウト登録書の構造を示
す図である。
FIG. 3 is a diagram showing the structure of a layout registration form of a data output device.

【図4】データ出力装置の文字データの出力例を示す図
である。
FIG. 4 is a diagram showing an example of character data output by the data output device.

【図5】データ出力装置の文字間隔テーブルの構造を示
す図である。
FIG. 5 is a diagram showing the structure of a character spacing table of the data output device.

【図6】データ出力装置の罫線間隔テーブルの構造を示
す図である。
FIG. 6 is a diagram showing the structure of a ruled line interval table of the data output device.

【図7】データ出力装置の行間隔テーブルの構造を示す
図である。
FIG. 7 is a diagram showing the structure of a line spacing table of the data output device.

【図8】データ出力装置のデータ出力処理を示すフロー
チャートである。
FIG. 8 is a flowchart showing data output processing of the data output device.

【図9】データ出力装置の文字と罫線との間隔を説明す
るための図である。
FIG. 9 is a diagram for explaining the spacing between characters and ruled lines of the data output device.

【図10】データ出力装置の文字の大きさによる行間を
説明するための図である。
FIG. 10 is a diagram for explaining the line spacing depending on the character size of the data output device.

【図11】従来のデータ出力装置のデータ出力例を示す
図である。
FIG. 11 is a diagram showing an example of data output from a conventional data output device.

【図12】従来のデータ出力装置のデータ出力結果を説
明するための図である。
FIG. 12 is a diagram for explaining data output results of a conventional data output device.

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

11  CPU 12  ROM 13  RAM 14  罫線間隔テーブル 15  文字間隔テーブル 16  行間隔テーブル 17  ワークレジスタ 18  各種レジスタ群 19  レコードファイル 20  レコードメモリ 21  入力部 22  表示メモリ 23  表示部 24  ページメモリ 25  印字部 31  レイアウト登録書 11 CPU 12 ROM 13 RAM 14 Ruled line spacing table 15 Character spacing table 16 Line spacing table 17 Work register 18 Various register groups 19 Record file 20 Record memory 21 Input section 22 Display memory 23 Display section 24 Page memory 25 Printing section 31 Layout registration form

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 文字データを含む所定の出力データを記
憶する出力データ記憶手段と、文字データの文字サイズ
に対応する文字間隔を記憶する文字間隔記憶手段と、前
記出力データ記憶手段から読み出された文字データの文
字サイズに基づいて前記文字間隔記憶手段を検索し、対
応する文字データの文字間隔を読み出す文字間隔算出手
段と、前記文字間隔算出手段により算出された文字間隔
に従って前記出力データ記憶手段から読出した文字デー
タを出力する出力手段と、を具備したことを特徴とする
データ出力装置。
1. Output data storage means for storing predetermined output data including character data; character spacing storage means for storing character spacing corresponding to the character size of the character data; character spacing calculating means for searching the character spacing storage means based on the character size of the character data and reading out the character spacing of the corresponding character data; and the output data storage means according to the character spacing calculated by the character spacing calculating means. A data output device comprising: output means for outputting character data read from a computer.
【請求項2】 文字データ及び罫線データを含む所定の
出力データを記憶する出力データ記憶手段と、文字デー
タの文字サイズに対応する文字間隔及び文字と罫線との
罫線間隔を記憶する文字・罫線間隔記憶手段と、前記出
力データ記憶手段から読み出された文字データの文字サ
イズに基づいて前記文字・罫線間隔記憶手段を検索し、
対応する文字データの文字間隔及び罫線間隔を読み出す
文字・罫線間隔算出手段と、前記文字・罫線間隔算出手
段により算出された文字間隔及び罫線間隔に基づいて各
文字同士が所定の文字間隔となるようにするとともに、
文字と罫線とが所定の間隔となるようにデータを出力す
る出力手段と、を具備したことを特徴とするデータ出力
装置。
2. Output data storage means for storing predetermined output data including character data and ruled line data, and character/ruled line spacing for storing character spacing corresponding to the character size of the character data and ruled line spacing between characters and ruled lines. searching the character/ruled line interval storage means based on the character size of the character data read from the storage means and the output data storage means;
A character/ruled line spacing calculation means for reading character spacing and ruled line spacing of corresponding character data, and a predetermined character spacing between each character based on the character spacing and ruled line spacing calculated by the character/ruled line spacing calculation means. In addition to
1. A data output device comprising: output means for outputting data such that characters and ruled lines are spaced at a predetermined interval.
JP3146753A 1991-05-22 1991-05-22 Data output device Pending JPH04344926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3146753A JPH04344926A (en) 1991-05-22 1991-05-22 Data output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3146753A JPH04344926A (en) 1991-05-22 1991-05-22 Data output device

Publications (1)

Publication Number Publication Date
JPH04344926A true JPH04344926A (en) 1992-12-01

Family

ID=15414804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3146753A Pending JPH04344926A (en) 1991-05-22 1991-05-22 Data output device

Country Status (1)

Country Link
JP (1) JPH04344926A (en)

Similar Documents

Publication Publication Date Title
US5133067A (en) Method and apparatus for system for selectively extracting display data within a specified proximity of a displayed character string using a range table
JPH03226859A (en) Layout display controller of document processor
JPH03229356A (en) Layout display controller for document processor
JPH08161309A (en) Word processor
JPH04344926A (en) Data output device
US5983212A (en) Document processing apparatus having display
JPH0448397B2 (en)
US5121481A (en) Text (word processor) having right end justified variable size display area for information related to input data
JPS6366630A (en) Input device for print position
JPH074956B2 (en) Character processor
JPH0735116B2 (en) Data output device
JP2705690B2 (en) Display control device
JP3083665B2 (en) Sentence information processing equipment
JPH0417058A (en) Word processor with name card preparing function
JP3077777B2 (en) Document processing device
JP3404770B2 (en) Document processing device
JP2995630B2 (en) Document data processing device
JPS6320677A (en) Document editing device
JPH05101058A (en) Word processor
JPS6321173A (en) Information processor
JPS5851175A (en) Printer
JPH07105197A (en) Document processor
GB2130772A (en) Electronic typewriter and word processor
JPH07129155A (en) Sheet of music preparing device
JPS63291089A (en) Character processor