Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH078586B2 - Print control method for hand-scan printer - Google Patents
[go: Go Back, main page]

JPH078586B2 - Print control method for hand-scan printer - Google Patents

Print control method for hand-scan printer

Info

Publication number
JPH078586B2
JPH078586B2 JP9559289A JP9559289A JPH078586B2 JP H078586 B2 JPH078586 B2 JP H078586B2 JP 9559289 A JP9559289 A JP 9559289A JP 9559289 A JP9559289 A JP 9559289A JP H078586 B2 JPH078586 B2 JP H078586B2
Authority
JP
Japan
Prior art keywords
line
hand
print
character
character string
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 - Fee Related
Application number
JP9559289A
Other languages
Japanese (ja)
Other versions
JPH02273261A (en
Inventor
和彦 松尾
政敏 杉村
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP9559289A priority Critical patent/JPH078586B2/en
Publication of JPH02273261A publication Critical patent/JPH02273261A/en
Publication of JPH078586B2 publication Critical patent/JPH078586B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Printers Characterized By Their Purpose (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は、印字ヘッドを手で持って紙面に当てて印字す
る手走査式プリンタ(ハンディプリンタともいう)に関
する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a hand scanning printer (also referred to as a handy printer) for holding a print head by hand and applying it to a paper surface for printing.

<従来の技術> 手走査式プリンタは、例えばワードプロセッサ等と組合
わせて用いられ、ワードプロセッサにおいて入力された
文字列を紙面に印字するもので、印字ヘッドを手で持っ
て印字するために、紙面の任意の位置に印字することが
できる。
<Prior Art> A hand scanning printer is used, for example, in combination with a word processor or the like, and prints a character string input in the word processor on a paper surface. It can be printed at any position.

<発明が解決しようとする課題> 従来の手走査式プリンタにおいては、一度の走査で印字
できる文字列が1行分だけであるため、大量の文章を印
字する場合には、走査の回数が多くなり、作業が煩雑で
あり、時間がかかるとともに、手が疲れるといった問題
があった。
<Problems to be Solved by the Invention> In the conventional hand-scanning printer, since a character string that can be printed in one scan is only one line, the number of scans is large when a large amount of text is printed. However, there are problems that the work is complicated, it takes time, and the hands become tired.

このため、一回の走査で例えば2行印字できる手走査式
プリンタが考案された。しかるに、この手走査式プリン
タにおいては、印字を終了するために2行の文字列のど
ちらかの文字列の終端を検出する必要がある。
For this reason, a hand scanning printer has been devised which can print, for example, two lines in one scan. However, in this hand-scanning printer, it is necessary to detect the end of one of the two character strings in order to finish the printing.

<課題を解決するための手段> 本発明は、印字ヘッドを手で持って紙面上を走査するこ
とにより1回の走査で複数行の文字列を紙面に印字する
ようにした手走査式プリンタにおいて、複数行の文字列
のうちの最長の文字列の改行コードを印字データの終端
として検出して印字を終了することを特徴としている。
<Means for Solving the Problems> The present invention relates to a hand scanning printer in which a print head is manually held and scanned on a paper surface to print a plurality of lines of character strings on the paper surface in one scan. The line feed code of the longest character string of a plurality of character strings is detected as the end of the print data and the printing is terminated.

<作用> 本発明においては、複数行の文字の最長の文字列の改行
コードを検出して印字を終了する。また、複数行の文字
列が全て同じ長さのときは、一行目の文字列の改行コー
ドを検出すると、印字を終了する。
<Operation> In the present invention, the line feed code of the longest character string of a plurality of lines of characters is detected and printing is terminated. Further, when the character strings of a plurality of lines are all the same length, when the line feed code of the character string of the first line is detected, the printing ends.

<実施例> 第1図は本発明の方法の機能ブロック構成を示してい
る。1行目文字列入力部1により入力された1行目文字
列データからカウンタ2により1行目の文字数をカウン
トし、2行目文字列入力部3により入力された2行目の
文字列データからカウンタ4により2行目の文字数をカ
ウントする。カウンタ2のカウント値C1とカンウタ4の
カウント値C2を比較部5により比較し、この比較の結果
にしたがって印字終端検出部8は、C1>C2のときは改行
コード検出部6により検出された1行目文字列の改行コ
ードを印字文字データの終端として検出し、C1<C2のと
きは改行コード検出部7により検出された2行目文字列
の改行コードを印字文字データの終端として検出する。
C1=C2のときは、印字終端検出部8は1行目文字列の改
行コードを印字文字データの終端として検出する。
<Example> FIG. 1 shows a functional block configuration of a method of the present invention. The number of characters in the first line is counted by the counter 2 from the first line character string data input by the first line character string input unit 1, and the second line character string data input by the second line character string input unit 3 From the counter 4, the number of characters in the second line is counted. The count value C1 of the counter 2 and the count value C2 of the counter 4 are compared by the comparison unit 5, and according to the result of this comparison, the print end detection unit 8 detects 1 by the line feed code detection unit 6 when C1> C2. The line feed code of the second line character string is detected as the end of the print character data. When C1 <C2, the line feed code of the second line character string detected by the line feed code detection unit 7 is detected as the end of the print character data.
When C1 = C2, the print end detection unit 8 detects the line feed code of the first line character string as the end of the print character data.

第2図は作用の一例を示すものであり、1行目のカウン
ト値C1が9、2行目のカウント値C2が12であるので、2
行目の改行コード(12文字目)で印字を終了する。
FIG. 2 shows an example of the operation. Since the count value C1 in the first row is 9 and the count value C2 in the second row is 12,
Printing ends with the line feed code (12th character) on the line.

第3図は処理手順を示している。まず、1行目の文字列
を取り込み、その文字数をカウントする(#1,#2)。
カウント値C1が所定の1行分の文字数に等しい場合に
は、ダミーの改行コードを付加する(#3,#4)。次
に、2行目の文字列を取り込み、その文字数をカウント
する(#5,#6)。カウント値C2が所定の1行分の文字
数に等しい場合には、ダミーの改行コードを付加する
(#7,#8)。カウント値がC1>C2のときは、1行目の
改行コードを印字終端とする(#10)。カウント値がC1
<C2のときは、2行目の改行コードを印字終端とする
(#11)。その後、1行目と2行目の文字コードバッフ
ァから改行コードが現れるまで、1文字分ずつ文字コー
ドを取り出し(#12)、その文字コードに対応した文字
パターンデータをキャラクタジェネレータから読み出し
(#14)、その文字パターンを印字し(#15)、文字コ
ードバッファの読み出しアドレスをインクリメントし
(#16)、このステップ#12〜#16の処理を繰り返す。
FIG. 3 shows the processing procedure. First, the character string in the first line is fetched and the number of characters is counted (# 1, # 2).
When the count value C1 is equal to the predetermined number of characters for one line, a dummy line feed code is added (# 3, # 4). Next, the character string in the second line is fetched and the number of characters is counted (# 5, # 6). When the count value C2 is equal to the predetermined number of characters for one line, a dummy line feed code is added (# 7, # 8). When the count value is C1> C2, the line feed code of the first line is the end of printing (# 10). Count value is C1
When <C2, the line feed code of the second line is used as the print end (# 11). After that, character codes are taken out character by character from the character code buffers on the first and second lines (# 12), and the character pattern data corresponding to the character code is read from the character generator (# 14). ), The character pattern is printed (# 15), the read address of the character code buffer is incremented (# 16), and the processes of steps # 12 to # 16 are repeated.

<発明の効果> 以上説明したように本発明においては、複数行の文字列
の最長の文字列の改行コードによって印字行の終端を検
出し、印字を終了するようにしたので、不要な印字動作
を無くし、作業の能率を高めることができる。
<Effects of the Invention> As described above, in the present invention, the end of the print line is detected by the line feed code of the longest character string of the plurality of lines, and the printing is ended. Can be eliminated and work efficiency can be improved.

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

第1図は本発明実施例の機能構成を示すブロック図、 第2図は本発明実施例の作用を説明する図、 第3図は本発明実施例の処理手順を示す流れ図である。 1……1行目文字列入力部 2,4……カウンタ 3……2行目文字列入力部 5……比較部 6,7……改行コード検出部 8……印字終端検出部 FIG. 1 is a block diagram showing a functional configuration of an embodiment of the present invention, FIG. 2 is a diagram for explaining an operation of the embodiment of the present invention, and FIG. 3 is a flow chart showing a processing procedure of the embodiment of the present invention. 1 …… First line character string input part 2,4 …… Counter 3 …… Second line character string input part 5 …… Comparison part 6,7 …… Line feed code detection part 8 …… Print end detection part

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】印字ヘッドを手で持って紙面上を走査する
ことにより1回の走査で複数行の文字列を紙面に印字す
るようにした手走査式プリンタにおいて、複数行の文字
列のうちの最長の文字列の改行コードを印字データの終
端として検出して印字を終了することを特徴とする手走
査式プリンタの印字制御方法。
1. A hand-scanning printer in which a print head is manually held to scan on a paper surface to print a plurality of lines of character strings on a paper surface in one scan. A print control method for a hand-scan printer, which detects the line feed code of the longest character string as the end of print data and ends printing.
JP9559289A 1989-04-14 1989-04-14 Print control method for hand-scan printer Expired - Fee Related JPH078586B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9559289A JPH078586B2 (en) 1989-04-14 1989-04-14 Print control method for hand-scan printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9559289A JPH078586B2 (en) 1989-04-14 1989-04-14 Print control method for hand-scan printer

Publications (2)

Publication Number Publication Date
JPH02273261A JPH02273261A (en) 1990-11-07
JPH078586B2 true JPH078586B2 (en) 1995-02-01

Family

ID=14141847

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9559289A Expired - Fee Related JPH078586B2 (en) 1989-04-14 1989-04-14 Print control method for hand-scan printer

Country Status (1)

Country Link
JP (1) JPH078586B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2508933B2 (en) * 1991-03-28 1996-06-19 ブラザー工業株式会社 Tape printing device
JP2606126B2 (en) * 1994-04-19 1997-04-30 ブラザー工業株式会社 Tape recorder

Also Published As

Publication number Publication date
JPH02273261A (en) 1990-11-07

Similar Documents

Publication Publication Date Title
JP2507752B2 (en) Printing method
JPH05246078A (en) Raster image serial printer
JPS59220832A (en) Postal card printing system of word processor
JPS6256171A (en) Printer with postcard address side printing function
JPH078586B2 (en) Print control method for hand-scan printer
JPH078585B2 (en) Hand scan printer
JPS62216029A (en) Graphic print control system
KR900002230B1 (en) Printer controller
JPS58116185A (en) Printer
JPS6453848A (en) Printer
JPH08174910A (en) Draft printing control method and apparatus
KR910009064B1 (en) How to correct character size for printer
JP2745546B2 (en) Printer device
JPS61104860A (en) Reduction printer
JPS6010672B2 (en) Printer control device
JP2822475B2 (en) Inverted character control circuit of dot type printer
JPS61290519A (en) Output device
JPH0596811A (en) Printing method
JPH0461782B2 (en)
JPS641563A (en) Manual scanning type recording apparatus
JPS6480550A (en) Character generator for printer
JPS6478070A (en) Split driving system for facsimile or the like
JPH01208139A (en) Line printer
JPS5948166A (en) Print control system in dot printer
JPS6360760A (en) Electronic equipment

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees