JPH05210671A - Word processor - Google Patents

Word processor

Info

Publication number
JPH05210671A
JPH05210671A JP3070549A JP7054991A JPH05210671A JP H05210671 A JPH05210671 A JP H05210671A JP 3070549 A JP3070549 A JP 3070549A JP 7054991 A JP7054991 A JP 7054991A JP H05210671 A JPH05210671 A JP H05210671A
Authority
JP
Japan
Prior art keywords
ruby
character string
kanji
character
input
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
JP3070549A
Other languages
Japanese (ja)
Inventor
Shiyuukou Adachi
秀鋼 足立
Takashi Kusuhashi
高史 楠橋
Toru Ikegami
透 池上
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
Toshiba Computer Engineering Corp
Toshiba Software Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Computer Engineering Corp
Toshiba Software Engineering 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, Toshiba Computer Engineering Corp, Toshiba Software Engineering Corp filed Critical Toshiba Corp
Priority to JP3070549A priority Critical patent/JPH05210671A/en
Publication of JPH05210671A publication Critical patent/JPH05210671A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To add a FURIGANA (Japanese syllabary giving the pronunciation of Chinese characters) character string by the group FURIGANA system in the document preparing device having the FURIGANA function in the case of a KANJI (Chinese character) string consisting of plural characters. CONSTITUTION:A FURIGANA character string is added to a KANJI string consisting of plural characters by the group FURIGANA system. When the FURIGANA character string is inputted from a keyboard 2, the number of characters in the FURIGANA character string is calculated by a control part 1, and the range of the KANJI string corresponding to the FURIGANA character string is determined based on this number of characters. Character intervals of the KANJI string are adjusted in accordance with the FURIGANA character string based on the range of the KANJI string. The KANJI string with FURIGANA where the inputted FURIGANA character string is added to the KANJI string whose character intervals are determined is outputted.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、漢字文字にルビを付加
するルビ機能を有する文書作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document creating apparatus having a ruby function for adding ruby to Chinese characters.

【0002】[0002]

【従来の技術】従来、日本語ワードプロセッサ等の文書
作成装置には、漢字文字に対してルビを付加するルビ機
能を有するものがある。このルビ機能は、仮名漢字変換
処理により得られる漢字文字に対して、ルビとして入力
される文字列を付加する機能である。
2. Description of the Related Art Conventionally, some document creation devices such as Japanese word processors have a ruby function for adding ruby to Kanji characters. The ruby function is a function of adding a character string input as ruby to a kanji character obtained by the kana-kanji conversion process.

【0003】通常では、漢字文字の1/4サイズの文字
がルビ文字列として出力される。したがって、1文字の
漢字文字に対して2文字分のルビ文字列を付加できる。
しかしながら、1文字の漢字文字単位にルビ文字列を付
加する個別ルビ方式では、複数の漢字文字からなる漢字
文字列に対してルビを付加した場合に、ルビ文字列の位
置のバランスが適正でないことがある。
Normally, a character that is ¼ the size of a Kanji character is output as a ruby character string. Therefore, it is possible to add two ruby character strings to one kanji character.
However, in the individual ruby method that adds a ruby character string to each Kanji character unit, when ruby is added to a kanji character string consisting of multiple kanji characters, the position balance of the ruby character string is not appropriate. There is.

【0004】また、漢字文字の文字倍率を変更して、標
準サイズから拡大した場合に、通常ではルビ文字列の文
字サイズはその文字倍率に応じて拡大されることにな
る。しかしながら、漢字文字の方は拡大されても、文書
全体のバランスの上で、ルビ文字列の文字サイズは標準
サイズにした方が良い場合がある。
Further, when the character magnification of the Kanji character is changed and enlarged from the standard size, the character size of the ruby character string is usually enlarged according to the character magnification. However, even if the Kanji character is enlarged, it may be better to set the character size of the ruby character string to the standard size in view of the balance of the entire document.

【0005】[0005]

【発明が解決しようとする課題】従来の個別ルビ方式で
は、複数文字からなる漢字文字列に対して、付加したル
ビ文字列の位置のバランスが適正でないことがある。こ
のような漢字文字列に対しては、1文字単位ではなく、
漢字文字列全体に対してルビ文字列を付加する群れルビ
方式が望ましい。
In the conventional individual ruby method, the position of the added ruby character string may not be properly balanced with respect to the kanji character string consisting of a plurality of characters. For such Kanji character strings,
A group ruby method in which a ruby character string is added to the entire kanji character string is desirable.

【0006】また、通常ではルビ文字列の文字サイズは
漢字文字の1/4サイズである。これに伴って、漢字文
字の文字倍率に応じて、ルビ文字列の文字サイズを拡大
した場合に、文書全体のバランスが良くない場合があ
る。
In addition, the character size of the ruby character string is usually 1/4 the size of the Kanji character. Along with this, when the character size of the ruby character string is enlarged according to the character magnification of the kanji character, the balance of the entire document may not be good.

【0007】本発明の目的は、ルビ機能を有する文書作
成装置において、複数文字からなる漢字文字列の場合に
は、群れルビ方式によりルビ文字列を付加することを可
能にすることにある。また、本発明の目的は、漢字文字
の文字倍率が変化した場合でも、ルビ文字列の文字サイ
ズを一定化し、文書全体のバランスを保持することにあ
る。
An object of the present invention is to make it possible to add a ruby character string by a group ruby method in the case of a kanji character string consisting of a plurality of characters in a document creation device having a ruby function. Another object of the present invention is to maintain the balance of the entire document by making the character size of the ruby character string constant even when the character magnification of the Kanji character changes.

【0008】[0008]

【課題を解決するための手段】本発明は、漢字文字にル
ビを付加するルビ機能を有する文書作成装置において、
入力手段により入力されるルビ文字列の文字数を算出
し、この文字数に基づいてルビ文字列に対応する漢字文
字列の範囲を決定する第1の制御手段、漢字文字列の範
囲に基づいて漢字文字列の間隔をルビ文字列に応じて調
整する第2の制御手段および第2の制御手段により決定
された間隔の漢字文字列に対して入力手段により入力さ
れたルビ文字列を付加したルビ付漢字文字列を出力する
出力手段とを備えた装置である。
SUMMARY OF THE INVENTION The present invention provides a document creating apparatus having a ruby function for adding ruby to Chinese characters,
The first control means for calculating the number of characters of the ruby character string input by the input means and determining the range of the kanji character string corresponding to the ruby character string based on this number of characters, the kanji character based on the range of the kanji character string Second control means for adjusting the spacing between columns in accordance with the ruby character string and kanji characters with ruby added with the ruby character string input by the input means to the kanji character string at the interval determined by the second control means It is an apparatus provided with an output means for outputting a character string.

【0009】[0009]

【作用】本発明では、複数の漢字文字列に対しては、群
れルビ方式によりルビ文字列が付加される。ルビ文字列
が入力されると、ルビ文字列の文字数が算出されて、こ
の文字数に基づいてルビ文字列に対応する漢字文字列の
範囲が決定される。この漢字文字列の範囲に基づいて、
漢字文字列の間隔がルビ文字列に応じて調整される。決
定された間隔の漢字文字列に対して、入力されたルビ文
字列を付加したルビ付漢字文字列が出力されることにな
る。
In the present invention, the ruby character string is added to the plural kanji character strings by the group ruby method. When the ruby character string is input, the number of characters of the ruby character string is calculated, and the range of the kanji character string corresponding to the ruby character string is determined based on this number of characters. Based on the range of this Kanji string,
Kanji character string spacing is adjusted according to the ruby character string. The kanji character string with ruby added with the input ruby character string is output to the kanji character string at the determined interval.

【0010】[0010]

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

【0011】図1は同実施例に係わる文書作成装置の要
部を示すブロック図である。本装置は、装置全体の制
御、文書作成処理及び編集処理等を実行する制御部1、
キーボード2、入力制御部3、表示部4、表示制御部
5、プリンタ6および印字制御部7を備えている。
FIG. 1 is a block diagram showing a main part of the document creating apparatus according to the embodiment. The apparatus includes a control unit 1 that controls the entire apparatus, executes document creation processing, edit processing, and the like.
A keyboard 2, an input control unit 3, a display unit 4, a display control unit 5, a printer 6 and a print control unit 7 are provided.

【0012】キーボード2は、各種文字キーの他に、ル
ビ機能キー2a及びカーソルキー2b等を備えている。
入力制御部3は、キーボード2から入力される各種キー
入力信号をキーコードに変換して制御部1に出力する。
表示部4は表示制御部5により制御されて、作成された
文書データを表示する。プリンタ6は印字制御部7によ
り制御されて、作成された文書データを印字する。
The keyboard 2 is provided with a ruby function key 2a, a cursor key 2b and the like in addition to various character keys.
The input control unit 3 converts various key input signals input from the keyboard 2 into a key code and outputs the key code to the control unit 1.
The display unit 4 is controlled by the display control unit 5 to display the created document data. The printer 6 is controlled by the print controller 7 to print the created document data.

【0013】さらに、本装置は、ルビ文字列メモリ8、
漢字文字列メモリ9および書式データメモリ10を備え
ている。ルビ文字列メモリ8は、キーボード2から入力
されるルビ文字列を格納するためのメモリである。漢字
文字列メモリ9は、キーボード2から入力される文字列
を仮名漢字変換して得られる漢字文字列を格納するため
のメモリである。書式データメモリ10は、文書作成時
に設定される1行字数、行数、文字サイズ等の書式デー
タを格納するためのメモリである。
Further, the present apparatus is provided with a ruby character string memory 8,
A kanji character string memory 9 and a format data memory 10 are provided. The ruby character string memory 8 is a memory for storing a ruby character string input from the keyboard 2. The kanji character string memory 9 is a memory for storing a kanji character string obtained by converting a character string input from the keyboard 2 into kana-kanji characters. The format data memory 10 is a memory for storing format data such as the number of characters per line, the number of lines, and the character size set when a document is created.

【0014】次に、第1の実施例として群れルビ方式の
基本的原理を説明する。
Next, the basic principle of the flock ruby method will be described as a first embodiment.

【0015】先ず、文書作成時に、キーボード2から文
字列が入力されると、制御部1は文字列に対する仮名漢
字変換処理を実行する(図2のステップS1,S2)。
制御部1は仮名漢字変換処理により得られた漢字文字列
を、漢字文字列メモリ9に格納する。また、表示制御部
5は、漢字文字列メモリ9に格納された漢字文字列を表
示部4の画面に表示する制御を行なう(ステップS
3)。
First, when a character string is input from the keyboard 2 when creating a document, the control unit 1 executes kana-kanji conversion processing for the character string (steps S1 and S2 in FIG. 2).
The control unit 1 stores the Kanji character string obtained by the Kana-Kanji conversion process in the Kanji character string memory 9. Further, the display control unit 5 controls the display of the Kanji character string stored in the Kanji character string memory 9 on the screen of the display unit 4 (step S
3).

【0016】ここで、キーボード2のルビ機能キー2a
が操作されると(ステップS4のYES)、表示部4の
画面に表示された漢字文字列に対してルビ文字列を付加
することが指示される。キーボード2からルビ文字列が
入力されると(ステップS5)、制御部1はルビ文字列
をルビ文字列メモリ8に格納する。
Here, the ruby function key 2a of the keyboard 2
When is operated (YES in step S4), it is instructed to add the ruby character string to the Kanji character string displayed on the screen of the display unit 4. When the ruby character string is input from the keyboard 2 (step S5), the control unit 1 stores the ruby character string in the ruby character string memory 8.

【0017】制御部1は、ルビ文字列メモリ8に格納さ
れたルビ文字列の文字数を検出し、この文字数に基づい
て漢字文字列の範囲(桁数)を決定する(ステップS
6)。即ち、図3の(A)に示すように、漢字文字列
「東京」に対してルビ文字列「とうきょう」が入力され
た場合、このルビ文字列の文字数「5」に対して漢字文
字列の適正な範囲(配置桁数)を決定する。この場合、
ルビ文字列の文字サイズは、漢字文字の1/4のサイズ
である。
The control unit 1 detects the number of characters of the ruby character string stored in the ruby character string memory 8 and determines the range (number of digits) of the kanji character string based on this number of characters (step S).
6). That is, as shown in FIG. 3A, when the ruby character string “Tokyo” is input to the kanji character string “Tokyo”, the kanji character string is changed to the character number “5” of this ruby character string. Determine an appropriate range (number of arranged digits). in this case,
The character size of the ruby character string is 1/4 the size of the Kanji character.

【0018】さらに、制御部1は、決定した漢字文字列
の適正な範囲に基づいて、漢字文字列メモリ9に格納さ
れた漢字文字列の間隔を調整する(ステップS7)。即
ち、図3の(A)に示すように、2文字の漢字文字列
「東京」に対して、ルビ文字列「とうきょう」は文字数
「5」であるため、通常ではルビ文字が漢字文字の半桁
分だけ漢字文字列から外れてしまう。制御部1は、図3
の(B)に示すように、漢字文字列「東京」の間に半桁
分Rのスペースを入れて、漢字文字列の間隔を調整す
る。これにより、2文字の漢字文字列「東京」の範囲内
に、ルビ文字列「とうきょう」が付加されたルビ付漢字
文字列が出力されることになる(ステップS8)。即
ち、プリンタ6により、ルビ付漢字文字列が印刷される
ことになる。
Further, the control unit 1 adjusts the interval between the kanji character strings stored in the kanji character string memory 9 based on the determined appropriate range of the kanji character string (step S7). That is, as shown in FIG. 3A, the ruby character string “Tokyo” has the number of characters “5” for the two character kanji character string “Tokyo”. Only digits are out of the Kanji character string. The control unit 1 is shown in FIG.
As shown in (B) of, a space of half digit R is inserted between the kanji character strings “Tokyo” to adjust the interval of the kanji character strings. As a result, the kanji character string with ruby to which the ruby character string "Tokyo" is added is output within the range of the two-character kanji character string "Tokyo" (step S8). That is, the kanji character string with ruby is printed by the printer 6.

【0019】ここで、図4の(A)に示すように、2文
字の「東京」と1文字「で」とからなる漢字文字列の場
合には、前記のように、漢字文字列「東京」の間にスペ
ースを入れて間隔を調整することは、全体のバランスが
良くない。
Here, as shown in FIG. 4A, in the case of a kanji character string consisting of two characters "Tokyo" and one character "de", as described above, the kanji character string "Tokyo" is used. Adjusting the space by putting a space between "is not well balanced.

【0020】そこで、図4の(B)に示すように、漢字
文字列「東京」の前後に半桁分のスペースを入れて間隔
を調整する。これにより、ルビ文字列「とうきょう」を
付加した場合に、先頭の「と」が漢字文字列「東京」の
前に半桁分だけ外れた位置になるが、全体的にはバラン
スが取れたルビ付漢字文字列となる。
Therefore, as shown in FIG. 4B, half-digit spaces are inserted before and after the kanji character string "Tokyo" to adjust the interval. As a result, when the ruby character string "Tokyo" is added, the leading "to" is offset by a half digit before the kanji character string "Tokyo", but the ruby character is generally balanced. It becomes the attached Kanji character string.

【0021】また、図4の(C)に示すように、「東
京」と「で」との間に半桁分のスペースを入れて間隔を
調整する。これにより、ルビ文字列「とうきょう」を付
加した場合に、後尾の「う」が漢字文字列「東京」の後
に半桁分だけ外れた位置になるが、全体的にはバランス
が取れたルビ付漢字文字列となる。
Further, as shown in FIG. 4C, a space of half a digit is inserted between "Tokyo" and "de" to adjust the interval. As a result, when the ruby character string "Tokyo" is added, the tail "u" is displaced by half a digit after the kanji character string "Tokyo", but with a well-balanced ruby character. It becomes a kanji character string.

【0022】次に、第2の実施例として、前記のような
群れルビ方式と従来の個別ルビ方式を併用する場合につ
いて説明する。
Next, as a second embodiment, a case where the group ruby method as described above and the conventional individual ruby method are used together will be described.

【0023】図5のステップS14に示すように、キー
ボード2のルビ機能キー2aが操作されて(ステップS
13のYES)、表示部4の画面に表示された漢字文字
列に対してルビ文字列を付加するためのルビ文字列が入
力されると、制御部1はルビ文字列をルビ文字列メモリ
8に格納する。ここまでは(ステップS10〜S1
4)、前記第1の実施例と同様である。
As shown in step S14 of FIG. 5, the ruby function key 2a of the keyboard 2 is operated (step S14).
When the ruby character string for adding the ruby character string to the kanji character string displayed on the screen of the display unit 4 is input, the control unit 1 stores the ruby character string in the ruby character string memory 8 To store. Up to this point (steps S10 to S1
4), which is the same as in the first embodiment.

【0024】ここで、制御部1は、ルビ文字列メモリ8
に格納されたルビ文字列の中に、スペースが存在するか
否かを検出する。ルビ文字列の中にスペースが存在しな
い場合には(ステップS15のNO)、前記のような群
れルビ方式により、漢字文字列に対してルビ文字列を付
加する処理を行なう(ステップS16)。
Here, the control unit 1 controls the ruby character string memory 8
It is detected whether or not there is a space in the ruby character string stored in. When there is no space in the ruby character string (NO in step S15), the ruby character string is added to the kanji character string by the group ruby method as described above (step S16).

【0025】即ち、図6の(A)に示すように、漢字文
字列「世界」に対して、ルビ文字列「せかい」が入力さ
れると、群れルビ方式によるルビ付漢字文字列が出力さ
れる。
That is, as shown in FIG. 6A, when the ruby character string "Sekai" is input to the kanji character string "world", the kanji character string with ruby by the group ruby method is output. To be done.

【0026】一方、ルビ文字列の中にスペースが存在す
る場合には(ステップS15のYES)、従来の個別ル
ビ方式により、漢字文字列に対してルビ文字列を付加す
る処理を行なう(ステップS17)。即ち、図6の
(B)に示すように、漢字文字列「世界」に対して、ル
ビ文字列「せ かい」が入力されると、個別ルビ方式に
よるルビ付漢字文字列が出力される。個別ルビ方式で
は、1文字の漢字単位にルビ文字列が付加されるため、
漢字「世」に対してルビ文字「せ」が付加されて、さら
に漢字「界」に対してルビ文字列「かい」が付加され
る。
On the other hand, if there is a space in the ruby character string (YES in step S15), the ruby character string is added to the kanji character string by the conventional individual ruby method (step S17). ). That is, as shown in FIG. 6B, when the ruby character string "Sekai" is input to the kanji character string "world", the kanji character string with ruby by the individual ruby method is output. In the individual ruby method, since the ruby character string is added to each kanji character,
The ruby character “se” is added to the kanji “se”, and the ruby character string “kai” is further added to the kanji “kai”.

【0027】このような併用方式により、例えばキーボ
ード2からの指示に応じて群れルビ方式または個別ルビ
方式の一方が選択されて、任意のルビ付漢字文字列を出
力することが可能となる。
With such a combined system, for example, either the group ruby system or the individual ruby system is selected according to an instruction from the keyboard 2, and an arbitrary kanji character string with ruby can be output.

【0028】次に、第3の実施例として、前記のような
群れルビ方式と個別ルビ方式を併用する方式において、
群れルビと個別ルビとを相互に変更する場合について説
明する。
Next, as a third embodiment, in the system using both the group ruby system and the individual ruby system as described above,
A case where the group ruby and the individual ruby are mutually changed will be described.

【0029】図7のステップS25に示すように、ルビ
文字列が入力された後に(ステップS24)、例えばキ
ーボード2により群れルビ方式または個別ルビ方式の一
方が指示される。この場合、前記第2の実施例のよう
に、ルビ文字列を入力する場合に、スペースを挿入する
か否かにより、群れルビ方式と個別ルビ方式とを識別す
る方式でもよい。なお、ルビ文字列の入力までの処理は
(ステップS20〜S24)、前記第2の実施例と同様
である。
As shown in step S25 of FIG. 7, after the ruby character string is input (step S24), one of the group ruby method and the individual ruby method is instructed by the keyboard 2, for example. In this case, as in the second embodiment, when inputting a ruby character string, a method of distinguishing between the group ruby method and the individual ruby method may be used depending on whether a space is inserted or not. The processing up to the input of the ruby character string (steps S20 to S24) is the same as that in the second embodiment.

【0030】キーボード2からの指示により、個別ルビ
方式が選択されると(ステップS25のYES)、制御
部1は、個別ルビ方式により漢字文字列に対してルビ文
字列を付加する処理を実行し、ルビ付漢字文字列をプリ
ンタ6により印刷する(ステップS26)。即ち、図8
の(A)に示すように、漢字文字列「日本語」に対し
て、ルビ文字列「にほんご」が付加されたルビ付漢字文
字列が出力される。個別ルビ方式では、1文字の漢字単
位にルビ文字列が付加されるため、漢字「本」に対して
ルビ文字「ほん」が付加される。
When the individual ruby method is selected by the instruction from the keyboard 2 (YES in step S25), the control section 1 executes a process of adding the ruby character string to the kanji character string by the individual ruby method. , Kanji character string with ruby is printed by the printer 6 (step S26). That is, FIG.
As shown in (A) of, a ruby-added kanji character string in which the ruby character string “nihongo” is added to the kanji character string “Japanese” is output. In the individual ruby method, since the ruby character string is added to each kanji character, the ruby character “hon” is added to the kanji “book”.

【0031】一方、群れルビ方式が選択されると(ステ
ップS25のNO)、制御部1は、群れルビ方式により
漢字文字列に対してルビ文字列を付加する処理を実行
し、ルビ付漢字文字列をプリンタ6により印刷する(ス
テップS27)。即ち、図8の(B)に示すように、漢
字文字列「日本語」に対して、ルビ文字列「にほんご」
が付加されたルビ付漢字文字列が出力される。群れルビ
方式では、漢字文字列全体に対して、ルビ文字列「にほ
んご」が配置される。
On the other hand, when the group ruby method is selected (NO in step S25), the control unit 1 executes the process of adding the ruby character string to the kanji character string by the group ruby method, and the kanji character with ruby is added. The line is printed by the printer 6 (step S27). That is, as shown in FIG. 8B, the kanji character string “Japanese” is replaced with the ruby character string “Japanese”.
The kanji character string with ruby added is output. In the group ruby method, the ruby character string “Japanese” is arranged for the entire kanji character string.

【0032】ここで、例えばキーボード2から群れルビ
から個別ルビへの変更(ステップS28のYES)また
はその逆(ステップS28のNO)の変更が指示される
と、制御部1は最初に実行した群れルビ方式または個別
ルビ方式により出力したルビ付漢字文字列を解除する。
そして、変更の指示に応じて、群れルビ方式または個別
ルビ方式によりルビ文字列を付加する処理を再実行し、
その方式によるルビ付漢字文字列を出力する(ステップ
S29またはS30)。
Here, for example, when the keyboard 2 is instructed to change from group ruby to individual ruby (YES in step S28) or vice versa (NO in step S28), the control unit 1 first executes the group ruby. Cancel the kanji character string with ruby output by the ruby method or individual ruby method.
Then, according to the change instruction, the process of adding the ruby character string by the group ruby method or the individual ruby method is re-executed,
A kanji character string with ruby according to the method is output (step S29 or S30).

【0033】さらに、第4の実施例として、前記のよう
な群れルビ方式において、ルビ文字列の文字サイズを変
更する場合について説明する。
Furthermore, as a fourth embodiment, a case will be described in which the character size of the ruby character string is changed in the group ruby system as described above.

【0034】先ず、図9のステップS35に示すよう
に、ルビ文字列を付加するためのルビ文字列が入力され
ると、制御部1はルビ文字列をルビ文字列メモリ8に格
納する。ここまでは(ステップS31〜S35)、前記
第1の実施例と同様である。
First, as shown in step S35 of FIG. 9, when a ruby character string for adding a ruby character string is input, the control unit 1 stores the ruby character string in the ruby character string memory 8. Up to this point (steps S31 to S35), the process is the same as in the first embodiment.

【0035】ここで、通常では漢字文字列を作成する場
合に、1行字数、行数、文字サイズ等の書式データが設
定されて、書式データメモリ10に格納される。書式設
定では、キーボード2からの指示により、表示部4の画
面に書式設定用の入力画面が表示される。この入力画面
を利用して、各種の書式データが設定される。
Here, normally, when a kanji character string is created, format data such as the number of characters per line, the number of lines, and the character size is set and stored in the format data memory 10. In the format setting, an input screen for format setting is displayed on the screen of the display unit 4 according to an instruction from the keyboard 2. Various format data is set using this input screen.

【0036】制御部1は、群れルビ方式により漢字文字
列に対してルビ文字列を付加する処理を実行する。この
とき、ルビ文字列の文字サイズは、漢字文字の1/4の
サイズである。即ち、図10の(A)に示すように、漢
字文字「A」の文字サイズが文字倍率の変更により拡大
した場合に、ルビ文字列「12」の文字サイズも文字倍
率の変更に伴って拡大される。したがって、通常では、
制御部1は、ルビ付漢字文字列を出力(印刷)する場合
に、基本サイズ(漢字文字の1/4のサイズ)のルビ文
字列「12」を付加する(ステップS36のYES、S
37)。
The control unit 1 executes the process of adding the ruby character string to the kanji character string by the group ruby method. At this time, the character size of the ruby character string is 1/4 the size of the Chinese character. That is, as shown in FIG. 10A, when the character size of the Chinese character “A” is enlarged by changing the character magnification, the character size of the ruby character string “12” is also enlarged by changing the character magnification. To be done. So usually,
When outputting (printing) a kanji character string with ruby, the control unit 1 adds a ruby character string "12" of a basic size (size of 1/4 of kanji character) (YES in step S36, S).
37).

【0037】一方、例えばキーボード2からルビ文字列
の文字サイズを一定(標準サイズ)にする指示を入力す
ると、漢字文字の文字倍率の変更とは無関係に、一定サ
イズのルビ文字列「12」を付加する処理を実行する
(ステップS38)。即ち、図10の(B)に示すよう
に、漢字文字「A」の文字サイズが文字倍率の変更によ
り拡大した場合でも、ルビ文字列「12」の文字サイズ
は一定サイズのまま変更しない。
On the other hand, for example, when an instruction to make the character size of the ruby character string constant (standard size) is input from the keyboard 2, the ruby character string "12" of the constant size is displayed regardless of the change of the character magnification of the kanji character. A process of adding is executed (step S38). That is, as shown in FIG. 10B, even when the character size of the Chinese character “A” is enlarged by changing the character magnification, the character size of the ruby character string “12” remains unchanged.

【0038】このようにして、漢字文字の文字サイズと
は無関係に、ルビ文字列の文字サイズを一定化すると、
拡大した漢字文字列からなるルビ付漢字文字列を含む文
書において、文書全体のバランスの悪化を解消すること
が可能となる。また、図10の(B)に示すように、漢
字文字「A」の文字サイズが文字倍率の変更により拡大
した場合に、ルビ文字列の文字サイズは変更しないた
め、「12」から「123」のように文字数を増大化さ
せる効果もある。
In this way, if the character size of the ruby character string is made constant regardless of the character size of the Kanji character,
In a document including a kanji character string with ruby composed of an enlarged kanji character string, it is possible to eliminate the deterioration of the balance of the entire document. Further, as shown in FIG. 10B, when the character size of the kanji character “A” is enlarged by changing the character magnification, the character size of the ruby character string is not changed, so “12” to “123”. It also has the effect of increasing the number of characters.

【0039】[0039]

【発明の効果】以上詳述したように本発明によれば、ル
ビ機能を有する文書作成装置において、複数文字からな
る漢字文字列の場合には、群れルビ方式によりルビ文字
列を付加することを可能にすることにある。したがっ
て、全体的にはバランスが取れたルビ付漢字文字列を出
力することができる。さらに、従来の個別ルビ方式と群
れルビ方式とを併用することにより、任意のルビ付漢字
文字列を出力することができる利点がある。また、漢字
文字の文字倍率を変更した場合でも、ルビ文字列の文字
サイズを一定化することにより、文書全体のバランスを
保持することができる。
As described above in detail, according to the present invention, in a document creating apparatus having a ruby function, in the case of a kanji character string consisting of a plurality of characters, the ruby character string is added by the group ruby method. To make it possible. Therefore, it is possible to output a well-balanced kanji character string with ruby characters. Furthermore, by using the conventional individual ruby method and the group ruby method together, there is an advantage that an arbitrary kanji character string with ruby can be output. Further, even when the character magnification of the kanji character is changed, the balance of the entire document can be maintained by making the character size of the ruby character string constant.

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

【図1】本発明の実施例に係わる文書作成装置の要部を
示すブロック図。
FIG. 1 is a block diagram showing a main part of a document creating apparatus according to an embodiment of the present invention.

【図2】第1の実施例の動作を説明するためのフローチ
ャート。
FIG. 2 is a flowchart for explaining the operation of the first embodiment.

【図3】第1の実施例に係わる出力結果を示す概念図。FIG. 3 is a conceptual diagram showing an output result according to the first embodiment.

【図4】第1の実施例に係わる出力結果を示す概念図。FIG. 4 is a conceptual diagram showing an output result according to the first embodiment.

【図5】第2の実施例の動作を説明するためのフローチ
ャート。
FIG. 5 is a flowchart for explaining the operation of the second embodiment.

【図6】第2の実施例に係わる出力結果を示す概念図。FIG. 6 is a conceptual diagram showing an output result according to the second embodiment.

【図7】第3の実施例の動作を説明するためのフローチ
ャート。
FIG. 7 is a flowchart for explaining the operation of the third embodiment.

【図8】第3の実施例に係わる出力結果を示す概念図。FIG. 8 is a conceptual diagram showing an output result according to the third embodiment.

【図9】第4の実施例の動作を説明するためのフローチ
ャート。
FIG. 9 is a flowchart for explaining the operation of the fourth embodiment.

【図10】第4の実施例に係わる出力結果を示す概念
図。
FIG. 10 is a conceptual diagram showing an output result according to the fourth embodiment.

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

1…制御部、2…キーボード、8…ルビ文字列メモリ、
9…漢字文字列メモリ。
1 ... control unit, 2 ... keyboard, 8 ... ruby character string memory,
9 ... Kanji character string memory.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 足立 秀鋼 東京都青梅市末広町2丁目9番地 株式会 社東芝青梅工場内 (72)発明者 楠橋 高史 東京都青梅市新町1381番地1 東芝コンピ ュータエンジニアリング株式会社内 (72)発明者 池上 透 東京都青梅市末広町2丁目9番地 株式会 社東芝青梅工場内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Hideko Adachi 2-9 Suehiro-cho, Ome-shi, Tokyo Inside the Ome Plant of Toshiba Corporation (72) Inventor Takashi Kusuhashi 1381 Shinmachi, Ome-shi, Tokyo 1 Toshiba Compu Data Engineering Co., Ltd. (72) Inventor Toru Ikegami 2-9 Suehiro-cho, Ome-shi, Tokyo Incorporated Toshiba Ome Factory

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 漢字文字にルビを付加するルビ機能を有
する文書作成装置において、 ルビ機能の指示およびルビ文字列を入力するための入力
手段と、 この入力手段により入力される前記ルビ文字列の文字数
を算出し、この文字数に基づいて前記ルビ文字列に対応
する漢字文字列の範囲を決定する第1の制御手段と、 この第1の制御手段により決定された範囲に基づいて前
記漢字文字列の間隔を前記ルビ文字列に応じて調整する
第2の制御手段と、 前記入力手段からのルビ機能の指示に応じて前記第2の
制御手段により決定された間隔の前記漢字文字列に対し
て前記入力手段により入力された前記ルビ文字列を付加
したルビ付漢字文字列を出力する出力手段とを具備した
ことを特徴とする文書作成装置。
1. In a document creation device having a ruby function for adding ruby to a kanji character, an input means for inputting a ruby function instruction and a ruby character string, and the ruby character string input by the input means. First control means for calculating the number of characters and determining the range of the kanji character string corresponding to the ruby character string based on the number of characters; and the kanji character string based on the range determined by the first control means. A second control means for adjusting the interval according to the ruby character string, and the kanji character string with the interval determined by the second control means in response to the ruby function instruction from the input means. An apparatus for outputting a kanji-kanji character string with ruby added with the ruby character string input by the input means.
【請求項2】 漢字文字にルビを付加するルビ機能を有
する文書作成装置において、 ルビ機能の指示およびルビ文字列を入力するための入力
手段と、 この入力手段により入力される前記ルビ文字列にスペー
スがあるか否かを判定する第1の制御手段と、 この第1の制御手段の判定結果によりスペースが存在す
る場合には漢字文字の1文字単位に前記入力手段により
入力されるルビ文字列を付加する個別ルビ処理を実行
し、前記スペースが存在しない場合には漢字文字列の範
囲に対して前記入力手段により入力されるルビ文字列を
付加する群れルビ処理を実行する第2の制御手段と、 前記入力手段からのルビ機能の指示に応じて前記第2の
制御手段により決定された前記個別ルビ処理または前記
群れルビ処理によりルビ付漢字文字列を出力する出力手
段とを具備したことを特徴とする文書作成装置。
2. In a document creating apparatus having a ruby function for adding ruby to a kanji character, an input means for inputting a ruby function instruction and a ruby character string, and the ruby character string input by this input means. First control means for determining whether or not there is a space, and if there is a space as a result of the determination by the first control means, a ruby character string input by the input means in units of Kanji characters. Second control means for executing the individual ruby processing for adding the ruby processing for adding the ruby character string input by the input means to the range of the kanji character string when the space does not exist And outputting a kanji character string with ruby by the individual ruby processing or the group ruby processing determined by the second control means in accordance with an instruction of the ruby function from the input means. Document creating apparatus characterized by comprising an output unit.
【請求項3】 漢字文字にルビを付加するルビ機能を有
する文書作成装置において、 ルビ機能の指示、ルビ文字列の入力およびルビ文字のサ
イズを指示するための入力手段と、 この入力手段のルビ文字のサイズの指示に応じてルビ付
加対象の漢字文字の文字倍率に基づいて前記入力手段か
らのルビ文字のサイズを変更または一定にするかを決定
する第1の制御手段と、 この第1の制御手段により、ルビ文字のサイズを変更す
る場合に、前記入力手段により入力されるルビ文字列の
文字サイズを前記漢字文字の文字倍率に応じて変更する
第2の制御手段と、 前記入力手段からのルビ機能の指示に応じて前記第2の
制御手段により変更された文字サイズの前記ルビ文字列
または予め設定された一定サイズの前記ルビ文字列を付
加したルビ付漢字文字列を出力する出力手段とを具備し
たことを特徴とする文書作成装置。
3. A document creating apparatus having a ruby function for adding ruby to a kanji character, in a ruby function instruction, an input means for inputting a ruby character string and a ruby character size, and a ruby of this input means. First control means for determining whether to change or keep the size of the ruby character from the input means based on the character magnification of the kanji character to which ruby is added according to the instruction of the character size; When changing the size of the ruby character by the control means, second control means for changing the character size of the ruby character string input by the input means according to the character magnification of the kanji character, and the input means Kanji with ruby added with the ruby character string of the character size changed by the second control means according to the instruction of the ruby function or the ruby character string of a predetermined constant size Document creating apparatus characterized by comprising an output means for outputting the string.
JP3070549A 1991-03-11 1991-03-11 Word processor Pending JPH05210671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3070549A JPH05210671A (en) 1991-03-11 1991-03-11 Word processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3070549A JPH05210671A (en) 1991-03-11 1991-03-11 Word processor

Publications (1)

Publication Number Publication Date
JPH05210671A true JPH05210671A (en) 1993-08-20

Family

ID=13434712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3070549A Pending JPH05210671A (en) 1991-03-11 1991-03-11 Word processor

Country Status (1)

Country Link
JP (1) JPH05210671A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010205151A (en) * 2009-03-05 2010-09-16 Xing Inc Conversion device, conversion method, display system and computer program
JP2010204562A (en) * 2009-03-05 2010-09-16 Xing Inc Conversion device, conversion method, display system and computer program
JP2014029684A (en) * 2012-06-28 2014-02-13 Canon Marketing Japan Inc Electronic book terminal, information processing method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010205151A (en) * 2009-03-05 2010-09-16 Xing Inc Conversion device, conversion method, display system and computer program
JP2010204562A (en) * 2009-03-05 2010-09-16 Xing Inc Conversion device, conversion method, display system and computer program
JP2014029684A (en) * 2012-06-28 2014-02-13 Canon Marketing Japan Inc Electronic book terminal, information processing method, and program

Similar Documents

Publication Publication Date Title
US4891786A (en) Stroke typing system
JPH05210671A (en) Word processor
JPS5994131A (en) Word processor
JP3209870B2 (en) Character insertion device and insertion method
US4963042A (en) Horizontal line position adjusting in frame processing device
JPH11259456A (en) Document preparing device, formula converting method and storage medium
JPH01229673A (en) English and european writing printing control system
JPH02739B2 (en)
JP3371435B2 (en) Input mode automatic setting method or input mode automatic setting device
JP2603269B2 (en) Character processor
JP2723908B2 (en) Document creation device
JPH0589140A (en) Document preparing device
JP2940140B2 (en) Document data processing device
JPH0666066B2 (en) Document processor with furigana addition function
JPH01103467A (en) Document output method
JPH03147058A (en) Document generating device
JPS63307976A (en) Recorder
JPS5851332A (en) Inputting method for character with phonetic symbol
JPH0453188B2 (en)
JPS59142629A (en) Character processing device
JPH06259414A (en) Method and device for outputting furikana (japanese pronunciation of chinese character) for word processor
JPH0711750B2 (en) Document output method
JPH0812542B2 (en) Document data editing device
JPH0776966B2 (en) Kana-Kanji conversion device
JPH06231123A (en) External character processor