JPH0441657B2 - - Google Patents

Info

Publication number
JPH0441657B2
JPH0441657B2 JP59182222A JP18222284A JPH0441657B2 JP H0441657 B2 JPH0441657 B2 JP H0441657B2 JP 59182222 A JP59182222 A JP 59182222A JP 18222284 A JP18222284 A JP 18222284A JP H0441657 B2 JPH0441657 B2 JP H0441657B2
Authority
JP
Japan
Prior art keywords
line
character
printing
printer
automatic
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
JP59182222A
Other languages
Japanese (ja)
Other versions
JPS6158782A (en
Inventor
Hiroshi Fukuhara
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP18222284A priority Critical patent/JPS6158782A/en
Publication of JPS6158782A publication Critical patent/JPS6158782A/en
Publication of JPH0441657B2 publication Critical patent/JPH0441657B2/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/60Auxiliary feed or adjustment devices

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は入力された各行文字列を、プリンタの
印字限界領域を基準として設定した行印字領域に
整列させる自動行整列印字装置に関するものであ
る。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an automatic line alignment printing device that aligns each input line character string to a line printing area set based on the printing limit area of a printer. .

〔従来の技術〕[Conventional technology]

従来、上位装置(ホスト)のメモリに格納され
ている印字文字情報を1行毎にプリンタに転送し
印字を行なう際、そのまま印字した場合各行の左
端を一致させると右端は乱雑となり見苦しい。第
4図に示すように、英文データをシリアルドツト
プリンタに転送する場合、ホストからは通常プリ
ンタの物理的印字限界である左端(LE)と右端
(RE)間Pを基準として、両側に適当な余白をと
つてレフトマージン(LM)とライトマージン
(RE)間の行印字領域Qに丁度収まるように自動
的に整列修正が行なわれる。
Conventionally, when printing character information stored in the memory of a higher-level device (host) is transferred to a printer line by line and printed, if the left end of each line is made to coincide with each other, the right end becomes messy and unsightly. As shown in Figure 4, when transferring English data to a serial dot printer, the host usually requires appropriate margins on both sides, with P between the left edge (LE) and right edge (RE) as a reference, which is the physical printing limit of the printer. The alignment is automatically corrected so that it fits exactly in the line printing area Q between the left margin (LM) and right margin (RE).

従つて図示のように、各行それぞれにつき、そ
の文字間隔を拡げたり縮めたりして、行印字領域
Qに収まるように修正が加えられる。これがプリ
ンタの自動行整列機能である。
Therefore, as shown in the figure, each line is modified to fit within the line printing area Q by increasing or decreasing the character spacing. This is the printer's automatic line alignment feature.

第3図は自動行整列機能を行なうための従来の
構成説明図である。すなわち、ホストからの文字
情報がプリンタの入力部1に入力し、ここで自動
行整列機能を行なうための情報を分離する。すな
わち、印字文字情報11は直接印字制御部5に送
り、印字ヘツドの印字位置(アドレス)を表わす
印字位置情報12および自動行整列機能の適用の
可否を示す信号を、ライトエンドコンタクト検出
部2を通してモード判定部3に送る。ライトエン
ドコンタクト検出部2は第4図で示したプリンタ
の物理的印字限界Pの右端を検出して自動行整列
の対象となる行を切分ける。従つてこの範囲Pを
はみ出した場合には修正はできない。モード判定
部3ではホストからの指示に基づき自動行整列機
能適用の場合は自動行整列計算処理部4を送り、
文字間隔につき文字数カウンタ13からのカウン
ト数に応じて修正を行なう。
FIG. 3 is an explanatory diagram of a conventional configuration for performing an automatic row alignment function. That is, character information from the host is input to the input section 1 of the printer, and information for performing the automatic line alignment function is separated here. That is, the print character information 11 is directly sent to the print control unit 5, and the print position information 12 representing the print position (address) of the print head and a signal indicating whether or not the automatic line alignment function is applicable are sent to the light end contact detection unit. 2 to the mode determining section 3. The right end contact detection section 2 detects the right end of the physical print limit P of the printer shown in FIG. 4 and separates lines to be subjected to automatic line alignment. Therefore, if it goes outside this range P, it cannot be corrected. In the case of applying the automatic row alignment function, the mode determination unit 3 sends the automatic row alignment calculation processing unit 4 based on the instruction from the host.
The character spacing is corrected according to the count from the character number counter 13 .

標準としては、プリンタの物理的印字限界Pを
Qに収める文字間隔とする。入力した行文字列の
長さがプリンタの印字限界Pより短い場合には文
字間隔を均等に拡げ、丁度Qにきちんと這入るよ
うにする。この修正された文字間隔を印字制御部
5に送り、印字文字情報11と組合せて印字制御
を行なう。またモード判定部3で修正の必要のな
い文字間隔、すなわちPと同じ文字間隔のものは
直接印字制御部5に送り同様の印字制御を行な
う。
As a standard, the character spacing is set so that the printer's physical printing limit P is within Q. If the length of the input line character string is shorter than the printing limit P of the printer, the character spacing is expanded evenly so that it fits neatly into Q. This corrected character spacing is sent to the print control section 5 and combined with the print character information 11 to perform print control. Further, in the mode determining section 3, character spacings that do not need to be corrected, that is, character spacings that are the same as P, are directly sent to the print control section 5 for similar printing control.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記の構成では、前述したように入力した印字
位置情報12をライトエンドコンタクト検出部2
により右端が検出され、Pの間にある文字列のみ
が自動行整列機能の対象にされる。
In the above configuration, the print position information 1 2 inputted as described above is sent to the light end contact detection unit 2.
The right end is detected by , and only the character strings between P are subject to the automatic line alignment function.

このPをはみ出す長い文字行は除外される。 Long character lines that extend beyond this P are excluded.

しかし、往々にしてプリンタの物理的印字限界
より若干長いものが交つてくる場合がある。この
場合でも圧縮すればQに収まりしかも隣接文字間
も僅かに狭くなつても十分分別ができる場合が多
い。本発明はこのような場合を救済しようとする
ものである。
However, there are cases where the length is slightly longer than the physical printing limit of the printer. Even in this case, if the characters are compressed, they can fit within Q, and even if the distance between adjacent characters becomes slightly narrower, it is often possible to distinguish the characters sufficiently. The present invention attempts to relieve such cases.

本発明の目的は入力行文字列がプリンタの物理
的印字限界を越える場合を含めて所定の行印字領
域内に整列できるようにした自動行印字装置を提
供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an automatic line printing device that allows input line character strings to be aligned within a predetermined line printing area even when input line character strings exceed the physical printing limits of the printer.

〔問題点を解決するための手段〕[Means for solving problems]

従来例で入力行文字列をプリンタの物理的印字
限界Pに限定したのは、これを越えた場合には印
字位置の実体がないのに起因するものと思われ
る。しかし、実際にプリントするのは行印字領域
Qであり、たとえ入力文字列がPを越えた場合で
も圧縮すればQ内に収めることができる筈であ
る。そこで本発明では、第3図の自動行整列計算
処理部4の前で入力文字列の長さをライトエンド
コンタクト検出部2で切分けることをやめ、かつ
印字位置に対応する仮想位置情報を与えて自動行
整列機能の計算を行ない文字間隔を修正する。ま
た、モード判定部3で自動行整列機能を必要とし
ない場合には、ライトエンドコンタクト検出部2
で切分ける必要があるから、自動行整列計算処理
部4の後方に置くことにする。入力行文字列がP
より長くなつた場合、Q内の文字間隔は狭くなる
が、隣接文字が分別できかつ重複することのない
程度に分離されておれば十分である。
The reason why the input line character string is limited to the physical printing limit P of the printer in the conventional example is considered to be because if this limit is exceeded, there is no actual printing position. However, what is actually printed is the line printing area Q, and even if the input character string exceeds P, it should be possible to fit it within Q by compressing it. Therefore, in the present invention, the length of the input character string is not divided by the light end contact detection section 2 in front of the automatic line alignment calculation processing section 4 shown in FIG. 3, and virtual position information corresponding to the printing position is provided. to calculate the automatic line alignment function and correct the character spacing. In addition, when the automatic row alignment function is not required in the mode determination unit 3, the light end contact detection unit 2
Since it is necessary to separate the data into sections, it is placed after the automatic row alignment calculation processing section 4. input line string is P
If it becomes longer, the character spacing within Q will become narrower, but it is sufficient that adjacent characters are separated enough to be distinguishable and not overlap.

〔作用〕[Effect]

上記の構成により、入力行文字列がプリンタの
印字限界Pを越えるか否かに関係なく、自動行整
列計算処理部では文字間隔の修正が行なわれ、そ
の長さを制限するものはQ内に圧縮された文字間
が分別できる程度であればよい。
With the above configuration, regardless of whether the input line character string exceeds the printing limit P of the printer, the automatic line alignment calculation processing section corrects the character spacing, and the length limit is within Q. It is sufficient that the space between compressed characters can be distinguished.

このようにPに限定された行文字列の長さの範
囲を拡大することができるものである。
In this way, the length range of line character strings limited to P can be expanded.

〔実施例〕〔Example〕

第1図は本発明の実施例の構成説明図であり、
第2図は本発明の要部の機能説明図である。
FIG. 1 is an explanatory diagram of the configuration of an embodiment of the present invention,
FIG. 2 is a functional explanatory diagram of the main parts of the present invention.

第1図において、第3図の従来例と異なる点を
述べると、入力部1の印字位置情報12の出口に
仮想位置発生部11を設け、仮想位置情報を直接
モード判定部3に送る。自動行整列機能の適用の
指示があれば、仮想位置情報を対応する文字数カ
ウンタ値とともに、自動行整列計算処理部4に入
れ文字間隔を修正して出力する。一方、モード判
定部3で自動行整列機能の適用を不要とする場合
には、修正の必要のない文字間隔を、前記修正さ
れた文字間隔と同様に、ライトエンドコンタクト
検出部2を通して1行分を検出して切分ける。こ
の検出は、修正されない場合と、修正された場合
の異常時には状態確認のため重要である。しかし
修正された場合の正常時には行印字領域はQの中
に這入るからこの検出は不要である。
1, the difference from the conventional example shown in FIG. 3 is that a virtual position generating section 11 is provided at the output of print position information 12 of the input section 1, and the virtual position information is sent directly to the mode determining section 3. If there is an instruction to apply the automatic line alignment function, the virtual position information is input to the automatic line alignment calculation processing section 4 together with the corresponding character number counter value, and the character spacing is corrected and output. On the other hand, when it is not necessary to apply the automatic line alignment function in the mode determination unit 3, the character spacing that does not require correction is determined by one line through the light end contact detection unit 2 in the same manner as the corrected character spacing. Detect and separate. This detection is important for checking the status in case of abnormality, whether it is not corrected or corrected. However, in the corrected state, the line printing area crawls into Q, so this detection is unnecessary.

このライトエンドコンタクト検出部2からの文
字間隔を印字制御部5に送り、印字文字情報11
と組合せて行印字領域Qの印字制御を行なう。
This character spacing from the light end contact detection unit 2 is sent to the print control unit 5, and the printed character information 1 1
In combination with this, printing control of the row printing area Q is performed.

第2図は本発明の要部である自動行整列計算処
理部4の機能説明図である。すなわち、図示のよ
うに入力行文字列がプリンタの印字限界Pを越え
てP′であるとすると、Pに無関係とするため、本
来の印字位置情報に対応した仮想位置を設定し、
これをライトエンドを切分けることなく、自動行
整列計算処理部4に送り、P′の範囲の文字列につ
きQに収まるように文字間隔の修正を行なうもの
である。この場合、文字が重ならないように、か
つ語間の区別がつくように行方向に圧縮すること
が必要である。
FIG. 2 is a functional explanatory diagram of the automatic row alignment calculation processing section 4, which is the main part of the present invention. That is, if the input line character string exceeds the printing limit P of the printer and reaches P' as shown in the figure, in order to make it irrelevant to P, a virtual position corresponding to the original printing position information is set,
This is sent to the automatic line alignment calculation processing section 4 without separating the light end, and the character spacing is corrected so that the character string within the range of P' falls within Q. In this case, it is necessary to compress the text in the line direction so that characters do not overlap and words can be distinguished.

〔発明の効果〕 以上説明したように、本発明によれば、入力行
印字列がプリンタの物理的印字限界を越える場合
を含めて、この印字限界の右端で切分けることな
く、印字位置情報に対応する仮想位置を設定して
自動行整列機能を行なうようにしたものである。
これにより、自動行整列印字機能の適用範囲を拡
大し、従来プリンタの印字限界を僅かに超過した
ため適用不能となつていた場合を救済し、業務の
促進に役立つところが大きい。
[Effects of the Invention] As explained above, according to the present invention, even when the input line print string exceeds the physical print limit of the printer, the print position information is not separated at the right end of the print limit. The automatic line alignment function is performed by setting a corresponding virtual position.
This expands the scope of application of the automatic line alignment printing function, relieves cases in which it could not be applied because the printing limit of conventional printers was slightly exceeded, and is greatly useful for promoting business operations.

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

第1図は本発明の実施例の構成説明図、第2図
は本発明の要部の機能説明図、第3図は従来例の
構成説明図、第4図は従来例の要部の機能説明図
であり、図中、1は入力部、11は印字文字情報、
2は印字位置情報、13は文字数カウンタ、2は
ライトエンドコンタクト検出部、3はモード判定
部、4は自動行整列計算処理部、5は印字制御
部、11は仮想位置発生部を示す。
Fig. 1 is an explanatory diagram of the configuration of the embodiment of the present invention, Fig. 2 is an explanatory diagram of the functions of the main parts of the present invention, Fig. 3 is an explanatory diagram of the configuration of the conventional example, and Fig. 4 is the function of the main parts of the conventional example. It is an explanatory diagram, in which 1 is an input section, 1 1 is printed character information,
1 2 is print position information, 1 3 is a character number counter, 2 is a light end contact detection section, 3 is a mode determination section, 4 is an automatic line alignment calculation processing section, 5 is a print control section, and 11 is a virtual position generation section. .

Claims (1)

【特許請求の範囲】 1 入力された印字文字情報に対応する各行文字
列を、プリンタの印字限界領域を基準として設定
した行印字領域に左右端を揃えて整列させるた
め、各行文字の印字位置情報と文字カウント数と
により文字間隔を自動的に修正する自動行整列計
算処理部を設け、該修正された間隔を用い印字文
字情報に対し各行毎の印字制御を行なうプリンタ
の自動行整列印字装置において、 前記プリンタの印字限界領域を越える行文字列
に対して仮想位置を設定して記憶させる手段を設
けるとともに、前記自動行整列計算処理部に前記
仮想位置に設定された行文字列を修正された間隔
が隣接文字を分別できる間隔以上でかつ重複する
ことのないように前記整列された行印字領域の範
囲に圧縮する手段を設けたことを特徴とするプリ
ンタの自動行整列印字装置。
[Claims] 1. In order to align each line character string corresponding to the inputted print character information with the left and right ends aligned in the line print area set based on the printing limit area of the printer, the print position information of each line character is used. In an automatic line alignment printing device for a printer, which includes an automatic line alignment calculation processing unit that automatically corrects the character spacing based on the character count and the character count number, and performs printing control for each line of printed character information using the corrected spacing. , a means is provided for setting and storing a virtual position for a line string that exceeds the printing limit area of the printer, and a means for correcting the line string set at the virtual position in the automatic line alignment calculation processing unit is provided. An automatic line alignment printing device for a printer, characterized in that it is provided with means for compressing the aligned line printing area within the range of the line printing area so that the spacing is greater than or equal to an interval that allows adjacent characters to be distinguished and there is no overlap.
JP18222284A 1984-08-31 1984-08-31 Automatic line arranging type printing system of printer Granted JPS6158782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18222284A JPS6158782A (en) 1984-08-31 1984-08-31 Automatic line arranging type printing system of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18222284A JPS6158782A (en) 1984-08-31 1984-08-31 Automatic line arranging type printing system of printer

Publications (2)

Publication Number Publication Date
JPS6158782A JPS6158782A (en) 1986-03-26
JPH0441657B2 true JPH0441657B2 (en) 1992-07-09

Family

ID=16114476

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18222284A Granted JPS6158782A (en) 1984-08-31 1984-08-31 Automatic line arranging type printing system of printer

Country Status (1)

Country Link
JP (1) JPS6158782A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56120379A (en) * 1980-02-28 1981-09-21 Teraoka Seiko Co Ltd Method to set print pitch in commodity name print column of label

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56120379A (en) * 1980-02-28 1981-09-21 Teraoka Seiko Co Ltd Method to set print pitch in commodity name print column of label

Also Published As

Publication number Publication date
JPS6158782A (en) 1986-03-26

Similar Documents

Publication Publication Date Title
JP4781023B2 (en) Printing apparatus and printing system
JPS60116464A (en) Printer
JPH0441657B2 (en)
JPS6242868A (en) Page printer
JP2738302B2 (en) Printing device
JPS61121128A (en) Print control system
US20030053130A1 (en) Recording apparatus, interface control apparatus, and interface control method
JPS58114983A (en) Printer
JP2699440B2 (en) Printer device
JP3250118B2 (en) Printing device data management method
JPS6328678A (en) Printer page feed control system
JP2855367B2 (en) Facsimile machine
JP2526712B2 (en) Program printout method in programming device
JPS63272145A (en) Dump output device
JPS6338318B2 (en)
JP2859523B2 (en) Printing control method for document printing system
JP2915703B2 (en) Print control apparatus and method
JPS5998244A (en) Printer
JPH01139267A (en) Color recording apparatus
JPS62152881A (en) Page joint designating device for page printer
JPH0213631B2 (en)
JPS5967766A (en) System for detecting abnormal print of printer
JPH0313989B2 (en)
JPS6380364A (en) Check method for slip or the like
JPS6351166A (en) Output control system of line printer