JPH0632008A - Document printer control - Google Patents
Document printer controlInfo
- Publication number
- JPH0632008A JPH0632008A JP21317792A JP21317792A JPH0632008A JP H0632008 A JPH0632008 A JP H0632008A JP 21317792 A JP21317792 A JP 21317792A JP 21317792 A JP21317792 A JP 21317792A JP H0632008 A JPH0632008 A JP H0632008A
- Authority
- JP
- Japan
- Prior art keywords
- character
- character string
- printing
- shift
- length
- 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
Links
Landscapes
- Record Information Processing For Printing (AREA)
- Character Spaces And Line Spaces In Printers (AREA)
Abstract
(57)【要約】
【目的】 一行に複数の文字列を印字する場合、それぞ
れの文字列を所定の中心位置に合わせる。この時、各文
字の長さ(文字列の長さ方向)が一定でない「プロポー
ショナル英字体」も位置合せを可能とする。
【構成】 各文字フォントの横方向の長さを登録した文
字長表を参照して一行に印字すべき各文字列の印字面上
での長さを求め、この各文字列の印字面上での長さと印
字装置の印字可能領域左端から各ビクの中心位置までの
距離とに基づいて、それぞれの文字列の印字開始位置ま
での桁送りを制御する。
(57) [Summary] [Purpose] When printing multiple character strings on one line, align each character string with the specified center position. At this time, the "proportional alphabet" in which the length of each character (length direction of the character string) is not constant can be aligned. [Structure] Referring to the character length table that registers the horizontal length of each character font, find the length on the printing surface of each character string that should be printed on one line, and then check the printing surface of each character string. Based on the length of the character string and the distance from the left end of the printable area of the printing device to the center position of each print, the column shift to the print start position of each character string is controlled.
Description
【0001】[0001]
【産業上の利用分野】本発明は、文字の印字装置に関
し、特に氏名や住所等のラベル作成の為の不定の長さの
文字列を印字する文書印刷制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character printing device, and more particularly to a document print control device for printing a character string of indefinite length for making labels such as names and addresses.
【0002】[0002]
【従来の技術】ラベルに氏名や住所等を印刷する場合に
ビクが使用されている。ビクとは、ラベル用紙の裏面に
糊料を塗布し、台紙となる剥離紙を重ねたものを表面か
ら予め定められた形状にラベル用紙だけを打ち抜いたも
のである。図2に4行×3列のビクの例を示す。この例
では12枚のラベル用紙が1枚の台紙上に設置されてい
る。2. Description of the Related Art Biku is used for printing names, addresses, etc. on labels. Biku is a paper in which a paste is applied to the back surface of the label paper, a release paper serving as a backing paper is piled up, and only the label paper is punched from the front surface into a predetermined shape. FIG. 2 shows an example of 4 rows × 3 columns. In this example, 12 label sheets are set on one sheet.
【0003】従来、このようなビクに氏名や住所等を印
字する時は、各文字が固定の桁ピッチで印字され、各文
字列が許される最大の長さを該ピッチで除した桁数まで
の印字に限られていた。また、文字列のビクの中心に合
わせるために、文字列の文字数(この場合桁数に等し
い)を用いていた。Conventionally, when printing a name, address, etc. on such a page, each character is printed at a fixed digit pitch and up to the number of digits obtained by dividing the maximum allowable length of each character string by the pitch. Was limited to printing. In addition, the number of characters in the character string (which is equal to the number of digits in this case) was used to match the center of the character string.
【0004】[0004]
【発明が解決しようとする課題】ところが、英文字はタ
イプフェースの幅(横方向の長さ)が不均等であり、前
記のような従来の固定桁ピッチで英文のラベルを印字す
ると、文字と文字の間隔が不均一になり非常に見苦しく
なる。すなわち、英文字はタイプフェースの幅のばらつ
きが大きく、固定桁ピッチの幅と各タイプフェースの幅
の差が文字と文字の間隔となるため、隣接文字間の間隔
が不均等となり、美しい文字配列が得られないという問
題点があった。However, the width of the typeface (horizontal direction) of the English characters is not uniform, and if the English labels are printed at the conventional fixed digit pitch as described above, the characters will be Character spacing becomes uneven, making it very unsightly. In other words, in English characters, the width of the typeface varies widely, and the difference between the fixed digit pitch width and the width of each typeface is the distance between the characters. There was a problem that was not obtained.
【0005】また英文字のようなタイプフェースの幅が
一定でない文字を、その文字のタイプフェースの幅に応
じて桁送りして印字するプロポーョナル印字法がある。
ところが印字される文字列の長さが文字列の内容によっ
て異なるので、ラベル印字のような中心位置合わせが必
要な印字には、プロポーショナル印字法は利用出来ない
という問題点があった。There is also a proportional printing method in which a character such as an English character whose width of a typeface is not constant is shifted and printed according to the width of the typeface of the character.
However, since the length of the character string to be printed varies depending on the content of the character string, there is a problem that the proportional printing method cannot be used for printing such as label printing that requires center alignment.
【0006】本発明は前記問題点を解決すべくなされた
ものであって、英文字のように文字のタイプフェースの
幅の変動が大きくても、隣接文字間の間隔がほぼ一定と
なるようなプロポーショナル印字法により、図2に示す
ようなビクの中心に文字列の中心を合わせて印字するこ
とが出来る文書印刷制御装置を提供することを課題とす
る。The present invention has been made to solve the above-mentioned problems, and even if the width of the typeface of a character varies greatly like English characters, the spacing between adjacent characters becomes almost constant. It is an object of the present invention to provide a document printing control device capable of printing by aligning the center of a character string with the center of a character as shown in FIG. 2 by the proportional printing method.
【0007】[0007]
【課題を解決するための手段】本発明は、文字列または
文書を文字コードで格納する記憶手段と、前記文字コー
ドによりキャラクタジェネレータを読み出し該文字コー
ドに対応する文字フォントを得る手段と、前記文字フォ
ントにもとづき印字を行う印字制御手段とを有するワー
ドプロセッサにおいて、各文字フォントの印字方向の長
さを登録した文字長表と、一行に印字すべき複数の文字
列の印字面上での長さをそれぞれ前記文字長表を参照し
て求める手段と、前記求められた各文字列の印字面上で
の長さと印字装置の印字可能領域左端から各ビクの中心
位置までの距離とにもとづいて、それぞれの文字列の印
字開始位置までの桁送りを制御する手段とを備えること
により、前記課題を解決するものである。According to the present invention, a storage means for storing a character string or a document with a character code, a means for reading a character generator with the character code to obtain a character font corresponding to the character code, and the character In a word processor having a print control means for performing printing based on fonts, a character length table in which the length in the print direction of each character font is registered, and the length on the print surface of a plurality of character strings to be printed in one line are displayed. Based on the means for obtaining each by referring to the character length table, and the length on the printing surface of each of the obtained character strings and the distance from the left end of the printable area of the printing device to the center position of each print, respectively. And a means for controlling the shift of the character string up to the print start position.
【0008】また本発明においては、前記文字列の印字
開始位置までの桁送りを制御する手段が、各文字列の印
字開始位置までの桁送りを行う際に、印字制御手段に対
して特定の文字と該文字に対する印字抑止とを指示する
ことにより、特定の文字の印字方向の長さを桁送りピッ
チとすることができる。Further, in the present invention, the means for controlling the shift of the character string to the print start position is specific to the print control means when performing the shift of the character string to the print start position. By instructing a character and inhibition of printing for the character, the length of the specific character in the printing direction can be used as the shift pitch.
【0009】また本発明においては、前記文字列の印字
開始位置までの桁送りを制御する手段が、各文字列の印
字開始位置までの桁送りを行う際に、桁送りに必要な距
離を複数の桁送りピッチ候補でそれぞれ除算し、その余
りが最小となる桁送りピッチを選択して桁送りを行うこ
とができる。Further, in the present invention, the means for controlling the digit shift to the print start position of the character string provides a plurality of distances required for the digit shift when performing the digit shift to the print start position of each character string. It is possible to perform the digit shift by dividing each by the digit shift pitch candidates of and selecting the digit shift pitch having the minimum remainder.
【0010】また本発明においては、前記桁送りピッチ
候補のそれぞれのピッチの比が素数比であるように設定
することができる。Further, in the present invention, it is possible to set the pitch ratio of each of the shift pitch candidates to be a prime number ratio.
【0011】[0011]
【作用】本発明は、プロポーショナル印字法により印字
される各文字フォントの横方向(印字方向)の長さを登
録した文字長表を参照して、一行に印字すべき各文字列
の印字面上での長さを求める。この各文字列の印字面上
での長さと印字装置の印字可能領域左端から各ビクの中
心位置までの距離からそれぞれの文字列の印字開始位置
を求める。この印字開始位置からビクのプロポーショナ
ル印字を行い、ラベルの中央に美しい英文字の配列が印
字される。The present invention refers to the character length table in which the horizontal (printing direction) lengths of the respective character fonts printed by the proportional printing method are registered, and on the printing surface of each character string to be printed in one line. Find the length at. The print start position of each character string is obtained from the length of each character string on the printing surface and the distance from the left end of the printable area of the printing device to the center position of each print. Biproportional printing is performed from this printing start position, and a beautiful array of English characters is printed in the center of the label.
【0012】[0012]
【実施例】以下、図面を参照して本発明の実施例を説明
する。図3に本発明が適用されるワードプロセッサの構
成例を示す。CPU11には3種のメモリが接続されて
いる。プログラムROM12と、キャラクタジェネレー
タROM13と、作業用記憶RAM14である。プログ
ラムROM12には、文書作成、編集、校正、表示制
御、キーボード制御、印字制御、ファイルメモリ制御等
の各プログラムが格納されている。キャラクタジェネレ
ータROM13には、文字コードに対応した文字フォン
トが格納されている。ROM12とROM13は同一の
ROMで構成することも可能である。印字すべき文字列
または文書は、プログラムROM12に格納されたプロ
グラムにより作業用記憶RAM14に作成される。Embodiments of the present invention will be described below with reference to the drawings. FIG. 3 shows a configuration example of a word processor to which the present invention is applied. Three kinds of memories are connected to the CPU 11. A program ROM 12, a character generator ROM 13, and a work storage RAM 14. The program ROM 12 stores programs such as document creation, editing, proofreading, display control, keyboard control, print control, and file memory control. The character generator ROM 13 stores character fonts corresponding to character codes. The ROM 12 and the ROM 13 can be configured by the same ROM. A character string or a document to be printed is created in the work storage RAM 14 by the program stored in the program ROM 12.
【0013】なお、図3において、ディスプレイ制御装
置15からDISK23までは、通常のワードプロセッ
サと同様であり、また本発明の動作と直接関係がないの
で詳細な説明は省略する。In FIG. 3, the display control device 15 to the DISK 23 are the same as a normal word processor and are not directly related to the operation of the present invention, so a detailed description thereof will be omitted.
【0014】本発明の文字長表はキャラクタジェネレー
タROM13の一部に格納されている。文字長表とその
アクセスは後に詳細に述べる。文字長表を参照して文字
列の印字面上での長さを求める手段としてのプログラム
は、プログラムROM12に格納されている。また本発
明の文字列の印字開始位置までの桁送りを制御する手段
としてのプログラムも、プログラムROM12に格納さ
れている。The character length table of the present invention is stored in a part of the character generator ROM 13. The character length table and its access will be described in detail later. A program as a means for obtaining the length of the character string on the printing surface with reference to the character length table is stored in the program ROM 12. A program as a means for controlling the shift of the character string to the print start position of the present invention is also stored in the program ROM 12.
【0015】次に、図1の文字列の配置図について説明
する。図1は1行に3つの異なる文字列を印字する場合
を示し、対応するビクは図2に示すように3列に並んで
いるものとする。ビクの縦方向の並びの数(行数)は特
に制限がなく、ロール状の台紙でビクが供給されてもよ
い。図1において、印字装置が印字可能な領域の左端を
列方向の座標の基準とする。この基準から各ビクの中心
位置までの距離をそれぞれD1,D2,D3とする。ビ
ク1に印字されるべき文字列を文字列1、ビク2に印字
されるべき文字列を文字列2、ビク3に印字されるべき
文字列を文字列3とする。Next, the layout of the character strings in FIG. 1 will be described. FIG. 1 shows a case where three different character strings are printed in one line, and the corresponding pages are arranged in three columns as shown in FIG. There is no particular limitation on the number of rows (the number of rows) in the vertical direction, and the sheets may be supplied by a roll-shaped mount. In FIG. 1, the left end of the printable area of the printing device is used as a reference for the coordinates in the column direction. The distances from this reference to the center position of each frame are D1, D2, and D3, respectively. It is assumed that the character string to be printed on BIKU 1 is character string 1, the character string to be printed on BIKU 2 is character string 2, and the character string to be printed on BIKU 3 is character string 3.
【0016】各文字列の長さは、後述する方法で求めら
れるが、その値をそれぞれT1,T2,T3とする。X
1は基準から文字列1の開始位置までの距離を示し、X
2は文字列1の終端から文字列2の開始位置までの距離
を示し、X3は文字列2の終端から文字列3の開始位置
までの距離を示す。S1からS3については次のフロー
チャートで述べる。The length of each character string can be obtained by the method described later, and the values are set as T1, T2 and T3, respectively. X
1 indicates the distance from the reference to the start position of the character string 1, and X
2 indicates the distance from the end of the character string 1 to the start position of the character string 2, and X3 indicates the distance from the end of the character string 2 to the start position of the character string 3. S1 to S3 will be described in the next flow chart.
【0017】次に、本発明の第1の実施例を図4から図
7を参照して説明する。図4は、第1の実施例のフロー
チャートである。計算式はJIS準拠のFORTRAN
文法(除算をA/Bで表し、乗算をA*Bで表すなど)
で表記されている。図5は、図4中で引用される文字列
I(I=1,2,3)の長さTI(I=1,2,3)計
算のサブルーチンのフローチャートである。図6は、J
ISローマ字・片仮名用8単位符号の一部を示す。1つ
の文字を表わす文字コードは1バイト(8ビット)から
なり、上位4ビットを列で、下位4ビットを行で示す。
図7は文字長表を示し、そのサイズは256ワード×1
バイトである。文字長表はCLTHで代表されるアドレ
スから始まり、文字コードの順に該当する文字の長さ
(横方向の長さ)の数値が格納されている。Next, a first embodiment of the present invention will be described with reference to FIGS. FIG. 4 is a flowchart of the first embodiment. The calculation formula is JIS-compliant FORTRAN
Grammar (divide by A / B, multiply by A * B, etc.)
It is written in. FIG. 5 is a flowchart of a subroutine for calculating the length TI (I = 1, 2, 3) of the character string I (I = 1, 2, 3) quoted in FIG. FIG. 6 shows J
A part of the 8 unit code for IS Romaji / Katakana is shown. A character code representing one character consists of 1 byte (8 bits), and the upper 4 bits are shown in columns and the lower 4 bits are shown in rows.
FIG. 7 shows a character length table, the size of which is 256 words x 1
It is a byte. The character length table starts from an address represented by CLTH, and stores numerical values of the lengths (horizontal lengths) of the corresponding characters in the order of character codes.
【0018】次に図4の動作をフローチャートのステッ
プを追いながら説明する。説明の前提として、ソースプ
ログラムにおいて、N1,N2,N3について整数の型
宣言が行なわれているものとする。従って実行プログラ
ムにおいては、N1,N2,N3はそれぞれ整数として
取り扱われ、除算によりN1,N2,N3をそれぞれ求
める際には小数点以下の切り捨てが行なわれる。さて、
図4のフローチャートにおいて開始するとすぐ文字列1
の長さT1計算のサブルーチンがコールされる。(ステ
ップ110)。次いで、文字列2の長さT2計算のサブ
ルーチンがコールされる。(ステップ120)。次い
で、文字列3の長さT3計算のサブルーチンがコールさ
れる。(ステップ130)。この三つのサブルーチンは
実は一つの同一の手続きで、その内容の詳細を図5のフ
ローチャートに示す。Next, the operation of FIG. 4 will be described by following the steps of the flowchart. As a premise of the description, it is assumed that integer type declarations are made for N1, N2, and N3 in the source program. Therefore, in the execution program, N1, N2, and N3 are treated as integers, respectively, and fractions below the decimal point are truncated when N1, N2, and N3 are obtained by division. Now,
In the flowchart of FIG.
The subroutine for the calculation of the length T1 is called. (Step 110). Then, the subroutine for calculating the length T2 of the character string 2 is called. (Step 120). Next, the subroutine for calculating the length T3 of the character string 3 is called. (Step 130). These three subroutines are actually one and the same procedure, and the details of their contents are shown in the flowchart of FIG.
【0019】図5のフローチャートの入口は「文字列I
の長さTI計算」となっており、サブルーチンをコール
したときの文字列の区別であるIの値(1から3まで)
が代入される。次いで、文字列Iの文字数LIが読み出
される(ステップ310)。次いで、文字列Iの長さT
Iを記憶するエリアがクリアされる(ステップ32
0)。次いで、ステップ310で読み出された文字数L
Iと0が比較される(ステップ330)。ステップ33
0において、文字数LIが0に等しいか負であれば、そ
のまま元のプログラムへ復帰する(RETURN出
口)。同じくステップ330において、文字数LIが正
であれば処理を続行し次のステップ340へ移る。The entrance of the flowchart of FIG.
"Length TI calculation", and the value of I (1 to 3) that is the distinction of the character string when the subroutine is called
Is substituted. Next, the number of characters LI of the character string I is read (step 310). Next, the length T of the character string I
The area for storing I is cleared (step 32).
0). Next, the number of characters L read in step 310
I and 0 are compared (step 330). Step 33
At 0, if the number of characters LI is equal to 0 or is negative, the original program is directly returned (RETURN exit). Similarly, if the number of characters LI is positive in step 330, the process is continued and the process proceeds to the next step 340.
【0020】次に、文字列テーブル先頭アドレスをメモ
リから読み出し、CLTHと名づけられた作業域へ移さ
れる(ステップ340)。次いで、文字列Iから1文字
分文字コードを読み出して、CDと名づけられた作業域
へ移される(ステップ350)。次いで、CLTHとC
Dを加算したアドレスから前記1文字に相当する文字長
を読み出し、CLと名づけられた作業域へ移される(ス
テップ360)。Next, the start address of the character string table is read from the memory and moved to a work area named CLTH (step 340). Next, the character code for one character is read from the character string I and moved to the work area named CD (step 350). Then CLTH and C
The character length corresponding to the one character is read from the address to which D is added, and the character length is moved to the work area named CL (step 360).
【0021】次いで、長さエリアTIの値にCLの値が
加算され再びTIに格納される(ステップ370)。次
いで、文字数エリアLIの値が1だけ減じられる(ステ
ップ380)。ステップ380の後は再びステップ33
0に戻る。こうして最初に読み出された文字数LIだけ
の回数分ループを繰り返した後、LIが0となってステ
ップ330でLI=0と判定され元のプログラムへ戻
る。このときTIには文字列Iの長さが求められている
(I=1,2,3)。Next, the value of CL is added to the value of the length area TI and the result is stored again in TI (step 370). Next, the value of the character number area LI is decremented by 1 (step 380). After step 380, step 33 is performed again.
Return to 0. After repeating the loop for the number of characters LI read out in this way, LI becomes 0 and it is determined in step 330 that LI = 0, and the process returns to the original program. At this time, the length of the character string I is obtained in TI (I = 1, 2, 3).
【0022】次に、メインルーチンに戻ったプログラム
は、印字面の基準からビク1の中心までの距離D1(図
1参照)と前記求められたT1からX1を求め、このX
1を桁送りピッチAで除算し小数点以下を切り捨てたN
1を求め、このN1と桁送りピッチAの積S1を求める
(ステップ140)。このN1が桁送りに必要な桁数と
なり、N1桁だけ桁送りを行う(ステップ150)。Next, the program returning to the main routine obtains the distance D1 (see FIG. 1) from the reference of the printing surface to the center of the image 1 and the obtained T1 to X1.
N divided by 1 by shift pitch A and rounded down to the nearest whole number
1 is calculated, and the product S1 of N1 and the shift pitch A is calculated (step 140). This N1 becomes the number of digits required for digit shifting, and digit shifting is performed by N1 digits (step 150).
【0023】ここでS1はこの桁送りの際に実際に印字
ヘッドが動いた距離となり後で使用される。次いで、文
字列1のプロポーショナル印字が行なわれる(ステップ
160)。こうして文字列1の中心がビク1の中心に合
致した態様で文字列1の美しいプロポーショナル印字が
行なわれる。Here, S1 is the distance actually moved by the print head during this shift, and is used later. Then, proportional printing of the character string 1 is performed (step 160). In this way, beautiful proportional printing of the character string 1 is performed in such a manner that the center of the character string 1 coincides with the center of the character 1.
【0024】次に、文字列1の印字後桁送りすべき桁数
N2が計算される(ステップ170)。次いで、N2桁
だけ桁送りされる(ステップ180)。次いで、文字列
2のプロポーショナル印字が行なわれる(ステップ19
0)。次いで、文字列3の印字後桁送りすべき桁数N3
が計算される(ステップ200)。次いで、N3桁だけ
桁送りされる(ステップ210)。次いで、文字列3の
プロポーショナル印字が行なわれる(ステップ22
0)。以上のシーケンスで一行3列のビクに対して、そ
れぞれに印字される文字列の中心とビクの中心とが一致
した態様で配列の美しいプロポーショナル印字が行なわ
れたこととなる。Next, the number N2 of digits to be shifted after printing the character string 1 is calculated (step 170). Then, N2 digits are shifted (step 180). Then, proportional printing of the character string 2 is performed (step 19).
0). Next, the number of digits N3 to be shifted after printing the character string 3
Is calculated (step 200). Then, N3 digits are shifted (step 210). Then, proportional printing of the character string 3 is performed (step 22).
0). According to the above sequence, beautiful proportional printing of the array is performed on the vik of one row and three columns such that the center of the character string printed on each vik matches the center of the vik.
【0025】次に、本発明の第2の実施例について、図
8と図9のフローチャートを参照しながら詳細に説明す
る。本実施例は複数の桁送りピッチ候補として、P1<
P2<P3の関係にある三つの桁送りピッチP1,P
2,P3準備する。そして桁送り数計算の過程におい
て、桁送り誤差が最小となる桁送りピッチを選択して桁
送りを行う。これ以外の条件は第1の実施例と同じであ
る。図8はフローチャートの前半を示し、図9は後半を
示す。Next, a second embodiment of the present invention will be described in detail with reference to the flow charts of FIGS. 8 and 9. In this embodiment, P1 <is set as a plurality of shift pitch candidates.
Three shift pitches P1 and P in the relationship of P2 <P3
2, P3 prepare. Then, in the process of calculating the number of shifts, the shift pitch that minimizes the shift error is selected to perform the shift. The other conditions are the same as those in the first embodiment. FIG. 8 shows the first half of the flowchart, and FIG. 9 shows the second half.
【0026】図8によると、最初にそれぞれの文字列の
長さT1,T2,T3を計算(ステップ400〜40
6)する。ここで呼ばれるサブルーチンは第1の実施例
と同じ図5のサブルーチンである。次いで、文字列1の
先頭までの桁送り距離X1と、このX1をそれぞれの桁
送りピッチP1,P2,P3で除した余りR1,R2,
R3を求める(ステップ410)。ここでAINTとい
う関数は引数の整数化を行う関数である。次いで、R
1,R2,R3の中から最小のものを選ぶ(ステップ4
30,440,450)。According to FIG. 8, first the lengths T1, T2 and T3 of the respective character strings are calculated (steps 400-40).
6) Do. The subroutine called here is the same as the first embodiment shown in FIG. Next, the shift distance X1 to the beginning of the character string 1 and the remainders R1, R2 obtained by dividing this X1 by the respective shift pitches P1, P2, P3.
R3 is calculated (step 410). Here, the function AINT is a function for converting the argument into an integer. Then R
Select the smallest one among 1, R2, R3 (Step 4
30, 440, 450).
【0027】この結果、R1が最小のときはステップ4
60へ制御が移る。また、R2が最小のときはステップ
480へ制御が移る。また、R3が最小のときはステッ
プ500へ制御が移る。次いで、選ばれた最小の余りR
J(J=1,2,3)に対応する桁送りピッチPJ(J
=1,2,3)で桁送りに必要な距離X1を除し小数点
以下を切り捨てたものをN1とし、次の計算の為にこの
時実際に桁送りされる距離S1を求める(ステップ46
0またはステップ480またはステップ500)。次い
で、N1桁分の桁送りが前記選ばれた桁送りピッチPJ
(J=1,2,3)で行なわれる(ステップ470,4
90,510)。次いで、文字列1をプロポーショナル
印字する(ステップ520)。As a result, when R1 is the minimum, step 4
Control is transferred to 60. When R2 is the minimum, the control shifts to step 480. When R3 is the minimum, the control moves to step 500. Then the smallest remainder R chosen
Shift pitch PJ (J = 1, 2, 3) corresponding to J (J = 1, 2, 3)
= 1,2,3), the distance X1 required for shift is divided and the number after the decimal point is discarded to obtain N1, and the distance S1 actually shifted at this time is calculated for the next calculation (step 46).
0 or step 480 or step 500). Next, N1 digit shift is performed by the selected shift pitch PJ.
(J = 1, 2, 3) (steps 470, 4)
90, 510). Next, the character string 1 is proportionally printed (step 520).
【0028】次いで、文字列1の印字後桁送りすべき距
離X2と、このX2をそれぞれの桁送りピッチP1,P
2,P3で除した余りR1,R2,R3を求める(ステ
ップ530)。Next, the distance X2 to be shifted after printing the character string 1 and this shifting pitch X2 are respectively shifted to pitches P1 and P.
Remainders R1, R2, R3 divided by 2, P3 are obtained (step 530).
【0029】次に、図8から図9に移り、R1,R2,
R3の中から最小のものを選ぶ(ステップ540,54
5,550)。この選択はステップ430から450に
記述された手続と同じ手続で行なわれる。次いで、選ば
れたRJに対応する桁送りピッチPJで桁送りに必要な
距離X2を除してN2を求め、次の計算の為のS2を求
める(ステップ560,580,600)。次いで、N
2桁分の桁送りが桁送りピッチPJで行なわれる(ステ
ップ570,590,610)。次いで、文字列2をプ
ロポーショナル印字する(ステップ620)。Next, moving from FIG. 8 to FIG. 9, R1, R2,
Select the smallest of R3 (steps 540, 54)
5,550). This selection is made by the same procedure described in steps 430-450. Next, the distance X2 required for shift is divided by the shift pitch PJ corresponding to the selected RJ to obtain N2, and S2 for the next calculation is obtained (steps 560, 580, 600). Then N
Two digit shifts are performed at the shift pitch PJ (steps 570, 590, 610). Next, the character string 2 is proportionally printed (step 620).
【0030】次に、文字列2の印字後桁送りすべき距離
X3と、このX3をそれぞれの桁送りピッチP1,P
2,P3で除した余りR1,R2,R3を求める(ステ
ップ630)。次いで、前記と同様に最小の値をもつR
Jを選ぶ(ステップ640,650,660)。次い
で、選ばれたRJに対応する桁送りピッチPJで桁送り
に必要な距離X3を除してN3を求める(ステップ67
0,690,710)。次いで、N3桁分の桁送りが桁
送りピッチPJで行なわれる(ステップ680,70
0,720)。最後に、文字列3をプロポーショナル印
字して(ステップ730)処理を終了する。Next, the distance X3 to be shifted after printing the character string 2 and this shifting pitch X3 are respectively shifted to pitches P1 and P.
Remainders R1, R2, R3 divided by 2, P3 are obtained (step 630). Then R with the smallest value as above
Select J (steps 640, 650, 660). Next, N3 is obtained by dividing the distance X3 required for shift by the shift pitch PJ corresponding to the selected RJ (step 67).
0,690,710). Then, N3 digit shifts are performed at the shift pitch PJ (steps 680, 70).
0,720). Finally, the character string 3 is proportionally printed (step 730), and the process ends.
【0031】[0031]
【発明の効果】以上説明した通り、本発明によれば、ビ
クの中心に文字列の中心が合致した態様で、所定の文字
列をプロポーショナル印字することができ、文字配列の
美しい高品質のラベルが得られるという効果がある。As described above, according to the present invention, it is possible to proportionally print a predetermined character string in such a manner that the center of the character string coincides with the center of the line, and a high quality label with a beautiful character arrangement can be obtained. Is obtained.
【図1】図1は、本発明の文書印刷制御装置の実施例に
よる文字列位置の説明図である。FIG. 1 is an explanatory diagram of character string positions according to an embodiment of a document print control apparatus of the present invention.
【図2】図2は、本発明の文書印刷制御装置の実施例に
使用される印字媒体であるビクの説明図である。FIG. 2 is an explanatory diagram of a print medium used in the embodiment of the document print control apparatus according to the present invention.
【図3】図3は、本発明の文書印刷制御装置の実施例が
組み込まれているワードプロセッサの例を示す構成図で
ある。FIG. 3 is a block diagram showing an example of a word processor in which an embodiment of the document print control apparatus of the present invention is incorporated.
【図4】図4は、本発明の第1の実施例のフローチャー
トである。FIG. 4 is a flowchart of the first embodiment of the present invention.
【図5】図5は、本発明の第1、第2の実施例に共通な
文字列Iの長さTIの計算のサブルーチンを示すフロー
チャートである。FIG. 5 is a flowchart showing a subroutine for calculating a length TI of a character string I common to the first and second embodiments of the present invention.
【図6】図6は、文字コードの例を示す表である。FIG. 6 is a table showing an example of character codes.
【図7】図7は、文字長表の例を示す説明図である。FIG. 7 is an explanatory diagram showing an example of a character length table.
【図8】図8は、本発明の第2の実施例のフローチャー
トの前半である。FIG. 8 is the first half of the flowchart of the second embodiment of the present invention.
【図9】図9は、本発明の第2の実施例のフローチャー
トの後半である。FIG. 9 is the second half of the flowchart of the second embodiment of the present invention.
1 台紙 2 ラベル 1 mount 2 label
Claims (4)
る記憶手段と、前記文字コードによりキャラクタジェネ
レータを読み出し該文字コードに対応する文字フォント
を得る手段と、前記文字フォントにもとづき印字を行う
印字制御手段とを有するワードプロセッサにおいて、 各文字フォントの印字方向の長さを登録した文字長表
と、 一行に印字すべき複数の文字列の印字面上での長さをそ
れぞれ前記文字長表を参照して求める手段と、 前記求められた各文字列の印字面上での長さと印字装置
の印字可能領域左端から各ビクの中心位置までの距離と
にもとづいて、それぞれの文字列の印字開始位置までの
桁送りを制御する手段とを備えることを特徴とする文書
印刷制御装置。1. A storage means for storing a character string or a document with a character code, a means for reading a character generator with the character code to obtain a character font corresponding to the character code, and a print control for performing printing based on the character font. In a word processor having a means, refer to the character length table in which the lengths in the printing direction of each character font are registered and the lengths on the printing surface of a plurality of character strings to be printed in one line, respectively. To the print start position of each character string based on the obtained length on the printing surface of each character string and the distance from the left end of the printable area of the printing device to the center position of each character string. And a means for controlling the shift of the document.
始位置までの桁送りを制御する手段が、各文字列の印字
開始位置までの桁送りを行う際に、印字制御手段に対し
て特定の文字と該文字に対する印字抑止とを指示するこ
とにより、特定の文字の印字方向の長さを桁送りピッチ
とするものであることを特徴とする文書印刷制御装置。2. The method according to claim 1, wherein the means for controlling the shift of the character string to the print start position is specified to the print control means when the shift of the character string to the print start position is performed. The document printing control apparatus is characterized in that the length of a specific character in the printing direction is used as the shift pitch by instructing the character and the printing inhibition for the character.
始位置までの桁送りを制御する手段が、各文字列の印字
開始位置までの桁送りを行う際に、桁送りに必要な距離
を複数の桁送りピッチ候補でそれぞれ除算し、その余り
が最小となる桁送りピッチを選択して桁送りを行うもの
であることを特徴とする文書印刷制御装置。3. The distance according to claim 1, wherein the means for controlling the digit shift to the print start position of the character string, when performing the digit shift to the print start position of each character string, determines the distance required for the digit shift. A document printing control apparatus, wherein each digit is divided by a plurality of digit-pitch candidates, and a digit-pitch having a minimum remainder is selected to perform digit-pitch.
候補のそれぞれのピッチの比が素数比であるように設定
することを特徴とする文書印刷制御装置。4. The document print control apparatus according to claim 3, wherein the pitch ratio of each of the plurality of shift pitch candidates is set to be a prime number ratio.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21317792A JPH0632008A (en) | 1992-07-20 | 1992-07-20 | Document printer control |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21317792A JPH0632008A (en) | 1992-07-20 | 1992-07-20 | Document printer control |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0632008A true JPH0632008A (en) | 1994-02-08 |
Family
ID=16634822
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21317792A Pending JPH0632008A (en) | 1992-07-20 | 1992-07-20 | Document printer control |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0632008A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103578643A (en) * | 2013-09-07 | 2014-02-12 | 国家电网公司 | Labeling method for RJ45 network cable and structure |
| JP2016175109A (en) * | 2015-03-20 | 2016-10-06 | 株式会社キーエンス | LASER MARKING DEVICE, PRINTING METHOD USING THE LASER MARKING DEVICE, AND COMPUTER PROGRAM |
-
1992
- 1992-07-20 JP JP21317792A patent/JPH0632008A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103578643A (en) * | 2013-09-07 | 2014-02-12 | 国家电网公司 | Labeling method for RJ45 network cable and structure |
| JP2016175109A (en) * | 2015-03-20 | 2016-10-06 | 株式会社キーエンス | LASER MARKING DEVICE, PRINTING METHOD USING THE LASER MARKING DEVICE, AND COMPUTER PROGRAM |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5425138A (en) | Apparatus and method for automatically editing documents including text data and table data with ruled lines | |
| JPH0632008A (en) | Document printer control | |
| JPH07122787B2 (en) | Continuous character generator | |
| JPH01229673A (en) | English and european writing printing control system | |
| JPH0661970B2 (en) | output method | |
| JPH0750392B2 (en) | Complex character processing method in word processing | |
| JPH03156668A (en) | Document preparing device | |
| JPS60159068A (en) | Output device | |
| GB2159772A (en) | Copyfitting and graphics layout system | |
| Brailsford et al. | How did dennis ritchie produce his PhD thesis? a typographical mystery | |
| JPS6225370A (en) | Layout display system | |
| JPH0570856B2 (en) | ||
| JP2768565B2 (en) | Character processor | |
| JPH0712720B2 (en) | Output device | |
| JPH10111678A (en) | Font files | |
| JPS5971528A (en) | Original forming machine | |
| JPS6073670A (en) | Output unit | |
| JPS61286177A (en) | Document-forming device | |
| JP2837497B2 (en) | Output control device and output control method | |
| JPH08153092A (en) | Document processing device | |
| JPH01229666A (en) | Printer | |
| JPS61286157A (en) | Document former | |
| JPH0281654A (en) | Halftone longitudinal connection of serial dot printer | |
| JPH07172021A (en) | Layout method of letter | |
| JPH04318660A (en) | Document format setting method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19990126 |