JPH0916589A - Character layout device - Google Patents

Character layout device

Info

Publication number
JPH0916589A
JPH0916589A JP7163789A JP16378995A JPH0916589A JP H0916589 A JPH0916589 A JP H0916589A JP 7163789 A JP7163789 A JP 7163789A JP 16378995 A JP16378995 A JP 16378995A JP H0916589 A JPH0916589 A JP H0916589A
Authority
JP
Japan
Prior art keywords
character
attribute data
data
layout
text data
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
JP7163789A
Other languages
Japanese (ja)
Inventor
Kazuhiro Noguchi
和洋 野口
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.)
Toppan Inc
Original Assignee
Toppan Printing 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 Toppan Printing Co Ltd filed Critical Toppan Printing Co Ltd
Priority to JP7163789A priority Critical patent/JPH0916589A/en
Publication of JPH0916589A publication Critical patent/JPH0916589A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE: To automatically perform the layout of text data in accordance with a preliminarily determined rule and to easily correct data without rewriting a program. CONSTITUTION: Text data is divided by a grouping means 11 according to each character, a grouping is performed for each of these divided characters for each connected character and plural character strings are prepared. Attribute data such as the styles of type and rules, etc., is added to each of these character strings by an attribute data addition part 14. Subsequently, each character string is rearranged by a layout part, 15 in accordance with attribute data, and a typesetting and a layout are performed for text data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばカタログやチラ
シ等における文字の組版及びレイアウトを行う文字レイ
アウト装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character layout device for typesetting and laying out characters in, for example, catalogs and leaflets.

【0002】[0002]

【従来の技術】カタログやチラシ等には、図10に示す
ように商品の写真(pictuer )が印字されるとともにこ
の写真に写っている商品に必要な文字データ(以下、テ
キストデータと称する)、例えば「517-820900 900
W用…¥54,700」が印字されている。
2. Description of the Related Art As shown in FIG. 10, a photograph (pictuer) of a product is printed on a catalog or a leaflet, and character data (hereinafter referred to as text data) necessary for the product shown in the photo, For example, "517-820 900 900
For W ... ¥ 54,700 ”is printed.

【0003】このようなカタログやチラシ等を作成する
際には、テキストデータに対する文字の組版及びレイア
ウトが行われている。この文字の組版及びレイアウト
は、従来手作業により行われていたが、大量のカタログ
やチラシ等を作成する場合に、その組版及びレイアウト
を行うには、手作業では限界があり、近年では大型コン
ピュータを使用し、プログラム制御によるバッチ処理で
もって文字組版及びレイアウトを行っている。
When creating such a catalog or leaflet, typesetting and layout of characters for text data are performed. The typesetting and layout of these characters have been done manually in the past, but when creating a large number of catalogs, leaflets, etc., there is a limit to the typesetting and layout, and in recent years large computer Characters are typeset and laid out by batch processing under program control.

【0004】この文字組版及びレイアウトでは、決まっ
た規則があるが、例えば図10に示すテキストデータの
うち「外寸/900(1200)W× 350D× 400Hm/m 」におけ
る最外の最後の文字「m/m 」がその行からあふれという
文字あふれ等の現象が起こったときのレイアウトの規則
というものは事実上存在しない。
Although there are certain rules in this typesetting and layout, for example, the outermost last character "outside size / 900 (1200) W × 350D × 400Hm / m" in the text data shown in FIG. There is virtually no rule of layout when a character overflow such as "m / m" overflows from the line.

【0005】このレイアウトの規則は、その多くは得意
先との話し合いによって決まり、その都度変化すること
が多い。又、同じ得意先であっても個々の担当者によっ
て異なる。
Many of these layout rules are determined by discussions with customers, and often change each time. Moreover, even if the customer is the same, it differs depending on each person in charge.

【0006】例えば、カタログにおいて、ある商品だけ
についての文字レイアウトでは、商品の品名は左詰め、
リーダーは等間隔で上下揃え、値段は「¥」マークとカ
ンマで揃え、各々のスペースはそれらの下に並べるとい
った規則がある。
For example, in a catalog, in a character layout for only a certain product, the product name of the product is left-justified,
There is a rule that the leaders are aligned at equal intervals, the prices are aligned with a "\" mark and a comma, and each space is arranged under them.

【0007】このような規則を用いてカタログを作成す
る手順を説明すると、次の通りとなる。先ず最初に、商
品カタログに必要なテキストデータ、及び商品の画像デ
ータを記憶装置に入力して記憶する。この場合、商品カ
タログを各商品ごとの各小組にそれぞれ分割し、これら
小組の中をさらに文字領域及び画像領域に分割する。そ
して、文字領域にテキストデータを記憶し、画像領域に
商品の画像データを記憶する。
The procedure for creating a catalog using such rules is as follows. First, the text data necessary for the product catalog and the image data of the product are input and stored in the storage device. In this case, the product catalog is divided into small sets for each product, and the small sets are further divided into a character area and an image area. Then, the text data is stored in the character area, and the image data of the product is stored in the image area.

【0008】次に各小組に対してそれぞれ商品カタログ
上における位置データを付加して記憶する。そして、コ
ンピュータによる処理によりCRTディスプレイの画面
上に、画像テータ及びテキストデータを映し出してレイ
アウトを行い、テキストデータは文字領域に割り付け、
商品の画像データは画像領域に割り付ける。
Next, position data on the product catalog is added to each small set and stored. Then, by the processing by the computer, the image data and the text data are displayed on the screen of the CRT display for layout, and the text data is allocated to the character area.
The image data of the product is assigned to the image area.

【0009】このようにCRTディスプレイの画面上で
テキストデータを文字領域、画像データを画像領域に割
り付けることを、DTP(Desk Top Publishing )
という。
As described above, allocating the text data to the character area and the image data to the image area on the screen of the CRT display is referred to as DTP (Desk Top Publishing).
That.

【0010】テキストデータを文字領域に割り付ける際
には、規則に従って割り付けるが、その際にテキストデ
ータには、座標、書体、級数、画像データの幅等のデー
タを付加して記憶する。
When allocating the text data to the character area, the text data is allocated in accordance with a rule. At this time, the data such as coordinates, typeface, series, and width of image data is added and stored.

【0011】一方、文字組版の規則、文字レイアウトの
規則に沿うようにレイアウト用のプログラムが作成され
て記憶される。このような後、プログラムの実行によ
り、テキストデータが読み込まれ、CRTディスプレイ
の画面上において、テキストデータに対するレイアウト
が自動的に行われる。このテキストデータに対するレイ
アウトが完成すると、このテキストデータは記憶装置に
記憶される。
On the other hand, a layout program is created and stored so as to comply with the character typesetting rules and the character layout rules. After that, the text data is read by executing the program, and the layout of the text data is automatically performed on the screen of the CRT display. When the layout for this text data is completed, this text data is stored in the storage device.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、実際に
テキストデータのレイアウトを行った結果、1行の文字
列の長さによっては図10に示すように文字あふれが生
じ、画像データの幅に収まりきれずに改行してしまうこ
とがある。
However, as a result of actually laying out the text data, the character overflow occurs as shown in FIG. 10 depending on the length of the character string of one line, and the character data does not fit within the width of the image data. There are cases where the line breaks without doing anything.

【0013】この文字あふれの生じた文字レイアウトで
よい場合と修正が入る場合とがあるが、これを決定する
のは得意先又は担当者である。又、文字レイアウトの
後、商品の品名の1つの頭に「新」という文字を付け加
え「新517-820900 900W用…¥54,700」とす
る文字追加の訂正が入ることがある。
There are cases where the character layout in which the characters have overflowed are acceptable and cases where correction is required. It is decided by the customer or the person in charge. In addition, after the character layout, the word "new" may be added to the beginning of the product name of the product, and the correction of adding the character "New 517-820900 for 900W ... ¥ 54,700" may occur.

【0014】このような文字レイアウトの訂正や文字追
加等の訂正が入った場合、再びテキストデータに対して
書体や位置データ等の付加データを追加記憶し、これら
訂正に沿うようにプログラムを書き替えることになる。
When a correction such as a character layout correction or a character addition is made, additional data such as a typeface or position data is additionally stored in the text data, and the program is rewritten to comply with these corrections. It will be.

【0015】そうした後、書き替えたプログラムを実行
し、訂正したデータを読み込み、再度テキストデータに
対するレイアウトを行い、その結果を記憶装置に記憶し
なければならい。
After that, the rewritten program must be executed, the corrected data must be read, the text data must be laid out again, and the result must be stored in the storage device.

【0016】従って、テキストデータのレイアウトの規
則は得意先又は担当者によって決るものではあるが、訂
正が入る毎に付加データやプログラムを新しく書き直
し、再度テキストデータのレイアウト用プログラムを実
行しなければならない。
Therefore, the rules for the layout of the text data are determined by the customer or the person in charge, but each time a correction is made, the additional data or program must be newly rewritten and the text data layout program must be executed again. .

【0017】そこで本発明は、予め決まった規則に従っ
て自動的にレイアウトでき、訂正に対してもプログラム
を書き替えることなく容易に訂正できる文字レイアウト
装置を提供することを目的とする。
Therefore, it is an object of the present invention to provide a character layout device which can be automatically laid out according to a predetermined rule and can be corrected easily without rewriting the program.

【0018】[0018]

【課題を解決するための手段】請求項1によれば、与え
られた規則に従って文字の組版及びレイアウトを行う文
字レイアウト装置において、少なくとも文字を並べたテ
キストデータを少なくとも一つの文字別に分割し、これ
ら分割された各文字を、それぞれ繋がりのある各文字ご
とにグルーピングして複数の文字列を作成するグルーピ
ング手段と、このグルーピング手段によりグルーピング
された各文字列に対してそれぞれ少なくとも規則から成
る属性データを付加する属性データ付加手段と、この属
性データに従って各文字列を並び直してテキストデータ
を組版及びレイアウトするレイアウト手段と、を備えて
上記目的を達成しようとする文字レイアウト装置であ
る。
According to a first aspect of the present invention, in a character layout device for typesetting and laying out characters in accordance with a given rule, at least text data in which characters are arranged is divided into at least one character, and Grouping means for creating a plurality of character strings by grouping each divided character for each connected character and attribute data consisting of at least rules for each character string grouped by this grouping means. A character layout apparatus that includes attribute data adding means for adding and layout means for rearranging character strings in accordance with the attribute data and for formatting and laying out text data.

【0019】請求項2によれば、属性データ付加手段
は、少なくとも規則、書体、級数、長体の各相互関係を
示す属性データを予め格納する文字レイアウト装置であ
る。請求項3によれば、属性データ付加手段は、文字列
に対して複数の属性データを優先順位順に従って付加す
る機能を有する文字レイアウト装置である。
According to a second aspect of the present invention, the attribute data adding means is a character layout device for pre-storing at least attribute data indicating the mutual relationships among rules, typefaces, series, and long bodies. According to the third aspect, the attribute data adding means is a character layout device having a function of adding a plurality of attribute data to the character string in the order of priority.

【0020】請求項4によれば、属性データ付加手段
は、横方向に各文字列を並べかつ縦方向に行を替えて各
文字列を横方向に並べる場合、横方向に並んだ各文字列
間に属性データを付加するとともにこの横方向の一列全
体に対して属性データを付加し、かつ縦方向に並んだ一
列の文字列間に属性データを付加する機能を有する文字
レイアウト装置である。
According to the fourth aspect, the attribute data adding means arranges the character strings in the horizontal direction and changes the lines in the vertical direction to arrange the character strings in the horizontal direction. This is a character layout device having a function of adding attribute data between them, adding attribute data to the entire one row in the horizontal direction, and adding attribute data between one row of character strings arranged in the vertical direction.

【0021】請求項5によれば、レイアウト手段は、テ
キストデータの配置が規則に合うまで優先順位の高い属
性データから順にこの属性データに従って各文字列を並
び直す機能を有する文字レイアウト装置である。
According to a fifth aspect of the present invention, the layout means is a character layout device having a function of rearranging the character strings according to the attribute data in order from the attribute data having a higher priority until the arrangement of the text data conforms to the rule.

【0022】[0022]

【作用】請求項1によれば、テキストデータが入力され
ると、このテキストデータをグルーピング手段により少
なくとも一つの文字別に分割し、これら分割された各文
字をそれぞれ繋がりのある各文字ごとにグルーピングし
て複数の文字列を作成する。
According to the first aspect, when the text data is input, the text data is divided into at least one character by the grouping means, and the respective divided characters are grouped for each connected character. To create multiple strings.

【0023】そして、これらグルーピングされた各文字
列に対してそれぞれ属性データ付加手段により書体や規
則等の属性データを付加する。この後、レイアウト手段
により属性データに従って各文字列を並び直してテキス
トデータを組版及びレイアウトする。
Attribute data such as typefaces and rules is added to each of the grouped character strings by the attribute data adding means. After that, the layout means rearranges the character strings according to the attribute data to typeset and lay out the text data.

【0024】これにより、予め決まった規則に従って自
動的にテキストデータをレイアウトでき、かつ訂正に対
しても属性データを書き替えることでプログラムを書き
替えることなく容易に訂正できる。
Thus, the text data can be automatically laid out according to a predetermined rule, and the correction can be easily performed by rewriting the attribute data without rewriting the program.

【0025】そのうえ、テキストデータを分割し、それ
ぞれに属性データを付加し、しかも属性データ同士に関
係を持たせているので、管理しやすく、又訂正に対して
容易に対応できる。
Moreover, since the text data is divided, attribute data is added to each of them, and the attribute data are related to each other, management is easy and correction can be easily dealt with.

【0026】請求項2によれば、予め格納してある属性
データ、すなわち少なくとも規則、書体、級数、長体の
各相互関係を示す属性データを読み出して各文字列に付
加する。
According to the second aspect, the prestored attribute data, that is, at least the attribute data indicating the mutual relations of the rule, the typeface, the series, and the long body is read and added to each character string.

【0027】請求項3によれば、文字列に対して属性デ
ータを付加する場合、各属性データを優先順位順に従っ
て付加する。請求項4によれば、横方向に複数の文字列
を並べるとともに縦方向にも数列文字列を並べる場合、
横方向の各文字列間に属性データを付加するとともにこ
の横方向の一列全体に対して属性データを付加し、かつ
縦方向に並んだ一列の文字列間に属性データを付加す
る。
According to the third aspect, when the attribute data is added to the character string, each attribute data is added in the order of priority. According to claim 4, when a plurality of character strings are arranged in the horizontal direction and a few character strings are arranged in the vertical direction,
Attribute data is added between the character strings in the horizontal direction, the attribute data is added to the entire row in the horizontal direction, and the attribute data is added between the character strings arranged in the vertical direction.

【0028】請求項5によれば、優先順位の高い属性デ
ータに従ってプログラムを実行してテキストデータを並
び替え、この並び替えでテキストデータの配置が規則に
合わなければ、次の優先順位の属性データに従ってプロ
グラムを実行してテキストデータを並び替え、これ以
降、テキストデータの配置が規則に合うまで優先順位の
高い順に従って属性データを読み出して文字列の並び替
えを繰り返す。
According to the fifth aspect, the program is executed according to the attribute data having a higher priority to rearrange the text data, and if the arrangement of the text data does not conform to the rule by this rearrangement, the attribute data of the next priority is assigned. According to this, the program is executed to rearrange the text data, and thereafter, the attribute data is read and the rearrangement of the character string is repeated until the arrangement of the text data conforms to the rule in the order of higher priority.

【0029】[0029]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。図1は文字レイアウト装置の構成図であ
る。主制御部1はCPU等から構成されるもので、この
主制御部1には、各入力部2、3を介してそれぞれスキ
ャナ4、キーボード5が接続され、かつ表示制御部6を
介してCRTディスプレイ7が接続されている。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a character layout device. The main control unit 1 is composed of a CPU and the like. The main control unit 1 is connected to a scanner 4 and a keyboard 5 via input units 2 and 3, respectively, and a CRT via a display control unit 6. The display 7 is connected.

【0030】又、主制御部1には、画像記憶装置8、文
字データ記憶装置9、及び属性データディスク10が接
続され、各データに対する書き込み、読み出しのアクセ
スが可能となっている。
An image storage device 8, a character data storage device 9, and an attribute data disk 10 are connected to the main control unit 1, and writing and reading access to each data is possible.

【0031】なお、画像記憶装置8及び文字データ記憶
装置9は、別々の記憶装置を用意せず、1台の記憶装置
を用いてその記憶領域を、画像領域とテキスト領域とに
分割してもよい。
It should be noted that the image storage device 8 and the character data storage device 9 do not have separate storage devices, and even if the storage region is divided into an image region and a text region by using one storage device. Good.

【0032】属性データディスク10は、少なくとも規
則から成る属性データ及びその相互関係がテーブル化さ
れて記憶されている。この属性データとしては、例えば
規則、書体、級数、長体、改行等である。
The attribute data disk 10 stores at least attribute data consisting of rules and their mutual relations in a tabular form. This attribute data is, for example, a rule, a typeface, a series, a long body, a line feed, or the like.

【0033】図2は属性データとして級数と長体につい
てのテーブルの模式図である。このようなテーブルは、
1つに限らず、例えば規則、書体、級数、長体やこれら
相互間の関係を示す各テーブルが記憶されている。
FIG. 2 is a schematic diagram of a table for series and long fields as attribute data. A table like this
Not only one, but each table that stores, for example, rules, typefaces, series, long fields, and relationships between them is stored.

【0034】上記主制御部1は、スキャナ4から入力部
2を通して入力した画像データを画像記憶装置8に記憶
し、かつキーボード5から入力部3を通してキー入力し
た文字、すなわちテキストデータを文字データ記憶装置
9に記憶し、さらにこれら記憶装置8、9に記憶されて
いる画像データ、テキストデータを読み出して表示制御
部6に送ってCRTディスプレイ7に表示する機能を有
している。
The main control unit 1 stores the image data input from the scanner 4 through the input unit 2 in the image storage device 8 and stores the character input from the keyboard 5 through the input unit 3, that is, the text data as the character data. It has a function of storing in the device 9 and further reading out the image data and the text data stored in these storage devices 8 and 9 and sending them to the display control unit 6 to display them on the CRT display 7.

【0035】又、主制御部1は、グルーピング手段11
としての分割部12及びグループ部13、属性データ付
加部14、レイアウト部15に対して指令を発し、これ
らを作動する機能を有している。
Further, the main control section 1 includes the grouping means 11
Has a function of issuing a command to the dividing unit 12 and the group unit 13, the attribute data adding unit 14, and the layout unit 15 and operating them.

【0036】グルーピング手段11は、テキストデータ
を少なくとも一つの文字別に分割し、これら分割された
各文字をそれぞれ繋がりのある各文字ごとにグルーピン
グして複数の文字列を作成する機能を有している。
The grouping means 11 has a function of dividing the text data into at least one character and grouping the respective divided characters for each connected character to create a plurality of character strings. .

【0037】このうち分割部12は、テキストデータを
少なくとも一つの文字別、例えばテキストデータ「S−
07」であれば、「”S””−””07”」にそれぞれ
分割する機能を有している。
Of these, the dividing unit 12 divides the text data into at least one character, for example, the text data "S-.
If it is "07", it has a function of dividing into "" S ""-"" 07 "".

【0038】グループ部13は、分割部12により分割
された各文字をそれぞれ繋がりのある各文字ごとにグル
ーピング、この場合[S−07]を1つのグループとし
た文字列を作成する機能を有している。
The group unit 13 has a function of grouping the characters divided by the dividing unit 12 into respective connected characters, and in this case, has a function of creating a character string with [S-07] as one group. ing.

【0039】属性データ付加部14は、グルーピング手
段11によりグルーピングされた各文字列に対し、属性
データディスク10に格納されている属性データを読み
出して各文字列に付加する機能を有している。
The attribute data adding section 14 has a function of reading the attribute data stored in the attribute data disk 10 for each character string grouped by the grouping means 11 and adding it to each character string.

【0040】この属性データ付加部14は、各文字列に
対してそれぞれ複数の属性データを優先順位順に従って
付加する機能を有している。例えば、テキストデータ
「S−07」に対して複数の属性データを付加する場
合、例えば図3(a) に示すように級数と長体のテーブル
から、 「14pt・長体1→14pt・長体2→14pt・長体3→
… →10pt・長体1→10pt・長体2→10pt・長
体3」 のように属性データが優先順位順に従って付加される。
The attribute data adding section 14 has a function of adding a plurality of attribute data to each character string in the order of priority. For example, when adding a plurality of attribute data to the text data "S-07", for example, as shown in Fig. 3 (a), from the table of series and long fields, "14pt, long field 1 → 14pt, long field" 2 → 14pt, long body 3 →
The attribute data is added in the order of priority, such as "→ 10pt, long body 1 → 10pt, long body 2 → 10pt, long body 3".

【0041】又、属性データ付加部14は、例えば図1
0に示すように各文字列を横方向に並べかつ縦方向に行
を替えて並べる場合、横方向に並んだ各文字列間に属性
データを付加するとともにこの横方向の一列全体に対し
て属性データを付加し、かつ縦方向に並んだ一列の文字
列間に属性データを付加する機能を有している。
Further, the attribute data adding section 14 is, for example, as shown in FIG.
As shown in 0, when the character strings are arranged in the horizontal direction and the lines are arranged in the vertical direction, attribute data is added between the character strings arranged in the horizontal direction, and the attribute is applied to the entire row in the horizontal direction. It has a function of adding data and adding attribute data between character strings arranged in a line in the vertical direction.

【0042】レイアウト部15は、レイアウト用のプロ
グラムを実行し、各文字列に対して付加した各属性デー
タに従って各文字列を並び直すもので、テキストデータ
の配置が規則に合うまで優先順位の高い属性データから
順にこの属性データに従って各文字列を並び直してテキ
ストデータを組版及びレイアウトする機能を有してい
る。
The layout section 15 executes a layout program and rearranges the character strings in accordance with the attribute data added to the character strings. The text data has a high priority until the arrangement conforms to the rule. It has a function of rearranging the character strings in order from the attribute data in accordance with the attribute data to format and layout the text data.

【0043】なお、図4は本装置の外観図であり、主制
御部1、各入力部2、3、表示制御部6、グルーピング
手段11、属性データ付加部14及びレイアウト部15
は、同一筐体内に組み込まれている。
Incidentally, FIG. 4 is an external view of the present apparatus. The main control unit 1, the respective input units 2 and 3, the display control unit 6, the grouping means 11, the attribute data adding unit 14 and the layout unit 15 are shown.
Are incorporated in the same housing.

【0044】次に上記の如く構成された装置の作用につ
いて図5に示す組版及びレイアウトのフローチャートに
従って説明する。カタログやチラシ等を小組に分割し、
さらに小組の中の画像領域とテキスト領域とを分割して
画像記憶装置8、文字データ記憶装置9に記憶する。
Next, the operation of the apparatus constructed as described above will be described with reference to the flow chart of the typesetting and layout shown in FIG. Divide catalogs and leaflets into small sets,
Further, the image area and the text area in the small set are divided and stored in the image storage device 8 and the character data storage device 9.

【0045】すなわち、スキャナ4により読み取られた
カタログやチラシ等における画像データは、入力部2を
通して画像記憶装置8に入力し、この画像記憶装置8内
の小組の画像領域に記憶される。
That is, the image data in the catalog, leaflet or the like read by the scanner 4 is input to the image storage device 8 through the input unit 2 and stored in a small set of image areas in the image storage device 8.

【0046】又、キーボード5からキー入力されたカタ
ログやチラシ等におけるテキストデータは、ステップ#
1において、入力部3を通して文字データ記憶装置9に
入力され、この文字データ記憶装置9内の小組のテキス
ト領域に記憶される。このテキストデータは、伸縮性の
ある矩形状領域に記憶される。
Further, the text data in the catalog, leaflet, etc. keyed in from the keyboard 5 can be obtained by step #
1 is input to the character data storage device 9 through the input unit 3 and stored in a small set of text areas in the character data storage device 9. This text data is stored in a stretchable rectangular area.

【0047】この小組のテキストデータは、例えば図6
(a) に示すように 「S−07,(700W× 250D× 300Hm/m 耐荷重28Kg),51
7-800700,…,\8,300 」 であり、これが文字データ記憶装置9に記憶される。
The text data of this small set is, for example, as shown in FIG.
As shown in (a), "S-07, (700W × 250D × 300Hm / m withstand load 28Kg), 51
7-800700, ..., \ 8,300 ", which is stored in the character data storage device 9.

【0048】一方、属性データディスク10には、例え
ば規則、書体、級数、長体から成る属性データの相互関
係を示すテーブル、例えば図2に示すような級数と長体
についてのテーブルが記憶される。
On the other hand, the attribute data disk 10 stores a table showing the mutual relation of the attribute data including, for example, rules, typefaces, series, and long fields, for example, a table for series and long fields as shown in FIG. .

【0049】次にグルーピング手段11の分割部12
は、ステップ#2において、テキストデータを少なくと
も一つの文字別にそれぞれ分割する。例えば、上記テキ
ストデータであれば、図6(b) に示すように分割データ 「”S””−””07””(700W ” …”"\""
8"",""300"」 に分割する。すなわち、少なくとも一つの文字別”S”
と”−”と”07”のように分割する。
Next, the dividing section 12 of the grouping means 11
In step # 2, the text data is divided into at least one character. For example, in the case of the above-mentioned text data, as shown in FIG. 6 (b), the divided data "" S ""-"" 07 "" (700W "...""\""
Divide into 8 "", "" 300 "". That is, at least one character "S"
And "-" and "07".

【0050】次にグループ部13は、ステップ#3にお
いて、これら分割された各文字をそれぞれ繋がりのある
各文字ごとにグルーピングして各文字列を作成する。例
えば、図6(b) の分割データは、同図(c) に示すように
それぞれ繋がりのある各文字ごとに矩形によりアサイン
されてグルーピングされる。すなわち、 [S−07][( 700W× 250D× 300Hm/m 耐荷重28K
g) ][517-800700][…][\8,300] である。
Next, in step # 3, the grouping unit 13 groups these divided characters for each connected character to create each character string. For example, the divided data in FIG. 6 (b) is grouped by assigning a rectangle to each connected character as shown in FIG. 6 (c). That is, [S-07] [(700W × 250D × 300Hm / m withstand load 28K
g)] [517-800700] [...] [\ 8,300].

【0051】ここで、カッコ[](図6では矩形)で括
られた文字がグルーピングされた1つの文字列であり、
それぞれ図6上で識別できるように文字列(1)(2)(3)(4)
…としてある。
Here, the character enclosed by the brackets [] (rectangle in FIG. 6) is one grouped character string,
Character strings (1) (2) (3) (4) so that they can be identified respectively in FIG.
There are ...

【0052】次に属性データ付加部14は、ステップ#
4において、グルーピングされた各文字列に対し、属性
データディスク10に格納されている各属性データを読
み出し、これら属性データを優先順位順に従って各文字
列に付加する。
Next, the attribute data adding section 14 makes a step #
In 4, the respective attribute data stored in the attribute data disk 10 is read for each grouped character string, and these attribute data are added to each character string in the order of priority.

【0053】例えば、図6(d) に示すように文字列(1)
の「S−07」に対して級数と長体のテーブルから、 「14pt・長体1→14pt・長体2→14pt・長体3→
… →10pt・長体1→10pt・長体2→10pt・長
体3」 のように属性データが優先順位順に従って付加される。
For example, as shown in FIG. 6 (d), the character string (1)
From the table of series and long field for “S-07” of, “14pt, long field 1 → 14pt, long field 2 → 14pt, long field 3 →
The attribute data is added in the order of priority, such as "→ 10pt, long body 1 → 10pt, long body 2 → 10pt, long body 3".

【0054】なお、これら属性データの順番は、所望通
りに変えることができ、例えば図3(b) に示すようにデ
ータを付加してもよい。又、テキストデータは、各文字
列(1)(2)により横方向の1列目を形成し、さらに縦方向
に改行して2列目の各文字列(3)(4)(5) を形成してい
る。
The order of these attribute data can be changed as desired, and the data may be added as shown in FIG. 3 (b), for example. In the text data, the first row in the horizontal direction is formed by each of the character strings (1) and (2), and the line feed is further performed in the vertical direction to generate the respective character strings (3) (4) (5) in the second row. Is forming.

【0055】このようなテキストデータに対し、属性デ
ータ付加部14は、図6(e) に示すように横方向に並ん
だ各文字列(1)(2)の各間、及び各文字列(3)(4)(5) の各
間に属性データを付加する。
For such text data, the attribute data addition unit 14 causes the character strings (1) and (2) arranged side by side in the horizontal direction as shown in FIG. Attribute data is added between each of 3), 4) and 5).

【0056】さらに属性データ付加部14は、横方向の
各文字列(1)(2)の一列全体、及び各文字列(3)(4)(5) の
一列全体に対してそれぞれ属性データを付加し、かつ縦
方向に並んだ一列の文字列間、つまり各文字列(1)(2)と
各文字列(3)(4)(5) との間に属性データを付加する。
Further, the attribute data adding section 14 sends the attribute data to the entire row of the character strings (1) and (2) in the horizontal direction and the entire row of the character strings (3), (4) and (5). The attribute data is added between the character strings in a row arranged in the vertical direction, that is, between the character strings (1) (2) and the character strings (3) (4) (5).

【0057】レイアウト部15は、ステップ#5〜#7
を繰り返し、各文字列に対して付加した各属性データを
読み込み、続いてレイアウト用のプログラムを実行し、
各文字列に対して付加した各属性データに従って各文字
列を並び直してテキストデータを組版及びレイアウトす
る。
The layout section 15 performs steps # 5 to # 7.
Repeat, read each attribute data added to each character string, then run the layout program,
The character strings are rearranged according to the attribute data added to the character strings, and the text data is formatted and laid out.

【0058】すなわち、例えば文字列「S−07」につ
いて説明すると、レイアウト部15は、先ず、最も高い
優先順位の属性データ「14pt・長体1」に従ってテキ
ストデータを組版・レイアウトし、その結果がテキスト
領域に入りきらなかった場合、2番目に優先順位の高い
属性データ「14pt・長体2」に従ってテキストデータ
を組版・レイアウトする。
That is, to explain the character string "S-07", for example, the layout unit 15 first typesets and lays out the text data in accordance with the attribute data "14pt.long body 1" having the highest priority, and the result is When the text data cannot be completely filled in, the text data is formatted and laid out according to the attribute data “14pt · long body 2” having the second highest priority.

【0059】このテキストデータの組版・レイアウトで
もテキスト領域に入りきらなかったならば、レイアウト
部15は、3番目に優先順位の高い属性データ「14pt
・長体3」に従ってテキストデータを組版・レイアウト
し、それでもテキスト領域に入りきらなかったならば、
4番目に優先順位の高い属性データ、5番目に優先順位
の高い属性データを順番に変えてテキストデータの組版
及びレイアウトを繰り返す。
If the typesetting / layout of this text data does not fit into the text area, the layout section 15 determines that the attribute data with the third highest priority, "14pt.
・ If you format and lay out the text data according to "long body 3" and it still cannot fit in the text area,
The typesetting and layout of the text data is repeated by changing the attribute data having the fourth highest priority and the attribute data having the fifth highest priority in order.

【0060】このようにテキストデータを組版・レイア
ウトした結果は、表示制御部6により随時CRTディス
プレイ7に表示される。そうして、組版・レイアウトし
た結果のテキストデータが規則、属性データに合えば、
テキストデータに対する組版・レイアウトが完成する。
The result of typesetting and laying out the text data in this manner is displayed on the CRT display 7 as needed by the display control unit 6. Then, if the text data resulting from typesetting and layout matches the rules and attribute data,
Formatting and layout for text data is completed.

【0061】例えば、図10に示す文字あふれの生じた
テキストデータは、上記の如く組版及びレイアウトを繰
り返すことにより、図7に示す規則、属性データに合っ
たテキストデータに自動的にレイアウトされる。
For example, the text data shown in FIG. 10 where the character overflow occurs is automatically laid out into the text data which meets the rules and the attribute data shown in FIG. 7 by repeating the typesetting and the layout as described above.

【0062】なお、図7に示すようにテキストデータに
おいて、「黒丸付きのスチール製」という文字列を内寸
の後に持ってくる訂正が入った場合、テキストデータは
図6(c) に示すように矩形で括った各文字列はそれぞれ
属性データを付加して管理しているので、「外寸」「内
寸」「スチール製」という各グループの並べる順番の属
性データを入れ替えるだけで容易に訂正に対応できる。
As shown in FIG. 6C, when the text data is corrected by bringing the character string "made of steel with black circles" after the inner dimension, the text data is as shown in FIG. 6C. Since each character string enclosed in a rectangle is managed by adding attribute data, it is easy to correct by simply replacing the attribute data in the order of arranging each group of "outer dimension", "inner dimension" and "steel". Can handle.

【0063】又、図8に示すテキストデータのように画
像データの幅内に入りきっていない場合、属性データの
級数を下げて再度組版・レイアウトを行うことにより、
図9に示すテキストデータのように画像データの幅内に
入れることが容易である。
Further, when it is not within the width of the image data like the text data shown in FIG. 8, the series of the attribute data is lowered and the typesetting / layout is performed again.
It is easy to put it within the width of the image data like the text data shown in FIG.

【0064】このように上記一実施例においては、テキ
ストデータをグルーピング手段11により各文字別に分
割し、これら分割された各文字をそれぞれ繋がりのある
各文字ごとにグルーピングして複数の文字列を作成し、
これら文字列に対してそれぞれ属性データ付加部14に
より書体や規則等の属性データを付加し、この後、レイ
アウト部15により属性データに従って各文字列を並び
直してテキストデータを組版及びレイアウトするように
したので、予め決まった規則に従って自動的にテキスト
データをレイアウトでき、かつ訂正に対しても属性デー
タを書き替えることでプログラムを書き替えることなく
容易に訂正できる。
As described above, in the above-described embodiment, the text data is divided into characters by the grouping means 11, and the divided characters are grouped for each connected character to create a plurality of character strings. Then
Attribute data such as a typeface and rules is added to each of these character strings by the attribute data adding unit 14, and then the layout unit 15 rearranges the character strings according to the attribute data to format and lay out the text data. Therefore, the text data can be automatically laid out according to a predetermined rule, and the correction can be easily performed by rewriting the attribute data without rewriting the program.

【0065】そのうえ、テキストデータを分割し、それ
ぞれに属性データを付加し、しかも属性データ同士に関
係を持たせているので、管理しやすく、又訂正に対して
容易に対応できる。
In addition, since the text data is divided, the attribute data is added to each of them, and the attribute data are related to each other, the management is easy and the correction can be easily dealt with.

【0066】[0066]

【発明の効果】以上詳記したように本発明によれば、予
め決まった規則に従って自動的にレイアウトでき、訂正
に対してもプログラムを書き替えることなく容易に訂正
できる文字レイアウト装置を提供できる。
As described above in detail, according to the present invention, it is possible to provide a character layout device which can automatically perform layout according to a predetermined rule and can easily perform correction without rewriting the program.

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

【図1】本発明に係わる文字レイアウト装置の一実施例
を示す構成図。
FIG. 1 is a configuration diagram showing an embodiment of a character layout device according to the present invention.

【図2】属性データディスク内のテーブルの一例を示す
模式図。
FIG. 2 is a schematic diagram showing an example of a table in an attribute data disc.

【図3】文字列に付加する属性データの優先順位を示す
図。
FIG. 3 is a diagram showing a priority order of attribute data added to a character string.

【図4】本装置の外観図。FIG. 4 is an external view of the device.

【図5】組版・レイアウトのフローチャート。FIG. 5 is a flowchart of typesetting / layout.

【図6】組版・レイアウトの動作作用を示す図。FIG. 6 is a diagram showing an operation action of typesetting / layout.

【図7】組版・レイアウトの結果を示す図。FIG. 7 is a diagram showing the results of typesetting and layout.

【図8】文字あふれの生じたレイアウトを示す図。FIG. 8 is a diagram showing a layout in which a character overflow occurs.

【図9】文字あふれを訂正した組版・レイアウトの結果
を示す図。
FIG. 9 is a diagram showing a result of typesetting / layout in which a character overflow is corrected.

【図10】従来において文字あふれの生じたレイアウト
を示す図。
FIG. 10 is a diagram showing a layout in which a character overflow occurs in the related art.

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

1…主制御部、4…スキャナ、5…キーボード、7…C
RTディスプレイ、8…画像記憶装置、9…文字データ
記憶装置、10…属性データディスク、11…グルーピ
ング手段、12…分割部、13…グループ部、14…属
性データ付加部、15…レイアウト部。
1 ... Main control unit, 4 ... Scanner, 5 ... Keyboard, 7 ... C
RT display, 8 ... Image storage device, 9 ... Character data storage device, 10 ... Attribute data disk, 11 ... Grouping means, 12 ... Dividing section, 13 ... Group section, 14 ... Attribute data adding section, 15 ... Layout section.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 与えられた規則に従って文字の組版及び
レイアウトを行う文字レイアウト装置において、 少なくとも前記文字を並べたテキストデータを少なくと
も一つの文字別に分割し、これら分割された前記各文字
を、それぞれ繋がりのある前記各文字ごとにグルーピン
グして複数の文字列を作成するグルーピング手段と、 このグルーピング手段によりグルーピングされた前記各
文字列に対してそれぞれ少なくとも前記規則から成る属
性データを付加する属性データ付加手段と、 この属性データに従って前記各文字列を並び直して前記
テキストデータを組版及びレイアウトするレイアウト手
段と、を具備したことを特徴とする文字レイアウト装
置。
1. A character layout device for typesetting and laying out characters according to a given rule, wherein at least text data in which the characters are arranged is divided into at least one character, and the respective divided characters are connected. Grouping means for creating a plurality of character strings by grouping each of the above-mentioned characters, and attribute data adding means for adding at least attribute data consisting of the rules to each of the character strings grouped by the grouping means. And a layout means for rearranging the character strings in accordance with the attribute data to form and layout the text data.
【請求項2】 前記属性データ付加手段は、少なくとも
規則、書体、級数、長体の各相互関係を示す属性データ
を予め格納することを特徴とする請求項1記載の文字レ
イアウト装置。
2. The character layout apparatus according to claim 1, wherein the attribute data adding means stores in advance attribute data indicating at least mutual relationships among rules, typefaces, series, and long bodies.
【請求項3】 前記属性データ付加手段は、前記文字列
に対して複数の属性データを優先順位順に従って付加す
る機能を有することを特徴とする請求項1記載の文字レ
イアウト装置。
3. The character layout device according to claim 1, wherein the attribute data adding means has a function of adding a plurality of attribute data to the character string in order of priority.
【請求項4】 前記属性データ付加手段は、横方向に各
文字列を並べかつ縦方向に行を替えて前記各文字列を前
記横方向に並べる場合、前記横方向に並んだ前記各文字
列間に属性データを付加するとともにこの横方向の一列
全体に対して属性データを付加し、かつ前記縦方向に並
んだ前記一列の文字列間に属性データを付加する機能を
有することを特徴とする請求項1記載の文字レイアウト
装置。
4. The attribute data adding means, when arranging the character strings in the horizontal direction and changing the rows in the vertical direction to arrange the character strings in the horizontal direction, the character strings arranged in the horizontal direction. It is characterized by having a function of adding attribute data between them, adding attribute data to the entire one row in the horizontal direction, and adding attribute data between the one row of character strings arranged in the vertical direction. The character layout device according to claim 1.
【請求項5】 前記レイアウト手段は、テキストデータ
の配置が規則に合うまで優先順位の高い属性データから
順にこの属性データに従って前記各文字列を並び直す機
能を有することを特徴とする請求項1記載の文字レイア
ウト装置。
5. The layout means has a function of rearranging the character strings in accordance with the attribute data in order from the attribute data having a higher priority until the arrangement of the text data conforms to the rule. Character layout device.
JP7163789A 1995-06-29 1995-06-29 Character layout device Pending JPH0916589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7163789A JPH0916589A (en) 1995-06-29 1995-06-29 Character layout device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7163789A JPH0916589A (en) 1995-06-29 1995-06-29 Character layout device

Publications (1)

Publication Number Publication Date
JPH0916589A true JPH0916589A (en) 1997-01-17

Family

ID=15780743

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7163789A Pending JPH0916589A (en) 1995-06-29 1995-06-29 Character layout device

Country Status (1)

Country Link
JP (1) JPH0916589A (en)

Similar Documents

Publication Publication Date Title
US4912669A (en) Document-editing system
JPH07129658A (en) Layout design device
JPH08314655A (en) Document output device
JPS63122568A (en) Character processor
JPH0916589A (en) Character layout device
JP3245956B2 (en) Layout equipment
JP3433428B2 (en) Line editing device
JPH08314990A (en) Method for preparing ruled line table on cad drawing
JP2833203B2 (en) Table creation processing device
JP3234718B2 (en) Character information display processing device depending on date and time
JP3127551B2 (en) Layout device
JP3503968B2 (en) Typesetting method
JP3324831B2 (en) CAD equipment
JP3247465B2 (en) Product specification statement allocation processor
JPS59128683A (en) Tabulating method
JP2844461B2 (en) Form output device
JPH07311790A (en) Graphic correcting device for catalog or the like
JPH04175965A (en) Controller for arrangement of character and line
JP3275628B2 (en) Layout correction device
JPS63316156A (en) Equational allocation system for character string
JPH06208366A (en) Character size change system
JPH06234201A (en) Letter composing device
JPH0250759A (en) Document shaping system
JPH05189424A (en) Device and method for editing document
JPH0743750B2 (en) Multi-table concatenation method in information processing equipment

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20071212

Year of fee payment: 10

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20081212

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

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20081212

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

Free format text: PAYMENT UNTIL: 20091212

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091212

Year of fee payment: 12