JP2001101179A - Device and method for data processing and recording medium - Google Patents

Device and method for data processing and recording medium

Info

Publication number
JP2001101179A
JP2001101179A JP27947199A JP27947199A JP2001101179A JP 2001101179 A JP2001101179 A JP 2001101179A JP 27947199 A JP27947199 A JP 27947199A JP 27947199 A JP27947199 A JP 27947199A JP 2001101179 A JP2001101179 A JP 2001101179A
Authority
JP
Japan
Prior art keywords
data
area
text
image data
image
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
JP27947199A
Other languages
Japanese (ja)
Inventor
Hirokazu Kuwabara
宏和 桑原
Kazuhiko Iwanaga
和彦 岩永
Tatsuhiro Ikedo
辰裕 池戸
Chitoshi Ito
千年 伊藤
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP27947199A priority Critical patent/JP2001101179A/en
Priority to EP00121451A priority patent/EP1089163B1/en
Priority to AT00121451T priority patent/ATE238584T1/en
Priority to DE60002274T priority patent/DE60002274T2/en
Priority to US09/672,033 priority patent/US7184167B1/en
Publication of JP2001101179A publication Critical patent/JP2001101179A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To process text data and image data so that the text data and the image data can be printed on paper of a desired size in an easily understandable way without complicated operation. SOLUTION: A prescribed area is divided into a text area where the text data are arranged and an image area where the image data are arranged (P0). Then, similar image data obtained by similarly deforming the image data are arranged in the image area (P8), and a text is arranged in the text area (P11 and P14).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データ処理装置、
データ処理方法および記録媒体に関し、特に、テキスト
データおよび画像データを効率よく且つ見やすく配置す
ることが可能なデータ処理装置、データ処理方法および
記録媒体に関する。
TECHNICAL FIELD The present invention relates to a data processing device,
More particularly, the present invention relates to a data processing apparatus, a data processing method, and a recording medium capable of efficiently and easily arranging text data and image data.

【0002】[0002]

【従来の技術】近年のコンピュータ技術の進歩およびイ
ンターネットの普及に伴い、ユーザはWWW(World Wi
de Web)を介して様々な情報に迅速にアクセスし、一般
にWWWブラウザ(以下、単に「ブラウザ」という)と
称される閲覧ソフトウェアに所望の文字列や画像を手軽
に表示させることが可能となっている。ところが、外出
先などのコンピュータが使用できない場所でアクセスし
た情報を参照するためには、これを紙に印刷しておくこ
とが必要な場合も多い。そして、そのためには、ブラウ
ザの印刷機能を用いて、ブラウザに表示された文字列や
画像をそのままの状態で、例えばA4サイズなどの紙に
印刷するのが最も簡単である。
2. Description of the Related Art With the advance of computer technology and the spread of the Internet in recent years, users have been using WWW (World Wi-Fi).
de Web), it is possible to quickly access various information and easily display desired character strings and images on browsing software generally called a WWW browser (hereinafter simply referred to as "browser"). ing. However, it is often necessary to print this information on paper in order to refer to information accessed in places where the computer cannot be used, such as when away from home. For this purpose, it is easiest to print the character string or image displayed on the browser as it is on an A4 size paper, for example, using the print function of the browser.

【0003】しかしながら、ブラウザに表示された情報
のうち実際に必要となる情報はその一部に過ぎないこと
が多く、ブラウザの印刷機能を用いて印刷すると、本来
必要でない情報までも印刷されることになってしまう。
そのため、印刷された紙の枚数が増えて重くなり持ち運
ぶのに適さない、保存するのに場所をとる、必要な情報
を探すのに時間がかかる、用紙を無駄に使用してしまう
などの問題を生じてしまう。
However, the information actually required in the information displayed on the browser is often only a part of the information, and when printing is performed by using the print function of the browser, information that is not necessary is printed. Become.
As a result, the number of printed papers increases and becomes heavy and unsuitable for carrying, takes up space for storage, takes time to find necessary information, and wastes paper. Will happen.

【0004】これらの問題を回避するには、ブラウザに
表示されたデータから必要なデータだけをコピー&ペー
ストするなどして例えばワープロソフトに取り出し、さ
らに取り出したデータをワープロソフトの様々な機能を
使って好ましいレイアウトに編集するという操作が必要
である。
In order to avoid these problems, only necessary data is copied and pasted from the data displayed on the browser, for example, extracted to a word processing software, and the extracted data is used by using various functions of the word processing software. It is necessary to perform an operation of editing the layout to be preferable.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、ブラウ
ザから必要なデータをワープロソフトなどに取り出して
編集する場合には、非常に煩雑な作業が必要となる。例
えば、ブラウザから取り出されたテキストデータおよび
画像データを所望の大きさの用紙に印刷するには、その
用紙をテキストデータが配置されるテキスト領域と画像
データが配置される画像領域とに分割し、さらに個々の
テキストデータおよび画像データを各領域に好適に配置
する作業を行う必要があり、これらの作業は時間と手間
を要する作業である。
However, in the case where necessary data is taken out from a browser to word processing software or the like and edited, very complicated work is required. For example, to print text data and image data retrieved from the browser on a sheet of desired size, the sheet is divided into a text area where the text data is arranged and an image area where the image data is arranged, Further, it is necessary to perform a work of suitably arranging individual text data and image data in each area, and these works are work requiring time and labor.

【0006】そこで、本発明の目的は、煩雑な作業を行
う必要なく所望サイズの用紙に見やすく印刷することが
できるようにテキストデータおよび画像データを処理す
るデータ処理装置、データ処理方法および記録媒体を提
供することである。
Accordingly, an object of the present invention is to provide a data processing apparatus, a data processing method, and a recording medium for processing text data and image data so that printing can be performed easily on a sheet of a desired size without performing complicated work. To provide.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、請求項1のデータ処理装置は、所定領域を、テキス
トデータが配置されるべきテキスト領域と、画像データ
が配置されるべき画像領域とに所定の占有比率に応じて
分割する所定領域分割手段と、1または複数の前記画像
データがそれぞれ相似拡大または相似縮小された相似画
像データを、前記画像領域内に配置する画像配置手段
と、1または複数の前記テキストデータを前記テキスト
領域内に配置するテキスト配置手段とを備えていること
を特徴とするものである。
According to a first aspect of the present invention, there is provided a data processing apparatus comprising: a predetermined area including a text area in which text data is to be arranged and an image area in which image data is to be arranged; A predetermined area dividing unit that divides the image data according to a predetermined occupancy ratio, and similar image data in which one or a plurality of the image data are respectively similar enlarged or similar reduced, and an image arrangement unit that arranges the similar image data in the image region. Text arrangement means for arranging one or a plurality of the text data in the text area.

【0008】請求項7のデータ処理方法は、所定領域
を、テキストデータが配置されるべきテキスト領域と、
画像データが配置されるべき画像領域とに所定の占有比
率に応じて分割する所定領域分割ステップと、1または
複数の前記画像データがそれぞれ相似拡大または相似縮
小された相似画像データを、前記画像領域内に配置する
画像配置ステップと、1または複数の前記テキストデー
タを前記テキスト領域内に配置するテキスト配置ステッ
プとを有していることを特徴とするものである。
According to a seventh aspect of the present invention, in the data processing method, the predetermined area includes a text area in which text data is to be arranged,
A predetermined area dividing step of dividing the image data into an image area where the image data is to be arranged according to a predetermined occupancy ratio; and converting the similar image data in which one or a plurality of the image data are respectively similar enlarged or similar reduced into the image area. And a text arranging step of arranging one or a plurality of the text data in the text area.

【0009】請求項8は、所定領域を、テキストデータ
が配置されるべきテキスト領域と、画像データが配置さ
れるべき画像領域とに所定の占有比率に応じて分割する
所定領域分割手段、1または複数の前記画像データがそ
れぞれ相似拡大または相似縮小された相似画像データ
を、前記画像領域内に配置する画像配置手段、1または
複数の前記テキストデータを前記テキスト領域内に配置
するテキスト配置手段としてコンピュータを機能させる
ためのプログラムを記録したコンピュータ読み取り可能
な記録媒体である。
In a preferred embodiment, the predetermined area is divided into a text area in which text data is to be arranged and an image area in which image data is to be arranged according to a predetermined occupancy ratio. A computer serving as image arranging means for arranging similar image data in which a plurality of the image data are similarly enlarged or reduced in the image area, and text arranging means for arranging one or a plurality of the text data in the text area; Is a computer-readable recording medium on which a program for causing a computer to function is recorded.

【0010】請求項1、7、8によると、所定領域が占
有比率に応じてテキスト領域と画像領域とに分割され、
相似画像データとテキストデータとが各領域内に自動的
に配置されるので、煩雑な編集作業を必要とすることな
く、画像データおよびテキストデータを所定領域内に見
やすく且つコンパクトに配置することが可能となる。
According to the first, seventh and eighth aspects, the predetermined area is divided into a text area and an image area according to the occupation ratio,
Since similar image data and text data are automatically arranged in each area, it is possible to arrange image data and text data in a predetermined area easily and compactly without requiring complicated editing work. Becomes

【0011】本発明で、「配置」は、データが実際に表
示あるいは印刷される所定領域内での相対位置に応じた
アドレスにそのデータを配置すること、つまり当該デー
タにその所定領域内での相対位置に応じたアドレスを与
えて記憶装置に書き込むことである。また、テキストデ
ータとは、文字や記号がShift−JISコードやU
NICODEなどの所定コードで表された文字列データ
であって、txt、html、rtfなどのファイル形
式のほかに特定のワープロソフトで書き込まれるファイ
ル形式で表されるデータをも含むものとする。また、画
像データは2次元的に配列されたドットのオンオフによ
って図形を表現するデータであり、gif、jpeg、
bmpなどのファイル形式で表されるデータを含むもの
とする。なお、表(テーブル)データは、枠線を罫線に
置き換えることによってテキストデータとして扱うよう
にしてもよいが、罫線のずれを回避するためには表デー
タをそのまま画像データとして扱うことが好ましい。表
以外のデータであってテキスト或いは画像のいずれでも
ないデータについても、適宜テキストデータ或いは画像
データのいずれかとして扱えばよい。
In the present invention, "arrangement" means that the data is arranged at an address corresponding to a relative position in a predetermined area where the data is actually displayed or printed, that is, the data is assigned to the data in the predetermined area. Writing to a storage device by giving an address corresponding to the relative position. In addition, text data means that characters and symbols are Shift-JIS codes or U-
It is assumed that the data includes character string data represented by a predetermined code such as NICODE and data represented by a file format written by specific word processing software in addition to file formats such as txt, html, and rtf. The image data is data expressing a figure by turning on and off dots arranged two-dimensionally, and includes gif, jpeg,
It includes data represented in a file format such as bmp. Note that the table data may be handled as text data by replacing the frame lines with ruled lines, but it is preferable to handle the table data as it is as image data in order to avoid displacement of ruled lines. Data other than a table and not a text or an image may be appropriately handled as either text data or image data.

【0012】また、請求項2のデータ処理装置は、前記
テキスト配置手段は、画像データが配置されなかった前
記画像領域内の領域にもテキストデータを配置すること
を特徴とするものである。
Further, in the data processing apparatus according to the present invention, the text arranging means arranges the text data also in an area in the image area where the image data is not arranged.

【0013】請求項2によると、画像データが配置され
なかった領域にもテキストデータが配置されるので、デ
ータをよりコンパクトに配置することが可能となる。
According to the second aspect, since the text data is also arranged in the area where the image data is not arranged, the data can be arranged more compactly.

【0014】また、請求項3のデータ処理装置は、前記
占有比率が可変であることを特徴とするものである。
Further, the data processing device according to a third aspect is characterized in that the occupancy ratio is variable.

【0015】請求項3によると、占有比率が可変である
ので、画像データとテキストデータのサイズの比率に応
じた最適な占有比率を選択することにより、これらのデ
ータをより一層見やすく配置することができる。
According to the third aspect, since the occupation ratio is variable, by selecting an optimum occupation ratio in accordance with the size ratio between the image data and the text data, it is possible to arrange these data more easily. it can.

【0016】また、請求項4のデータ処理装置は、前記
画像データに対するその相似画像データの拡大縮小率と
予め定められた最小縮小率とを比較する比較手段と、前
記比較手段による比較の結果、相似画像データの拡大縮
小率が最小縮小率よりも小さい場合に、前記画像領域の
占有比率を拡大する画像領域拡大手段とをさらに備えて
いることを特徴とするものである。
According to a fourth aspect of the present invention, there is provided a data processing apparatus, comprising: a comparing means for comparing an enlargement / reduction rate of the similar image data with respect to the image data and a predetermined minimum reduction rate; An image area enlarging means for enlarging the occupation ratio of the image area when the enlargement / reduction ratio of the similar image data is smaller than the minimum reduction ratio is further provided.

【0017】請求項4によると、相似画像データの拡大
縮小率と予め定められた最小縮小率との比較に基づいて
画像領域の占有比率を拡大することにより、相似画像デ
ータが非常に小さく縮小されて見づらくなるのを防止す
ることができる。
According to the fourth aspect, the similar image data is reduced to a very small size by enlarging the occupation ratio of the image area based on a comparison between the enlargement / reduction ratio of the similar image data and a predetermined minimum reduction ratio. Can be prevented from being difficult to see.

【0018】また、請求項5のデータ処理装置は、前記
テキスト領域内にあって前記画像領域に隣接した位置に
存在する突出テキスト領域に前記テキストデータが配置
された場合に、当該突出テキスト領域において所定ポイ
ント数で表示されるテキストデータの行内文字数が所定
数以上となるかを判断する回り込み判断手段をさらに備
えていることを特徴とするものである。
Further, when the text data is arranged in a protruding text area existing in a position adjacent to the image area in the text area, the data processing apparatus according to claim 5 A wraparound determining means for determining whether the number of characters in a line of text data displayed with a predetermined number of points is equal to or more than a predetermined number is further provided.

【0019】請求項5によると、突出テキスト領域にお
けるテキストデータの行内文字数が所定数以下に少なく
なってテキストデータが見づらくなるのを防止すること
ができる。
According to the fifth aspect, it is possible to prevent the number of characters in the line of the text data in the protruding text area from being reduced to a predetermined number or less, thereby making it difficult to view the text data.

【0020】また、請求項6のデータ処理装置は、テキ
ストデータが所定ポイント数で表示されたときに前記テ
キスト領域に収まらない場合に、前記所定領域の拡大に
よって前記テキスト領域を拡大するテキスト領域拡大手
段をさらに備えていることを特徴とするものである。
In the data processing apparatus according to the present invention, when the text data is displayed in a predetermined number of points and does not fit in the text area, the text area is enlarged by expanding the predetermined area. It is characterized by further comprising means.

【0021】請求項6によると、テキストデータが所定
ポイント数で表示されたときにテキスト領域に収まらな
い場合に、所定領域の拡大によってテキスト領域が拡大
されるので、画像の表示に影響を与えることなくテキス
トデータを適正に表示することが可能となる。
According to the present invention, when the text data is displayed in a predetermined number of points and does not fit in the text area, the text area is enlarged by enlarging the predetermined area, thereby affecting the image display. And the text data can be displayed properly.

【0022】[0022]

【発明の実施の形態】以下、本発明の好適な実施の形態
について、図面を参照しつつ説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the drawings.

【0023】図1は、本実施の形態のデータ処理装置で
あるパーソナルコンピュータと、これに接続されたシー
ト加工装置とからなるラベル製造装置のブロック図であ
る。ここでは、まず、シート加工装置(以下、「カッテ
ィングプリンタ」という)の構造について説明する。図
2は、カッティングプリンタの要部構成を示す平面図で
ある。図3は、図2に示すカッティングプリンタの要部
断面図である。図4は、図2に示すカッティングプリン
タのカッティング機構部を示す要部側断面図である。ま
た、図5は図2に示すロールシートユニットとカッティ
ング機構部および画像形成機構部との概略的な位置関係
を示す模式的な斜視図である。
FIG. 1 is a block diagram of a label manufacturing apparatus including a personal computer, which is a data processing apparatus according to the present embodiment, and a sheet processing apparatus connected thereto. Here, the structure of the sheet processing apparatus (hereinafter, referred to as “cutting printer”) will be described first. FIG. 2 is a plan view showing a configuration of a main part of the cutting printer. FIG. 3 is a sectional view of a main part of the cutting printer shown in FIG. FIG. 4 is a sectional side view of a main part showing a cutting mechanism of the cutting printer shown in FIG. FIG. 5 is a schematic perspective view showing a schematic positional relationship between the roll sheet unit shown in FIG. 2, the cutting mechanism, and the image forming mechanism.

【0024】図2および図3に示すカッティングプリン
タ11は、左右両側に配設される側壁9および10を持
つフレーム12内に、シートとしてのタックシート13
を巻回した状態で回転自在に支持しているロールシート
ユニット14と、タックシート13を正逆両方向に搬送
し得る搬送手段としての搬送機構部15と、搬送機構部
15によって搬送されるタックシート13をカットする
ためのカッティング機構部16と、タックシート13の
正方向(排出方向)への搬送に関してカッティング機構
部16の上流側に配設され、タックシート13に所定の
画像を形成するための画像形成手段としての画像形成機
構部17とを有している。
The cutting printer 11 shown in FIGS. 2 and 3 has a tack sheet 13 as a sheet in a frame 12 having side walls 9 and 10 provided on both right and left sides.
The roll sheet unit 14 rotatably supports in a state of being wound, a transport mechanism section 15 as transport means capable of transporting the tack sheet 13 in both forward and reverse directions, and a tack sheet transported by the transport mechanism section 15. A cutting mechanism 16 for cutting the sheet 13 and an upstream side of the cutting mechanism 16 for transporting the tack sheet 13 in the forward direction (discharge direction), for forming a predetermined image on the tack sheet 13. And an image forming mechanism 17 as image forming means.

【0025】ロールシート51は、図5に示すように、
タックシート13が筒状の巻芯55にロール状に巻回さ
れたものである。なお、このタックシート13は、表面
が印刷可能とされ裏面に粘着剤が塗布された粘着シート
18と、この粘着シート18の裏面に貼り合わされる離
型紙19との2層によって構成されている。
The roll sheet 51 is, as shown in FIG.
The tack sheet 13 is wound around a cylindrical core 55 in a roll shape. The tack sheet 13 is composed of two layers: an adhesive sheet 18 whose front surface is printable and an adhesive is applied to the back surface, and a release paper 19 bonded to the back surface of the adhesive sheet 18.

【0026】カッティングプリンタ11を構成する各部
分のうち、まず、搬送機構部15について説明する。搬
送機構部15は、図3に示すように、画像形成機構部1
7の構成要素でもあるプラテンローラ24と、カッティ
ング機構部16の下流側に配設される排出ローラ25と
を備えている。排出ローラ25とタックシート13を挟
んで対向する位置には、従動ローラ8が配設されてい
る。この従動ローラ8は、従動ローラ8をばねにより排
出ローラ25側に押圧付勢する押さえ板7によって支持
されている。そして、フレーム12内に配設された第1
駆動モータ21の正逆駆動によって、プラテンローラ2
4および排出ローラ25は、第1ギヤ列22を介して、
タックシート13を正方向および逆方向に搬送するよう
に回転させられる。
First, the transport mechanism 15 of the components constituting the cutting printer 11 will be described. As shown in FIG. 3, the transport mechanism unit 15 includes the image forming mechanism unit 1.
7 and a discharge roller 25 disposed downstream of the cutting mechanism 16. The driven roller 8 is disposed at a position facing the discharge roller 25 with the tack sheet 13 interposed therebetween. The driven roller 8 is supported by a pressing plate 7 that presses and biases the driven roller 8 toward the discharge roller 25 by a spring. Then, the first
By the forward / reverse drive of the drive motor 21, the platen roller 2
4 and the discharge roller 25 are connected via the first gear train 22
The tack sheet 13 is rotated so as to be transported in the forward and reverse directions.

【0027】また、ロールシートユニット14のフラン
ジギヤ(図示せず)に設けられたギヤ59には、遊星ギ
ヤ機構26を含む第2ギヤ列27を介して第1駆動モー
タ21からの駆動が伝達されるように構成されている。
この遊星ギヤ機構26は、タックシート13を逆方向に
搬送するときにのみギヤ59と噛み合い、タックシート
13を正方向に搬送するときにはギヤ59と噛み合わな
いように構成されている。したがって、タックシート1
3を正方向に搬送するときには、プラテンローラ24お
よび排出ローラ25の回転によってタックシート13を
引き出す力によりロールシート51が回転し、一方、タ
ックシート13を逆方向に搬送するときには、第1駆動
モータ21からの駆動によってロールシート51が逆方
向に回転する。
The drive from the first drive motor 21 is transmitted to a gear 59 provided on a flange gear (not shown) of the roll sheet unit 14 via a second gear train 27 including a planetary gear mechanism 26. It is configured to:
The planetary gear mechanism 26 is configured to mesh with the gear 59 only when the tack sheet 13 is transported in the reverse direction, and not to mesh with the gear 59 when transporting the tack sheet 13 in the forward direction. Therefore, tack sheet 1
When the sheet 3 is transported in the forward direction, the roll sheet 51 is rotated by the force of pulling out the tack sheet 13 by the rotation of the platen roller 24 and the discharge roller 25, while when the tack sheet 13 is transported in the reverse direction, the first drive motor is used. The drive from 21 rotates the roll sheet 51 in the reverse direction.

【0028】次に、カッティング機構部16について説
明する。カッティング機構部16は、タックシート13
をその下方において受ける裁断ベッド29と、この裁断
ベット29とタックシート13を挟んで対向するカット
手段としてのカッタユニット30と、このカッタユニッ
ト30が着脱自在に装着されるキャリッジ31とを備え
ている。
Next, the cutting mechanism 16 will be described. The cutting mechanism 16 includes the tack sheet 13.
And a cutter unit 30 as cutting means facing the cutting bed 29 with the tack sheet 13 interposed therebetween, and a carriage 31 to which the cutter unit 30 is removably mounted. .

【0029】図4に示すように、カッタユニット30
は、その下端側にタックシート13をカットするための
カッタ43を有している。カッタ43は、カッタユニッ
ト30内の図示しない昇降機構によって、粘着シート1
8とともに離型紙19をもカツトする全カット(フルカ
ット)位置、および、粘着シート18のみをカットする
ハーフカット位置のいずれかの位置に選択的に支持され
る。
As shown in FIG. 4, the cutter unit 30
Has a cutter 43 at its lower end for cutting the tack sheet 13. The cutter 43 is moved by an elevating mechanism (not shown) in the cutter unit 30 so that the adhesive sheet 1
8 is selectively supported at one of a full cut (full cut) position where the release paper 19 is cut and a half cut position where only the adhesive sheet 18 is cut.

【0030】図2に示すように、キャリッジ31は、フ
レーム12の両側壁9および10の外側に配設された一
対のプーリ32および33に掛け渡されたエンドレス状
のタイミングベルト34の1箇所に連結されている。図
3に示すように、一対のプーリ32および33のうち、
1つのプーリ32は、フレーム12の側壁10の外側に
配設された第2駆動モータ35によって、ベベルギヤな
どを含む第3ギヤ列36を介して駆動される。これによ
って、キャリッジ31は、タックシート13の搬送方向
と略直交する方向(シートの幅方向)に往復移動され
る。
As shown in FIG. 2, the carriage 31 is provided at one position of an endless timing belt 34 which is stretched over a pair of pulleys 32 and 33 disposed outside the side walls 9 and 10 of the frame 12. Are linked. As shown in FIG. 3, of the pair of pulleys 32 and 33,
One pulley 32 is driven by a second drive motor 35 disposed outside the side wall 10 of the frame 12 via a third gear train 36 including a bevel gear and the like. As a result, the carriage 31 is reciprocated in a direction substantially perpendicular to the transport direction of the tack sheet 13 (the sheet width direction).

【0031】また、図4に示すように、このキャリッジ
31におけるカッタユニット30が装着される側の端部
と反対側の端部には、その両端がフレーム12の両側壁
9および10に支持されたメインガイドシャフト37が
挿通されており、キャリッジ31はメインガイドシャフ
ト37に摺動可能に支持されている。また、カッタユニ
ット30が装着された側の端部とメインガイドシャフト
37が挿通された側の端部との間の途中部位には、メイ
ンガイドシャフト37と略平行に延びる補助ガイドシャ
フト38が摺動可能に挿通されている。この補助ガイド
シャフト38の両端部は、フレーム12の両側壁9およ
び10に回動可能に設けられた一対の回動アーム39に
支持されている。
As shown in FIG. 4, both ends of the carriage 31 are supported by both side walls 9 and 10 of the frame 12 at an end opposite to the end on which the cutter unit 30 is mounted. The carriage 31 is slidably supported by the main guide shaft 37. Further, an auxiliary guide shaft 38 extending substantially parallel to the main guide shaft 37 is slid in an intermediate portion between the end on which the cutter unit 30 is mounted and the end on which the main guide shaft 37 is inserted. It is movably inserted. Both ends of the auxiliary guide shaft 38 are supported by a pair of rotating arms 39 rotatably provided on both side walls 9 and 10 of the frame 12.

【0032】また、補助ガイドシャフト38の一方の端
部は、作動リンク40を介してソレノイド41の出力軸
42に連結されている。そして、ソレノイド41がオン
状態(励磁状態)のときには、図示しないばねの付勢力
によって、カッタユニット30は、その下端側が裁断部
べット29の上面を押圧するように作動させられる。ま
た、ソレノイド41がオフ状態(励磁されていない状
態)のときには、ソレノイド41の出力軸42が上方に
進出し、作動リンク40および補助ガイドシャフト38
を介してキャリッジ31のカッタユニット30が装着さ
れる側の端部がメインガイドシャフト37を支点として
上向きに回動する。従って、カッタユニット30は、そ
の下端側が裁断べット29の上面から離れるように作動
させられる。
One end of the auxiliary guide shaft 38 is connected to an output shaft 42 of a solenoid 41 via an operation link 40. When the solenoid 41 is in the ON state (excited state), the cutter unit 30 is operated by the urging force of a spring (not shown) so that the lower end thereof presses the upper surface of the cutting portion bet 29. When the solenoid 41 is in the off state (non-excited state), the output shaft 42 of the solenoid 41 advances upward, and the operation link 40 and the auxiliary guide shaft 38
The end of the carriage 31 on the side where the cutter unit 30 is mounted rotates upward with the main guide shaft 37 as a fulcrum. Therefore, the cutter unit 30 is operated so that the lower end side is separated from the upper surface of the cutting bet 29.

【0033】次に、画像形成機構部17について説明す
る。図2および図3に示すように、画像形成機構部17
は、タックシート13の幅寸法にほぽ等しい長さを持
つ、印字ヘッドとしてのライン型のサーマルヘッド44
と、このサーマルヘッド44とタックシート13を挟ん
で対向するプラテンローラ24とを備えている。
Next, the image forming mechanism 17 will be described. As shown in FIGS. 2 and 3, the image forming mechanism 17
Is a line type thermal head 44 as a print head having a length substantially equal to the width dimension of the tack sheet 13.
And a platen roller 24 opposed to the thermal head 44 with the tack sheet 13 interposed therebetween.

【0034】上述したカッティングプリンタ11に用い
られるタックシート13は、粘着シート18と離型紙1
9との2層によって構成されているので、必要な情報が
印刷された際に、離型紙19を剥がして迅速に手帳やノ
ートに貼り付けることができるという利点がある。ま
た、タックシート13の幅は、手帳やノートの幅に合わ
せて例えば70mm程度であってよい。
The tack sheet 13 used in the above-described cutting printer 11 includes an adhesive sheet 18 and release paper 1.
9 has the advantage that when the necessary information is printed, the release paper 19 can be peeled off and quickly attached to a notebook or notebook. The width of the tack sheet 13 may be, for example, about 70 mm in accordance with the width of a notebook or notebook.

【0035】次に、本実施の形態のデータ処理装置であ
るパーソナルコンピュータ110およびカッティングプ
リンタ11からなるラベル製造装置100の制御系につ
いて、図1を参照して説明する。
Next, a control system of a label manufacturing apparatus 100 including a personal computer 110 and a cutting printer 11 as a data processing apparatus of the present embodiment will be described with reference to FIG.

【0036】パーソナルコンピュータ110は、本体部
130およびディスプレイ132のほか図示しないキー
ボード、マウスなどの機器から構成されている。本体部
130は、CPU134とRAM136とハードディス
ク(HD)138とを有しており、これらはバスによっ
て相互に接続されているとともに、入出力インターフェ
イス140とも接続されている。また、本体部130
は、本実施の形態に係る、例えばFDやCD−ROMで
ある記録媒体に記録されたプログラムを読み込むための
駆動装置(図示せず)を有している。また、本体部13
0には通信回線139と接続するためにモデムなどの機
器(図示せず)が内蔵されている。
The personal computer 110 includes a main unit 130 and a display 132, as well as devices such as a keyboard and a mouse (not shown). The main unit 130 has a CPU 134, a RAM 136, and a hard disk (HD) 138, which are connected to each other by a bus and also to an input / output interface 140. Also, the main body 130
Has a driving device (not shown) for reading a program recorded on a recording medium such as an FD or a CD-ROM according to the present embodiment. Also, the main body 13
0 includes a device (not shown) such as a modem for connecting to the communication line 139.

【0037】CPU134はハードディスク138やR
AM136から読み込んだプログラム、データのほかカ
ッティングプリンタ11側から供給されたデータに基づ
いて所定の演算を行なう。RAM136は、テキストデ
ータや画像データのほかに、CPU134による演算結
果などを一時的に記憶する。
The CPU 134 has a hard disk 138 and an R
A predetermined operation is performed based on the program and data read from the AM 136 as well as data supplied from the cutting printer 11 side. The RAM 136 temporarily stores, for example, the calculation results of the CPU 134 in addition to the text data and the image data.

【0038】ハードディスク138には、ファイル管理
ツールを含む汎用的なOSおよび汎用的なブラウザソフ
トウェアがインストールされている。ファイル管理ソフ
トツールによって、パーソナルコンピュータ110内の
ファイルに対して、削除、コピー、移動、名前の変更な
どのファイル処理を行うことができる。
A general-purpose OS including a file management tool and general-purpose browser software are installed on the hard disk 138. With the file management software tool, file processing such as deletion, copying, moving, and renaming of files in the personal computer 110 can be performed.

【0039】ブラウザソフトウェアは、ハードディスク
138、FDおよびCD−ROMなどに記憶されたテキ
ストデータおよび/または画像データのほか、インター
ネット上のWWWサーバから通信回線139を介してパ
ーソナルコンピュータ110に送られたテキストデータ
および/または画像データをディスプレイ132に表示
することが可能である。ここで、テキストデータは、一
例としてHTML(hypertext markup language )によ
って表示された文字列データであり、また、画像データ
は、HTML文書内にタグで貼り付けられたGIF、J
PEG、BMPなどの形式のデータである。
The browser software includes text data and / or image data stored in the hard disk 138, FD, CD-ROM, etc., and text data sent from the WWW server on the Internet to the personal computer 110 via the communication line 139. Data and / or image data can be displayed on display 132. Here, the text data is, for example, character string data displayed in HTML (hypertext markup language), and the image data is GIF, J that is pasted with a tag in an HTML document.
This is data in a format such as PEG or BMP.

【0040】図6に、ディスプレイ132へのブラウザ
ソフトウェアの表示例を示す。ブラウザのデータ表示領
域150にはHTML文書が表示されており、その左上
部および左下部にはGIF画像152、153が貼り付
けられている。また、その他の領域にはテキスト154
が表示されている。
FIG. 6 shows a display example of the browser software on the display 132. An HTML document is displayed in the data display area 150 of the browser, and GIF images 152 and 153 are pasted on the upper left and lower left thereof. In other areas, text 154 is used.
Is displayed.

【0041】また、ハードディスク138には、上述し
たソフトウェアのほかに、汎用的なワープロソフトウェ
ア、描画ソフトウェアなどのテキストデータおよび/ま
たは画像データを処理できるソフトウェアがインストー
ルされていてよい。例えばワープロソフトウェアは、当
該ソフトウェア独自の形式で記憶されたテキストデータ
を編集することが可能であるとともに、GIF、JPE
G、BMPなどの画像データをテキストデータとともに
表示することができるものであってよい。
Further, in addition to the above-described software, software capable of processing text data and / or image data such as general-purpose word processing software and drawing software may be installed in the hard disk 138. For example, word processing software can edit text data stored in a format unique to the software, and can edit GIF, JPE
Image data such as G and BMP may be displayed together with text data.

【0042】さらに、ハードディスク138には、カッ
ティングプリンタ11でラベルを製造するためのエディ
タソフトウェア(エディタ)がインストールされてい
る。エディタは、これに取り込まれたテキストデータや
画像データを所望のレイアウトで編集した後、タックシ
ート13に印刷しこれを所望の位置でカットするための
ソフトウェアであり、ユーザはパーソナルコンピュータ
110を操作してシートに印刷する画像内容やカット位
置などをディスプレイ132を見ながら編集することが
できる。
Further, on the hard disk 138, editor software (editor) for manufacturing labels by the cutting printer 11 is installed. The editor is software for editing the text data or image data taken in the data in a desired layout, printing the data on the tack sheet 13 and cutting the data at a desired position. The user can edit the image content to be printed on the sheet, the cut position, and the like while viewing the display 132.

【0043】エディタにテキストデータや画像データを
取り込むには、使用するOSやアプリケーションに応じ
て様々な方法が考えられる。例えば、ブラウザのデータ
表示領域150内の所定矩形範囲をマウスによって指定
する、クリップボードを用いてコピー&ペーストを行
う、ファイル管理ツールを用いて所望のデータを(例え
ばドラッグ&ドロップにより)選択するなどの様々な方
法がある。なお、ディスプレイ132に表示された画像
データがエディタに取り込まれる場合には、画像データ
はディスプレイ132と同じ画面解像度をもったデータ
としてエディタに送られる。
There are various methods for loading text data and image data into the editor, depending on the OS and application used. For example, a predetermined rectangular area in the data display area 150 of the browser is specified by a mouse, copy and paste is performed by using a clipboard, and desired data is selected (for example, by drag and drop) using a file management tool. There are various ways. When the image data displayed on the display 132 is taken into the editor, the image data is sent to the editor as data having the same screen resolution as the display 132.

【0044】また、エディタは、これに取り込まれたテ
キストデータや画像データをその種類および組合せに応
じて自動的に編集する機能を有している。詳しくは後述
するが、エディタは、自動編集機能として、取り込まれ
た個々のデータがテキストデータおよび画像データのい
ずれであるのかを識別する機能、識別されたデータがテ
キストデータのみ、画像データのみ、テキストデータと
画像データとの両方のいずれであるかを判定する機能、
および、その判定結果に応じてそれぞれ異なるパターン
にしたがってデータを配置する機能を有している。
The editor has a function of automatically editing the text data and image data taken in according to the type and combination. As will be described in detail later, the editor has an automatic editing function that identifies whether the captured individual data is text data or image data, the identified data is text data only, image data only, text data Function to determine whether the data is both data and image data,
In addition, it has a function of arranging data according to different patterns according to the determination result.

【0045】エディタは、データ配置機能の一部とし
て、例えば、テキストデータだけが取り込まれた場合に
は、複数のテキストデータの区別が付くように各データ
の間に改行コードを1つ挿入して、個々のテキストデー
タをその所定領域内での相対位置に応じたアドレスに配
置する。また、その際に各テキストデータを整形して、
表示されたテキストが見やすくなるようにする。特にH
TML文書から取り込んだテキストデータは、各表示行
ごとに改行コードが挿入されていたり、インデントが多
用されていることが多く、これを異なる行内表示文字数
で印刷すると行の途中で文章が改行されたり、スペース
文字によって行頭位置が不揃いになったりして非常に読
みづらい文章となってしまう。しかし、すべての改行コ
ードやスペース文字を一律に削除してしまうと、かえっ
て文章が読みづらくなる。そこで、本実施の形態では、
所定の法則に従って、一定の条件を満足する改行コード
およびスペース文字だけを削除するようにしている。
As part of the data arrangement function, for example, when only text data is taken in, the editor inserts one line feed code between each data so that a plurality of text data can be distinguished. The individual text data is arranged at an address corresponding to the relative position within the predetermined area. Also, at that time, format each text data,
Make the displayed text easier to read. Especially H
In text data imported from a TML document, a line feed code is often inserted for each display line, or indentation is frequently used. If this is printed with a different number of in-line display characters, the text may be broken in the middle of the line. In addition, the beginning of the line may be irregular due to space characters, and the sentence may be very difficult to read. However, if all the line feed codes and space characters are uniformly deleted, the text becomes harder to read. Therefore, in the present embodiment,
According to a predetermined rule, only a line feed code and a space character satisfying a certain condition are deleted.

【0046】また、エディタは、データ配置機能の一部
として、例えば、画像データだけが取り込まれた場合に
は、画像データが所定領域内に収まるようにこれを縮小
或いは拡大してその所定領域内での相対位置に応じたア
ドレスに配置する。画像データを縮小する場合には、配
置する際にドットを間引くなどの処理を行ってもよい。
また、画像データを拡大する場合には、配置する際にド
ットを補間するなどの処理を行ってもよい。また、本実
施の形態の一例では、画像データが複数ある場合に、各
画像データの配置順を決めて優先度が高いものから大き
く表示されるように配置して、優先度が高い画像が見や
すくなるようにしている。なお、本実施の形態の別の例
では、複数の画像データ間に軽重をつけず、それぞれを
独立した分割領域内において個別に拡大或いは縮小して
配置するようにしている。
Further, as a part of the data arrangement function, for example, when only image data is taken in, the editor shrinks or enlarges the image data so that it fits in the predetermined area, Is located at the address corresponding to the relative position in. When reducing image data, a process such as thinning out dots may be performed at the time of arrangement.
When the image data is enlarged, a process such as interpolation of dots may be performed when the image data is arranged. Further, in the example of the present embodiment, when there are a plurality of image data, the arrangement order of the image data is determined and the image data is arranged so that the image data having the higher priority is displayed in a larger order, so that the image having the higher priority can be easily viewed. I am trying to become. In another example of the present embodiment, no weight is given between a plurality of image data, and each image data is individually enlarged or reduced in an independent divided area.

【0047】また、エディタは、データ配置機能の一部
として、例えば、テキストデータと画像データの両方が
取り込まれた場合には、所定領域を、テキストデータが
配置されるべきテキスト領域と画像データが配置される
べき画像領域とに所定の占有比率で分割し、テキスト領
域および画像領域それぞれにおいて上述したようにして
テキストデータおよび画像データをその相対位置に応じ
たアドレスに配置する。また、この占有比率を可変とし
ておくことで、画像データとテキストデータのサイズの
比率に応じた最適な占有比率を適宜選択してデータを見
やすく表示することができる。
As part of the data arrangement function, for example, when both the text data and the image data are taken in, the editor sets the predetermined area to the text area where the text data is to be arranged and the image data. The image data is divided into an image area to be arranged at a predetermined occupancy ratio, and the text data and the image data are arranged at addresses corresponding to the relative positions in the text area and the image area as described above. In addition, by making the occupancy ratio variable, it is possible to appropriately select an optimal occupancy ratio according to the size ratio between the image data and the text data, and to display the data in an easily viewable manner.

【0048】図7に、テキストデータと画像データの両
方が取り込まれた場合のディスプレイ132へのエディ
タの表示例を示す。エディタのデータ表示領域156内
にはタックシート13の幅と等しい幅(ディスプレイ1
32上では拡大或いは縮小されて表示されている)を有
する印刷領域157が表示されており、印刷領域157
は余白部分を除いて画像領域158とテキスト領域15
9とに分割されている。画像領域158内には所定のパ
ターンにしたがって配置された1または複数の画像デー
タが表示され、テキスト領域159内には所定のパター
ンにしたがって配置された1または複数のテキストデー
タが、ユーザが設定した書体、文字サイズ、文字間隔、
行間隔で表示される。なお、HTML文書などでテキス
トデータ中の文字の書体や色、文字サイズが指定されて
いる場合には、それをそのまま取り込んで表示してもよ
い。
FIG. 7 shows a display example of the editor on the display 132 when both text data and image data are captured. A width equal to the width of the tack sheet 13 (display 1) is displayed in the data display area 156 of the editor.
32, the print area 157 is displayed as being enlarged or reduced.
Represents the image area 158 and the text area 15 excluding the margin area.
9 are divided. One or more pieces of image data arranged according to a predetermined pattern are displayed in the image area 158, and one or more pieces of text data arranged according to the predetermined pattern are displayed in the text area 159. Typeface, character size, character spacing,
Displayed at line spacing. If the typeface, color, and character size of the characters in the text data are specified in an HTML document or the like, they may be taken as they are and displayed.

【0049】印刷領域157はタックシート13を所定
の拡大縮小率で拡大或いは縮小した状態でディスプレイ
132上に表示されており、ユーザはその拡大縮小率を
任意に変更することが可能である。また、画像領域15
8およびテキスト領域159についても、印刷領域15
7と同じ拡大縮小率で拡大或いは縮小されている。印刷
領域157のディスプレイ132上での範囲は、印刷領
域157の左上角部を原点としたアドレスとしてRAM
136の所定領域に印刷データの一部として記憶されて
いる。また、画像領域158およびテキスト領域159
内に配置された画像データおよびテキストデータの各ア
ドレスについても、RAM136の所定領域に印刷デー
タの一部として記憶されている。
The print area 157 is displayed on the display 132 in a state where the tack sheet 13 is enlarged or reduced at a predetermined enlargement / reduction ratio, and the user can arbitrarily change the enlargement / reduction ratio. The image area 15
8 and the text area 159, the print area 15
7 is scaled up or down at the same scale. The range of the print area 157 on the display 132 is determined by using an address with the upper left corner of the print area 157 as the origin.
136 is stored as a part of the print data in a predetermined area. Further, the image area 158 and the text area 159
Each address of the image data and text data arranged in the RAM is also stored as a part of the print data in a predetermined area of the RAM 136.

【0050】印刷領域157は、長さ100mm程度ご
とに自動的に改ページ処理される。つまり、改ページ処
理を行わないと、印刷領域157内に表示されるテキス
トデータのサイズが大きい場合などには、タックシート
13が切断されることなく非常に長い領域にわたって印
刷が行われ、これを手帳などに貼り付けるのに不便とな
る。そこで、長さ100mm程度ごとに自動的に改ペー
ジ処理を行って、次のページの印刷領域157にデータ
が配置されるようにするとともに、タックシート13に
100mm程度印刷が行われるごとにタックシート13
をカットするようにしている。なお、改ページ位置は、
ユーザが任意の場所を選択することも可能である。改ペ
ージ位置のアドレスについても、RAM136の所定領
域に印刷データの一部として記憶されている。
The print area 157 is automatically subjected to a page break every about 100 mm in length. That is, if the page break processing is not performed, when the size of the text data displayed in the print area 157 is large, the printing is performed over a very long area without cutting the tack sheet 13, and this is performed. It is inconvenient to paste it into a notebook. Therefore, the page break processing is automatically performed every about 100 mm in length, so that the data is arranged in the print area 157 of the next page, and the tack sheet is printed every about 100 mm on the tack sheet 13. 13
Is to be cut. The page break position is
It is also possible for the user to select an arbitrary place. The address of the page break position is also stored as a part of the print data in a predetermined area of the RAM 136.

【0051】また、エディタは、改ページ位置だけでは
なく、テキストおよび画像の印刷が終了した際にもタッ
クシート13をカットするような命令を出力する。これ
により、1ページに満たない小さなサイズのデータを印
刷する場合や、改ページされた次のページのわずかな領
域だけにデータが印刷される場合などでも印刷された領
域の下に余白が生じることがなくなるので、タックシー
ト13が無駄に使用されるのを防止することができる。
また、カッティングプリンタ11から排出されたタック
シート13をユーザが切断するという手間が不要にな
る。このタックシートの切断位置アドレスについても、
RAM136の所定領域に印刷データの一部として記憶
されている。
The editor outputs an instruction to cut the tack sheet 13 not only at the page break position but also at the end of printing of text and image. As a result, when printing data of a small size less than one page, or when data is printed only in a small area of the next page after a page break, a blank space is generated below the printed area. Is eliminated, so that the tack sheet 13 can be prevented from being wastefully used.
Further, the user does not need to cut the tack sheet 13 discharged from the cutting printer 11. Regarding the cutting position address of this tack sheet,
It is stored in a predetermined area of the RAM 136 as a part of the print data.

【0052】エディタのデータ表示領域156の上方に
は付属情報表示領域160が設けられており、データを
取り込んだ日付やデータソースのURLが表示されるよ
うになっている。また、コマンド表示領域161には、
「印刷」、「保存」、「文字」、「レイアウト」の各コ
マンドメニューが表示されており、ユーザはこれらから
所望のコマンドを選択して実行することができる。ユー
ザはデータ表示領域156に表示されたテキストおよび
画像のレイアウトを確認し、必要であればレイアウトを
変更したり文字列を入力或いは削除するなどの編集作業
を行うことができる。このとき、印刷領域157にはテ
キストおよび画像がWYSWYG形式で表示されるの
で、編集作業を簡易に行うことができる。そして、印刷
コマンドを選択することによりエディタで編集された印
刷データ(画像データ、テキストデータおよびこれらの
アドレスデータのほかに、上述した印刷範囲データ、改
ページ位置データ、シート切断位置データなど)がカッ
ティングプリンタ11のRAM118に送られて、カッ
ティングプリンタ11のCPU114からの命令により
タックシート13の印刷および切断処理が行われる。
An additional information display area 160 is provided above the data display area 156 of the editor, and displays the date when the data was imported and the URL of the data source. Also, in the command display area 161,
Command menus of “print”, “save”, “text”, and “layout” are displayed, and the user can select and execute a desired command from these menus. The user can check the layout of the text and the image displayed in the data display area 156, and can perform an editing operation such as changing the layout and inputting or deleting a character string if necessary. At this time, since the text and the image are displayed in the print area 157 in the WYSWYG format, the editing operation can be easily performed. By selecting a print command, print data edited by an editor (image data, text data and their address data, as well as the above-described print range data, page break position data, sheet cutting position data, etc.) is cut. The data is sent to the RAM 118 of the printer 11, and the printing and cutting of the tack sheet 13 is performed according to an instruction from the CPU 114 of the cutting printer 11.

【0053】カッティングプリンタ11は、その入出力
インターフェイス112がパーソナルコンピュータ11
0の入出力インターフェイス140と接続されている。
さらに、入出力インターフェイス112には、CPU1
14、ROM116、RAM118のほか、サーマルヘ
ッド44(図2および図3参照)を駆動するためのヘッ
ド駆動回路120、第1駆動モータ21および第2駆動
モータ35(ともに図3参照)をそれぞれ駆動するため
のモータ駆動回路122、124、および、ソレノイド
41(図4参照)を駆動するためのソレノイド駆動回路
126などが接続されている。
The input / output interface 112 of the cutting printer 11 has a personal computer 11
0 is connected to the input / output interface 140.
Further, the input / output interface 112 includes a CPU 1
14, a ROM 116, a RAM 118, a head drive circuit 120 for driving the thermal head 44 (see FIGS. 2 and 3), a first drive motor 21 and a second drive motor 35 (all shown in FIG. 3). And a solenoid drive circuit 126 for driving the solenoid 41 (see FIG. 4).

【0054】ROM116には、カッティングプリンタ
11の動作を制御するためのプログラムのほか必要なデ
ータが記憶されている。CPU114はROM116か
ら読み込んだプログラム、データのほかパーソナルコン
ピュータ110側から供給されたデータに基づいて所定
の演算を行い、また、ヘッド駆動回路120などに制御
信号を供給する。RAM118は、パーソナルコンピュ
ータ110側から供給されたデータやCPU114によ
る演算結果などを一時的に記憶する。
The ROM 116 stores a program for controlling the operation of the cutting printer 11 as well as necessary data. The CPU 114 performs a predetermined operation based on the program and data read from the ROM 116 as well as data supplied from the personal computer 110, and supplies a control signal to the head drive circuit 120 and the like. The RAM 118 temporarily stores data supplied from the personal computer 110 side, calculation results by the CPU 114, and the like.

【0055】本実施の形態では、パーソナルコンピュー
タ110内のCPU134が、所定領域分割手段、画像
配置手段、テキスト配置手段、比較手段、画像領域拡大
手段、回り込み判断手段、および、テキスト領域拡大手
段に対応している。
In the present embodiment, CPU 134 in personal computer 110 corresponds to predetermined area dividing means, image arranging means, text arranging means, comparing means, image area enlarging means, wraparound judging means, and text area enlarging means. are doing.

【0056】次に、上述のように構成された本実施の形
態のデータ処理装置であるコンピュータ110およびカ
ッティングプリンタ11からなるラベル製造装置100
を用いてラベルを製造する具体的な手順について、図8
〜図27をさらに参照して説明する。図8は、テキスト
データと画像データとの識別処理に関するフローチャー
トである。図9は、テキストデータの整形処理に関する
フローチャートである。図10は、テキストデータの改
ページおよびタックシート切断処理に関するフローチャ
ートである。図11〜図13は、本実施の形態によって
テキストデータがどのように整形されるかを説明するた
めの図である。図14は、画像データの配置処理に関す
るフローチャートである。図15は、図14に基づく画
像データの配置例を印刷イメージとして模式的に示す図
である。図16は、別の画像データの配置処理に関する
フローチャートである。図17は、図16に基づく画像
データの配置例を印刷イメージとして模式的に示す図で
ある。図18〜図20は、さらに別の画像データの配置
処理に関するフローチャートである。図21は、図18
に基づく画像データの配置例において所定領域の分割例
を印刷イメージとして模式的に示す図である。
Next, the label manufacturing apparatus 100 including the computer 110 and the cutting printer 11 as the data processing apparatus of the present embodiment configured as described above.
FIG. 8 shows a specific procedure for manufacturing a label using
27 will be further described with reference to FIG. FIG. 8 is a flowchart relating to a process of identifying text data and image data. FIG. 9 is a flowchart relating to text data shaping processing. FIG. 10 is a flowchart relating to a page break of text data and a tack sheet cutting process. 11 to 13 are diagrams for explaining how text data is shaped according to the present embodiment. FIG. 14 is a flowchart relating to image data arrangement processing. FIG. 15 is a diagram schematically illustrating an example of the arrangement of image data based on FIG. 14 as a print image. FIG. 16 is a flowchart relating to another image data arrangement process. FIG. 17 is a diagram schematically illustrating an example of the arrangement of image data based on FIG. 16 as a print image. FIGS. 18 to 20 are flowcharts of still another image data arrangement process. FIG.
FIG. 7 is a diagram schematically showing an example of division of a predetermined area as a print image in an example of image data arrangement based on.

【0057】図22は、テキストデータと画像データと
が混在した場合のこれら配置処理に関するフローチャー
トである。図23は、図22に基づくデータの配置例を
印刷イメージとして模式的に示す図である。図24は、
テキストデータと画像データとが混在した場合のこれら
の別の配置処理に関するフローチャートである。図25
は、図24に基づくデータの配置例を印刷イメージとし
て模式的に示す図である。図26は、テキストデータと
画像データとが混在した場合のこれらのさらに別の配置
処理に関するフローチャートである。図27は、図26
に基づくデータの配置例を印刷イメージとして模式的に
示す図である。
FIG. 22 is a flowchart showing the arrangement processing when text data and image data are mixed. FIG. 23 is a diagram schematically illustrating a data arrangement example based on FIG. 22 as a print image. FIG.
It is a flowchart regarding these other arrangement processing when text data and image data are mixed. FIG.
FIG. 25 is a diagram schematically showing a data arrangement example based on FIG. 24 as a print image. FIG. 26 is a flowchart relating to still another arrangement processing when text data and image data are mixed. FIG.
FIG. 4 is a diagram schematically illustrating an example of data arrangement based on a print image.

【0058】まず、テキストデータと画像データとの識
別処理について、図8に基づいて説明する。図8では、
まず、ステップS1において、パーソナルコンピュータ
110を操作して、ブラウザおよびワープロソフトの少
なくともいずれか1つを起動し、テキストデータおよび
/または画像データをディスプレイ132に表示させ、
ブラウザまたはワープロソフトからのコピー&ペースト
などの何らかの方法によって、ディスプレイ132に表
示されたデータから所望のデータを選択する。なお、ブ
ラウザなどを用いる代わりに、ファイル操作ツールでフ
ァイルをドラッグ&ドロップするなどの方法で処理すべ
きデータを選択してもよい。そして、このようにデータ
またはファイルが選択された状態で所定の起動操作を行
うことによってエディタが起動する。
First, the process of identifying text data and image data will be described with reference to FIG. In FIG.
First, in step S1, the personal computer 110 is operated to activate at least one of a browser and word processing software to display text data and / or image data on the display 132,
The desired data is selected from the data displayed on the display 132 by some method such as copy and paste from a browser or word processing software. Instead of using a browser or the like, data to be processed may be selected by a method such as dragging and dropping a file with a file operation tool. The editor is activated by performing a predetermined activation operation with the data or file selected as described above.

【0059】次に、ステップS2において、選択された
データにフォーマット識別子があるかどうかが判断され
る。フォーマット識別子は、データの種類(html、txt
、gif 、bmp など)を示すものであって、データの先
頭部分に書き込まれたテキストデータである。フォーマ
ット識別子は、ブラウザまたはワープロソフトからのコ
ピー&ペーストによってデータが選択された場合には、
データが表示されていたブラウザなどのアプリケーショ
ンによって書き込まれる。もしフォーマット識別子があ
れば(S2:YES)ステップS5に進み、フォーマッ
ト識別子がなければ(S2:NO)ステップS3に進
む。フォーマット識別子がない場合とは、例えば、、フ
ァイル操作ツールでドラッグ&ドロップによりファイル
が選択されてファイルの内容がエディタ側で直ぐには参
照できない場合である。
Next, in step S2, it is determined whether or not the selected data has a format identifier. The format identifier is the type of data (html, txt
, Gif, bmp, etc.), and is text data written at the beginning of the data. The format identifier is used when data is selected by copy and paste from a browser or word processing software.
The data is written by the application such as the browser where the data was displayed. If there is a format identifier (S2: YES), the process proceeds to step S5, and if there is no format identifier (S2: NO), the process proceeds to step S3. The case where there is no format identifier is, for example, a case where a file is selected by drag and drop with a file operation tool and the contents of the file cannot be immediately referred to on the editor side.

【0060】ステップS3においては、選択されたデー
タがファイルであるかどうかが判断される。もしファイ
ルであれば(S3:YES)ステップS4に進み、ファ
イルでなければ(S3:NO)ステップS11に進む。
ファイルでない場合とは、選択されたものが例えば単な
るURLや単なるフォルダ名である場合である。ステッ
プS4においては、ファイルの拡張子(ファイル名にお
いて、.txt 、 .html、 .gif 、 .bmp などのピリオド
の後に置かれておりファイルの種類を示すもの)に基づ
いてそのデータのフォーマットを判定することとされ
る。
In step S3, it is determined whether the selected data is a file. If it is a file (S3: YES), the process proceeds to step S4, and if it is not a file (S3: NO), the process proceeds to step S11.
The case where the file is not a file is a case where the selected one is, for example, a simple URL or a simple folder name. In step S4, the format of the data is determined based on the extension of the file (in the file name, placed after a period such as .txt, .html, .gif, or .bmp to indicate the file type). It is to be done.

【0061】そして、ステップS5においては、データ
のフォーマットがHTML或いはRTFフォーマットで
あるかどうかが判断される。具体的には、データの先頭
部分にあるフォーマット識別子或いはファイル拡張子が
CPU134で判別される。もしHTMLまたはRTF
(rich text format)フォーマットであればステップS
6に進み(S5:YES)、HTMLまたはRTFフォ
ーマットでなければステップS7に進む。ステップS6
においては、HTMLまたはRTF文書中の図形タグ以
下のデータが画像データとして、それ以外のデータがテ
キストデータとして識別されて取り込まれる。これらデ
ータの種類(画像データであるかテキストデータである
か)を示すデータは、RAM136の所定領域に個別デ
ータ識別データとして、個々の画像データまたはテキス
トデータが記憶されたアドレスと関連づけられて記憶さ
れる。
In step S5, it is determined whether the data format is HTML or RTF. Specifically, the CPU 134 determines the format identifier or file extension at the head of the data. If HTML or RTF
(Rich text format) Step S if the format
6 (S5: YES), and if not HTML or RTF format, the process proceeds to step S7. Step S6
In, data below a graphic tag in an HTML or RTF document is identified and captured as image data, and other data is identified as text data. Data indicating the type of the data (whether it is image data or text data) is stored in a predetermined area of the RAM 136 as individual data identification data in association with the address where the individual image data or text data is stored. You.

【0062】ステップS7においては、ステップS5と
同様の手順により、データのフォーマットがBMP、G
IF、JPEGなどの画像フォーマットであるかどうか
が判断される。もし画像フォーマットであればステップ
S8に進み(S7:YES)、画像フォーマットでなけ
ればステップS9に進む。ステップS8においては、そ
のデータが画像データであると識別されて取り込まれ
る。そして、ステップS6の場合と同様に、当該データ
が画像データであることを示すデータがRAM136の
所定領域に個別データ識別データとして、個々の画像デ
ータが記憶されたアドレスと関連づけられて記憶され
る。
In step S7, the data format is changed to BMP or G by the same procedure as in step S5.
It is determined whether the image format is an image format such as IF or JPEG. If it is an image format, the process proceeds to step S8 (S7: YES), and if it is not an image format, the process proceeds to step S9. In step S8, the data is identified and captured as image data. Then, similarly to the case of step S6, data indicating that the data is image data is stored in a predetermined area of the RAM 136 as individual data identification data in association with the address where the individual image data is stored.

【0063】ステップS9においては、ステップS5と
同様の手順により、データのフォーマットがテキストフ
ォーマットであるかどうかが判断される。もしテキスト
フォーマットであればステップS10に進み(S9:Y
ES)、テキストフォーマットでなければステップS1
1に進む。ステップS10においては、そのデータがテ
キストデータであると識別されて取り込まれる。そし
て、ステップS6の場合と同様に、当該データがテキス
トデータであることを示すデータがRAM136の所定
領域に個別データ識別データとして、個々のテキストデ
ータが記憶されたアドレスと関連づけられて記憶され
る。
In step S9, it is determined whether or not the data format is a text format by the same procedure as in step S5. If it is a text format, the process proceeds to step S10 (S9: Y
ES), if not in text format, step S1
Proceed to 1. In step S10, the data is identified and taken in as text data. Then, as in the case of step S6, data indicating that the data is text data is stored in a predetermined area of the RAM 136 as individual data identification data in association with the address where the individual text data is stored.

【0064】次に、ステップS11においては、HTM
L或いはRTFフォーマット、画像フォーマットおよび
テキストフォーマットのいずれのフォーマットでもない
データや、フォーマット識別子がなくファイルでもない
データが無効フォーマットと判断され、選択されたデー
タの取り込みが中止される。その際、無効フォーマット
である旨或いはデータの取り込みを中止した旨をディス
プレイ132に表示するなどの報知動作を行う。
Next, in step S11, the HTM
Data that is not in any of the L or RTF format, image format, and text format, or data that does not have a format identifier and is not a file is determined to be an invalid format, and the capture of the selected data is stopped. At this time, a notification operation such as displaying on the display 132 that the format is invalid or that the data capture has been stopped is performed.

【0065】上述したようなステップをエディタに取り
込まれた個々のデータについて繰り返して行うことによ
り、個々のデータがテキストデータ或いは画像データの
いずれであるかを識別することが可能である。なお、ワ
ープロソフトによって形成されるデータ(これを例えば
「ABCフォーマット」と称することにする)をもエデ
ィタで扱う場合には、ステップS5において、そのデー
タのフォーマットがABC、HTML或いはRTFフォ
ーマットであるかを判断すればよい。
By repeating the above steps for each piece of data taken into the editor, it is possible to identify whether each piece of data is text data or image data. When data formed by word processing software (for example, this is referred to as “ABC format”) is also handled by the editor, in step S5, whether the data format is ABC, HTML, or RTF format Should be determined.

【0066】次に、RAM136に記憶された個別デー
タ識別データをCPU134に読み込むことによって、
エディタに取り込まれたデータが、テキストデータの
み、画像データのみ、および、テキストデータと画像デ
ータとの両方のいずれであるかを判断することが可能で
ある。そして、その判断の結果は、RAM136の所定
領域に組合せデータ判定データとして記憶される。な
お、図8のステップS5でHTML或いはRTFフォー
マットであると判断された場合であって、その文書中に
図形タグが含まれている場合にはテキストデータと画像
データとの両方が存在すると判定してもよい。
Next, by reading the individual data identification data stored in the RAM 136 into the CPU 134,
It is possible to determine whether the data taken into the editor is only text data, only image data, or both text data and image data. The result of the determination is stored in a predetermined area of the RAM 136 as combination data determination data. If it is determined in step S5 in FIG. 8 that the document is in the HTML or RTF format and the document contains a graphic tag, it is determined that both text data and image data are present. You may.

【0067】次に、上述した処理によってエディタに取
り込まれたデータがテキストデータのみであると判断さ
れた場合の、エディタによるテキストデータの処理につ
いて説明する。組合せデータ判定データがエディタに取
り込まれたデータがテキストデータのみであることを示
している場合、図7に示す印刷領域157の余白部分を
除く領域に対応するアドレス領域にテキストが配置され
ることになる。まず1番目のテキストデータに対して以
下に説明する整形処理が施され、それが印刷領域157
の上位アドレスに配置されてそのアドレスがRAM13
6の所定領域に書き込まれ、印刷領域157に1番目の
テキストデータが表示される。そして、改行コードが挿
入されて1行空けた後に、2番目のテキストデータに整
形処理が施され、1番目のテキストデータの続きのアド
レスに配置されてそのアドレスがRAM136の所定領
域に書き込まれ、印刷領域157に2番目のテキストデ
ータが表示される。以下、最後のテキストデータまで同
様の処理が繰り返される。この間、印刷領域157の長
さが所定長さを超えるごとにタックシート13が切断さ
れ、最後のテキストデータの印刷が終了した際にもその
直後でタックシート13が切断されるように、改ページ
位置データ、シート切断位置データが書き込まれるよう
な制御が行われる。以下、図9〜図13を参照して詳述
する。
Next, processing of text data by the editor when it is determined that the data taken into the editor by the above processing is only text data will be described. If the combination data determination data indicates that the data taken into the editor is only text data, the text is arranged in the address area corresponding to the print area 157 shown in FIG. Become. First, the first text data is subjected to a shaping process which will be described below.
Of the RAM 13
6, and the first text data is displayed in the print area 157. After the line feed code is inserted and one line is left, a shaping process is performed on the second text data, the second text data is arranged at an address subsequent to the first text data, and the address is written in a predetermined area of the RAM 136. The second text data is displayed in the print area 157. Hereinafter, the same processing is repeated until the last text data. During this time, the tack sheet 13 is cut every time the length of the print area 157 exceeds a predetermined length, and even when the printing of the last text data is completed, the tack sheet 13 is cut immediately after that. Control is performed such that the position data and the sheet cutting position data are written. The details will be described below with reference to FIGS.

【0068】まず、テキストデータの整形処理につい
て、図9を参照して説明する。まず、ステップT1にお
いて、RAM136の所定領域に記憶されるスペースカ
ウンタがゼロに初期化され、続いて、ステップT2にお
いて、RAM136の所定領域に記憶される空白行フラ
グがオンにされ、さらに、ステップT3において、RA
M136の所定領域に記憶される文字ポインタがテキス
トデータの先頭の文字コードに移される。ここで、スペ
ースカウンタは、テキストデータ中にいくつのスペース
文字(全角スペース、半角スペース、タブコードなど)
が連続して存在しているかを表すカウンタである。ま
た、空白行フラグは、1つの論理行にスペース文字以外
の文字が存在するかどうかを表すフラグである。
First, the text data shaping process will be described with reference to FIG. First, in step T1, a space counter stored in a predetermined area of the RAM 136 is initialized to zero. Subsequently, in step T2, a blank line flag stored in a predetermined area of the RAM 136 is turned on. In, RA
The character pointer stored in the predetermined area of M136 is moved to the first character code of the text data. Here, the space counter indicates how many space characters (full-width space, half-width space, tab code, etc.)
Is a counter indicating whether or not exists continuously. The blank line flag is a flag indicating whether a character other than the space character exists in one logical line.

【0069】次に、ステップT4において、1つのテキ
ストデータの整形処理が終了したか、つまり文字ポイン
タ位置がテキストデータの最終文字位置を超えているか
どうかが判断される。もし超えていれば(T4:YE
S)当該テキストデータの処理を終了し、超えていなけ
れば(T4:NO)ステップT5に進む。
Next, in step T4, it is determined whether the shaping processing of one piece of text data has been completed, that is, whether the position of the character pointer is beyond the last character position of the text data. If it exceeds (T4: YE
S) The processing of the text data is terminated, and if not exceeded (T4: NO), the process proceeds to step T5.

【0070】ステップT5においては、文字ポインタが
存在する文字コードが改行コードであるかが判断され
る。もし改行コードであれば(T5:YES)ステップ
T6に進み、改行コードでなければ(T5:NO)ステ
ップT11に進む。
In step T5, it is determined whether the character code where the character pointer is located is a line feed code. If it is a line feed code (T5: YES), the process proceeds to step T6, and if it is not a line feed code (T5: NO), the process proceeds to step T11.

【0071】ステップT6においては、当該改行コード
の直前にある文字が句読点などの区切り記号(例えば、
「。」、「、」、「,」、「.」、「:」、「;」な
ど)であるか、或いは、当該改行コードの直後(1〜3
文字程度のスペース文字を挟んだ直後であってもよい)
にある文字が箇条書きの各行の先頭に通常使用される箇
条書き記号(例えば、「・」、「1.」、「(1) 」、
「」、「A.」など)であるかが判断される。もしこ
の条件に当てはまる場合には(T6:YES)ステップ
T8に進み、もしこの条件に当てはまらない場合には
(T6:NO)ステップT7に進み、当該改行コードは
削除される。
In step T6, the character immediately before the line feed code is a delimiter such as a punctuation mark (for example,
“.”, “,”, “,”, “.”, “:”, “;”, Etc., or immediately after the line feed code (1 to 3).
(It may be immediately after a space character of about characters)
Is the first bullet point on each line of a bulleted list, such as "•", "1.", "(1)",
"", "A.", etc.). If the condition is satisfied (T6: YES), the process proceeds to step T8. If the condition is not satisfied (T6: NO), the process proceeds to step T7, and the line feed code is deleted.

【0072】ステップT6で直前に区切り記号のある改
行コードを削除しないようにしたのは、これを削除する
と、段落の区切りが分かりづらくなり、文章が途切れる
ことなく一続きに非常に長くつながってしまい、読みづ
らくなるからである。また、直後に箇条書き記号がある
改行コードを削除しないようにしたのは、箇条書きされ
た文章を改行することなく同じ行内に表示するのは非常
に読みづらくなるからである。
The reason why the line feed code having a delimiter immediately before it is not deleted in step T6 is that if it is deleted, the break of the paragraph becomes difficult to understand, and the sentence becomes very long without a break. Because it becomes difficult to read. Also, the reason why the line feed code having a bullet symbol immediately after it is not deleted is that it is extremely difficult to display a bulleted sentence on the same line without a line break.

【0073】次に、ステップT8において、空白行フラ
グがオンであるかどうかが判断される。もし空白行フラ
グがオンであれば(T8:YES)ステップT9に進
み、空白行フラグがオフであれば(T8:NO)ステッ
プT10に進む。ステップT8で空白行フラグがオンで
あるときには、その論理行にスペース文字以外の文字が
存在していない(言い換えると、当該論理行の改行コー
ドの前に存在するのはすべてスペース文字である)か
ら、ステップT9において、その論理行のすべてのスペ
ース文字(直前の改行コードの直後または文頭から現在
位置までのスペース文字)が削除される。その後、ステ
ップT10に進んで空白行フラグがオンにされ、ステッ
プT18に進む。
Next, in step T8, it is determined whether the blank line flag is on. If the blank line flag is on (T8: YES), the process proceeds to step T9, and if the blank line flag is off (T8: NO), the process proceeds to step T10. When the blank line flag is on in step T8, there is no character other than the space character in the logical line (in other words, all the characters before the line feed code of the logical line are space characters). In step T9, all space characters on the logical line (space characters immediately after the previous line feed code or from the beginning of the sentence to the current position) are deleted. Thereafter, the process proceeds to step T10, the blank line flag is turned on, and the process proceeds to step T18.

【0074】また、ステップT11においては、文字ポ
インタが存在する文字コードがスペース文字であるかが
判断される。もしスペース文字であれば(T11:YE
S)ステップT12に進み、スペース文字でなければ
(T11:NO)ステップT13に進む。ステップT1
2においては、スペースカウンタが1だけ加算され、そ
の後ステップT19に進む。
In step T11, it is determined whether the character code where the character pointer is located is a space character. If it is a space character (T11: YE
S) The process proceeds to step T12, and if not a space character (T11: NO), the process proceeds to step T13. Step T1
In 2, the space counter is incremented by 1, and the process proceeds to step T19.

【0075】ステップT13においては、スペースカウ
ンタのカウント値が2以上となっているかどうかが判断
される。ここで、カウント値2以上としたのは、1つの
スペース文字をすべて削除してしまうと、欧文など単語
間に半角スペースが挿入されている文書からスペースを
除くと単語の区別がつかなくなりテキストの判読ができ
なくなるおそれがあるからである。そして、スペースカ
ウンタのカウント値が2以上であれば(T13:YE
S)ステップT14に進み、スペースカウンタのカウン
ト値が2未満であれば(T13:NO)ステップT15
に進む。
In step T13, it is determined whether or not the count value of the space counter is 2 or more. Here, the count value of 2 or more means that if all one space character is deleted, the word becomes indistinguishable if a space is removed from a document in which half-width spaces are inserted between words, such as European languages. This is because there is a possibility that it cannot be read. If the count value of the space counter is 2 or more (T13: YE
S) Proceed to step T14, and if the count value of the space counter is less than 2 (T13: NO), step T15
Proceed to.

【0076】ステップT14においては、スペースカウ
ンタのカウント値が2以上であるので、元のテキストデ
ータ中のインデントなどによって必要以上に多くのスペ
ース文字が挿入されていると判断してそのスペース文字
を削除し、ステップT17に進む。
In step T14, since the count value of the space counter is 2 or more, it is determined that an unnecessarily large number of space characters has been inserted due to indentation in the original text data and the space character is deleted. Then, the process proceeds to step T17.

【0077】また、ステップT15においては、空白行
フラグがオンであるかどうかを判断し、もし空白行フラ
グがオンであれば(T15:YES)ステップT16に
進み、空白行フラグがオフであれば(T15:NO)ス
テップT10に進む。ステップT15で空白行フラグが
オンである場合とは、後のステップT17で空白行フラ
グがオフにされることから、文字ポインタが行頭にある
ときか或いは文字ポインタが行頭から2文字目にあって
1文字目がスペース文字であった場合である。そこで、
ステップT16において、文字ポインタの直前にあるス
ペース文字を削除し、欧文の場合など単語間などに故意
に挿入されたスペース文字が削除されないようにしつ
つ、行頭にあるスペース文字を削除している。これによ
り、行頭がすべての行において揃うことになるので、行
頭に統一感が生み出され、テキストデータが見やすくな
る。
In step T15, it is determined whether the blank line flag is on. If the blank line flag is on (T15: YES), the process proceeds to step T16, and if the blank line flag is off, (T15: NO) The process proceeds to step T10. The case where the blank line flag is turned on in step T15 means that the blank line flag is turned off in the subsequent step T17, so that the character pointer is located at the beginning of the line or the character pointer is located at the second character from the beginning of the line. This is the case where the first character is a space character. Therefore,
In step T16, the space character at the beginning of the line is deleted while deleting the space character immediately before the character pointer so as not to delete the space character intentionally inserted between words or the like in the case of a Western language. As a result, the heads of the lines are aligned in all the lines, so that a sense of unity is created at the heads of the lines, and the text data is easy to see.

【0078】次に、ステップT17において空白行フラ
グがオフにされた後、ステップT18においてスペース
カウンタがゼロに初期化される。さらに、ステップT1
9において、文字ポインタが次の文字コードに移され
て、ステップT4に戻って同様のステップが繰り返され
る。
Next, after the blank line flag is turned off in step T17, the space counter is initialized to zero in step T18. Further, step T1
At 9, the character pointer is moved to the next character code, the process returns to step T4, and the same steps are repeated.

【0079】本実施の形態によってテキストデータがど
のように整形されるかの一例を図11〜図13に基づい
て説明する。なお、これらの図において、下向きの矢印
(↓)は改行コードを表すものであり、実際に印刷され
るものではない。
An example of how text data is shaped according to the present embodiment will be described with reference to FIGS. In these figures, a downward arrow (↓) indicates a line feed code and is not actually printed.

【0080】図11は、ブラウザに示された元のテキス
トデータであり、各行末には改行コードが付加されてい
る。また、3〜6行目はインデント処理されており、7
行目には改行コードのみが存在している。このテキスト
データを単に図11よりも少ない行内文字数で表したも
のが図12である。図12に示されたテキストデータ
は、行の途中で改行されたり、不要な改行がなされてい
たり、インデントされた行にスペースが残ってしまって
非常に見づらい。
FIG. 11 shows the original text data shown on the browser, and a line feed code is added to the end of each line. Lines 3 to 6 are indented.
Only the line feed code exists on the line. FIG. 12 shows this text data simply with a smaller number of characters in the line than FIG. The text data shown in FIG. 12 is very hard to see because line breaks occur in the middle of the line, unnecessary line breaks are made, or indented lines leave spaces.

【0081】本実施の形態にしたがって処理したテキス
トデータを示したのが図13である。図13から明らか
なように、1行目先頭のスペースは、ステップT4〜ス
テップT11、ステップT12を経てステップT4に戻
った後、ステップT13、ステップT15、ステップT
16を経て削除される。また、インデント処理された3
〜6行目の各行先頭のスペースは、ステップT4〜ステ
ップT11、ステップT12、ステップT19を経てス
テップT4に戻る処理をスペースの数だけ繰り返した
後、ステップT11、ステップT13、ステップT14
を経て削除される。また、3〜5行目の行末の改行コー
ドと7行目の改行コードは、ステップT4〜ステップT
7を経て削除される。一方、2行目、6行目、8行目〜
11行目の行末の改行コードは、ステップT4〜ステッ
プT6を経てステップT7が実行されないので削除され
ずに残る。このように、本実施の形態によると、行内文
字数が図11よりも少なくなったとしても、所定の場合
以外は行の途中で改行されることがなく、インデントさ
れていた行にスペースが残ることもない。また、「・」
記号が行頭にあって箇条書きされた行は、改行コードが
削除されることなくそのまま箇条書きの形式で残され、
句点「。」の直後にある改行コードは削除されないの
で、各行の区別が分かりやすい。また、行頭にあった1
文字分のスペースも削除されるので、すべての行の行頭
に統一感が生み出されている。また、図11において7
行目にあった改行コードも削除されて、テキストがコン
パクトになっている。つまり、本実施の形態によると、
煩雑な作業を必要とせずに、テキストデータを、その行
内表示文字数が変わった場合であっても見やすくコンパ
クトに表示することができる。そのため、タックシート
13のような幅の狭い領域に印刷されたテキストが非常
に読みやすくなる。
FIG. 13 shows text data processed according to the present embodiment. As is clear from FIG. 13, the space at the head of the first line is returned to step T4 after step T4 to step T11 and step T12, and then to step T13, step T15, and step T15.
Deleted via 16. Indented 3
The space at the head of each of the sixth to sixth lines is obtained by repeating the process of returning to step T4 through steps T4 to T11, step T12, and step T19 by the number of spaces, and then repeating steps T11, T13, and T14.
Will be deleted. Also, the line feed code at the end of the third to fifth lines and the line feed code at the seventh line are obtained in steps T4 to T
7 and is deleted. On the other hand, the second, sixth, and eighth lines
The line feed code at the end of the 11th line remains without being deleted because step T7 is not executed through steps T4 to T6. As described above, according to the present embodiment, even if the number of characters in a line is smaller than that in FIG. 11, a line is not broken in the middle of a line except in a predetermined case, and a space remains in an indented line. Nor. Also,"·"
Lines with bullets at the beginning of the line are left in bulleted form without removing line breaks,
Since the line feed code immediately after the period "." Is not deleted, it is easy to distinguish each line. Also, the one at the beginning of the line
Character spaces are also removed, creating a sense of unity at the beginning of every line. Also, in FIG.
The line feed code on the line has also been removed, making the text more compact. That is, according to the present embodiment,
The text data can be displayed in a compact and easy-to-view manner without complicated work, even if the number of characters displayed in the line changes. Therefore, text printed on a narrow area such as the tack sheet 13 becomes very easy to read.

【0082】次に、テキストデータのみが配置される場
合のタックシート13の改ページおよびシート切断処理
について図10を参照して説明する。なお、ここでは、
1つのテキストデータのサイズが大きく1つのテキスト
データが複数のページにまたがって印刷される場合につ
いて説明するが、複数のテキストデータが印刷される場
合も各データの間に改行コードのみの行が1つ設けられ
る点以外は同様に処理される。
Next, a page break and sheet cutting process of the tack sheet 13 when only text data is arranged will be described with reference to FIG. Here,
A case where the size of one text data is large and one text data is printed over a plurality of pages will be described. Even when a plurality of text data is printed, one line including only a line feed code is provided between each data. The same processing is performed except that one is provided.

【0083】まず、ステップU1において、オブジェク
ト先頭のY座標(1ページ目のタックシート13の長さ
方向についての印刷開始位置の座標)が変数Yに格納さ
れ、続いて、ステップU2において、RAM136の所
定領域に記憶された行ポインタが先頭行に移される。
First, at step U1, the Y coordinate of the head of the object (the coordinate of the printing start position in the length direction of the first tack sheet 13) is stored in the variable Y. Then, at step U2, the RAM 136 The row pointer stored in the predetermined area is moved to the first row.

【0084】次に、ステップU3において、未処理の行
が存在するか、つまり行ポインタ位置がテキストデータ
の最終行位置を超えているかどうかが判断される。もし
超えていれば(U3:NO)ステップU5に進み、現在
位置でタックシート13が切断されるようにその切断位
置がRAM136の所定領域に書き込まれる。もし超え
ていなければ(U3:YES)ステップU4に進む。
Next, in step U3, it is determined whether or not there is an unprocessed line, that is, whether or not the line pointer position is beyond the last line position of the text data. If it exceeds (U3: NO), the process proceeds to step U5, and the cut position is written in a predetermined area of the RAM 136 so that the tack sheet 13 is cut at the current position. If not (U3: YES), the flow proceeds to step U4.

【0085】ステップU4においては、変数Yに現在行
の行幅を足した値が、そのページ末のY座標(タックシ
ート13の各ページの長さ方向の印刷終了位置)を超え
ているかどうかが判断される。もし、超えていなければ
(U4:NO)ステップU9に進む。一方、もし超えて
いれば(U4:YES)ステップU6に進み、現在位置
でタックシート13が切断されるようにその切断位置が
RAM136の所定領域に書き込まれる。そして、ステ
ップU7において、次のページの先頭(印刷開始位置)
のY座標が変数Yに格納された後、ステップU8におい
て、タックシート13が搬送されて印刷開始位置の頭出
しがされるようなデータがRAM136の所定領域に書
き込まれてからステップU9に進む。
In step U4, it is determined whether the value obtained by adding the line width of the current line to the variable Y exceeds the Y coordinate at the end of the page (the printing end position in the length direction of each page of the tack sheet 13). Is determined. If not (U4: NO), the process proceeds to step U9. On the other hand, if it exceeds (U4: YES), the process proceeds to step U6, and the cut position is written in a predetermined area of the RAM 136 so that the tack sheet 13 is cut at the current position. Then, in step U7, the head of the next page (print start position)
After the Y coordinate is stored in the variable Y, in step U8, the data for conveying the tack sheet 13 and locating the print start position is written in a predetermined area of the RAM 136, and then the process proceeds to step U9.

【0086】ステップU9においては、行ポインタが存
在する現在行のテキストデータがタックシート13に印
刷されるように、その行のテキストデータがRAM13
6の所定領域に書き込まれる。そして、ステップU10
に進んで、次の行の印刷のために、タックシート13が
現在行の行幅分だけ前方に搬送されるようなデータがR
AM136の所定領域に書き込まれる。
At step U 9, the text data of the current line where the line pointer is located is stored in the RAM 13 so that the text data of that line is printed on the tack sheet 13.
6 is written to a predetermined area. Then, step U10
To print the next line, the data such that the tack sheet 13 is conveyed forward by the line width of the current line is printed.
The data is written in a predetermined area of the AM 136.

【0087】次に、ステップU11において、変数Yに
現在行の行幅を足した値が新たな変数Yとして格納さ
れ、ステップU12において、行ポインタが次の行に移
された後、ステップU3に戻る。
Next, in step U11, a value obtained by adding the line width of the current line to the variable Y is stored as a new variable Y. In step U12, after the line pointer is moved to the next line, the process proceeds to step U3. Return.

【0088】このような処理により、テキストデータが
複数ページにまたがる場合であっても、タックシート1
3を所定の長さごとに切断して手帳などに貼り付けやす
いラベルを得ることができる。また、テキストデータが
1ページに満たない長さで終了した場合には、その場所
でタックシート13を切断するようにしたので、切断さ
れたタックシート13に余白部分が生じることがなくコ
ンパクトな印刷済みラベルを低コストで得ることができ
る。また、カッティングプリンタ11から排出されたラ
ベルの余白部分を切断するという手間が不要になる。
By such processing, even if the text data extends over a plurality of pages, the tack sheet 1
3 can be cut at predetermined lengths to obtain a label that can be easily attached to a notebook or the like. Further, when the text data is completed with a length shorter than one page, the tack sheet 13 is cut at the place, so that the cut tack sheet 13 has no blank portion and compact printing. Labels can be obtained at low cost. Further, it is not necessary to cut off a blank portion of the label discharged from the cutting printer 11.

【0089】次に、図8に関連して説明した処理によっ
てエディタに取り込まれたデータが画像データのみであ
ると判断された場合の、エディタによる画像データの処
理について説明する。組合せデータ判定データがエディ
タに取り込まれたデータが画像データのみであることを
示している場合、図7に示す印刷領域157の余白部分
を除く領域に対応するアドレス領域に画像データが配置
されることになる。
Next, the processing of the image data by the editor when it is determined that the data taken into the editor by the processing described with reference to FIG. 8 is only the image data will be described. When the combination data determination data indicates that the data captured by the editor is only image data, the image data is arranged in the address area corresponding to the print area 157 shown in FIG. become.

【0090】画像データだけが取り込まれた場合の処理
の第1の例では、選択された複数の画像データが優先順
位を付けられて、優先順位の高いものから順にタックシ
ート13の1ページ内に対応したアドレス領域に配置さ
れていく場合について説明する。以下、図14〜図15
を参照して詳述する。
In the first example of the processing in the case where only the image data is taken in, a plurality of selected image data are assigned priorities, and are arranged in one page of the tack sheet 13 in descending order of priority. A description will be given of a case where the information is arranged in the corresponding address area. Hereinafter, FIGS. 14 to 15
It will be described in detail with reference to FIG.

【0091】本例では、図15に示す、タックシート1
3への1ページ分の矩形印刷領域に対応したアドレス領
域に、選択されたn個の矩形画像データを配置するもの
とする。これらn個の画像データの配置の優先順位は、
本例ではそのサイズ(バイト数)の大きい順に決められ
る。つまり、CPU134が選択された画像データの大
きさをそれぞれ比較することによって優先順位を決定
し、その順番がRAM136の所定領域に書き込まれ、
RAM136に書き込まれた順番にしたがって最もサイ
ズの大きい画像データから配置されていく。これによっ
て、サイズの大きい画像データを大きく表示および印刷
することが可能となる。なお、画像データの配置の優先
順位は、画像データが選択された順であってもよいし、
ユーザが任意に決めてもよく、いずれの方法によっても
画像データの配置の優先順位はCPU134によって決
定され、RAM136の所定領域に書き込まれる。
In this example, the tack sheet 1 shown in FIG.
It is assumed that the selected n pieces of rectangular image data are arranged in the address area corresponding to the rectangular print area for one page to No. 3. The priority of the arrangement of these n image data is
In this example, the sizes (number of bytes) are determined in descending order. That is, the CPU 134 determines the priority order by comparing the sizes of the selected image data, and the order is written into a predetermined area of the RAM 136,
The image data having the largest size is arranged according to the order written in the RAM 136. This makes it possible to display and print large-sized image data. Note that the priority order of the arrangement of the image data may be the order in which the image data is selected,
The user may arbitrarily determine the priority of the arrangement of the image data by any method.

【0092】そして、RAM136に書き込まれた順番
にしたがって、印刷領域の画像未配置領域に対応するア
ドレス領域内に元の画像データを相似拡大または相似縮
小した相似画像データが配置される。このとき、各画像
データは画像未配置領域において最大のサイズとなるよ
うに相似拡大または相似縮小される。そして、その配置
方向はすべての画像データについて共通にされているの
で、観察方向を見る画像によって変える必要なく1枚の
タックシートに印刷された複数の画像を一目で把握でき
るようになる。
Then, similar image data obtained by similar enlargement or similar reduction of the original image data is arranged in the address area corresponding to the image non-arranged area of the print area in accordance with the order of writing in the RAM 136. At this time, each image data is similarly enlarged or reduced to have the maximum size in the image non-arranged area. Since the arrangement direction is common to all image data, a plurality of images printed on one tack sheet can be grasped at a glance without changing the observation direction depending on the image to be viewed.

【0093】本例では、図15に示すように、タックシ
ートの印刷領域の幅に対応した長さ(ドット数)をX、
タックシート13の1ページ分の長さに対応した長さを
Yとし、この(X,Y)の印刷領域に対応するアドレス
領域内にn個の画像データがそれぞれ相似拡大または相
似縮小されて配置される。図の上側が画像の上側に対応
している。ここで、n番目の画像データのブラウザに表
示されていた元の大きさを(xn,yn)とし、このデ
ータが相似拡大または相似縮小された相似画像データの
エディタ画面での大きさを(xn’,yn’)とする。
また、1または複数の相似画像データが配置されている
ときに、印刷領域の左上頂点を基準点として、幅Xのす
べてが相似画像データで占められている位置までのY方
向の距離をBとし、幅Yのすべてが相似画像データで占
められている位置までのX方向の距離をAとしている。
In this example, as shown in FIG. 15, the length (the number of dots) corresponding to the width of the printing area of the tack sheet is represented by X,
The length corresponding to the length of one page of the tack sheet 13 is defined as Y, and n pieces of image data are arranged in the address area corresponding to the (X, Y) print area by being similarly enlarged or reduced. Is done. The upper side of the figure corresponds to the upper side of the image. Here, the original size of the n-th image data displayed on the browser is (xn, yn), and the size of the similar image data in which the data is similarly enlarged or reduced on the editor screen is (xn, yn). ', Yn').
Further, when one or a plurality of similar image data are arranged, the distance in the Y direction from the upper left vertex of the print area to a position where the entire width X is occupied by the similar image data is represented by B. , A is the distance in the X direction to a position where all of the width Y is occupied by the similar image data.

【0094】まず、図14に示すステップE1におい
て、パラメータnが1とされるとともに、上述した変数
AおよびBがゼロとされる。そして、ステップE2にお
いて、X−Aの値が、n番目の画像データの幅xnの拡
大或いは縮小後の幅xn’として格納される。
First, in step E1 shown in FIG. 14, the parameter n is set to 1, and the variables A and B are set to zero. Then, in step E2, the value of XA is stored as the width xn 'of the width xn of the n-th image data after being enlarged or reduced.

【0095】次に、ステップE3において、ステップE
2で決められた拡大或いは縮小後の画像データの幅x
n’に基づいて、この画像データを相似拡大或いは相似
縮小したときの長さyn’を求め(yn’=(yn/x
n)*xn’)、長さyn’とY−Bの値とを比較す
る。その結果、yn’≦Y−Bであれば(E3:YE
S)ステップE4に進み、yn’>Y−Bであれば(E
3:NO)ステップE5に進む。
Next, in step E3, step E
The width x of the image data after enlargement or reduction determined in 2
Based on n ′, the length yn ′ of this image data when it is similar enlarged or reduced is obtained (yn ′ = (yn / x
n) * xn '), comparing the length yn' with the value of YB. As a result, if yn ′ ≦ Y−B (E3: YE
S) Proceed to step E4, and if yn ′> Y−B, (E
3: NO) Proceed to step E5.

【0096】yn’≦Y−Bであるとは、例えば1番目
の画像データについてはその拡大或いは縮小後の幅x
1’を印刷領域の全幅Xとしたときに、その拡大或いは
縮小後の長さy1’が印刷領域の1ページの長さY内に
収まることを意味する。そこで、この場合には、ステッ
プE2およびステップE3で定めた相似画像データ(x
n’,yn’)を画像未配置領域に配置することとし、
ステップE4において、B+yn’を新たにBの値とし
て格納する。
It is assumed that yn ′ ≦ Y−B means that, for example, the width x of the first image data after its enlargement or reduction is x
When 1 ′ is the full width X of the print area, it means that the length y1 ′ after the enlargement or reduction fits within the length Y of one page of the print area. Therefore, in this case, the similar image data (x
n ′, yn ′) are arranged in the image non-arranged area,
In step E4, B + yn 'is newly stored as the value of B.

【0097】また、yn’>Y−Bであるとは、例えば
1番目の画像データについてはその拡大或いは縮小後の
幅x1’を印刷領域の全幅Xとしたときに、その拡大或
いは縮小後の長さy1’が印刷領域の1ページの長さY
内に収まらないことを意味する。そこで、この場合に
は、X方向を相似変形の基準とするのをやめて、Y方向
を相似変形の基準とするようにする。そこで、ステップ
E5において、Y−Bの値が、拡大或いは縮小後の画像
データの長さyn’として格納される。
Further, yn '> YB means that, for example, when the width x1' of the first image data after the enlargement or reduction is set to the total width X of the print area, the yn '> YB is satisfied. The length y1 'is the length Y of one page in the print area.
Means that it does not fit within. Therefore, in this case, the X direction is not used as the reference for similar deformation, and the Y direction is used as the reference for similar deformation. Therefore, in step E5, the value of YB is stored as the length yn 'of the image data after enlargement or reduction.

【0098】次に、ステップE6において、ステップE
5で決められた拡大或いは縮小後の画像データの長さに
基づいて、この画像データを相似拡大或いは相似縮小し
たときの幅xn’を求める(xn’=(xn/yn)*
yn’)。そして、ステップE7において、A+xn’
を新たにAの値として格納する。
Next, in step E6, step E
Based on the length of the image data after the enlargement or reduction determined in step 5, the width xn 'when this image data is similar enlargement or similar reduction is obtained (xn' = (xn / yn) *
yn '). Then, in step E7, A + xn '
Is newly stored as the value of A.

【0099】次に、ステップE8において、ステップE
2およびステップE3で定めた相似画像データ(x
n’,yn’)、または、ステップE5およびステップ
E6で定めた相似画像データ(xn’,yn’)が画像
未配置領域に対応するアドレス領域に(左上詰めで)上
位アドレスから配置される。このとき、元の画像データ
からの拡大縮小率とともに相似画像データの配置位置範
囲を示すアドレスが元の画像データのアドレスと関連づ
けられてRAM136の所定領域に印刷データの一部と
して書き込まれる。
Next, in step E8, step E
2 and the similar image data (x
n ′, yn ′) or the similar image data (xn ′, yn ′) determined in steps E5 and E6 are arranged from the upper address (in the upper left position) in the address area corresponding to the image non-arranged area. At this time, an address indicating the arrangement position range of the similar image data together with the enlargement / reduction ratio from the original image data is written as a part of the print data in a predetermined area of the RAM 136 in association with the address of the original image data.

【0100】次に、ステップE9において、変数AがX
と等しくなったか(A=X)、或いは、変数BがYと等
しくなったか(B=Y)どうかが判断される。もしこれ
らいずれかの条件が満たされていれば(E9:YES)
1ページ分の印刷領域が相似画像データで埋め尽くされ
たことになるので、ステップE11に進んで、長さYで
タックシート13が幅方向に切断されるようにその切断
位置がRAM136の所定領域に印刷データの一部とし
て書き込まれる。
Next, in step E9, the variable A
Is determined (A = X) or whether the variable B is equal to Y (B = Y). If any of these conditions is satisfied (E9: YES)
Since the print area for one page has been filled with the similar image data, the process proceeds to step E11, and the cutting position is set to a predetermined area of the RAM 136 so that the tack sheet 13 is cut in the width direction by the length Y. Is written as part of the print data.

【0101】また、これらいずれの条件も満たされてい
なければ(E9:NO)、タックシート13の1ページ
分の印刷領域にまだ空白部分があることになるので、ス
テップE10に進んで次の画像データがあるかどうかが
判断される。もし次の画像データがあれば(E10:Y
ES)ステップE12に進んでパラメータnを1だけ加
算してステップE2に戻る。もし次の画像データがなけ
れば(E10:NO)ステップE13に進む。
If none of these conditions is satisfied (E9: NO), there is still a blank area in the print area for one page of the tack sheet 13, so the flow advances to step E10 to proceed to the next image. It is determined whether there is data. If the next image data exists (E10: Y
ES) The process proceeds to a step E12, where the parameter n is added by 1, and the process returns to the step E2. If there is no next image data (E10: NO), the process proceeds to step E13.

【0102】ステップE13では、変数Aがゼロである
かどうかが判断される。もし変数Aがゼロであれば(E
13:YES)、1ページ分の印刷領域の下方にはまっ
たく印刷されない領域があることになるので、ステップ
E14に進んで位置Bでタックシート13が幅方向に切
断されるようにその切断位置がRAM136の所定領域
に印刷データの一部として書き込まれる。また、もし変
数Aがゼロでなければ(E13:NO)、1ページ分の
印刷領域の長さYにわたって印刷が行われることになる
ので、ステップE11に進んで高さYでタックシート1
3が幅方向に切断されるようにその切断位置がRAM1
36の所定領域に印刷データの一部として書き込まれ
る。
At step E13, it is determined whether or not the variable A is zero. If the variable A is zero (E
13: YES) Since there is an area where no printing is performed below the printing area for one page, the process proceeds to step E14 and the cutting position is set so that the tack sheet 13 is cut in the width direction at the position B. The data is written to a predetermined area of the RAM 136 as a part of the print data. If the variable A is not zero (E13: NO), the printing is performed over the length Y of the print area for one page.
3 is cut in the RAM1 so that 3 is cut in the width direction.
36 is written as a part of the print data in a predetermined area.

【0103】このような手順によって、1または複数の
画像データを、煩雑な編集作業を必要とすることなく印
刷領域に対応するアドレス領域内に拡大或いは縮小して
配置し、エディタへの見やすく且つコンパクトな表示を
得ることが可能となる。
According to such a procedure, one or a plurality of image data are enlarged or reduced in an address area corresponding to a print area without requiring a complicated editing operation, so that the image data can be easily viewed on an editor and compact. Display can be obtained.

【0104】次に、画像データだけが取り込まれた場合
の処理の第2の例について説明する。本例では、1ペー
ジ分のタックシート13を横長の領域としてとらえて第
1の例と同様に画像データを配置していく。第1の例で
はタックシート13を縦長の領域としてとらえていたた
め、縦長の画像データが比較的大きく表示されるように
配置することができたが、横長の画像データが比較的小
さく表示されてしまう。本例はこれとは逆に、横長の画
像データが比較的大きく表示されるようにしたものであ
る。以下、図16〜図17を参照して詳述する。
Next, a description will be given of a second example of the processing when only the image data is taken. In this example, one page of the tack sheet 13 is regarded as a horizontally long area, and image data is arranged as in the first example. In the first example, since the tack sheet 13 is regarded as a vertically long area, it can be arranged so that vertically long image data is displayed relatively large. However, horizontally long image data is displayed relatively small. . On the contrary, in this example, the horizontally long image data is displayed relatively large. Hereinafter, this will be described in detail with reference to FIGS.

【0105】本例では、図17に示すように、タックシ
ート13の1ページ分の長さに対応した長さY側が画像
上側となるように図15とは90度回転して置かれたタ
ックシート13への1ページ分の矩形印刷領域に対応し
たアドレス領域に、選択されたn個の矩形画像データを
配置するものとする。これらn個の画像データの配置の
優先順位は、サイズなどによって決定されてRAM13
6の所定領域に書き込まれる。そして、RAM136に
書き込まれた順番にしたがって、印刷領域の画像未配置
領域に対応するアドレス領域内に共通の配置方向で最大
サイズの相似画像データが配置される。
In this example, as shown in FIG. 17, the tack is rotated 90 degrees from that of FIG. 15 so that the length Y side corresponding to the length of one page of the tack sheet 13 is on the upper side of the image. It is assumed that n pieces of selected rectangular image data are arranged in an address area corresponding to a rectangular print area for one page on the sheet 13. The priority of the arrangement of these n pieces of image data is determined by the size or the like and is determined by the RAM 13.
6 is written to a predetermined area. Then, similar image data of the maximum size is arranged in the common arrangement direction in the address area corresponding to the image non-arranged area of the print area in accordance with the order of writing in the RAM 136.

【0106】まず、図16に示すステップF1におい
て、パラメータnが1とされるとともに、第1の例と同
様に定義された変数AおよびBがゼロとされる。そし
て、ステップF2において、Y−Bの値が、n番目の画
像データの幅xnの拡大或いは縮小後の幅xn’として
格納される。
First, in step F1 shown in FIG. 16, the parameter n is set to 1, and the variables A and B defined as in the first example are set to zero. Then, in step F2, the value of YB is stored as the width xn 'of the width xn of the n-th image data after being enlarged or reduced.

【0107】次に、ステップF3において、ステップF
2で決められた拡大或いは縮小後の画像データの幅x
n’に基づいて、この画像データを相似拡大或いは相似
縮小したときの長さyn’を求め(yn’=(yn/x
n)*xn’)、長さyn’とX−Aの値とを比較す
る。その結果、yn’≦X−Aであれば(F3:YE
S)ステップF4に進み、yn’>X−Aであれば(F
3:NO)ステップF5に進む。
Next, in step F3, step F
The width x of the image data after enlargement or reduction determined in 2
Based on n ′, the length yn ′ of this image data when it is similar enlarged or reduced is obtained (yn ′ = (yn / x
n) * xn '), comparing the length yn' with the value of XA. As a result, if yn ′ ≦ X−A (F3: YE
S) Go to step F4, and if yn '> XA, (F
3: NO) Proceed to step F5.

【0108】yn’≦X−Aであるとは、例えば1番目
の画像データについてはその拡大或いは縮小後の幅x
1’を印刷領域の1ページ分の全長さYとしたときに、
その拡大或いは縮小後の長さy1’が印刷領域の全幅X
内に収まることを意味する。そこで、この場合には、ス
テップF2およびステップF3で定めた相似画像データ
(xn’,yn’)を画像未配置領域に配置することと
し、ステップF4において、A+yn’を新たにBの値
として格納する。
It is assumed that yn ′ ≦ X−A means that the width x of the first image data after expansion or contraction is x
When 1 ′ is the total length Y of one page of the print area,
The length y1 'after the enlargement or reduction is the total width X of the print area.
Means to fit within. Therefore, in this case, the similar image data (xn ', yn') determined in steps F2 and F3 is arranged in the image non-arranged area, and in step F4, A + yn 'is newly stored as the value of B. I do.

【0109】また、yn’>X−Aであるとは、例えば
1番目の画像データについてはその拡大或いは縮小後の
幅x1’を印刷領域の1ページ分の全長さYとしたとき
に、その拡大或いは縮小後の長さy1’が印刷領域の全
幅X内に収まらないことを意味する。そこで、この場合
には、Y方向を相似変形の基準とするのをやめて、X方
向を相似変形の基準とするようにする。そこで、ステッ
プF5において、X−Aの値が、拡大或いは縮小後の画
像データの長さyn’として格納される。
Further, yn ′> XA means that, for example, when the width x1 ′ of the first image data after the enlargement or reduction is set to the total length Y of one page of the print area, This means that the length y1 'after enlargement or reduction does not fit within the full width X of the print area. Therefore, in this case, the Y direction is not used as the reference for the similar deformation, and the X direction is used as the reference for the similar deformation. Therefore, in step F5, the value of XA is stored as the length yn 'of the image data after enlargement or reduction.

【0110】次に、ステップF6において、ステップF
5で決められた拡大或いは縮小後の画像データの長さに
基づいて、この画像データを相似拡大或いは相似縮小し
たときの幅xn’を求める(xn’=(xn/yn)*
yn’)。そして、ステップF7において、B+xn’
を新たにBの値として格納する。
Next, in step F6, step F
Based on the length of the image data after the enlargement or reduction determined in step 5, the width xn 'when this image data is similar enlargement or similar reduction is obtained (xn' = (xn / yn) *
yn '). Then, in step F7, B + xn '
Is newly stored as the value of B.

【0111】次に、ステップF8において、ステップF
2およびステップF3で定めた相似画像データ(x
n’,yn’)、または、ステップF5およびステップ
F6で定めた相似画像データ(xn’,yn’)が画像
未配置領域に対応するアドレス領域に(左上詰めで)上
位アドレスから配置される。このとき、元の画像データ
からの拡大縮小率とともに相似画像データの配置位置範
囲を示すアドレスが元の画像データのアドレスと関連づ
けられてRAM136の所定領域に印刷データの一部と
して書き込まれる。
Next, in step F8, step F
2 and the similar image data (x
n ′, yn ′) or the similar image data (xn ′, yn ′) determined in steps F5 and F6 are arranged from the upper address (in the upper left position) in the address area corresponding to the image non-arranged area. At this time, an address indicating the arrangement position range of the similar image data together with the enlargement / reduction ratio from the original image data is written as a part of the print data in a predetermined area of the RAM 136 in association with the address of the original image data.

【0112】次に、ステップF9において、変数AがX
と等しくなったか(A=X)、或いは、変数BがYと等
しくなったか(B=Y)どうかが判断される。もしこれ
らいずれかの条件が満たされていれば(F9:YES)
1ページ分の印刷領域が相似画像データで埋め尽くされ
たことになるので、ステップF11に進んで、長さYで
タックシート13が幅方向に切断されるようにその切断
位置がRAM136の所定領域に印刷データの一部とし
て書き込まれる。
Next, in step F9, the variable A is set to X
Is determined (A = X) or whether the variable B is equal to Y (B = Y). If any of these conditions is satisfied (F9: YES)
Since the print area for one page has been filled with the similar image data, the process proceeds to step F11, and the cut position is set in the predetermined area of the RAM 136 so that the tack sheet 13 is cut in the width direction by the length Y. Is written as part of the print data.

【0113】また、これらいずれの条件も満たされてい
なければ(F9:NO)、タックシート13の1ページ
分の印刷領域にまだ空白部分があることになるので、ス
テップF10に進んで次の画像データがあるかどうかが
判断される。もし次の画像データがあれば(F10:Y
ES)ステップF12に進んでパラメータnを1だけ加
算してステップF2に戻る。もし次の画像データがなけ
れば(F10:NO)ステップF13に進む。
If none of these conditions is satisfied (F9: NO), there is still a blank portion in the print area for one page of the tack sheet 13, so the flow advances to step F10 to proceed to the next image. It is determined whether there is data. If the next image data exists (F10: Y
ES) The process proceeds to step F12 to add 1 to the parameter n, and returns to step F2. If there is no next image data (F10: NO), the process proceeds to step F13.

【0114】ステップF13では、変数Aがゼロである
かどうかが判断される。もし変数Aがゼロであれば(F
13:YES)、1ページ分の印刷領域の右方にはまっ
たく印刷されない領域があることになるので、ステップ
F14に進んで位置Bでタックシート13が幅方向に切
断されるようにその切断位置がRAM136の所定領域
に印刷データの一部として書き込まれる。また、もし変
数Aがゼロでなければ(F13:NO)、1ページ分の
印刷領域の長さYにわたって印刷が行われることになる
ので、ステップF11に進んで高さYでタックシート1
3が幅方向に切断されるようにその切断位置がRAM1
36の所定領域に印刷データの一部として書き込まれ
る。
At step F13, it is determined whether or not the variable A is zero. If the variable A is zero (F
13: YES) Since there is an area where no printing is performed to the right of the printing area for one page, the process proceeds to step F14 and the cutting position is set so that the tack sheet 13 is cut in the width direction at the position B. Is written in a predetermined area of the RAM 136 as a part of the print data. If the variable A is not zero (F13: NO), the printing is performed over the length Y of the printing area for one page.
3 is cut in the RAM1 so that 3 is cut in the width direction.
36 is written as a part of the print data in a predetermined area.

【0115】このような手順によって、第1の例と比較
した場合に横長の画像データが大きく表示或いは印刷さ
れるという利点がある。
According to such a procedure, there is an advantage that the horizontally long image data is displayed or printed larger as compared with the first example.

【0116】第1の例と第2の例とは、そのいずれも任
意に選択することができるが、優先度の高いデータをよ
り大きく表示するという観点からは、優先順位が1番目
のデータが縦長データであれば第1の例を採用し、優先
順位が1番目のデータが横長データであれば第2の例を
採用することが好ましい。そのためには、優先順位が定
められてから、優先順位が1番目のデータの縦方向長さ
と横方向長さとを比較すればよい。
The first example and the second example can be arbitrarily selected. However, from the viewpoint of displaying data with higher priority larger, data having the first priority is assigned. It is preferable to adopt the first example if the data is vertically long, and to employ the second example if the data with the first priority is horizontally long. For this purpose, after the priority is determined, the vertical length and the horizontal length of the data having the first priority may be compared.

【0117】次に、画像データだけが取り込まれた場合
の処理の第3の例について説明する。本例では、選択さ
れた複数の画像データ間に軽重をつけず、それぞれを独
立した分割領域内において最大となるように個別に拡大
或いは縮小して配置するようにしている。以下、図18
〜図21を参照して詳述する。
Next, a description will be given of a third example of the processing when only the image data is captured. In the present example, the selected plural pieces of image data are arranged so as to be individually enlarged or reduced so that each of the plurality of pieces of image data is maximized in an independent divided area. Hereinafter, FIG.
This will be described in detail with reference to FIG.

【0118】まず、ステップG1において、画像データ
が縮小される場合にどの程度までの縮小を許容するかを
最低縮小率MRとして予め設定する。これは、画像デー
タが余りに小さく縮小されると画像が見づらくなってし
まうからである。
First, in step G1, the extent to which image data is allowed to be reduced when image data is reduced is set in advance as the minimum reduction ratio MR. This is because if the image data is reduced too small, the image becomes difficult to see.

【0119】次に、ステップG2において、上述したい
ずれかの方法によってエディタに画像データを取り込ん
だ後、ステップG3において、タックシート13の1枚
分の矩形領域をいくつの領域に分割するか(分割数N)
を設定する。分割数Nは、任意に設計することができ、
例えば取り込んだ画像データの数と同じであってよい。
Next, in step G2, after the image data is fetched into the editor by any of the above-described methods, in step G3, the number of areas into which the rectangular area of one sheet of the tack sheet 13 is to be divided (division). Number N)
Set. The number of divisions N can be arbitrarily designed,
For example, the number may be the same as the number of captured image data.

【0120】次に、ステップG4において、タックシー
ト13の1枚分の領域をステップG3で設定した分割数
Nに分割する。分割は、例えば図21に示すようにタッ
クシート13の1枚分の領域をX方向に沿った境界線で
分割領域が同じ大きさとなるように3つに分割してもよ
いし、分割領域が異なる大きさとなるように任意のレイ
アウトで分割してもよい。これら各分割領域には例えば
左上から順に番号が付けられる。
Next, in step G4, the area of one sheet of the tack sheet 13 is divided into the division number N set in step G3. For example, as shown in FIG. 21, the area of one sheet of the tack sheet 13 may be divided into three such that the divided areas have the same size at the boundary line along the X direction. The layout may be divided by an arbitrary layout so as to have different sizes. For example, these divided areas are numbered sequentially from the upper left.

【0121】次に、ステップG5において、パラメータ
Iの値として1を格納する。パラメータIは配置される
各画像および各分割領域を識別するものであり、各画像
には第1の例と同様に予め配置の優先順位が決められて
いてよい。そして、ステップG6において、I番目の画
像データがI番目の分割領域内で最大となるように拡大
或いは縮小された相似画像データが当該分割領域に配置
される。
Next, at step G5, 1 is stored as the value of the parameter I. The parameter I identifies each image and each divided area to be arranged, and the priorities of the arrangement may be determined in advance for each image as in the first example. Then, in step G6, the similar image data enlarged or reduced so that the I-th image data becomes the maximum in the I-th divided region is arranged in the divided region.

【0122】以後、ステップG7でパラメータIを1だ
け加算し、ステップG8でパラメータIがN+1未満か
どうかを判断する。もしパラメータIがN+1未満であ
れば(G8:YES)ステップG6に戻って画像データ
の配置処理が繰り返される。また、パラメータIがN+
1以上であれば(G8:NO)ステップG9に進んでカ
ッティングプリンタ11での印刷が行われる。
Thereafter, at step G7, the parameter I is incremented by 1, and at step G8, it is determined whether or not the parameter I is less than N + 1. If the parameter I is less than N + 1 (G8: YES), the process returns to step G6, and the image data arrangement process is repeated. If the parameter I is N +
If it is 1 or more (G8: NO), the process proceeds to step G9, where printing by the cutting printer 11 is performed.

【0123】ここで、ステップG6の具体的なステップ
について、図19に基づいて説明する。まず、ステップ
G61において、画像データを関連する分割領域に最大
の大きさで配置するために、画像データの縦方向の長さ
をどれだけ縮小或いは拡大する必要があるかを計算す
る。そのためには、分割領域の縦辺長さ/画像データの
縦辺長さを計算し、これを縦比率VRとする。次に、ス
テップG62において、ステップG61と同様にして横
比率HRを計算する。
Here, specific steps of step G6 will be described with reference to FIG. First, in step G61, it is calculated how much the vertical length of the image data needs to be reduced or enlarged in order to arrange the image data in the related divided area with the maximum size. For that purpose, the vertical length of the divided area / the vertical length of the image data is calculated, and this is set as the vertical ratio VR. Next, in step G62, the lateral ratio HR is calculated in the same manner as in step G61.

【0124】次に、ステップG63において、縦比率と
横比率の大小関係を判断する。もしも横比率の方が大き
ければ(G63:YES)、当該画像データを最大サイ
ズとなるように関連する分割領域に配置するには縦比率
を基準として縮小或いは拡大する必要があることになる
ので、ステップG64に進んで縦比率VRがその画像デ
ータの拡大縮小率ZRとしてRAM136の所定領域に
書き込まれる。一方、縦比率の方が大きければ(G6
3:NO)、当該画像データを最大サイズとなるように
関連する分割領域に配置するには横比率を基準として縮
小或いは拡大する必要があることになるので、ステップ
G65に進んで横比率HRがその画像データの拡大縮小
率ZRとしてRAM136の所定領域に書き込まれる。
Next, in step G63, the magnitude relationship between the vertical ratio and the horizontal ratio is determined. If the horizontal ratio is larger (G63: YES), it is necessary to reduce or enlarge the image data based on the vertical ratio in order to arrange the image data in the related divided area so as to have the maximum size. Proceeding to step G64, the vertical ratio VR is written in a predetermined area of the RAM 136 as the enlargement / reduction ratio ZR of the image data. On the other hand, if the vertical ratio is larger (G6
3: NO), it is necessary to reduce or enlarge the image data in the associated divided area so as to have the maximum size, so that it is necessary to reduce or enlarge the image data on the basis of the horizontal ratio. The image data is written in a predetermined area of the RAM 136 as the enlargement / reduction ratio ZR.

【0125】次に、ステップG66において、画像デー
タの拡大縮小率ZRがステップG1で設定した最小縮小
率MRと比較される。また、もし拡大縮小率ZRが最小
縮小率MR以上であるときには(G66:NO)、ステ
ップG68において通常の画像データ配置処理が行われ
る。すなわち、画像データがステップG64またはステ
ップG65で定められた拡大縮小率ZRによって相似拡
大或いは相似縮小された相似画像データが、関連する分
割領域のアドレス領域に(左上詰めで)上位アドレスか
ら配置される。このとき、元の画像データからの拡大縮
小率とともに相似画像データの配置位置範囲を示すアド
レスが元の画像データのアドレスと関連づけられてRA
M136の所定領域に印刷データの一部として書き込ま
れる。
Next, at step G66, the enlargement / reduction ratio ZR of the image data is compared with the minimum reduction ratio MR set at step G1. If the enlargement / reduction ratio ZR is equal to or greater than the minimum reduction ratio MR (G66: NO), normal image data arrangement processing is performed in step G68. That is, similar image data in which the image data is similarly enlarged or reduced by the enlargement / reduction ratio ZR determined in step G64 or step G65 is arranged from the upper address (in the upper left position) in the address area of the related divided area. . At this time, the address indicating the arrangement position range of the similar image data together with the enlargement / reduction ratio from the original image data is associated with the address of the original image data in RA.
It is written in a predetermined area of M136 as a part of the print data.

【0126】もし拡大縮小率ZRが最小縮小率MRより
も小さいときには(G66:YES)、画像データが小
さくなりすぎることになるので、ステップG67で画像
データの分割配置処理を行う。
If the enlargement / reduction ratio ZR is smaller than the minimum reduction ratio MR (G66: YES), the image data becomes too small, and the image data is divided and arranged in step G67.

【0127】ここで、ステップG67の分割配置処理に
ついて、より詳細に図20に基づいて説明する。分割配
置処理においては、まず、ステップG671において、
タックシート13の1ページ内の残りの(つまり、現在
処理中のものを含んで未だ相似画像データが配置されて
いない)分割領域数NNを求める。そして、ステップG
672において、パラメータJの値として2を格納した
後、パラメータJと残り分割領域数NNとを比較する。
もしパラメータJが残り分割領域数NNよりも大きけれ
ば(G673:YES)、画像データを分割する余地が
すでにないことを意味しているので、ステップG679
に進んで当該ページ内には画像データを印刷することが
できない旨の警告を発する。警告は、ディスプレイ13
2に表示してもよいし、スピーカ(図示せず)などから
音声としてユーザに通知してもよい。
Here, the division arrangement processing in step G67 will be described in more detail with reference to FIG. In the split arrangement processing, first, in step G671,
The number NN of the remaining divided regions in one page of the tack sheet 13 (that is, the similar image data including the one currently being processed and in which similar image data is not yet arranged) is obtained. And step G
In 672, after storing 2 as the value of the parameter J, the parameter J is compared with the remaining number of divided areas NN.
If the parameter J is larger than the number of remaining divided areas NN (G673: YES), it means that there is no room for dividing the image data, and therefore step G679 is performed.
To issue a warning that image data cannot be printed in the page. Warning on display 13
2 or may be notified to the user as sound from a speaker (not shown) or the like.

【0128】もしパラメータJが残り分割領域数NN以
下であれば(G673:NO)、ステップG674に進
んで画像データをパラメータJと等しい個数に分割す
る。例えば図21のように分割領域がX方向に沿った線
で同じ幅に分割されている場合には、画像データもこれ
に合わせてX方向に沿った線で同じ幅に分割すればよ
い。
If the parameter J is equal to or smaller than the number of remaining divided areas NN (G673: NO), the flow advances to step G674 to divide the image data into a number equal to the parameter J. For example, when the divided region is divided into the same width by a line along the X direction as shown in FIG. 21, the image data may be divided into the same width by a line along the X direction.

【0129】そして、ステップG675において、J個
に分割された各画像データについて、これらがそれぞれ
J個の分割領域に配置されるとしたのときの拡大縮小率
DZRを、ステップG61〜ステップG65と同様にし
て計算する。次に、ステップG676において、分割さ
れた画像データの拡大縮小率DZRがステップG1で設
定した最小縮小率MRと比較される。また、もし分割画
像の拡大縮小率DZRが最小縮小率MR以上であるとき
には(G676:NO)、ステップG678において、
J個に分割された個々の画像データについて、ステップ
G68で説明したのと同様に、J個の分割領域への配置
処理が行われる。
In step G675, the enlargement / reduction ratio DZR for each of the J divided image data assuming that they are arranged in J divided areas is the same as in steps G61 to G65. And calculate. Next, in step G676, the enlargement / reduction ratio DZR of the divided image data is compared with the minimum reduction ratio MR set in step G1. If the enlargement / reduction ratio DZR of the divided image is equal to or larger than the minimum reduction ratio MR (G676: NO), in step G678,
The individual pieces of image data divided into J pieces are subjected to arrangement processing in J pieces of divided areas in the same manner as described in step G68.

【0130】もし分割画像の拡大縮小率DZRが最小縮
小率よりも小さいときには(G676:YES)、ステ
ップG677に進んでパラメータJを1だけ加算した後
ステップG673に戻って同様のステップを繰り返して
行う。
If the enlargement / reduction ratio DZR of the divided image is smaller than the minimum reduction ratio (G676: YES), the flow advances to step G677 to add 1 to the parameter J, and then returns to step G673 to repeat the same steps. .

【0131】このような手順によると、第1の例と比較
した場合に、各分割領域の右側に余白が生じるものの、
各分割領域にいわば独立して画像データが配置されるの
で、優先度の低い画像データほど小さく表示されるおそ
れが少ない。また、すべての画像データが共通の所定方
向で配置されるので、観察方向を変更しなくとも複数の
画像データを一度に見ることができるようになる。ま
た、画像データを分割領域に配置する場合の拡大縮小率
と予め定められた最小縮小率とを比較することにより、
相似画像データが非常に小さく縮小されて見づらくなる
のを事前に検出することができる。また、拡大縮小率が
最小縮小率よりも小さい場合には、画像データが複数の
分割領域に分割されて相似画像データとして配置される
ので、比較的サイズの大きい画像データが小さく表示さ
れるのを防止することができる。さらに、所定の場合に
は警告を発するようにしたので、相似画像データを所定
領域内の残存する複数の分割領域に分割して配置したと
しても、当該相似画像データの拡大縮小率が最小縮小率
以下であることをユーザに知らせることができるという
利点がある。
According to such a procedure, although a blank space is generated on the right side of each divided area as compared with the first example,
Since image data is arranged independently in each divided area, image data with lower priority is less likely to be displayed smaller. Further, since all the image data are arranged in a common predetermined direction, a plurality of image data can be viewed at a time without changing the observation direction. Also, by comparing the enlargement / reduction ratio when arranging the image data in the divided area with a predetermined minimum reduction ratio,
It can be detected in advance that the similar image data is reduced to a very small size and becomes difficult to see. Further, when the enlargement / reduction ratio is smaller than the minimum reduction ratio, the image data is divided into a plurality of divided regions and arranged as similar image data. Can be prevented. Further, since a warning is issued in a predetermined case, even if the similar image data is divided into a plurality of remaining divided regions in the predetermined region and arranged, the enlargement / reduction ratio of the similar image data is the minimum reduction ratio. There is an advantage that the user can be informed that:

【0132】次に、図8に関連して説明した処理によっ
てエディタに取り込まれたデータがテキストデータと画
像データの両方であると判断された場合の、エディタに
よるテキストデータおよび画像データの処理について説
明する。組合せデータ判定データがエディタに取り込ま
れたデータがテキストデータと画像データの両方である
ことを示している場合、図7に示す印刷領域157の余
白部分を除く画像領域158に対応するアドレス領域に
画像データが配置され、テキスト領域159に対応する
アドレス領域にテキストデータが配置されることにな
る。以下、この場合の第1の例について、図22〜図2
3を参照して詳述する。
Next, processing of text data and image data by the editor when it is determined that the data taken into the editor by the processing described with reference to FIG. 8 is both text data and image data will be described. I do. When the combination data determination data indicates that the data taken into the editor is both text data and image data, the image is stored in the address area corresponding to the image area 158 excluding the blank area of the print area 157 shown in FIG. The data is arranged, and the text data is arranged in the address area corresponding to the text area 159. Hereinafter, a first example in this case will be described with reference to FIGS.
3 will be described in detail.

【0133】本例では、図23に示す、タックシート1
3への1ページ分の矩形印刷領域を、テキストデータが
配置されるテキスト領域と、画像データが配置される画
像データとに所定の占有比率で分割し、それぞれの領域
に対応するアドレス領域内でテキストデータおよび画像
データを配置していく。分割のレイアウトは様々なもの
が考えられるが、本実施の形態では、占有比率に応じた
位置でタックシート13の長さ方向に沿って印刷領域が
2つの矩形領域に分けられる。テキストデータおよび画
像データの各領域内での配置の手順は、上述した図9、
図10、図14、図15で説明したものと同じであって
もよい。すなわち、テキスト領域では、複数のテキスト
データが1つの改行コードを挟んで連続して配置され、
各テキストデータに整形処理が施される。また、画像領
域では、優先順位を付けられた複数の画像データがその
順番に画像未配置領域で最大となるように相似拡大また
は相似縮小されて配置される。なお、画像データについ
ては、図18〜図21で説明したように、分割領域内で
最大サイズとした相似画像データが各分割領域内に独立
して配置されてもよい。
In this example, the tack sheet 1 shown in FIG.
3 is divided into a text area in which text data is arranged and image data in which image data is arranged at a predetermined occupancy ratio, and a rectangular print area for one page is divided into address areas corresponding to the respective areas. Text data and image data are arranged. Various layouts can be considered for the division, but in the present embodiment, the print area is divided into two rectangular areas along the length direction of the tack sheet 13 at positions corresponding to the occupation ratio. The procedure for arranging text data and image data in each area is described in FIG.
It may be the same as that described in FIG. 10, FIG. 14, and FIG. That is, in the text area, a plurality of text data are continuously arranged with one line feed code interposed therebetween.
Each text data is subjected to a shaping process. Further, in the image area, a plurality of pieces of image data to which the priorities are assigned are arranged in a similar order so as to be the largest in the image non-arranged area and similar. As for the image data, as described in FIGS. 18 to 21, similar image data having the maximum size in the divided region may be independently arranged in each divided region.

【0134】本例では、図23に示すように、タックシ
ートの印刷領域の幅に対応した長さ(ドット数)をW、
タックシート13の1ページ分の長さに対応した長さを
Hとし、そのうち、画像領域の幅をX、長さをYとした
(つまり、画像領域の占有比率はX/Wであり、テキス
ト領域の占有比率は(W−X)/Wである)。そして、
この(X,Y)の画像領域に対応するアドレス領域内に
n個の画像データがそれぞれ相似拡大または相似縮小さ
れて配置され、(W−X,Y)のテキスト領域に対応す
るアドレス領域内に1または複数のテキストデータが配
置される。ここで、n番目の画像データのブラウザに表
示されていた元の大きさを(xn,yn)とし、このデ
ータが相似拡大または相似縮小された相似画像データの
エディタ画面での大きさを(xn’,yn’)とする。
また、画像領域内に1または複数の相似画像データが配
置されているときに、画像領域の左上頂点を基準点とし
て、幅Xのすべてが相似画像データで占められている位
置までのY方向のディスプレイ132上での距離をBと
し、幅Yのすべてが相似画像データで占められている位
置までのX方向のディスプレイ132上での距離をAと
している。
In this example, as shown in FIG. 23, the length (the number of dots) corresponding to the width of the printing area of the tack sheet is represented by W,
The length corresponding to the length of one page of the tack sheet 13 is H, of which the width of the image area is X and the length is Y (that is, the occupation ratio of the image area is X / W, The occupation ratio of the area is (WX) / W). And
In the address area corresponding to the (X, Y) image area, n pieces of image data are arranged with similar enlargement or similar reduction, respectively, and are arranged in the address area corresponding to the (WX, Y) text area. One or a plurality of text data are arranged. Here, the original size of the n-th image data displayed on the browser is (xn, yn), and the size of the similar image data in which the data is similarly enlarged or reduced on the editor screen is (xn, yn). ', Yn').
Further, when one or a plurality of similar image data is arranged in the image area, in the Y direction from the upper left vertex of the image area to a position where the entire width X is occupied by the similar image data. It is assumed that the distance on the display 132 is B, and the distance on the display 132 in the X direction to a position where the entire width Y is occupied by the similar image data is A.

【0135】まず、図22に示すステップP0におい
て、1ページ分のタックシートの印刷領域を占有比率R
を用いてタックシート13の長さ方向に沿って分割し、
画像領域の幅Xを求める(X=(R/100)*W)。
ステップP0の後に行われるステップP1〜ステップP
8は図14で説明したステップE1〜ステップE8と実
質的に同じであるので、ここではその説明を省略する。
First, in step P0 shown in FIG. 22, the print area of the tack sheet for one page is occupied by the occupation ratio R.
Is divided along the length direction of the tack sheet 13 using
The width X of the image area is obtained (X = (R / 100) * W).
Step P1 to Step P performed after Step P0
8 is substantially the same as step E1 to step E8 described with reference to FIG. 14, and a description thereof will not be repeated.

【0136】そして、ステップP9において、変数Aが
Xと等しくなったか(A=X)、或いは、変数BがYと
等しくなったか(B=Y)どうかが判断される。もしこ
れらいずれかの条件が満たされていれば(P9:YE
S)1ページ分の画像領域が相似画像データで埋め尽く
されたことになるので、ステップP11に進んで、テキ
スト領域にテキストデータを配置してステップP12に
進む。テキストデータの配置手順は、上述した図9で説
明したのと同じであるのでここではその説明を省略す
る。なお、ここでは、処理を簡単にするために、テキス
トデータがタックシート1ページ分のテキスト領域を超
えて印刷されることがないと仮定している。
Then, in step P9, it is determined whether the variable A has become equal to X (A = X) or the variable B has become equal to Y (B = Y). If any of these conditions is satisfied (P9: YE
S) Since the image area for one page has been filled with the similar image data, the process proceeds to step P11, where the text data is arranged in the text area, and the process proceeds to step P12. The procedure for arranging the text data is the same as that described with reference to FIG. 9 described above, and a description thereof will not be repeated. Here, in order to simplify the processing, it is assumed that the text data is not printed beyond the text area for one page of the tack sheet.

【0137】また、これらいずれの条件も満たされてい
なければ(P9:NO)、タックシート13の1ページ
分の画像領域にまだ空白部分があることになるので、ス
テップP10に進んで次の画像データがあるかどうかが
判断される。もし次の画像データがあれば(P10:Y
ES)ステップP13に進んでパラメータnを1だけ加
算してステップP2に戻る。もし次の画像データがなけ
れば(P10:NO)ステップP14に進んで、テキス
ト領域にテキストデータを配置する。このとき、画像領
域内の相似画像データが配置されなかった空白領域にも
テキストデータを配置することによって、空白領域を有
効に利用してテキストデータをコンパクトに配置するこ
とができるようになる。
If none of these conditions is satisfied (P9: NO), there is still a blank portion in the image area for one page of the tack sheet 13, so the process proceeds to step P10 to proceed to the next image. It is determined whether there is data. If the next image data exists (P10: Y
ES) The process proceeds to Step P13, where the parameter n is added by 1, and the process returns to Step P2. If there is no next image data (P10: NO), the process proceeds to step P14, and the text data is arranged in the text area. At this time, by arranging the text data also in the blank area where the similar image data is not arranged in the image area, the text data can be compactly arranged by effectively utilizing the blank area.

【0138】次に、ステップP15では、変数Aがゼロ
であるかどうかが判断される。もし変数Aがゼロでなけ
れば(P15:NO)、タックシート13の1ページ分
の長さにわたって画像が印刷されることになるので、ス
テップP12に進んで高さH、つまり1ページ分の長さ
でタックシート13が幅方向に切断されるようにその切
断位置がRAM136の所定領域に印刷データの一部と
して書き込まれる。もし変数Aがゼロであれば(P1
5:YES)、1ページ分の画像領域の下方にまったく
画像が印刷されない領域があることになる。そこで、ス
テップP16に進んで、変数Bがテキストデータの高さ
(第1行位置から最下行位置までの距離)よりも大きい
かどうか、つまり画像データがテキストデータよりも下
方に突出しているかどうかが判断される。もし変数Bが
テキストデータの高さよりも大きければ(P16:YE
S)ステップP17に進んで、位置Bでタックシート1
3が幅方向に切断されるようにその切断位置がRAM1
36の所定領域に印刷データの一部として書き込まれ
る。一方、変数Bがテキストデータの高さよりも大きく
なければ(P16:NO)ステップP18に進んで、テ
キストデータの高さでタックシート13が幅方向に切断
されるようにその切断位置がRAM136の所定領域に
印刷データの一部として書き込まれる。
Next, in step P15, it is determined whether or not the variable A is zero. If the variable A is not zero (P15: NO), the image is printed over the length of one page of the tack sheet 13, so the process goes to step P12 to the height H, that is, the length of one page. The cut position is written as a part of the print data in a predetermined area of the RAM 136 so that the tack sheet 13 is cut in the width direction. If the variable A is zero (P1
5: YES) There is an area where no image is printed below the image area for one page. Then, proceeding to step P16, it is determined whether or not the variable B is greater than the height of the text data (the distance from the first line position to the bottom line position), that is, whether or not the image data projects below the text data. Is determined. If the variable B is larger than the height of the text data (P16: YE
S) The process proceeds to Step P17, and the tack sheet 1 is
3 is cut in the RAM1 so that 3 is cut in the width direction.
36 is written as a part of the print data in a predetermined area. On the other hand, if the variable B is not larger than the height of the text data (P16: NO), the process proceeds to step P18, and the cut position of the RAM 136 is set so that the tack sheet 13 is cut in the width direction at the height of the text data. It is written to the area as part of the print data.

【0139】このような手順によって、画像データとテ
キストデータとを印刷領域に対応するアドレス領域内に
自動的に配置することができるので、煩雑な編集作業を
必要とすることなく画像データおよびテキストデータを
配置し、見やすく且つコンパクトな表示を得ることが可
能となる。
According to such a procedure, the image data and the text data can be automatically arranged in the address area corresponding to the print area. Therefore, the image data and the text data can be arranged without complicated editing work. , And a compact and easy-to-view display can be obtained.

【0140】次に、テキストデータと画像データの両方
が取り込まれた場合の処理の第2の例について説明す
る。本例では、1ページ分のタックシート13を横長の
領域としてとらえて第1の例と同様にこの領域をテキス
ト領域と画像領域特開平に所定の占有比率で分割し、各
領域にデータを配置していく。第1の例ではタックシー
ト13を縦長の領域としてとらえていたため、画像領域
も縦長となることがほとんどであり、縦長の画像データ
が比較的大きく表示されるように配置することができた
が、横長の画像データが比較的小さく表示されてしま
う。本例はこれとは逆に、横長の画像データが比較的大
きく表示されるようにしたものである。以下、図24〜
図25を参照して詳述する。
Next, a second example of the processing when both text data and image data are taken in will be described. In this example, the tack sheet 13 for one page is regarded as a horizontally long area, and this area is divided into a text area and an image area at a predetermined occupation ratio as in the first example, and data is arranged in each area as in the first example. I will do it. In the first example, since the tack sheet 13 is regarded as a vertically long area, the image area is almost always vertically long, and the image area can be arranged so that the vertically long image data is displayed relatively large. The horizontally long image data is displayed relatively small. On the contrary, in this example, the horizontally long image data is displayed relatively large. Hereinafter, FIG.
This will be described in detail with reference to FIG.

【0141】本例では、図25に示すように、タックシ
ート13の1ページ分の長さに対応した長さH側が画像
上側となるように図23とは90度回転して置かれたタ
ックシート13への1ページ分の矩形印刷領域を所定の
占有比率で分割した画像領域およびテキスト領域にそれ
ぞれ対応したアドレス領域に、選択されたn個の矩形画
像データとテキストデータとを配置するものとする。こ
れらn個の画像データの配置の優先順位は、サイズなど
によって決定されてRAM136の所定領域に書き込ま
れる。そして、RAM136に書き込まれた順番にした
がって、印刷領域の画像未配置領域に対応するアドレス
領域内に共通の配置方向で最大サイズの相似画像データ
が配置される。
In this example, as shown in FIG. 25, the tack is rotated by 90 degrees from FIG. 23 so that the length H corresponding to the length of one page of the tack sheet 13 is on the upper side of the image. A rectangular print area for one page on the sheet 13 is divided at a predetermined occupation ratio, and n selected rectangular image data and text data are arranged in address areas respectively corresponding to an image area and a text area. I do. The priority of the arrangement of the n pieces of image data is determined based on the size and the like, and is written in a predetermined area of the RAM 136. Then, similar image data of the maximum size is arranged in the common arrangement direction in the address area corresponding to the image non-arranged area of the print area in accordance with the order of writing in the RAM 136.

【0142】まず、図24に示すステップQ0におい
て、1ページ分のタックシートの印刷領域を占有比率R
を用いてタックシート13の幅方向に沿って分割し、画
像領域の幅Yを求める(Y=(R/100)*H)。ス
テップQ0の後に行われるステップQ1〜ステップQ8
は図16で説明したステップF1〜ステップF8と実質
的に同じであるので、ここではその説明を省略する。
First, in step Q0 shown in FIG. 24, the print area of the tack sheet for one page
Is used to divide the tack sheet 13 along the width direction to determine the width Y of the image area (Y = (R / 100) * H). Steps Q1 to Q8 performed after step Q0
Are substantially the same as steps F1 to F8 described with reference to FIG.

【0143】そして、ステップQ9において、変数Aが
Xと等しくなったか(A=X)、或いは、変数BがYと
等しくなったか(B=Y)どうかが判断される。もしこ
れらいずれかの条件が満たされていれば(Q9:YE
S)1ページ分の画像領域が相似画像データで埋め尽く
されたことになるので、ステップQ11に進んで、テキ
スト領域にテキストデータを配置してステップQ12に
進む。テキストデータの配置手順は、上述した図9で説
明したのと同じであるのでここではその説明を省略す
る。なお、ここでは、処理を簡単にするために、テキス
トデータがタックシート1ページ分のテキスト領域を超
えて印刷されることがないと仮定している。
Then, in step Q9, it is determined whether the variable A has become equal to X (A = X) or the variable B has become equal to Y (B = Y). If any of these conditions is satisfied (Q9: YE
S) Since the image area for one page has been filled with similar image data, the process proceeds to step Q11, where the text data is arranged in the text area, and the process proceeds to step Q12. The procedure for arranging the text data is the same as that described with reference to FIG. 9 described above, and a description thereof will not be repeated. Here, in order to simplify the processing, it is assumed that the text data is not printed beyond the text area for one page of the tack sheet.

【0144】また、これらいずれの条件も満たされてい
なければ(Q9:NO)、タックシート13の1ページ
分の画像領域にまだ空白部分があることになるので、ス
テップQ10に進んで次の画像データがあるかどうかが
判断される。もし次の画像データがあれば(Q10:Y
ES)ステップQ13に進んでパラメータnを1だけ加
算してステップQ2に戻る。もし次の画像データがなけ
れば(Q10:NO)ステップQ14に進んで、テキス
ト領域にテキストデータを配置する。このとき、画像領
域内の相似画像データが配置されなかった空白領域にも
テキストデータを配置することによって、空白領域を有
効に利用してテキストデータをコンパクトに配置するこ
とができるようになる。
If none of these conditions is satisfied (Q9: NO), there is still a blank portion in the image area for one page of the tack sheet 13, so the flow advances to step Q10 to proceed to the next image. It is determined whether there is data. If the next image data exists (Q10: Y
ES) Proceed to step Q13 to add parameter n by 1, and return to step Q2. If there is no next image data (Q10: NO), the process proceeds to step Q14, where the text data is arranged in the text area. At this time, by arranging the text data also in the blank area where the similar image data is not arranged in the image area, the text data can be compactly arranged by effectively utilizing the blank area.

【0145】次に、ステップQ15では、変数Bがゼロ
であるかどうかが判断される。もし変数Bがゼロでなけ
れば(Q15:NO)、タックシート13の全幅にわた
って画像が印刷されることになるので、ステップQ12
に進んで高さH、つまり1ページ分の長さでタックシー
ト13が幅方向に切断されるようにその切断位置がRA
M136の所定領域に印刷データの一部として書き込ま
れる。もし変数Bがゼロであれば(Q15:YES)、
1ページ分の画像領域の下方にまったく画像が印刷され
ない領域があることになる。そこで、ステップQ16に
進んで、変数Aがテキストデータの高さ(第1行位置か
ら最下行位置までの距離)よりも大きいかどうか、つま
り画像データがテキストデータよりも下方に突出してい
るかどうかが判断される。もし変数Aがテキストデータ
の高さよりも大きければ(Q16:YES)ステップQ
17に進んで、位置Aおよび1ページ分の長さHでタッ
クシート13が長手方向および幅方向に切断されるよう
にその切断位置がRAM136の所定領域に印刷データ
の一部として書き込まれる。一方、変数Aがテキストデ
ータの高さよりも大きくなければ(Q16:NO)ステ
ップQ18に進んで、テキストデータの高さおよび1ペ
ージ分の長さHでタックシート13が長手方向および幅
方向に切断されるようにその切断位置がRAM136の
所定領域に印刷データの一部として書き込まれる。
Next, in step Q15, it is determined whether or not the variable B is zero. If the variable B is not zero (Q15: NO), the image is printed over the entire width of the tack sheet 13, so that step Q12 is performed.
To the height H, that is, the cutting position is set to RA so that the tack sheet 13 is cut in the width direction at a length of one page.
It is written in a predetermined area of M136 as a part of the print data. If the variable B is zero (Q15: YES),
There is an area where no image is printed below the image area for one page. Then, proceeding to step Q16, it is determined whether the variable A is greater than the height of the text data (the distance from the first line position to the bottom line position), that is, whether the image data projects below the text data. Is determined. If the variable A is larger than the height of the text data (Q16: YES), step Q
In step 17, the cut position is written as a part of the print data in a predetermined area of the RAM 136 so that the tack sheet 13 is cut in the longitudinal direction and the width direction at the position A and the length H for one page. On the other hand, if the variable A is not greater than the height of the text data (Q16: NO), the process proceeds to step Q18, where the tack sheet 13 is cut in the longitudinal direction and the width direction at the height of the text data and the length H of one page. The cutting position is written in a predetermined area of the RAM 136 as a part of the print data.

【0146】このような手順によって、第1の例と比較
した場合に横長の画像データが大きく表示或いは印刷さ
れるという利点がある。
By such a procedure, there is an advantage that the horizontally long image data is displayed or printed in a large size as compared with the first example.

【0147】次に、テキストデータと画像データの両方
が取り込まれた場合の処理の第3の例について説明す
る。本例では、当初の占有比率にしたがって印刷領域の
左上角を画像領域、残りをテキスト領域と分割し、各領
域に配置するデータの大きさに応じて各領域を拡大す
る。以下、図26〜図27を参照して詳述する。
Next, a description will be given of a third example of the processing when both the text data and the image data are fetched. In this example, the upper left corner of the print area is divided into an image area and the remaining area is divided into a text area in accordance with the initial occupancy ratio, and each area is enlarged according to the size of data arranged in each area. The details will be described below with reference to FIGS.

【0148】本例では、図27(a)に示すように、タ
ックシート13の幅に等しく画像上側に対応した長さW
×長さH1(H1はタックシートの1ページ分の長さよ
りも短いとする)の矩形印刷領域を、所定の占有比率
で、その左上角部近傍が画像領域(X1×Y1)とな
り、残りがテキスト領域となるように分割した。そし
て、画像領域には選択されたn個の矩形画像データが配
置され、テキスト領域にはテキストデータが配置される
ものとする。各領域内でのデータの配置手順としては、
上述したものをいずれも用いることができる。なお、印
刷領域内での画像領域の配置レイアウトは、図27
(a)に示すようなものだけではなく、右上角部近傍や
中央部などどのような位置に画像領域を置いてもよい。
In this example, as shown in FIG. 27A, a length W equal to the width of the tack sheet 13 and corresponding to the upper side of the image is used.
A rectangular print area having a length H1 (H1 is shorter than the length of one page of the tack sheet) is defined as an image area (X1 × Y1) in the vicinity of the upper left corner thereof at a predetermined occupation ratio, and the rest is provided. Divided into a text area. It is assumed that the selected n pieces of rectangular image data are arranged in the image area, and the text data is arranged in the text area. The procedure for arranging data in each area is as follows:
Any of the above can be used. The layout of the image area in the print area is shown in FIG.
The image area may be placed at any position such as near the upper right corner or at the center, in addition to the one shown in FIG.

【0149】まず、ステップR1において、画像データ
およびテキストデータをエディタに取り込む。そして、
ステップR2において、画像領域に上述の手法のいずれ
かによって画像データを配置する。そして、ステップR
3において、画像領域に配置された個々の画像データの
拡大縮小率を図19のステップG61〜ステップG65
と同様にして求め、求められた拡大縮小率を予めユーザ
が定めた最小縮小率と比較する。その結果、拡大縮小率
が最小縮小率以上であれば(R3:YES)ステップR
5に進み、拡大縮小率が最小縮小率よりも小さければ
(R3:NO)ステップR4に進む。
First, in step R1, image data and text data are loaded into an editor. And
In step R2, image data is arranged in the image area by any of the above-described methods. And step R
In step 3, the enlargement / reduction ratio of each piece of image data arranged in the image area is set in steps G61 to G65 in FIG.
, And compares the obtained enlargement / reduction ratio with the minimum reduction ratio determined in advance by the user. As a result, if the enlargement / reduction ratio is equal to or more than the minimum reduction ratio (R3: YES), step R
If the enlargement / reduction ratio is smaller than the minimum reduction ratio (R3: NO), the process proceeds to step R4.

【0150】ステップ4においては、印刷領域内におい
て画像領域を等比拡大する。つまり、画像領域の縦横長
さを同じ割合で拡大する。これにより、相似画像データ
が非常に小さく縮小されて見づらくなるのを防止するこ
とができる。この等比拡大された結果を示すのが図27
(b)であり、Y2/X2=Y1/X1となっている。
ここで、画像領域の拡大比は、ユーザが予め任意に定め
た値であってよい。そして、拡大された画像領域に対し
て、ステップR2およびR3が繰り返して実行される。
In step 4, the image area is magnified in the printing area at an equal ratio. That is, the vertical and horizontal lengths of the image area are enlarged at the same ratio. Thereby, it is possible to prevent the similar image data from being reduced to a very small size and becoming difficult to see. FIG. 27 shows the result of the equal magnification.
(B), and Y2 / X2 = Y1 / X1.
Here, the enlargement ratio of the image area may be a value arbitrarily determined in advance by the user. Then, steps R2 and R3 are repeatedly performed on the enlarged image area.

【0151】また、ステップR5においては、画像領域
の左右(テキストデータの文字列配列方向に隣接した位
置)に、画像領域に浸食された分だけ幅が狭いテキスト
領域(以下、「突出テキスト領域」という)があり、そ
の突出テキスト領域に所定ポイント数のテキストを表示
させたときに、行内文字数が所定数以上となるかどうか
を判断する。これは、突出テキスト領域に表示されるテ
キストの行内文字数があまりに少ないと、かえってテキ
ストが読みづらくなり、これを防止するためである。
In step R5, a text area (hereinafter referred to as a "protruding text area") having a width narrower by the erosion of the image area is located on the left and right sides of the image area (positions adjacent to the text data array direction). It is determined whether or not the number of characters in a line is equal to or greater than a predetermined number when text having a predetermined number of points is displayed in the protruding text area. This is because if the number of characters in the line of the text displayed in the protruding text area is too small, the text becomes difficult to read, and this is prevented.

【0152】もし突出テキスト領域の行内文字数が所定
数以上であれば(R5:YES)、ステップR6に進ん
で突出テキスト領域にもテキストデータを配置するレイ
アウト(以下、「回り込みレイアウト」という)でテキ
ストデータを配置することとする。また、もし突出テキ
スト領域の行内文字数が所定数よりも少なければ(R
5:NO)、ステップR7に進んで突出テキスト領域に
はテキストデータを配置しないレイアウト(以下、「分
離レイアウト」という)でテキストデータを配置するこ
ととする。
If the number of characters in the line of the protruding text area is equal to or more than the predetermined number (R5: YES), the process proceeds to step R6, where the text is arranged in the layout of the text data in the protruding text area (hereinafter referred to as "wraparound layout") The data is to be arranged. If the number of characters in a line of the protruding text area is smaller than a predetermined number (R
5: NO), proceed to step R7 to arrange the text data in a layout in which no text data is arranged in the protruding text area (hereinafter, referred to as “separated layout”).

【0153】次に、ステップR8において、ステップR
6またはステップR7で決定された回り込みレイアウト
または分離レイアウトのいずれかで、テキスト領域にテ
キストデータを配置する。テキストデータの配置手法
は、上述のものを用いることができる。そして、ステッ
プR9において、テキスト領域内に所定ポイント数で表
示されたテキストデータが収まるかどうかが判断され
る。
Next, in step R8, step R
6 or the wraparound layout determined in step R7 or the separated layout, the text data is arranged in the text area. As the method of arranging the text data, those described above can be used. Then, in step R9, it is determined whether or not the text data displayed with the predetermined number of points falls within the text area.

【0154】もしテキスト領域内にテキストデータが収
まる場合には(R9:YES)、本例のデータ配置処理
を終了し、テキスト領域内にテキストデータが収まらな
い場合には(R9:NO)、画像領域を変更することな
く、印刷領域の長さを拡大することによってテキスト領
域の長さを拡大する。例えば、回り込みレイアウトが採
用された場合、図27(c)に示すように、印刷領域の
長さをH2(H2>H1)とし、分離レイアウトが採用
された場合、図27(d)に示すように、印刷領域の長
さをH3(H3>H2)とすればよい。これにより、画
像の表示に影響を与えることなく、テキストデータを適
正に表示することができるようになる。
If the text data fits in the text area (R9: YES), the data arrangement processing of this example is terminated. If the text data does not fit in the text area (R9: NO), the image Enlarge the length of the text area by increasing the length of the print area without changing the area. For example, when the wraparound layout is adopted, as shown in FIG. 27C, the length of the print area is set to H2 (H2> H1), and when the separated layout is adopted, as shown in FIG. Then, the length of the print area may be set to H3 (H3> H2). Thus, the text data can be displayed properly without affecting the display of the image.

【0155】このような手順によって、画像データおよ
びテキストデータともに過度に縮小されて見づらくなる
のを防止することができる。
According to such a procedure, it is possible to prevent the image data and the text data from being excessively reduced and difficult to see.

【0156】このように、本実施の形態によると、ブラ
ウザやワープロソフトなどの中のテキストデータや画像
データを指定するという簡単な操作だけで、指定された
画像やテキストが見やすく表示および印刷されて、手帳
やノートに貼るのに適したサイズのラベルを作成するこ
とができるようになる。従って、必要な情報だけを印刷
して手帳などに貼り付けておくことにより、タックシー
トを無駄に使用することなく、必要な情報を手軽に持ち
歩いていつでも参照することが可能となる。
As described above, according to the present embodiment, the designated image or text can be displayed and printed in an easy-to-view manner by simply specifying text data or image data in a browser or word processing software. This makes it possible to create a label having a size suitable to be attached to a notebook or notebook. Therefore, by printing only necessary information and pasting it in a notebook or the like, it becomes possible to easily carry necessary information and refer to it at any time without wasting the tack sheet.

【0157】なお、上述の実施の形態では、本発明をタ
ックシートに印刷することを例に説明したが、本発明は
必ずしもこれに関する用途に限られるものではなく、テ
キストおよび画像データ処理一般に用いることが可能で
ある。また、上述の実施の形態では、本発明のデータ処
理装置はパーソナルコンピュータによって構成されてい
たが、カッティングプリンタだけ或いカッティングプリ
ンタとパーソナルコンピュータの両方で本発明のデータ
処理装置が構成されていてもよい。
In the above-described embodiment, the present invention has been described by taking printing of the present invention on a tack sheet as an example. However, the present invention is not necessarily limited to the use related thereto, and may be used for general processing of text and image data. Is possible. Further, in the above-described embodiment, the data processing device of the present invention is constituted by a personal computer. However, the data processing device of the present invention may be constituted by only a cutting printer or both a cutting printer and a personal computer. Good.

【0158】[0158]

【発明の効果】以上説明したように、請求項1、7、8
によると、所定領域が占有比率に応じてテキスト領域と
画像領域とに分割され、相似画像データとテキストデー
タとが各領域内に自動的に配置されるので、煩雑な編集
作業を必要とすることなく、画像データおよびテキスト
データを所定領域内に見やすく且つコンパクトに配置す
ることが可能となる。
As described above, claims 1, 7, and 8 are as described above.
According to the above, a predetermined area is divided into a text area and an image area according to the occupancy ratio, and similar image data and text data are automatically arranged in each area, so that complicated editing work is required. In addition, image data and text data can be easily and compactly arranged in a predetermined area.

【0159】請求項2によると、画像データが配置され
なかった領域にもテキストデータが配置されるので、当
該領域を有効に利用してデータをよりコンパクトに配置
することが可能となる。
According to the second aspect, since the text data is also arranged in the area where the image data is not arranged, the data can be arranged more compactly by effectively utilizing the area.

【0160】請求項3によると、占有比率が可変である
ので、画像データとテキストデータのサイズの比率に応
じた最適な占有比率を選択することにより、これらのデ
ータをより一層見やすく配置することができる。
According to the third aspect, since the occupation ratio is variable, by selecting an optimum occupation ratio in accordance with the size ratio between the image data and the text data, it is possible to arrange these data more easily. it can.

【0161】請求項4によると、相似画像データの拡大
縮小率と予め定められた最小縮小率との比較に基づいて
画像領域の占有比率を拡大することにより、相似画像デ
ータが非常に小さく縮小されて見づらくなるのを防止す
ることができる。
According to the fourth aspect, the similar image data is reduced to a very small size by enlarging the occupation ratio of the image area based on a comparison between the enlargement / reduction ratio of the similar image data and a predetermined minimum reduction ratio. Can be prevented from being difficult to see.

【0162】請求項5によると、突出テキスト領域にお
けるテキストデータの行内文字数が所定数以下に少なく
なってテキストデータが見づらくなるのを防止すること
ができる。
According to the fifth aspect, it is possible to prevent the number of characters in the line of the text data in the protruding text area from being reduced to a predetermined number or less, thereby making it difficult to view the text data.

【0163】請求項6によると、テキストデータが所定
ポイント数で表示されたときにテキスト領域に収まらな
い場合に、所定領域の拡大によってテキスト領域が拡大
されるので、画像の表示に影響を与えることなくテキス
トデータを適正に表示することが可能となる。
According to the sixth aspect, when the text data is displayed in a predetermined number of points and does not fit in the text area, the text area is enlarged by enlarging the predetermined area, which affects the display of an image. And the text data can be displayed properly.

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

【図1】本発明の一実施の形態のデータ処理装置を含む
ラベル製造装置のブロック図である。
FIG. 1 is a block diagram of a label manufacturing apparatus including a data processing apparatus according to an embodiment of the present invention.

【図2】図1に示すカッティングプリンタの要部構成を
示す平面図である。
FIG. 2 is a plan view showing a main configuration of the cutting printer shown in FIG.

【図3】図1に示すカッティングプリンタの要部断面図
である。
FIG. 3 is a sectional view of a main part of the cutting printer shown in FIG.

【図4】図1に示すカッティングプリンタのカッティン
グ機構部を示す要部側断面図である。
FIG. 4 is a side sectional view of a main part showing a cutting mechanism of the cutting printer shown in FIG. 1;

【図5】図1に示すカッティングプリンタにおいて、ロ
ールシートユニットとカッティング機構部および画像形
成機構部との概略的な位置関係を示す模式的な斜視図で
ある。
FIG. 5 is a schematic perspective view showing a schematic positional relationship between a roll sheet unit, a cutting mechanism, and an image forming mechanism in the cutting printer shown in FIG. 1;

【図6】図1に示すディスプレイへのブラウザの表示例
を示す図である。
6 is a diagram showing a display example of a browser on the display shown in FIG. 1;

【図7】本発明の一実施の形態において、テキストデー
タと画像データの両方が取り込まれた場合のエディタの
表示例を示す図である。
FIG. 7 is a diagram showing a display example of an editor when both text data and image data are taken in one embodiment of the present invention.

【図8】本発明の一実施の形態におけるテキストデータ
と画像データとの識別処理に関するフローチャートであ
る。
FIG. 8 is a flowchart relating to a process of identifying text data and image data according to an embodiment of the present invention.

【図9】本発明の一実施の形態におけるテキストデータ
の整形処理に関するフローチャートである。
FIG. 9 is a flowchart relating to text data shaping processing according to an embodiment of the present invention.

【図10】本発明の一実施の形態におけるテキストデー
タの改ページおよびタックシート切断処理に関するフロ
ーチャートである。
FIG. 10 is a flowchart relating to a page break of text data and a tack sheet cutting process according to an embodiment of the present invention.

【図11】本発明の一実施の形態によってテキストデー
タがどのように整形されるかを説明するための図であ
る。
FIG. 11 is a diagram for explaining how text data is shaped according to an embodiment of the present invention.

【図12】本発明の一実施の形態によってテキストデー
タがどのように整形されるかを説明するための図であ
る。
FIG. 12 is a diagram for explaining how text data is shaped according to an embodiment of the present invention.

【図13】本発明の一実施の形態によってテキストデー
タがどのように整形されるかを説明するための図であ
る。
FIG. 13 is a diagram for explaining how text data is shaped according to an embodiment of the present invention.

【図14】本発明の一実施の形態における画像データの
配置処理の第1の例に関するフローチャートである。
FIG. 14 is a flowchart relating to a first example of image data arrangement processing according to an embodiment of the present invention.

【図15】図14に基づく画像データの配置例を印刷イ
メージとして模式的に示す図である。
15 is a diagram schematically illustrating an example of the arrangement of image data based on FIG. 14 as a print image.

【図16】本発明の一実施の形態における画像データの
配置処理の第2の例に関するフローチャートである。
FIG. 16 is a flowchart relating to a second example of image data arrangement processing according to an embodiment of the present invention.

【図17】図16に基づく画像データの配置例を印刷イ
メージとして模式的に示す図である。
17 is a diagram schematically showing an example of the arrangement of image data based on FIG. 16 as a print image.

【図18】本発明の一実施の形態における画像データの
配置処理の第3の例に関するフローチャートである。
FIG. 18 is a flowchart relating to a third example of image data arrangement processing according to an embodiment of the present invention.

【図19】本発明の一実施の形態における画像データの
配置処理の第3の例に関するフローチャートである。
FIG. 19 is a flowchart relating to a third example of image data arrangement processing according to an embodiment of the present invention.

【図20】本発明の一実施の形態における画像データの
配置処理の第3の例に関するフローチャートである。
FIG. 20 is a flowchart relating to a third example of image data arrangement processing according to an embodiment of the present invention.

【図21】図18に基づく画像データの配置例において
所定領域の分割例を印刷イメージとして模式的に示す図
である。
21 is a diagram schematically showing an example of division of a predetermined area as a print image in an example of image data arrangement based on FIG. 18;

【図22】本発明の一実施の形態におけるテキストデー
タおよび画像データの配置処理の第1の例に関するフロ
ーチャートである。
FIG. 22 is a flowchart relating to a first example of a text data and image data arrangement process according to an embodiment of the present invention.

【図23】図22に基づくテキストデータおよび画像デ
ータの配置例を印刷イメージとして模式的に示す図であ
る。
FIG. 23 is a diagram schematically illustrating an example of the arrangement of text data and image data based on FIG. 22 as a print image.

【図24】本発明の一実施の形態におけるテキストデー
タおよび画像データの配置処理の第2の例に関するフロ
ーチャートである。
FIG. 24 is a flowchart relating to a second example of a text data and image data arrangement process according to an embodiment of the present invention.

【図25】図24に基づくテキストデータおよび画像デ
ータの配置例を印刷イメージとして模式的に示す図であ
る。
FIG. 25 is a diagram schematically illustrating an example of the arrangement of text data and image data based on FIG. 24 as a print image.

【図26】本発明の一実施の形態におけるテキストデー
タおよび画像データの配置処理の第3の例に関するフロ
ーチャートである。
FIG. 26 is a flowchart relating to a third example of a text data and image data arrangement process according to an embodiment of the present invention.

【図27】図26に基づくテキストデータおよび画像デ
ータの配置例を印刷イメージとして模式的に示す図であ
る。
FIG. 27 is a diagram schematically illustrating an example of the arrangement of text data and image data based on FIG. 26 as a print image.

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

11 カッティングプリンタ 100 ラベル製造装置 110 パーソナルコンピュータ 132 ディスプレイ 134 CPU 136 RAM 157 印刷領域 158 画像領域 159 テキスト領域 11 Cutting Printer 100 Label Manufacturing Device 110 Personal Computer 132 Display 134 CPU 136 RAM 157 Printing Area 158 Image Area 159 Text Area

───────────────────────────────────────────────────── フロントページの続き (72)発明者 池戸 辰裕 愛知県名古屋市瑞穂区苗代町15番1号 ブ ラザー工業株式会社内 (72)発明者 伊藤 千年 愛知県名古屋市瑞穂区苗代町15番1号 ブ ラザー工業株式会社内 Fターム(参考) 5B009 NB14 NG02 5B050 EA12 EA20 FA03 5C076 AA21 AA22 CB02  ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Tatsuhiro Ikedo 15-1 Naeshiro-cho, Mizuho-ku, Nagoya-shi, Aichi Prefecture Inside Brother Industries, Ltd. (72) Inventor Chitose Ito 15th, Naeshiro-cho, Mizuho-ku, Nagoya-shi, Aichi Prefecture No. 1 F-term in Brother Industries, Ltd. (reference) 5B009 NB14 NG02 5B050 EA12 EA20 FA03 5C076 AA21 AA22 CB02

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 所定領域を、テキストデータが配置され
るべきテキスト領域と、画像データが配置されるべき画
像領域とに所定の占有比率に応じて分割する所定領域分
割手段と、 1または複数の前記画像データがそれぞれ相似拡大また
は相似縮小された相似画像データを、前記画像領域内に
配置する画像配置手段と、 1または複数の前記テキストデータを前記テキスト領域
内に配置するテキスト配置手段とを備えていることを特
徴とするデータ処理装置。
1. A predetermined area dividing means for dividing a predetermined area into a text area in which text data is to be arranged and an image area in which image data is to be arranged according to a predetermined occupancy ratio; Image arrangement means for arranging similar image data in which the image data is similarly enlarged or reduced in the image area, and text arrangement means for arranging one or a plurality of the text data in the text area A data processing device characterized in that:
【請求項2】 前記テキスト配置手段は、画像データが
配置されなかった前記画像領域内の領域にもテキストデ
ータを配置することを特徴とする請求項1に記載のデー
タ処理装置。
2. The data processing apparatus according to claim 1, wherein the text arranging unit arranges the text data also in an area in the image area where no image data is arranged.
【請求項3】 前記占有比率が可変であることを特徴と
する請求項1に記載のデータ処理装置。
3. The data processing device according to claim 1, wherein the occupancy ratio is variable.
【請求項4】 前記画像データに対するその相似画像デ
ータの拡大縮小率と予め定められた最小縮小率とを比較
する比較手段と、 前記比較手段による比較の結果、相似画像データの拡大
縮小率が最小縮小率よりも小さい場合に、前記画像領域
の占有比率を拡大する画像領域拡大手段とをさらに備え
ていることを特徴とする請求項3に記載のデータ処理装
置。
4. A comparing means for comparing a scaling rate of the similar image data with respect to the image data and a predetermined minimum reducing rate, and as a result of the comparison by the comparing means, the scaling rate of the similar image data is minimized. 4. The data processing apparatus according to claim 3, further comprising: an image area enlarging unit that enlarges the occupation ratio of the image area when the ratio is smaller than a reduction ratio.
【請求項5】 前記テキスト領域内にあって前記画像領
域に隣接した位置に存在する突出テキスト領域に前記テ
キストデータが配置された場合に、当該突出テキスト領
域において所定ポイント数で表示されるテキストデータ
の行内文字数が所定数以上となるかを判断する回り込み
判断手段をさらに備えていることを特徴とする請求項3
または4に記載のデータ処理装置。
5. When the text data is arranged in a protruding text area located in a position adjacent to the image area in the text area, the text data is displayed with a predetermined number of points in the protruding text area. 4. A wraparound determining means for determining whether the number of characters in a line is equal to or greater than a predetermined number.
Or the data processing device according to 4.
【請求項6】 テキストデータが所定ポイント数で表示
されたときに前記テキスト領域に収まらない場合に、前
記所定領域の拡大によって前記テキスト領域を拡大する
テキスト領域拡大手段をさらに備えていることを特徴と
する請求項3〜5のいずれか1項に記載のデータ処理装
置。
6. A text area enlarging means for enlarging the text area by enlarging the predetermined area when the text data does not fit in the text area when displayed with a predetermined number of points. The data processing device according to any one of claims 3 to 5, wherein
【請求項7】 所定領域を、テキストデータが配置され
るべきテキスト領域と、画像データが配置されるべき画
像領域とに所定の占有比率に応じて分割する所定領域分
割ステップと、 1または複数の前記画像データがそれぞれ相似拡大また
は相似縮小された相似画像データを、前記画像領域内に
配置する画像配置ステップと、 1または複数の前記テキストデータを前記テキスト領域
内に配置するテキスト配置ステップとを有していること
を特徴とするデータ処理方法。
7. A predetermined area dividing step of dividing a predetermined area into a text area in which text data is to be arranged and an image area in which image data is to be arranged according to a predetermined occupation ratio; An image arranging step of arranging, in the image area, similar image data in which the image data is similarly enlarged or similar, and a text arranging step of arranging one or a plurality of the text data in the text area. A data processing method comprising:
【請求項8】 所定領域を、テキストデータが配置され
るべきテキスト領域と、画像データが配置されるべき画
像領域とに所定の占有比率に応じて分割する所定領域分
割手段、 1または複数の前記画像データがそれぞれ相似拡大また
は相似縮小された相似画像データを、前記画像領域内に
配置する画像配置手段、 1または複数の前記テキストデータを前記テキスト領域
内に配置するテキスト配置手段としてコンピュータを機
能させるためのプログラムを記録したコンピュータ読み
取り可能な記録媒体。
8. A predetermined area dividing means for dividing a predetermined area into a text area in which text data is to be arranged and an image area in which image data is to be arranged according to a predetermined occupancy ratio. Image arranging means for arranging similar image data in which image data are respectively similar enlarged or similar to each other in the image area; and causing a computer to function as text arranging means for arranging one or a plurality of the text data in the text area. Readable recording medium on which a program for recording is recorded.
JP27947199A 1999-09-30 1999-09-30 Device and method for data processing and recording medium Pending JP2001101179A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP27947199A JP2001101179A (en) 1999-09-30 1999-09-30 Device and method for data processing and recording medium
EP00121451A EP1089163B1 (en) 1999-09-30 2000-09-29 Data processing for arranging text and image data on a substrate
AT00121451T ATE238584T1 (en) 1999-09-30 2000-09-29 DATA PROCESSING TO APPLY TEXT AND IMAGE DATA TO A SUBSTRATE
DE60002274T DE60002274T2 (en) 1999-09-30 2000-09-29 Data processing to apply text and image data on a substrate
US09/672,033 US7184167B1 (en) 1999-09-30 2000-09-29 Data processing for arranging text and image data on a substrate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27947199A JP2001101179A (en) 1999-09-30 1999-09-30 Device and method for data processing and recording medium

Publications (1)

Publication Number Publication Date
JP2001101179A true JP2001101179A (en) 2001-04-13

Family

ID=17611531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27947199A Pending JP2001101179A (en) 1999-09-30 1999-09-30 Device and method for data processing and recording medium

Country Status (1)

Country Link
JP (1) JP2001101179A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005135397A (en) * 2003-10-15 2005-05-26 Canon Inc Document layout method
US7930632B2 (en) 2004-08-27 2011-04-19 Canon Kabushiki Kaisha Information processing apparatus, control method therefor, and computer-readable medium displaying a layout result on the basis of adjustment record information stored with respect to a predetermined record
JP2014099182A (en) * 2013-12-10 2014-05-29 Toshiba Corp Electronic apparatus and handwritten document processing method
US9025879B2 (en) 2012-10-26 2015-05-05 Kabushiki Kaisha Toshiba Electronic apparatus and handwritten document processing method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005135397A (en) * 2003-10-15 2005-05-26 Canon Inc Document layout method
JP2008052739A (en) * 2003-10-15 2008-03-06 Canon Inc Layout method and device, and its program
US7554689B2 (en) 2003-10-15 2009-06-30 Canon Kabushiki Kaisha Document layout method
US8713430B2 (en) 2003-10-15 2014-04-29 Canon Kabushiki Kaisha Document layout method
US7930632B2 (en) 2004-08-27 2011-04-19 Canon Kabushiki Kaisha Information processing apparatus, control method therefor, and computer-readable medium displaying a layout result on the basis of adjustment record information stored with respect to a predetermined record
US9025879B2 (en) 2012-10-26 2015-05-05 Kabushiki Kaisha Toshiba Electronic apparatus and handwritten document processing method
JP2014099182A (en) * 2013-12-10 2014-05-29 Toshiba Corp Electronic apparatus and handwritten document processing method

Similar Documents

Publication Publication Date Title
EP1089163B1 (en) Data processing for arranging text and image data on a substrate
JP5189497B2 (en) Form creation system, network system using the same, and form creation method.
JP4900058B2 (en) Label data creation device, program, and recording medium
CN102779118B (en) Paper typesetting method and system
JP5341388B2 (en) Document processing apparatus and document processing method
US7984386B1 (en) Print page user interface
JP4924566B2 (en) Label data creation device, program, and recording medium
JP5495597B2 (en) PRINT CONTROL METHOD, PRINT CONTROL DEVICE, AND PROGRAM
JP2006293598A (en) Document processing system
US20030222916A1 (en) Object-oriented processing of tab text
JP2001101179A (en) Device and method for data processing and recording medium
CN100446988C (en) Print data compiling device and method, print data compiling program, and printing method
JP2001096832A (en) Image data processor, image data processing method and recording medium
JP2001101180A (en) Device and method for data processing and recording medium
JP2001101167A (en) Text data processor, its method and recording medium
JP4946408B2 (en) Printing system and printing control method in printing system
JP2005103929A (en) Apparatus for forming small printed matter, method for forming small printed matter and program for forming small printed matter
JPH0675952A (en) Document preparing device
JP4000659B2 (en) Printer device, printer controller, and computer-readable recording medium recording printer control program
JP2007253338A (en) Printer, method for printing, and printing program
JP7310864B2 (en) Print data editing method and print data editing program
JPH01229673A (en) English and european writing printing control system
JP4347020B2 (en) Setting information registration device
JP3547407B2 (en) Tape printer
JP4844364B2 (en) Image processing apparatus and program