JPS6361690B2 - - Google Patents

Info

Publication number
JPS6361690B2
JPS6361690B2 JP53115880A JP11588078A JPS6361690B2 JP S6361690 B2 JPS6361690 B2 JP S6361690B2 JP 53115880 A JP53115880 A JP 53115880A JP 11588078 A JP11588078 A JP 11588078A JP S6361690 B2 JPS6361690 B2 JP S6361690B2
Authority
JP
Japan
Prior art keywords
code
character
control
buffer
printing
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
Application number
JP53115880A
Other languages
Japanese (ja)
Other versions
JPS5543631A (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 JP11588078A priority Critical patent/JPS5543631A/en
Publication of JPS5543631A publication Critical patent/JPS5543631A/en
Publication of JPS6361690B2 publication Critical patent/JPS6361690B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 この発明はシリアルプリンタを用いた印字方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a printing method using a serial printer.

計算機の端末装置として接続される印字装置と
しては行単位で印字するラインプリンタと、1文
字単位で印字を行なうシリアルプリンタとして大
別される。例えば、第1図に示すように、印字用
紙1の第n行目に図示のように印字出力したい場
合、計算機は印字装置に対して第2図に示すよう
な文字コード列を出力する。
Printing devices connected as terminal devices for computers are broadly classified into line printers that print line by line and serial printers that print character by character. For example, as shown in FIG. 1, when it is desired to print out the nth line of printing paper 1 as shown, the computer outputs a character code string as shown in FIG. 2 to the printing device.

第2図において例えば第7文字目の「住」は漢
字「住」の文字コードを表わすものとする。また
第1〜第6文字目及び第7〜第8文字目の「空
白」は空白文字(何も印字しない部分)コードを
表わすものとする。
In FIG. 2, for example, the seventh character "Sumi" represents the character code of the Kanji character "Sumi". Further, the first to sixth characters and the seventh to eighth characters "blank" represent a blank character (portion where nothing is printed) code.

印字装置としてラインプリンタであれば、これ
ら第n行目の文字コード列の全てにそれぞれ対応
する文字がほぼ同時に印字される。一方、シリア
ルプリンタを用いる場合には、第1文字から順に
印字されていく。いま第1文字から第6文字まで
は空白文字であるから実際には何も印字しないに
もかかわらず印字ヘツドを1文字位置毎に移動さ
せながら印字を行つて行くことになる。
If the printing device is a line printer, characters corresponding to all of these character code strings on the nth line are printed almost simultaneously. On the other hand, when using a serial printer, the characters are printed in order starting from the first character. Since the first to sixth characters are blank characters, printing is performed by moving the print head position by character even though nothing is actually printed.

したがつて、一般にシリアルプリンタはライン
プリンタに比べて印字速度が遅い。そこで印字速
度を向上するために空白文字をスキツプすること
のできるシリアルプリンタが開発されている。こ
れは連続して空白文字がある場合に、次の文字印
字位置(空白文字でない)まで印字ヘツドをスキ
ツプさせるタブコードを予め文字コード列中に挿
入しておき、シリアルプリンタがこのタブコード
を検出したら直ちに次の文字印字位置までスキツ
プして印字動作を行なうものである。しかしなが
ら空白文字コードの場合には依然として印字ヘツ
ドを1文字ずつ移動していた。
Therefore, serial printers generally have slower printing speeds than line printers. Therefore, serial printers that can skip blank characters have been developed to improve printing speed. This is done by inserting a tab code in advance into the character code string that skips the print head to the next character printing position (not a blank character) when there are consecutive blank characters, and the serial printer detects this tab code. Then, it immediately skips to the next character printing position and performs the printing operation. However, in the case of blank character codes, the print head was still moved one character at a time.

例えば文書作成装置の場合には、一般にページ
メモリを用いてオペレータが対話的に文字コード
列からなる文書を作成していくが、このとき、オ
ペレータが逐一タブコードを用いて空白が続く部
分を指定するように入力することは過大な労力で
あるため、熟練者しか期待できない。このため、
上述のスキツプ可能なシリアルプリンタを用いた
としても、熟練者が作成した予めタブコードを含
む文書は比較的高速に印字できるものの、非熟練
者が空白文字を用いて作成した文書については高
速印字ができないという問題があつた。
For example, in the case of a document creation device, an operator generally uses page memory to interactively create a document consisting of a string of character codes. At this time, the operator uses tab codes one by one to specify the parts where blanks continue. Since it is an excessive effort to enter the information to do so, it can only be expected by experienced users. For this reason,
Even if the above-mentioned skippable serial printer is used, documents created by an experienced person that include tab codes can be printed relatively quickly, but documents created by an unskilled person using blank characters cannot be printed at high speed. The problem was that I couldn't do it.

この発明の目的は上記問題点を解決した印字方
式を提供するにある。
An object of the present invention is to provide a printing method that solves the above problems.

この発明は、一般に計算機等からシリアルプリ
ンタに転送される文字コード列の転送速度のほう
が、シリアルプリンタの印字速度に比較して速い
ことに鑑み、スキツプ機能を持つシリアルプリン
タ自身に、通常の文字コード列をタブコードを含
む文字コード列に変換する機能を持たせたことに
特徴を有する。
In view of the fact that the transfer speed of character code strings transferred from computers etc. to serial printers is generally faster than the printing speed of serial printers, this invention has developed The feature is that it has a function to convert a string into a character code string including a tab code.

第3図はこの発明の一実施例を示すブロツク図
である。同図において、10は図示しない計算機
から供給される文字コード列を収容する入力バツ
フア、11は文字コード列から空白文字コードを
検知するためのコード判別部、12はタブコード
発生部、13は連続する空白文字コード数を計算
する計算部、14は制御コード発生部、15は編
集バツフア、16は出力バツフア、17は制御
部、18,19はヘツド駆動部である。
FIG. 3 is a block diagram showing one embodiment of the present invention. In the figure, 10 is an input buffer that accommodates a character code string supplied from a computer (not shown), 11 is a code discrimination unit for detecting a blank character code from the character code string, 12 is a tab code generation unit, and 13 is a continuous 14 is a control code generating section, 15 is an editing buffer, 16 is an output buffer, 17 is a control section, and 18 and 19 are head driving sections.

いま第2図に示すような文字コード列が入力バ
ツフア10に供給されたとすると、各文字コード
は順次コード判別部11に供給されて空白文字コ
ードであるか否か判別される。第2図に示す文字
コード列の第1文字目は空白文字コードであるか
らコード判別部11はタブコード発生部12及び
計数部13へ判別信号を出力する。これによつて
タブコード発生部12はタブコードを発生する。
このタブコードは編集バツフア15に供給され
る。また計数部13は判別信号によつて内部に有
するカウンタ(図示せず)をカウントアツプす
る。以下第6文字目までは同様に空白文字コード
が連続しているので計数部13が空白文字コード
数を計数していく。なお、タブコード発生部12
は最初の空白文字コードが検知されたときのみタ
ブコードを発生するものである。
Assuming that a character code string as shown in FIG. 2 is supplied to the input buffer 10, each character code is sequentially supplied to the code determination section 11 to determine whether or not it is a blank character code. Since the first character of the character code string shown in FIG. 2 is a blank character code, the code discrimination section 11 outputs a discrimination signal to the tab code generation section 12 and the counting section 13. As a result, the tab code generating section 12 generates a tab code.
This tab code is supplied to the editing buffer 15. Further, the counting section 13 counts up an internal counter (not shown) based on the discrimination signal. Since the blank character codes are consecutive in the same manner up to the sixth character, the counting unit 13 counts the number of blank character codes. Note that the tab code generation section 12
generates a tab code only when the first space character code is detected.

次の第7文字目は文字コード「住」であるの
で、コード判別部11はまず制御コード発生部1
4に制御信号を出力する。この制御信号によつて
制御コード発生部は計数部13の計数値に対応す
る制御コードC1を発生して編集バツフア15に
供給する。しかる後、コード判別部11は入力文
字コード「住」をそのまま編集バツフア15へ供
給する。以下第8文字目の文字コード「所」もそ
のまま編集バツフア15に供給される。このよう
にして編集バツフア15には、第4図に示すよう
な、タブコードを含む文字コード列が収容され
る。同図において「タブ」はタブコードを表わし
「C1」、「C2」は制御コードを表わしている。
Since the next seventh character is the character code "Sumi", the code discrimination section 11 first uses the control code generation section 1.
A control signal is output to 4. In response to this control signal, the control code generating section generates a control code C 1 corresponding to the count value of the counting section 13 and supplies it to the editing buffer 15 . Thereafter, the code discrimination section 11 supplies the input character code "Sumi" to the editing buffer 15 as it is. The eighth character code "Tokoro" is also supplied to the editing buffer 15 as is. In this way, the editing buffer 15 stores character code strings including tab codes as shown in FIG. In the figure, "Tab" represents a tab code, and "C 1 " and "C 2 " represent control codes.

次に編集バツフア15の文字コード列は順次出
力バツフア16に取り出される。制御部17はこ
の出力バツフア16内のコードをみて、タブコー
ドであればこのタブコードに連続する制御コード
を取り込む。いま制御コードC1(C1=6)が制御
部17に取り込まれると、制御部17はヘツド駆
動部18に6ステツプだけスキツプさせる信号を
供給する。したがつて図示しない印字ヘツドは第
7文字目の印字位置まで移動(スキツプ)する。
Next, the character code strings in the editing buffer 15 are sequentially taken out to the output buffer 16. The control section 17 looks at the code in the output buffer 16, and if it is a tab code, takes in the control code that follows this tab code. When the control code C 1 (C 1 =6) is now taken into the control section 17, the control section 17 supplies a signal to the head drive section 18 to skip six steps. Therefore, the printing head (not shown) moves (skips) to the printing position of the seventh character.

次に制御部17は次の文字コード「住」に従う
文字パターンデータあるいは活字バーを選択して
印字を指令する。なお、この印字はドツトでもイ
ンパクトでもない方式でもよい。更に次のコード
は文字コード「所」であるから制御部17は通常
動作として1ステツプだけ印字位置を移動させて
第1図に示す第7文字目の「所」を印字する。以
下同様にして第1図に示す第9文字から第11文字
目までをタブコード及び制御コードC2によりス
キツプした後「川」、「崎」…の順に印字して行
く。
Next, the control unit 17 selects character pattern data or a type bar according to the next character code "Sumi" and instructs printing. Note that this printing may be performed using a method other than dot or impact printing. Furthermore, since the next code is the character code ``toko'', the control section 17 moves the printing position by one step as a normal operation and prints the seventh character ``toko'' shown in FIG. Thereafter, in the same manner, after skipping the 9th to 11th characters shown in FIG. 1 using the tab code and control code C2 , "kawa", "saki", etc. are printed in this order.

このようにこの発明によれば外部から空白文字
部分のスキツプを予め指示しなくても自動的に空
白文字部分をスキツプして高速な印字を行なうよ
うにシリアルプリンタを制御することができるの
で、予めタブコードを用いて作成されなかつた文
書等であつても高速な印字が可能である。特に実
施例ではシリアルプリンタにタブ作成機能を持た
せたので、無用に計算機の占有時間あるいはこの
シリアルプリンタに対する特別な処理ルーチンを
計算機側に準備させることがないのでシステムの
効率アツプに大きく寄与することができる。
As described above, according to the present invention, it is possible to control the serial printer to automatically skip the blank character part and perform high-speed printing without having to instruct the printer to skip the blank character part in advance from the outside. Even documents that were not created using tab codes can be printed at high speed. In particular, in the embodiment, since the serial printer is provided with a tab creation function, there is no need to uselessly occupy the computer or prepare a special processing routine for this serial printer on the computer side, which greatly contributes to increasing the efficiency of the system. I can do it.

なお上記実施例では、制御コードをタブコード
の直後に付加するように構成されているが、例え
ば1行文の文字コード列中にあらわれる制御コー
ドはこの1行文の文字コード列中の最初にまとめ
てもよいし、制御コードを文字コード列中に挿入
することなく制御コード用のバツフアを別に設け
てもよい。その他この発明の主旨を逸脱すること
なく種々変形して実施できることは言うまでもな
い。
In the above embodiment, the control code is added immediately after the tab code, but for example, the control codes that appear in the character code string of a one-line sentence are grouped together at the beginning of the character code string of this one-line sentence. Alternatively, a buffer for the control code may be provided separately without inserting the control code into the character code string. It goes without saying that various other modifications can be made without departing from the spirit of the invention.

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

第1図及び第2図は印字動作を説明するための
図、第3図はこの発明の一実施例を示す図、第4
図はこの発明の一実施例を説明するための図であ
る。 10……入力バツフア、11……コード判別
部、12……タブコード発生部、13……計数
部、14……制御コード発生部、15……編集バ
ツフア。
Figures 1 and 2 are diagrams for explaining the printing operation, Figure 3 is a diagram showing an embodiment of the present invention, and Figure 4 is a diagram for explaining the printing operation.
The figure is a diagram for explaining one embodiment of the present invention. 10...Input buffer, 11...Code discrimination section, 12...Tab code generation section, 13...Counter section, 14...Control code generation section, 15...Edit buffer.

Claims (1)

【特許請求の範囲】 1 シリアルプリンタの印字方式であつて、 空白文字コードを含む文字コード列を収容する
第1のバツフアと、 この第1のバツフアから順次文字コードを取り
出して空白文字コードを検知するコード判別手段
と、 このコード判別手段によつて前記空白文字コー
ドが検知されたとき連続する空白文字コード数を
計数する計数手段と、 この計数手段による計数値に応じた第1の制御
コードを出力する第1制御コード発生手段と、 印字のスキツプを指示するための第2の制御コ
ードを出力する第2制御コード発生手段と、 前記コード判別手段によつて空白文字コードが
検知されたときには前記文字コード列中の空白文
字コード部分を前記第1及び第2の制御コードに
変換して収容し、前記コード判別手段によつて空
白文字コードが検知されないときには当該文字コ
ードをそのまま収容する第2のバツフアと、 シリアルプリンタとを備え、 前記シリアルプリンタは前記第2の制御コード
によりスキツプ可能となり、前記第1の制御コー
ドで指示された量だけスキツプを行なうことを特
徴とする印字方式。 2 第2のバツフアは、制御コードを文字コード
列の行毎にまとめて収容することを特徴とする特
許請求の範囲第1項記載の印字方式。 3 第2のバツフアは、文字コードを収容する部
分と、制御コードを収容する部分とに区分されて
いることを特徴とする特許請求の範囲第1項記載
の印字方式。 4 第2の制御コードがタブコードであることを
特徴とする特許請求の範囲第1項記載の印字方
式。
[Claims] 1. A printing method for a serial printer, which includes a first buffer that accommodates a character code string including a blank character code, and a blank character code that is detected by sequentially extracting character codes from the first buffer. a code discriminating means for counting the number of consecutive blank character codes when the blank character code is detected by the code discriminating means; and a first control code corresponding to the count value by the counting means. a first control code generating means for outputting a second control code; a second control code generating means for outputting a second control code for instructing skip printing; and a second control code generating means for outputting a second control code for instructing skip printing; A second control code that converts and stores a blank character code part in the character code string into the first and second control codes, and stores the character code as it is when the blank character code is not detected by the code discrimination means. A printing method comprising: a buffer; and a serial printer, wherein the serial printer is enabled to skip by the second control code, and skips by an amount instructed by the first control code. 2. The printing method according to claim 1, wherein the second buffer stores the control codes in a group for each row of the character code string. 3. The printing method according to claim 1, wherein the second buffer is divided into a portion that accommodates a character code and a portion that accommodates a control code. 4. The printing method according to claim 1, wherein the second control code is a tab code.
JP11588078A 1978-09-22 1978-09-22 Printer Granted JPS5543631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11588078A JPS5543631A (en) 1978-09-22 1978-09-22 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11588078A JPS5543631A (en) 1978-09-22 1978-09-22 Printer

Publications (2)

Publication Number Publication Date
JPS5543631A JPS5543631A (en) 1980-03-27
JPS6361690B2 true JPS6361690B2 (en) 1988-11-30

Family

ID=14673451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11588078A Granted JPS5543631A (en) 1978-09-22 1978-09-22 Printer

Country Status (1)

Country Link
JP (1) JPS5543631A (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56162139A (en) * 1980-05-16 1981-12-12 Hitachi Ltd Printing equipment
JPS58193169A (en) * 1982-05-07 1983-11-10 Canon Inc Thermal transfer printer
JPS59125432A (en) * 1982-12-30 1984-07-19 Fujitsu Ltd Print control system of incremental type printer
JPH0636546B2 (en) * 1985-02-25 1994-05-11 富士通株式会社 Serial printer
JPS61224771A (en) * 1985-03-29 1986-10-06 Fujitsu Ltd Hard copy control system
JPH061773B2 (en) * 1987-12-22 1994-01-05 株式会社東芝 Direct contact formation method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5118409A (en) * 1974-08-07 1976-02-14 Hitachi Ltd
JPS5151247A (en) * 1974-10-31 1976-05-06 Fujitsu Ltd KUROTSUKUISOCHOSEIHOHO

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5118409A (en) * 1974-08-07 1976-02-14 Hitachi Ltd
JPS5151247A (en) * 1974-10-31 1976-05-06 Fujitsu Ltd KUROTSUKUISOCHOSEIHOHO

Also Published As

Publication number Publication date
JPS5543631A (en) 1980-03-27

Similar Documents

Publication Publication Date Title
JP2507752B2 (en) Printing method
US5557707A (en) Image forming apparatus with a scanner and method of controlling the same
JPS6361690B2 (en)
JP3006098B2 (en) Print data processing device
JPS6335431B2 (en)
US6680782B1 (en) Method and apparatus of using a raster image processor and interpolator to increase the speed of operation and reduce memory requirements for electronic printing
JP4942414B2 (en) Printing device
US5499321A (en) Printing method for use with dot printer
JPS5831785A (en) Control mode for printer
JPH0643142B2 (en) Printer space processing device
JP4720041B2 (en) Printer, printing control method, and information recording medium
US5520469A (en) Dot matrix printer
JPS62216029A (en) Graphic print control system
JP3103229B2 (en) Document processing apparatus and document processing method
JP3033731B2 (en) Ruled line processing device, ruled line processing method, and recording medium for recording program
JP2547716B2 (en) Data processing system
JP2798640B2 (en) Ruled line printing control method
JPS6164470A (en) Printing method of printer
JPH07105886B2 (en) Recording device
JPS60230854A (en) Printing method
JP2000225732A (en) Controller and control method for printer
JPH11110151A (en) Printer driver, computer having printer driver, and computer system
JP2647510B2 (en) Character processing apparatus and method
JP3003266B2 (en) Serial printer
JPS5831443A (en) Printer