JPH0619905A - Character output device - Google Patents

Character output device

Info

Publication number
JPH0619905A
JPH0619905A JP4172559A JP17255992A JPH0619905A JP H0619905 A JPH0619905 A JP H0619905A JP 4172559 A JP4172559 A JP 4172559A JP 17255992 A JP17255992 A JP 17255992A JP H0619905 A JPH0619905 A JP H0619905A
Authority
JP
Japan
Prior art keywords
character
characters
kana
chinese
kanji
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
JP4172559A
Other languages
Japanese (ja)
Inventor
Yasushi Mochizuki
泰志 望月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP4172559A priority Critical patent/JPH0619905A/en
Publication of JPH0619905A publication Critical patent/JPH0619905A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To additionally print out 'KANA' (Japanese syllabary) characters alongside of Chinese characters to give their pronunciation on the character output device side by providing the character output device with a character processing means for adding converted 'KANA' characters to a corresponding Chinese compound word out of a character string to be outputted as 'KANA' characters for pronunciation. CONSTITUTION:The character output device has a font ROM 6 for storing scalable fonts corresponding to input character codes and bit map font patterns prepared for 'KANA' characters, a built-in RAM 7 to be a memory medium, a 'KANA' character data base 7a for retrieving 'KANA' characters from a Chinese compound word, an extraction means for extracting the Chinese compound word from a character string to be outputted, a 'KANJI' (Chinese character) conversion means for converting the extracted Chinese compount word into 'KANA' characters, and a character processing means for adding the converted 'KANA' characters to the corresponding Chinese compound word out of the character string to be outputted as 'KANA' characters for pronunciation. Thereby Chinese characters with 'KANA' characters for pronunciation can be printed out by setting up a mode or the like on the output device side without starting up the application of a word processor or the like on the host side.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字或は記号の画像出
力を行う文字出力装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character output device for outputting images of characters or symbols.

【0002】[0002]

【従来の技術】従来の印刷装置は、ホスト側で起動して
いるアプリケーション上で指定したときのみ漢字のルビ
文字が印刷できるように構成されている。より具体的に
は、ホスト側で文書を作成するときに、ルビ文字を付加
して作成する。印刷装置にはルビ文字(コード形態)と
通常の文字(コード形態)とが送られ、文字出力装置に
おいて文字コードが画像パターンに変換されて印刷され
る。
2. Description of the Related Art A conventional printing apparatus is constructed so that it can print ruby characters of Chinese characters only when designated by an application running on the host side. More specifically, when a document is created on the host side, ruby characters are added and created. Ruby characters (code form) and normal characters (code form) are sent to the printing device, and the character output device converts the character code into an image pattern for printing.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来例では、ホスト側でワードプロセッサ等のアプリケー
ションを起動させないかぎり漢字にルビをふるのは難し
く、出力装置側で漢字にルビをつけるのは不可能であ
る。このため、ルビ文字作成機能を持たないホスト装置
で作成した文書の漢字にはルビをふることはできなかっ
た。そこで、本発明の目的は、上述の点に鑑みて、文字
出力装置側でルビ文字を付加して印刷することの可能な
文字出力装置を提供することにある。
However, in the above-mentioned conventional example, it is difficult to apply ruby to kanji unless the application such as a word processor is activated on the host side, and it is impossible to add ruby to the kanji on the output device side. is there. For this reason, ruby cannot be added to the kanji of a document created by a host device that does not have the ruby character creation function. Then, in view of the above-mentioned point, an object of the present invention is to provide a character output device capable of adding a ruby character and printing it on the character output device side.

【0004】[0004]

【課題を解決するための手段】このような目的を達成す
るために、本発明は、出力対象の文字列の中から漢字熟
語を抽出手段と、当該抽出された漢字熟語をかな文字に
変換するかな漢字変換手段と、当該変換されたかな文字
をルビ文字として前記出力対象の文字列の中の、対応の
漢字熟語に付加する文字処理手段とを具えたことを特徴
とする。
In order to achieve such an object, according to the present invention, a kanji compound word is extracted from a character string to be output and the extracted kanji compound word is converted into a kana character. It is characterized by comprising kana-kanji conversion means and character processing means for adding the converted kana characters as ruby characters to the corresponding kanji idiom in the character string to be output.

【0005】[0005]

【作用】本発明では、出力対象の漢字熟語をその読みに
変換、すなわち逆漢字変換をすることにより、ルビ文字
用の文字を取得することによりルビ文字の付加印刷を可
能にする。
According to the present invention, a kanji compound word to be output is converted into its reading, that is, reverse kanji conversion is performed, thereby obtaining a character for a ruby character, thereby enabling additional printing of the ruby character.

【0006】[0006]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0007】図1は印刷装置の回路構成を説明するブロ
ック図であり、図中、1は印刷装置本体、2はデータ供
給源となるホストコンピュータである。3は印刷装置本
体1内のすべてを制御する中央演算処理装置(CP
U)、4はホストコンピュータ2より送られてくるデー
タを格納する入力インタフェースである。5は図3によ
り後述するプログラムを含む制御プログラムが格納され
ているプログラムリードオンリメモリ(ROM)であ
る。
FIG. 1 is a block diagram for explaining a circuit configuration of a printing apparatus. In the figure, 1 is a printing apparatus main body and 2 is a host computer which is a data supply source. 3 is a central processing unit (CP) that controls everything in the printer body 1.
U) and 4 are input interfaces for storing data sent from the host computer 2. Reference numeral 5 denotes a program read only memory (ROM) in which a control program including a program described later with reference to FIG. 3 is stored.

【0008】6は入力文字コードに対応するスケーラブ
ルフォント(文字をドット信号ではなく、ストローク情
報で表して記憶した文字)および、ルビ文字用に用意さ
れた、ビットマップフォントパターンが格納されている
フォントROMである。7はメモリ媒体となる内蔵ラン
ダムアクセスメモリ(RAM)で、漢字熟語からルビ文
字を検索するためのルビ文字用データベース7aを備え
ている。また、8は印刷を行うための出力部である。
Reference numeral 6 is a scalable font corresponding to the input character code (a character in which the character is represented by stroke information instead of a dot signal and stored) and a font in which a bitmap font pattern prepared for ruby characters is stored. ROM. Reference numeral 7 denotes a built-in random access memory (RAM) serving as a memory medium, which is provided with a ruby character database 7a for searching for ruby characters from kanji phrases. Further, 8 is an output unit for performing printing.

【0009】図2は内蔵RAM内に用意されているルビ
文字用のデータベースのテーブルの内容を示す。
FIG. 2 shows the contents of a table of a database for ruby characters prepared in the built-in RAM.

【0010】このテーブルは属性として、漢字コードと
それに対する読みがなのルビ文字コードを有しており、
1つのレコードに漢字コードはその熟語分のコードを、
ルビ文字コードは熟語に対応する読みがな分のコードを
連続して持っている。そして、CPU3により漢字の熟
語をコードでテーブル内を検索することによって、それ
に対する読みがなのコードすなわち、漢字に付加するル
ビ文字を得ることが可能である。
This table has, as attributes, a kanji code and a ruby character code for reading it,
The kanji code in one record is the code for that idiom,
The ruby character code has a continuous number of phonetic codes corresponding to idioms. Then, the CPU 3 searches the table for a kanji idiom with a code to obtain the phonetic code for the kanji, that is, the ruby character to be added to the kanji.

【0011】図3はプログラムROM5に格納されてい
る本発明にかかわるルビ文字処理手順を示す。
FIG. 3 shows a rubi character processing procedure stored in the program ROM 5 according to the present invention.

【0012】図1の4の入力インタフェースに格納され
たデータが文字であった場合、CPU3の実行手順は文
字処理ルーチンに移行する。まず、ステップ1でCPU
3はその受信バッファに格納されている文字コードを獲
得する。ステップ2でCPU3はそれが漢字コードかど
うかの判断をし、もし漢字コードであったならば、ステ
ップ3で再び漢字以外の文字コードが表れるまで、連続
の漢字コードを獲得し、一つの熟語分の漢字コードを獲
得する。このときのCPU3が本発明の抽出手段として
動作する。もし、獲得の文字コードが漢字コードでなか
ったら、実行手順は通常処理のステップ9へジャンプす
る。
When the data stored in the input interface 4 of FIG. 1 is a character, the execution procedure of the CPU 3 shifts to a character processing routine. First, in step 1, CPU
3 acquires the character code stored in the reception buffer. In step 2, the CPU 3 determines whether or not it is a kanji code, and if it is a kanji code, it acquires a continuous kanji code until a character code other than kanji appears again in step 3, and one kanji code is obtained. Get the kanji code for. The CPU 3 at this time operates as the extraction means of the present invention. If the acquired character code is not the Kanji code, the execution procedure jumps to step 9 of the normal processing.

【0013】ステップ3で漢字熟語を獲得した後、CP
U3はステップ4でルビ文字用のデータベースにアクセ
スする。ステップ5でそのデータベースのテーブル内
に、上述の処理で獲得した漢字熟語のコード列があるか
どうかの検索をする。もし、漢字熟語文字コード列が存
在したら、CPU3はステップ6でそれに対する読みが
なのルビ文字コード列をテーブル内から獲得する。この
ときのCPU3が本発明のかな変換手段として動作す
る。もし、漢字熟語文字コード列が存在しなかった場合
は、ステップ9の通常処理にジャンプする。ステップ6
でルビ文字コード列を獲得した後、CPU3はステップ
7で、その文字コード列分のルビ文字用ビットマップフ
ォントを図1の6のフォントROMから獲得する。従来
と同様ルビ文字処理(画像変換)した後は、それが、漢
字のルビに見えるように、対応の漢字熟語の文字位置に
関連させて不図示のイメージメモリ上にルビ文字画像を
展開記憶する。次にステップ8で改行後、ステップ9で
出力対象の漢字混じり文字列をイメージ変換して、イメ
ージメモリ上に上記ルビ文字画像と合成する。このとき
のCPU3が本発明の文字処理手段として動作する。
After acquiring Kanji idioms in step 3, CP
In step 4, U3 accesses the database for ruby characters. In step 5, the table of the database is searched for the code string of the kanji idiom acquired by the above-mentioned processing. If there is a kanji compound character code string, the CPU 3 obtains the phonetic ruby character code string for it from the table in step 6. The CPU 3 at this time operates as the kana conversion means of the present invention. If there is no Kanji compound word character code string, the process jumps to the normal processing of step 9. Step 6
After acquiring the ruby character code string in, the CPU 3 acquires the ruby character bitmap font for the character code string from the font ROM 6 in FIG. 1 in step 7. After the ruby character processing (image conversion) is performed as in the conventional method, the ruby character image is expanded and stored in the image memory (not shown) in association with the character position of the corresponding kanji compound word so that the ruby character looks like ruby. . Next, after a line feed in step 8, the kanji-blended character string to be output is converted into an image in step 9 and is combined with the ruby character image on the image memory. At this time, the CPU 3 operates as the character processing means of the present invention.

【0014】ステップ10では、CPU3は入力インタ
フェースに格納されている次の文字を見に行き、それが
また文字コードであれば、ステップ1から繰り返す。そ
れが文字コード以外のものであったら、文字処理ルーチ
ンを終了し、次の処理へと移っていく。
In step 10, the CPU 3 goes to the next character stored in the input interface, and if it is another character code, repeats from step 1. If it is other than the character code, the character processing routine is terminated and the process proceeds to the next step.

【0015】以上のようにして、漢字に付すべきルビ文
字の作成を終了した後、CPU3はイメージメモリの文
字画像を出力部8に送るのでルビ文字付の印刷が出力部
8で行われる。なお、本実施例はルビ文字付加モードが
指示された場合の処理について示している。したがっ
て、ルビ文字を付加しないモードの場合は、従来周知の
印刷処理を行う。この印刷モードの指示はホストコンピ
ュータ側のキーボードや印刷装置本体の操作部(不図
示)から行うとよい。
After the creation of the ruby characters to be added to the kanji is completed as described above, the CPU 3 sends the character image in the image memory to the output section 8, so that the printing with the ruby characters is performed at the output section 8. The present embodiment shows the processing when the ruby character addition mode is instructed. Therefore, in the case of the mode in which the ruby characters are not added, the conventionally known print processing is performed. This print mode instruction may be issued from a keyboard on the host computer side or an operation unit (not shown) of the printing apparatus main body.

【0016】<他の実施例> (1)上記実施例ではページプリンタなどの印刷装置を
例にして説明したが、ビットマップのCRTディスプレ
イ装置などにも容易に適用できる。
<Other Embodiments> (1) In the above embodiments, a printing device such as a page printer has been described as an example, but it can be easily applied to a CRT display device of a bit map.

【0017】(2)また、上記実施例ではルビ文字のサ
イズが一定ということで説明したが、あらかじめ図1の
6のフォントROMにいろいろなサイズのルビ文字用ビ
ットマップフォントを格納しておけば、漢字の部分の文
字サイズに合わせて、ルビ文字サイズを選択することも
可能である。
(2) In the above embodiment, the description has been given on the assumption that the size of the ruby characters is constant. However, if the font ROM for ruby characters of various sizes is stored in advance in the font ROM 6 of FIG. It is also possible to select the ruby character size according to the character size of the kanji part.

【0018】(3)本実施例ではルビ文字と漢字熟語列
をイメージメモリ中でイメージ合成したが、漢字熟語列
から変換したルビ文字コードを1画面分その位置情報と
共に保存しておき、ルビ文字を一括してイメージ変換
し、該当位置に出力するようにしてもよい。
(3) In this embodiment, the ruby characters and the kanji compound word sequence are image-combined in the image memory. However, the ruby character code converted from the kanji compound word sequence is saved together with its position information for one screen, and the ruby character is stored. May be collectively image-converted and output to the corresponding position.

【0019】[0019]

【発明の効果】以上説明したように本発明によれば、ホ
スト側でワードプロセッサなどのアプリケーションを起
動させなくても出力装置側でのモードをセットすること
等により、ルビ付きの漢字を印字することが可能になる
という効果がある。
As described above, according to the present invention, the kanji with ruby can be printed by setting the mode on the output device side without activating the application such as the word processor on the host side. There is an effect that it becomes possible.

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

【図1】本発明実施例の回路構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a circuit configuration of an embodiment of the present invention.

【図2】本発明実施例のルビ文字用テーブルの内容を示
す図である。
FIG. 2 is a diagram showing the contents of a ruby character table according to the embodiment of the present invention.

【図3】図1のCPU3の実行する手順を示すフローチ
ャートである。
FIG. 3 is a flowchart showing a procedure executed by a CPU 3 of FIG.

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

3 CPU 7 内蔵RAM 8 出力部 3 CPU 7 Built-in RAM 8 Output section

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

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 出力対象の文字列の中から漢字熟語を抽
出手段と、 当該抽出された漢字熟語をかな文字に変換するかな漢字
変換手段と、 当該変換されたかな文字をルビ文字として前記出力対象
の文字列の中の、対応の漢字熟語に付加する文字処理手
段とを具えたことを特徴とする文字出力装置。
1. A means for extracting a kanji idiom from a character string to be output, a kana-kanji conversion means for converting the extracted kanji idiom to a kana character, and the converted kana character as a ruby character for the output target. And a character processing means for adding to the corresponding kanji compound word in the character string.
JP4172559A 1992-06-30 1992-06-30 Character output device Pending JPH0619905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4172559A JPH0619905A (en) 1992-06-30 1992-06-30 Character output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4172559A JPH0619905A (en) 1992-06-30 1992-06-30 Character output device

Publications (1)

Publication Number Publication Date
JPH0619905A true JPH0619905A (en) 1994-01-28

Family

ID=15944103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4172559A Pending JPH0619905A (en) 1992-06-30 1992-06-30 Character output device

Country Status (1)

Country Link
JP (1) JPH0619905A (en)

Similar Documents

Publication Publication Date Title
US5606649A (en) Method of encoding a document with text characters, and method of sending a document with text characters from a transmitting computer system to a receiving computer system
JP2974322B2 (en) Character processing apparatus and method
KR960010410B1 (en) Output method and apparatus
JPH0619905A (en) Character output device
JP2002278727A (en) Character extraction printing program and printing controller
JPH05323950A (en) Character output device
JP3054157B2 (en) Character processing device and character processing method
JP2644778B2 (en) Character generator
JPH08194460A (en) Character processing device
JPH0640089A (en) Printer device
JP3432023B2 (en) Character processing apparatus and method
JPH0426889A (en) Character output device
KR100366687B1 (en) Device, method and program recording medium for uploading font from fontbox in print to computer
JPS60253572A (en) Blank filling printing system
JPH01229649A (en) Printing method using vector font data
JPH08221050A (en) Information processor with character processing function
JPH06320801A (en) Printer
JPH0778133A (en) Document preparing device and method for outputting character pattern
JPH03112668A (en) Printer
JPH07141340A (en) Document output method and document processor
JPH0512267A (en) Automatic paragraphing system
JPH1044533A (en) Font cache
JPH04328628A (en) Font data take-out system
JPH10232861A (en) Document output device
KR19990074826A (en) How to Choose Fonts and Fonts for Your Printer