JPH0263866A - Color document printing method - Google Patents

Color document printing method

Info

Publication number
JPH0263866A
JPH0263866A JP63216838A JP21683888A JPH0263866A JP H0263866 A JPH0263866 A JP H0263866A JP 63216838 A JP63216838 A JP 63216838A JP 21683888 A JP21683888 A JP 21683888A JP H0263866 A JPH0263866 A JP H0263866A
Authority
JP
Japan
Prior art keywords
character
color
printing
enlarged
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63216838A
Other languages
Japanese (ja)
Inventor
Hiroyuki Shinohara
裕之 篠原
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP63216838A priority Critical patent/JPH0263866A/en
Publication of JPH0263866A publication Critical patent/JPH0263866A/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
    • B41J2/00Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
    • B41J2/525Arrangement for multi-colour printing, not covered by group B41J2/21, e.g. applicable to two or more kinds of printing or marking process

Abstract

PURPOSE:To print enlarged characters covering another line with a specified color by separately storing the presence/absence of a character enlarging printing and the specified printing color when character enlargement assignment is applied to a character in printing target lines. CONSTITUTION:A RAM 11 is provided with an input buffer temporarily storing a character string and a command inputted from a keyboard 16, a document memory area for document character strings, a color digit table area 31, a color line table area 32, and an enlarged character table area 33, and therein each printing color specifying code is stored in the same column as a character code. With respect to an enlarged character, in a character string only 'the presence/absence of character modification' and 'a pointer indicating a storage position where the content of modification is stored' are stored, and 'the content of modification' is stored in a storage position indicated by the 'pointer' in the character modification table provided in the RAM 11. Then, the specified printing color has been stored until the printing of all the patterns of enlarged characters is completed, whereby the replacement of a ribbon is requested when a loaded ribbon is of the color other than a specified color in the printing of the patterns. Therefore, an enlarged character covering two or more lines can be printed with a required color.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、文書文字列中に存在する印刷色指定コードに
よって文字列を印刷する際の使用インクリボンを指定し
、文書のカラー印刷を行う方法に関する。
Detailed Description of the Invention [Object of the Invention] (Industrial Application Field) The present invention specifies an ink ribbon to be used when printing a character string using a printing color specification code present in a document character string, and This invention relates to a method for color printing.

(従来の技術) 複数の行から成る文書の文字列中に印刷色を指定するコ
ードを埋め込み、このコードに続く文字列をコードによ
り指定されたインクリボンを使用して文書のカラー印刷
を行うよう構成された文書作成装置がある。この文書作
成装置では、例えば第2図に示されたようなイメージの
文書をカラ−印刷することはできなかった。尚、第2図
で「黒」 「青」 「赤」の文字が書かれいるが、ここ
に各々の色の印刷色指定コードが存在することを示して
おり、実際に印刷されるときには「黒」「青」 「赤」
の文字が書かれいる部分は空白となる。ある行を印刷す
る際に、各文字のコードが文f!F記憶部から読み出さ
れているが、読み出されたものが印刷色指定コードであ
り、現在設定されているリボンカラーがこの印刷色指定
コードで指定された色でなければ、指定色のリボンへの
交換をオペレータに促した後火に印刷色指定コードが現
れるまでの文字列を指定色で印刷するようにしている。
(Prior art) A code specifying a printing color is embedded in a character string of a document consisting of multiple lines, and the character string following this code is used to print the document in color using the ink ribbon specified by the code. There is a configured document production device. With this document creation device, it was not possible to color print a document with an image such as that shown in FIG. 2, for example. In Figure 2, the characters "black,""blue," and "red" are written, but this indicates that there are printing color designation codes for each color, and when actually printed, "black" is written. ” “Blue” “Red”
The part where the characters are written will be blank. When printing a line, the code of each character is the sentence f! The ribbon is being read from the F storage unit, but if the read color is a print color specification code and the currently set ribbon color is not the color specified by this print color specification code, the ribbon of the specified color is After prompting the operator to change the color, the character string until the print color specification code appears is printed in the specified color.

第2図の例では、1行目の文字列中、文字「C」と文字
rEJに文字拡大印刷の指定が成されている。そして、
文字「C」には青色の印刷指定、文字rEJには赤色の
印刷指定が行われている。また、文字「C」と文字rE
Jが印刷される領域は、文字拡大の結果、2行目以降に
入り込む。。さて、1行目が存在する領域を印刷すると
きは各印刷色指定コードの後に印刷対象の文字(又は拡
大文字の一部分)が出てくるため指定されたリボンで(
必要な場合には指定されたリボンに交換して)、当該文
字(又は拡大文字の一部分)の印刷を行うことができる
。しかし、印刷が行間から次行に進むと、その行には別
の印刷色指定コードが存在するため、この行に入り込ん
だ拡大文字の一部分はこの行の印刷色指定コードの影響
を受けて実際に指定された色とは別の色で印刷されてし
まう。例えば第2図の例では、拡大文字rCJには青色
、拡大文字rEJには赤色の印刷色指定がされているが
、2行目では拡大文字「C」と拡大文字rEJの部分パ
ターンの印刷領域の前に黒色の印刷色指定コードが存在
するためこの部分が「黒」で印刷されてしまう。従って
、他の行に回る拡大文字は斑模様の印刷結果しか得られ
ない。
In the example shown in FIG. 2, enlarged character printing is specified for the character "C" and the character rEJ in the character string on the first line. and,
The letter "C" is specified to be printed in blue, and the letter rEJ is specified to be printed in red. Also, the letter "C" and the letter rE
The area where J is printed extends from the second line onward as a result of character enlargement. . Now, when printing the area where the first line exists, the character to be printed (or part of the enlarged character) appears after each print color specification code, so the specified ribbon (
If necessary, the character (or a portion of the enlarged character) can be printed by replacing the ribbon with a designated ribbon. However, when printing advances from the line spacing to the next line, there is another print color specification code for that line, so the part of the enlarged character that has entered this line is affected by the print color specification code for this line and is actually The image is printed in a different color than the one specified. For example, in the example shown in Figure 2, the print color is specified as blue for the enlarged character rCJ and red for the enlarged character rEJ, but in the second line, the print area for the enlarged character "C" and the partial pattern of the enlarged character rEJ is specified. Since there is a black print color specification code before this part, this part will be printed in "black". Therefore, enlarged characters extending to other lines can only print in a mottled pattern.

(発明が解決しようとする課題) 上記したように、印刷色指定コードによって文字列の印
刷職を指定する構成とした従来の文書作成装置では、他
の行に亘るような拡大文字を所望の色で印刷できない欠
点があった。
(Problem to be Solved by the Invention) As described above, in the conventional document creation device configured to specify the printing type of a character string using a print color specification code, enlarged characters that extend over other lines are printed in a desired color. There was a drawback that it could not be printed.

本発明は、上記問題を解決するために、他の行に亘るよ
うな拡大文字の印刷を当該他の行に存在する印刷色指定
コードに影響されること無く、指定された印刷色で印刷
し得る文書のカラー印刷方法の提供を目的とする。
In order to solve the above problem, the present invention prints enlarged characters that extend over other lines in a specified print color without being affected by the print color specification code existing in the other lines. The purpose is to provide a color printing method for documents obtained.

[発明の構成] (課題を解決するための手段) 上記目的を達成するため、本発明のカラー印刷方法は、
複数の行から成る文書の文字列中に印刷色を指定するコ
ードを埋め込み、このコードに続く文字列をコードによ
り指定されたインクリボンを使用して文書のカラー印刷
を行うよう構成された文書作成装置において、前記文字
列とともに前記文字列中の文字を拡大印刷指定する文字
拡大情報を記憶し、この記憶された文字列の印刷におい
て印刷対象となる行中の文字に文字拡大情報が付されて
いるとき、文字の拡大印刷の有無と前記印刷色指定コー
ドによりこの文字に指定された印刷色とを別に記憶し、
当該行又は他の行の印刷時に、これらの行中に拡大文字
の印刷あるか否かを前記拡大印刷有無の情報から検知し
て、この拡大文字の印刷前に、現在使用されているイン
クリボンがこの拡大文字に指定された印刷色と異なると
き指定色のインクリボンへの交換を促し、拡大文字の印
刷される領域が他の行に亘るときにも、当該他の行中に
存在する印刷色指定コードに影響されること無く拡大文
字のカラー印刷を行うことを特徴としている。
[Structure of the Invention] (Means for Solving the Problem) In order to achieve the above object, the color printing method of the present invention has the following features:
Document creation configured to embed a code specifying the print color in a character string of a document consisting of multiple lines, and use the ink ribbon specified by the code to print the document in color using the character string that follows this code. In the device, character enlargement information for specifying enlarged printing of characters in the character string is stored together with the character string, and character enlargement information is attached to characters in a line to be printed in printing the stored character string. separately stores the presence or absence of enlarged printing of the character and the printing color specified for this character by the printing color designation code,
When printing this line or other lines, it is detected whether or not enlarged characters are printed in these lines based on the information on the presence or absence of enlarged printing, and the ink ribbon currently being used is checked before printing the enlarged characters. is different from the print color specified for this enlarged character, prompts you to change to an ink ribbon of the specified color, and even when the area where the enlarged character is printed extends to another line, the print color existing in that other line will be removed. The feature is that enlarged characters can be printed in color without being affected by color specification codes.

(作用) 上記構成によれば、拡大文字の印刷領域が他の行に亘っ
てもこの拡大文字に指定されている印刷色か記憶されて
いるため、当該他の行でこの拡大文字の印刷領域に来た
ときに、指定された印刷色と設定リボンの色が異なると
きに指定色リボンへの交換を促し、拡大文字を所望の色
で印刷することかできる。
(Operation) According to the above configuration, even if the print area of the enlarged character extends to other lines, the print color specified for this enlarged character is memorized, so that the print area of this enlarged character in the other line is When the specified print color and the set ribbon color are different, the user is prompted to change the ribbon to the specified color ribbon, and the enlarged characters can be printed in the desired color.

(実施例) 以下、図面を参照して本発明の一実施例を説明する。(Example) Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図はこの実施例のカラー印刷方法が実施される文書
作成装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a document creation device in which the color printing method of this embodiment is implemented.

第1図において、lOは内部に記憶されたプログラムの
命令を実行し、装置全体の制御を行うマイクロプロセッ
サ(CPU) 、11はCPUl0によりアクセスされ
、データ・プログラム等を記憶するためのRAM、12
は同じ(CPUIGによりアクセスされ、装置の制御を
司どるプログラムを記憶する領域13、文字の表示・印
刷のためのパターンを記憶する領域14、カナ漢字変換
のための辞書を記憶する領域15が設けられたROMで
ある。装置の制御を司どるプログラムとしては、入出力
機器(キーボードIG、表示器18、プリンタ23、フ
ロッピーディスク21)等のドライブルーチン、キーボ
ードIBから入力されたカナ文字列を漢字混じり文に変
換するカナ漢字変換ルーチン、後述するカラー印刷制御
処理を含む印刷制御ルーチン(オペレータにより設定さ
れた書式、フォントで文書を印刷するルーチン)等が存
在している。本発明に関係するカラー印刷制御処理以外
は当業者には周知のプログラムであるので詳細な説明を
省略する。
In FIG. 1, 10 is a microprocessor (CPU) that executes instructions of an internally stored program and controls the entire device, 11 is a RAM that is accessed by CPU 10, and is used to store data programs, etc.;
(are provided with an area 13 that is accessed by the CPUIG and stores a program for controlling the device, an area 14 that stores patterns for displaying and printing characters, and an area 15 that stores a dictionary for kana-kanji conversion). The program that controls the device includes drive routines for input/output devices (keyboard IG, display 18, printer 23, floppy disk 21), etc., and converts kana character strings input from keyboard IB to kanji. There are kana-kanji conversion routines that convert into mixed sentences, print control routines (routines that print documents in formats and fonts set by the operator) that include color print control processing (described later), etc.Color related to the present invention The program is well known to those skilled in the art except for print control processing, so detailed explanation will be omitted.

RAMIIには、キーボード16から入力される文字列
、コマンドを一時記憶する入力バッファ、文書文字列(
後述する印刷色指定コードを含む)を記憶する文書記憶
領域、カラー桁テーブル領域311カラー行テーブル領
域32、拡大文字テーブル領域33が設けられている。
RAMII stores character strings input from the keyboard 16, an input buffer that temporarily stores commands, and document character strings (
A document storage area (including a print color designation code to be described later), a color digit table area 311, a color line table area 32, and an enlarged character table area 33 are provided.

また、RAM11には各種プログラムが利用するパラメ
ータ(例えば、1行の桁数・1頁の行数という文書フオ
ーム、印刷プログラムが利用する文字フォントの種類、
行ピッチ・文字ピッチの値、文字の大きさ)も記憶され
る。
The RAM 11 also contains parameters used by various programs (for example, the document form such as the number of digits in one line and the number of lines in one page, the type of character font used by the print program,
Line pitch, character pitch values, and character size) are also stored.

各入出力装置にはCPUl0とのインターフェイス回路
が設けられている。キーボード1Bにはキーボードイン
タフェイス(KB−I F) 17、表示器1Bには表
示コントローラ(表示CNT)19と表示画面1ドツト
に1ビツトが対応し、各ドツトのオン/オフ情報を記憶
する表示用ドツトメモリ20とが設けられている。また
、FDD21にはFDDインタフェイス(FDD−I 
F)22が設けられ、プリンタ(PRT)23にはプリ
ンタインクフェイス(PRT−I F)24が設けられ
る。PRT23はインクリボンを使用するタイプのプリ
ンタ(ドツトインパクトプリンタ、又は、熱転写プリン
タ)であり、プリンタ23に装着するインク・リボンの
インク色を選択することにより所望の色で印刷を行うこ
とができる。また、プリンタに装着された印字ヘッドは
縦方向の24ドツトを一度に印刷でき、この印字ヘッド
を水平方向にスキャンすることにより1ラインの印刷を
行う。尚、文書の1行は印字フォント、文字の大きさの
設定により縦24ドツトを越えることもあるので、必ず
しも印字1ラインには対応しない。PRT−IF24に
は1ラインに印刷されるパターンが記憶されるラインバ
ッファが用意されている。このラインバッファから縦2
4ドツトずつの印字情報が読み出され印字ヘッドに供給
される。
Each input/output device is provided with an interface circuit with CPU10. The keyboard 1B has a keyboard interface (KB-IF) 17, the display 1B has a display controller (display CNT) 19, and a display in which one bit corresponds to one dot on the display screen and stores on/off information for each dot. A dot memory 20 is also provided. In addition, the FDD21 has an FDD interface (FDD-I
F) 22 is provided, and the printer (PRT) 23 is provided with a printer ink face (PRT-IF) 24. The PRT 23 is a type of printer that uses an ink ribbon (dot impact printer or thermal transfer printer), and by selecting the ink color of the ink ribbon attached to the printer 23, printing can be performed in a desired color. Further, the print head installed in the printer can print 24 dots in the vertical direction at one time, and one line is printed by scanning this print head in the horizontal direction. Note that one line of a document may exceed 24 vertical dots depending on the print font and character size settings, so it does not necessarily correspond to one print line. The PRT-IF 24 is provided with a line buffer in which a pattern to be printed on one line is stored. 2 vertically from this line buffer
Print information of four dots at a time is read out and supplied to the print head.

次に第2図乃至第6図を参照して、第1図に示した文書
作成装置で実施されるカラー印刷方法を説明する。
Next, with reference to FIGS. 2 to 6, a color printing method implemented by the document creation apparatus shown in FIG. 1 will be described.

印刷の対象となる文書は第2図のイメージを持つものと
する。即ち、1行目は「赤」印刷指定された文字rAJ
とrBJ、「青」指定された文字「C」、「黒」指定さ
れた文字rDJ、「赤」指定された文字rEJから成り
、2行目は「黒」指定された文字rFJとrGJから成
る。そして、1行目の文字rCJには縦方向に全角文字
の4倍、横方向に全角文字の4倍の拡大文字指定がなさ
れ、文字rEJには縦方向に全角文字の2倍、横方向に
全角文字の2倍の拡大文字指定がなされている。
It is assumed that the document to be printed has the image shown in FIG. In other words, the first line is the character rAJ designated to be printed in red.
and rBJ, the character "C" designated as "blue", the character rDJ designated as "black", the character rEJ designated as "red", and the second line consists of the characters rFJ and rGJ designated as "black". . Then, the character rCJ in the first line is specified as an enlarged character that is 4 times larger than the full-width character in the vertical direction and 4 times larger than the full-width character in the horizontal direction, and the character rEJ is specified as an enlarged character that is twice the size of the full-width character in the vertical direction and The character is specified to be twice as large as a full-width character.

また、この例では、全角文字rAJ  rBJ  rD
JrFJ  rGJは縦24ドツト×横24ドツトの大
きさである。また、「赤」 「青」 「黒」はこの桁位
置に印刷色指定コードが存在することを示しているが、
表示器18への表示に際しては対応する印刷色指定マー
クがこの桁位置に表示される。尚、各コードに対応する
マークパターンが文字パターン領域14に用意されてい
る。しかし、印字に際しては、印刷色指定コードが存在
する桁位置がスペースに置き換えられる。
In addition, in this example, full-width characters rAJ rBJ rD
JrFJ rGJ has a size of 24 dots vertically by 24 dots horizontally. Also, "red", "blue", and "black" indicate that a print color specification code exists at this digit position, but
When displayed on the display 18, a corresponding print color designation mark is displayed at this digit position. Note that mark patterns corresponding to each code are prepared in the character pattern area 14. However, when printing, the digit position where the print color designation code exists is replaced with a space.

第2図に示したイメージを持つ文書の文書領域への記憶
形態を第3図に示す。各印刷色指定コードは文字コード
と同列に記憶される。また、拡大文字については、文字
列中に「文字修飾の有無」と「修飾の内容を記憶した記
憶位置を示すポインタ」のみが記憶される。「修飾の内
容」はRAM11に設けられた文字修飾テーブルの前記
「ポインタ」で指定された記憶位置に記憶される。例え
ば第2図に示した例では、文字rCJの桁位置に対応し
て「Cの文字コード」とrx−y倍率(各4倍)」が、
文字rEJの桁位置に対応して「Eの文字コード」とr
x−y倍率(各2倍)」が文字修飾テーブルに記憶され
る。
FIG. 3 shows how the document having the image shown in FIG. 2 is stored in the document area. Each print color designation code is stored in the same column as the character code. For enlarged characters, only "the presence or absence of character modification" and "a pointer indicating the storage location where the content of the modification is stored" are stored in the character string. The "details of modification" are stored in the storage location specified by the "pointer" in the character modification table provided in the RAM 11. For example, in the example shown in Figure 2, the "Character code for C" and the rx-y magnification (4x each) correspond to the digit position of the character rCJ.
"Character code of E" and r corresponding to the digit position of the character rEJ
xy magnification (2x each)" is stored in the character modification table.

第5図にカラー印刷制御ルーチンのフローチャートを示
す。
FIG. 5 shows a flowchart of the color printing control routine.

印刷頁と印刷開始行nが指定されカラー印刷ルーチンが
起動される。
A print page and print start line n are specified, and a color printing routine is started.

まず、印刷対象行(n)の文字列(印刷色指定コードを
含む)が読み出され、カラー桁テーブル(第4図に示す
)と拡大文字テーブル(第6図(a)に示す)とが作成
される(ステップ51)。
First, the character string (including the print color designation code) of the line to be printed (n) is read out, and the color digit table (shown in Figure 4) and enlarged character table (shown in Figure 6 (a)) are read out. is created (step 51).

第4図に示すカラー桁テーブルは、印刷対象行のどの桁
位置にどの印刷色が指定されているかを示すテーブルで
、同じ印刷色に指定された文字を一度に印刷し、色指定
コードの度にリボン交換するよりもリボンの交換回数を
減らすために設けられるものである。拡大文字テーブル
は複数の行に亘るような拡大文字の印刷情報を記憶する
テーブルである。カラー桁テーブルは行中の印刷色指定
コードと文字コードを読み出しながら、印刷色指定コー
ド以降の桁位置に対応して、次の印刷色指定コードが来
るまで先の印刷色指定コードで指定された色のフラグを
立てていく。また、拡大文字がこの行に存在する場合に
は、この拡大文字の印字開始X座標(文字ピッチと前に
存在する文字の横幅の積算から算出できる)、印字開始
Y座漂(行が定まれば行ピッチと文字の縦の大きさから
算出てきる)、拡大文字のコード、縦横拡大倍率、指定
印刷色(印刷色指定コードにより指定されている)、印
字ゾーンの番号(現在の印刷ラインて印刷対象となる拡
大文字の部分の番号:初期状態では1)の各情報が拡大
文字テーブルに書き込まれてい(。第4図、第6図(a
)は、第2図に示した文書の1行目から印刷が開始され
たときの各テーブルの作成状態を示している。この行に
は文字rCJ  (5桁目)と文字rEJ  (9桁目
)に、各々、縦横4倍、縦横2倍の拡大文字指定がある
ので、この両者について拡大文字テーブルに拡大文字の
パターン展開のための情報(X−Y座漂、コード、倍率
、ゾーン番号)とこの文字の印刷色の情報が登録される
。今、1行目(座標y、:頁の先頭を原点とする座標)
からの印刷開始であるので、両波大文字の印刷開始位置
は初期値としてYlになっている。
The color digit table shown in Figure 4 is a table that shows which printing color is specified in which digit position of the line to be printed.Characters specified in the same printing color are printed at once, and each time the color specification code is This is provided to reduce the number of ribbon replacements compared to when the ribbon is replaced. The enlarged character table is a table that stores printing information of enlarged characters that span multiple lines. The color digit table reads out the print color specification code and character code in the row, and uses the digits specified by the previous print color specification code until the next print color specification code arrives, corresponding to the digit position after the print color specification code. Set up colored flags. In addition, if an enlarged character exists on this line, the printing start X coordinate of this enlarged character (can be calculated from the summation of the character pitch and the width of the previous character), the printing start Y position (when the line is determined), (calculated from line pitch and vertical character size), enlarged character code, vertical/horizontal enlargement ratio, specified print color (specified by print color specification code), print zone number (current print line The number of the enlarged character part to be printed: In the initial state, each piece of information (1) is written in the enlarged character table (see Figures 4 and 6 (a).
) shows the creation state of each table when printing starts from the first line of the document shown in FIG. In this line, the character rCJ (5th column) and the character rEJ (9th column) have enlarged character specifications of 4 times the height and width and 2 times the height and width, respectively, so the enlarged character pattern for both is expanded in the enlarged character table. Information for (X-Y drift, code, magnification, zone number) and information on the printing color of this character are registered. Now, the 1st line (coordinate y,: coordinates with the origin at the beginning of the page)
Since the printing starts from , the initial value of the printing start position of both wave capital letters is Yl.

次に印字位置(P y)として第1行の印字位置(この
場合はyl)がセットされる(ステップ52)。
Next, the printing position of the first line (yl in this case) is set as the printing position (Py) (step 52).

続いて、拡大文字テーブルがチエツクされ、Pyの値よ
りも小さい印字Y座漂を持つ拡大文字印刷情報が拡大文
字テーブルに存在しているか否か調べられる。このステ
ップ53は行間に拡大文字の部分パターンを印刷するた
めに用怠された検査ステップである。pyの値よりも小
さい印字Y座漂を持つ拡大文字印刷情報が拡大文字テー
ブルに存在していれば前の行との行間に印刷されなけれ
ばならない拡大文字の部分パターンが存在していること
になるのでステップ54〜ステツプ84のルーチンが実
行された後、印刷対象行の印刷を実行するためにステッ
プ85〜ステツプ119が実行される。逆に、pyO値
よりも小さい印字Y座漂を持つ拡大文字印刷情報が拡大
文字テーブルに存在しなければ、対象となる行を先に印
刷しなければならないのでステップ85〜ステツプ11
9が実行される。
Subsequently, the enlarged character table is checked to see if there is any enlarged character printing information having a print Y drift smaller than the value of Py. This step 53 is an omitted test step for printing a partial pattern of enlarged characters between lines. If there is enlarged character printing information with print Y drift smaller than the value of py in the enlarged character table, it means that there is a partial pattern of enlarged characters that must be printed between the previous line and the previous line. Therefore, after the routine from step 54 to step 84 is executed, steps 85 to 119 are executed to print the line to be printed. Conversely, if there is no enlarged character printing information in the enlarged character table that has print Y drift smaller than the pyO value, the target line must be printed first, so steps 85 to 11 are performed.
9 is executed.

令弟2図に示された1行目の印刷(座標y+)の印刷で
あり、拡大文字テーブル内の印字Y座漂の最小値もyl
であるのでステップ85に進む。
This is the printing of the first line (coordinate y+) shown in Figure 2, and the minimum value of the printing Y drift in the enlarged character table is also yl
Therefore, the process proceeds to step 85.

まず、印刷色の候補を「黒」として、カラー桁テーブル
を参照し、「黒」で印刷する桁が有るか否かを見る。そ
して、「黒」印刷の指定桁のみの文字コードをパターン
に変換して、このパターンをPRT−I F24のライ
ンバッファに格納する(ステップ85)。各文字パター
ンのラインバッファへの格納位置は、行中の拡大文字情
報、文字ピッチ、全角文字の大きさから決定される。尚
、他の桁は全てスペースとする。
First, the printing color candidate is set to "black", the color digit table is referred to, and it is determined whether there is a digit to be printed in "black". Then, the character code of only the designated digits for "black" printing is converted into a pattern, and this pattern is stored in the line buffer of the PRT-IF 24 (step 85). The storage position of each character pattern in the line buffer is determined from the enlarged character information in the line, the character pitch, and the size of full-width characters. Note that all other digits are spaces.

また、印刷色が「黒」に指定され、印字Y座漂がPy(
現在の印字位置)である拡大文字印刷情報が存在するか
否かをチエツクする(ステップ86)。あればこの拡大
文字も一度に印刷するために、拡大文字パターン(文字
拡大プログラムにより指定された倍率に拡大される)の
内、印字ゾーンに対応する部分パターンをラインバッフ
ァに展開する(ステップ87)。この部分パターンはテ
ーブル中に記憶されている印字X座標で指定されたライ
ンバッファ中の位置に記憶される。そして、展開が終了
した拡大文字の印字Y座漂の更新(24ドツト)、ゾー
ン番号の更新(+1)が行われる(ステップ88)。ゾ
ーン番号の最大値は文字の縦倍率で一意に定まるがゾー
ン番号がこの拡大文字の最大値を越えたかどうかをチエ
ツクしてこの拡大文字の全てのパターンが印刷されたこ
とを確認する(ステップ89)。ゾーン番号がこの拡大
文字の最大値を越えていれば、当該拡大文字の印刷情報
を拡大文字テーブルから削除する(ステップ90)。そ
して、ステップ91に進む。
In addition, the printing color is specified as "black", and the printing Y position is Py(
It is checked whether there is enlarged character printing information at the current printing position (step 86). In order to print these enlarged characters at once, if any, out of the enlarged character pattern (enlarged to the magnification specified by the character enlargement program), a partial pattern corresponding to the print zone is expanded into the line buffer (step 87). . This partial pattern is stored at the position in the line buffer specified by the print X coordinate stored in the table. Then, the print Y position of the enlarged character that has been expanded is updated (24 dots) and the zone number is updated (+1) (step 88). Although the maximum value of the zone number is uniquely determined by the vertical magnification of the character, it is checked whether the zone number exceeds the maximum value of this enlarged character to confirm that all patterns of this enlarged character have been printed (step 89 ). If the zone number exceeds the maximum value of this enlarged character, the print information of the enlarged character is deleted from the enlarged character table (step 90). Then, the process proceeds to step 91.

一方、前述のステップ86でこの印字ラインに拡大文字
の印刷が無いと判断されれば、ステップ86から直接ス
テップ91に飛ぶ。第2図の1行目の場合は、ステップ
85、ステップ86、ステップ91と進んで、文字rD
Jのパターンのみがラインバッファに展開された状態と
なる。
On the other hand, if it is determined in step 86 that there is no enlarged character printed on this print line, the process jumps directly from step 86 to step 91. In the case of the first line in FIG. 2, the process proceeds to step 85, step 86, step 91, and
Only the pattern J is developed in the line buffer.

ステップ91ではラインバッファに文字パターンの展開
が有ったかどうかがチエツクされる。行には「黒」の指
定が無い場合もあるのでこのステップが存在する。ライ
ンバッファにパターンの展開がなければ、次に同一行の
「青」印刷を試みるためにステップ96に進む。パター
ンの展開が有ればステップ92〜ステツプ95の各ステ
ップを踏んで、PRT23によりラインバッファ内のパ
ターン(この場合は文字rDJのパターン)のみを印刷
する。ステップ92〜ステツプ94はリボン交換が必要
か否かのチエツク(ステップ92)と指定リボンへの交
換をオペレータに促すためのメツセージを表示するステ
ップ(ステップ93)である。また、印刷制御ルーチン
は、ステップ94(ステップ105、ステップ116、
ステップ59、ステップ68、ステップ77も同じ)の
ように、リボン交換をオペレータに促し、リボン交換が
成される度に現在装着されているはずのリボン状態を記
憶している。尚、図示されていないか、ステップ94で
は、「実行キー」の入力でオペレータから「リボン交換
OKJの応答が返る。
In step 91, it is checked whether the line buffer has a character pattern developed. This step exists because there are cases in which a line does not have a "black" designation. If no pattern is developed in the line buffer, the process proceeds to step 96 to try printing "blue" on the same line. If a pattern has been developed, steps 92 to 95 are performed, and the PRT 23 prints only the pattern in the line buffer (in this case, the pattern of the character rDJ). Steps 92 to 94 are steps for checking whether ribbon replacement is necessary (step 92) and displaying a message to prompt the operator to replace the ribbon with a designated ribbon (step 93). Further, the print control routine includes steps 94 (step 105, step 116,
The same applies to steps 59, 68, and 77), the operator is prompted to replace the ribbon, and each time the ribbon is replaced, the state of the currently installed ribbon is memorized. In step 94, which is not shown, upon inputting the "execute key", the operator returns a response of "ribbon replacement OKJ".

と「リボンが交換されたもの(オペレータは別のリボン
を装着するかもしれないが)」とみなし、メツセージで
表示した色が現在の装着リボン色であるとしてシ己憶さ
れている。このステップ92〜ステツプ94(ステップ
103〜105、ステップ114〜116、ステップ5
7〜59、ステップ66〜68、ステップ75〜77も
同じ)は無用なインクリボンの交換を避けるために設け
られたステップである。ここまでのステップで1行目の
文字rDJのみが印刷されたことになる。
The ribbon is assumed to have been replaced (although the operator may attach a different ribbon), and the color displayed in the message is remembered as the currently attached ribbon color. Steps 92 to 94 (Steps 103 to 105, Steps 114 to 116, Step 5
7 to 59, steps 66 to 68, and steps 75 to 77) are steps provided to avoid unnecessary ink ribbon replacement. In the steps up to this point, only the characters rDJ on the first line have been printed.

続いて、ステップ96〜106で印刷色の候補を「青」
として同じ動作が繰り返される。ここで、文字「C」が
「青」指定であり、印字Y座漂もpyに等しいからステ
ップ97.98.99.100.102と進み、縦4倍
、横4倍文字「C」のパターンの第1ゾーンのパターン
(第2図のylとy2で挾まれた部分のパターン)がラ
インバッファに展開される。そして、拡大文字テーブル
の内容が第6図(a)の状態から第6図(b)の状態に
変わる。即ち、拡大文字rCJの印刷情報中、印字Y座
漂がY 2 (y + + 24)になり、印字ゾーン
が1から2に変わる。そしてステップ104.105で
、印字リボンの「青」リボンへの変更が行われ、ステッ
プ106で拡大文字「C」の第1ゾーンの青色リボンで
の印刷が行われる。
Next, in steps 96 to 106, the printing color candidate is set to "blue".
The same operation is repeated. Here, since the character "C" is specified as "blue" and the printing Y drift is also equal to py, proceed to steps 97, 98, 99, 100, and 102, and the pattern of the character "C" is 4 times the height and 4 times the width. The pattern of the first zone (the pattern between yl and y2 in FIG. 2) is developed in the line buffer. Then, the contents of the enlarged character table change from the state shown in FIG. 6(a) to the state shown in FIG. 6(b). That is, in the print information of the enlarged character rCJ, the print Y drift becomes Y 2 (y + + 24), and the print zone changes from 1 to 2. Then, in steps 104 and 105, the printing ribbon is changed to a "blue" ribbon, and in step 106, the enlarged character "C" is printed with the blue ribbon in the first zone.

そして、今度は印刷色の候補を「赤」にして同じ動作が
繰り返される。尚、「青」についてバタ−ンの展開がな
いときも印刷色の候補「赤」のステップ(ステップ10
7)に進む(ステップ102)。
Then, this time, the same operation is repeated with the print color candidate set to "red". Note that even when there is no pattern development for "blue", the step (step 10) for the printing color candidate "red" is performed.
7) (step 102).

印刷色候補「赤」のステップはステップ107〜ステツ
プ117に示されているが、これらステップの実行によ
って、「赤」に指定された文字「A」 「B」、拡大文
字rEJの第1ゾーンの印刷が行われる。また、拡大文
字テーブルの内容は、第6図(b)から第6図(C)に
変わる。
The steps for the printing color candidate "red" are shown in steps 107 to 117, and by executing these steps, the characters "A" and "B" designated as "red" and the first zone of the enlarged character rEJ are Printing is done. Further, the contents of the enlarged character table change from FIG. 6(b) to FIG. 6(C).

以上のステップの実行により第2図のylとy2で挾ま
れた1行目のカラー印刷が完了したことになる。そして
、印刷対象行を1行更新しくステップ118)、頁エン
ドでなければステップ51に戻る。
By executing the above steps, color printing of the first line sandwiched between yl and y2 in FIG. 2 is completed. Then, the line to be printed is updated by one line (step 118), and if the page is not at the end, the process returns to step 51.

ここで印刷対象行は第2行になり、第2行のカラー桁テ
ーブルが作成される。また、第2行に拡大文字の指定が
あれば第6図(c)の状態のテーブルに新たな拡大文字
印刷情報が追加されていく。
Here, the line to be printed becomes the second line, and a color digit table for the second line is created. Further, if enlarged characters are specified in the second line, new enlarged character printing information is added to the table in the state shown in FIG. 6(c).

そして、ステップ52でPyの値がy3に設定される。Then, in step 52, the value of Py is set to y3.

続いてステップ53で、今回はy2の印字Y座標を持つ
拡大文字印刷情報が存在するから(第6図(C)参照)
ステップ54〜ステツプ84の実行に進む。これらステ
ップ54〜ステツプ84の実行によりy2から(Y2 
+24− Y4 )までの行間の拡大文字の部分パター
ンの印刷が行われる。まず、ステップ54でpyが印刷
対象となる拡大文字のY座標値(この場合Y2)に変更
された後、ステップ54〜63、ステップ64〜72、
ステップ73〜81で、各々「黒」 「青」「赤」を印
°刷色候補として同じ動作が繰り返される。第2図に示
す例では「黒」指定の拡大文字が存在しないので、ステ
ップ56からステップ64に進む。そして、拡大文字「
C」の第2ゾーン(Y2とy4に挾まれた部分)のパタ
ーンがラインバッファの所定位置(印字X座標で指定)
に展開され(ステップ64)、「青」リボン装着の後(
ステップ66〜68)、当該パターンが印刷される(ス
テップ69)。そして、拡大文字rCJについて第6図
(C)の状態から第6図(d)の状態への印刷情報の更
新が行われる(ステップ70)。続いて、拡大文字「C
」の全パターンが印刷されたかどうかゾーン番号により
チエツクが行われる(ステップ71)。全パターンの印
刷が終わっていればこの拡大文字の印刷情報がテーブル
から削除される(ステップ72)。この後、印刷色候補
を「赤」にしたステップ73以降のルーチンの実行に移
る。
Next, in step 53, this time there is enlarged character printing information with the printing Y coordinate of y2 (see Figure 6(C)).
The process proceeds to steps 54 to 84. By executing these steps 54 to 84, from y2 to (Y2
A partial pattern of enlarged characters with line spacing up to +24-Y4) is printed. First, in step 54, py is changed to the Y coordinate value of the enlarged character to be printed (Y2 in this case), and then steps 54 to 63, steps 64 to 72,
In steps 73 to 81, the same operation is repeated using "black,""blue," and "red" as printing color candidates. In the example shown in FIG. 2, since there is no enlarged character designated as "black", the process advances from step 56 to step 64. And the enlarged text “
The pattern of the second zone (the part between Y2 and y4) of "C" is at the specified position of the line buffer (specified by the printing X coordinate)
(step 64), and after attaching the "blue" ribbon (
Steps 66-68), and the pattern is printed (Step 69). Then, the print information for the enlarged character rCJ is updated from the state shown in FIG. 6(C) to the state shown in FIG. 6(d) (step 70). Next, the enlarged letter "C"
A check is made based on the zone number to see if all patterns of `` have been printed (step 71). If all the patterns have been printed, the print information of this enlarged character is deleted from the table (step 72). Thereafter, the routine proceeds to step 73 and subsequent steps in which the print color candidate is set to "red".

このステップ73以降のルーチンの実行により今度は「
赤」に指定された拡大文字rEJの第2ゾーン(Y2と
y4に挾まれた部分)のパターンが「赤」リボンで印刷
される。また、ステップ79の実行により、拡大文字テ
ーブルの内容は第6図(d)の状態から第6図(e)の
状態に移る。
By executing the routine from step 73 onwards, "
The pattern of the second zone (portion sandwiched between Y2 and y4) of the enlarged character rEJ designated as "Red" is printed with the "Red" ribbon. Further, by executing step 79, the contents of the enlarged character table shift from the state shown in FIG. 6(d) to the state shown in FIG. 6(e).

以上のルーチンの実行により行間の拡大文字パターンが
指定色で印刷されたことになるる。続いて、pyの値が
24ドツト進められ(ステップ82)、まだ行間のパタ
ーン印刷が残っているかチエツクされ(ステップ83)
、印刷対象行の印刷を先に行わなければならない(Py
>第9行の印字位置)ならば、pyを第9行の印字位置
(この場合はY3)にして、ステップ85の実行に移行
する。尚、ステップ83で更に行間にパターンの印刷が
有るとすれば、ステップ54からの動作が繰り返される
By executing the above routine, the enlarged character pattern between lines is printed in the specified color. Subsequently, the value of py is advanced by 24 dots (step 82), and it is checked whether there is still pattern printing between lines (step 83).
, the line to be printed must be printed first (Py
>9th line printing position), py is set to the 9th line printing position (Y3 in this case) and the process moves to step 85. If it is determined in step 83 that a pattern is to be printed between lines, the operations from step 54 are repeated.

第2図に示した印刷例では、ここでステップ85に進み
、先に作成されているカラー桁テーブルに従って、2行
目の文字[・FJ  rGjのみが「黒」リボンで印刷
される。そして、再度ステップ51に戻り(印刷対象行
は更新されている)、ステップ53でステップ54に分
岐して拡大文字rcJ  rEJの第3ゾーン(第2図
のy4とy5とで挾まれた部分)のパターンが拡大文字
テーブルに登録されたカラーで順次印刷される。拡大文
字に「黒」の指定は無いの「青」していの拡大文字「C
」の第3ゾーンパターンが先に「青」リボンで印刷され
、拡大文字テーブルの内容は第6図(e)の状態から第
6図(e)の状態に変わる。
In the printing example shown in FIG. 2, the process now proceeds to step 85, in which only the characters [.FJ rGj in the second line are printed with a "black" ribbon according to the previously created color digit table. Then, the process returns to step 51 again (the line to be printed has been updated), and in step 53, the process branches to step 54, and the third zone of the enlarged characters rcJ rEJ (the part sandwiched between y4 and y5 in FIG. 2) patterns are printed sequentially in the colors registered in the enlarged character table. There is no specification of "black" for the enlarged character, but the enlarged character "C" is "blue".
" is first printed with the "blue" ribbon, and the contents of the enlarged character table change from the state shown in FIG. 6(e) to the state shown in FIG. 6(e).

以降の動作は前述したとおりである。The subsequent operations are as described above.

以上の説明で分かるように、拡大文字のバターン全ての
印刷が終了するまで拡大文字の印刷情報としてこの文字
に指定された印刷色を記憶しており、このパターンの印
刷時に装着リボンが指定色と異なる場合リボンの交換を
促すようになって°いるため、複数行に亘って印刷領域
を閉める拡大文字パターンも、別の行に存在する印刷色
指定コードに影響されることなく所望の色でカラー印刷
を行うことができる。
As you can see from the above explanation, the printing color specified for this character is stored as print information for the enlarged character until all enlarged character patterns are printed, and when printing this pattern, the attached ribbon changes to the specified color. If the ribbon is different, you will be prompted to replace the ribbon, so even enlarged character patterns that close the print area over multiple lines can be colored in the desired color without being affected by print color specification codes that exist in other lines. Can print.

[発明の効果] 以上のように、本発明のカラー印刷方法によれば、文字
列中に印刷色指定コードを埋め込んで、印刷色指定コー
ドに基づいて指定色のリボンの装着を促し、印刷色指定
コードに続く文字列を指定色のリボンで印刷するもので
も、各行に存在する印刷色指定コードに影響されること
無く複数行に亘る拡大文字を所望の色で印刷することが
できる。
[Effects of the Invention] As described above, according to the color printing method of the present invention, a printing color specification code is embedded in a character string, prompting the attachment of a ribbon of a specified color based on the printing color specification code, and printing color Even when a character string following a designated code is printed with a ribbon of a designated color, enlarged characters spanning multiple lines can be printed in a desired color without being affected by the printing color designation code existing in each line.

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

第1図は一実施例のカラー印刷方法を実施した文書作成
装置の回路構成を示すブロック図であり、第2図は実施
例のカラー印刷方法で印刷される文書の一例を示す図、
第3図は文書情報の記憶形態を示す図、第4図は実施例
のカラー印刷方法で利用されるカラー桁テーブルの内容
を示す図、第5図は実施例のカラー印刷方法を実施した
カラー印刷制御プログラムの動作を示すフローチャート
、TS6図は実施例のカラー印刷方法で利用される拡大
文字情報テーブルの内容と印刷に伴う内容の推移を示す
図である。 31・・・カラー桁テーブル 33・・・拡大文字情報テーブル領域 出願人代理人 弁理士 鈴 江 武 彦第 図 第 図 桁 拡大文字テーブル 第 図(a) 第 図(b) 第 1m(c) 第 図(d) 第 図(e) 手続ネ市−装置 昭和63年10月7日 ’4?I X’l庁長官 占 1)文 毅 殿1、IS
件の表示 1!1願昭63−216838号 2、発明の名称 文木のカラー印刷方法 3 、 ?di JEをづる者 1件との関係 特許出願人 (307)株式会社 東 芝 4、代理人 東京都千代田区霞が関3丁目7番2号Oa[ビル6゜ 7゜ 補正の対象 明細占全文 補正の内容 願書に最初に添附した明18書の浄書
FIG. 1 is a block diagram showing a circuit configuration of a document creation device implementing a color printing method according to an embodiment, and FIG. 2 is a diagram showing an example of a document printed using a color printing method according to an embodiment.
FIG. 3 is a diagram showing the storage format of document information, FIG. 4 is a diagram showing the contents of a color digit table used in the color printing method of the embodiment, and FIG. 5 is a diagram showing the color printing method of the embodiment. FIG. TS6, a flowchart showing the operation of the print control program, is a diagram showing the contents of the enlarged character information table used in the color printing method of the embodiment and the transition of the contents accompanying printing. 31...Color digit table 33...Enlarged character information table area Applicant's agent Patent attorney Takehiko Suzue Figure Figure Digit enlarged character table Figure (a) Figure (b) Figure 1m (c) Figure (d) Figure (e) Procedure Ne City - Equipment October 7, 1988 '4? I
Display of the matter 1!1 Application No. 1983-216838 2, Title of invention Bunki color printing method 3, ? di Relationship with one person creating JE Patent applicant (307) Toshiba Corporation 4, agent 3-7-2 Kasumigaseki, Chiyoda-ku, Tokyo Oa [Building 6°7° Contents Engraving of the Mei 18 book originally attached to the application form

Claims (1)

【特許請求の範囲】 複数の行から成る文書の文字列中に印刷色を指定するコ
ードを埋め込み、このコードに続く文字列をコードによ
り指定されたインクリボンを使用して文書のカラー印刷
を行うよう構成された文書作成装置において、 前記文字列とともに前記文字列中の文字を拡大印刷指定
する文字拡大情報を記憶し、 この記憶された文字列の印刷において印刷対象となる行
中の文字に文字拡大情報が付されているとき、文字の拡
大印刷の有無と前記印刷色指定コードによりこの文字に
指定された印刷色とを別に記憶し、 当該行又は他の行の印刷時に、これらの行中に拡大文字
の印刷あるか否かを前記拡大印刷有無の情報から検知し
て、この拡大文字の印刷前に、現在使用されているイン
クリボンがこの拡大文字に指定された印刷色と異なると
き指定色のインクリボンへの交換を促し、 拡大文字の印刷される領域が他の行に亘るときにも、当
該他の行中に存在する印刷色指定コードに影響されるこ
と無く拡大文字のカラー印刷を行うことを特徴とした文
書のカラー印刷方法。
[Claims] A code specifying a print color is embedded in a character string of a document consisting of multiple lines, and the character string following this code is printed in color using an ink ribbon specified by the code. In a document creation device configured as shown in FIG. When enlarged information is attached, the presence or absence of enlarged printing of a character and the print color specified for this character by the print color specification code are separately stored, and when printing this line or other lines, the print color in these lines is Detects whether or not enlarged characters are printed on the page from the information on the presence or absence of enlarged printing, and specifies if the ink ribbon currently being used is different from the printing color specified for this enlarged character before printing this enlarged character. Encourages changing to a colored ink ribbon, and even when the area where enlarged characters are printed extends to other lines, the enlarged characters can be printed in color without being affected by the print color specification code existing in the other lines. A color printing method for documents characterized by performing the following steps.
JP63216838A 1988-08-31 1988-08-31 Color document printing method Pending JPH0263866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63216838A JPH0263866A (en) 1988-08-31 1988-08-31 Color document printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63216838A JPH0263866A (en) 1988-08-31 1988-08-31 Color document printing method

Publications (1)

Publication Number Publication Date
JPH0263866A true JPH0263866A (en) 1990-03-05

Family

ID=16694695

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63216838A Pending JPH0263866A (en) 1988-08-31 1988-08-31 Color document printing method

Country Status (1)

Country Link
JP (1) JPH0263866A (en)

Similar Documents

Publication Publication Date Title
JPH08160934A (en) Character information processor
JPH0263866A (en) Color document printing method
JP2692063B2 (en) Document processing device
JPH0113117B2 (en)
JPH03156668A (en) Document preparing device
JPH0346020A (en) Document processing system
JPH089245B2 (en) Character processor
JPS605470B2 (en) typesetting system
JPH05165455A (en) Character display processing method
JPS61286177A (en) Document-forming device
JP2928512B2 (en) Document processing apparatus and method
JP3634387B2 (en) Document processing method and apparatus
JPH0239985A (en) Color printing method
JPH02159669A (en) Document preparing device
JPS61286157A (en) Document former
JPH02101569A (en) Character processor
JPS63233461A (en) Document processor
JPS63118973A (en) Japanese word processor
JPH0363956B2 (en)
JPH01286869A (en) Character processing device
JPS61286156A (en) Document former
JPS62296190A (en) Rule type display
JPS61161570A (en) Japanese-language word processor device
JPS63209850A (en) Development display method for character dot pattern
JPS62108287A (en) Document generator with line copying function