JPH0647958A - Vertical writing control system in printer and device therefor - Google Patents

Vertical writing control system in printer and device therefor

Info

Publication number
JPH0647958A
JPH0647958A JP4272797A JP27279792A JPH0647958A JP H0647958 A JPH0647958 A JP H0647958A JP 4272797 A JP4272797 A JP 4272797A JP 27279792 A JP27279792 A JP 27279792A JP H0647958 A JPH0647958 A JP H0647958A
Authority
JP
Japan
Prior art keywords
data
line
vertical writing
buffer
vertical
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
JP4272797A
Other languages
Japanese (ja)
Inventor
Beom Seok Lee
ボン ソーク リー
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.)
LG Electronics Inc
Original Assignee
Gold Star Co Ltd
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 Gold Star Co Ltd filed Critical Gold Star Co Ltd
Publication of JPH0647958A publication Critical patent/JPH0647958A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J5/00Devices or arrangements for controlling character selection
    • B41J5/30Character or syllable selection controlled by recorded information
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J19/00Character- or line-spacing mechanisms
    • B41J19/18Character-spacing or back-spacing mechanisms; Carriage return or release devices therefor
    • B41J19/68Carriage-return mechanisms, e.g. manually actuated
    • B41J19/70Carriage-return mechanisms, e.g. manually actuated power driven
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Record Information Processing For Printing (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Document Processing Apparatus (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE: To facilitate printing of a vertical written sentence of Japanese, Chinese of Korean by providing a vertical writing buffer, a step for determining the number of lines of a horizontal writing code data and the maximum number of characters in a line, a vertical writing conversion step for rearranging and storing a coded vertical writing data, and a step for printing the vertical writing data. CONSTITUTION: When a printer 20 receives a horizontal writing coded document data, a parallel/series interface section 22 converts the document data into a series data which is then stored in a host buffer 23. Subsequently, the number of lines and the maximum number of characters in a line of the horizontal writing code data are determined and the horizontal writing code data is rearranged, according to the number of lines and the maximum number of characters in a line, into a vertical wiring data which is then stored in a vertical writing buffer 24. Thereafter, the bits and the vertical writing data and an image data are detected from a symbol ROM 25 and stored in an image buffer 26. Finally, a bit map image data is outputted to an engine interface 27 and printed vertically.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、プリンターのプリント
方式に係るもので、詳しくは、ページバッファーを有し
たプリンターにおいて、ホストコンピューターから横書
きの出力データを受けそのプリンターで縦書きデータに
変換し、縦書きに容易にプリントを行い得るようにした
プリンターの縦書き制御方式及びその装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing method of a printer, and more specifically, in a printer having a page buffer, it receives horizontal output data from a host computer and converts it into vertical writing data. The present invention relates to a vertical writing control system for a printer and an apparatus for the same, which can easily print in vertical writing.

【0002】[0002]

【従来の技術】従来プリンターで文字・数字及び各種記
号等をプリントする場合においては、図7に示したよう
に、先ず、各ラインの終わりにキャリッジリターン(C
R)を指示するコード化されたデータ(φa)を含みラ
インフィード(LF)を指示するコード化されたデータ
(φa)を包含した文字・数字、及び各種記号等のコー
ド化されたデータがホストコンピューターからプリンタ
ーに出力されると、該プリンターはそれらホストコンピ
ューターの伝送データを受信して貯蔵し、該貯蔵したコ
ード化された各データをバイト単位又はワード単位にて
ビットマップイメージデータに変換して貯蔵し、該プリ
ントの可能な可視的ビットマップイメージデータを出力
してプリントを行うようになっていた。
2. Description of the Related Art In the case of printing characters, numbers and various symbols with a conventional printer, as shown in FIG. 7, first, at the end of each line, a carriage return (C
The coded data (φa) including the coded data (φa) indicating the R) and the coded data (φa) including the coded data indicating the line feed (LF), and the coded data such as various symbols are the host. When output from the computer to the printer, the printer receives and stores the transmission data of the host computer, and converts the stored coded data into bitmap image data in byte units or word units. It has been designed to store and output the printable visible bitmap image data to perform printing.

【0003】[0003]

【発明が解決しようとする課題】然るに、このような従
来プリンターにおいては、ホストコンピューターから横
書き記号にコード化されたデータが出力されると、その
プリンターにはそれらコンピューターの横書き記号デー
タを縦書き記号データに変換させる装置がないため、縦
書きのプリントを行うことができず、日本語・中国語及
び韓国語の文章は縦書きにプリントを行うことができな
いという不都合な点があった。
However, in such a conventional printer, when the host computer outputs the data encoded into the horizontal writing symbols, the horizontal writing symbol data of those computers is output to the printer. Since there is no device for converting the data, vertical writing cannot be performed, and Japanese, Chinese, and Korean sentences cannot be printed vertically.

【0004】且つ、ホストコンピューターから縦書きに
コード化されたデータが出力されると、プリンターは該
縦書きプリントを行うことができるが、通常のワードプ
ロセシング・プログラムが横書きであるため、別途に、
縦書きプログラムを備えなければならず煩雑になるとい
う不都合な点があった。本発明の目的は、ホストコンピ
ューターから横書きにコード化されたデータが出力され
るとき、プリンターでその横書きデータを縦書きデータ
に変換させ、縦書きに容易にプリントを行い得るように
したプリンターの縦書き制御方式及びその装置を提供し
ようとするものである。
When data encoded vertically is output from the host computer, the printer can print vertically. However, since a normal word processing program is horizontal writing, a separate
There was an inconvenience that it had to be equipped with a vertical writing program and became complicated. An object of the present invention is, when the data encoded in horizontal writing is output from the host computer, the printer converts the horizontal writing data into vertical writing data, and makes it possible to easily print in vertical writing. It is intended to provide a writing control system and its device.

【0005】[0005]

【課題を解決するための手段】このような本発明の目的
は、プリンターに縦書きバッファーを備え、コンピュー
ターから伝送された横書きコードデータのライン数及び
ラインの最大文字数を求める段階と、それらライン数及
びラインの最大文字数により横書きにコード化されたデ
ータを縦書きにコード化されたデータに再配列し貯蔵す
る縦書き変換段階と、それら縦書きに変換されたデータ
をビットマップイメージデータへ変換させ縦書きにプリ
ントをする段階とを備えることにより達成される。
SUMMARY OF THE INVENTION An object of the present invention is to provide a printer with a vertical writing buffer to obtain the number of lines of horizontal writing code data transmitted from a computer and the maximum number of characters of the line, and the number of lines. And a vertical writing conversion step of rearranging and storing the data encoded horizontally according to the maximum number of characters of the line into the data encoded vertically, and converting the data converted into vertical writing into bitmap image data. And printing in vertical writing mode.

【0006】[0006]

【作用】使用者がプリンターに縦書き命令をセッティン
グすると、ホストコンピューターから横書きにコード化
され出力されたデータをそのプリンターが受け、該プリ
ンターの縦書きバッファーで縦書きのデータに再配列さ
せ、該縦書きのデータをビットマップイメージデータに
変換させて縦書きプリントを行うようになる。
When the user sets the vertical writing command in the printer, the printer receives the data encoded and output in the horizontal writing mode from the host computer, rearranges the data into the vertical writing data in the vertical writing buffer of the printer, and Vertical writing data is converted to bitmap image data for vertical writing printing.

【0007】[0007]

【実施例】以下、本発明の実施例に対し図面を用いて詳
細に説明する。図1に示したように、本発明に係るプリ
ンターの縦書き制御装置においては、プリンター20の
動作を制御する中央処理装置21と、該中央処理装置2
1の制御によりホストコンピューター10から出力する
並列データを受け直列データに変換させる並列/直列イ
ンタフェース部22と、該並列/直列インタフェース部
22の直列データを貯蔵し、前記中央処理装置の制御に
より出力するホストバッファー23と、該ホストバッフ
ァー23のデータを前記中央処理装置21の制御により
縦書きデータに再配列し貯蔵する縦書きバッファー24
と、予めコード化したデータのビットマップイメージを
貯蔵し、前記中央処理装置21の制御により出力する字
体ROM25と、該字体ROM25から出力する前記縦
書きバッファー24の縦書きデータに従うビットマップ
イメージを貯蔵するイメージバッファー26と、該イメ
ージバッファー26から出力するビットマップイメージ
をプリンティングデータにインタフェースさせるエンジ
ン・インタフェース部27を備えている。
Embodiments of the present invention will be described below in detail with reference to the drawings. As shown in FIG. 1, in the vertical writing control device for a printer according to the present invention, a central processing unit 21 that controls the operation of the printer 20 and the central processing unit 2 are provided.
The parallel / serial interface unit 22 for converting the parallel data output from the host computer 10 into serial data under the control of 1 and the serial data of the parallel / serial interface unit 22 are stored and output under the control of the central processing unit. A host buffer 23 and a vertical writing buffer 24 for rearranging and storing the data in the host buffer 23 into vertical writing data under the control of the central processing unit 21.
And a bit map image of pre-encoded data, which is output under the control of the central processing unit 21, and a bit map image according to the vertical writing data of the vertical writing buffer 24 output from the character ROM 25. And an engine interface unit 27 for interfacing the bitmap image output from the image buffer 26 with printing data.

【0008】そして、前記ホストコンピューター10か
ら横書きにコード化された文書データがプリンター20
に伝送されると、該プリンター20においては、前記中
央処理装置21の制御により前記並列/直列インタフェ
ース部22で直列データに変換され、前記ホストバッフ
ァー23Fに貯蔵される。次いで、該ホストバッファー
23の貯蔵データは前記中央処理装置21により横書き
にコード化されたデータのライン数及びラインの最大文
字数が求められ、該ライン数及びラインの最大文字数に
より縦書きデータに再配列されて縦書きバッファー24
に貯蔵される。その後、該縦書きバッファー24の縦書
き貯蔵データに対するビット及びイメージデータが前記
字体ROM25から検出されイメージバッファー26に
貯蔵され、該イメージバッファー26の貯蔵ビットマッ
プイメージデータが前記エンジン・インタフェース部2
7に出力されて縦書きプリントが行われる。
Then, the document data encoded horizontally from the host computer 10 is transferred to the printer 20.
In the printer 20, the data is converted into serial data by the parallel / serial interface unit 22 under the control of the central processing unit 21 and stored in the host buffer 23F. Next, the data stored in the host buffer 23 is obtained by the central processing unit 21 for the number of lines of the horizontally encoded data and the maximum number of characters of the line, and rearranged into vertical writing data according to the number of lines and the maximum number of characters of the line. Vertical writing buffer 24
Stored in. Then, the bit and image data for the vertical writing storage data of the vertical writing buffer 24 are detected from the font ROM 25 and stored in the image buffer 26, and the bitmap image data stored in the image buffer 26 is stored in the engine interface unit 2.
It is output to 7, and vertical writing printing is performed.

【0009】このような本発明に係るプリンターの縦書
き制御方式に対し図2ないし図6を用いて詳細に説明す
ると次のようである。先ず、ホストコンピューター10
から伝送される並列データが並列/直列インタフェース
部22に入力され、直列データに変換されてホストバッ
ファー23に貯蔵されるデータ入力段階(S10)が行
われるが、該データ入力段階(S10)においては、デ
ータがワード単位に連続して入力され、ホストコンピュ
ーター10からは一度に1ページ分量のデータがプリン
ター20に出力される。
The vertical writing control system of the printer according to the present invention will be described in detail with reference to FIGS. 2 to 6. First, the host computer 10
The parallel data transmitted from the input terminal is input to the parallel / serial interface unit 22, converted into serial data, and stored in the host buffer 23 in the data input step (S10). In the data input step (S10), , Data is continuously input in word units, and the host computer 10 outputs data for one page at a time to the printer 20.

【0010】例えば、ホストコンピューター10から横
書きの1ページ分のデータ“ 天地 CRLF 日 C
RLFCRLF 月 CRLF”がプリンター20に伝
送されると、該プリンター20においては、前記ホスト
バッファー23にそれら伝送データが貯蔵される。ここ
で、前記“ 天 ”,“ 地 ”,“ 日 ”,“ 月
”は夫々2バイト文字を表し、“CRLF”はキャリ
ッジリターン(CR)、ラインフィード(LF)を表
す。次いで、ホストコンピューター10から伝送された
全てのデータが直列データに変換されホストバッファー
23に貯蔵されると、該ホストバッファー23に横書き
にコード化された文書ファイルの総横書きライン数Mと
ラインの最大文字数Lとを求める段階(S20)が行わ
れる。
For example, one page of horizontal writing data from the host computer 10 "top and bottom CRLF date C"
When the RLFCRLF month CRLF "is transmitted to the printer 20, the transmission data is stored in the host buffer 23 in the printer 20. Here, the" heaven "," ground "," day ", and" month "are stored. "" Represents a 2-byte character respectively, and "CRLF" represents a carriage return (CR) and a line feed (LF). Next, all the data transmitted from the host computer 10 is converted into serial data and stored in the host buffer 23. Then, a step (S20) of obtaining the total number M of lines of horizontal writing and the maximum number L of characters of lines of the document file coded horizontally in the host buffer 23 is performed.

【0011】該横書きライン数及び最大文字数を求める
段階(S20)においては、先ず、横書きライン中、最
大文字数を有したラインの最大文字数Lと各ラインの文
字数LO 及び横書きライン数Mとをカウントするため変
数を夫々初期化させる過程(S21)を行い、その後、
前記ホストバッファー23のデータを読み入れる過程
(S22)を行い、該読み入れたデータが夫々キャリッ
ジリターン(CR)、ラインフィード(LF)データで
あるかを判別する過程(S23)を行う。ここで、一度
に読み入れるデータはワード単位であって、2バイトを
一度に読み入れて処理する。
In the step of obtaining the number of horizontal writing lines and the maximum number of characters (S20), first, the maximum number of characters L of the lines having the maximum number of horizontal writing lines, the number of characters L O of each line and the number of horizontal writing lines M are counted. In order to do so, the process of initializing each variable (S21) is performed, and thereafter,
A step (S22) of reading data from the host buffer 23 is performed, and a step (S23) of determining whether the read data is carriage return (CR) or line feed (LF) data is performed. Here, the data read at one time is in word units, and 2 bytes are read at once and processed.

【0012】次いで、該判別の結果、キャリッジリター
ン(CR)、ラインフィード(LF)でないときは、前
記ライン文字数(LO )カウント値を増加(LO =LO
+1)させ、前記ホストバッファー23のアドレス(H
−BUFF−Addr)を増加(H−BUFF−Add
r=H−BUFF−Addr+1)させた後、そのホス
トバッファー23のデータを読み入れる過程(S22)
に戻る過程(S24)を行う。そして、若し、前記読み
入れた文字データが前記キャリッジリターン(CR)、
ラインフィード(LF)の場合は、前記ライン数M値を
増加(M=M+1)させ、前記最大文字数L値と現在の
ライン文字数LO 値とを比較する過程(S25)を行
う。その結果、現在ラインの文字数LO が前記最大文字
数Lよりも大きいと、該現在ラインの文字数LO を最大
文字数Lに貯蔵し、現在ラインの文字数LO が前記最大
文字数Lよりも小さいと、その最大文字数L値を維持さ
せる過程(S26)を行う。
[0012] Then,該判another result, when it is not a carriage return (CR), or a line feed (LF), said line number (L O) increments the count value (L O = L O
+1), and the address (H
-BUFF-Addr) is increased (H-BUFF-Add
r = H-BUFF-Addr + 1) and then read the data in the host buffer 23 (S22)
The process of returning to step S24 is performed. If the read character data is the carriage return (CR),
In the case of line feed (LF), the number of lines M value is increased (M = M + 1) and the process of comparing the maximum number of characters L value with the current number of line characters L O value (S25). As a result, when the number of characters L O of the current line is larger than the maximum number of characters L, the number of characters L O of the current line is stored in the maximum number of characters L, and when the number of characters L O of the current line is smaller than the maximum number of characters L, A process of maintaining the maximum character number L value (S26) is performed.

【0013】その後、前記文字数LO をクリアさせ、前
記ホストバッファー23のアドレス(H−BUFF−A
ddr)を増加(H−BUFF−Addr=H−BUF
F−Addr+1)させた後、該ホストバッファー23
のデータを読み入れデータ終わり(EOF)であるかを
判別し、該データ終わり(EOF)になるまで前記デー
タ読み入れ過程(S21)に戻る過程(S27)を行
う。即ち、図6(A)に示したデータを読み入れ、横書
きラインの総ライン数Mとラインの最大文字数Lとを求
める段階(S20)を行うと、“ 天 地 ”,“ 日
”,“ 月 ”の4ライン(M=4)が求められ、ラ
イン最大文字数Lは第1ライン“ 天 地”の文字数の
2文字(L=2)であることがわかる。
After that, the number of characters L O is cleared, and the address (H-BUFF-A) of the host buffer 23 is cleared.
ddr) is increased (H-BUFF-Addr = H-BUF
F-Addr + 1), and then the host buffer 23
It is determined whether or not the data is the end of data (EOF), and the process (S27) is returned to the data reading process (S21) until the end of the data (EOF) is reached. That is, when the data shown in FIG. 6 (A) is read and the step of determining the total number M of horizontal writing lines and the maximum number L of lines is performed (S20), "Tenji", "Sun", "Month""4 lines (M = 4)" are obtained, and it can be seen that the maximum line character number L is 2 characters (L = 2) which is the number of characters of the first line "top and bottom".

【0014】このようにライン数Mと各ライン中最大文
字数Lとを求める段階(S20)を行った後、横書きに
コード化されたデータを縦書きにコード化したデータに
再配列させ縦書きバッファー24に貯蔵する縦書き変換
段階(S30)を行う。該縦書き変換段階(S30)に
おいては、先ず、縦書き変換のため使用される変数を夫
々初期化させ、ホストバッファー23から現在貯蔵され
たアドレスのデータを読み入れてレジスターDに貯蔵さ
せ、該データがキャリッジリターン(CR)、ラインフ
ィード(LF)であるかを判別する過程(S31)を行
う。
After the step of determining the number of lines M and the maximum number of characters L in each line (S20) is performed in this way, the data encoded in the horizontal writing is rearranged into the data encoded in the vertical writing and the vertical writing buffer. A vertical writing conversion step (S30) of storing in 24 is performed. In the vertical writing conversion step (S30), first, the variables used for vertical writing conversion are initialized, the data of the currently stored address is read from the host buffer 23, and stored in the register D. A process (S31) of determining whether the data is a carriage return (CR) or a line feed (LF) is performed.

【0015】即ち、該判別過程(S31)においては、
縦書きの縦ライン文字番号Iをカウントするため変数を
初期化(1←0)させる過程(S31−1)を行い、縦
書きの縦ライン番号Hをカウントするため変数を初期化
(H←0)させ、前記縦ライン文字番号Iを増加(I=
I+1)させる過程(S31−2)を行う。次いで、横
書きの横ライン文字番号Jをカウントするため変数を初
期化(J←0)させる過程(S31−3)を行った後、
前記ホストバッファー23から現在貯蔵されたアドレス
のデータを読み入れ、レジスターDに貯蔵させる過程
(S31−4)を行う。
That is, in the determining step (S31),
A step (S31-1) of initializing a variable to count the vertical writing vertical line character number I is performed, and a variable is initialized to count the vertical writing vertical line number H (H ← 0). ) To increase the vertical line character number I (I =
The process of making (I + 1) (S31-2) is performed. Next, after performing a step (S31-3) of initializing a variable (J ← 0) to count the horizontal line character number J for horizontal writing,
The process of reading the data of the currently stored address from the host buffer 23 and storing it in the register D (S31-4) is performed.

【0016】その後、前記横ライン文字番号Jを増加
(J=J+1)させ、前記レジスターDに貯蔵されたデ
ータがキャリッジリターン(CR)、ラインフィード
(LF)であるかを判別する過程(S31−5)を行
う。ここで、図6(A)(B)に示したように、前記縦
ライン文字番号Iは横ラインの文字を縦書きに決定する
ための横書き最大文字数Lに対する変数であって縦書き
のライン別文字番号を意味する。且つ、前記横ライン文
字番号Jは横ラインの文字を縦書きに決定するための変
数であって、ホストバッファー23から読み入れた横書
きにコード化された横ライン別文字番号を意味する。
After that, the horizontal line character number J is increased (J = J + 1) and it is determined whether the data stored in the register D is a carriage return (CR) or line feed (LF) (S31-). Perform 5). Here, as shown in FIGS. 6 (A) and 6 (B), the vertical line character number I is a variable for the maximum horizontal writing character number L for determining a horizontal line character to be vertical writing, and is for each vertical writing line. It means a character number. In addition, the horizontal line character number J is a variable for determining a horizontal line character to be written vertically, and means a horizontal line-specific character number read from the host buffer 23 and encoded into horizontal writing.

【0017】又、前記縦ライン番号Hは各文字の配列さ
れる縦ラインの位置を決定するための横書きライン数M
に対する変数である。その後、前記判別結果、キャリッ
ジリターン(CR)、ラインフィード(LF)でない場
合は、前記レジスターDに貯蔵されたデータが現在縦書
きの位置に該当したデータであるかを判別して縦書きバ
ッファー24に貯蔵し、前記ホストバッファー23のア
ドレス(H−BUFF−Addr)をキャリッジリター
ン(CR)、ラインフィード(LF)が検出するまで増
加(H−BUFF−Addr=H−BUFF−Addr
+1)させる過程(S32)を行う。
The vertical line number H is the number M of horizontal writing lines for determining the position of the vertical line in which each character is arranged.
Is a variable for. Thereafter, if the result of the determination is that it is not a carriage return (CR) or line feed (LF), it is determined whether the data stored in the register D is the data corresponding to the current vertical writing position, and the vertical writing buffer 24 And the address (H-BUFF-Addr) of the host buffer 23 is increased until the carriage return (CR) and line feed (LF) are detected (H-BUFF-Addr = H-BUFF-Addr).
+1) is performed (S32).

【0018】該レジスターの貯蔵データが現在縦書き位
置に該当したデータであるかを判別し縦書きバッファー
24に貯蔵させる過程においては、先ず、前記レジスタ
ーDに貯蔵されたデータがキャリッジリターン(C
R)、ラインフィード(LF)データでない場合に前記
縦ライン文字番号Iと前記横ライン文字番号Jとが同様
(J=I)であるかを判別する過程(S32−1)を行
い、該判別結果、前記縦ライン文字番号Iと前記横ライ
ン文字番号Jとが同様(J=I)であるとき、前記レジ
スターDに貯蔵されたデータを縦書きバッファー24に
貯蔵し、該縦書きバッファー24のアドレスを2つ増加
(TBUFF=TBUFF+2)させる過程(S32−
3)を行う。
In the process of determining whether the data stored in the register corresponds to the current vertical writing position and storing the data in the vertical writing buffer 24, first, the data stored in the register D is returned by a carriage return (C).
R), if it is not line feed (LF) data, a process (S32-1) of determining whether the vertical line character number I and the horizontal line character number J are the same (J = I) is performed, and the determination is performed. As a result, when the vertical line character number I and the horizontal line character number J are the same (J = I), the data stored in the register D is stored in the vertical writing buffer 24, and the data of the vertical writing buffer 24 is stored. The process of incrementing the address by two (TBUFF = TBUFF + 2) (S32-
Perform 3).

【0019】次いで、前記縦書きバッファー24の増加
されたアドレスにスペース(SP=“20”)を書き込
ませ、該縦書きバッファー24のアドレス(TBUF
F)を1つ増加(TBUFF=TBUFF+1)させる
過程(S32−4)を行う。ここで、前記スペースは縦
ライン間の間隔を置くための空白を示したものである。
その後、前記ホストバッファー23のアドレス(H−B
UFF−Addr)を増加(H−BUFF−Addr=
H−BUFF−Addr+1)させてデータを読み入
れ、該データがキャリッジリターン(CR)、ラインフ
ィード(LF)であるかを判別し該キャリッジリターン
(CR)、ラインフィード(LF)が検出されるまで前
記ホストバッファー23のアドレス(H−BUFF−A
ddr)を増加(H−BUFF−Addr=H−BUF
F−Addr+1)させる過程(S31−5)を行う。
Then, a space (SP = “20”) is written in the increased address of the vertical writing buffer 24, and the address (TBUF of the vertical writing buffer 24 is written.
F) is incremented by 1 (TBUFF = TBUFF + 1) (S32-4). Here, the space is a space for spacing the vertical lines.
Then, the address (H-B
UFF-Addr) is increased (H-BUFF-Addr =
H-BUFF-Addr + 1) to read data, determine whether the data is a carriage return (CR) or line feed (LF), and detect the carriage return (CR) or line feed (LF). Address of the host buffer 23 (H-BUFF-A
ddr) is increased (H-BUFF-Addr = H-BUF
The process of performing F-Addr + 1) (S31-5) is performed.

【0020】且つ、若し、前記縦ライン文字番号Iと前
記横ライン文字番号Jとが同様(J=I)であるかを判
別し同様でないと、前記ホストバッファー23のアドレ
ス(H−BUFF−Addr)を増加(H−BUFF−
Addr=H−BUFF−Addr+1)させた後、該
ホストバッファー23の該当アドレスのデータを読み入
れレジスターDに貯蔵する過程(S31−4)に戻る過
程(S32−2)を行う。
If it is judged that the vertical line character number I and the horizontal line character number J are the same (J = I), and if they are not the same, the address of the host buffer 23 (H-BUFF- Addr) is increased (H-BUFF-
After performing Addr = H-BUFF-Addr + 1), a process (S32-2) of returning to the process of reading the data of the corresponding address of the host buffer 23 and storing it in the register D (S31-4) is performed.

【0021】又、前記レジスターDに貯蔵されたデータ
がキャリッジリターン(CR)、ラインフィード(L
F)であるかを判別する過程(S31)でその判別結果
がキャリッジリターン(CR)、ラインフィード(L
F)データであると、前記縦書きバッファー24にスペ
ース(SP)を3回書き込ませ該縦書きバッファー24
のアドレス(TBUFF)3つ増加(TBUFF−TB
UFF+3)させる過程(S33)を行う。即ち、前記
縦書きバッファー24にスペース(SP)を連続2回書
き込ませ、アドレス(TBUFF)を2つ増加(TBU
FF=TBUFF+2)させた後、再びスペース(S
P)を書き込ませ、該縦書きバッファー24のアドレス
(TBUFF)を1つ増加(TBUFF=TBUFF+
1)させる。
In addition, the data stored in the register D is a carriage return (CR) and a line feed (L).
In the process (S31) of determining whether it is F), the determination result is carriage return (CR), line feed (L).
F) If it is data, a space (SP) is written in the vertical writing buffer 24 three times, and the vertical writing buffer 24 is written.
Address (TBUFF) increased by 3 (TBUFF-TB
UFF + 3) is performed (S33). That is, the space (SP) is continuously written twice in the vertical writing buffer 24, and the address (TBUFF) is increased by two (TBU).
FF = TBUFF + 2), and then space (S
P) is written and the address (TBUFF) of the vertical writing buffer 24 is incremented by 1 (TBUFF = TBUFF +).
1) Let it do.

【0022】ここで、前記スペース(SP)を連続2回
書き込ませるのは2バイト文字の無いラインに該2バイ
ト文字の代わりのスペースを置くためであり、その後、
スペース(SP)を1回書き込むのは縦ライン間の間隔
を置くためである。このように、縦書きバッファー24
のアドレス(TBUFF)を3回増加させた後、又は前
記縦書きバッファー24にデータを貯蔵した後ホストバ
ッファー23のデータがキャリッジリターン(CR)、
ラインフィード(LF)されるまで該ホストバッファー
23のアドレスを増加させた後、次の縦ラインに文字デ
ータを配列するため前記縦ライン番号Hを増加(H=H
+1)させ、該増加された後ライン番号Hが前記横書き
のライン数Hと同様(H=M)であるかを判別する。
Here, the space (SP) is written twice in succession in order to place a space instead of the double-byte character in a line without the double-byte character.
The space (SP) is written once in order to set a space between the vertical lines. In this way, the vertical writing buffer 24
Address (TBUFF) is increased three times, or after data is stored in the vertical writing buffer 24, the data in the host buffer 23 is carriage return (CR),
After increasing the address of the host buffer 23 until line feed (LF) is performed, the vertical line number H is increased (H = H) in order to arrange character data on the next vertical line.
+1) to determine whether the increased post-line number H is the same as the horizontal line number H (H = M).

【0023】同様でないとき、前記ホストバッファー2
3のアドレス(H−BUFF−Addr)を増加(H−
BUFF−Addr=H−BUFF−Addr+1)さ
せ、該ホストバッファー23のデータを読み入れキャリ
ッジリターン(CR)、ラインフィード(LF)である
かを判別する過程(S31)に戻る過程(S34)を反
復して行う。
If not, the host buffer 2
3 address (H-BUFF-Addr) is increased (H-
BUFF-Addr = H-BUFF-Addr + 1) is read, the data in the host buffer 23 is read, and the process of returning to the process of determining whether it is a carriage return (CR) or line feed (LF) (S31) is repeated (S34). Then do.

【0024】且つ、前記縦ライン番号Hと前記横書きラ
イン数Mとが同様(H=M)な場合は、前記縦ライン文
字番号Iと前記横ライン最大文字数Lとが同様(I=
L)であるかを判別し同様でないとき、前記縦書きバッ
ファー24にキャリッジリターン(CR)、ラインフィ
ード(LF)データを書き込ませ、該縦書きバッファー
24のアドレス(TBUFF)を2つ増加(TBUFF
=TBUFF+2)させ、前記ホストバッファー23の
アドレスを初期化(H−BUFF−Addr)させた
後、該ホストバッファー23のデータを読み入れてキャ
リッジリターン(CR)、ラインフィード(LF)であ
るかを判別する過程(S31)に戻る過程(S35)を
反復して行う。
When the vertical line number H and the horizontal writing line number M are the same (H = M), the vertical line character number I and the horizontal line maximum character number L are the same (I =
If it is not the same, the carriage write (CR) and line feed (LF) data is written in the vertical writing buffer 24, and the address (TBUFF) of the vertical writing buffer 24 is increased by two (TBUFF).
= TBUFF + 2), the address of the host buffer 23 is initialized (H-BUFF-Addr), and then the data of the host buffer 23 is read to determine whether it is a carriage return (CR) or line feed (LF). The process of returning to the determining process (S31) (S35) is repeated.

【0025】若し、前記縦ライン文字番号Iと前記横ラ
イン最大文字数Lとが同様(I=L)、であると、前記
ホストバッファー23のアドレスを増加させた後、該増
加されたアドレスのデータを読んで前記レジスターDに
貯蔵させ、該データがデータ終わり(EOF)のコード
であるかを判別しデータ終わり(EOF)であるとき、
該データ終わり(EOF)を前記縦書きバッファー24
に書き込ませる過程(S36)を行って縦書きに再配列
するのを完了する。ここで、前記データ終わり(EO
F)のコードは図示されていないが、文書ファイルの終
わりに包含されているものとみなす。
If the vertical line character number I and the horizontal line maximum character number L are the same (I = L), after the address of the host buffer 23 is increased, the increased address When data is read and stored in the register D, it is determined whether the data is an end-of-data (EOF) code, and when the end-of-data (EOF) is reached,
The end of data (EOF) is written in the vertical writing buffer 24
(S36) is performed to complete rearrangement into vertical writing. Here, the end of the data (EO
The code in F) is not shown, but is assumed to be included at the end of the document file.

【0026】その後、前記縦書きバッファー24に貯蔵
された縦書きデータにより前記字体ROM25からビッ
トマップイメージデータを読み入れてイメージバッファ
ー26に貯蔵させ、該イメージバッファー26に貯蔵さ
れたビットマップイメージデータをエンジン・インタフ
ェース部27を通し縦書きプリントをするプリント段階
(S40)を行う。即ち、図6(A)に示したようなホ
ストバッファー23に貯蔵された横書きデータを図6
(B)に示したような縦書きデータに再配列させるもの
であって、次のように行われる。先ず、前記S31←S
32の過程を行って図6(B)に示した第1縦ライン
(H1)の1番目横ライン(I=1)に“天 ”を配列
し、スペース(SP)を置いた後、S32−5の過程を
行って“地 ”を通過し、キャリッジリターン(C
R)、ラインフィード(LF)により次の(S34)過
程に移る。
Thereafter, the vertical writing data stored in the vertical writing buffer 24 is used to read the bitmap image data from the font ROM 25 and store it in the image buffer 26. The bitmap image data stored in the image buffer 26 is stored in the image buffer 26. A printing step (S40) of performing vertical writing through the engine interface unit 27 is performed. That is, the horizontal writing data stored in the host buffer 23 as shown in FIG.
The data is rearranged into the vertically written data as shown in FIG. 7B, and is performed as follows. First, S31 ← S
After performing the process of 32, "heaven" is arranged on the first horizontal line (I = 1) of the first vertical line (H1) shown in FIG. 6 (B) and a space (SP) is placed, and then S32- Carry out Carriage Return (C
R) and line feed (LF) to move to the next step (S34).

【0027】その後、該S34の過程を行って前記S3
1−3の過程に戻り、再びS32の過程を行って第2縦
ラインH2の1番目縦ライン(I=1)に“ 日 ”を
配列し、スペース(SP)を置いて、キャリッジリター
ン(CR)、ラインフィード(LF)により次の過程に
移る。その後、直ちにキャリッジリターン(CR)、ラ
インフィード(LF)が読まれるため、前記S33の過
程を行って第3縦ラインH3の1番目横ラインに空白を
置くため2回のスペース(ステップ)を書き込ませ、次
の縦ラインの間隔のため1回のスペースを追加した後、
次の過程に移る。
Thereafter, the process of S34 is performed to perform the above S3.
Returning to the process of 1-3, the process of S32 is performed again, "day" is arranged in the first vertical line (I = 1) of the second vertical line H2, a space (SP) is placed, and a carriage return (CR) is performed. ), And the line feed (LF) is performed to move to the next step. After that, since the carriage return (CR) and line feed (LF) are immediately read, the step S33 is performed and two spaces (steps) are written to leave a blank on the first horizontal line of the third vertical line H3. And add a space for the next vertical line spacing,
Move on to the next process.

【0028】次いで、前記の過程により第4縦ラインH
4の1番目横ラインに“ 月 ”を配列し、前記S34
の過程でH=M=4であるためS35の過程に移り、該
S35の過程で前記第4縦ラインH4の1番目横ライン
の“ 月 ”の終わりにキャリッジリターン(CR)、
ラインフィード(LF)を書き込ませ、前記縦ラインを
初期化させる(S31−2)過程に戻る。
Then, by the above process, the fourth vertical line H
"Month" is arranged on the first horizontal line of 4, and
Since H = M = 4 in the process of, the process moves to the process of S35, and in the process of S35, a carriage return (CR) at the end of the "month" of the first horizontal line of the fourth vertical line H4,
A line feed (LF) is written and the vertical line is initialized (S31-2).

【0029】ここで、H=0の場合第1縦ラインH1に
“ 天 ”を、H=1の場合第2縦ラインH2に“ 日
”を、H=2の場合第3縦ラインH3に“SPSP”
を、H=3の場合第4縦ラインH4に“ 月 ”を夫々
I=“1”の横ラインに配列し、次いで、前記S34の
過程でH=H+1を行った後、H=Mになると、前記I
=“1”のラインの終わりに“CRLF”を置く、その
後、S31−3〜S31−5,S32−1,S32−2
の過程を夫々行って“ 天 ”を通過し、S32−3の
過程を行って第1縦ライン(H=1)の2番目の横ライ
ン(I=2)に“ 地 ”を配列し、スペースSPを置
いて、キャリッジリターン(CR)、ラインフィード
(LF)により次の過程に移る。
When H = 0, "heaven" is displayed on the first vertical line H1, "second" is displayed on the second vertical line H2 when H = 1, and "day" is displayed on the third vertical line H3 when H = 2. SPSP "
When H = 3, "month" is arranged on the fourth vertical line H4 on the horizontal lines of I = "1" respectively, and then H = H + 1 is performed in the process of S34, and then H = M , Said I
"CRLF" is placed at the end of the line of "1", and then S31-3 to S31-5, S32-1, S32-2
And then pass through the "heavens", and the process of S32-3 is performed to arrange "grounds" on the second horizontal line (I = 2) of the first vertical line (H = 1), After placing SP, carriage return (CR) and line feed (LF) move to the next step.

【0030】その後、S34の過程を行った後前記S3
1−3の過程に戻りS31−3〜S31−5,S32−
1,S32−2の過程を夫々行って“ 日 ”を通過
し、再び前記S31−3〜S31−5,S32−1の過
程を夫々行った後、キャリッジリターン(CR)、ライ
ンフィード(LF)によりS33の過程を行って第2縦
ラインH2の2番目横ラインに空白を置くため2回のス
ペースSPSPを書き込ませ、次の縦ラインとの間隔を
置くため1回のスペースを追加した後、次の過程に移
る。次いで、S34,S31−3〜S31−5,S32
−1,S32−2,S33の過程を夫々行って第3縦ラ
インH2の2番目横ラインに空白を置くため2回のスペ
ース(SPSP)を書き込ませ、次の縦ラインの間隔の
ため1回のスペースを追加する。
Then, after performing the process of S34, the process of S3 is performed.
Returning to the process of 1-3, S31-3 to S31-5, S32-
Carry out a carriage return (CR) and a line feed (LF) after performing steps S1 and S32-2 and passing "Sun", and again performing steps S31-3 to S31-5 and S32-1 respectively. Then, the process of S33 is performed to write the space SPSP twice to put a space on the second horizontal line of the second vertical line H2, and to add one space to make a space with the next vertical line, Move on to the next process. Then, S34, S31-3 to S31-5, S32
-1, S32-2, S33 are performed respectively to write a space (SPSP) twice in order to put a blank in the second horizontal line of the third vertical line H2, and once for the interval of the next vertical line. Add space for.

【0031】その後、再び前記S34,S31−3〜S
31−5,S32−1,S32−2,S33の過程を夫
々行って第4縦ラインH4の2番目ラインに空白を置く
ため2回のスペース(SPSP)を書き込ませ、再び1
回のスペースを追加する。以後、H=M=4で、2番目
横ライン(I=2)と最大文字数(L−2)が同様であ
るため、S36の過程を行ってデータ終わり(EOF)
を書き込ませ、縦書き変換を完了する。従って、図6
(A)に示したような横書きに貯蔵されたデータが図6
(B)に示したように縦書きデータに配列され、縦書き
にプリントされる。
After that, the steps S34, S31-3 to S are again performed.
31-5, S32-1, S32-2, and S33 are respectively performed to write a space (SPSP) twice to put a blank space on the second line of the fourth vertical line H4, and then 1 again.
Add space for times. After that, since H = M = 4 and the second horizontal line (I = 2) and the maximum number of characters (L-2) are the same, the process of S36 is performed to end the data (EOF).
Is written, and the vertical writing conversion is completed. Therefore, FIG.
The data stored in horizontal writing as shown in FIG.
As shown in (B), the data is arranged in vertical writing data and printed vertically.

【0032】以上、左側から右側方向に縦書きを制御す
る方式について説明したが、図6(C)に示したよう
に、同様な方式により右側から左側方向に縦書きを行う
ように制御することもある。
Although the method of controlling the vertical writing from the left side to the right side has been described above, as shown in FIG. 6C, the vertical writing is controlled from the right side to the left side by a similar method. There is also.

【0033】[0033]

【発明の効果】以上、説明したように、本発明に係るプ
リンターの縦書き制御方式及びその装置においては、ホ
ストコンピューターから入力される横書きのデータをプ
リンターに備えた縦書きバッファーを利用し、縦書きに
コード化されたデータに変換させ縦書きにプリントを行
うようになっているため、使用者の要求に従い、日本語
・中国語及び韓国語の文章を縦書きに容易にプリントを
行うことができて極めて便利であるという効果がある。
As described above, in the vertical writing control system for a printer and the apparatus thereof according to the present invention, the horizontal writing data input from the host computer is used in the vertical writing buffer provided in the printer. As it is designed to be converted into coded data for writing and printed vertically, it is possible to easily print Japanese, Chinese, and Korean sentences vertically according to the user's request. It has the effect of being extremely convenient.

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

【図1】本発明に係るプリンターの縦書き制御装置ブロ
ック図である。
FIG. 1 is a block diagram of a vertical writing control device of a printer according to the present invention.

【図2】本発明に係るプリンターの縦書き制御方式フロ
ーチャートであり、プリンターがホストPCのデータを
受けライン数と最大文字数とを求める過程を示したフロ
ーチャートである。
FIG. 2 is a flow chart of a vertical writing control method of the printer according to the present invention, showing a process in which the printer receives the data of the host PC and obtains the number of lines and the maximum number of characters.

【図3】本発明の縦書き変換段階の初期化過程と空白ラ
イン処理過程とを示したフローチャートである。
FIG. 3 is a flowchart showing an initialization process and a blank line processing process in a vertical writing conversion stage of the present invention.

【図4】本発明の縦書き変換段階の文字配列処理過程を
示したフローチャートである。
FIG. 4 is a flowchart showing a character arrangement processing process in a vertical writing conversion step of the present invention.

【図5】本発明の縦書き変換段階のCRLF及びEOF
配列過程とプリントを行う過程とを示したフローチャー
トである。
FIG. 5: CRLF and EOF in the vertical writing conversion stage of the present invention
7 is a flowchart showing an arrangement process and a printing process.

【図6】本発明に係るプリンターの縦書き制御様式の説
明図であり、(A)はホストPCから伝送されるデータ
の様式の説明図、(B)は(A)に示したホストPC伝
送データをプリンターを受け左側から右側方向に縦書き
をする様式の説明図、(C)は(A)に示したホストP
Cの伝送データをプリンターが受け右側から左側方向に
縦書きをする様式の説明図である。
6A and 6B are explanatory diagrams of a vertical writing control mode of the printer according to the present invention, FIG. 6A is an explanatory diagram of a mode of data transmitted from a host PC, and FIG. 6B is a host PC transmission shown in FIG. Explanatory drawing of the format in which data is received from the printer and written vertically from the left side to the right side, (C) is the host P shown in (A)
FIG. 8 is an explanatory diagram of a format in which a printer receives C transmission data and vertically writes from the right side to the left side.

【図7】従来のプリンターの横書きプリント様式の説明
図であり、(A)はホストPCから伝送されるデータ様
式の説明図、(B)は(A)に示したホストPCデータ
をプリンターが受け横書きを行う様式の説明図である。
7A and 7B are explanatory diagrams of a horizontal print format of a conventional printer, FIG. 7A is an explanatory diagram of a data format transmitted from a host PC, and FIG. 7B is a printer receiving the host PC data shown in FIG. It is an explanatory view of a style of performing horizontal writing.

【符号の説明】[Explanation of symbols]

10…ホストコンピューター 20…プリンター 21…中央処理装置 22…並列/直列インタフェース部 23…ホストバッファー 24…縦書きバッファー 25…字体ROM 26…イメージバッファー 27…エンジンインタフェース部 10 ... Host computer 20 ... Printer 21 ... Central processing unit 22 ... Parallel / serial interface section 23 ... Host buffer 24 ... Vertical writing buffer 25 ... Character ROM 26 ... Image buffer 27 ... Engine interface section

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G06F 3/12 H 15/20 564 M 9288−5L ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Office reference number FI technical display location G06F 3/12 H 15/20 564 M 9288-5L

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 プリンターの縦書き制御装置であって、
プリンター(20)の動作を制御する中央処理装置(2
1)と、該中央処理装置(21)の制御によりホストコ
ンピューター(10)から出力する並列データを直列デ
ータに変換させる並列/直列インタフェース部(22)
と、 該並列/直列インタフェース部(22)で直列に変換さ
れたデータを前記中央処理装置(21)の制御により貯
蔵し該貯蔵データを出力するホストバッファー(23)
と、 該ホストバッファー(23)の貯蔵データを前記中央処
理装置(21)の制御により縦書きデータに再配列し貯
蔵する縦書きバッファー(24)と、 予めコード化されたデータに対するビットマップイメー
ジを貯蔵し前記中央処理装置(21)の制御により出力
する字体ROM(25)と、 前記中央処理装置(21)の制御により該字体ROM
(25)から出力する前記縦書きバッファー(24)の
縦書きデータに従うビットマップイメージを貯蔵するイ
メージバッファー(26)と、 該イメージバッファー(26)から出力するビットマッ
プイメージを前記中央処理装置(21)の制御によりプ
リンティングデータにインタフェースさせるエンジンイ
ンタフェース部(27)と、 を備えてなるプリンターの縦書き制御装置。
1. A vertical writing control device for a printer, comprising:
A central processing unit (2 that controls the operation of the printer (20)
1) and a parallel / serial interface unit (22) for converting parallel data output from the host computer (10) into serial data under the control of the central processing unit (21).
And a host buffer (23) for storing the data serially converted by the parallel / serial interface unit (22) under the control of the central processing unit (21) and outputting the stored data.
And a vertical writing buffer (24) for rearranging the stored data of the host buffer (23) into vertical writing data under the control of the central processing unit (21) and storing the same, and a bitmap image for pre-encoded data. A font ROM (25) which is stored and output under the control of the central processing unit (21), and a font ROM under the control of the central processing unit (21)
An image buffer (26) for storing a bitmap image according to the vertical writing data of the vertical writing buffer (24) output from (25), and a bitmap image output from the image buffer (26) to the central processing unit (21). A vertical writing control device for a printer, comprising an engine interface unit (27) for interfacing with printing data under the control of (1).
【請求項2】 プリンターの縦書き制御方法であって、 ホストコンピューター(10)から出力され横書きにコ
ード化されたデータファイルのライン数及びラインの最
大文字数を求める段階と、 それら横書きデータのライン数及びラインの最大文字数
に対応され縦書きの縦ライン数及び縦書きの横ライン数
になるように縦書きデータに変換させる段階と、 それら縦書きデータをビットマップイメージデータに変
換させ縦書きにプリントを行う段階と、 を備えたプリンターの縦書き制御方法。
2. A vertical writing control method for a printer, comprising the steps of obtaining the number of lines and the maximum number of characters of a line of a data file output from a host computer (10) and encoded horizontally, and the number of lines of the horizontal writing data. And the step of converting to vertical writing data so that the number of vertical lines of vertical writing and the number of horizontal lines of vertical writing correspond to the maximum number of characters of the line, and converting the vertical writing data into bitmap image data and printing vertically. And a vertical writing control method for a printer equipped with.
【請求項3】 ホストコンピューター(10)から出力
され横書きにコード化されたデータファイルからライン
数及びラインの最大文字数を求める段階と、 それら横書きにコード化されたファイルを1回読み入れ
る間、各縦ラインの文字番号(I)に該当した横書きフ
ァイルの各横ラインの文字番号(J)データを読み入
れ、その該当する縦ラインの文字番号(I)の位置に貯
蔵する縦書き貯蔵段階と、 該縦書き貯蔵段階を1回行った後キャリッジリターンC
R、ラインフィードLFのコードデータを貯蔵し、その
縦書き貯蔵段階を反復して行う段階と、 該キャリッジリターンCR、ラインフィードLF貯蔵段
階で前記縦書き貯蔵段階が前記最大文字数だけ反復され
ると、ファイルの終わりを意味するEOFコードデータ
を読み入れ貯蔵する段階と、 を備えたプリンターの縦書き制御方法。
3. The step of obtaining the number of lines and the maximum number of characters of a line from the data file output from the host computer (10) and encoded horizontally, and during each reading of the horizontally encoded file once. A vertical writing storage step of reading the character number (J) data of each horizontal line of the horizontal writing file corresponding to the vertical line character number (I) and storing it at the position of the corresponding vertical line character number (I); Carriage return C after performing the vertical writing storage step once
When the code data of R and line feed LF are stored and the vertical writing storage step is repeatedly performed, and the vertical writing storage step is repeated by the maximum number of characters in the carriage return CR and line feed LF storing step. , A step of reading and storing EOF code data indicating the end of a file, and a vertical writing control method for a printer comprising:
【請求項4】 前記縦書き貯蔵段階は、該縦書き貯蔵段
階を行うとき、貯蔵される文字データ間に空白を貯蔵さ
せる請求項3記載のプリンターの縦書き制御方法。
4. The vertical writing control method for a printer according to claim 3, wherein the vertical writing storage step stores a blank between the character data to be stored when the vertical writing storage step is performed.
【請求項5】 前記ライン数及びラインの最大文字数を
求める段階は、 ラインの文字数、ライン数、及びラインの最大文字数を
夫々初期化させる過程と、 文字データを読み入れ該文字データがCRLFであるか
を判別し、該文字データがCRLFでないとき、前記ラ
インの文字数をカウントし、CRLFであるとき前記ラ
イン数をカウントする過程と、 前記ラインの最大文字数を更新する過程と、 ファイルの終わりを判別する過程と、 を備えた請求項3記載のプリンターの縦書き制御方法。
5. The step of obtaining the number of lines and the maximum number of characters in a line is a process of initializing the number of characters in a line, the number of lines, and the maximum number of characters in a line, respectively, and reading the character data is CRLF. If the character data is not CRLF, the number of characters in the line is counted, and if the character data is CRLF, the number of lines is counted, the maximum number of characters in the line is updated, and the end of the file is determined. The vertical writing control method for a printer according to claim 3, further comprising:
【請求項6】 該ホストコンピューター(10)から伝
送される並列データを直列データに変換させホストバッ
ファー(23)に貯蔵する段階(S10)と、 該ホストバッファー(23)に貯蔵されたデータの横ラ
イン数(M)とラインの最大文字数とを求める段階(S
20)と、 該横ライン数(M)及び最大文字数により横書きにコー
ド化されたデータを縦書きにコード化されたデータに再
配列させ縦書きバッファー(24)に貯蔵する段階(S
30)と、 該縦書きバッファー(24)に貯蔵された縦書きのデー
タをビットマップイメージデータに変換させ、エンジン
インタフェース部(27)を通って出力しプリントを行
う段階(S40)と、 を備えたプリンターの縦書き制御方法。
6. A step (S10) of converting parallel data transmitted from the host computer (10) into serial data and storing the serial data in a host buffer (23), and a step of storing the data in the host buffer (23). The step of obtaining the number of lines (M) and the maximum number of characters in the line (S
20) and a step of rearranging the data encoded horizontally according to the number of horizontal lines (M) and the maximum number of characters into data encoded vertically and storing it in the vertical writing buffer (24) (S).
30), and a step (S40) of converting vertical writing data stored in the vertical writing buffer (24) into bitmap image data, outputting the image data through an engine interface unit (27), and performing printing (S40). Vertical control method for printer.
【請求項7】 前記ライン数及び最大文字数を求める段
階(S20)は、 各ラインの文字数、ライン数及びラインの最大文字数を
夫々カウントするため変数を初期化させる過程(S2
1)と、 前記ホストバッファー(23)から文字のデータを読み
入れる過程(S22)と、 該読み入れたデータがキャリッジリターンCR、ライン
フィードLFデータであるかを判別する過程(S23)
と、 該判別の結果、キャリッジリターンCR、ラインフィー
ドLFでないとき、前記ライン文字数のカウント値を増
加させ、前記ホストバッファー(23)のアドレスを増
加させた後、前記ホストバッファー(23)のデータを
読み入れる過程(S22)に戻る過程(S24)と、 前記読み入れた文字データが前記キャリッジリターンC
R、ラインフィードLFであるとき、前記ライン数を増
加させ、前記最大文字数と現在ラインの文字数とを比較
する過程(S25)と、 前記現在ラインの文字数が前記最大文字数よりも大きい
とき、該現在ラインの文字数を最大文字数に指定し、該
現在ラインの文字数が前記最大文字数よりも小さいと
き、その最大文字数の値を維持させる過程(S26)
と、 その後、前記現在文字数をクリアさせ、前記ホストバッ
ファー(23)のアドレスを増加させた後、該ホストバ
ッファー(23)のデータを読み入れデータ終わり(E
OF)であるかを判別し、該データ終わり(EOF)に
なるまでデータ読み入れ過程(S22)に戻る過程(S
27)と、 を備えた請求項6記載のプリンターの縦書き制御方法。
7. The step of determining the number of lines and the maximum number of characters (S20) includes the step of initializing a variable for counting the number of characters of each line, the number of lines and the maximum number of characters of the line (S2).
1), a step of reading character data from the host buffer 23 (S22), and a step of determining whether the read data is a carriage return CR or line feed LF data (S23).
As a result of the discrimination, when it is not the carriage return CR or line feed LF, the count value of the line character number is increased, the address of the host buffer (23) is increased, and then the data of the host buffer (23) is changed. The step of returning to the step of reading (S22) (S24), and the read character data is read by the carriage return C.
When R and line feed LF, the process of increasing the number of lines and comparing the maximum number of characters with the number of characters of the current line (S25); and when the number of characters of the current line is larger than the maximum number of characters, the current A step of designating the number of characters of the line as the maximum number of characters and maintaining the value of the maximum number of characters when the number of characters of the current line is smaller than the maximum number of characters (S26)
After that, the current number of characters is cleared, the address of the host buffer (23) is increased, the data of the host buffer (23) is read, and the end of data (E
(OF), and returns to the data reading step (S22) until the end of the data (EOF) is reached (S22).
27) and the vertical writing control method for a printer according to claim 6.
【請求項8】 前記縦書き変換段階(S30)は、 縦書き変換のため各変数を夫々初期化させ、ホストバッ
ファー(23)の現在指定したアドレスデータを読み入
れレジスターに貯蔵させて、該データがキャリッジリタ
ーンCR、ラインフィードLFであるかを判別する過程
(S31)と、 該判別結果、キャリッジリターンCR、ラインフィード
LFでないとき、前記レジスターに貯蔵したデータが現
在縦書きの位置に該当したデータであるかを判別して縦
書きバッファー(24)に貯蔵し、前記ホストバッファ
ー(23)のアドレスをキャリッジリターンCR、ライ
ンフィードLFが検出されるまで増加させる過程(S3
2)と、 前記判別結果、前記レジスターに貯蔵したデータがキャ
リッジリターンCR、ラインフィードLFであると、前
記縦書きバッファー(24)にスペースを書き込ませア
ドレスを3つ増加させる過程(S33)と、 前記(S32)過程又は(S33)過程を行った後、縦
書きライン番号(H)が前記横書きのライン数(M)と
同様になるまで該縦書きライン番号(H)を増加(H=
H+1)させ、前記ホストバッファー(23)のアドレ
ス(H−BUFF−Addr)を増加(H−BUFF−
Addr=H−BUFF−Addr+1)させた後、前
記ホストバッファー(23)のデータを読み入れキャリ
ッジリターンCR、ラインフィードLFであるかを判別
する過程(S31)に戻る過程(S34)と、 その後、前記縦ライン番号(H)値が前記横書きのライ
ン数(M)値と同様になったとき、前記縦ライン文字番
号(I)と前記横ライン最大文字数値とが同様であるか
を判別し、同様でないとき、前記縦書きバッファー(2
4)にキャリッジリターンCR、ラインフィードLFデ
ータを書き込ませ、該縦書きバッファー(24)のアド
レスを2つ増加させ、前記ホストバッファー(23)の
アドレスを初期化させた後、前記ホストバッファー(2
3)のデータを読み入れキャリッジリターンCR、ライ
ンフィードLFであるかを判別する過程(S31)に戻
る過程(S35)と、 前記縦ライン文字番号(I)と前記横ライン最大文字数
値とが同様であるとき、前記ホストバッファー(23)
のアドレスを増加させ、データを読んで前記レジスター
に貯蔵し、該データがデータ終わり(EOF)のコード
であるかを判別してデータ終わり(EOF)であると、
該データ終わり(EOF)を前記縦書きバッファー(2
4)に書き込ませる過程(S36)と、 を備えた請求項6記載のプリンターの縦書き制御方法。
8. The vertical writing conversion step (S30) initializes each variable for vertical writing conversion, stores the currently designated address data of the host buffer (23) in a read register, and stores the data. Is a carriage return CR or line feed LF (S31), and if the result of the determination is not a carriage return CR or line feed LF, the data stored in the register corresponds to the vertical writing position. And storing it in the vertical writing buffer (24) and increasing the address of the host buffer (23) until a carriage return CR and a line feed LF are detected (S3).
2) and, as a result of the determination, if the data stored in the register is a carriage return CR and a line feed LF, a step of writing a space in the vertical writing buffer (24) and increasing the address by 3 (S33), After performing the step (S32) or (S33), the vertical writing line number (H) is increased (H =) until the vertical writing line number (H) becomes the same as the horizontal writing line number (M).
H + 1) and increase the address (H-BUFF-Addr) of the host buffer (23) (H-BUFF-
After performing Addr = H-BUFF-Addr + 1), reading the data of the host buffer (23), determining the carriage return CR and line feed LF, and returning to the step (S31) (S34), and thereafter. When the vertical line number (H) value becomes the same as the horizontal line number (M) value, it is determined whether the vertical line character number (I) and the horizontal line maximum character numerical value are the same, If not, the vertical writing buffer (2
4) The carriage return CR and the line feed LF data are written in 4), the address of the vertical writing buffer (24) is increased by two, the address of the host buffer (23) is initialized, and then the host buffer (2).
The process of returning to the process (S35) of reading the data of 3) and determining whether it is the carriage return CR or line feed LF (S35), the vertical line character number (I) and the horizontal line maximum character numerical value are the same. And the host buffer (23)
The address is increased, the data is read and stored in the register, and it is determined whether the data is an end-of-data (EOF) code and the end-of-data (EOF) is detected.
The end of data (EOF) is set to the vertical writing buffer (2
7. The vertical writing control method for a printer according to claim 6, further comprising the step (S36) of writing in step 4).
【請求項9】 前記レジスターの貯蔵データが現在縦書
きの位置に該当したデータであるかを判別し縦書きバッ
ファー(24)に貯蔵させる過程(S32)は、 前記レジスターの貯蔵データがキャリッジリターンC
R、ラインフィードLFデータでないとき、前記縦ライ
ン文字番号(I)と前記横ライン文字番号(J)とが同
様であるかを判別する過程(S32−1)と、 該判別結果、同様でないとき、前記ホストバッファー
(23)のアドレスを増加させた後、該ホストバッファ
ー(23)の該当アドレスのデータを読んでレジスター
に貯蔵する過程に戻る過程(S32−2)と、 前記縦ライン文字番号(I)と前記横ライン文字番号
(J)とが同様であるとき、前記レジスターに貯蔵され
たデータを縦書きバッファー(24)に貯蔵し、該縦書
きバッファー(24)のアドレスを2つ増加させる過程
(S32−3)と、 該縦書きバッファー(24)の増加されたアドレスにス
ペースを書き込ませ、該縦書きバッファー(24)のア
ドレスを1つ増加させる過程(S32−4)と、 前記ホストバッファー(23)のアドレスを増加(H−
BUFF−Addr=H−BUFF−Addr+1)さ
せ、データを読んで該データがキャリッジリターンC
R、ラインフィードLFであるかを判別し、キャリッジ
リターンCR、ラインフィードLFが検出されるまで前
記ホストバッファー(23)のアドレスを増加(H−B
UFF−Addr=H−BUFF−Addr+1)させ
る過程(S32−5)と、 を備えた請求項8記載のプリンターの縦書き制御方式。
9. The step (S32) of determining whether the data stored in the register corresponds to the current vertical writing position and storing the data in the vertical writing buffer (24), the data stored in the register being a carriage return C.
When it is not R or line feed LF data, a step of determining whether the vertical line character number (I) and the horizontal line character number (J) are the same (S32-1), and the determination result is that they are not the same. , Incrementing the address of the host buffer (23), reading the data of the corresponding address of the host buffer (23) and storing it in a register (S32-2), and the vertical line character number ( I) and the horizontal line character number (J) are the same, the data stored in the register is stored in the vertical writing buffer (24) and the address of the vertical writing buffer (24) is increased by two. In the step (S32-3), a space is written in the increased address of the vertical writing buffer (24), and the address of the vertical writing buffer (24) is increased by one. Increased process (S32-4), the address of the host buffer (23) to (H-
BUFF-Addr = H-BUFF-Addr + 1), the data is read, and the data is returned by the carriage return C.
It is determined whether it is R or line feed LF, and the address of the host buffer (23) is increased (H-B) until a carriage return CR or line feed LF is detected.
The vertical writing control system for a printer according to claim 8, further comprising a step (S32-5) of performing UFF-Addr = H-BUFF-Addr + 1).
JP4272797A 1991-10-10 1992-10-12 Vertical writing control system in printer and device therefor Pending JPH0647958A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1019910017769A KR930007668A (en) 1991-10-10 1991-10-10 Vertical writing control device and control method of laser printer
KR17769/1991 1991-10-10

Publications (1)

Publication Number Publication Date
JPH0647958A true JPH0647958A (en) 1994-02-22

Family

ID=19321037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4272797A Pending JPH0647958A (en) 1991-10-10 1992-10-12 Vertical writing control system in printer and device therefor

Country Status (3)

Country Link
JP (1) JPH0647958A (en)
KR (1) KR930007668A (en)
CN (1) CN1074770A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03127058U (en) * 1990-03-31 1991-12-20

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100654765B1 (en) * 2005-09-26 2006-12-08 삼성전자주식회사 Head drive device, ink jet printer and data processing method comprising the same

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59157787A (en) * 1983-02-07 1984-09-07 エイ/エス・トムラ・システムズ Method and apparatus for identifying beverage metal can and metal can to be identified

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59157787A (en) * 1983-02-07 1984-09-07 エイ/エス・トムラ・システムズ Method and apparatus for identifying beverage metal can and metal can to be identified

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03127058U (en) * 1990-03-31 1991-12-20

Also Published As

Publication number Publication date
CN1074770A (en) 1993-07-28
KR930007668A (en) 1993-05-20

Similar Documents

Publication Publication Date Title
US4428065A (en) Data processing system with multiple display apparatus
JP2002215612A5 (en)
US4990903A (en) Method for storing Chinese character description information in a character generating apparatus
JPH05298289A (en) Word processor
AU603198B2 (en) Method and apparatus for generating a character image
US4717911A (en) Technique for chaining lines of a document together to facilitate editing or proofreading
JPH0647958A (en) Vertical writing control system in printer and device therefor
JP2644778B2 (en) Character generator
JPH10123924A (en) Memorization learning support device and medium storing memorization learning support device control program
JPH03156668A (en) Document preparing device
US5404517A (en) Apparatus for assigning order for sequential display of randomly stored titles by comparing each of the titles and generating value indicating order based on the comparison
JPS63233465A (en) Input display system for numerical format code
JPH0666066B2 (en) Document processor with furigana addition function
JPS58168180A (en) information retrieval device
JP2813191B2 (en) Typeface automatic conversion method
JPS59125424A (en) Character processor
JPH067309B2 (en) Electronics
JPS5951015B2 (en) document creation device
JP2771020B2 (en) Character processor
TW432299B (en) For 3-dimensional indexing system of phonetic symbols
JP2837497B2 (en) Output control device and output control method
JPS6394869A (en) Printing device with layout information setting device
JPS62119665A (en) Word processor
JPH0830597A (en) Character string layout method and character string layout device
JPS59162584A (en) character generator

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19961015