JPH075868A - Outputting method - Google Patents

Outputting method

Info

Publication number
JPH075868A
JPH075868A JP5221237A JP22123793A JPH075868A JP H075868 A JPH075868 A JP H075868A JP 5221237 A JP5221237 A JP 5221237A JP 22123793 A JP22123793 A JP 22123793A JP H075868 A JPH075868 A JP H075868A
Authority
JP
Japan
Prior art keywords
typeface
character
character pattern
command
pattern
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
JP5221237A
Other languages
Japanese (ja)
Other versions
JP2525333B2 (en
Inventor
Satoshi Nagata
聡 永田
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 JP5221237A priority Critical patent/JP2525333B2/en
Publication of JPH075868A publication Critical patent/JPH075868A/en
Application granted granted Critical
Publication of JP2525333B2 publication Critical patent/JP2525333B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To provide an outputting method by which it can be selected by external setting whether a character pattern specified before a command specifying a font is inputted, that is, a character pattern of the conventional font is generated, or a character pattern in which emphasis processing for a character pattern of the conventional font is performed, is generated, when a character pattern of a specified font can not be generated. CONSTITUTION:In a character train in which fonts of 133-312 are required to change by an inputted command, when a character pattern storage means of a specified font for a device by a command is not found, it is selected and controlled whether a pattern of the conventional font is continued to generate or emphasis processing is performed for a character pattern of the conventional front underlined at 315 as illustrated, in accordance with external setting by a operator.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コマンドにより書体を
指定し、入力文字コードに対応する指定書体の文字パタ
ーンを発生させる出力方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an output method for designating a typeface by a command and generating a character pattern of the designated typeface corresponding to an input character code.

【0002】[0002]

【従来の技術】従来、用いられている複数の異なるパタ
ーンを発生できる出力装置のうち、活字式プリンタ以外
の多くの印刷装置においては、ホストコンピューターか
ら与えられる文字コードデータをあらかじめ各文字に対
応した文字ドットパターンに変換して印刷を行うように
なっている。たとえば、サーマルプリンタ,ワイヤドッ
トプリンタやレーザービームプリンタ等のノンインパク
トプリンタにおける出力装置がこれに該当する。
2. Description of the Related Art Among output devices which can generate a plurality of different patterns which have been used conventionally, in many printing devices other than a type printer, character code data provided from a host computer is associated with each character in advance. It is designed to be converted into a character dot pattern for printing. For example, an output device in a non-impact printer such as a thermal printer, a wire dot printer or a laser beam printer corresponds to this.

【0003】これらのプリンタにおいては、異なるパタ
ーンである書体(文字パターン)に対してそれぞれ文字
発生器を持つことにより、異なる書体の文字を印刷する
ことも行われており、特に文字数の少ない英文文字等の
印刷を対象とするプリンタに実装される傾向が高い。更
に最近では文字発生器であるROM又はRAMをカート
リッジ化して出力装置にソケットを設け、着脱可能とす
ることにより、利用者側にとっては書体の選択を自由に
行うことができるのでその利用性が高くなり、又メーカ
ー側でも印刷装置に内蔵する文字発生器を無制限に拡張
したり、個別の利用者毎に文字発生器を差し替える必要
がなくなり、極めて限定した書体のみを標準装備とする
ことが可能となるなどの長所を併せもつようになった。
従って、今後その採用は増加するものと思われる。
In these printers, it is also possible to print characters of different typefaces by having a character generator for each typeface (character pattern) having a different pattern. It is likely to be installed in a printer for printing such as. Furthermore, recently, ROM or RAM, which is a character generator, has been made into a cartridge, and a socket has been provided in the output device so that it can be attached and detached. Also, the manufacturer does not need to expand the character generator built into the printing device indefinitely or replace the character generator for each individual user, and it is possible to equip only a very limited typeface as standard equipment. It also has advantages such as becoming.
Therefore, its adoption is expected to increase in the future.

【0004】書体の変更は、様々な場合に行われるがそ
の大半はある文字列を何等かの都合で強調したいという
意図をもつからに他ならない。特に図1(ロ)のような
イタリック体、(ハ)のようなゴシック体等は文字列強
調の目的で多用される。具体的には、書体の変更は通
常、印刷装置に書体変更の指令を出し、それに従って指
定された書体の文字発生器のアドレスへ切換えることに
より実現される。
The change of the typeface is carried out in various cases, but most of them are intended to emphasize a character string for some reason. In particular, the italic type as shown in FIG. 1B and the Gothic type as shown in FIG. 1C are often used for the purpose of character string emphasis. Specifically, the change of the typeface is usually realized by issuing a command for changing the typeface to the printing device, and switching to the address of the character generator of the designated typeface according to the command.

【0005】前述した着脱可能型文字発生器を具備した
印刷装置には限らず、従来用いられていた印刷装置にお
いては、次に述べるような別の問題が生じる。
Not only the printing apparatus having the above-mentioned detachable character generator but also the printing apparatus which has been used conventionally has another problem as described below.

【0006】つまり、書体変更の指令を受けたとき、指
定された書体がそのとき印刷装置に装着されている着脱
可能型文字発生器の書体に含まれていない(以下装着さ
れていないという)、もしくは、着脱可能型文字発生器
が全く印刷装置に接続されていない場合、従来からの印
刷装置には、強調する手段がなかった。このとき従来か
ら行われてきた処置は次のように大別される。
In other words, when a typeface change command is received, the designated typeface is not included in the typefaces of the detachable character generator currently attached to the printing apparatus (hereinafter referred to as not attached), Alternatively, if the removable character generator is not connected to the printing device at all, the conventional printing device has no means for emphasizing. At this time, conventional treatments are roughly classified as follows.

【0007】指定された書体が装着されていない旨の
メッセージを通知し、印刷を終了する。
A message indicating that the designated typeface is not attached is notified, and the printing ends.

【0008】書体の変更指令に無視して、そのときの
書体にて印刷を続行する。
Ignoring the change command of the typeface, printing is continued with the typeface at that time.

【0009】このうち、は印刷を続行するにはデータ
ー発生源からの指定された書体の文字コードデータの再
送が不可欠であるうえ、例えば、複数台の印刷装置にお
いて、ある書体の着脱可能型文字発生器を共有し、その
文字発生器を他の印刷装置で使用中である場合に、その
終了を持たなければならなかった。又前記文字発生器を
未購入又は紛失したという最悪の事態については、デー
タを再び作成する以外に方法はなかった。
Among these, in order to continue printing, it is indispensable to retransmit the character code data of the designated typeface from the data source, and, for example, in a plurality of printing devices, a removable type character of a certain typeface is used. If the character generator was shared and the character generator was in use by another printing device, it had to have its termination. In the worst case that the character generator has not been purchased or lost, there is no other way than recreating the data.

【0010】又については、一応印刷の完了は果せる
ものの、当初の目的である書体の変更は何等なされてい
ないばかりでなく、書体変更の主な目的である文字列強
調すら無視されてしまっていた。
Regarding the above, although the printing can be completed for the time being, not only the original purpose of changing the typeface has not been made, but also the character string emphasis, which is the main purpose of changing the typeface, has been ignored. .

【0011】[0011]

【発明の目的】この発明は、上述従来例のもつ欠点に鑑
みなされたもので、特定書体を指定する特定コマンドを
受付けたとき、その特定書体の文字パターンを発生可能
な状態であるとの判定である場合は、入力文字コードに
対応する前記特定書体の文字パターンを発生させ、前記
特定コマンドを受付けたとき、その特定書体の文字パタ
ーンを発生不可能な状態であるとの判定である場合は、
外部より設定されている情報に基づいて、入力文字コー
ドに対応しかつ前記特定コマンドの受付け以前に指定さ
れていた書体の文字パターンを発生させるか、この書体
の文字パターンに強調処理が施された文字パターンを発
生させるか選択制御できる装置の出力方法を提供するを
目的とするものことである。
SUMMARY OF THE INVENTION The present invention has been made in view of the drawbacks of the above-described conventional example. When a specific command for designating a specific typeface is accepted, it is determined that a character pattern of the specific typeface can be generated. When it is determined that the character pattern of the specific typeface corresponding to the input character code is generated and the specific command is accepted, it is determined that the character pattern of the specific typeface cannot be generated. ,
Based on the information set from the outside, the character pattern of the typeface corresponding to the input character code and specified before the reception of the specific command is generated, or the character pattern of this typeface is emphasized. It is an object of the present invention to provide an output method of an apparatus capable of generating or selectively controlling a character pattern.

【0012】[0012]

【実施例】以下に従来例の場合と同様に、書体に関して
この発明の一実施例を図面とともに説明する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to the drawings in the same manner as in the conventional example.

【0013】図1は、印字書体の説明図、図2は、この
発明に係る制御機構のブロック構成図で、ホストコンピ
ューターから送られる文字コードデータ及び制御指令を
入力して、レーザービームプリンタ等のページプリンタ
にて印刷する場合を示し、201はデータ及び制御指令
を発生する計算機、202はデータ及び制御指令を一時
的に蓄積するための入力バッファ、203は汎用マイク
ロプロセッサからなるCPU、204は文字コードデー
タに従って文字ドットパターンを発生する内蔵文字発生
器、205はカートリッジ様式の着脱可能型文字発生
器、206は前記文字発生器205を接続するためのソ
ケット、207は一ページ分のドット数を有するRAM
からなる出力用ページバッファ、208はプリンタとの
インターフェースを保ち出力用ページバッファ207の
ドット情報よりビデオ信号を発生するプリンタインター
フェース部、209は前記ビデオ信号を受け実際に画像
を印刷する出力機であるページプリンタ、210は出力
用ページバッファ207にそのとき発生中の文字一ペー
ジ内の垂直位置を記憶するための行カウンタ、211は
同じく水平位置を記憶するための桁カウンタ、212
は、下線を開始する位置を記憶するための強調開始レジ
スタ、212は下線を終了する位置を記憶するための強
調終了レジスタ、214はCPUボードである。
FIG. 1 is an explanatory view of a print typeface, and FIG. 2 is a block configuration diagram of a control mechanism according to the present invention. Character code data and control commands sent from a host computer are input to a laser beam printer or the like. In the case of printing with a page printer, 201 is a computer that generates data and control commands, 202 is an input buffer for temporarily storing data and control commands, 203 is a CPU consisting of a general-purpose microprocessor, and 204 is a character. A built-in character generator that generates a character dot pattern according to code data, 205 is a cartridge-type removable character generator, 206 is a socket for connecting the character generator 205, and 207 has a dot number for one page. RAM
And 208 is a printer interface unit for generating a video signal from the dot information of the output page buffer 207 while keeping an interface with the printer, and 209 is an output machine for actually printing an image by receiving the video signal. A page printer, 210 is a line counter for storing the vertical position in the currently generated character page in the output page buffer 207, 211 is a column counter for similarly storing the horizontal position, 212
Is an emphasis start register for storing the position of starting the underline, 212 is an emphasis end register for storing the position of ending the underline, and 214 is a CPU board.

【0014】図3は、この実施例における印刷のページ
レイアウトの説明図、図4は、制御指令の形式の説明
図、図5は、CPU203の主な働きを説明するフロー
チャートである。
FIG. 3 is an explanatory diagram of a page layout for printing in this embodiment, FIG. 4 is an explanatory diagram of a format of control commands, and FIG. 5 is a flow chart for explaining the main function of the CPU 203.

【0015】次に上記制御機構について具体的に説明す
る。
Next, the control mechanism will be specifically described.

【0016】図2の構成において、計算機201から送
られてくる文字コードデータ及び書体変更の指令は、一
旦入力バッファ202に蓄積される。ここで、この実施
例における書体変更の指令の形式は図4のようになって
いて、書体の変更を要求する文字列402を書体変更開
始指令401と書体変更終了指令403とではさみ込む
構成をとっている。書体変更開始指令401はどのよう
な書体に変更するかを特定する内容を含み、書体変更終
了指令403は、書体変更実施以前のもとの書体に復帰
させることを意味する。
In the configuration of FIG. 2, the character code data and the font change command sent from the computer 201 are temporarily stored in the input buffer 202. Here, the format of the typeface change command in this embodiment is as shown in FIG. 4, and the character string 402 requesting the typeface change is sandwiched between the typeface change start command 401 and the typeface change end command 403. I am taking it. The typeface change start command 401 includes content that specifies what typeface to change to, and the typeface change end command 403 means to restore the original typeface before the typeface change was performed.

【0017】入力バッファ202に格納された文字コー
ドデータ及び書体変更指令は、1単位コードづつCPU
203に取り出され、図5のフローチャートに従って順
次処理される。なお図5中斜線を施した枠は、この発明
の要部に直接関係する処理を示している。
The character code data and the font change command stored in the input buffer 202 are stored in the CPU for each unit code.
It is taken out by 203 and is sequentially processed according to the flowchart of FIG. Note that the shaded frame in FIG. 5 indicates processing directly related to the main part of the present invention.

【0018】同図において、まず、CPU203はステ
ップ501,502にて水平方向印字位置を示す桁カウ
ンタ211、及び垂直方向印字位置を示す行カウンタ2
10を初期化し、更にステップ503にて下線を発生さ
せる開始位置を示す強調開始レジスタ212に負の値を
設定して初期化する。
In the figure, first, in steps 501 and 502, the CPU 203 first outputs a digit counter 211 indicating the horizontal print position and a line counter 2 indicating the vertical print position.
10 is further initialized, and in step 503, a negative value is set in the emphasis start register 212 indicating the start position where an underline is generated, and initialization is performed.

【0019】以上の初期化が終了した後、CPU203
はステップ504にて入力バッファ202から1単位コ
ードを読み込み、ステップ505にてデータの終了が判
別され、終了でないと判定されると、ステップ506,
507にて書体変更に関する指令の有無が判別される。
もし前記指令ではないと判定された場合には、ステップ
508に進み、その文字コードに対応する文字ドットパ
ターンを出力用ページバッファ207に発生する。ここ
で文字コードデータは、標準書体の各文字についてのド
ットパターンが納められているRAM又はROMからな
る内蔵文字発生器204のアドレスとなり、これにより
発生された文字ドットパターンはCPU203により後
述するように適正に位置決めされて、1文字分が出力用
ページバッファ207にドットにより像形成される。こ
こで内蔵文字発生器204に収められている書体は標準
的なものであれば特に限定する必要はないが、この実施
例においては、図1の(イ)のようないわゆる“エリー
ト”書体を用いることにする。
After the above initialization is completed, the CPU 203
Reads one unit code from the input buffer 202 in step 504, determines the end of the data in step 505, and if it is determined that the end is not reached, returns step 506.
At 507, it is determined whether or not there is a command related to changing the typeface.
If it is determined that the command is not the command, the process proceeds to step 508, and the character dot pattern corresponding to the character code is generated in the output page buffer 207. Here, the character code data becomes an address of the built-in character generator 204 which is composed of a RAM or a ROM in which a dot pattern for each character of the standard typeface is stored, and the character dot pattern generated by this is generated by the CPU 203 as described later. With proper positioning, one character is imaged with dots in the output page buffer 207. The typeface contained in the built-in character generator 204 is not particularly limited as long as it is a standard type. In this embodiment, a so-called “elite” typeface as shown in FIG. I will use it.

【0020】次に発生する文字の位置に関して図3を用
いて説明する。図中301は左余白桁数(lm)、30
2は本文桁数(n)、303は右余白桁数(rm)、3
04は上余白行数(tm)、305は本文行数(l)、
306は下余白行数(bm)、307は行ピッチのドッ
ト数(yP )、308は文字ピッチのドット数
(xP)、309は水平方向文字幅のドット数(xS
である。ページの左上端を原点(0,0)とし、桁カウ
ンタ211の値をXc 、行カウンタの値をYC とした
時、発生文字の文字ドットパターンの右下端の位置(x
0 ,y0 )は、 x0 =(lm +XC )×xP0 =(tm +YC )×yP なる計算式により求められ、XC ,YC が変化するに従
って発生文字の位置決定がなされる。
The position of the character generated next will be described with reference to FIG. In the figure, 301 is the left margin digit number (lm), 30
2 is the number of digits in the text (n), 303 is the number of digits in the right margin (rm), 3
04 is the number of upper margin lines (tm), 305 is the number of body lines (l),
306 is the number of lines in the bottom margin (bm), 307 is the number of dots in the line pitch (y P ), 308 is the number of dots in the character pitch (x P ), and 309 is the number of dots in the horizontal character width (x S ).
Is. When the upper left corner of the page is the origin (0, 0), the value of the digit counter 211 is X c , and the value of the line counter is Y C , the lower right position of the generated character dot pattern (x
0, y 0) is, x 0 = (l m + X C) obtained by × x P y 0 = (t m + Y C) × y P becomes formulas, X C, the generation characters according Y C is changed Positioning is done.

【0021】以上の様な方法でステップ508にて文字
発生がなされた後、ステップ509にて桁カウンタ21
1の値を1増加させ、ステップ510にて行あふれのチ
ェックを行い、行あふれでない場合、すなわち桁カウン
タ211の値が本文桁数(n)302より小なる場合に
は、ステップ504に戻り、次の1単位コードを読み込
む。
After the characters are generated in step 508 by the above method, the digit counter 21 is set in step 509.
The value of 1 is incremented by 1 and line overflow is checked in step 510. If no line overflow occurs, that is, if the value of the digit counter 211 is smaller than the number of digits (n) 302 in the text, the process returns to step 504. Read the following 1-unit code.

【0022】同じ様に次々と文字を発生させてゆき、ス
テップ510にて行あふれがおきた場合、すなわち桁カ
ウンタ211の値が本文桁数(n)302にまで達した
場合には、ステップ511にて強調開始レジスタ212
の内容を判定し、このときこのレジスタの値は初期値の
ままであり負になっているのでステップ515に飛ぶ。
同ステップにて行カウンタ210の値を1増加させ、ス
テップ516にて桁カウンタを初期化した後、ステップ
517にてページあふれの判定を行う。ページあふれで
ないと判定された場合、すなわち行カウンタ210の値
が本文行数(l)305と比して等しいか又は小なる場
合は、まだ出力用ページバッファに余裕ありとして、ス
テップ504に戻り、出力用ページバッファ207の作
成処理を継続する。逆にステップ517にてページあふ
れ状態であると判定された場合、すなわち行カウンタ2
10の値が本文行数(l)305に比べて大きいとき
は、一ページ分の出力用ページバッファ207の作成が
完了したものとして、1スキャンライン分づつのドット
イメージがプリンタインターフェース部208に渡され
同部にてビデオ信号に変換された後、出力機であるペー
ジプリンタ209により印刷が行われる。
Characters are generated one after another in the same manner, and if a line overflow occurs in step 510, that is, if the value of the digit counter 211 reaches the number of body digits (n) 302, step 511. At the emphasis start register 212
The contents of this register are judged. At this time, the value of this register remains the initial value and is negative, so that the process jumps to step 515.
In the same step, the value of the row counter 210 is incremented by 1, the digit counter is initialized in step 516, and then the page overflow is determined in step 517. If it is determined that there is no page overflow, that is, if the value of the line counter 210 is equal to or smaller than the body line number (l) 305, it is determined that there is still room in the output page buffer, and the process returns to step 504. The process of creating the output page buffer 207 is continued. On the other hand, if it is determined in step 517 that the page overflow has occurred, that is, the line counter 2
When the value of 10 is larger than the number of text lines (l) 305, it is assumed that the creation of the output page buffer 207 for one page is completed, and the dot image for each scan line is passed to the printer interface unit 208. Then, after being converted into a video signal in the same section, printing is performed by the page printer 209 which is an output device.

【0023】同様に、ステップ504からステップ51
9のくり返しによって次々とページが作成されていく。
Similarly, steps 504 to 51
Pages are created one after another by repeating 9 times.

【0024】次に、書体の変更が指令されたときの処理
について説明する。
Next, the processing when the change of the font is instructed will be described.

【0025】書体変更開始指令401が読み込まれる
と、それは、ステップ506にて認識され、ステップ5
20に進み、その指令が指定している書体が出力装置に
装着されている文字発生器の書体と同じで、その書体が
使用可能な状態であるか否かが判定される。具体的に
は、着脱可能型文字発生器205内のROM中にある定
められた領域を読み込むことにより行われる。すなわち
前記領域には書体の内容を示すユニークなコードが収め
られていて、書体変更開始指令401の指示する書体と
一致するかどうかによって判定する。又、着脱可能型文
字発生器205がソケット206に接続されていない場
合にも、その領域を読み込む作業を行うことにより、不
定形のビットパターン(ゴミ)が生じするだけであるの
でその判定には支障をきたさない。こうした判定の結
果、変更書体が使用可能な場合には、ステップ521で
内蔵文字発生器204をアドレスしていたCPU203
内のベースレジスタの値を着脱可能型文字発生器205
を指し示す様に切り換えた後、ステップ504に戻り、
次の1単位コードの処理に入る。その後、書体変更終了
指令403が読み込まれるまで、変更後の書体にて、す
なわち着脱可能型文字発生器205の書体を用いて印字
が行われる。次に書体変更終了指令403が読み込まれ
ると、それは、ステップ507で認識され、ステップ5
23に進み、強調開始レジスタ212の値が負であるか
否か判定される。書体変更指令が出されかつ、指定され
た書体が使用可能な状態であるときには、前述した書体
変更指令がない場合と同様に、強調開始レジスタ212
には何等操作が加えられていないので、レジスタは初期
値を保ち、その値は負であるのでステップ524に進
む。同ステップでは前述のステップ521と逆の操作が
なされる。すなわち、着脱可能型文字発生器205をア
ドレスしていたCPU203内のベースレジスタの値
を、内蔵文字発生器204を指し示す様に切り換えた
後、ステップ504に戻り、次の1単位コードの処理に
入る。こうすることにより、それ以降、再び前の書体に
て、すなわち内蔵文字発生器204の書体にて印字が行
われる。
When the typeface change start command 401 is read, it is recognized in step 506 and step 5
In step 20, it is determined whether the typeface designated by the command is the same as the typeface of the character generator mounted on the output device and the typeface is in a usable state. Specifically, this is performed by reading a predetermined area in the ROM in the removable character generator 205. That is, a unique code indicating the contents of the typeface is stored in the area, and it is determined whether or not it matches the typeface designated by the typeface change start command 401. Further, even when the removable character generator 205 is not connected to the socket 206, an irregular bit pattern (dust) is only generated by performing the work of reading that area. Do not hinder. As a result of the determination, if the changed typeface is usable, the CPU 203 that has addressed the internal character generator 204 in step 521.
The value of the base register in the removable character generator 205
After switching to point to, return to step 504,
The process for the next 1-unit code is started. Thereafter, printing is performed with the changed typeface, that is, using the typeface of the removable character generator 205 until the typeface change end command 403 is read. Next, when the typeface change end command 403 is read, it is recognized in step 507, and step 5
23, it is determined whether the value of the emphasis start register 212 is negative. When the typeface change command is issued and the designated typeface is available, the emphasis start register 212 is used as in the case where the typeface change command is not issued.
Since no operation has been applied to the register, the register retains the initial value, and since the value is negative, the routine proceeds to step 524. In this step, the reverse operation of the above-mentioned step 521 is performed. That is, after switching the value of the base register in the CPU 203 that has addressed the removable character generator 205 to point to the built-in character generator 204, the process returns to step 504 to start the processing of the next one unit code. . By doing so, thereafter, printing is performed again with the previous typeface, that is, with the typeface of the built-in character generator 204.

【0026】次にこの発明の要部となる書体変更指令が
出され、かつその書体が出力装置に装着されている文字
発生器205の書体に含まれてなく、従ってその書体は
使用できない場合の処理の方法について以下に説明す
る。
Next, in the case where a typeface change command, which is an essential part of the present invention, is issued and the typeface is not included in the typeface of the character generator 205 attached to the output device, and therefore the typeface cannot be used. The processing method will be described below.

【0027】まず、書体変更指令401が読み込まれる
と、それはステップ506にて認識され、ステップ52
0にて、上述したように、その指令により指定されてい
る書体の文字発生器が装着されているかどうかを判定す
る。この場合には、その書体は装着されていないので、
ステップ522にて書体変更の代替としての下線を施す
水平方向の開始位置を以下の方法にて算出し、強調開始
レジスタ212に格納する。
First, when the typeface change command 401 is read, it is recognized in step 506 and step 52
At 0, as described above, it is determined whether or not the character generator of the typeface designated by the command is attached. In this case, the typeface is not attached, so
In step 522, the horizontal start position to underline as an alternative to the typeface change is calculated by the following method and stored in the emphasis start register 212.

【0028】すなわち図3において311に示す文字
“C”を書体変更が要求された文字列の先頭の文字と
し、そのときの桁カウンタ211の示す値をXC 、左余
白桁の桁数をlm 、文字ピッチのドット数をxP とした
とき、ページ左上端の原点(0,0)に対する下線開始
位置313の座標(x1 ,y1 )のうちのx1 は次式 x1 =(lm +XC −1)×xP によって求められる。
That is, the character "C" indicated by 311 in FIG. 3 is the first character of the character string for which the font change is requested, the value indicated by the digit counter 211 at that time is X C , and the number of left margin digits is l. m, when the number of dots character pitch was x P, x 1 of the coordinates of underline the start position 313 of the top left end with respect to the origin (0,0) (x 1, y 1) is the following formula x 1 = ( 1 m + X C −1) × x P.

【0029】以上の方法で求められた算出結果を強調開
始レジスタ212に格納した後、ステップ504に戻り
次の1単位コードの処理に入る。以下書体の変更が為さ
れていないまま、つまり内蔵文字発生器204からひき
つづき文字ドットパターンを発生していきながら、書体
変更終了指令403の読み込まれるまで同処理を繰返
す。
After the calculation result obtained by the above method is stored in the emphasis start register 212, the process returns to step 504 to start the processing of the next one unit code. Thereafter, the same process is repeated until the typeface change end command 403 is read while the typeface is not changed, that is, the character dot pattern is continuously generated from the built-in character generator 204.

【0030】書体変更終了指令403が読み込まれる
と、それはステップ507にて認識され、ステップ52
3にて強調開始レジスタ212の内容を検査されるが、
ステップ522にて、前述したようにすでにステップ5
22にて0以上の値が格納されているのでステップ52
5に進む。同ステップにおいては、下線を施す水平方向
の終了位置を以下の方法にて算出し、強調終了レジスタ
213に格納する。
When the typeface change end command 403 is read, it is recognized in step 507, and step 52
Although the contents of the emphasis start register 212 are inspected at 3,
In step 522, as already mentioned in step 5
Since the value of 0 or more is stored in 22, the step 52
Go to 5. In the same step, the horizontal end position for underlining is calculated by the following method and stored in the emphasis end register 213.

【0031】前述した強調開始位置の算出の場合と同様
に、312で示す文字“t”を書体変更を要求された文
字列の最後の文字とし、そのときの桁カウンタ211の
示す値をxC 、文字ピッチのドット数をxP 、水平方向
文字幅のドット数をxS 、左余白桁数をlm としたと
き、ページ左上端の原点(0,0)に対する下線終了位
置314の座標(x2 ,y1 )のうちのx2 は次式 x2 =(lm +XC −1)×xP +xS によって求められ、この結果を強調終了レジスタ213
に格納する。続いて、ステップ526に進み、実際に下
線に相当する水平線を出力用ページバッファ207に発
生させる処理を行う。
As in the case of calculating the emphasis start position described above, the character "t" indicated by 312 is the last character of the character string for which the font change is requested, and the value indicated by the digit counter 211 at that time is x C. , the number of dots x P of the character pitch, the number of dots x S horizontal character width, when the left margin digits and l m, underline the end position 314 of the top left end with respect to the origin (0, 0) coordinates ( x 2 of x 2, y 1) is the following formula x 2 = (l m + X C -1) obtained by × x P + x S, emphasizing ends the result register 213
To store. Then, the process proceeds to step 526, where a horizontal line actually corresponding to an underline is generated in the output page buffer 207.

【0032】次に垂直位置については、上余白行数をt
m 、行カウンタ210の値をYC 、行ピッチのドット数
をYP 、文字パターンと下線の間のドット間隔数をUと
したとき、下線開始位置の座標(x1 ,y1 )及び終了
位置の座標(x2 ,y1 )における垂直方向座標y1
値は、次式 y1 =(tm +YC )×yP +U で与えられる。なおUは一意な値の定数とする。上記の
ようにして求まった座標(x1 ,y1 )から座標(x
2 ,y1 )まで連続するドットによる直線を施すのは、
文字発生器を用いないで、CPU203内のレジスタを
用いて行われる。
Next, for the vertical position, the number of upper margin lines is t
where m is the value of the line counter 210 is Y C , the number of dots in the line pitch is Y P , and the number of dot intervals between the character pattern and the underline is U, the coordinates (x 1 , y 1 ) of the underline start position and the end The value of the vertical coordinate y 1 at the position coordinate (x 2 , y 1 ) is given by the following equation y 1 = (t m + Y c ) × y p + u. Note that U is a constant having a unique value. From the coordinates (x 1 , y 1 ) obtained as described above, the coordinates (x
2 、 y 1 ) is a straight line made up of dots,
This is performed using the register in the CPU 203 without using the character generator.

【0033】このような方法で、下線315を出力用ペ
ージバッファ207に発生した後、ステップ527にて
強調終了開始レジスタ212に負の値を格納して初期化
し、下線発生処理を終え、ステップ504に戻る。
After the underline 315 is generated in the output page buffer 207 by such a method, a negative value is stored in the emphasis end start register 212 for initialization in step 527, the underline generation process is completed, and step 504 is completed. Return to.

【0034】以上に述べた方法は、第3図に示した“C
at”のような書体変更の対象の文字列が一行中に納ま
る場合であるが、同図“Dog”のように二行にまたが
る場合には行あふれのときの処理がこれに加わる。すな
わち、強調開始レジスタ212に開始位置を格納する方
法は、前述の場合と同様であるが、行あふれのときに
は、下線終了位置を算出した後、一度、その行に対する
下線発生処理を施す必要がある。すなわち具体的には、
ステップ510にて行あふれであると判定されると、ス
テップ511にて強調開始レジスタ212の内容が評価
され、すでに0以上の値が格納されているのでステップ
512以降の処理を行う。ステップ512では、ステッ
プ525と同じ計算式を用いて下線終了位置を算出し、
強調終了レジスタ213にその値を格納し、ステップ5
13にてステップ526の処理と全く同じ方式で出力用
ページバッファ207に下線を発生させる。その後ステ
ップ514にて次行の下線発生のために、強調開始レジ
スタに左余白のドット数(lm)301を格納する。以
後、次行において書体変更終了指令403が読み込まれ
た際に下線が発生される過程は前述した場合と同様に行
われる。
The method described above is based on "C" shown in FIG.
This is a case where a character string whose typeface is to be changed, such as "at", is contained in one line, but in the case where the character string extends over two lines as in "Dog" in the figure, processing for line overflow is added. The method of storing the start position in the emphasis start register 212 is the same as that described above, but in the case of line overflow, it is necessary to calculate the underline end position and then once perform the underline generation process for that line. In particular,
If it is determined in step 510 that there is a line overflow, the content of the emphasis start register 212 is evaluated in step 511, and since a value of 0 or more has already been stored, the processing from step 512 onward is performed. In step 512, the underline end position is calculated using the same formula as in step 525,
The value is stored in the emphasis end register 213, and step 5
At 13, the underline is generated in the output page buffer 207 by the same method as the process of step 526. After that, in step 514, the dot number (lm) 301 of the left margin is stored in the emphasis start register in order to generate an underline in the next line. After that, the process in which an underline is generated when the typeface change end command 403 is read in the next line is performed in the same manner as in the case described above.

【0035】以上に説明したような処理の流れにより書
体変更の指令と文字コードデータに従って印刷が行われ
ていくが、最後にデータ終了を告げる情報(例えば仕事
の終りを示すコード、ファイルの終りを示すコード等)
がステップ505にて認識されると、ステップ528,
529に進み、現在作成中の出力用ページバッファ20
7の内容が空でないとき、すなわち行カウンタ210が
2以上、又は桁カウンタが1以上のときに限り同バッフ
ァを印刷し、すべての処理を終了する。
Printing is performed according to the font change command and the character code data according to the processing flow as described above, but at the end, information for indicating the end of data (for example, a code indicating the end of work, the end of a file (Indicated code, etc.)
Is recognized in step 505, step 528,
Proceeding to step 529, the output page buffer 20 currently being created.
Only when the content of 7 is not empty, that is, when the line counter 210 is 2 or more or the digit counter is 1 or more, the same buffer is printed and all the processing is finished.

【0036】この実施例においては、パターンの一例と
して英文横書きの場合を想定しているが、和文縦書きの
場合にも容易に対応できる。縦書きの場合は下線を施す
かわりに右傍線を引くことによって強調の意を表すのが
妥当であろう。又下線を引くかわりに反転文字を作り出
して印字することも可能である。更に、この実施例のよ
うに書体の使用が不可能な場合には、下線を必ず施すと
いう方法だけではなく、一度表示器を用いてその旨のメ
ッセージを出力し、それに操作員が応答することによっ
て処理するという方法もある。その際、出力装置は操作
員に対し、そのまま続行、すなわち特定書体を指定す
るコマンドの入力以前に指定されていた書体の文字パタ
ーンを発生、下線を施して実行、中止のうちのいず
れかを選択設定することをメッセージにより要求し、出
力装置はこの外部から設定された設定情報に基づいて動
作する。
In this embodiment, the case of horizontal writing in English is assumed as an example of the pattern, but the case of vertical writing in Japanese can be easily dealt with. In the case of vertical writing, it is appropriate to indicate the emphasis by drawing a right lateral line instead of underlining. It is also possible to print by creating a reverse character instead of underlining. Further, when it is impossible to use the typeface as in this embodiment, not only the method of always underlining but also outputting a message to that effect once using the display and the operator responding to it There is also a method of processing by. At that time, the output device prompts the operator to continue, that is, to generate a character pattern of the typeface specified before the input of the command to specify the specific typeface, underline it, and select either cancel or execute. The setting request is made by a message, and the output device operates based on the setting information set from the outside.

【0037】又、前記実施例における端末装置には印刷
装置を想定しているが、CRT端末装置等にも容易に対
応できる。
Further, the terminal device in the above embodiment is assumed to be a printing device, but it can be easily applied to a CRT terminal device or the like.

【0038】[0038]

【発明の効果】以上説明したように本発明によれば、書
体を指定するコマンドの入力に応じ、各書体毎に文字パ
ターンを記憶している文字パターン記憶手段を用いて、
入力される文字コードに対応する前記指定書体の文字パ
ターンを発生させて出力する際に、所望とする文字パタ
ーンの書体を指定するコマンドの入力に応じ、入力され
た文字コードに対応する前記指定書体の文字パターンを
発生できない場合、外部より設定されている設定情報に
基づいて、前記入力文字コードに対応する文字パターン
であって、前記書体を指定するコマンドの入力以前に指
定されていた書体の文字パターンを発生させるか或はこ
の書体の文字パターンに強調処理が施された文字パター
ンを発生させるかを選択実行できる。
As described above, according to the present invention, the character pattern storage means for storing the character pattern for each typeface in response to the input of the command designating the typeface is used.
When the character pattern of the specified typeface corresponding to the input character code is generated and output, the specified typeface corresponding to the input character code is input according to the input of the command that specifies the typeface of the desired character pattern. When it is not possible to generate the character pattern of, the character pattern corresponding to the input character code is based on the setting information set from the outside, and the character of the typeface specified before the command for specifying the typeface is input. Whether to generate a pattern or a character pattern in which the character pattern of this typeface is emphasized can be selected and executed.

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

【図1】 英文文字の一般的な印刷書体例を示す説明図FIG. 1 is an explanatory diagram showing an example of a general print typeface of English characters.

【図2】 この発明の一実施例である書体に関する制御
構成のブロック構成図
FIG. 2 is a block configuration diagram of a control configuration relating to a typeface which is an embodiment of the present invention.

【図3】 この発明の実施例における印刷のページレイ
アウトの説明図
FIG. 3 is an explanatory diagram of a print page layout according to the embodiment of the present invention.

【図4】 制御指令形式の説明図FIG. 4 is an explanatory diagram of a control command format.

【図5】 この発明の実施例におけるCPUの主な働き
を説明するためのフローチャート
FIG. 5 is a flow chart for explaining the main function of the CPU in the embodiment of the present invention.

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

301 左余白桁数 302 本文桁数 303 右余白桁数 304 上余白行数 305 本文行数 306 下余白行数 307 行ピットドット数 308 桁ピッチドット数 309 水平方向文字幅ドット数 310 定数 313 下線開始位置 314 下線終了位置 315 下線 501〜510,515〜519 書体発生手段 506,507,520〜524 書体選択手段 503,506,520,522,523,525〜5
27,511〜514下線発生手段
301 Left margin digit number 302 Body digit number 303 Right margin digit number 304 Top margin line number 305 Body line number 306 Bottom margin line number 307 Line pit dot number 308 Digit pitch dot number 309 Horizontal character width dot number 310 Constant 313 Underline start Position 314 Underline end position 315 Underline 501-510, 515-519 Font generating means 506, 507, 520-524 Font selecting means 503, 506, 520, 522, 523, 525-5
27,511-514 Underline generating means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 書体を指定するコマンドの入力に応じ、
各書体毎に文字パターンを記憶している文字パターン記
憶手段を用いて、入力文字コードに対応する前記指定書
体の文字パターンを発生させる装置における出力方法で
あって、 所望とする文字パターンの書体を指定するコマンドの入
力に応じ、入力される文字コードに対応する前記指定の
書体の文字パターンを発生できない場合、外部より設定
されている設定情報に基づいて、前記入力文字コードに
対応する文字パターンであって、前記書体を指定するコ
マンドの入力以前に指定されていた書体の文字パターン
を発生させるか或はこの書体の文字パターンに強調処理
が施された文字パターンを発生させるかを選択制御する
ことを特徴とする出力方法。
1. In response to input of a command designating a typeface,
An output method in a device for generating a character pattern of the specified typeface corresponding to an input character code by using a character pattern storage unit that stores a character pattern for each typeface, wherein a typeface of a desired character pattern is generated. When the character pattern of the specified typeface corresponding to the input character code cannot be generated in response to the input of the specified command, the character pattern corresponding to the input character code is used based on the setting information set from the outside. And controlling whether to generate the character pattern of the typeface specified before the input of the command designating the typeface or to generate the character pattern in which the character pattern of this typeface is emphasized. Output method characterized by.
JP5221237A 1993-09-06 1993-09-06 Output device Expired - Lifetime JP2525333B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5221237A JP2525333B2 (en) 1993-09-06 1993-09-06 Output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5221237A JP2525333B2 (en) 1993-09-06 1993-09-06 Output device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP58180670A Division JPH06100905B2 (en) 1983-09-30 1983-09-30 Pattern output method

Publications (2)

Publication Number Publication Date
JPH075868A true JPH075868A (en) 1995-01-10
JP2525333B2 JP2525333B2 (en) 1996-08-21

Family

ID=16763620

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5221237A Expired - Lifetime JP2525333B2 (en) 1993-09-06 1993-09-06 Output device

Country Status (1)

Country Link
JP (1) JP2525333B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6732825B2 (en) 2000-08-11 2004-05-11 Kabushiki Kaisha Toyota Jidoshokki Towing tractors

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55164924A (en) * 1979-06-07 1980-12-23 Sharp Corp Character processing unit
JPS57114938A (en) * 1980-11-20 1982-07-17 Ibm System of reducing alteration frequency of printing elements
JPS58100180A (en) * 1981-12-10 1983-06-14 株式会社リコー Character display system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55164924A (en) * 1979-06-07 1980-12-23 Sharp Corp Character processing unit
JPS57114938A (en) * 1980-11-20 1982-07-17 Ibm System of reducing alteration frequency of printing elements
JPS58100180A (en) * 1981-12-10 1983-06-14 株式会社リコー Character display system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6732825B2 (en) 2000-08-11 2004-05-11 Kabushiki Kaisha Toyota Jidoshokki Towing tractors

Also Published As

Publication number Publication date
JP2525333B2 (en) 1996-08-21

Similar Documents

Publication Publication Date Title
US4715006A (en) Image forming apparatus
KR860001071B1 (en) Method for editing document
JP2525333B2 (en) Output device
JPH08160934A (en) Character information processor
JPS58208865A (en) Document producing device
JPH06100905B2 (en) Pattern output method
JPS63302083A (en) Printer
JPH0583384B2 (en)
JPH03213367A (en) Multicolor printer
JPH07122787B2 (en) Continuous character generator
JPS59201870A (en) Printer
JPH03156668A (en) Document preparing device
JPH0346020A (en) Document processing system
JP2647510B2 (en) Character processing apparatus and method
JP3040624B2 (en) Pattern generator
JP2737845B2 (en) Character processing method and apparatus
JP2595086B2 (en) Output control device and ruled line generation method
JPS637963A (en) Printing apparatus
JPH0747330B2 (en) Character output device
JPS6227787A (en) Output unit
JPH03153298A (en) Document output device
JPH08153092A (en) Document processor
JPS62282381A (en) Continuous character forming device
JPH0890864A (en) Printer
JPH09309227A (en) Bar code output device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19960220