JPH02248268A - Recorder - Google Patents

Recorder

Info

Publication number
JPH02248268A
JPH02248268A JP6921089A JP6921089A JPH02248268A JP H02248268 A JPH02248268 A JP H02248268A JP 6921089 A JP6921089 A JP 6921089A JP 6921089 A JP6921089 A JP 6921089A JP H02248268 A JPH02248268 A JP H02248268A
Authority
JP
Japan
Prior art keywords
character
printed
printing
area
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
JP6921089A
Other languages
Japanese (ja)
Inventor
Tsutomu Takahashi
勉 高橋
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP6921089A priority Critical patent/JPH02248268A/en
Publication of JPH02248268A publication Critical patent/JPH02248268A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To lessen deviation of a dot in a same character by a method wherein in the case of a character incapable of being recorded by one time scanning of a recording head, a character pattern is divided up and down from a base line of the character, and each of them is recorded in different scanning time. CONSTITUTION:A CPU 1 determines a vertical dot number l1 from a reference line, a lateral dot number l2, a dot number l3 to the base line BL, a large character height l4, a small character height l5, and a small character downside height l6 from a character font size of one line content character data stored in a text buffer 6 based on a character font information in a character font ROM 4. Then, when the vertical width l1 of a character dot pattern is larger than a width h of a printing head, the CPU 1 controls a printer 12 so as to record by a plurality of scans of a recording head by dividing the character pattern by the base line BL, further by l4 or l3. Deviation of a dot in a same character can be thus lessened.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は記録ヘッドを走査して、ドツトマトリクスで記
録する記録装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printing apparatus that scans a print head to print in a dot matrix.

[従来の技術] 近年、ドツトマトリクスタイプの印字ヘッド、例えばサ
ーマルヘッドやインクジェットヘッドなどの進歩には著
しいものがあり、これら記録用ヘッドを用いて印刷され
た文字の品位は活字に匹敵するようになってきた。この
ようなドツトマトリクスヘッドを用いて記録を行うプリ
ンタの利点の1つに、種々の字体や種々のサイズを有す
る文字を印字できることが挙げられる。これにより、例
えば明朝体やゴシック体、更には大見出し用の大文字、
小見出し用の中文字など、所要文字のドツトパターンを
記憶しておくことによって、それらの文字を印字できる
ようになる。
[Prior Art] In recent years, there have been remarkable advances in dot matrix type print heads, such as thermal heads and inkjet heads, and the quality of characters printed using these recording heads has come to rival that of printed letters. It has become. One of the advantages of a printer that performs recording using such a dot matrix head is that it can print characters having various fonts and various sizes. As a result, for example, Mincho typeface, Gothic typeface, and even capital letters for large headings,
By memorizing the dot patterns of required characters, such as medium letters for subheadings, those characters can be printed.

ドツトマトリクスタイプのプリンタはその構造から大き
く2つに分類され、そのうち1つはラインプリンタと呼
ばれるものである。このラインプリンタは、印字範囲に
相当する長さを有する記録ヘッドを備え、1行単位で記
録しながら用紙を送るもので、記録速度が早く高品位な
記録が得られる特徴がある。しかしながら、このタイプ
のプリンタは装置が大型で高価なものになる。他方はシ
リアルプリンタと呼ばれるプリンタで、縦方向に複数の
記録ヘッドを備え、この記録ヘッドを行方向(水平方向
)に移動させることにより1行の記録を行うもので、1
行の記録終了後、記録紙を次の記録行まで搬送して印字
を実行している。このタイプのプリンタは装置を小型化
でき、安価に供給することが可能である。
Dot matrix type printers are broadly classified into two types based on their structure, one of which is called a line printer. This line printer is equipped with a recording head having a length corresponding to the printing range, and feeds paper while recording line by line, and is characterized by high recording speed and high quality recording. However, this type of printer is large and expensive. The other is a printer called a serial printer, which is equipped with multiple recording heads in the vertical direction and records one line by moving the recording heads in the row direction (horizontal direction).
After recording a line, the recording paper is conveyed to the next recording line and printing is performed. This type of printer can be miniaturized and can be supplied at low cost.

[発明が解決しようとしている課題] しかしながら、上述したシリアルプリンタにおいて、印
字ヘッドの印字幅(ドツト数)を超える縦幅の文字を印
字する際は、1回の走査でその文字全体を印字すること
ができないため、記録紙の搬送処理を挟んで、複数回の
印字走査を行なう必要がある。このため、記録紙の移動
ずれなどが発生し、ドツトが重なったりドツト間に隙間
が発生するなど、印字の「歪み」が発生しやすいという
問題がある。このような歪みは、1つの文字に対し印字
ヘッドを走査する回数が多くなるほど大きくなるという
問題があった。
[Problems to be Solved by the Invention] However, in the above-mentioned serial printer, when printing a character whose vertical width exceeds the printing width (number of dots) of the print head, it is necessary to print the entire character in one scan. Therefore, it is necessary to perform print scanning multiple times, with recording paper conveyance processing in between. For this reason, there is a problem in that the recording paper is misaligned, and "distortion" in printing is likely to occur, such as overlapping dots or gaps between dots. There is a problem in that such distortion becomes larger as the number of times the print head is scanned for one character increases.

本発明は上記従来例に鑑みてなされたもので、記録され
る文字のフォント高さを識別し、この識別されたフォン
ト高さと記録ヘッドの記録可能高さを比較する。そして
、記録ヘッドの1回の走査で記録できない文字のときは
、文字の基準線を基準として文字パターンを上と下に分
け、それぞれを異なる走査時に記録することにより、同
一文字中におけるドツトのずれを少なくした記録装置を
提供することを目的とする。
The present invention has been made in view of the above conventional example, and identifies the font height of characters to be recorded, and compares the identified font height with the recordable height of the recording head. When a character cannot be recorded in one scan of the print head, the character pattern is divided into upper and lower parts using the character reference line as a reference, and each is recorded in different scans to reduce the misalignment of dots within the same character. The purpose is to provide a recording device with

[課題を解決するための手段] 上記目的を達成するために本発明の記録装置は以下の様
な構成からなる。即ち、 記録媒体の搬送方向にほぼ垂直な方向に記録ヘッドを移
動して、前記記録媒体に記録する記録装置であって、記
録する文字列の基準線に対する文字パターンの高さを求
めるための算出手段と、前記記録ヘッドの記録可能なド
ツト数と前記算出手段によって求められた前記文字パタ
ーンの高さとを比較するための比較手段と、前記比較手
段による比較結果をもとに、前記文字パターンの高さが
前記記録ヘッドのドツト数を上回るときには、前記記録
ヘッドにより複数回走査して記録し、各走査毎に前記基
準線の上あるいは下のパターン単位で記録するように制
御する制御手段とを有する。
[Means for Solving the Problems] In order to achieve the above object, the recording device of the present invention has the following configuration. That is, in a recording apparatus that records on a recording medium by moving a recording head in a direction substantially perpendicular to the conveyance direction of the recording medium, calculation for determining the height of a character pattern with respect to a reference line of a character string to be recorded is performed. means for comparing the number of recordable dots of the recording head with the height of the character pattern determined by the calculating means; When the height exceeds the number of dots of the recording head, the recording head scans and records a plurality of times, and controls the recording head to record in units of patterns above or below the reference line for each scan. have

[作用] 以上の構成において、記録する文字列の基準線に対する
文字パターンの高さを求め、その記録ヘッドの記録可能
なドツト数と、求められた文字パターンの高さとを比較
する。この比較結果をもとに、文字パターンの高さが記
録ヘッドのドツト数を上回るときには、記録ヘッドによ
り複数回走査して記録し、各走査毎にその基準線の上あ
るいは下のパターン単位で記録するように制御するよう
に動作する。
[Operation] In the above configuration, the height of the character pattern with respect to the reference line of the character string to be printed is determined, and the number of dots that can be recorded by the recording head is compared with the determined height of the character pattern. Based on the results of this comparison, if the height of the character pattern exceeds the number of dots on the print head, the print head scans it multiple times to print, and each scan prints in units of patterns above or below the reference line. To control and to operate.

[実施例] 以下、添付図面を参照して本発明の好適な実施例を詳細
に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[電子タイプライタの説明(第1図〜第3図)]第1図
は一実施例の熱転写方式のサーマルプリンタを備えた電
子タイプライタの概略構成を示すブロック図である。
[Description of the electronic typewriter (FIGS. 1 to 3)] FIG. 1 is a block diagram showing a schematic configuration of an electronic typewriter equipped with a thermal transfer type thermal printer according to an embodiment.

図中、1は装置全体を制御するCPUであり、ROM2
内に格納されたプログラム(第7図、第8図のフローチ
ャート)に従って動作するものである。3はキーボード
(KB)であり、文字キーの他に文字サイズの切換えキ
ー リターンキー等の各種機能キーを備えている。4は
各種文字のドツトパターンを記憶している文字フォント
ROMである。第2図は文字フォントROMJ内に格納
されている文字raJのフォントにおけるドツトの構成
例を示した図で、この図で示されるように縦40ドツト
(5バイト)、横30ドツトで形成されており、またこ
のドツトパターンの他に、例えば縦48ドツト(6バイ
ト)、横36ドツトからなるドツトパターンなどの、各
種サイズのドツトパターンがROMJ内に記憶されてい
る。これら各文字フォントは、キーボード3上のキーに
よって文字サイズが指定されると、それに対応したサイ
ズの文字が読出されて使用されるようになっている。
In the figure, 1 is a CPU that controls the entire device, and ROM2
It operates according to a program (flowcharts in FIGS. 7 and 8) stored in the computer. 3 is a keyboard (KB) which, in addition to character keys, is equipped with various function keys such as a character size switching key and a return key. 4 is a character font ROM that stores dot patterns of various characters. Figure 2 is a diagram showing an example of the structure of dots in the font of the character raJ stored in the character font ROMJ. In addition to this dot pattern, dot patterns of various sizes are stored in the ROMJ, such as a dot pattern consisting of 48 vertical dots (6 bytes) and 36 horizontal dots. For each of these character fonts, when a character size is designated by a key on the keyboard 3, characters of the corresponding size are read out and used.

5はCPUIのワークエリアとして使用されるRAMで
あり、図示したように、各エリアを備えている。即ち、
6はテキストバッファで、キーボード3などより入力さ
れた文書情報をコード情報で記憶する。7は印字データ
バッファで、文字コードを文字ドツトパターンに展開し
たパターン情報を記憶するための領域で、例えば第3図
に示すように、縦40ビツト(5バイト)、横Nビット
の合計5XNバイトの容量が確保されている。
Reference numeral 5 denotes a RAM used as a work area for the CPUI, and as shown in the figure, it is provided with various areas. That is,
A text buffer 6 stores document information inputted from the keyboard 3 or the like as code information. 7 is a print data buffer, which is an area for storing pattern information obtained by developing a character code into a character dot pattern; for example, as shown in Figure 3, it has a total of 5×N bytes, 40 bits (vertically) (5 bytes) and N bits horizontally. capacity is secured.

ここでNは1回の印字走査で印字可能な最大ドツト巾を
示している。
Here, N indicates the maximum dot width that can be printed in one printing scan.

8は印字文字ポインタで、テキストバッファ6に格納さ
れた文字コードのどれを印字データバッファ7に展開す
るかを指し示すためのポインタである。9は未完成文字
ポインタで、印字文字ポインタ8と同様にテキストバッ
ファ6に格納された文字コードを指し示し、文字の縦幅
が印字ヘッドの縦方向の長さよりも長いため、現在の走
査に加えて次の走査でも同一文字を印字する必要がある
文字コードを示している。10はリターンヘッドポジシ
ョンで、未完文字ポインタ9の示す文字コードの印字開
始位置を示す情報を記憶しており、次回の走査で印字ヘ
ッドを搭載したキャリッジが戻るべき位置を示している
。11はデイスプレィ(DSP)であり、テキストバッ
ファ6に蓄えられた文字コード列をパターン展開したパ
ターン情報や、オペレータへの各種メツセージ等を表示
する。
Reference numeral 8 denotes a print character pointer, which is a pointer for indicating which of the character codes stored in the text buffer 6 is to be developed into the print data buffer 7. 9 is an unfinished character pointer that points to a character code stored in the text buffer 6 like the print character pointer 8, and because the vertical width of the character is longer than the vertical length of the print head, it is Indicates the character code that requires the same character to be printed in the next scan. A return head position 10 stores information indicating the print start position of the character code indicated by the unfinished character pointer 9, and indicates the position to which the carriage carrying the print head should return in the next scan. Reference numeral 11 denotes a display (DSP), which displays pattern information obtained by developing a pattern of the character code string stored in the text buffer 6, various messages to the operator, and the like.

12はプリンタ(PRT)であり、印字データバッファ
7に蓄えられたドツトデータを印字することができる。
A printer (PRT) 12 is capable of printing the dot data stored in the print data buffer 7.

プリンタ12は主に以下の3つの駆動部より成る。13
はキャリッジモータ駆動部で、縦方向(印字ヘッドの走
査方向に直交する方向)に配置された40ドツトの発熱
体から成るサーマルヘッドを搭載したキャリッジの主走
査方向への移動、及びそのキャリッジの移動に伴なう熱
転写用リボンの捲き上げなどの駆動を行っている。14
はフィードモータ駆動部で、印刷用紙をキャリッジの走
査方向に直交する方向に移動させている。15はサーマ
ルヘッド駆動部で、サーマルヘッドを印刷用紙に押し当
てたり(ヘッドダウン)、離したり(ヘッドアップ)す
るとともに、印字データバッファ7から出力されたパタ
ーンに従ってサーマルヘッドの発熱体を発熱させて記録
を行なっている。なお、キャリッジ駆動部13の熱転写
用インクリボンの捲き上げと、サーマルヘッド駆動部1
5のヘッドアップ、ヘッドダウンは呼応して動作するよ
うに作られていて、ヘッドダウン時のみリボン捲き上げ
が行われるように構成されている。
The printer 12 mainly consists of the following three driving sections. 13
is a carriage motor drive unit, which moves the carriage in the main scanning direction, which is equipped with a thermal head consisting of 40 dots of heating elements arranged in the vertical direction (direction perpendicular to the scanning direction of the print head), and the movement of the carriage. It drives the winding up of the ribbon for thermal transfer. 14
is a feed motor drive unit that moves the printing paper in a direction perpendicular to the scanning direction of the carriage. 15 is a thermal head drive unit that presses the thermal head against the printing paper (head down) and releases it (head up), and also causes the heating element of the thermal head to generate heat according to the pattern output from the print data buffer 7. Recording is being done. Note that the carriage drive unit 13 is responsible for winding up the thermal transfer ink ribbon, and the thermal head drive unit 1 is
The head-up and head-down functions of No. 5 are designed to operate in unison, and the ribbon is wound up only when the head is down.

[印字された文字パターンに関する説明(第4図〜第5
図)] 第4図は英文字列の印字形態例を示した図である。
[Explanation regarding printed character patterns (Figures 4 to 5)
FIG. 4 is a diagram showing an example of a printing form of an English character string.

この英文字列は、図中BLで示された基準線(ベースラ
イン)を基準に文字が印字されており、ここでは各文字
の高さ方向にを5つのエリアA +  A2 、 As
 、 A4 、 A@に分けている。エリアA、は英大
文字に付くアクセント、例えば、rAJにおける「°゛
」と言った記号が置かれるエリアである。また、英大文
字は全てエリアA2゜A、を占めており、英小文字は字
種の違いによってエリアAs、またはエリアA2.As
またはエリアA3.Aa、またはエリアAz 、 As
 、 A4に含まれる。また、エリアAsはアンダーラ
イン等の記号が置かれるエリアである0図中β1β3+
’24+β5.β、はA、〜Asの各エリアに関連する
縦巾な示している。
In this English character string, characters are printed based on the reference line (baseline) indicated by BL in the figure, and here, each character is printed in five areas A + A2, As in the height direction.
, A4, and A@. Area A is an area where accents attached to uppercase English letters, such as the symbol "°" in rAJ, are placed. Also, all uppercase English letters occupy area A2°A, and lowercase English letters occupy area As or area A2. As
Or area A3. Aa, or area Az, As
, included in A4. In addition, area As is the area where symbols such as underlines are placed.β1β3+
'24+β5. β indicates the vertical width related to each area of A, to As.

このように、第4図から明らかなように、文字フォント
ROMJ内の文字ドツトパターンは文字サイズ毎にある
決められた縦方向のドツト数と横方向のドツト数とで構
成されているが、実際に印字されるときは、文字毎にそ
れらの文字を形成するエリアが異なって印字される。
In this way, as is clear from Fig. 4, the character dot pattern in the character font ROMJ is composed of a predetermined number of vertical dots and a predetermined number of horizontal dots for each character size. When printing on , each character is printed in a different area forming those characters.

第5図はアルファベット26文字の大文字、小文字に対
し、第4図に示すエリアを基に各文字がどの領域を占め
ているかを分類して示した図である。
FIG. 5 is a diagram illustrating the 26 uppercase and lowercase letters of the alphabet, classifying which area each character occupies based on the areas shown in FIG. 4.

第5図(a)はエリアAz、A3を占める文字を示し、
大文字26文字と小文字8文字(b、 d、 f。
FIG. 5(a) shows characters occupying areas Az and A3,
26 uppercase letters and 8 lowercase letters (b, d, f.

h、 i、 k、 1. t)がこれにあてはまる。第
5図(b)はエリアA、のみを占めるもので、図示した
小文字13文字がこれにあてはまる。第5図(C)はエ
リアA s 、 A 4を占めるもので小文字4文字(
g。
h, i, k, 1. t) applies to this. FIG. 5(b) occupies only area A, and the 13 lowercase letters shown in the figure apply to this area. Figure 5 (C) occupies areas A s and A 4 and contains four lowercase letters (
g.

p、 q、 y)が該当している。第5図(d)はエリ
アA2 、As 、Aaを占めるもので小文字(j)1
文字がこれに該当している。
p, q, y) are applicable. Figure 5(d) occupies areas A2, As, and Aa, and the lowercase letter (j) 1
This applies to characters.

以上のことより、印字ヘッドの縦印字中が文字ドツトパ
ターンの縦巾β、よりも小さくても、例えば印字ヘッド
の縦巾がエリアAz、Asの縦巾24よりも大きければ
第5図の(a)と(b)に示された文字は1度の印字走
査で印字することができる。また、印字ヘッドの縦方向
の印字中がエリアA s 、 A 4の縦巾(I2S十
β6)よりも大きければ、第5図(b)、(c)の文字
は1度の印字走査で印字可能なことがわかる。
From the above, even if the vertical width of the print head during vertical printing is smaller than the vertical width β of the character dot pattern, if the vertical width of the print head is larger than the vertical width 24 of the areas Az and As, for example, ( The characters shown in a) and (b) can be printed in one printing scan. Furthermore, if the vertical width of the print head during printing is larger than the vertical width (I2S + β6) of areas A s and A 4, the characters in FIGS. 5(b) and 5(c) can be printed in one printing scan. I see what's possible.

[文字フォントROMの説明 (第6図)]第6図は実
施例の電子タイプライタにおける文字フォントROM4
のフォント情報の一例を示す図である。
[Explanation of character font ROM (Figure 6)] Figure 6 shows character font ROM 4 in the electronic typewriter of the embodiment.
FIG. 3 is a diagram showing an example of font information.

16.17は各文字ドツトパターンの縦ドツト数ρ3、
横ドツト数4.を保持している。18はベースライン(
BL)より上側のドツト数43.19は大文字の高さ1
4を、20は小文字の高さで、を、21は小文字のうち
ベースラインより下にパターンのある文字のベースライ
ン下の高さI6を保持している。22は文字の識別コー
ド順に並べられた文字ドツトパターンを保持している領
域を示している。
16.17 is the number of vertical dots ρ3 in each character dot pattern,
Number of horizontal dots 4. is held. 18 is the baseline (
The number of dots above BL) is 43.19, which is the height of the capital letter 1.
4, 20 are the heights of lowercase letters, and 21 are the heights below the baseline of lowercase letters with patterns below the baseline, I6. Reference numeral 22 indicates an area holding character dot patterns arranged in the order of character identification codes.

[動作説明 (第7図)] 上述した本実施例の構成における動作原理を第7図のフ
ローチャートを用いて説明する。
[Explanation of Operation (FIG. 7)] The principle of operation in the configuration of this embodiment described above will be explained using the flowchart of FIG. 7.

図中、hは印字ヘッドの印字幅を示し、l+〜fL、は
第4図の11〜i6に相当しており、A1〜Asは第4
図に示す縦巾とエリアに相当している。テキストバッフ
ァ6に格納された1行分の文字データの文字フォントサ
イズから、第6図に示された文字フォントROMJ内の
文字フォント情報が調べられ11〜ftaの値が決定さ
れる。
In the figure, h indicates the print width of the print head, l+ to fL correspond to 11 to i6 in Fig. 4, and A1 to As correspond to the fourth
This corresponds to the width and area shown in the figure. Based on the character font size of one line of character data stored in the text buffer 6, the character font information in the character font ROMJ shown in FIG. 6 is checked and the values 11 to fta are determined.

先ずステップS1で、印字ヘッドの幅りが文字の縦方向
の幅β、よりも大きいかどうか、即ち1度の印字走査で
1行すべてが印字できる(h≧β1)かを比較する。印
字できればステップS2でテキストバッファ6内の文字
コードに相当する文字ドツトパターンを文字フォントR
OM4より検索し、印字データバッファ7に展開する。
First, in step S1, it is compared whether the width of the print head is larger than the vertical width β of the character, that is, whether the entire line can be printed in one print scan (h≧β1). If printing is possible, in step S2, the character dot pattern corresponding to the character code in the text buffer 6 is set to character font R.
It is retrieved from OM4 and expanded to print data buffer 7.

そして、プリンタ12を起動し1行の印字を行う、ここ
では1回の走査で、その行の文字列が全て印字される。
Then, the printer 12 is activated and one line is printed. Here, in one scan, all the character strings on that line are printed.

ステップS1で文字ドツトパターンの縦巾β。In step S1, the vertical width β of the character dot pattern is determined.

の方が印字ヘッドの幅りよりも大きければステップS3
に進み、ベースラインより上側が1度の印字走査で印字
できる(h≧j23)かを比較する。
is larger than the width of the print head, step S3
Then, it is compared whether the area above the baseline can be printed in one printing scan (h≧j23).

印字できればステップS4に進み、エリアAt。If printing is possible, the process advances to step S4, and the area At.

A2.A3を1回目の走査で印字し、次にステップS5
でベースラインより下のエリアA4.Asを2回目の走
査で印字する。この場合、英小文字のg、p、q、y、
jの5文字の印字は2回に分割されるが、その他の英文
字は1回の走査で印字されることになる。以下、同様に
出来るだけ多くの英文字を1回の走査で印字できるよう
にエリアの縦ドツト数を印字ヘッドの印字中との比較を
行う。
A2. A3 is printed in the first scan, then step S5
Area A4 below the baseline. As is printed in the second scan. In this case, the English lowercase letters g, p, q, y,
The printing of the five characters of j is divided into two scans, but the other alphabetic characters are printed in one scan. Similarly, the number of vertical dots in the area is compared with the number of dots being printed by the print head so that as many English characters as possible can be printed in one scan.

ステップS3で印字ヘッド幅りがβ、よりも小さいとき
はステップS6に進み、エリアA2As 、A4.As
を1回の走査で印字できるかを、印字ヘッド幅りとβl
−!23十24とを比較して判定する。同様にして、ス
テップS9ではエリアA3 、A4.Asを、ステップ
S12ではエリアAx 、As 、A4を、ステップ3
16ではエリアA2.A3を、ステップS20ではエリ
アAs、A4を、ステップ324ではエリアA、をそれ
ぞれ1回の走査で印字できるかどうかを判定する。
If the print head width is smaller than β in step S3, the process advances to step S6, and areas A2As, A4 . As
The width of the print head and βl are used to determine whether the
-! The judgment is made by comparing 23 and 24. Similarly, in step S9, areas A3, A4 . As, in step S12, area Ax, As, A4, step 3
16, area A2. It is determined whether or not A3 can be printed in one scan, areas As and A4 in step S20, and area A in step 324 can be printed in one scan.

ステップ36.ステップS9で条件を満足する場合は、
ステップS7、S8あるいはステップS10、Sllの
2回の印字走査が実行される。
Step 36. If the conditions are satisfied in step S9,
Print scanning is performed twice in steps S7 and S8 or in steps S10 and Sll.

方、ステップS12. S16.S20およびステップ
S24で条件を満足する場合は、それぞれ3回の印字走
査が必要となる。
On the other hand, step S12. S16. If the conditions are satisfied in S20 and S24, three print scans are required for each.

また、ステップS24で印字ヘッドの幅りが1、よりも
小さい場合はステップS28に進み、印字行の上端から
hドツト毎に印字し、合計[(J21 +h−1)/h
1回の印字走査を行うことによって1行の印字が完了す
る。
If the width of the print head is smaller than 1 in step S24, the process advances to step S28, where printing is performed every h dots from the top of the print line, and the total is [(J21 +h-1)/h.
One line of printing is completed by performing one printing scan.

なお詳細には記さないが、1回目から2回目、2回目か
ら3回目に印字走査を進める時には、キャリッジモータ
駆動部13を駆動してリターンヘッド・ポジション10
にキャリッジを戻す。そしてフィードモータ駆動部15
を駆動することにより、記録紙を印字ヘッドの走査方向
に直交する方向に移動させる。
Although not described in detail, when proceeding from the first to the second printing scan and from the second to the third printing scan, the carriage motor drive section 13 is driven to move the return head position 10.
Return the carriage to. And feed motor drive section 15
By driving the recording paper, the recording paper is moved in a direction perpendicular to the scanning direction of the print head.

例えば、ステップSIOでは1回目の走査でエリアAI
、A2を印字(エリアA1.A2に相当するドツトパタ
ーンのみを印字データバッファ7に展開し印字)し、2
回目の走査の前に印字ヘッドがエリアA3.Aa 、A
sの位置にくるように記録紙を移動させてステップ31
1の2回目の走査エリアAs 、A4 、Asを印字(
エリアA3゜A4.Allに相当するドツトパターンの
みを印字データバッファ7に展開し印字)する、以下、
各ステップにおいて分割印字を行う場合の紙送りは、同
様の考え方で制御される。
For example, in step SIO, the area AI is
, A2 is printed (only the dot pattern corresponding to area A1.A2 is developed and printed in the print data buffer 7), and 2
Before the second scan, the print head moves to area A3. Aa, A
Move the recording paper to position s and proceed to step 31.
Print the second scanning area As, A4, As of 1 (
Area A3゜A4. Only the dot pattern corresponding to All is developed into the print data buffer 7 and printed.
Paper feeding when performing divided printing in each step is controlled using a similar concept.

L他の実施例] 上述した本実施例での処理手順では、文字列を縦方向(
印字ヘッドの走査方向)のエリアに分割し、各エリアに
またがる文字ドツトパターンが複数回の印字走査に分け
て印字されることを極力避ける手法について説明した。
L and other embodiments] In the processing procedure of this embodiment described above, character strings are
A method has been described in which the character dot pattern is divided into areas (in the scanning direction of the print head) and is avoided as much as possible from printing a character dot pattern that spans each area in multiple print scans.

更にこの手法を応用すれば、文字ドツトパターンが複数
回の印字走査に分けて印字されることをさらに避けるこ
とが可能である。即ち、1回目の印字走査でその文字の
一部が印字できる文字であって、2回目以降の1回の走
査で印字できる文字は、1回目の走査で何も印字しない
ことによって文字ドツトパターンが複数回の印字走査に
分けて印字されることを防ぐものである。この動作原理
を第8図のフローチャートを用いて説明する。
Furthermore, by applying this method, it is possible to further avoid printing the character dot pattern in multiple printing scans. In other words, for characters that can be partially printed in the first printing scan, and characters that can be printed in the second and subsequent scans, the character dot pattern is created by not printing anything in the first scan. This prevents printing from being divided into multiple printing scans. The principle of this operation will be explained using the flowchart of FIG.

ステップS29.S30は第7図のステップS1、S2
同様に、1回の印字走査で1行すべて(エリアAm 、
Ax 、As。A4.AI)を印字できる場合の動作を
示している。
Step S29. S30 is steps S1 and S2 in FIG.
Similarly, one print scan completes one line (area Am,
Ax, As. A4. This shows the operation when it is possible to print AI).

ステップ329で1回の走査で1打金てが印字できない
ときはステップS31でエリアA、A。
If one stroke cannot be printed in one scan in step 329, areas A and A are printed in step S31.

A、が1回の印字走査で印字できるかを判定し、ステッ
プS32ではベースラインの上側にのみドツトパターン
のある文字(第5図の(a)。
It is determined whether A can be printed in one printing scan, and in step S32, a character with a dot pattern only above the baseline ((a) in FIG. 5) is determined.

(b))が1回の走査で印字可能で、かつベースライン
の下側にデータのある英小文字(第5図の(C))1回
の走査で印字可能かどうかを判定している。この場合に
はステップ333に進み、1回目□の走査でエリアAI
、A2にデータのある文字(第5図の(a)、(b))
に限定してエリアA 1 + A 2 * A s部分
のみを印字し、次にステップS34に進み、第5図の(
b)、(c)(d)で示される文字を2回目の走査で印
字している。従ってこの時、2回の走査に分割される文
字はアルファベットでは第5図の(d)に示された1文
字のみとなる。この場合の紙送り制御は、1回目の走査
であるステップ333でエリアAI、At 、Asを印
字した後、2回目の走査のステップS34でエリアA3
. 4.A、を印字する必要があるため、ステップS3
3からステップS34に移る間には、エリアA3 * 
Aa * Aaに移動する長さだけ記録紙が送られるこ
とになる。
It is determined whether letters (b)) can be printed in one scan, and lowercase English letters ((C) in FIG. 5) having data below the baseline can be printed in one scan. In this case, proceed to step 333, and in the first □ scan, the area AI
, characters with data in A2 ((a), (b) in Figure 5)
Only the area A 1 + A 2 * A s is printed, and then the process proceeds to step S34, where (
The characters shown in b), (c), and (d) are printed in the second scan. Therefore, at this time, the only character in the alphabet that is divided into two scans is the one character shown in FIG. 5(d). The paper feed control in this case is to print areas AI, At, and As in step 333, which is the first scan, and then print area A3 in step S34, which is the second scan.
.. 4. Since it is necessary to print A, step S3
3 to step S34, area A3 *
The recording paper is fed by the length that it moves to Aa*Aa.

以下同様に考え方によりステップS35.S36、S3
7,53Bは、印字ヘッドの印字幅がエリアAt 、A
2 、A3及びエリアA、、A、を同時に印字でざる幅
を有しているときの処理を示している。ここではステッ
プ336でエリアAI+A2に印字データの存在する文
字のエリア(An 、 Aa 、 As )を1回の走
査で印字し、次にエリアAiとA2の分だけ記録紙を搬
送し、ステップS37でエリアA、とA2に印字データ
の無い文字のエリアA s 、 A 4と、その他の文
字のエリアA4だけを印字する。そして次に記録紙をエ
リアA3 、A4の分だけ搬送して、ステップ838で
エリアA、のみを最後の走査で印字している。また、ス
テップS39.S40は第7図のステップS4.S5と
同様である。
In the same way, step S35. S36, S3
7, 53B, the print width of the print head is area At, A
2, A3 and area A, , A have a width that cannot be printed at the same time. Here, in step 336, the character areas (An, Aa, As) for which print data exists in area AI+A2 are printed in one scan, and then the recording paper is conveyed by the area Ai and A2, and in step S37. Only areas A s and A 4 for characters with no print data in areas A and A 2 and area A 4 for other characters are printed. Then, the recording paper is conveyed by areas A3 and A4, and in step 838, only area A is printed in the last scan. Also, step S39. S40 is step S4 in FIG. This is the same as S5.

またステップS41〜S53はステップ331〜S40
のうち、エリアA+のみを1回の走査に分割した場合を
示している。ステップS54〜358は第7図のステッ
プS24〜S28と同様である。
Further, steps S41 to S53 are steps 331 to S40.
Of these, only area A+ is divided into one scan. Steps S54-358 are similar to steps S24-S28 in FIG.

このように、第8図の実施例では、第7図で説明した実
施例と比較してその印字速度が低下することになるが、
その反面文字の分割印字部分を減らすことができるので
、より分割歪みの少ない印字が可能となる。
In this way, in the embodiment shown in FIG. 8, the printing speed is lower than that in the embodiment explained in FIG.
On the other hand, since the number of divided printed portions of characters can be reduced, printing with less division distortion becomes possible.

なお、本実施例では扱う文字を英文字に限定して説明を
行ったが、これは英文字に限られるものではなく、例え
ば縦倍文字などのように、字種や文字に付随したコード
等によって、その高さが特定できる文字や記号の印字の
場合にも適用できることはもちろんである。
In addition, in this embodiment, the characters handled are limited to English characters, but this is not limited to English characters.For example, characters such as double height characters, codes attached to characters, etc. Of course, this method can also be applied to the printing of characters and symbols whose height can be specified.

以上説明したように本実施例によれば、印字ヘッドの印
字中よりも大きな縦巾なもった文字列でも、複数回の印
字走査に分けて印字することを極力避けることができる
ため、美しい印字結果が得られるという効果がある。
As explained above, according to this embodiment, even if the character string is larger in width than the one being printed by the print head, it is possible to avoid printing in multiple print scans as much as possible, resulting in beautiful printing. It has the effect of getting results.

[発明の効果] 以上説明したように本発明によれば、記録ヘッドの1回
の走査で記録できない文字のときは、文字の基準線を基
準として文字パターンを上と下に分け、それぞれを異な
る走査時に記録することにより、同一文字中におけるド
ツトのずれを少なくできる効果がある。
[Effects of the Invention] As explained above, according to the present invention, when a character cannot be recorded in one scan of the recording head, the character pattern is divided into upper and lower parts using the reference line of the character as a reference, and each is divided into upper and lower parts in different scans. Recording has the effect of reducing the misalignment of dots within the same character.

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

第1図は実施例における電子タイプライタの概略構成を
示すブロック図、 第2図は文字フォントのドツト構成例を示す図、 第3図は印字データバッファの構造を示す図、第4図は
英文字列の印字された文字形態例を示す図、 第5図はアルファベットの大文字、小文字を第4図に示
す占有エリア別に分類した図、第6図は実施例における
文字フォントのフォント情報例を示す図、 第7図は実施例におけるCPUの印字処理手順の一例を
示すフローチャート、そして 第8図は他の実施例の印字処理を示すフローチャートで
ある。 図中、1・・−CPU、2・・・ROM、3・・・キー
ボード、4・・・文字フォントROM、5・・・RAM
、6・・・テキストバッファ、7・・・印字データバッ
ファ、8・・・印字文字ポインタ、9・・・未完文字ポ
インタ、10・・・リターンヘッドポジション、11・
・・表示器(デイスプレィ)、12・・・プリンタ、1
3・・・キャリッジ駆動部、14・・・フィードモータ
駆動部、15・・・サーマルヘッド駆動部、16・・・
縦ドツト数、17・・・横ドツト数、18・・・ベース
ラインまでのドツト数、19・・・大文字の高さ、20
・・・小文字のベースライン上の高さ、21・・・小文
字のベースライン下の高さ、22・・・ドツトパターン
である。 キャノン株式会社 Aモエ≧二l」加工l1(1二 (a) 〔エリ?A2.A3] acemn o r s ■ 〔エリアA3] (b) −qp湯4− [エリ?A3.44] (C) 十 〔エリアA2.A3.ハ (d) 第5図 第6 図
Figure 1 is a block diagram showing the schematic configuration of the electronic typewriter in the embodiment, Figure 2 is a diagram showing an example of the dot configuration of a character font, Figure 3 is a diagram showing the structure of the print data buffer, and Figure 4 is an English typewriter. Figure 5 is a diagram showing an example of a printed character string; Figure 5 is a diagram classifying uppercase and lowercase letters of the alphabet according to the occupied area shown in Figure 4; Figure 6 is an example of font information for character fonts in the embodiment. FIG. 7 is a flowchart showing an example of the printing processing procedure of the CPU in the embodiment, and FIG. 8 is a flowchart showing the printing processing in another embodiment. In the figure, 1...-CPU, 2...ROM, 3...Keyboard, 4...Character font ROM, 5...RAM
, 6... Text buffer, 7... Print data buffer, 8... Print character pointer, 9... Unfinished character pointer, 10... Return head position, 11...
...Display, 12...Printer, 1
3... Carriage drive unit, 14... Feed motor drive unit, 15... Thermal head drive unit, 16...
Number of vertical dots, 17... Number of horizontal dots, 18... Number of dots up to the baseline, 19... Height of uppercase letters, 20
. . . Height above the baseline of lowercase letters, 21 . . . Height below the baseline of lowercase letters, 22 . . . Dot pattern. CANON CO., LTD. ) 10 [Area A2. A3. C (d) Figure 5 Figure 6

Claims (1)

【特許請求の範囲】 記録媒体の搬送方向にほぼ垂直な方向に記録ヘッドを移
動して、前記記録媒体に記録する記録装置であつて、 記録する文字列の基準線に対する文字パターンの高さを
求めるための算出手段と、 前記記録ヘッドの記録可能なドット数と前記算出手段に
よつて求められた前記文字パターンの高さとを比較する
ための比較手段と、 前記比較手段による比較結果をもとに、前記文字パター
ンの高さが前記記録ヘッドのドット数を上回るときには
、前記記録ヘッドにより複数回走査して記録し、各走査
毎に前記基準線の上あるいは下のパターン単位で記録す
るように制御する制御手段と を有することを特徴とする記録装置。
[Scope of Claims] A recording apparatus that records on a recording medium by moving a recording head in a direction substantially perpendicular to the conveying direction of the recording medium, the height of a character pattern relative to a reference line of a character string to be recorded is determined. a calculating means for calculating the number of dots that can be recorded by the recording head, and a comparing means for comparing the height of the character pattern calculated by the calculating means, based on the comparison result by the comparing means. When the height of the character pattern exceeds the number of dots of the recording head, the recording head scans and records a plurality of times, and each scan prints in units of patterns above or below the reference line. A recording device comprising: a control means for controlling the recording device.
JP6921089A 1989-03-23 1989-03-23 Recorder Pending JPH02248268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6921089A JPH02248268A (en) 1989-03-23 1989-03-23 Recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6921089A JPH02248268A (en) 1989-03-23 1989-03-23 Recorder

Publications (1)

Publication Number Publication Date
JPH02248268A true JPH02248268A (en) 1990-10-04

Family

ID=13396132

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6921089A Pending JPH02248268A (en) 1989-03-23 1989-03-23 Recorder

Country Status (1)

Country Link
JP (1) JPH02248268A (en)

Similar Documents

Publication Publication Date Title
US5056429A (en) Bar code printing method and the printer
EP0160318B1 (en) Printing system for dot-matrix printer
US5383730A (en) Document processing apparatus that magnifies only black portions of characters
JPH07319868A (en) Document editing processor
US5020927A (en) Grouping of dot data in a multiple column dot-matrix printer
JP3237233B2 (en) Recording device
JP3421138B2 (en) Print data creation device
US5909974A (en) Method for printing in a draft mode of a serial printer
JPS6353951B2 (en)
US4772145A (en) Document preparing apparatus which automatically capitalizes characters at the head of a sentence
JP3165346B2 (en) Serial printer
US4789949A (en) Printer throughput
JPH0531998A (en) Journal printing control method
JPH06115169A (en) Method and apparatus for printing dot matrix pattern
JP3424708B2 (en) Dot matrix printing system
JPS62211153A (en) Printing control system for wire dot printer
JP2984156B2 (en) Recording method and apparatus
KR930006804B1 (en) Document processing device
JPH01226346A (en) Document editing apparatus
JPH0781174A (en) Tape printer
KR910009064B1 (en) How to correct character size for printer
JP3100531B2 (en) Printer control device
JPH0353665B2 (en)
JPH04173255A (en) recording device
JPH0688417B2 (en) Printer