JP3292393B2 - Document processing device - Google Patents

Document processing device

Info

Publication number
JP3292393B2
JP3292393B2 JP01704193A JP1704193A JP3292393B2 JP 3292393 B2 JP3292393 B2 JP 3292393B2 JP 01704193 A JP01704193 A JP 01704193A JP 1704193 A JP1704193 A JP 1704193A JP 3292393 B2 JP3292393 B2 JP 3292393B2
Authority
JP
Japan
Prior art keywords
character
data
characters
size
baseline
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP01704193A
Other languages
Japanese (ja)
Other versions
JPH06198966A (en
Inventor
章二 桜木
英生 上野
明彦 丹羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP01704193A priority Critical patent/JP3292393B2/en
Publication of JPH06198966A publication Critical patent/JPH06198966A/en
Application granted granted Critical
Publication of JP3292393B2 publication Critical patent/JP3292393B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、文書処理装置に関し、
特に外字の下部付近に外字用基線を設定し、外字とアル
ファベット文字とをこれら基線を合致させて印字するよ
うにしたものに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus,
In particular, the present invention relates to a method in which a base line for an external character is set near the lower part of the external character, and the external character and the alphabetic character are printed by matching the base line.

【0002】[0002]

【従来の技術】従来、日本語用や英語用のワードプロセ
ッサなどにおいては、キーボードや複数行分の文書のデ
ータを表示可能な大型のディスプレイやドット方式の印
字機構などを基本的に備え、文書処理機能に加えて、ユ
ーザーが要望する文字や形象やイラスト文字などの外字
パターンを、パターン登録画面において表示された小型
のポインタ又はカーソルを移動させることで、所定の構
成ドット数(例えば、48ドット又は56ドット)から
なるドットパターンの大きさで自由に描画でき、しかも
フロッピーディスクなどの記憶媒体に記憶するようにし
た外字パターン登録機能を付加したものが実用に供され
ている。従って、印字フォーマットに基いて、外字を例
えば、アルファベット文字列からなる文書の任意の位置
に挿入させて印字可能になっている。その結果、大文字
のアルファベットや外字はアルファベット文字に設定し
た基線(ベースライン)上に配置されるとともに、
「g」や「j」や「p」などの小文字のアルファベット
はこの基線の下側に食み出して印字される。
2. Description of the Related Art Conventionally, a word processor for Japanese or English basically includes a keyboard, a large display capable of displaying document data of a plurality of lines, a dot-type printing mechanism, and the like. In addition to the function, by moving a small pointer or cursor displayed on the pattern registration screen, a predetermined number of constituent dots (for example, 48 dots or Practical ones are provided which can be freely drawn in the size of a dot pattern consisting of (56 dots) and have an external character pattern registration function for storing in a storage medium such as a floppy disk. Therefore, based on the print format, external characters can be inserted into an arbitrary position of a document composed of, for example, an alphabetical character string and printed. As a result, while uppercase alphabets and external characters are placed on the base line (baseline) set for alphabetic characters,
Lowercase alphabets such as "g", "j" and "p" protrude below this base line and are printed.

【0003】[0003]

【発明が解決しようとする課題】従来のワードプロセッ
サなどにおいて、アルファベット文字列からなる英語の
文書中に外字を混在させて印字する場合には、多数の小
文字のアルファベットと外字との組合せが殆どとなる。
ところで、小文字のアルファベットや外字は基線上に配
置されるとともに、「g」や「j」などの小文字のアル
ファベットはこの基線の下側に食み出して配置されるの
で、基線より上側に印字される外字や「a」や「b」や
「c」などの多数の小文字に混じって基線の下側に食み
出す小文字が印字されることから、印字した小文字のア
ルファベットや外字からなる文字列の基線に対するバラ
ンスが悪くなるという問題がある。
In a conventional word processor or the like, when an external character is mixed and printed in an English document composed of an alphabet character string, a combination of a large number of lowercase alphabets and an external character is almost used. .
By the way, lower-case alphabets and external characters are arranged on the base line, and lower-case alphabets such as "g" and "j" protrude below the base line, so that they are printed above the base line. The lowercase letters that protrude below the base line are printed together with a large number of lowercase letters such as “a”, “b”, and “c”. There is a problem that the balance with respect to the baseline is deteriorated.

【0004】本発明の目的は、アルファベット文字のう
ち特に小文字と外字とをバランス良く印字し得るような
文書処理装置を提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to provide a document processing apparatus capable of printing, in a well-balanced manner, lowercase letters and external characters of alphabetic characters.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明の請求項1に係る文書処理装置は、図1の機
能ブロック図に示すように、和文文字やアルファベット
文字や記号及び種々の指令を入力する為の入力手段と、
文字や記号のドットパターンデータ又は文字フォントデ
ータを有するキャラクタジェネレータと、印字媒体にド
ットパターンで印字する印字ヘッドを含む印字手段と、
外字登録モードにおいて作成された文字や形象である外
字のドットパターンデータを記憶する登録データ記憶手
段と、入力された文字や記号及び登録データ記憶手段か
ら読出した外字のコードデータを記憶する入力データメ
モリと、印字用に展開されたドットパターンデータを記
憶する印字バッファと、入力データメモリのコードデー
タに基いてキャラクタジェネレータ及び登録データ記憶
手段のデータを読出して指定された文字サイズとなるド
ットパターンデータを、印字バッファに展開するデータ
展開制御手段とを備えた文書処理装置において、外字の
下部付近のレベルの位置に、外字の高さをアルファベッ
ト文字の基線の上下両側の高さの比と同一比で区分する
仮想的な外字用基線を設定する基線設定手段と、前記
線設定手段で設定された外字用基線とアルファベット文
字用基線とが同一レベルとなるように、データ展開制御
手段を制御する基線制御手段とを備えたものである。
[MEANS FOR SOLVING THE PROBLEMS] To achieve the above object
Further , as shown in the functional block diagram of FIG. 1, the document processing device according to claim 1 of the present invention includes input means for inputting Japanese characters, alphabetic characters and symbols, and various commands,
A character generator having dot pattern data or character font data of characters and symbols, and a printing unit including a print head for printing in a dot pattern on a print medium,
Registered data storage means for storing character and pattern dot patterns data of external characters created in the external character registration mode, and input data memory for storing input characters and symbols and code data of external characters read from the registered data storage means And a print buffer for storing dot pattern data developed for printing, and reading dot pattern data having a designated character size by reading data from a character generator and registered data storage means based on code data in an input data memory. In a document processing apparatus having data expansion control means for expanding data in a print buffer, the height of the external character is set at a level near the lower part of the external character at the same ratio as the height ratio of the upper and lower sides of the base line of the alphabet character. a base line setting means for setting a virtual private character for baseline for partitioning, in the group <br/> line setting means As a baseline for the constant has been external character for baseline and alphabetic characters are the same level, in which a base line control means for controlling the data expansion control means.

【0006】本発明の請求項2に係る文書処理装置にお
いては、さらに、印字する文字サイズを個々に指定可能
なサイズ指定手段を備え、前記基線制御手段は、入力デ
ータメモリに記憶されたアルファベット文字の文字サイ
ズの大小に係わらず、基線設定手段で設定された外字用
基線とアルファベット文字用基線とが同一レベルとなる
ように、前記データ展開制御手段を制御することを特徴
とする。
According to a second aspect of the present invention, there is provided a document processing apparatus.
In addition, the character size to be printed can be specified individually
Size specifying means, and the base line control means
Character size stored in the data memory
For external characters set by the baseline setting means, regardless of the size of the
Baseline and alphabet character base line are at the same level
Controlling the data expansion control means as described above.
And

【0007】また、本発明の請求項3に係る文書処理装
置においては、前記入力データメモリに記憶された文字
若しくは記号の複数のサイズデータに基づいて最大のサ
イズを検索し、その最大サイズを構成する縦ドット数か
ら基線位置を演算する基線位置演算手段と、前記基線位
置演算手段により演算された基線位置に基づいて、前記
印字バッファ上の展開基準位置を演算する展開基準位置
演算手段とを備え、前記基線制御手段が、前記展開基準
位置において、前記基線設定手段で設定された外字用基
線とアルファベット文字用基線とが同一レベルとなるよ
うに、前記データ展開制御手段を制御することを特徴と
する。
A document processing apparatus according to claim 3 of the present invention.
The character stored in the input data memory.
Or the maximum support based on multiple size data for the symbol.
Size, search for the number of vertical dots that make up the maximum size
Baseline position calculating means for calculating a base line position from the base line position;
Based on the baseline position calculated by the position calculating means,
Expansion reference position for calculating the expansion reference position on the print buffer
Computing means, and wherein the baseline control means
In the position, the external character base set by the base line setting means.
The line and the baseline for alphabetic characters are at the same level
Controlling the data expansion control means as described above.
I do.

【0008】本発明の請求項4に係る文書処理装置にお
いては、請求項3の構成に加えて、前記展開基準位置演
算手段は、最大サイズの縦ドット数を印字バッファ上に
おける前記最大サイズの高さ方向の上側余白と下側余白
とが均等になるように配置したときに、前記基準位置に
対応する印字バッファ上の位置を展開基準位置とするこ
とを特徴とする。
According to a fourth aspect of the present invention, there is provided the document processing apparatus.
In addition, in addition to the configuration of claim 3, the deployment reference position
The calculating means stores the maximum number of vertical dots in the print buffer.
The upper and lower margins of the maximum size in the height direction
When they are arranged so that
The corresponding position on the print buffer is used as the development reference position.
And features.

【0009】[0009]

【作用】本発明に係る文書処理装置においては、登録デ
ータ記憶手段は、外字登録モードにおいて作成された文
字や形象である外字のドットパターンデータを記憶し、
入力データメモリは入力されたアルファベット文字や記
号及び登録データ記憶手段から読出した外字のコードデ
ータを記憶する。そして、基線設定手段は、外字の下部
付近のレベルの位置に、外字の高さをアルファベット文
字の基線の上下両側の高さの比と同一比で区分する仮想
的な外字用基線を設定するので、基線制御手段は、基線
設定手段で設定された外字用基線とアルファベット文字
用基線とが同一レベルとなるように、データ展開制御手
段を制御する。その結果、データ展開制御手段は、入力
データメモリのコードデータに基いて、アルファベット
文字のコードデータに対してキャラクタジェネレータの
データを読出して、アルファベット文字のドットパター
ンデータを印字バッファに展開する一方、外字のコード
データに対して登録データ記憶手段のデータを読出して
外字のドットパターンデータを、その外字用基線とアル
ファベット文字用基線とが同一レベルとなるように、印
字バッファに展開する。
In the document processing apparatus according to the present invention , the registration data storage means stores dot pattern data of an external character which is a character or a figure created in the external character registration mode,
The input data memory stores the input alphabetic characters and symbols and the code data of the external characters read from the registered data storage means. Then, the base line setting means sets a virtual external character base line at the level position near the lower part of the external character at the same ratio as the ratio of the height of the upper and lower sides of the base line of the alphabet character to the height of the external character. , the baseline control means, so that the external character for baseline and the baseline for alphabetic characters set by the base line setting means is the same level, and controls the data expansion control means. As a result, data expansion control means, based on the code data of the input data memory, to read the data of the character generator with respect alphabetic letter code data, while developing the dot pattern data of the alphabetic characters in the print buffer, read to <br/> external character dot pattern data to data of the registration data storage means with respect to external character code data, as its the external character for baseline and alphabetic characters for baseline become the same level, developed in the print buffer I do.

【0010】このように入力データメモリから読出した
アルファベット文字や外字のコードデータについて、ア
ルファベット文字のドットパターンデータを印字バッフ
ァに展開する一方、外字のドットパターンデータを、そ
の下部付近に設定した外字用基線とアルファベット文字
用基線とが同一レベルとなるように、印字バッファに展
開するので、外字が小文字のアルファベットに対して幾
分下側に印字されることになり、特に「g」や「j」な
どの基線の下側に食み出した小文字のアルファベットを
含む小文字のアルファベットと外字とをバランス良く印
字することができる。
With respect to the code data of the alphabet character and the external character read from the input data memory, the dot pattern data of the alphabet character is developed in the print buffer, and the dot pattern data of the external character is set in the vicinity of the lower part for the external character. Since the base line and the base line for alphabetic characters are developed in the print buffer so as to be at the same level, the external characters are printed somewhat lower than the lowercase alphabet, and in particular, "g" and "j" The lower-case alphabet including the lower-case alphabet protruding below the base line can be printed in a well-balanced manner.

【0011】[0011]

【実施例】以下、本発明の実施例について、図面に基い
て説明する。本実施例は、漢字やひらがなやアルファベ
ット文字などの多数のキャラクタ及び作成した外字パタ
ーンを印字用テープ(印字媒体としてのテープ)に印字
可能な和文・英文用のテープ印刷装置に本発明を適用し
た場合のものである。図2に示すように、テープ印刷装
置1の本体フレーム2の前部にはキーボード3が配設さ
れ、キーボード3の後方で本体フレーム2内にはサーマ
ルヘッド13を有する印字機構PMが配設され、またキ
ーボード3の後方には文字や記号を2行分表示可能な小
型の液晶ディスプレイ22が設けられている。
Embodiments of the present invention will be described below with reference to the drawings. In the present embodiment, the present invention is applied to a tape printer for Japanese / English text which can print a large number of characters such as kanji, hiragana and alphabetic characters and a created external character pattern on a printing tape (tape as a printing medium). Is the case. As shown in FIG. 2, a keyboard 3 is provided at a front portion of the main body frame 2 of the tape printer 1, and a printing mechanism PM having a thermal head 13 is provided in the main body frame 2 behind the keyboard 3. In addition, a small liquid crystal display 22 capable of displaying characters and symbols for two lines is provided behind the keyboard 3.

【0012】キーボード3には、アルファベット文字や
ひらがなや数字や記号などの文字コードを複数種類発生
可能な文字キー、スペースキー、リターンキー、ディス
プレイ22に表示されたカーソルKを上下左右方向に夫
々移動させる為のカーソル移動キー、無変換キー、変換
キー、文字や形象などの外字パターンを作成して登録す
る外字キー、作成した外字パターンを拡大又は縮小指示
する拡大縮小キー、印字する文字のサイズを指定する文
字サイズキー、文字サイズの異なる文字列をその最大文
字の基線、上端、下端に択一的に揃える為の揃え位置設
定キー、カーソル移動キーなどのキーと組み合わせて異
なる機能を実行させる為の機能キー、各種の処理中にお
ける設定などを確定する実行キー、印字を実行する印字
キー、印字用テープ5をテープ送りする為のテープ送り
キー、電源をON・OFFする為の電源キーなどが設け
られている。
On the keyboard 3, a character key capable of generating a plurality of types of character codes such as alphabetic characters, hiragana, numbers and symbols, a space key, a return key, and a cursor K displayed on the display 22 are moved up, down, left and right, respectively. Cursor keys for converting, non-conversion keys, conversion keys, external character keys for creating and registering external character patterns such as characters and figures, enlargement / reduction keys for enlarging or reducing the created external character patterns, and the size of characters to be printed. To execute different functions in combination with keys such as the specified character size key, alignment position setting key for selectively aligning character strings with different character sizes to the base line, top and bottom of the maximum character, and cursor movement key Function keys, execution keys to confirm settings during various processes, print keys to execute printing, printing 5 tape feed key for tape feed, such as a power key for ON · OFF is provided the power.

【0013】次に、図3に基いて印字機構PMについて
簡単に説明すると、矩形状のテープ収納カセットCSが
着脱可能に装着されており、このテープ収納カセットC
Sには、透明なフィルムからなる印字用テープ5が巻装
されたテープスプール6と、インクリボン7が巻装され
たリボン供給スプール8と、このインクリボン7を巻取
る巻取りスプール9と、印字用テープ5と同一幅を有す
る両面テープ10が剥離紙を外側に貼着させた状態で巻
装された供給スプール11と、これら印字用テープ5と
両面テープ10とを接合させる接合ローラ12とが回転
自在に設けられている。ここで、前記テープ収納カセッ
トCSとして、印字用テープ5のテープ幅を6ミリ、9
ミリ、12ミリ、18ミリ及び24ミリとする5種類の
専用のものが準備されている。
Next, the printing mechanism PM will be briefly described with reference to FIG. 3. A rectangular tape storage cassette CS is detachably mounted.
S includes a tape spool 6 around which a printing tape 5 made of a transparent film is wound, a ribbon supply spool 8 around which an ink ribbon 7 is wound, and a winding spool 9 around which the ink ribbon 7 is wound. A supply spool 11 on which a double-sided tape 10 having the same width as the printing tape 5 is wound with a release paper adhered to the outside, a joining roller 12 for joining the printing tape 5 and the double-sided tape 10; Are provided rotatably. Here, as the tape storage cassette CS, the tape width of the printing tape 5 is 6 mm, 9
Five types of dedicated ones are prepared: mm, 12 mm, 18 mm and 24 mm.

【0014】印字用テープ5とインクリボン7とが重な
る位置には、サーマルヘッド13が立設され、これら印
字用テープ5とインクリボン7とをサーマルヘッド13
に押圧するプラテンローラ14と、印字用テープ5と両
面テープ10とを接合ローラ12に押圧する送りローラ
15とは支持体16に回転可能に枢支されている。更
に、このサーマルヘッド13には、128個の発熱素子
が密接状に上下方向に列設されている。
At a position where the printing tape 5 and the ink ribbon 7 overlap, a thermal head 13 is provided upright.
And a feed roller 15 for pressing the printing tape 5 and the double-sided tape 10 against the joining roller 12 are rotatably supported by a support 16. Further, in the thermal head 13, 128 heating elements are vertically arranged in close contact.

【0015】従って、テープ送りモータ24(図4参
照)の所定回転方向への駆動により接合ローラ12と巻
取りスプール9とが所定回転方向に夫々同期して駆動さ
れながら発熱素子に通電されたとき、印字用テープ5上
には複数のドット列により文字や記号が印字され、しか
も印字後の印字用テープ5はその印字面に両面テープ1
0を接合した状態でテープ送り方向Aにテープ送りされ
る。尚、印字機構PMの詳細については、特開平2─1
06555号公報を参照。
Accordingly, when the joining roller 12 and the take-up spool 9 are driven by the tape feed motor 24 (see FIG. 4) in a predetermined rotation direction while being driven synchronously in the predetermined rotation direction, the heating element is energized. Characters and symbols are printed on the printing tape 5 by a plurality of dot rows, and the printed printing tape 5 is printed on a double-sided tape 1 on its printing surface.
The tape is fed in the tape feeding direction A in a state where 0 is joined. The details of the printing mechanism PM are described in JP-A-2-1-1.
See No. 06555.

【0016】次に、テープ印刷装置1の制御系は、図4
のブロック図に示すように構成されている。キーボード
3と、液晶ディスプレイ(LCD)22に表示データを
出力する為の表示用RAMを有するディスプレイコント
ローラ(LCDC)23と、サーマルヘッド13を駆動
する為の駆動回路25と、前記印字用テープ5やインク
リボン7や両面テープ10を巻装した複数のスプールと
各種ローラとを回転駆動させるテープ送りモータ24を
駆動する為の駆動回路26と、警告用ブザー20の為の
駆動回路21とは制御装置Cの入出力インターフェース
27に夫々接続されている。制御装置Cは、CPU29
と、このCPU29にデータバスなどのバス28を介し
て接続された入出力インターフェース27、CGROM
30、ROM(キャラクタジェネレータに相当する)3
1、ROM32及びRAM40とから構成されている。
Next, the control system of the tape printer 1 is shown in FIG.
Is configured as shown in the block diagram of FIG. A keyboard 3; a display controller (LCDC) 23 having a display RAM for outputting display data to a liquid crystal display (LCD) 22; a drive circuit 25 for driving the thermal head 13; A drive circuit 26 for driving a tape feed motor 24 for rotatingly driving a plurality of spools around which the ink ribbon 7 and the double-sided tape 10 are wound and various rollers, and a drive circuit 21 for the buzzer 20 for warning are a control device. C are connected to the input / output interface 27 of C, respectively. The control device C is a CPU 29
An input / output interface 27 connected to the CPU 29 via a bus 28 such as a data bus;
30, ROM (corresponding to a character generator) 3
1, a ROM 32 and a RAM 40.

【0017】CGROM(パターンデータメモリ)30
には、多数のキャラクタの各々に関して、表示の為のド
ットパターンデータがコードデータに対応させて格納さ
れている。ROM(アウトラインフォントデータメモ
リ)31には、キャラクタを印字する為に、アルファベ
ット文字やひらがなやカタカナや数字や漢字などの多数
のキャラクタの各々に関して、キャラクタの輪郭線を規
定する輪郭線データ(アウトラインフォントデータ)が
書体(ゴシック系書体、明朝系書体など)毎に分類され
コードデータに対応させて格納されている。但し、これ
ら多数のアウトラインフォントデータの各々には、印字
イメージの縦方向の寸法と横方向の寸法のデータが格納
されている。従って、漢字やひらがななどの和文文字に
関しては、略同一の縦寸法と横寸法とが記憶されている
が、アルファベット文字に関しては、縦寸法と文字特有
の横寸法とが記憶されている。
CGROM (pattern data memory) 30
Stores dot pattern data for display in association with code data for each of a large number of characters. A ROM (outline font data memory) 31 stores outline data (outline font data) for defining a character outline for each of a large number of characters such as alphabetic characters, hiragana, katakana, numbers, and kanji in order to print the characters. Data) are classified by typeface (Gothic typeface, Mincho typeface, etc.) and stored in correspondence with the code data. However, in each of these many outline font data, data of the vertical dimension and the horizontal dimension of the print image is stored. Therefore, for Japanese characters such as kanji and hiragana, substantially the same vertical and horizontal dimensions are stored, but for alphabetic characters, the vertical and horizontal dimensions specific to the character are stored.

【0018】ROM32には、キーボード3から入力さ
れた文字や数字や記号などのキャラクタのコードデータ
に対応させてディスプレイコントローラ23を制御する
表示駆動制御プログラム、テキストメモリ41の各コー
ドデータに対応するアウトラインフォントデータから印
字用のドットパターンデータに変換処理して印字バッフ
ァ46に展開するイメージ展開処理制御プログラム、印
字バッファ46のデータを順次読出してサーマルヘッド
13やテープ送りモータ24を駆動する印字駆動制御プ
ログラム、後述のテープ印字制御の制御プログラムなど
が格納されている。更に、ROM32には、文字や形象
などを作成する為に、図5に示すように、「SS」や
「S」や「M」・・・などのサイズと外字パターンの大
きさを示す「ドット数」とを対応させたサイズ・ドット
数対応テーブルTBが格納されている。尚、この「サイ
ズ」には、テープ幅(6ミリ、9ミリ、・・・)がサイ
ズとして含まれており、これらのテープ幅に応じた最適
なサイズの「ドット数」が対応付けられている。
The ROM 32 has a display drive control program for controlling the display controller 23 in correspondence with character code data such as characters, numbers and symbols input from the keyboard 3, and outlines corresponding to each code data in the text memory 41. An image development processing control program for converting font data into dot pattern data for printing and developing the data into a print buffer 46, and a print drive control program for sequentially reading data from the print buffer 46 and driving the thermal head 13 and the tape feed motor 24 And a control program for tape printing control described later. Further, in the ROM 32, as shown in FIG. 5, a size such as "SS", "S", "M", etc. and a "dot" The table stores a size / dot number correspondence table TB corresponding to “number”. The “size” includes the tape width (6 mm, 9 mm,...) As a size, and the “dot number” of the optimal size corresponding to the tape width is associated with the “size”. I have.

【0019】RAM40のテキストメモリ(入力データ
メモリに相当する)41には、キーボード3から入力さ
れた文字や記号のコードデータ又は登録された外字パタ
ーンのコードデータが文書データとして格納される。登
録データメモリ42には、作成されたイラスト文字やマ
ークなどの外字のドットパターンデータとそのサイズを
示すサイズポインタ値が格納される。ポインタメモリ4
3には、前記サイズ・ドット数対応テーブルTBに格納
されたサイズとドット数とを対応させた12個のサイズ
項目の先頭アドレスを指示するサイズポインタPTと、
テキストメモリ41のアドレスを指示するテキストポイ
ンタXPのポインタ値が格納される。尚、テキストメモ
リ41や登録データメモリ42は、電池でバックアッフ
されており、テープ印刷装置1の電源が切られてもその
格納内容が保持されている。
A text memory (corresponding to an input data memory) 41 of the RAM 40 stores code data of characters and symbols input from the keyboard 3 or code data of registered external character patterns as document data. The registration data memory 42 stores the created dot pattern data of external characters, such as illustration characters and marks, and a size pointer value indicating the size thereof. Pointer memory 4
3 includes a size pointer PT indicating a head address of 12 size items corresponding to the size and the number of dots stored in the size / dot number correspondence table TB;
The pointer value of the text pointer XP indicating the address of the text memory 41 is stored. The text memory 41 and the registered data memory 42 are backed up by a battery, and their stored contents are retained even when the power of the tape printer 1 is turned off.

【0020】作成用データバッファ44には、作成され
た外字のドットパターンデータが一時的に格納される。
サイズメモリ45には、印字時における最大サイズのデ
ータとイメージ展開時のサイズデータとが格納される。
印字バッファ46には、イメージ展開された複数の文字
や記号のドットパターンデータや登録データメモリ42
から読出された外字のドットパターンデータが格納され
る。従って、印字バッファ46は、図16に示すよう
に、縦方向に128ドットで横方向に多数文字分のドッ
ト数からなる大きさのバッファである。フラグメモリ4
7には、揃え位置として基線位置が設定されたときにセ
ット(データが「1」)される基線フラグKFと、上端
位置が設定されたときにセットされる上端フラグTF
と、下端位置が設定されたときにモットされる下端フラ
グBFとのフラグデータが夫々格納される。
The created data buffer 44 temporarily stores the created external character dot pattern data.
The size memory 45 stores the maximum size data at the time of printing and the size data at the time of image development.
In the print buffer 46, dot pattern data of a plurality of characters and symbols developed as images and the registered data memory 42 are stored.
Is stored. Therefore, as shown in FIG. 16, the print buffer 46 is a buffer having a size of 128 dots in the vertical direction and a number of dots for many characters in the horizontal direction. Flag memory 4
7, a base line flag KF set when the base line position is set as the alignment position (data is "1") and an upper end flag TF set when the upper end position is set
And the lower end flag BF, which is motted when the lower end position is set, is stored.

【0021】次に、テープ印刷装置1の制御装置Cで行
なわれるテープ印字制御のルーチンについて、図6〜図
10に示すフローチャートに基いて説明する。尚、図中
符号Si(i=10、11、12・・・・)は各ステッ
プである。電源キー操作により電源が投入されると、こ
のテープ印字制御が開始され、先ず印字機構PMやメモ
リ41・42以外の各メモリ43〜47をクリアし、印
字機構PMを初期化するなどの初期設定が実行され、文
書データ入力モードが設定されるのに伴って、ディスプ
レイ22に文書を入力する為の文書入力画面が表示され
る(S10)。例えば、図11に示すように、ディスプ
レイ22には、その上段行に「文書作成/編集」が表示
されるとともに、下段行に入力した文字や記号が12文
字分表示可能な文書入力画面が表示される。
Next, a routine of tape printing control performed by the control device C of the tape printing apparatus 1 will be described with reference to flowcharts shown in FIGS. Note that reference numerals Si (i = 10, 11, 12,...) In the figure indicate each step. When the power is turned on by operating the power key, the tape print control is started, and first, the printing mechanism PM and the memories 43 to 47 other than the memories 41 and 42 are cleared, and initial settings such as initializing the printing mechanism PM are performed. Is executed, and the document input screen for inputting a document is displayed on the display 22 with the setting of the document data input mode (S10). For example, as shown in FIG. 11, the display 22 displays “document creation / editing” in the upper row and a document input screen in which characters and symbols input in the lower row can be displayed for 12 characters. Is done.

【0022】次に、アルファベット文字やひらがなやカ
タカナなどの文字キーや数字キーに加えて変換キー、無
変換キーなどの文書作成キーが操作されたときには(S
11・S12:Yes)、入力されたひらがなを漢字コ
ードに変換して、又は入力されたひらがな、カタカナ、
数字コードやアルファベット文字コードを無変換で、カ
ーソルKの表示位置に対応するテキストポインタXTで
指示するテキストメモリ41内のアドレスに格納する文
書データ入力・編集処理制御が実行され(S13)、変
換された漢字や無変換のひらがな、カタカナ、数字やア
ルファベット文字がディスプレイ22のカーソルKで指
示する位置に順次表示され(S14)、S11に戻る。
Next, when a document creation key such as a conversion key or a non-conversion key is operated in addition to a character key or a numerical key such as an alphabet character, a hiragana or a katakana (S
11 · S12: Yes), converting the input hiragana to a kanji code, or input hiragana, katakana,
The document data input / edit processing control for storing the numeric code and the alphabetic character code without conversion at the address in the text memory 41 indicated by the text pointer XT corresponding to the display position of the cursor K is executed (S13) and converted. The kanji, unconverted hiragana, katakana, numbers and alphabetic characters are sequentially displayed at the position indicated by the cursor K on the display 22 (S14), and the process returns to S11.

【0023】次に、文書作成中に文字サイズキーが操作
されたときには(S11:Yes、S12:No、S1
5:Yes)、文字サイズ設定処理制御が実行され(S
16)、S11に戻る。この文字サイズ設定処理制御に
ついて簡単に説明すると、先ずディスプレイ22にサイ
ズ設定画面が表示される。この設定画面には、前記サイ
ズ・ドット数対応テーブルTBに基いて、「SS」、
「S」、「M」、・・・などのサイズ名が表示されるの
で、所望のサイズ名をカーソルKで指示して指定する。
その結果、サイズデータがテキストメモリ41に格納さ
れるとともに、サイズ設定を示すサイズマークSM
「▽」が文書入力画面に表示される。例えば、図11に
示すように、先ずサイズ「LL」の設定を示すサイズマ
ークSM「▽」に続いて入力した大文字のアルファベッ
ト「A」が文書入力画面に表示される。
Next, when the character size key is operated during document creation (S11: Yes, S12: No, S1
5: Yes), character size setting processing control is executed (S
16) Return to S11. To briefly explain the control of the character size setting process, first, a size setting screen is displayed on the display 22. On this setting screen, based on the size / dot number correspondence table TB, “SS”,
Since size names such as “S”, “M”,... Are displayed, a desired size name is designated and designated by the cursor K.
As a result, the size data is stored in the text memory 41, and the size mark SM indicating the size setting is set.
“▽” is displayed on the document input screen. For example, as shown in FIG. 11, first, an uppercase alphabet "A" input after a size mark SM "$" indicating the setting of the size "LL" is displayed on the document input screen.

【0024】次に、揃え位置設定キーが操作されたとき
には(S11:Yes、S12・S15:No、S1
7:Yes)、揃え位置設定処理制御(図7参照)が実
行される(S18)。この制御が開始されると、先ず文
書入力画面の表示を中止して揃え位置設定画面がディス
プレイ22に表示される(S25)。例えば、図12に
示すように、揃え位置設定画面がディスプレイ22に表
示され、この設定画面においては、選択番号「1」とし
て「基線」、選択番号「2」として「上端」、選択番号
「3」として「下端」が設定されている。そして、数字
キー「1」が操作されたときには(S26・S27:Y
es)、基線フラグKFがセットされ且つ上端フラグT
Fと下端フラグBFとが夫々リセットされ(S28)、
この制御を終了して、テープ印字制御のS11にリター
ンする。
Next, when the alignment position setting key is operated (S11: Yes, S12 / S15: No, S1
7: Yes), the alignment position setting process control (see FIG. 7) is executed (S18). When this control is started, first, the display of the document input screen is stopped, and the alignment position setting screen is displayed on the display 22 (S25). For example, as shown in FIG. 12, an alignment position setting screen is displayed on the display 22. In this setting screen, the selection number "1" is "base line", the selection number "2" is "top", and the selection number "3". "Is set to" lower end ". Then, when the numeric key "1" is operated (S26 / S27: Y
es), the base line flag KF is set and the upper end flag T
F and the lower end flag BF are respectively reset (S28),
This control ends, and the process returns to S11 of the tape print control.

【0025】しかし、数字キー「2」が操作されたとき
には(S26:Yes、S27:No、S29:Ye
s)、上端フラグTFがセットされ且つ基線フラグKF
と下端フラグBFとが夫々リセットされ(S30)、ま
た数字キー「3」が操作されたときには(S26:Ye
s、S27・S29:No、S31:Yes)、下端フ
ラグBFがセットされ且つ基線フラグKFと上端フラグ
TFとが夫々リセットされ(S32)、同様にS11に
リターンする。但し、数字キー「1」〜「3」以外のキ
ーが操作されたときには(S26:Yes、S27・S
29・S31:No)、警告用ブザー20が鳴動され
(S33)、S26に戻る。
However, when the numeric key "2" is operated (S26: Yes, S27: No, S29: Yes)
s) The upper end flag TF is set and the base line flag KF
And the lower end flag BF are respectively reset (S30), and when the numeric key "3" is operated (S26: Ye
s, S27 / S29: No, S31: Yes), the lower end flag BF is set, and the base line flag KF and the upper end flag TF are respectively reset (S32), and similarly, the process returns to S11. However, when a key other than the numeric keys "1" to "3" is operated (S26: Yes, S27.S
29. S31: No), the buzzer 20 for warning is sounded (S33), and the process returns to S26.

【0026】次に、文書作成中に外字キーが操作された
ときには(S11:Yes、S12・S15・S17:
No、S19:Yes)、外字登録モードが設定されて
外字パターン作成・登録処理制御(図8参照)が実行さ
れる(S20)。この制御が開始されると、先ず登録デ
ータメモリ42を検索し、登録用ドットパターンデータ
が存在しないときには、サイズポインタPTに、デフォ
ルトのサイズ項目の先頭アドレスαがセットされ、この
デフォルトのサイズの為の登録データ入力画面がディス
プレイ22に表示され、或いは登録用ドットパターンデ
ータが存在するときには、そのドットパターンデータに
付随して格納されているサイズポインタ値がサイズポイ
ンタPTにセットされ、このサイズの為の登録データ入
力画面が表示される(S35)。例えば、登録用ドット
パターンデータが存在しないときには、図5に示すよう
に、サイズポインタ値PTにデフォルトのサイズ項目
「M」の先頭アドレスαがセットされ、図13に示すよ
うに、サイズ「M」で32ドット数とするデフォルトサ
イズの為の登録データ入力画面がディスプレイ22に表
示される。
Next, when an external character key is operated during document creation (S11: Yes, S12 / S15 / S17:
No, S19: Yes), the external character registration mode is set, and the external character pattern creation / registration process control (see FIG. 8) is executed (S20). When this control is started, first, the registration data memory 42 is searched. If there is no registration dot pattern data, the start address α of the default size item is set in the size pointer PT. Is displayed on the display 22, or when there is registration dot pattern data, the size pointer value stored along with the dot pattern data is set in the size pointer PT, and Is displayed (S35). For example, when the registration dot pattern data does not exist, the start address α of the default size item “M” is set in the size pointer value PT as shown in FIG. 5, and as shown in FIG. The registration data input screen for the default size of 32 dots is displayed on the display 22.

【0027】ここで、ディスプレイ22の左端部には、
外字パターン表示領域Dが設けられている。この外字パ
ターン表示領域Dにおいては、縦方向には32ドット分
表示可能で、横方向には現在のサイズのドット数分だけ
その表示領域Dが拡大又は縮小することで表示可能にな
っている。従って、ディスプレイ22の右端部の上側に
は、現在のサイズのドットパターンの大きさに対する外
字パターン表示領域Dの表示範囲を反転表示により示す
表示範囲指示エリアEが設けられている。即ち、サイズ
「M」のときには、縦・横共に32ドットなので、その
サイズ「M」の外字ドットパターンの全体が一括して表
示可能である。ここで、登録データメモリ42に登録用
ドットパターンデータが存在するときには、そのドット
パターンデータがこの外字パターン表示領域Dに表示さ
れる。尚、符号kは、外字パターンを描画する為のドッ
トカーソルである。
Here, at the left end of the display 22,
An external character pattern display area D is provided. In the external character pattern display area D, 32 dots can be displayed in the vertical direction, and the display area D can be displayed in the horizontal direction by expanding or reducing the display area D by the number of dots of the current size. Therefore, above the right end of the display 22, there is provided a display range instruction area E which indicates the display range of the external character pattern display area D with respect to the size of the dot pattern of the current size in reverse video. That is, in the case of the size "M", since both the vertical and horizontal dots are 32 dots, the entire external character dot pattern of the size "M" can be displayed collectively. Here, when the registration dot pattern data exists in the registration data memory 42, the dot pattern data is displayed in the external character pattern display area D. The symbol k is a dot cursor for drawing a character pattern.

【0028】次に、拡大縮小キーが操作されたときには
(S36・S37:Yes)、パターンデータ拡大・縮
小処理制御が実行され(S38)、その後S35が実行
される。この拡大・縮小処理制御について簡単に説明す
ると、カーソル下移動キーの操作でサイズポインタ値P
Tが1つインクリメントされて、サイズ・ドット数対応
テーブルTBの次のサイズ項目が指示され、またカーソ
ル上移動キーの操作でサイズポインタ値PTが1つデク
リメントされて、前のサイズ項目が指示され、このサイ
ズに拡大処理又は縮小処理された登録用ドットパターン
が作成用データバッファ44内に格納され、この登録用
ドットパターンがS35において、サイズポインタ値P
Tに基づいたサイズの外字パターン表示領域Dに表示さ
れる。
Next, when the enlargement / reduction key is operated (S36 / S37: Yes), pattern data enlargement / reduction processing control is executed (S38), and then S35 is executed. The enlargement / reduction processing control will be briefly described.
T is incremented by one, and the next size item in the size / dot number correspondence table TB is designated, and the size pointer value PT is decremented by one by operating the cursor up key, and the previous size item is designated. The registration dot pattern enlarged or reduced to this size is stored in the creation data buffer 44, and the registration dot pattern is stored in the size pointer value P in S35.
The external character pattern display area D having a size based on T is displayed.

【0029】次に、カーソル移動キーやシフトキー或い
は機能キーなどのパターン作成キーが操作されたときに
は(S36:Yes、S37:No、S39:Ye
s)、描画処理制御が実行され(S40)、S36に戻
る。この描画処理制御について簡単に説明すると、カー
ソル移動キーが操作されたときには、そのカーソル移動
キーの種類に応じた方向にドットカーソルkが移動さ
れ、シフトキーや機能キーが操作されたときには、ドッ
トデータを「1」又は「0」とする描画データが作成さ
れ、この描画データが作成用データバッファ44に格納
されるとともに、外字パターン表示領域Dに表示され
る。例えば、図13に示すように、イラスト文字である
外字G1のドットパターンが描画されたときには、この
外字G1のドットパターンデータが作成用データバッフ
ァ44に格納されるとともに、外字パターン表示領域D
に表示される。
Next, when a pattern creation key such as a cursor movement key, a shift key or a function key is operated (S36: Yes, S37: No, S39: Ye)
s) The drawing process control is executed (S40), and the process returns to S36. Briefly describing this drawing process control, when the cursor movement key is operated, the dot cursor k is moved in a direction corresponding to the type of the cursor movement key, and when the shift key or function key is operated, the dot data is deleted. The drawing data of “1” or “0” is created, and this drawing data is stored in the creation data buffer 44 and displayed in the external character pattern display area D. For example, as shown in FIG. 13, when a dot pattern of an external character G1 which is an illustration character is drawn, the dot pattern data of the external character G1 is stored in the creation data buffer 44 and the external character pattern display area D
Will be displayed.

【0030】次に、実行キーが操作されたときには(S
36:Yes、S37・S39:No、S41:Ye
s)、作成用データバッファ44の登録用ドットパター
ンデータを、そのサイズポインタ値を付随させて図示外
の登録番号設定制御で指定された登録番号に対応させて
登録データメモリ42に格納するパターンデータ登録処
理が実行され(S42)、この制御を終了してテープ印
字制御のS11にリターンする。しかし、キャンセルキ
ーが操作されたときには(S36:Yes、S37・S
39・S41:No、S43:Yes)、作成用データ
バッファ44の登録用ドットパターンデータをクリアす
るなどの終了処理が実行され(S44)、同様にテープ
印字制御のS11にリターンする。
Next, when the execution key is operated (S
36: Yes, S37 / S39: No, S41: Yes
s) Pattern data for storing the registration dot pattern data in the creation data buffer 44 in the registration data memory 42 in association with the size pointer value and the registration number specified by the registration number setting control (not shown). A registration process is executed (S42), this control ends, and the process returns to S11 of the tape print control. However, when the cancel key is operated (S36: Yes, S37.S
39 · S41: No, S43: Yes), and end processing such as clearing the registration dot pattern data in the creation data buffer 44 is executed (S44), and similarly, the process returns to S11 of the tape print control.

【0031】次に、印字キーが操作されたときには(S
11:Yes、S12・S15・S17・S19:N
o、S21:Yes)、印字処理制御(図9参照)が実
行される(S22)。ここで、この印字処理制御が開始
されるときに、テキストメモリ41には、図15に示す
ように、サイズデータSZ(LL)、アルファベット文
字「A」、「g」、外字「*1」、外字「*2」、サイ
ズデータSZ(S)、文字「B」のコードデータがこの
順序に格納されており、ディスプレイ22の文書入力画
面には図14に示すように、これら文字や外字が表示さ
れているものとする。
Next, when the print key is operated (S
11: Yes, S12, S15, S17, S19: N
o, S21: Yes), print processing control (see FIG. 9) is executed (S22). Here, when this print processing control is started, as shown in FIG. 15, the size data SZ (LL), alphabetic characters "A", "g", external characters "* 1", Code data of the external character “* 2”, size data SZ (S), and character “B” are stored in this order, and these characters and external characters are displayed on the document input screen of the display 22 as shown in FIG. It is assumed that

【0032】この制御が開始されると、先ずテキストポ
インタXPにテキストメモリ41の先頭アドレスがセッ
トされ(S50)、展開基準位置演算処理制御(図10
参照)が実行される(S51)。この制御が開始される
と、先ずテキストメモリ41内に格納された複数のサイ
ズデータに基いて、最大サイズが検索され、その最大サ
イズデータがサイズメモリ45に格納される(S7
0)。そして、その最大サイズの縦ドット数Dにおける
基線位置KLが演算される(S71)。即ち、アルファ
ベット文字は、基線(ベースライン)に対して上側高さ
H1 と下側高さH2との比は一般的に「7:1」の比率
に設定されており、この高さ比率に基いて、最大サイズ
「LL」の縦ドット数Dにおける基線位置KLが演算さ
れる。
When this control is started, first, the head address of the text memory 41 is set to the text pointer XP (S50), and the development reference position calculation processing control (FIG. 10)
Reference) is performed (S51). When this control is started, first, the maximum size is searched based on the plurality of size data stored in the text memory 41, and the maximum size data is stored in the size memory 45 (S7).
0). Then, the base line position KL at the maximum number of vertical dots D is calculated (S71). That is, the ratio of the upper height H1 to the lower height H2 with respect to the base line (base line) is generally set to a ratio of "7: 1". Then, the base line position KL at the vertical dot number D of the maximum size “LL” is calculated.

【0033】そして、印字バッファ46において、この
最大サイズの縦ドット数Dを、その上側余白TYと下側
余白BYとが均等になるように配置したときに、この基
線位置KLに対応する印字バッファ46上の展開基準位
置TKが演算され(S72)、この制御を終了して、印
字処理制御のS52にリターンする。即ち、テキストメ
モリ41内の3種類のサイズ「LL」、「M」、「S」
のうちの最大サイズが「LL」で、その縦ドット数Dが
64ドットなので、図16に示すように、前記高さ比率
に基いて、この縦ドット数D(64ドット)における基
線位置KLと上側高さH1 (56ドット)と下側高さH
2 (8ドット)とが夫々求められ、上側余白TYと下側
余白BYとを夫々32ドットとするときの基線位置KL
に対応する印字バッファ46の下端からの展開基準位置
TK(40ドット)が求められる。但し、この最大サイ
ズの縦ドット数Dの上端を上端位置TLとし、その下端
を下端位置BLとする。
In the print buffer 46, when the number D of vertical dots of the maximum size is arranged so that the upper margin TY and the lower margin BY are equal, the print buffer corresponding to this base line position KL The development reference position TK on 46 is calculated (S72), this control ends, and the process returns to S52 of the print processing control. That is, three types of sizes “LL”, “M”, and “S” in the text memory 41
Is the maximum size of “LL” and the number of vertical dots D is 64 dots. Therefore, as shown in FIG. 16, based on the height ratio, the base line position KL for the number of vertical dots D (64 dots) Upper height H1 (56 dots) and lower height H
2 (8 dots) are obtained, and the base line position KL when the upper margin TY and the lower margin BY are each 32 dots.
Is obtained from the lower end of the print buffer 46 corresponding to the dot pattern TK (40 dots). However, the upper end of the number D of vertical dots of the maximum size is the upper end position TL, and the lower end is the lower end position BL.

【0034】次に、テキストポインタXPで指示するコ
ードデータが読出され、このコードデータがサイズデー
タのときには(S53:No)、このサイズデータがサ
イズメモリ45に格納される(S67)とともに、テキ
ストポインタXPが1つインクリメントされ(S5
9)、S52に戻る。一方、読出したコードデータが外
字コードのときには(S53・S54:Yes)、外字
パターンの下部付近に設ける仮想的な外字用基線位置K
Lが演算される(S55)。例えば、図17に示すよう
に、サイズ「M」で登録した外字G1のドットパターン
データにおいて、前記高さ比率と縦ドット数D(32ド
ット)とに基いて、基線位置KLと上側高さH(28ド
ット)と下側高さh(4ドット)とが夫々求められる。
Next, the code data pointed by the text pointer XP is read out. If the code data is size data (S53: No), the size data is stored in the size memory 45 (S67) and the text pointer is read. XP is incremented by one (S5
9) Return to S52. On the other hand, when the read code data is an external character code (S53 / S54: Yes), a virtual external character base line position K provided near the lower part of the external character pattern
L is calculated (S55). For example, as shown in FIG. 17, in the dot pattern data of the external character G1 registered with the size “M”, the base line position KL and the upper height H are determined based on the height ratio and the number of vertical dots D (32 dots). (28 dots) and the lower height h (4 dots) are obtained.

【0035】次に、この文字が最大サイズのとき(S5
6:Yes)、及び最大サイズでないが基線フラグKF
がセットされていて基線揃えのときには(S56:N
o、S60:Yes)、この外字用基線位置KLを展開
基準位置TKに合わせて印字バッファ46にドットパタ
ーンデータが展開される(S57)。そして、文書デー
タがまだテキストメモリ41内に存在するときには(S
58:Yes)、テキストポインタXPが1つインクリ
メントされ(S59)、S52に戻る。ところで、読出
したコードデータが外字以外のアルファベット文字コー
ドのときには(S53:Yes、S54:No)、S5
5をスキップしてS56以降が実行される。
Next, when this character has the maximum size (S5)
6: Yes), and although not the maximum size, the baseline flag KF
Is set and the baseline is aligned (S56: N
o, S60: Yes), the dot pattern data is developed in the print buffer 46 by matching the external character base line position KL with the development reference position TK (S57). When the document data still exists in the text memory 41 (S
58: Yes), the text pointer XP is incremented by one (S59), and the process returns to S52. By the way, when the read code data is an alphabet character code other than the external character (S53: Yes, S54: No), S5
Step S56 and subsequent steps are executed by skipping step 5.

【0036】例えば、図18に示すように、先ずサイズ
「LL」のアルファベット文字「A」、「g」が、それ
らの基線位置KLを展開基準位置TKに合わせて印字バ
ッファ46にドットパターン展開され、続いてサイズ
「M」の外字G1、G2のドットパターンデータがそれ
らの外字用基線位置KLを展開基準位置TKに合わせて
印字バッファ46に展開され、更にサイズ「S」のアル
ファベット文字「B」が、その基線位置KLを展開基準
位置TKに合わせて同様にドットパターン展開される。
For example, as shown in FIG. 18, first, alphabetic characters "A" and "g" having a size "LL" are dot-pattern-developed in the print buffer 46 with their base line position KL aligned with the development reference position TK. Then, the dot pattern data of the external characters G1 and G2 of the size "M" are developed in the print buffer 46 with their external character base line position KL aligned with the development reference position TK, and the alphabetic characters "B" of the size "S" are further developed. Are developed in the same manner by adjusting the base line position KL to the development reference position TK.

【0037】次に、読出した文字が最大サイズでなく且
つ上端フラグTFがセットされていて上端揃えのときに
は(S56・S60:No、S61:Yes)、基線位
置移動量ΔDとして、最大サイズの縦ドット数Dの上側
高さH1 から読出した文字の上側高さHを差し引いたド
ット数で求められ(S62)、読出した文字の基線位置
KLを展開基準位置TKに対してこの基線位置移動量Δ
Dだけ上側に移動させて印字バッファ46にイメージ展
開され(S63)、S58以降が実行される。例えば、
図19に示すように、最大サイズ「LL」の文字「A
g」の基線位置KLはそのままであるが、外字G1、G
2及び文字「B」の基線位置KLを、求められた基線位
置移動量ΔDだけ展開基準位置TKに対して上側に夫々
移動させて印字バッファ46にイメージ展開され、これ
ら外字G1、G2と文字「B」が文字「Ag」の上端位
置TLに夫々揃えられる。
Next, when the read character is not the maximum size and the upper end flag TF is set and the upper end is aligned (S56, S60: No, S61: Yes), the vertical position of the maximum size is set as the base line position moving amount ΔD. The number of dots is obtained by subtracting the upper height H of the read character from the upper height H1 of the number of dots D (S62), and the baseline position KL of the read character is shifted by the baseline position shift amount Δ with respect to the development reference position TK.
The image is moved upward by D and developed in the print buffer 46 (S63), and S58 and subsequent steps are executed. For example,
As shown in FIG. 19, the character “A” having the maximum size “LL”
g ”is the same as the baseline position KL, but the external characters G1, G
2 and the base line position KL of the character "B" are respectively moved upward with respect to the expansion reference position TK by the obtained base line movement amount ΔD, and are image-developed in the print buffer 46. These external characters G1, G2 and the character ""B" is aligned with the upper end position TL of the character "Ag".

【0038】更に、読出した文字が最大サイズでなく且
つ下端フラグBFがセットされていて下端揃えのときに
は(S56・S60・S61:No)、基線位置移動量
ΔDとして、最大サイズの縦ドット数Dの下側高さH2
から読出した文字の下側高さhを差し引いたドット数で
求められ(S64)、読出した文字の基線位置KLを展
開基準位置TKに対してこの基線位置移動量ΔDだけ下
側に移動させて印字バッファ46にイメージ展開され
(S65)、S58以降が実行される。例えば、図20
に示すように、最大サイズ「LL」の文字「Ag」の基
線位置KLはそのままであるが、外字G1、G2及び文
字「B」の基線位置KLを、求められた基線位置移動量
ΔDだけ展開基準位置TKに対して下側に夫々移動させ
て印字バッファ46にイメージ展開され、これら外字G
1、G2と文字「B」が文字「Ag」の下端位頁TLに
夫々揃えられる。
Further, when the read character is not the maximum size and the lower end flag BF is set and the lower end is aligned (S56, S60, S61: No), the base line position shift amount ΔD is set to the maximum size vertical dot number D Lower height H2
Is obtained by subtracting the lower height h of the read character from (step S64), and the base position KL of the read character is moved downward by the base position moving amount ΔD with respect to the development reference position TK. The image is developed in the print buffer 46 (S65), and S58 and subsequent steps are executed. For example, FIG.
As shown in the figure, the baseline position KL of the character "Ag" of the maximum size "LL" is kept as it is, but the baseline positions KL of the external characters G1, G2 and the character "B" are expanded by the obtained baseline position movement amount ΔD. The image is developed in the print buffer 46 while being moved downward with respect to the reference position TK.
1, G2 and the character "B" are aligned with the lowermost page TL of the character "Ag".

【0039】そして、文書データがテキトスメモリ41
内に存在しないときには(S58:No)、印字バッフ
ァ46内に展開されたドットパターンデータに基いて、
印字用テープ5に印字する印字処理が実行され(S6
6)、この制御を終了して、テープ印字制御のS11に
リターンする。その結果、基線位置揃えのときには、図
21に示すように、文字「Ag」、外字G1、外字G
2、文字「B」が、これらに設定された基線位置KLが
同一レベルとなるように印字され、見栄えの良い文字印
字をすることができる。また、上端位置揃えのときに
は、図22に示すように、これら文字「B」と外字G
1、G2とが最大サイズの文字「Ag」の上端位置に揃
えて印字される。更に、下端位置揃えのときには、図2
3に示すように、これら文字「B」と外字G1、G2と
が最大サイズの文字「Ag」の上端位置に揃えて印字さ
れる。更に、テープ印字制御において、文書作成キーや
文字サイズキーや揃え位置設定キーや外字キーや印字キ
ー以外のキーが操作されたときには(S11:Yes、
S12・S15・S17・S19・S21:No)、操
作されたキーに対応する処理が実行され(S23)、S
11に戻る。
The document data is stored in the text memory 41.
(S58: No), based on the dot pattern data developed in the print buffer 46,
A printing process for printing on the printing tape 5 is executed (S6).
6), this control ends, and the process returns to S11 of the tape print control. As a result, at the time of base line alignment, as shown in FIG. 21, the character "Ag", the external character G1, and the external character G
2. The character "B" is printed such that the base line positions KL set to the same are at the same level, so that the character can be printed with good appearance. In addition, when the upper end position is aligned, as shown in FIG.
1 and G2 are printed in alignment with the upper end position of the maximum size character "Ag". Further, when the lower end position is aligned, FIG.
As shown in FIG. 3, the character "B" and the external characters G1 and G2 are printed in alignment with the upper end position of the character "Ag" of the maximum size. Further, in the tape print control, when keys other than the document creation key, the character size key, the alignment position setting key, the external character key, and the print key are operated (S11: Yes,
(S12 / S15 / S17 / S19 / S21: No), a process corresponding to the operated key is executed (S23), and S
Return to 11.

【0040】以上説明したように、テキストメモリ41
から読出したアルファベット文字のコードデータや外字
のコードデータについて、アルファベット文字のドット
パターンデータを印字バッファ46に展開する一方、外
字のドットパターンデータを、その下部付近に設定した
外字用基線KLとアルファベット文字用基線KLとが展
開基準位置TKを介して同一レベルとなるように、印字
バッファ46に展開するので、外字の印字位置が小文字
のアルファベットに対して幾分下側に印字されることに
なり、特に「g」や「j」などの基線の下側に食み出し
た小文字のアルファベットを含む小文字のアルファベッ
トと外字とをバランス良くしかも見栄え良く印字するこ
とができる。また、アルファベットと外字とを、最大文
字の上端位置や下端位置に揃えた揃え印字を簡単に行な
うことができる。更に、外字にイタリック体の文字修飾
を施す場合に、この外字用基線KLに対して上側外字部
分を右側に傾け且つ下側外字部分を左側に傾けることが
可能であり、この場合にはイタリック修飾した外字と隣
接する文字との文字間ピッチを狭くすることなく、見栄
え良く印字することができる。
As described above, the text memory 41
The dot pattern data of the alphabetic character is expanded in the print buffer 46 with respect to the code data of the alphabetic character and the code data of the external character read from the external character. Since the development base line KL is developed in the print buffer 46 so as to be at the same level via the development reference position TK, the printing position of the external character is printed somewhat lower than the lowercase alphabet, In particular, lower-case alphabets including lower-case alphabets protruding below the base line, such as "g" and "j", and external characters can be printed in a well-balanced and attractive manner. Further, it is possible to easily perform the alignment printing in which the alphabet and the external character are aligned with the upper end position and the lower end position of the maximum character. Further, when the external character is to be subjected to italic character modification, it is possible to tilt the upper external character portion to the right and the lower external character portion to the left with respect to the external character base line KL. In this case, italic modification It is possible to print with good appearance without narrowing the pitch between characters between the external character and the adjacent character.

【0041】ここで、特許請求の範囲(請求項1)に記
載した各手段と、上記実施例中の構成との対応関係につ
いて説明すると、基線設定手段に相当するものは、印字
処理制御プログラムのS55及び制御装置Cであり、基
線制御手段に相当するものは、印字処理制御プログラム
のS57及び制御装置Cである。
Here, the correspondence between each means described in the claims (claim 1) and the configuration in the above-described embodiment will be described. S55 and the control device C, which correspond to the baseline control means are S57 of the print processing control program and the control device C.

【0042】尚、アルファベット文字のアルファベット
用基線KLの上下両側の高さの比率(H1 /H2 )は
「7:1」に限定されず、書体に応じて各種の比率を用
いることも可能である。尚、漢字やひらがななどの文字
や記号について、アウトラインフォンデータに代えてド
ットパターンデータを複数種類のサイズに対応させてR
OM31に格納するように構成してもよい。尚、上記実
施例における外字は、外字キーを操作して登録した外字
の他に外部装置からインターフェイスを通じて入力した
外字用ドットパターンデータまたは外字用フォントデー
タも含む。尚、ドット方式の印字機構を備え、外字パタ
ーン登録機能を設けた種々の文書処理装置に本発明を適
用し得ることは勿論である。
The height ratio (H1 / H2) of the upper and lower sides of the alphabet base line KL of the alphabet characters is not limited to "7: 1", and various ratios can be used according to the typeface. . Note that, for characters and symbols such as kanji and hiragana, dot pattern data corresponding to a plurality of sizes is used instead of outline phone data.
You may comprise so that it may be stored in OM31. The external character in the above embodiment includes external character dot pattern data or external character font data input through an interface from an external device in addition to the external character registered by operating the external character key. It is needless to say that the present invention can be applied to various document processing apparatuses having a dot-type printing mechanism and an external character pattern registration function.

【0043】[0043]

【発明の効果】以上説明したように、本発明の請求項1
係る文書処理装置によれば、基線設定手段と、基線制
御手段とを設け、入力データメモリから読出したアルフ
ァベット文字や外字のコードデータについて、アルファ
ベット文字のドットパターンデータを印字バッファに展
開する一方、外字のドットパターンデータを、その下部
付近に設定した外字用基線とアルファベット文字用基線
とが同一レベルとなるように、印字バッファに展開する
ので、外字の印字位置が小文字のアルファベットに対し
て幾分下側に印字されることになり、特に「g」や
「j」などの基線の下側に食み出した小文字のアルファ
ベットを含む小文字のアルファベットと外字とをバラン
ス良くしかも見栄え良く印字することができる。
As described above, according to the first aspect of the present invention,
According to the document processing apparatus according to a base line setting means, and a baseline control means is provided, the alphabetic characters and external character code data read out from the input data memory, while developing the dot pattern data of the alphabetic characters in the print buffer, The external character dot pattern data is expanded in the print buffer so that the external character base line set near the lower part and the alphabet character base line are at the same level. It will be printed on the lower side, and in particular, it is possible to print well-balanced and good-looking lowercase alphabets including lowercase alphabets protruding below the base line such as "g" and "j" and external characters. it can.

【0044】また、本発明の請求項2乃至4に係る文書
処理装置によれば、文字の文字サイズを含む文書であっ
ても、統一した基線を規定して、同様に、外字用基線と
アルファベット文字用基線とが同一レベルとなるように
印字バッファに展開するので、複数サイズのアルファベ
ットと外字とを含む文書であってもバランス良くしかも
見栄え良く印字することができる。
The document according to claims 2 to 4 of the present invention.
According to the processing device, the document containing the character size of the character
Even if a uniform baseline is defined, similarly,
The same level as the alphabet character base line
Since the data is expanded in the print buffer,
Even if it is a document that contains a character and an external character,
Printing can be performed with good appearance.

【0045】特に、請求項3に係る文書処理装置におい
ては、最大サイズに併せて基線を定義するので、印字領
域を外れる不適正なドットパターン展開がなされる虞が
無く、請求項4に係る文書処理装置ではさらに、印字媒
体の前記文書の印字領域における上下方向のバランスを
良く印字することができる。
In particular, in the document processing apparatus according to the third aspect,
Because the baseline is defined according to the maximum size,
Improper dot pattern development out of range
The document processing apparatus according to claim 4 further includes a printing medium.
Balance in the vertical direction in the print area of the document
Good printing is possible.

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

【図1】請求項1の構成を示す機能ブロック図である。FIG. 1 is a functional block diagram showing the configuration of claim 1;

【図2】テープ印刷装置の平面図である。FIG. 2 is a plan view of the tape printing apparatus.

【図3】印字機構の概略平面図である。FIG. 3 is a schematic plan view of a printing mechanism.

【図4】テープ印刷装置の制御系のブロック図である。FIG. 4 is a block diagram of a control system of the tape printing apparatus.

【図5】サイズ・ドット数対応テーブルのデータ構成を
説明する図表である。
FIG. 5 is a table illustrating a data configuration of a size / dot number correspondence table.

【図6】テープ印字制御のルーチンの概略フローチャー
トである。
FIG. 6 is a schematic flowchart of a tape print control routine.

【図7】揃え位置設定処理制御のルーチンの概略フロー
チャートである。
FIG. 7 is a schematic flowchart of a routine for controlling an alignment position setting process.

【図8】外字パターン作成・登録処理制御のルーチンの
概略フローチャートである。
FIG. 8 is a schematic flowchart of a routine for controlling external character pattern creation / registration processing.

【図9】印字処理制御のルーチンの概略フローチャート
である。
FIG. 9 is a schematic flowchart of a print processing control routine.

【図10】展開基準位置演算処理制御のルーチンの概略
フローチャートである。
FIG. 10 is a schematic flowchart of a routine for controlling a development reference position calculation process.

【図11】文書入力画面の表示例を示す図である。FIG. 11 is a diagram illustrating a display example of a document input screen.

【図12】揃え位置設定画面の表示例を示す図である。FIG. 12 is a diagram illustrating a display example of an alignment position setting screen.

【図13】登録データ入力画面の表示例を示す図であ
る。
FIG. 13 is a diagram showing a display example of a registration data input screen.

【図14】文字や外字を入力したときの図11相当図で
ある。
FIG. 14 is a diagram corresponding to FIG. 11 when characters and external characters are input.

【図15】テキストメモリのデータ構造を説明する説明
図である。
FIG. 15 is an explanatory diagram illustrating a data structure of a text memory.

【図16】印字バッファにおける展開基準位置を求める
説明図である。
FIG. 16 is an explanatory diagram for calculating a development reference position in a print buffer.

【図17】外字の基線位置を求める説明図である。FIG. 17 is an explanatory diagram for calculating a base line position of an external character.

【図18】基線揃えで印字バッファにイメージ展開する
説明図である。
FIG. 18 is an explanatory diagram for developing an image in a print buffer by aligning a base line;

【図19】上端揃えで印字バッファにイメージ展開する
説明図である。
FIG. 19 is an explanatory diagram for developing an image in a print buffer with the upper end aligned.

【図20】下端揃えで印字バッファにイメージ展開する
説明図である。
FIG. 20 is an explanatory diagram for developing an image in a print buffer with the lower end aligned.

【図21】基線揃えで印字したアルファベット文字と外
字の印字例の図である。
FIG. 21 is a diagram illustrating an example of printing alphabetic characters and external characters printed with base line alignment.

【図22】上端揃えで印字した図21相当図である。FIG. 22 is a diagram corresponding to FIG. 21 printed with the upper end aligned.

【図23】下端揃えで印字した図21相当図である。FIG. 23 is a diagram corresponding to FIG. 21 printed with the lower end aligned.

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

1 テープ印刷装置 3 キーボード 13 サーマルヘッド 29 CPU 31 ROM 32 ROM 40 RAM 41 テキストメモリ 42 登録データメモリ 46 印字バッファ C 制御装置 PM 印字機構 Reference Signs List 1 tape printer 3 keyboard 13 thermal head 29 CPU 31 ROM 32 ROM 40 RAM 41 text memory 42 registration data memory 46 print buffer C controller PM printing mechanism

フロントページの続き (56)参考文献 特開 昭61−89059(JP,A) 特開 平1−159256(JP,A) 特開 平2−64855(JP,A) 特開 平3−47766(JP,A) 特開 平4−127270(JP,A) 特開 平5−193085(JP,A) 特開 平6−20026(JP,A) 特開 平6−95649(JP,A) (58)調査した分野(Int.Cl.7,DB名) G09G 5/32 G09G 5/24 B41J 3/12 B41J 21/00 G06F 17/21 Continuation of the front page (56) References JP-A-61-89059 (JP, A) JP-A-1-159256 (JP, A) JP-A-2-64855 (JP, A) JP-A-3-47766 (JP) JP-A-4-127270 (JP, A) JP-A-5-193085 (JP, A) JP-A-6-20026 (JP, A) JP-A-6-95649 (JP, A) (58) Field surveyed (Int.Cl. 7 , DB name) G09G 5/32 G09G 5/24 B41J 3/12 B41J 21/00 G06F 17/21

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 和文文字やアルファベット文字や記号及
び種々の指令を入力する為の入力手段と、文字や記号の
ドットパターンデータ又は文字フォントデータを有する
キャラクタジェネレータと、印字媒体にドットパターン
で印字する印字ヘッドを含む印字手段と、外字登録モー
ドにおいて作成された文字や形象である外字のドットパ
ターンデータを記憶する登録データ記憶手段と、入力さ
れた文字や記号及び登録データ記憶手段から読出した外
字のコードデータを記憶する入力データメモリと、印字
用に展開されたドットパターンデータを記憶する印字バ
ッファと、入力データメモリのコードデータに基いてキ
ャラクタジェネレータ及び登録データ記憶手段のデータ
を読出して指定された文字サイズとなるドットパターン
データを、印字バッファに展開するデータ展開制御手段
とを備えた文書処理装置において、 外字の下部付近のレベルの位置に、外字の高さをアルフ
ァベット文字の基線の上下両側の高さの比と同一比で区
分する仮想的な外字用基線を設定する基線設定手段と、前記 基線設定手段で設定された外字用基線とアルファベ
ット文字用基線とが同一レベルとなるように、前記デー
タ展開制御手段を制御する基線制御手段と、 を備えたことを特徴とする文書処理装置。
1. An input means for inputting Japanese characters, alphabetic characters and symbols, and various commands, a character generator having dot pattern data or character font data of characters and symbols, and printing in a dot pattern on a print medium. A printing unit including a print head; a registration data storage unit for storing dot patterns of external characters that are characters and images created in the external character registration mode; and a storage unit for input characters, symbols, and external characters read from the registration data storage unit. An input data memory for storing code data, a print buffer for storing dot pattern data developed for printing, and a character generator and registered data storage means which are read and specified based on the code data in the input data memory. Dot pattern data for character size In a document processing apparatus provided with data expansion control means for expanding a character, the height of the character is divided at the level near the lower part of the external character at the same ratio as the ratio of the height of the upper and lower sides of the base line of the alphabet character. a base line setting means for setting a base line for virtual private character, as a baseline for a baseline and alphabetic characters EUDC set by the base line setting means is the same level, baseline control means for controlling the data expansion control means A document processing apparatus comprising:
【請求項2】 さらに、印字する文字サイズを個々に指
定可能なサイズ指定手段を備え、 前記基線制御手段は、入力データメモリに記憶された各
アルファベット文字の文字サイズの大小に係わらず、前
記外字用基線と各アルファベット文字用基線とが同一レ
ベルとなるように、前記データ展開制御手段を制御する
ことを特徴とする請求項1に記載の文書処理装置。
2. The method according to claim 1, further comprising :
The baseline control means, each of which is stored in an input data memory.
Regardless of the size of the alphabet characters,
The baseline for extra characters and the baseline for each alphabetic character are the same.
Control the data expansion control means so that
The document processing apparatus according to claim 1, wherein:
【請求項3】 前記入力データメモリに記憶された文字3. A character stored in the input data memory.
若しくは記号の複数のサイズデータに基づいて最大のサOr the maximum support based on multiple size data for the symbol.
イズを検索し、その最大サイズを構成する縦ドット数かSize, search for the number of vertical dots that make up the maximum size
ら基線位置を演算する基線位置演算手段と、Baseline position calculating means for calculating a base line position from the 前記基線位置演算手段により演算された基線位置に基づBased on the baseline position calculated by the baseline position calculating means,
いて、前記印字バッファ上の展開基準位置を演算する展For calculating a development reference position on the print buffer.
開基準位置演算手段とを備え、Open reference position calculating means, 前記基線制御手段が、前記展開基準位置において、前記The baseline control means, at the deployment reference position,
基線設定手段で設定された外字用基線とアルファベットExternal character base line and alphabet set by base line setting means
文字用基線とが同一レベルとなるように、前記データ展The data expansion is performed so that the character baseline is at the same level.
開制御手段を制御することを特徴とする請求項2に記載3. An opening control means is controlled.
の文書処理装置。Document processing device.
【請求項4】 前記展開基準位置演算手段は、最大サイ4. The development reference position calculating means according to claim 1, wherein
ズの縦ドット数を印字バッファ上における前記最大サイSize of the vertical dot on the print buffer
ズの高さ方向の上側余白と下側余白とが均等になるようSo that the upper and lower margins in the height direction of the
に配置したときに、前記基準位置に対応する印字バッフPrint buffer corresponding to the reference position
ァ上の位置を展開基準位置とすることを特徴とする請求A position on the printer as a deployment reference position.
項3に記載の文書処理装置。Item 3. The document processing device according to Item 3.
JP01704193A 1993-01-06 1993-01-06 Document processing device Expired - Fee Related JP3292393B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01704193A JP3292393B2 (en) 1993-01-06 1993-01-06 Document processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01704193A JP3292393B2 (en) 1993-01-06 1993-01-06 Document processing device

Publications (2)

Publication Number Publication Date
JPH06198966A JPH06198966A (en) 1994-07-19
JP3292393B2 true JP3292393B2 (en) 2002-06-17

Family

ID=11932920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01704193A Expired - Fee Related JP3292393B2 (en) 1993-01-06 1993-01-06 Document processing device

Country Status (1)

Country Link
JP (1) JP3292393B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3389876B2 (en) * 1999-03-19 2003-03-24 株式会社デンソー Character string display control device

Also Published As

Publication number Publication date
JPH06198966A (en) 1994-07-19

Similar Documents

Publication Publication Date Title
US5403101A (en) Tape printer having line enhancement capability
JP2629516B2 (en) Tape printer
JP3094658B2 (en) Tape printer
JP3292393B2 (en) Document processing device
JP2621726B2 (en) Tape printer
JP3280073B2 (en) Document processing device
EP0606768A2 (en) Registration dot pattern data processor of a text processing apparatus
JP3274751B2 (en) Label producing apparatus and label producing method
JPH06198962A (en) Preparing device for registration dot pattern data of tape printer
JP3095046B2 (en) Dot pattern data creation device for registration of tape printer
JP3050469B2 (en) Tape printer
JPH06203028A (en) Document processor
JP3139514B2 (en) Tape printer
JP2760246B2 (en) Tape printer
JP3060443B2 (en) Printing device
JPH05177901A (en) Printer
JPH07276715A (en) Tape printer capable of printing a plurality of blocks in optional number of lines
JP2560650B2 (en) Tape printer
JPH0872322A (en) Tapelike label forming apparatus
JPH07125373A (en) Printing device
JP3213154B2 (en) Tape printer
JP2874544B2 (en) Tape printer
JP2861567B2 (en) Tape printer
JPH0830603A (en) Document processor
JP3123376B2 (en) Printing device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080329

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090329

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090329

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100329

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees