JPH0463786B2 - - Google Patents
Info
- Publication number
- JPH0463786B2 JPH0463786B2 JP58213402A JP21340283A JPH0463786B2 JP H0463786 B2 JPH0463786 B2 JP H0463786B2 JP 58213402 A JP58213402 A JP 58213402A JP 21340283 A JP21340283 A JP 21340283A JP H0463786 B2 JPH0463786 B2 JP H0463786B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- printing
- tab
- dots
- tab set
- 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
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J21/00—Column, tabular or like printing arrangements; Means for centralising short lines
Landscapes
- Character Spaces And Line Spaces In Printers (AREA)
Description
【発明の詳細な説明】
(イ) 産業上の利用分野
本発明はプリンタでコラムごとに頭を確実に揃
えて印字できるようにタブセツト制御を行なう印
字法に関する。DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a printing method that performs tab set control so that a printer can print with the heads aligned for each column.
(ロ) 従来技術
従来タイプライターで作表する場合タブセツト
という手法がしばしば利用されている。タブセツ
トとは、所望のコラム(桁)ごとにタブ(TAB)
値をセツトしておき、作表の際「タブ」キーを押
すとキヤリツジがセツトしたコラムまで自動的に
スキツプするので、そのセツト位置で印字すれば
コラムごとに印字の打出しすなわち頭が揃い作表
ができる。このようなタブセツト操作を行なわな
い場合は各コラムでの印字が終了したら次のコラ
ムまでスペースキーを必要な回数だけ打込む必要
があつて大変煩わしい。(b) Prior art When tabulating data on a typewriter, a method called tabset is often used. A tab set is a tab (TAB) for each desired column (digit).
If you set a value and press the "Tab" key during tabulation, the carriage will automatically skip to the column you have set, so if you print at that set position, the printing will be aligned for each column and the printing will be done. A table is created. If such a tab set operation is not performed, it is very troublesome to have to press the space key as many times as necessary to move to the next column after printing in each column is completed.
最近このようなタブセツト法をプリンタにも導
入することが考えられているが、文字間ピツチを
変えて印字する場合(たとえば10cpiと12cpi)や
文字の幅に応じて文字間隔を変えて印字するいわ
ゆるプロポーシヨナル スペーシング印字の場合
には、文字数でタブセツトを行なう従来の印字方
式ではコラムごとの頭が一直線上に揃わず作表の
見ばえが悪くなつてしまうという問題がある。 Recently, it has been considered to introduce such a tab set method to printers, but it is possible to print by changing the character spacing (for example, 10 cpi and 12 cpi) or by changing the character spacing depending on the width of the character. In the case of proportional spacing printing, there is a problem in the conventional printing method in which tabs are set based on the number of characters, that the heads of each column are not aligned in a straight line, resulting in poor visibility of the tabulation.
(ハ) 発明の目的および構成
本発明は上記の点にかんがみてなされたもの
で、ドツトプリンタを用いて印字する印字法にお
いてタブセツトしたとき各コラムの頭を確実に揃
えることを目的とし、そのためにタブセツト位置
をドツト数で指定し、印字の総ドツト数とタブセ
ツト位置を指定するドツト数に基づいてタブセツ
ト制御を行なうようにしたものである。(c) Object and structure of the invention The present invention has been made in view of the above points, and an object of the present invention is to ensure that the heads of each column are aligned when tab setting is performed in a printing method using a dot printer, and for this purpose, the tab set is The position is specified by the number of dots, and tab set control is performed based on the total number of printed dots and the number of dots specifying the tab set position.
(ニ) 実施例 以下図面に基づいて本発明を説明する。(d) Examples The present invention will be explained below based on the drawings.
第1図は本発明によるタブセツト制御印字法を
実施するプリンタの要部の機能ブロツク線図であ
り、この図を用いてタブセツト制御法を説明す
る。 FIG. 1 is a functional block diagram of the main parts of a printer that implements the tab set control printing method according to the present invention, and the tab set control method will be explained using this diagram.
ホスト機器からコード化された(たとえば16進
法でコード化された)文字情報と印字のための制
御命令がプリンタに伝送されてくる。この制御命
令の中にタブセツト命令が含まれている。文字情
報と制御命令は一旦入力バツフア1に記憶され
る。入力バツフア1に記憶された文字情報および
制御命令はそれぞれ中央処理装置(図示せず)に
よつて解読されて頁メモリ2に記憶されるが、こ
の場合文字情報はMSB(最上位ビツト)を“0”
にして1バイトで表わされる文字データとして、、
また制御命令はMSBを“1”にした1バイトで
表わされる制御データとして記憶される。第2図
イにたとえばアルフアベツトの“A”を表わす16
進文字コード“41”の文字データを、同図ロに
“HT(水平タブ)”を表わすコード“09”の制御
データを例示した。各文字等のコードは予め定め
られている。 Coded (for example, hexadecimal) character information and control commands for printing are transmitted from the host device to the printer. This control command includes a tab set command. Character information and control commands are temporarily stored in the input buffer 1. The character information and control commands stored in the input buffer 1 are each decoded by a central processing unit (not shown) and stored in the page memory 2, but in this case, the character information has the MSB (most significant bit) as " 0”
As character data expressed in 1 byte,
Further, the control command is stored as control data represented by 1 byte with the MSB set to "1". Figure 2 A shows, for example, the letter “A” for Alphabetical16.
Character data with a hexadecimal character code "41" is shown as an example, and control data with a code "09" representing "HT (horizontal tab)" is shown in FIG. The code for each character etc. is determined in advance.
タブセツトテーブル3は予め設定した標準コラ
ムのタブセツト値(たとえば1,180,360,540,
720)を保有し、後述するようにホスト機器から
タブセツト命令が伝送されたきたときは標準のタ
ブセツト値をタブセツト命令で指定されたタブセ
ツト値に置き換える。 Tab set table 3 contains preset standard column tab set values (for example, 1, 180, 360, 540,
720), and when a tab set command is transmitted from the host device as described later, the standard tab set value is replaced with the tab set value specified by the tab set command.
横ドツトテーブル4のROMには各文字等の属
性情報の1つである横ドツト数(たとえばアルフ
アベツトの“A”,“B”,“C”の横ドツト数はそ
れぞれ26,28,27)がテーブルとして記憶されて
いる。 The ROM of the horizontal dot table 4 contains the number of horizontal dots, which is one of the attribute information of each character (for example, the number of horizontal dots for alphabets "A", "B", and "C" are 26, 28, and 27, respectively). It is stored as a table.
頁メモリ2に記憶された文字データは文字発生
器8から出力するドツトデータを読み出し易いよ
うにデータ変換器5により該当する文字のメモリ
のスタートアドレスデータに変換して文字ライン
バツフア6にコラムごとに記憶する。一方、属性
ラインバツフア7には文字ラインバツフア6に記
憶した各文字の属性データの1つである文字の横
ドツト数が横ドツトテーブル4から読み出されて
書込まれる。その他属性ラインバツフア7には、
アンダーライン、文字反転(白黒)、文字の大き
さを指令するデータが書込まれる。 The character data stored in the page memory 2 is converted by a data converter 5 into the start address data of the corresponding character memory so that the dot data output from the character generator 8 can be easily read out, and is stored column by column in the character line buffer 6. do. On the other hand, the number of horizontal dots of a character, which is one of the attribute data of each character stored in the character line buffer 6, is read out from the horizontal dot table 4 and written into the attribute line buffer 7. Other attribute line buffer 7 includes
Data that commands underlining, character reversal (black and white), and character size is written.
こうして文字ラインバツフア6および属性ライ
ンバツフア7に1行分の文字データおよび属性デ
ータが書込まれた後印字部13からの垂直(副走
査)方向画像有効領域を示す信号VDによつて両
ラインバツフア6,7のデータが読み出される。
文字ラインバツフア6から読み出された1コラム
目の文字データは文字発生器8から発生される該
当文字のスタートアドレスであり、これによつて
文字発生器8からは該当文字のドツトデータが出
力されて並直変換回路9に送られる。一方、属性
ラインバツフア7からは文字ラインバツフア6の
コラムに対応する文字の横ドツト数が読み出さ
れ、ドツトカウンタ10によりカウントされる。 After one line of character data and attribute data are written in the character line buffer 6 and attribute line buffer 7 in this way, both line buffers 6 and 7 are data is read.
The character data in the first column read from the character line buffer 6 is the start address of the corresponding character generated from the character generator 8, so that the character generator 8 outputs the dot data of the corresponding character. It is sent to the parallel-to-serial conversion circuit 9. On the other hand, the number of horizontal dots of the character corresponding to the column of the character line buffer 6 is read out from the attribute line buffer 7 and counted by the dot counter 10.
並直変換回路9内の文字ドツトデータは印字部
13での印字を行なうドツトクロツクCLKに同
期して読み出され、ビデオ信号として印字部13
に送られる。ドツトクロツクCLKは並直変換回
路9のトリガークロツクとなるほかにHカウンタ
11に入力され計数される。 The character dot data in the parallel-to-serial conversion circuit 9 is read out in synchronization with the dot clock CLK for printing in the printing section 13, and is sent to the printing section 13 as a video signal.
sent to. The dot clock CLK serves as a trigger clock for the parallel-to-serial conversion circuit 9, and is also input to the H counter 11 and counted.
Hカウンタ11の計数値は比較回路12によつ
てドツトカウンタ10の計数値と比較され、両者
が一致したとき(これは1文字分の横ドツトが読
み出されたことを意味する)比較回路12から文
字エンド信号CEが出力され、ラインバツフアカ
ウンタ14に送られる。ラインバツフアカウンタ
14は文字エンド信号CEが入力されて計数値が
1だけ増すと文字、属性ラインバツフア6,7の
アドレスを1コラム分進め、第2コラム目の文字
のメモリのスタートアドレスデータが読み出され
るようにする。 The count value of the H counter 11 is compared with the count value of the dot counter 10 by the comparison circuit 12, and when the two match (this means that horizontal dots for one character have been read), the comparison circuit 12 compares the count value of the H counter 11 with the count value of the dot counter 10. A character end signal CE is outputted from and sent to the line buffer counter 14. When the character end signal CE is input to the line buffer counter 14 and the count value increases by 1, the address of the character and attribute line buffers 6 and 7 is advanced by one column, and the start address data of the character in the second column is read out. make it possible to do so.
こうしてホスト機器から伝送されてくる文字情
報および制御命令に基づいてビデオ信号が発生さ
れる。 In this way, a video signal is generated based on the character information and control commands transmitted from the host device.
次に本発明によるタブセツト動作について説明
する。 Next, the tab set operation according to the present invention will be explained.
作表時のコラムを定めるタブセツト値が予め定
めた標準タブセツト値と異なるときは、プリント
動作に先立つてタブセツト命令として設定したい
タブセツト値をホスト機器からプリンタ側に伝送
しておく。たとえば、ホスト機器から伝送されて
くるタブセツト値が、240,480,720と指定され
ると、プリンタのタブセツトテーブル3に予め設
定されている標準タブセツト値がこの指定された
タブセツト値に置き換えられる。その後プリント
動作が始まり、文字データとして“A”,“B”,
“C”,“HT”,“D”,“E”,“HT”,“F”,“
C/
R(キヤリジリターン)”,“L/F(ラインフイー
ド)”が伝送されてきたとすると、横ドツトテー
ブル4に記憶されている文字“A”,“B”,“C”
の横ドツト数がそれぞれ26,28,27であるので、
“A”,“B”,“C”を読み出したときのドツトカ
ウンタ10の計数値は81である。次に、“HT”
を読み出したときタブセツトテーブル3から第1
のタブセツト値240を読み出し、ドツトカウンタ
10の内容(計数値81)を240に設定し直す。そ
の結果、ビデオ信号から“A”,“B”,“C”のド
ツトデータが読み出された後のHカウンタ11は
その計数値が240に達するまで比較回路12から
は文字エンド信号CEが発生せず、並直変換回路
9からは空ドツトデータがビデオ信号として出力
される。 When the tabset values that define the columns at the time of tabulation differ from the predetermined standard tabset values, the tabset values to be set are transmitted from the host device to the printer side as a tabset command prior to the printing operation. For example, when the tab set value transmitted from the host device is specified as 240, 480, or 720, the standard tab set value preset in the tab set table 3 of the printer is replaced with the specified tab set value. After that, the printing operation starts, and the character data is “A”, “B”, etc.
“C”, “HT”, “D”, “E”, “HT”, “F”, “
C/
If "R (carriage return)" and "L/F (line feed)" are transmitted, the characters "A", "B", and "C" stored in the horizontal dot table 4 are
Since the number of horizontal dots is 26, 28, and 27, respectively,
The count value of the dot counter 10 when reading out "A", "B", and "C" is 81. Next, “HT”
When reading the first tab from tab set table 3,
The tab set value 240 is read out, and the content of the dot counter 10 (count value 81) is reset to 240. As a result, after the dot data of "A", "B", and "C" are read out from the video signal, the H counter 11 generates a character end signal CE from the comparison circuit 12 until the counted value reaches 240. Instead, the parallel-to-serial conversion circuit 9 outputs empty dot data as a video signal.
その後Hカウンタ11の計数値が240に達する
と比較回路12から文字エンド信号が発生し、ラ
インバツフアカウンタ14が1コラム分進めら
れ、次のコラム(第2コラム)の最初の文字
“D”のスタートアドレスが文字ラインバツフア
6から読み出される。 Thereafter, when the count value of the H counter 11 reaches 240, a character end signal is generated from the comparison circuit 12, the line buffer counter 14 is advanced by one column, and the first character "D" of the next column (second column) is generated. The start address of is read from the character line buffer 6.
第2コラムでの印字(“D”,“E”)が終了する
と、同様にしてHカウンタ11の計数値が次のタ
ブセツト値480に達するまでの空ドツトデータ
が出力し、480に達したとき文字エンド信号が発
生してラインバツフアカウンタ14がさらに1コ
ラム分進められた次のコラム(第3コラム)の最
初の文字“F”のスタートアドレスが文字ライン
バツフア6から読み出され、文字発生器8に送ら
れる。 When printing (“D”, “E”) in the second column is completed, empty dot data is output in the same way until the count value of the H counter 11 reaches the next tab set value of 480, and when it reaches 480. When the character end signal is generated, the line buffer counter 14 is further advanced by one column, and the start address of the first character "F" in the next column (third column) is read out from the character line buffer 6, and the character generator Sent to 8th.
その後は各行について全く同様にして印字が行
われるので、各コラムの頭すなわち印字の始端が
一直線上に揃い見ばえのよい作表ができる。 Thereafter, each row is printed in exactly the same way, so that the beginning of each column, that is, the start of printing, is aligned in a straight line, resulting in a tabulation that looks good.
(ホ) 発明の効果
以上説明したように、本発明においては、タブ
セツト値を文字数でなくドツト数で指定するよう
にしたので、各コラムの頭が一直線上に揃い見ば
えのよい印字ができ、作表などがきれいにでき
る。(e) Effects of the Invention As explained above, in the present invention, the tab set value is specified by the number of dots instead of the number of characters, so the heads of each column are aligned in a straight line, making it possible to print with good visibility. , tables etc. can be created neatly.
本発明はプロポーシヨナル、スペーシング印字
を行なう場合には特に有効であるが、通常の印字
で文字間隔を変えて印字する場合にも効果的であ
る。 The present invention is particularly effective when performing proportional or spacing printing, but is also effective when printing with varying character spacing in normal printing.
第1図は本発明によるタブセツト制御法による
印字を行なうプリンタの要部機能ブロツク線図、
第2図は印字を行なうためのデータの一例で、イ
は文字データ、ロはタブセツト制御データであ
る。
1……入力バツフア、2……頁メモリ、3……
タブセツトテーブル、4……横ドツトテーブル、
6……文字ラインバツフア、7……属性ラインバ
ツフア、8……文字発生器、9……並直変換回
路、10……ドツトカウンタ、11……Hカウン
タ、12……比較回路、13……印字部、14…
…ラインバツフアカウンタ。
FIG. 1 is a functional block diagram of the main parts of a printer that performs printing using the tab set control method according to the present invention.
FIG. 2 shows an example of data for printing, where A is character data and B is tab set control data. 1...Input buffer, 2...Page memory, 3...
Tab set table, 4...Horizontal dot table,
6...Character line buffer, 7...Attribute line buffer, 8...Character generator, 9...Parallel/serial conversion circuit, 10...Dot counter, 11...H counter, 12...Comparison circuit, 13...Printing section , 14...
...Line buffer counter.
Claims (1)
う印字法において、タブセツト位置をドツト数で
指定し、ホスト機器から供給された文字コードと
タブコードとを含む印字データ列を記憶し、記憶
した印字データ列を順次読み出して印字を行うに
当たり、1行分の印字を行う過程で印字進行方向
のドツト数をカウントするとともに、タブコード
が読み出されたときは、前記印字進行方向のドツ
ト数のカウント値が前記指定されたタブセツト位
置のドツト数になるまで空ドツトデータを出力し
た後に次の文字の印字を行うことを特徴とするタ
ブセツト制御印字法。1. In a printing method that prints with a different number of dots determined for each character, the tab set position is specified by the number of dots, the print data string containing the character code and tab code supplied from the host device is stored, and the stored print When sequentially reading and printing a data string, the number of dots in the printing direction is counted in the process of printing one line, and when the tab code is read, the number of dots in the printing direction is counted. A tab set control printing method characterized in that the next character is printed after outputting blank dot data until the value reaches the number of dots at the specified tab set position.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21340283A JPS60105568A (en) | 1983-11-15 | 1983-11-15 | Tab set control printing |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21340283A JPS60105568A (en) | 1983-11-15 | 1983-11-15 | Tab set control printing |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60105568A JPS60105568A (en) | 1985-06-11 |
| JPH0463786B2 true JPH0463786B2 (en) | 1992-10-12 |
Family
ID=16638621
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21340283A Granted JPS60105568A (en) | 1983-11-15 | 1983-11-15 | Tab set control printing |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60105568A (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57185079A (en) * | 1981-05-08 | 1982-11-15 | Ricoh Kk | Character display controller |
| US4519047A (en) * | 1982-03-22 | 1985-05-21 | Sperry Corporation | Printer with positional tabbing |
-
1983
- 1983-11-15 JP JP21340283A patent/JPS60105568A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60105568A (en) | 1985-06-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0630910B2 (en) | Printing method | |
| JPH0463786B2 (en) | ||
| JPS58117036A (en) | Print control device | |
| JPS629031B2 (en) | ||
| JPS5931751B2 (en) | Dot printing device | |
| JPH057192B2 (en) | ||
| JPS6261436B2 (en) | ||
| JPS59201870A (en) | Printer | |
| JP2564513B2 (en) | Printer control device | |
| JPS6134994B2 (en) | ||
| JPH0753466B2 (en) | Output device | |
| JPS6230111B2 (en) | ||
| JPS6049958A (en) | Kanji printer | |
| JPS6073670A (en) | Output unit | |
| JPS6280056A (en) | dot printing device | |
| KR930007668A (en) | Vertical writing control device and control method of laser printer | |
| JPS6252718B2 (en) | ||
| JPS60105567A (en) | Proportional spacing printing | |
| JPS6230112B2 (en) | ||
| JPH03161377A (en) | Japanese language data printer | |
| JPS62284777A (en) | Printing controlling system for variable line feed pitch business form | |
| JPS6135982A (en) | Printing processing apparatus | |
| JPH0226765A (en) | Printer device | |
| JPS6354554B2 (en) | ||
| JPS584431A (en) | Controlling system of kanji (chinese character) printer |