JPH0242073B2 - - Google Patents

Info

Publication number
JPH0242073B2
JPH0242073B2 JP58071230A JP7123083A JPH0242073B2 JP H0242073 B2 JPH0242073 B2 JP H0242073B2 JP 58071230 A JP58071230 A JP 58071230A JP 7123083 A JP7123083 A JP 7123083A JP H0242073 B2 JPH0242073 B2 JP H0242073B2
Authority
JP
Japan
Prior art keywords
correction
space
print
character
spacing
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.)
Expired - Lifetime
Application number
JP58071230A
Other languages
Japanese (ja)
Other versions
JPS59196280A (en
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 filed Critical
Priority to JP58071230A priority Critical patent/JPS59196280A/en
Publication of JPS59196280A publication Critical patent/JPS59196280A/en
Publication of JPH0242073B2 publication Critical patent/JPH0242073B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J19/00Character- or line-spacing mechanisms
    • B41J19/18Character-spacing or back-spacing mechanisms; Carriage return or release devices therefor
    • B41J19/20Positive-feed character-spacing mechanisms
    • B41J19/202Drive control means for carriage movement

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、プリンタの印字制御方法に関し、特
に自動的に印字行の右端をそろえるための印字制
御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a print control method for a printer, and more particularly to a print control method for automatically aligning the right ends of print lines.

〔技術の背景〕[Technology background]

一般に、ワードプロセツサ等で作成された文章
をプリンタで印字させる場合には、自動行右そろ
え機能(AUTO JUSTIFY)を用いて、各印字
行の右端を縦に整列させる制御が行なわれてい
る。
Generally, when printing text created with a word processor or the like using a printer, an automatic line right alignment function (AUTO JUSTIFY) is used to control the right end of each printed line to be vertically aligned.

自動行右そろえ制御は、新聞、図書等の出版物
の印刷にも広く適用されているが、その手法は、
単語の中の文字と文字との間隔(キヤラクタスペ
ースという)と、単語間のスペース間隔(ワード
スペースという)との2つを調整して、右端が所
定の位置にくるような値を計算し、印字位置を補
正するものである。第1図において、がワード
スペース、がキヤラクタスペースを示してい
る。最も簡単に行右そろえを行なうには、ワード
スペースのみで補正すればよい。しかし普通は、
ワードスペースの補正を優先しつつ、キヤラクタ
スペースも補正するという方法をとつている。こ
れは美感上の判断にもとづいている。
Automatic line right alignment control is widely applied to the printing of publications such as newspapers and books, but the method is
Adjust the spacing between letters in a word (called character space) and the spacing between words (called word space) to calculate a value that will bring the right edge to the specified position. , to correct the print position. In FIG. 1, indicates a word space and indicates a character space. The easiest way to right-justify lines is to correct them using only word spaces. But usually,
The method is to prioritize word space correction while also correcting character space. This is based on aesthetic judgment.

しかし、文字間ピツチは、印字文字体の種類に
より、パイカピツチ(1/10インチ)、エリートピ
ツチ(1/12インチ)、マイクロピツチ(1/15イン
チ)など様々であり、また“I”や“W”のよう
に印字文字の大きさが異なる場合に個々に最適な
間隔を与えるプロポーシヨナルスペーシングが行
なわれている文章などでは、行右ろそえのために
キヤラクタスペースを変更するのに具合が悪い。
However, the pitch between characters varies depending on the type of printed font, such as pica pitch (1/10 inch), elite pitch (1/12 inch), micro pitch (1/15 inch), etc. It is useful to change the character spacing to right-align lines in sentences such as "W" where proportional spacing is used to provide optimal spacing for each printed character when the size is different. It's bad.

以上のような理由により、ただ単純にワードス
ペースを優先しつつキヤラクタスペースの補正を
するという方法では、単語と単語とがくつつき過
ぎて見えるようになつたり、隣り合つた文字が重
なつてしまうなどの問題があつた。
For the above reasons, if you simply prioritize word space while correcting character space, words will look too close together, or adjacent characters will overlap. There were problems such as.

〔発明の目的および構成〕[Object and structure of the invention]

本発明の目的は、文字間ピツチの種類やプロポ
ーシヨナルスペーシングを考慮した最適な補正を
行なう自動行右ろそえ制御機能を実現することに
ある。
SUMMARY OF THE INVENTION An object of the present invention is to realize an automatic line right alignment control function that performs optimal correction taking into consideration the type of character pitch and proportional spacing.

本発明の構成は、上記目的を達成するため、印
字バツフアに格納された1行分のデータ印字に際
して、印字データ内での語間スペースを文字間ス
ペースよりも優先して補正し、語間スペースの補
正のみでは補正が不充分の場合に文字間スペース
をも補正することによつて右端を整列印字する印
字制御部を備えたプリンタにおいて、印字字種に
基づいて印字ピツチを指示する第1の表示部と、
プロポーシヨナルスペーシングの有無を指示する
第2の表示部と、語間スペース及び文字間スペー
スの各々の補正限界値を印字ピツチおよびプロポ
ーシヨナルスペーシング対応に最適に設定した限
界値テーブルとを設け、上記第1および第2の表
示部からの指示出力によつて、上記限界値テーブ
ルから該当する補正限界値を求めて印字制御部へ
出力し、右端の整列印字を行わせるようにしたこ
とを特徴としている。
In order to achieve the above object, the configuration of the present invention corrects the inter-word space in the print data with priority over the inter-character space when printing one line of data stored in the print buffer, and corrects the inter-word space. In a printer equipped with a print control unit that aligns and prints the right edge by also correcting the inter-character space when the correction is insufficient, the first method instructs the print pitch based on the print type. A display section;
A second display section for indicating the presence or absence of proportional spacing, and a limit value table in which correction limit values for each of word spacing and character spacing are optimally set to correspond to printing pitch and proportional spacing, According to the instruction output from the first and second display sections, the corresponding correction limit value is determined from the limit value table and outputted to the print control section, so that alignment printing of the right end is performed. It is said that

〔発明の実施例〕[Embodiments of the invention]

はじめに、従来の基本的な自動行右ろそえ制御
方法について説明する。
First, a conventional basic automatic row right alignment control method will be explained.

第2図は、自動行右ろそえ制御の対象となつて
いる文章の例であり、がワードスペース、が
キヤラクタスペース、が現在の右端位置、が
規定位置、xは超過距離を表わす。
FIG. 2 is an example of a sentence that is subject to automatic line right alignment control, where is the word space, is the character space, is the current right end position, is the specified position, and x represents the excess distance.

また、1印字行中のワードスペースの数をα、
キヤラクタスペースの数をβ、ワードスペース単
位での補正値をA、キヤラクタスペース単位での
補正値をB、微調整値をΔxとすると、次式が成
立する。
Also, the number of word spaces in one print line is α,
When the number of character spaces is β, the correction value in word space units is A, the correction value in character space units is B, and the fine adjustment value is Δx, the following equation holds true.

x=A・α+B・β+Δx ……(1) x,α,βの値は印字すべき行ごとに決つている
から、それらの値を(1)式に代入して、(1)式を満足
するA,B,Δxを決定すればよい。
x=A・α+B・β+Δx...(1) The values of x, α, and β are determined for each line to be printed, so substitute those values into formula (1) to satisfy formula (1). What is necessary is to determine A, B, and Δx.

たとえば、第2図に示す文章例では、α=9、
β=26であるから、(1)式は、 x=9A+26B+Δx ……(2) となる。
For example, in the example sentence shown in Figure 2, α=9,
Since β=26, equation (1) becomes x=9A+26B+Δx (2).

(1)式のA,B,Δxを決定するための、従来方
式のアルゴリズムを第3図に示す。なお、ワード
スペース補正値Aおよびキヤラクタスペース補正
値Bの限界値を、それぞれワードスペース補正限
界値Amおよびキヤラクタスペース補正限界値
Bmとする。
FIG. 3 shows a conventional algorithm for determining A, B, and Δx in equation (1). Note that the limit values of word space correction value A and character space correction value B are defined as word space correction limit value Am and character space correction limit value, respectively.
Bm.

まず、(1)式のB、Δxを零にして、x=A・α
とする。次にこれにx,αの値を代入してAを求
める。なお、小数点以下は切下げる。求めたAの
値がAAmであれば、必要とする補正は終了
し、x=A・α+ΔxからΔxを求め、補正処理を
実行する。他方、A>Amであれば、それ以上の
ワードスペースによる補正は不可能なので、キヤ
ラクタスペース補正を行なう。そのためBをlに
し、仮にB>Bmでないとすれば、(1)式のBを1
としたX=A・α+βからAの値を求め直す。こ
のAの値について再びA>Amをチエツクする。
AAmであれば補正を終了し、A>Amであれ
ば、前回のBの値に1を行え(B=2)、B>
Bmのチエツクをして(1)式のAの値を求めなお
す。
First, set B and Δx in equation (1) to zero, and x=A・α
shall be. Next, A is obtained by substituting the values of x and α into this. Note that numbers below the decimal point are rounded down. If the value of A obtained is AAm, the necessary correction is completed, Δx is obtained from x=A·α+Δx, and the correction process is executed. On the other hand, if A>Am, further word space correction is impossible, so character space correction is performed. Therefore, if B is set to l, and B>Bm is not true, then B in equation (1) is set to 1.
Recalculate the value of A from X=A・α+β. Regarding this value of A, check A>Am again.
If AAm, finish the correction, if A>Am, add 1 to the previous value of B (B=2), B>
Check Bm and recalculate the value of A in equation (1).

このように、最初はワードスペースによる補正
を優先し、それでは必要な補正量にに満たなない
場合には、順次キヤラクタスペースの補正を増や
してゆき、ワードスペースによる補正は、その残
りに適用する。求めたAが、AAmであれば常
に補正処理を終了し、またBBmを満足するB
の値が得られないときには、それ以上の補正は不
可能とするものである。
In this way, priority is given to word space correction at first, and if that does not meet the required amount of correction, character space correction is gradually increased, and word space correction is applied to the rest. . If the obtained A is AAm, the correction process is always finished, and B that satisfies BBm
If the value of is not obtained, no further correction is possible.

従来は、このアルゴリズム内のワードスペース
補正限界値Amおよびキヤラクタスペース補正限
界値Bmが定数となつており、このため、ある印
字ピツチではきれいな印字補正になるけれども、
他の印字ピツチでは単語と単語とがくつついて見
えたり、文字が重なつてしまい、またプロポーシ
ヨナルスペーシングではその効果が減殺されると
いう欠点があつた。
Conventionally, the word space correction limit value Am and the character space correction limit value Bm in this algorithm were constants, and therefore, although a certain print pitch resulted in a fine print correction,
Other printing pitches had the disadvantage that words appeared staggered or letters overlapped, and proportional spacing diminished its effectiveness.

これに対して本発明は、ワードスペース補正限
界値Amとキヤラクタスペース補正限界値Bmを、
印字ピツチの種類およびプロポーシヨナルスペー
シングの有無によつて変更し、ワードスペース補
正の割合が最適になるように変化させることによ
り、従来方式の欠点を改善している。
In contrast, in the present invention, the word space correction limit value Am and the character space correction limit value Bm are
The drawbacks of the conventional method are improved by changing the word space correction ratio depending on the type of printing pitch and the presence or absence of proportional spacing.

ワードスペースとキヤラクタスペースとの補正
限界値については、たとえば次のような基準を設
ける。
For example, the following criteria are set for the correction limit values for the word space and character space.

(a) プロポーシヨナルスペーシングが適用されて
いない場合には、ワードスペース補正限界値
Amをキヤラクタスペース補正限界値Bmより
も小さいかまたは同一とする。すなわち、単語
間が文字間に対してアンバランスにくつつきす
ぎないようにする。これは、たとえば“LIFE”
のように幅の狭い文字“I”を含む単語の場
合、“I”の前後のスペースが他の文字間より
も大きくなるため、単語間のスペースが小さく
なると相対的に単語としてのまとまりが認識し
にくくなるからである。さらに印字ピツチが短
くなるにつれて、相対的にキヤラクタスペース
の補正許容量は減少し、ワードスペースの補正
許容量は増加するから、ワードスペース補正限
界値Amを大きくし、キヤラクタスペース補正
限界値Bmを小さくする。すなわち、キヤラク
タスペースの補正に対する制約を強める。
(a) If no proportional spacing is applied, the word space correction limit.
Am is smaller than or equal to the character space correction limit value Bm. In other words, the spacing between words should not be too unbalanced with respect to the spacing between characters. For example, “LIFE”
In the case of a word that includes the narrow letter "I", the space before and after the "I" is larger than the space between other letters, so the smaller the space between words, the easier it is to recognize the word as a whole. This is because it becomes difficult to do so. Furthermore, as the printing pitch becomes shorter, the character space correction allowance decreases and the word space correction allowance increases, so the word space correction limit value Am is increased, and the character space correction limit value Bm Make smaller. In other words, restrictions on character space correction are strengthened.

(b) プロポーシヨナルスペーシングが適用されて
いる場合には、プロポーシヨナルスペーシング
により文字幅の異なる文字(たとえば“I”や
“W”)の前後に適切に設定されたスペースが、
キヤラクタスペースの補正によりアンバランス
化するおそれがあるため、ワードスペース補正
限界値Amをキヤラクタスペース補正限界値
Bmよりも大きくとり、キヤラクタスペースに
よる補正を制限する。
(b) If proportional spacing is applied, proportional spacing provides the appropriate space before and after characters of different widths (for example, “I” or “W”).
Since there is a risk of imbalance due to character space correction, the word space correction limit value Am is changed to the character space correction limit value.
Set larger than Bm to limit correction by character space.

第4図は、上記の基準にもとづいて作成された
補正限界値テーブルの1実施例を示す。図中に
は、対照のため、従来方式における値も並べて記
載してある。
FIG. 4 shows an example of a correction limit value table created based on the above criteria. In the figure, values for the conventional method are also listed for comparison.

第5図は、本発明の1実施例の構成図であり、
図中、1は印字データバツフア、2は補正パラメ
ータ算出部、3はスペース補正値算出部、4は字
種表示部、5はプロポーシヨナルスペーシング表
示部、6はスペース補正上限値テーブル、7は印
字制御部を表わす。
FIG. 5 is a configuration diagram of one embodiment of the present invention,
In the figure, 1 is a print data buffer, 2 is a correction parameter calculation section, 3 is a space correction value calculation section, 4 is a character type display section, 5 is a proportional spacing display section, 6 is a space correction upper limit value table, and 7 is printing Represents a control unit.

補正パラメータ算出部2は、印字データバツフ
ア1に格納されている1行分の印字データと、字
種表示部4からの字種ピツチ情報Piと、規定行長
Lsとにもとづいて、超過距離x、ワードスペー
ス数α、キヤラクタスペース数βを算出する。
The correction parameter calculation unit 2 calculates the print data for one line stored in the print data buffer 1, the character type pitch information Pi from the character type display unit 4, and the specified line length.
Based on Ls, the excess distance x, the number of word spaces α, and the number of character spaces β are calculated.

スペース補正算出部3は、補正パラメータ算出
部2から出力されたパラメータのx,α,βと、
補正上限値テーブル6から取り出したワードスペ
ース補正限界値Am、キヤラクタスペース補正限
界値Bmとにもとづき、第3図に示すアルゴリズ
ムにしたがつて、前記(1)式を満足するワードスペ
ース補正値Aおよびキヤラクタスペース補正値B
を算出する。
The space correction calculation unit 3 calculates the parameters x, α, and β output from the correction parameter calculation unit 2,
Based on the word space correction limit value Am and the character space correction limit value Bm extracted from the correction upper limit value table 6, the word space correction value A that satisfies the above formula (1) is determined according to the algorithm shown in FIG. and character space correction value B
Calculate.

補正上限値テーブル6の内容は、第4図に例示
したようなものであり、字種表示部4からの字種
ピツチ情報Piと、プロポーシヨナルスペーシング
表示部5からのON/OFF情報SPとにもとづい
て、該当するAmおよびBmが読み出される。
The contents of the correction upper limit value table 6 are as illustrated in FIG. 4, and include the character type pitch information Pi from the character type display section 4, the ON/OFF information SP from the proportional spacing display section 5, and Based on this, the corresponding Am and Bm are read out.

スペース補正値算出部3から出力された補正値
A,Bは、印字制御部7に供給され、これらの値
にもとづいた印字位置制御が行なわれる。印字位
置制御は、たとえばプリンタがドツトマトリツク
スタイプの場合、ラインバツフアへのドツトパタ
ーンの位置を制御することにより、また活字フラ
イング印字タイプの場合には、印字ヘツドのドラ
イブタイミングなどの制御により、適当な既知の
手段を用いて実行される。
The correction values A and B output from the space correction value calculation section 3 are supplied to the print control section 7, and print position control is performed based on these values. Print position control is achieved by, for example, controlling the position of the dot pattern on the line buffer if the printer is a dot matrix type printer, or by controlling the drive timing of the print head if the printer is a flying type printer. This is done using known means.

〔発明の効果〕〔Effect of the invention〕

以上のように、本発明によれば、文字間のピツ
チとプロポーシヨナルスペーシングとを考慮した
バランスのとれた最適スペース補正が実現され
る。
As described above, according to the present invention, a well-balanced optimal space correction that takes into consideration the pitch between characters and proportional spacing is realized.

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

第1図はワードスペースおよびキヤラクタスペ
ースの説明図、第2図は自動行右そろえ制御対象
の文章例を示す図、第3図は補正値決定のアルゴ
リズムを示す説明図、第4図は補正上限値テーブ
ルの1実施例説明図、第5図は本発明の1実施例
の構成図である。 図中、1は印字データバツフア、2は補正パラ
メータ算出部、3はスペース補正値算出部、6は
補正上限値テーブルを示す。
Figure 1 is an explanatory diagram of word space and character space, Figure 2 is a diagram showing an example of a text subject to automatic line right alignment control, Figure 3 is an explanatory diagram showing the algorithm for determining correction values, and Figure 4 is a diagram of correction. FIG. 5 is a diagram illustrating an embodiment of the upper limit value table, and is a configuration diagram of an embodiment of the present invention. In the figure, 1 is a print data buffer, 2 is a correction parameter calculation section, 3 is a space correction value calculation section, and 6 is a correction upper limit value table.

Claims (1)

【特許請求の範囲】[Claims] 1 印字バツフアに格納された1行分のデータ印
字に際して、印字データ内での語間スペースを文
字間スペースよりも優先して補正し、語間スペー
スの補正のみでは補正が不充分の場合に文字間ス
ペースをも補正することによつて右端を整列印字
する印字制御部を備えたプリンタにおいて、印字
字種に基づいて印字ピツチを指示する第1の表示
部と、プロポーシヨナルスペーシングの有無を指
示する第2の表示部と、語間スペース及び文字間
スペースの各々の補正限界値を印字ピツチおよび
プロポーシヨナルスペーシング対応に最適に設定
した限界値テーブルとを設け、上記第1および第
2の表示部からの指示出力によつて、上記限界値
テーブルから該当する補正限界値を求めて印字制
御部へ出力し、右端の整列印字を行わせるように
したことを特徴とする印字制御方法。
1 When printing one line of data stored in the print buffer, the space between words in the print data is corrected with priority given to the space between characters, and if the correction of the space between words alone is insufficient, the character In a printer equipped with a print control unit that aligns the right edge by correcting the spacing, the first display unit instructs the print pitch based on the print type and the presence or absence of proportional spacing. and a limit value table in which correction limit values for each of word spacing and character spacing are optimally set to correspond to print pitch and proportional spacing, and the first and second displays are A printing control method characterized in that, in response to an instruction output from the printing section, a corresponding correction limit value is determined from the limit value table and outputted to the printing control section, so as to perform alignment printing at the right end.
JP58071230A 1983-04-22 1983-04-22 Printing control system Granted JPS59196280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58071230A JPS59196280A (en) 1983-04-22 1983-04-22 Printing control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58071230A JPS59196280A (en) 1983-04-22 1983-04-22 Printing control system

Publications (2)

Publication Number Publication Date
JPS59196280A JPS59196280A (en) 1984-11-07
JPH0242073B2 true JPH0242073B2 (en) 1990-09-20

Family

ID=13454677

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58071230A Granted JPS59196280A (en) 1983-04-22 1983-04-22 Printing control system

Country Status (1)

Country Link
JP (1) JPS59196280A (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59202870A (en) * 1983-05-04 1984-11-16 Sanyo Electric Co Ltd Printing controller
JPS59202868A (en) * 1983-05-04 1984-11-16 Sanyo Electric Co Ltd Printing control apparatus
JPS59202871A (en) * 1983-05-04 1984-11-16 Sanyo Electric Co Ltd Printing controller
JPS59202867A (en) * 1983-05-04 1984-11-16 Sanyo Electric Co Ltd Printing control apparatus
JPH0753467B2 (en) * 1986-11-13 1995-06-07 ブラザー工業株式会社 Electronic typewriter
TW363158B (en) * 1993-06-25 1999-07-01 Omron Tateisi Electronics Co A system for automatic adjustment of, character spacing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS578505A (en) * 1980-06-18 1982-01-16 Mitsubishi Electric Corp Fiber optics device

Also Published As

Publication number Publication date
JPS59196280A (en) 1984-11-07

Similar Documents

Publication Publication Date Title
CA2069415C (en) Method of formatting documents using flexible design models providing controlled copyfit and typeface selection
EP0821312B1 (en) Pointsize-variable character spacing
US4679153A (en) Printing systems for typesetter emulation
JPH0142419B2 (en)
US5280576A (en) Method of adjusting the weight of a character of an outline font
JPH0242073B2 (en)
JP2710120B2 (en) Document processing method
JPS6017487A (en) How to automatically set the line pitch of a document creation device
US10659648B2 (en) Printing apparatus and text input program
JPH01229673A (en) English and european writing printing control system
JP4240014B2 (en) Print control apparatus, print control method, and print control program
US5162993A (en) Word processing apparatus
JP2674983B2 (en) Information processing method
JP3715685B2 (en) Document processing method and document processing apparatus
JPH07172021A (en) Layout method of letter
JP3282647B2 (en) Overlay printing system and method
JPS59206931A (en) Word processor
JPH0632949B2 (en) Character data automatic correction printer
JPH0410865B2 (en)
JPH03147882A (en) print control device
JPS62254231A (en) Character outputting method
JP2001216291A (en) Apparatus and method for correcting character arrangement and storage medium used therefor
JPH0592854A (en) Printer
JPH04188189A (en) Multioutline font drawing method
SILVER ‘NEAR‐PRINT’DRAWS NEARER