JPH02273261A - Printing control of manually scanning printer - Google Patents

Printing control of manually scanning printer

Info

Publication number
JPH02273261A
JPH02273261A JP9559289A JP9559289A JPH02273261A JP H02273261 A JPH02273261 A JP H02273261A JP 9559289 A JP9559289 A JP 9559289A JP 9559289 A JP9559289 A JP 9559289A JP H02273261 A JPH02273261 A JP H02273261A
Authority
JP
Japan
Prior art keywords
line
characters
string
feed code
line feed
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.)
Granted
Application number
JP9559289A
Other languages
Japanese (ja)
Other versions
JPH078586B2 (en
Inventor
Kazuhiko Matsuo
和彦 松尾
Masatoshi Sugimura
杉村 政敏
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)

Abstract

PURPOSE:To eliminate an unnecessary printing action and improve operating efficiency by detecting the end of a printing line using a line feed code for the longest string of characters among other strings of characters and finishing printing. CONSTITUTION:The number of characters of the first line is counted based on a string of characters in the first line entered by a part to enter a string of characters in the first line, and the number of characters in the second line is counted by a counter 4 based on a string of characters in the second line entered by a part to enter a string of characters in the second line. The count value C1 of the counter 2 is compared with the count value C2 of the counter 4 using a comparison part 5. A print end detection part 8 detects a line feed code for the string of characters in the first line detected by a line feed code detection part 6, in accordance with the comparison results, as the end of printed characters, if C1>C2. If C1<C2, the detection part 8 detects the line feed code for the string of characters in the second line detected by a line feed code detection part 7 as the end of the printed characters. If C1=C2, the detection part 8 detects the line feed code for the string of characters in the first line as the end of the printed characters.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、印字ヘッドを手で持って紙面に当てて印字す
る千走査式プリンタ(ハンディプリンタともいう)に関
する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a thousand-scan printer (also referred to as a handy printer) in which a print head is held in the hand and printed by applying it to a paper surface.

〈従来の技術〉 手走査式プリンタは、例えばワードプロセッサ等と組み
合わせて用いられ、ワードプロセッサにおいて人力され
た文字列を紙面に印字するもので、印字ヘッドを手で持
って印字するため、紙面の任意の位置に印字することが
できる。
<Prior Art> Manual scanning printers are used in combination with, for example, a word processor, and print character strings manually entered in the word processor onto paper.Since the print head is held in the hand and printed, it is possible to print on any arbitrary part of the paper. It can be printed in position.

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

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

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

く作用〉 本発明においては、複数行の文字の最長の文字列の改行
コードを検出して印字を終了する。また、複数行の文字
列が全て同じ長さのときは、−行目の文字列の改行コー
ドを検出すると、印字を終了する。
Effect> In the present invention, printing is terminated by detecting the line feed code of the longest character string of multiple lines of characters. Furthermore, when the character strings in multiple lines all have the same length, printing ends when the line feed code of the -th line of character string is detected.

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

第2図は作用の一例を示すものであり、1行目のカウン
ト値C1が9.2行目のカウント値C2が12であるの
で、2行目の改行コード(12文字目)で印字を終了す
る。
Figure 2 shows an example of the effect.The count value C1 on the first line is 9.The count value C2 on the second line is 12, so the line feed code (12th character) on the second line is used to print. finish.

第3図は処理手順を示している。まず、1行目の文字列
を取り込み、その文字数をカウントする(#1.#2)
。カウント値CIが所定の1行分の文字数に等しい場合
には、ダミーの改行コードを付加する(#3. #4)
、次に、2行目の文字列を取り込み、その文字数をカウ
ントする(#5.#6)。
FIG. 3 shows the processing procedure. First, import the character string in the first line and count the number of characters (#1.#2)
. If the count value CI is equal to the predetermined number of characters for one line, add a dummy line feed code (#3. #4)
, Next, the character string in the second line is taken in and the number of characters is counted (#5 and #6).

カウント値C2が所定の1行分の文字数に等しい場合に
は、ダミーの改行コードを付加する(#7゜#8)。カ
ウント値がC1>C2のときは、1行目の改行コードを
印字終端とする(#10)。カウント値がC1<C2の
ときは、2行目の改行コードを印字終端とする(#11
)。その後、1行目と2行目の文字コードバッファから
改行コードが現れるまで、1文字分ずつ文字コードを取
り出しく#12)、その文字コードに対応した文字パタ
ーンデータをキャラクタジェネレータから読み出しく#
14)、その文字パターンを印字しく#15)、文字コ
ードバッファの読み出しアト゛レスをインクリメントし
く#16)、このステップ#12〜#16の処理を繰り
返す。
If 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 set as the printing end (#10). When the count value is C1<C2, the line feed code of the second line is set as the printing end (#11
). After that, extract the character code one character at a time from the character code buffer of the first and second lines until the line feed code appears #12), and read the character pattern data corresponding to that character code from the character generator.
14), print the character pattern #15), increment the read address of the character code buffer #16), and repeat steps #12 to #16.

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

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

第1図は本発明実施例の機能構成を示すブロック図、 第2図は本発明実施例の作用を説明する図、第3図は本
発明実施例の処理手順を示す流れ図である。 2.4 6.7 1行目文字列入力部 カウンタ 2行目文字列入力部 比較部 改行コード検出部 印字終端検出部
FIG. 1 is a block diagram showing the functional configuration of the embodiment of the invention, FIG. 2 is a diagram explaining the operation of the embodiment of the invention, and FIG. 3 is a flowchart showing the processing procedure of the embodiment of the invention. 2.4 6.7 1st line character string input section counter 2nd line character string input section comparison section line feed code detection section printing end detection section

Claims (1)

【特許請求の範囲】[Claims] 印字ヘッドを手で持って紙面上を走査することにより1
回の走査で複数行の文字列を紙面に印字するようにした
手走査式プリンタにおいて、複数行の文字列のうちの最
長の文字列の改行コードを印字データの終端として検出
して印字を終了することを特徴とする手走査式プリンタ
の印字制御方法。
1 by holding the print head in your hand and scanning the paper surface.
In a manual scanning printer that prints multiple lines of character strings on paper in one scan, the line feed code of the longest character string among the multiple lines of character strings is detected as the end of the print data and printing ends. A printing control method for a manual scanning printer, characterized in that:
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 true JPH02273261A (en) 1990-11-07
JPH078586B2 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0596789A (en) * 1991-03-28 1993-04-20 Brother Ind Ltd Tape printer
JPH07205490A (en) * 1994-04-19 1995-08-08 Brother Ind Ltd Tape printing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0596789A (en) * 1991-03-28 1993-04-20 Brother Ind Ltd Tape printer
JPH07205490A (en) * 1994-04-19 1995-08-08 Brother Ind Ltd Tape printing device

Also Published As

Publication number Publication date
JPH078586B2 (en) 1995-02-01

Similar Documents

Publication Publication Date Title
JPH02273261A (en) Printing control of manually scanning printer
JPH078585B2 (en) Hand scan printer
JPS6145325A (en) Printer
JPS5959487A (en) Printer
JPS62216029A (en) Graphic print control system
JPS61290519A (en) Output device
JPH091867A (en) Bar code printer
JPS6453848A (en) Printer
JP3250118B2 (en) Printing device data management method
JP2822475B2 (en) Inverted character control circuit of dot type printer
JPH08320771A (en) Information processing network
JPH0596811A (en) Printing method
JPH01234244A (en) Multicolor printing apparatus
JPS6327277A (en) Recording apparatus
JPH0255234B2 (en)
JP2001205856A (en) Dot line printer
JPH05224840A (en) Print data transmission control system
JPH01288468A (en) Page printer
JPH06115182A (en) Certificate issuing machine
JPS63103566A (en) Required print width detection processor
JPS62118426A (en) Ruled and inhibited character printing method
JPS62108074A (en) Printer device
JPS6453849A (en) Printer
JPS62278630A (en) Printer device
JPH08108584A (en) Page printer and printing data-processing method

Legal Events

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