JPS60115473A - Printing controller - Google Patents

Printing controller

Info

Publication number
JPS60115473A
JPS60115473A JP22470283A JP22470283A JPS60115473A JP S60115473 A JPS60115473 A JP S60115473A JP 22470283 A JP22470283 A JP 22470283A JP 22470283 A JP22470283 A JP 22470283A JP S60115473 A JPS60115473 A JP S60115473A
Authority
JP
Japan
Prior art keywords
printing
dots
characters
register
print
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
JP22470283A
Other languages
Japanese (ja)
Inventor
Akira Yabumoto
薮本 明
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP22470283A priority Critical patent/JPS60115473A/en
Publication of JPS60115473A publication Critical patent/JPS60115473A/en
Pending 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
    • B41J19/64Auxiliary feed or adjustment devices for justifying

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Abstract

PURPOSE:To print characters evenly in a printable region, by a method wherein a printable region is calculated, the number of dots between characters is calculated on the basis of the number of characters in a line and the number of dots for the character and spacings corresponding to the number of dots calculated are provided. CONSTITUTION:A printing-starting position and a printing-finishing position set by a printable region setting part 7 are detected by a printable region detecting part 8, and the number of dots in the printable region is determined. The number of dots between characters is calculated on the basis of values from a digit place number register 9 for storing the number of characters in a line and a character dot register 10 for storing the number of dots for a character and on the number of dots in the printable region, and is held in a printing-controlling part 4.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、1文字をm X n個のドツトパターンとし
て印字する印字装置等における印字制御装置に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a printing control device for a printing device or the like that prints one character as a pattern of m x n dots.

従来例の構成とその問題点 従来、ワードプロセッサ等において作成された文書を印
刷しようとする場合、以下に示す様な方法がとられてい
る。以下、従来例について、第1図を用いて説明する。
Conventional Structure and Problems Conventionally, when printing a document created using a word processor or the like, the following methods have been used. Hereinafter, a conventional example will be explained using FIG. 1.

壕ず、1行当りの文字数(桁数)を設定し、次に左から
何文字目の位置から印字を始めるか(左印字余裕)、文
字と文字の間(字間)は何ドツト(又は何インチ)あけ
るかをキーボードより設定後、ワードプロセッサ等の文
字処理装置に対し、印刷指令を与える。ワードプロセッ
サ内のホストCPUは、印字制御部4に対し、字間のド
ツト数3〆−−゛ データ402を送出する。次に印字バッファ6に対し、
左余裕を含む1行文の文字コードデータ601を送出す
る。印字制御部4は印字バッファ6より1文字ずつ文字
コードを取り出し、印字した後に、既に送出された字間
ドツト分だけ印字ヘッド1を移動させるべく印字ヘッド
駆動部3に指令を出す。
Set the number of characters (number of digits) per line, then set the number of characters from the left to start printing (left printing margin), and the number of dots (or digits) between characters (character spacing). After setting the number of inches (inches) to be opened using the keyboard, a print command is given to a character processing device such as a word processor. The host CPU in the word processor sends data 402 for the number of dots between characters 3 to the print control unit 4. Next, for print buffer 6,
Character code data 601 of one line including the left margin is sent. The print control section 4 takes out the character code one character at a time from the print buffer 6, prints it, and then issues a command to the print head drive section 3 to move the print head 1 by the amount of the inter-character dots that have already been sent out.

これを印字バッファ内の文字コードを全て印字するまで
繰り返す。
Repeat this until all character codes in the print buffer are printed.

前述の様な方法によると、印刷結果が、思いどおりの物
であるかどうか、即ち、使用者が希望していた位置に正
常に印刷出来るかどうかは、少・なくとも1行の印刷が
終了するまでは確認し得なめ、左へよりすぎたり、右へ
よりすぎたり、時には、右端が印刷すべき用紙からはみ
出したりするという問題が生じていた。
According to the method described above, whether or not the print result is as expected, that is, whether or not it can be printed correctly in the position desired by the user depends on the completion of printing at least one line. Until then, the paper could not be checked until it had been printed, causing problems such as it being too far to the left, too far to the right, and sometimes the right edge protruding from the paper to be printed.

発明の目的 本発明は前記問題点に鑑みてなされたもので、印刷ミス
を少なくし、任意の印字中に均等に文字を印字できる印
字制御装置を提供するものであ本発明の構成 本発明は、印字可能域を検出する検出部と、−行当りの
文字数を格納する桁数レジスタと、1文字のドツト数を
格納する文字ドツトレジスタと、印字可能域ドツト長、
−行当りの文字数および1文字のドツト数をもとに字間
ドツト数を算出する手段とを備えた印字制御装置であり
、算出されたドツト数だけ字間をとり印字可能域に文字
を均等に印字するように制御できるものである。
OBJECTS OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and it is an object of the present invention to provide a print control device that can reduce printing errors and print characters evenly during arbitrary printing. , a detection unit that detects the printable area, a digit number register that stores the number of characters per line, a character dot register that stores the number of dots in one character, and a printable area dot length;
- A printing control device that is equipped with a means for calculating the number of dots between characters based on the number of characters per line and the number of dots per character, and it takes the space between characters by the calculated number of dots and distributes the characters evenly in the printable area. It can be controlled to print on

実施例の説明 以下本発明の一実施例について図面を参照しながら説明
する。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

第2図は本発明の一実施例における印字装置のブロック
図を示すものである。第2図において、7は印字可能域
設定部であり、印字装置の印字中方向に対して、印字の
開始位置と、印字終了位置とを設定する。8は印字可能
域検出部であり、印字可能域設定部7により設定された
印字開始位置と印字終了位置とから設定された印字可能
域の巾が何ドツト分あるかを検出する。9は桁数レジス
タであり、外部装置(ホストCPU等)から送ら6ベ 
゛ れて来た一行当りの文字数を示す値が格納される。
FIG. 2 shows a block diagram of a printing device in an embodiment of the present invention. In FIG. 2, a printable area setting section 7 sets a printing start position and a printing end position with respect to the printing direction of the printing device. Reference numeral 8 denotes a printable area detection unit, which detects how many dots the set printable area is from the print start position and print end position set by the printable area setting unit 7. 9 is the number of digits register, which is a 6-bit register sent from an external device (host CPU, etc.).
A value indicating the number of characters per line is stored.

1oは文字ドツトレジスタであり、印字装置の現在の文
字構成が縦横各々何ドツトで出来ているかを示す情報が
格納されている。1は印字ヘッド、11は印字ヘッド1
の現在位置を検出するヘッド位置検出部、4は印字制御
部、3は印字ヘッド駆動制御部、6は印字バッファメモ
リ、5はキャラクタジェネレータである。
1o is a character dot register, which stores information indicating how many dots the current character configuration of the printing device is made up in the vertical and horizontal directions. 1 is the print head, 11 is the print head 1
4 is a print control section, 3 is a print head drive control section, 6 is a print buffer memory, and 5 is a character generator.

以上の様に構成された印字装置について、以下その動作
について説明する。
The operation of the printing device configured as described above will be explained below.

まず、印字用紙を設置後、印字可能域設定部7を左右に
手動で移動し、印字用紙の巾方向で、どの位置から印字
を始めたら良いか、又、どの位置まで印字して良いかを
設定する。印字可能域検出部2は、前記印字可能域設定
部7で設定された印字開始位置および印字終了位置とを
検出し、位置情報を印字ヘッド最左端位置を基準として
ドツト単位に換算し、それぞれaドツト9bドツトとし
て保持する。外部装置(ホストCPU等)より印刷すべ
き文書の印刷書式情報の1つである1行あ6ベー8 たりの文字数901が、桁数レジスタ9に設定される。
First, after setting up the printing paper, manually move the printable area setting section 7 left and right to determine where to start printing and to which position in the width direction of the printing paper. Set. The printable area detection unit 2 detects the print start position and print end position set by the printable area setting unit 7, converts the position information into dots based on the leftmost position of the print head, and converts the position information into dot units, each of which is a Dot 9b is held as a dot. The number of characters per line 901, which is one of the print format information of the document to be printed from an external device (host CPU, etc.), is set in the number of digits register 9.

印字制御部4は、文字ドツトレジスタ1゜の値nと桁数
レジスタ9の値Cより、1行当りの総印字ドツト数nx
cを算出し、前記印字可能域検出部により保持された印
字限界位置ドラi・数すと印で開始位置ド丹数・の差で
ある印字可能ドツト数b −aと比較し、 b−a(nXc ならば、印字不可能としてホス) CP 、Uへ印字不
可を示す信号401を出力する。
The print control unit 4 determines the total number of print dots per line nx from the value n of the character dot register 1° and the value C of the number of digits register 9.
c is calculated, and compared with the number of printable dots b - a, which is the difference between the printing limit position d and the number mark and the start position d held by the printable area detection section, b - a (If nXc, it is assumed that printing is not possible.) CP outputs a signal 401 indicating that printing is not possible to U.

b −a≧nXc ならば、印字制御部4は d=J、b −a−nXc)/(c+1.N nドツト
を字間ドツト数として保持し、 e=((b−a−nxc)mod(a+1 )142ド
ツトを右端印字余裕とし、 f=(b−a−nxc )mod (、c+1 )−e
ドツトを左端印字余裕として保持する。
If b - a ≧ n (a+1) 142 dots is the right edge printing margin, f=(b-a-nxc) mod (,c+1)-e
Hold the dot as the left edge printing margin.

次にホス)CPUより、1行分の印字データ601が印
字バッファ6に蓄えられると、印字制御部47 : ば、左端よりa + fドツト分だけ印字ヘッド5を右
へ移動する様に印字ヘッド駆動部3に指令する。
Next, when the print data 601 for one line is stored in the print buffer 6 by the CPU (host), the print control unit 47 moves the print head 5 to the right by, for example, a + f dots from the left end. A command is given to the drive unit 3.

その後、dドツトの字間移動と、印字バッファ6に蓄わ
えられた印字コードの一字毎の印字(nドツト分)とを
交互に印字バッファ6内の文字コードを全て印字し終わ
るまで繰り返す。
After that, the movement of the d-dot characters and the printing of each character (n dots) of the print code stored in the print buffer 6 are repeated alternately until all the character codes in the print buffer 6 have been printed. .

発明の効果 以上の様に本発明によれば、ホストcPUより1行当り
の桁数が入力された時点で、使用者が望んだ印字中に印
字できるかどうかを検出し、かつ印字時に使用者が望ん
だ印字位置より印字を開始し、望んだ印字中白に均等に
文字を印字する事が可能となり、非常に美しく印刷する
ことが出来る。
Effects of the Invention As described above, according to the present invention, when the number of digits per line is input from the host cPU, it is detected whether or not printing can be performed as desired by the user, and the user It becomes possible to start printing from the desired print position and print characters evenly in the desired white area, resulting in very beautiful printing.

又この為、印刷してみなければ結果がわからないといっ
た使用者の不安が減少し、同時に印刷ミスによる用紙の
無駄をなくすることができる、
This also reduces the user's anxiety of not knowing the results until they are printed, and at the same time eliminates wasted paper due to printing errors.

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

第1図は従来のワードプロセソザ等に用いられる印字制
御装置のブロック図、第2図は本発明における一実施例
の印字制御装置を示すブロック図である。 7・・・・・・印字可能域設定部、8・・・・・・印字
可能域検出部、9・・・・・・桁数レジスタ、1o・・
・・・・文字ドツトレジスタ。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 第2図
FIG. 1 is a block diagram of a print control device used in a conventional word processor or the like, and FIG. 2 is a block diagram showing a print control device according to an embodiment of the present invention. 7... Printable area setting section, 8... Printable area detection section, 9... Digit number register, 1o...
...Character dot register. Name of agent: Patent attorney Toshio Nakao and 1 other person 1st
Figure 2

Claims (2)

【特許請求の範囲】[Claims] (1)1行あたりの文字数を格納しておく桁数レジスタ
と、用紙巾方向の印字開始位置と印字終了位置を設定す
る印字可能域設定部と、前記印字可能域設定部により設
定された印字開始位置および印字終了の位置を検出する
印字可能域検出部と、1文字のドツト数を格納する文字
ドツトレジスタと、前記印字可能域検出部で検出された
印字開始位置および印字終了位置、前記桁数レジスタに
格納されている値および前記文字ドツトレジスタに格納
されている値により字間ドツト数を算出する手段とを備
え、算出されたドツト数だけ字間をあけるよう印字ヘッ
ドの駆動制御を行なう事を特徴とする印字制御装置。
(1) A digit register that stores the number of characters per line, a printable area setting section that sets the printing start position and printing end position in the width direction of the paper, and the printing that is set by the printable area setting section. a printable area detection unit that detects the start position and print end position; a character dot register that stores the number of dots in one character; and a print start position and print end position detected by the printable area detection unit, and the digits. means for calculating the number of dots between characters based on the value stored in the number register and the value stored in the character dot register, and controls the drive of the print head to create a space between characters by the calculated number of dots. A printing control device characterized by:
(2)字間ドツト数を算出する手段は、印字可能域ドツ
ト長と、桁数レジスタの格納値と前記文字ドツトレジス
タの格納値の積とを比較し、印字可能2ベーン 域ドツト長の方が小さいときは印字不可の信号を出力す
ることを特徴とする特許請求の範囲第1項記載の印字制
御装置。
(2) The means for calculating the number of dots between characters compares the dot length of the printable area with the product of the value stored in the number of digits register and the value stored in the character dot register, and calculates the dot length of the printable 2-vane area. 2. The printing control device according to claim 1, wherein the printing control device outputs a signal indicating that printing is not possible when is small.
JP22470283A 1983-11-29 1983-11-29 Printing controller Pending JPS60115473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22470283A JPS60115473A (en) 1983-11-29 1983-11-29 Printing controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22470283A JPS60115473A (en) 1983-11-29 1983-11-29 Printing controller

Publications (1)

Publication Number Publication Date
JPS60115473A true JPS60115473A (en) 1985-06-21

Family

ID=16817899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22470283A Pending JPS60115473A (en) 1983-11-29 1983-11-29 Printing controller

Country Status (1)

Country Link
JP (1) JPS60115473A (en)

Similar Documents

Publication Publication Date Title
JPH08183222A (en) Printer and display
JP3016515B2 (en) Character processing apparatus and method
JPS60115473A (en) Printing controller
JPH07319868A (en) Text editing processor
JPS6072744A (en) Space processor for printer
JP2624744B2 (en) How to set character width of printing machine
JPH0747337B2 (en) output method
JPS62105667A (en) Printing processing system for dot matrix printer
JPS637956A (en) Bar code printing control unit
JPH02289366A (en) Printer
JPS6160121A (en) Graphic print processing system
JPH0398115A (en) Sentence processor
JPH05162360A (en) Thermal recording device
JPS58145465A (en) Printing control system of printer
JPS60116465A (en) Printer
JPH01103467A (en) Document output method
JPH0594555A (en) Bar code printing system
JPS62216756A (en) Controlling system for printing vertical rule
JPS62105668A (en) Printing processing system for dot matrix printer
JPH0243073A (en) Printing information edition system
JPS6462697A (en) Character pattern processing system
JPH0229887A (en) Bar code and bar code printing device
JPS63147221A (en) Hard copy system
JPH04326465A (en) Character processor
JPS63207676A (en) Document information processor