JPH0823744B2 - Character string processor - Google Patents
Character string processorInfo
- Publication number
- JPH0823744B2 JPH0823744B2 JP61080225A JP8022586A JPH0823744B2 JP H0823744 B2 JPH0823744 B2 JP H0823744B2 JP 61080225 A JP61080225 A JP 61080225A JP 8022586 A JP8022586 A JP 8022586A JP H0823744 B2 JPH0823744 B2 JP H0823744B2
- Authority
- JP
- Japan
- Prior art keywords
- font
- character
- character string
- display
- unit
- 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 - Lifetime
Links
Landscapes
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
- Record Information Processing For Printing (AREA)
Description
【発明の詳細な説明】 技術分野 本発明は文字列処理装置に関し、例えばワードプロセ
ッサ、メモリ付タイプライタ、オフィスコンピュータ
等、入力文字列のうち一部を異なるフォントによって出
力する文字列処理装置に関する。TECHNICAL FIELD The present invention relates to a character string processing device, for example, a word processor, a typewriter with memory, an office computer, and the like, and to a character string processing device for outputting a part of an input character string in different fonts.
従来技術 例えば、日本語ワードプロセッサ等においては、出力
される文字の字体はそのキャラクタジェネレータフォン
トにより固定的に定められており、一般的には明朝体、
ゴシック体などが多く使用されている。2. Description of the Related Art For example, in a Japanese word processor or the like, the font of the characters to be output is fixedly determined by the character generator font.
Many Gothic fonts are used.
近年これらの明朝体、ゴシック体を切り換えて出力す
る機器が開発され、一文中に明朝体、ゴシック体を混在
させることも可能である。このようなフォントの切り換
えの指定をCRT等の表示画面に表示する場合には、フォ
ントの切り換え用制御コードを用い、この制御コードを
表示する文字により構成される本文中に挿入することに
より、制御コードよりも後の文字のフォントをプリント
時に切り換えて出力するようにしている。In recent years, a device for switching and outputting these Mincho and Gothic fonts has been developed, and it is possible to mix Mincho and Gothic fonts in a sentence. When displaying such a font switching specification on a display screen such as a CRT, a control code for font switching is used, and the control code is inserted into the text composed of the characters to be displayed. The font of the characters after the code is switched and output when printing.
このような方式においては表示画面上に制御コードが挿
入されており、制御コード自体はプリントされないか
ら、プリントされた文書と表示画面に表示される文字と
はイメージが異なる。したがって、表示画面を見てもプ
リントされる文書のイメージが浮かばないため、表示画
面上で文書を作成することが困難だった。また、表示画
面に表示された文字のうちどこからどこまでがフォント
の異なる文字であるかを視認する場合に1文字の制御コ
ードを探して判断しなければならないので、フォントの
判断に手間がかかる欠点がある。特に小さな画面の表示
装置の場合にはスクロール等を行って探すため、フォン
トの異なる文字の範囲が解りにくく、文書の作成、編集
に時間がかかる欠点があった。In such a system, since the control code is inserted on the display screen and the control code itself is not printed, the printed document and the characters displayed on the display screen have different images. Therefore, it is difficult to create a document on the display screen because the image of the printed document does not appear even when the display screen is viewed. In addition, since it is necessary to search for a control code of one character to make a judgment when visually recognizing from where to where the characters displayed on the display screen have different fonts, there is a drawback that it takes time to judge the font. is there. Particularly in the case of a display device having a small screen, scrolling or the like is performed for searching, so that it is difficult to understand the range of characters having different fonts, and there is a drawback that it takes time to create and edit a document.
このような欠点を除去するため、表示画面上において
も実際に文字のフォントを切り換えて、プリントする通
りの文字を表示画面に表示することが考えられる。しか
しこのように異なる文字のフォントを表示画面に表示す
るためにはフォントの切り換え回路を必要とするため、
装置が高価になる欠点がある。また、複数種のフォント
の切り換えが可能な場合、その各々を切り換えるたびに
選択する必要があり、操作性が低く、使いにくい欠点が
あった。In order to eliminate such a defect, it is conceivable to actually switch the font of characters on the display screen and display the characters as they are printed on the display screen. However, in order to display different character fonts on the display screen in this way, a font switching circuit is required.
The disadvantage is that the device is expensive. Further, when a plurality of types of fonts can be switched, it is necessary to make a selection each time each of them is switched, and there is a drawback that the operability is low and it is difficult to use.
目的 本発明はこのような従来技術の欠点を解消し、操作性
が良く、しかも表示画面においてフォントの異なる文字
が容易に視認できる文字列処理装置を提供することを目
的とする。An object of the present invention is to solve the above-mentioned drawbacks of the prior art, to provide a character string processing device which has good operability and can easily visually recognize characters of different fonts on a display screen.
構成 本発明は上記の目的を達成させるため、文字列デー
タ、および文字列データに含まれる文字に属性を付加す
べきことを示す属性指示を入力する入力手段と、入力さ
れた文字列データを編集処理する編集処理手段と、編集
処理手段に接続され、文字列データおよび文字列データ
に含まれる文字の属性を表示する表示手段と、編集処理
手段に接続され、文字列データを複数種類の属性で印刷
出力することができる印刷手段とを有する文字列処理装
置において、印刷手段は印刷する文字の字体の種類を指
定する字体指定手段を有し、編集処理手段から文字列デ
ータを受け、文字列データに属性指示が含まれていると
きは、字体指定手段により指定されている字体にて文字
列データを印刷出力することを特徴としたものである。
以下、本発明の一実施例に基づいて具体的に説明する。Structure In order to achieve the above object, the present invention edits character string data and input means for inputting an attribute instruction indicating that an attribute should be added to a character included in the character string data, and the input character string data. An edit processing unit for processing, a display unit connected to the edit processing unit for displaying character string data and an attribute of a character included in the character string data, and a display unit connected to the edit processing unit for converting the character string data into plural types of attributes. In a character string processing device having a printing means capable of printing out, the printing means has a font designating means for designating a type of font of a character to be printed, receives the character string data from the editing processing means, and receives the character string data. When the attribute designation is included in the character string, the character string data is printed out in the character style designated by the character style designating means.
Hereinafter, a specific description will be given based on an embodiment of the present invention.
第1図には本発明による文字列処理装置の一実施例が
示されている。FIG. 1 shows an embodiment of a character string processing device according to the present invention.
本装置は、第2図にように例えばかなやアルファベッ
ト、数字などの文字キー、および変換キーやカーソル移
動キー、フォント切り換えキー、実行キーなどの機能キ
ーを有するキーボード202を含み、さらにフォント切換
えスイッチ204を含む入力装置2を有し、その出力が入
力制御部4に接続されている。変換キーは、本実施例で
は日本語ワードプロセッサ機能におけるかな漢字変換の
実行を指示する制御キーである。カーソル変動キーは、
表示装置の表示画面に表示されるカーソルの移動を指示
するキーである。As shown in FIG. 2, the present apparatus includes a keyboard 202 having character keys such as kana, alphabets, numbers, etc., and function keys such as a conversion key, a cursor movement key, a font switching key, an execution key, and a font switching switch. It has an input device 2 including 204, the output of which is connected to the input controller 4. The conversion key is a control key for instructing execution of kana-kanji conversion in the Japanese word processor function in this embodiment. The cursor change key
A key for instructing the movement of the cursor displayed on the display screen of the display device.
フォント切り換えキーは、本実施例では例えばフォント
を明朝体と他の字体との間で切り換えることを指示する
キーである。フォント切り換えキーにより切換える他の
字体はゴシック体、太丸ゴシック、斜体文字、白抜き文
字等があるが、本実施例では明朝体とゴシック体の間で
の変換について説明する。また、フォント切換えスイッ
チ204は本実施例では、印刷する文字のフォントを制御
コードのあるものだけゴシック体に切換えることを指示
する。In this embodiment, the font switching key is a key for instructing to switch the font between Mincho typeface and another typeface, for example. Other fonts that can be switched by the font switching key include Gothic font, bold Gothic font, italic font, white font, etc. In the present embodiment, conversion between Mincho font and Gothic font will be described. Further, the font changeover switch 204, in the present embodiment, instructs to change the font of the characters to be printed to the Gothic font only with the control code.
入力制御部4は、入力装置2から入力されたキー入力
データを識別し、文字キーによる文字列データや機能キ
ーによる制御指示を振り分け、それらに応じて文字編集
制御部8、制御コード制御部6、切換え制御部12等の各
機能部に指示を与え、またこれらにデータを送出する機
能部である。The input control unit 4 identifies the key input data input from the input device 2, distributes the character string data by the character keys and the control instruction by the function keys, and according to them, the character edit control unit 8 and the control code control unit 6 , The switching control unit 12 and the like to give an instruction to each functional unit and to send data to them.
制御コード制御部6は、入力装置2のフォント切換え
キーによる入力が入力制御部4を通して入力されると、
文字編集制御部8を制御し、文字格納エリア10に格納さ
れた現在のカーソル位置の文字に既に制御コードがある
か否かを判断し、既に制御コードがある場合には文字編
集制御部8を通して文字格納エリア10に格納された該当
文字の制御コードを削除し、現在のカーソル位置の文字
に制御コードがなければ制御コードを挿入する。When the input by the font switching key of the input device 2 is input through the input control unit 4, the control code control unit 6
The character edit control unit 8 is controlled to determine whether or not the character at the current cursor position stored in the character storage area 10 already has a control code. The control code of the corresponding character stored in the character storage area 10 is deleted, and if there is no control code for the character at the current cursor position, the control code is inserted.
文字編集制御部8は、本実施例では通常の日本語ワー
ドプロセス機能を有する機能部である。これには例えば
文節単位かな漢字変換、ローマ字かな漢字変換、文字列
データの挿入、削除、移動等の様々な編集処理が含ま
れ、また、それらのための変換辞書等も含まれる。The character edit control unit 8 is a functional unit having a normal Japanese word processing function in this embodiment. This includes, for example, various kana-kanji conversion for each phrase, roman kana-kanji conversion, various editing processes such as insertion, deletion, and movement of character string data, and a conversion dictionary for them.
文字格納エリア10は、文字編集制御部8に接続され、
入力装置2から制御コード制御部6を通して入力された
文字データおよび制御コードを一時的に格納する。The character storage area 10 is connected to the character edit control unit 8,
The character data and the control code input from the input device 2 through the control code control unit 6 are temporarily stored.
文字表示制御部14は、制御コード制御部6からの表示
要求により、文字格納エリア10に格納された文字コー
ド、制御コードを読み込み、1コードずつ評価する。コ
ードが文字コードであれば、そのまま表示用CGフォント
16から該当するフォントデータを読み出し、表示データ
格納部20に転送する。In response to a display request from the control code control unit 6, the character display control unit 14 reads the character code and control code stored in the character storage area 10 and evaluates each code one by one. If the code is a character code, CG font for display as it is
The corresponding font data is read from 16 and transferred to the display data storage unit 20.
表示用CGフォント16には明朝体のフォントデータが格
納されている。Mincho font data is stored in the display CG font 16.
文字表示制御部14は、コードが制御コード付きの文字
コードの場合には、表示用CGフォント16から読み出した
文字フォントを属性制御部18に出力する。属性制御部18
は文字表示制御部14から送られたその文字フォントの下
半分を白黒反転処理し、文字表示制御部14に出力する。When the code is a character code with a control code, the character display control unit 14 outputs the character font read from the display CG font 16 to the attribute control unit 18. Attribute control unit 18
Outputs the lower half of the character font sent from the character display control unit 14 to the character display control unit 14 after black and white inversion processing.
文字表示制御部14はまた、属性制御部18から送られた
下半分を白黒反転処理された文字フォントを表示データ
格納部20に転送する。The character display control unit 14 also transfers the lower half sent from the attribute control unit 18 to the display data storage unit 20 as a character font whose black and white is inverted.
また、文字表示制御部14は表示制御部22に出力指令を
出力する。表示制御部22は文字表示制御部14からの出力
指令により表示データ格納部20に格納されている文字フ
ォントおよび下半分を白黒反転処理された文字フォント
を読み出し、表示装置24に送る。表示装置24は、これら
の文字を第3図(a)に示すように表示する。すなわ
ち、明朝体で表示すべき文字は普通に表示し、ゴシック
体で表示する文字は前記の制御コードにより、例えば同
図の「LCTC−300」のように下半分を白黒反転処理して
表示する。Further, the character display control unit 14 outputs an output command to the display control unit 22. In response to an output command from the character display control unit 14, the display control unit 22 reads the character font stored in the display data storage unit 20 and the character font in which the lower half is subjected to black and white inversion processing, and sends it to the display device 24. The display device 24 displays these characters as shown in FIG. 3 (a). That is, the characters that should be displayed in Mincho font are displayed normally, and the characters displayed in Gothic font are displayed by black-and-white inversion processing of the lower half, for example, "LCTC-300" in the figure by the control code described above. To do.
印刷制御部26は入力装置2から入力制御部4を通して
印刷の指示が入力されると、印刷文字生成部28に印刷文
字の生成を要求する。印刷文字生成部28は印刷制御部26
からの要求により文字格納エリア10から文字コード、制
御コードを読み出し、印刷データ生成部30に転送する。When a print instruction is input from the input device 2 through the input control unit 4, the print control unit 26 requests the print character generation unit 28 to generate print characters. The print character generation unit 28 is the print control unit 26.
The character code and the control code are read from the character storage area 10 in response to the request from the user and transferred to the print data generation unit 30.
切り換え部32は入力装置2のフォント切換えスイッチ
204によりフォント切り換え指示が入力制御部4を通し
て切換え制御部12に入力されると、切換え制御部12から
の支持により切換えられる。切換え部32は文字格納エリ
アから読み出された文字に制御コードがついていない場
合には、印刷データ生成部30が表示用CGフオント16から
明朝体のフォントを読み出すように切り換えられる。入
力装置2のフォント切換えスイッチ204からのフォント
切換え指示により、文字格納エリア10から読み出された
文字に制御コードがついている場合にはゴシック体のフ
ォントを印刷するようにされているから、切換え部32
は、印刷用CGフォント34からゴシック体のフォントを読
み出すように切り換えられる。The changeover unit 32 is a font changeover switch of the input device 2.
When a font switching instruction is input to the switching control unit 12 through the input control unit 4 by 204, switching is performed by the support from the switching control unit 12. The switching unit 32 is switched so that the print data generation unit 30 reads the Mincho font from the display CG font 16 when the character read from the character storage area does not have a control code. When a character read from the character storage area 10 has a control code according to a font switching instruction from the font switching switch 204 of the input device 2, a Gothic font is printed. 32
Is switched to read a Gothic font from the print CG font 34.
印刷データ生成部30は、切り換え部32が制御コードに
より明朝体とゴシック体とで切り換えられるため、通常
のフォントアクセスにより表示用CGフォント16または印
刷用CGフォント34からフォーマットを読み出し、印刷バ
ッファ36に送る。Since the switching unit 32 switches between the Mincho typeface and the Gothic type by the control code, the print data generation unit 30 reads the format from the display CG font 16 or the print CG font 34 by normal font access, and the print buffer 36. Send to.
印刷文字生成部28は印刷バッファ36内のデータが1行
分そろった時に印刷バッファ36に印刷の指示を送り、印
刷バッファ36内のデータを印刷装置38に送る。印刷装置
38は印刷を行い、1行分の印刷を終了すると、終了の信
号を印刷制御部26に出力する。印刷制御部26は印刷装置
38から印刷終了の信号が入力されない限り、次の行を印
刷するため印刷文字生成部28に印刷文字の生成を要求す
る。The print character generation unit 28 sends a print instruction to the print buffer 36 when the data in the print buffer 36 is completed for one line, and sends the data in the print buffer 36 to the printing device 38. Printer
38 prints, and when the printing of one line is completed, it outputs an end signal to the print control unit 26. The print control unit 26 is a printing device.
Unless a print end signal is input from 38, the print character generation unit 28 is requested to generate print characters to print the next line.
印刷装置38により印刷された例を第3図(b)に示
す。同図に示すように「LCTC−300」の部分がゴシック
体で印刷される。An example printed by the printing device 38 is shown in FIG. As shown in the figure, the "LCTC-300" portion is printed in Gothic font.
第9図(a)に示すフローチャートにより文字の字体の
指定の動作について説明する。The operation for designating the character font will be described with reference to the flowchart shown in FIG.
入力装置2からカーソル移動キーにより所望の位置に
カーソルを停止させ、フォント切換えキーによる入力が
行われると(100)、この入力は入力制御部4を通して
制御コード制御部6に送られる。制御コード制御部6で
は文字編集制御部8を制御し、文字格納エリア10に格納
された現在のカーソル位置の文字を検索して認識し(10
2)、この文字の前に既に制御コードであるか否かを判
断し(104)、既に制御コードがある場合には文字編集
制御部8を通して文字格納エリア10に格納された該当文
字の前の制御コードを削除し(106)、現在のカーソル
位置の文字の前に制御コードがなければ制御コードを挿
入する(108)。このようにして文字格納エリア10内の
データを更新する。When the cursor is stopped at a desired position from the input device 2 by the cursor movement key and an input is made by the font switching key (100), this input is sent to the control code control unit 6 through the input control unit 4. The control code control unit 6 controls the character edit control unit 8 to search and recognize the character at the current cursor position stored in the character storage area 10 (10
2) It is judged whether or not this character is already a control code (104), and if there is already a control code, the character before the corresponding character stored in the character storage area 10 through the character edit control unit 8 is judged. The control code is deleted (106), and if there is no control code before the character at the current cursor position, the control code is inserted (108). In this way, the data in the character storage area 10 is updated.
次に第9図に示すフローチャートにより文字の表示装
置24への表示動作について説明する。Next, the operation of displaying characters on the display device 24 will be described with reference to the flowchart shown in FIG.
入力装置2からカーソル移動キーまたはスクロールポ
インタにより表示する文字の位置の指定を入力すること
により表示要求があった場合に(110)、この要求は入
力制御部4を通して制御コード制御部6に送られ、制御
コード制御部6は表示要求を文字表示制御部14に送る。When there is a display request by inputting the designation of the position of the character to be displayed from the input device 2 with the cursor movement key or the scroll pointer (110), this request is sent to the control code control unit 6 through the input control unit 4. The control code control unit 6 sends a display request to the character display control unit 14.
文字表示制御部14は、制御コード制御部6からの表示
要求により、文字格納エリア10のアドレスを生成し、文
字格納エリア10に格納された文字コード、制御コードを
読み出す(112)。文字表示制御部14は、読み出した文
字データに制御コードがあるか否かを判断し(114)、
制御コードがある場合には、表示用CGフォント16から読
み出した文字フォントを属性制御部18に出力し、属性を
セットする(116)。In response to the display request from the control code control unit 6, the character display control unit 14 generates the address of the character storage area 10 and reads the character code and control code stored in the character storage area 10 (112). The character display control unit 14 determines whether the read character data has a control code (114),
If there is a control code, the character font read from the display CG font 16 is output to the attribute control unit 18 and the attribute is set (116).
文字表示制御部14は、さらに表示用CGフォント16から
文字コードにより該当するフォントデータを読み出し
(118)、表示データ格納部20に転送する(120)。The character display control unit 14 further reads the corresponding font data from the display CG font 16 by the character code (118) and transfers it to the display data storage unit 20 (120).
表示用CGフォント16には明朝体のフォントデータが格
納されているから、ここで表示データ格納部20には明朝
体のフォントデータが格納される。Since the display CG font 16 stores Mincho font data, the display data storage unit 20 stores Mincho font data.
フォントに属性があるか否かを判断し(122)、属性
制御部18は表示制御部14から送られてきたフォントに属
性がある場合には、属性のセットされた文字フォントの
下半分を白黒反転処理し(124)、文字表示制御部14に
出力する。It is determined whether or not the font has an attribute (122), and if the font sent from the display control unit 14 has an attribute, the attribute control unit 18 sets the lower half of the character font for which the attribute is set to black and white. Inversion processing is performed (124) and output to the character display control unit 14.
文字表示制御部14は属性制御部18から送られた下半分
を白黒反転処理された文字フォントを表示データ格納部
に転送する(126)。The character display control unit 14 transfers the lower half sent from the attribute control unit 18 to the display data storage unit with the character font subjected to black and white inversion processing (126).
文字表示制御部14は表示制御部22に表示指令を出力する
(128)。表示制御部22は文字表示制御部14からの表示
指令により表示データ格納部20に格納されている文字フ
ォントおよび下半分を白黒反転処理された文字フォント
を読み出し、表示装置24に送る。表示装置24は、これら
の文字を第3図(a)に示すように表示する。すなわ
ち、明朝体で表示すべき文字は明朝体で普通に表示し、
ゴシック体で表示する文字は明朝体で表示するとともに
前記の制御コードにより下半分を白黒反転処理して表示
する。The character display control unit 14 outputs a display command to the display control unit 22 (128). In response to a display command from the character display control unit 14, the display control unit 22 reads the character font stored in the display data storage unit 20 and the character font whose lower half has been subjected to black and white inversion processing, and sends it to the display device 24. The display device 24 displays these characters as shown in FIG. 3 (a). That is, the characters that should be displayed in Mincho type are normally displayed in Mincho type,
Characters displayed in Gothic font are displayed in Mincho font, and the lower half is displayed in black and white by the control code.
表示が終了したか否かを判断し(130)、表示が終了
していない場合にはステップ112に戻り、再び文字格納
エリア10に格納された文字コード、制御コードを読み出
す。It is judged whether or not the display is completed (130). If the display is not completed, the process returns to step 112, and the character code and the control code stored in the character storage area 10 are read again.
次に第9図(c)に示すフローチャートにより文字の
印刷動作について説明する。Next, the character printing operation will be described with reference to the flowchart shown in FIG.
印刷制御部26は入力装置2から入力制御部4を通して
印刷の指示が入力されると、印刷文字生成部28に印刷文
字の生成を要求する(140)。印刷文字生成部28は印刷
制御部26からの要求により文字格納エリア10から文字コ
ード、制御コードを読み出し(142)、印刷データ生成
部30に転送する。When a print instruction is input from the input device 2 through the input control unit 4, the print control unit 26 requests the print character generation unit 28 to generate print characters (140). The print character generation unit 28 reads the character code and the control code from the character storage area 10 in response to a request from the print control unit 26 (142) and transfers them to the print data generation unit 30.
切り換え部32には入力装置2のフォント切換えスイッ
チにより、あらかじめフォント切り換え指示が入力制御
部4を通して切換え制御部12に入力されることにより、
切換え制御部12からの指示により制御コードつきの文字
のフォントをゴシック体とするように切換えられてい
る。すなわち切換え部32は制御コードをつけて特別に指
示した文字以外の文字については、印刷データ生成部30
が表示用CGフォント16から明朝体のフォントを読み出す
ように切り換えられ、制御コードをつけて特別に指示し
た文字については、印刷用CGフォント34からゴシック体
のフォントを読み出すように切り換えられる。By inputting a font switching instruction to the switching control unit 12 through the input control unit 4 in advance by the font switching switch of the input device 2 to the switching unit 32,
In response to an instruction from the switching control unit 12, the font of characters with control codes is switched to have a Gothic font. That is, the switching unit 32 uses the print data generation unit 30 for the characters other than the characters specially designated with the control code.
Is switched to read a Mincho font from the display CG font 16, and a character specially designated with a control code is switched to read a Gothic font from the printing CG font 34.
したがって印刷文字生成部28は文字に制御コードがあ
るか否かを判断し(144)、制御コードがない場合には
明朝体のフォントアドレスを生成し、表示用CGフォン16
から切換え部32を通して明朝体のフォントを読み出す
(146)。制御コードがある場合には入力装置2のフォ
ント切換えキー204からの指示によりゴシック体のフォ
ントアドレスを生成し(148)、印刷用CGフォント34か
らゴシック体のフォントを読み出す(150)。Therefore, the print character generation unit 28 determines whether or not the character has a control code (144), and if there is no control code, generates a font address of Mincho typeface, and displays the CG phone 16 for display.
The font of Mincho type is read through the switching unit 32 from (146). If there is a control code, a Gothic font address is generated according to an instruction from the font switching key 204 of the input device 2 (148), and a Gothic font is read from the print CG font 34 (150).
切り換え部32がこのように切り換えられると、印刷デ
ータ生成部30は通常のフォントアクセスにより表示用CG
フォント16または印刷用CGフォント34からフォントを読
み出し、印刷バッファ36に送る(152)。When the switching unit 32 is switched in this way, the print data generating unit 30 uses the normal font access to display CG.
The font is read from the font 16 or the CG font 34 for printing and sent to the print buffer 36 (152).
印刷文字生成部28は印刷バッファ36内のデータが1行
分そろったか否かを判断し(154)、1行分そろった時
に印刷バッファ36に印刷開始の指示を送り(156)、印
刷バッファ36内のデータを印刷装置38に送る。印刷バッ
ファ36内のデータが1行分そろっていない場合にはステ
ップ142に戻り、再び印刷文字生成部28に印字文字の生
成を要求する。The print character generation unit 28 determines whether the data in the print buffer 36 is complete for one line (154), and when one line is complete, sends a print start instruction to the print buffer 36 (156), and the print buffer 36 And sends the data in the printer 38. If the data in the print buffer 36 is not complete for one line, the process returns to step 142 and the print character generation unit 28 is requested again to generate print characters.
印刷装置38は印刷を行い、1行分の印刷を終了する
と、終了の信号を印刷制御部26に出力する。印刷制御部
26は印刷装置38から印刷終了の信号が入力されたか否か
を判断し(158)、入力されない限り、ステップ142に戻
って次の行を印刷するため印刷文字生成部28に印刷文字
の生成を要求する。The printing device 38 performs printing, and when printing of one line is completed, outputs an end signal to the print control unit 26. Print control unit
26 determines whether or not a print end signal is input from the printing device 38 (158), and if not input, returns to step 142 to generate a print character in the print character generation unit 28 to print the next line. Request.
印刷装置38により印刷された例を第3図(b)に示
す。同図に示すように「LCTC−300」の部分がゴシック
体で印刷されている。An example printed by the printing device 38 is shown in FIG. As shown in the figure, the "LCTC-300" portion is printed in Gothic font.
以上のように表示装置24に表示される字体は第3図
(a)に示すように明朝体であり、ゴシック体でプリン
トされるべき部分のみ下半分を白黒反転表示されてい
る。したがって、操作者は表示装置24に表示された文字
の白黒反転表示されている部分を見て、この部分がゴシ
ック体、その他の部分が明朝体で表示されることを判断
することができる。As described above, the font displayed on the display device 24 is the Mincho font as shown in FIG. 3A, and the lower half of only the portion to be printed in the Gothic font is displayed in black and white. Therefore, the operator can see the portion of the characters displayed on the display device 24 which is displayed in black and white in reverse, and can determine that this portion is displayed in Gothic font and the other portion is displayed in Mincho font.
従来は表示装置24に表示する場合に第4図(a)に示
すように、文字の前に制御コード50を挿入して字体を表
示し、これを第4図(b)に示すように印刷していた。
したがって、画面に表示される文字と印刷される文字の
配置が制御コード50の挿入分ずれるため、実際に印刷さ
れる文字と表示装置24に表示される文字との間に字数や
文字の間隔の差異があり、印刷される文字の様子を表示
装置24の表示から判断することができなかった。Conventionally, when displaying on the display device 24, as shown in FIG. 4 (a), a control code 50 is inserted before a character to display a font, and this is printed as shown in FIG. 4 (b). Was.
Therefore, since the arrangement of the characters displayed on the screen and the characters printed is shifted by the insertion of the control code 50, the number of characters and the character spacing between the characters actually printed and the characters displayed on the display device 24 may be different. There was a difference, and it was not possible to judge the appearance of the printed characters from the display on the display device 24.
これに対して本実施例によれば、制御コードが表示さ
れないため、印刷される文字の字数や文字の間隔等のイ
メージを表示画面において正確に判断することができ
る。On the other hand, according to the present embodiment, since the control code is not displayed, it is possible to accurately determine the image such as the number of characters to be printed or the character spacing on the display screen.
また、表示装置24の表示画面において字体の異なる部
分は文字の下半分を白黒反転表示しているから、ゴシッ
ク体で表示される部分を容易に見分けることができる。
しかも挿入された制御コードを探して字体を判断する必
要がないため、小さな画面においてスクロールを行う場
合にも字体の異なる文字の部分を容易に見わけることが
できる。Further, in the display screen of the display device 24, the lower half of the characters of different fonts is displayed in black and white, so that the portion displayed in Gothic can be easily identified.
Moreover, since it is not necessary to search for the inserted control code to determine the character style, it is possible to easily distinguish the character portions having different character styles even when scrolling on a small screen.
表示装置24にはゴシック体で印刷する文字を反転表示
により表示しているから、フォントの切換え回路を設け
てフォントを切換えて表示するもののように切換え回路
を設ける必要がないため、安価である。Since the characters to be printed in Gothic font are displayed in reverse on the display device 24, there is no need to provide a switching circuit as in the case of providing a font switching circuit to switch and display the fonts, which is inexpensive.
フォント指示は文字ごとに行うことができ、一旦指定
したフォント指示を後に制御コードを入力することによ
り変更することも容易である。The font instruction can be given for each character, and it is easy to change the font instruction once specified by inputting the control code later.
第5図には本発明による文字列処理装置の他の実施例が
示されている。FIG. 5 shows another embodiment of the character string processing device according to the present invention.
この実施例においては、表示用CGフォント16、印刷用
CGフォント34の他に、さらに異なる字体のフォントを格
納するCGフォント40が設けられている。また、入力制御
部4と切換え部32との間に切換え制御部12の他に切換え
制御部13が設けられている。他の構成要素は第1図の実
施例と同様であるから説明を省略する。In this embodiment, for display CG font 16, for printing
In addition to the CG font 34, a CG font 40 that stores fonts of different fonts is provided. In addition to the switching control unit 12, a switching control unit 13 is provided between the input control unit 4 and the switching unit 32. The other components are similar to those of the embodiment shown in FIG.
この装置においては第6図に示すように、入力装置2
には前記のフォント切換えスイッチ204の他に、ベース
フォント切換えスイッチ206が設けられている。フォン
ト切換スイッチ204は同図に示すように、ゴシック体、
明朝体、その他の間で切換えられる。その他の字体はCG
フォント40に格納されている。In this device, as shown in FIG. 6, the input device 2
In addition to the font changeover switch 204 described above, a base font changeover switch 206 is provided. The font changeover switch 204 is, as shown in FIG.
It can be switched between Mincho type and others. Other fonts are CG
It is stored in font 40.
フォント切換えスイッチ204が例えばゴシック体にセ
ットされている場合には、この指示は入力装置2から入
力制御部4、切換え制御部13を通して切換え部32に送ら
れ、印刷データ生成部30は切換え部32を通して印刷用CG
フォント34からゴシック体のフォントを読み出し、制御
コードのついた文字はゴシック体で印刷される。When the font changeover switch 204 is set to, for example, a Gothic font, this instruction is sent from the input device 2 to the changeover unit 32 through the input control unit 4 and the changeover control unit 13, and the print data generation unit 30 is changed to the changeover unit 32. CG for printing through
A Gothic font is read out from the font 34, and characters with control codes are printed in Gothic font.
ベースフォント切換えスイッチ206も同図に示すよう
に、ゴシック体、明朝体、その他の間で切換えられる。
ベースフォント切換えスイッチ206が例えば明朝体にセ
ットされている場合には、この指示は入力装置2から入
力制御部4、切換え制御部12を通して切換え部32に送ら
れ、制御コードのついていない文字は明朝体で印刷され
る。すなわち、制御コードにより属性をもたされていな
いベースの文字フォントが明朝体であることを指示して
いる。The base font changeover switch 206 is also changed over between the Gothic type, the Mincho type, and the like, as shown in FIG.
When the base font changeover switch 206 is set to, for example, Mincho type, this instruction is sent from the input device 2 to the changeover unit 32 through the input control unit 4 and the changeover control unit 12, and characters without a control code Printed in Mincho. That is, it indicates that the base character font that is not given the attribute by the control code is the Mincho typeface.
したがってこの場合には、第10図に示すようにステッ
プ144において制御コードがない場合に、ステップ147に
おいてベースフォント切換えスイッチ206によりベース
フォントが明朝体に指定された後、印刷データ生成部30
は切換え部32を通して表示用CGフォント16から明朝体の
フォントを読み出す。第10図の他の動作は第9図(c)
と同様である。Therefore, in this case, when there is no control code in step 144 as shown in FIG. 10, after the base font is specified in Mincho by the base font changeover switch 206 in step 147, the print data generation unit 30
Reads the Mincho font from the display CG font 16 through the switching unit 32. The other operation of FIG. 10 is shown in FIG. 9 (c).
Is the same as
この実施例によれば、フォント切換えスイッチ204に
よって制御コードのついた文字の印刷されるフォントを
指示できるだけでなく、ベースフォント切換えスイッチ
206によって制御コードのいついていない文字の印刷さ
れるフォントをも指示することができる。したがって第
5図に示すような3種類のフォントの中から、ベースの
フォントおよび制御コードにより属性を付加されたフォ
ントをそれぞれどのような字体で印刷するかを印刷時に
指定することができるので、印刷する字体の選択の幅が
広い。According to this embodiment, not only the font changeover switch 204 can indicate the font in which the characters with the control code are printed, but also the base font changeover switch.
By 206, it is possible to specify the printed font of the characters without the control code. Therefore, from among the three types of fonts shown in FIG. 5, it is possible to specify at the time of printing which font to use for printing the base font and the font to which attributes have been added by the control code. A wide range of fonts to choose from.
第7図には本発明による文字列処理装置のさらに他の
実施例が示されている。FIG. 7 shows still another embodiment of the character string processing device according to the present invention.
この実施例においては、同図に示す機能ブロック図の構
成要素は第1図の実施例と同様であるから説明を省略す
る。In this embodiment, the components of the functional block diagram shown in the figure are the same as those in the embodiment of FIG.
この装置においては第8図に示すように、入力装置2
のフォント切換えスイッチ204は例えば明朝体、ゴシッ
ク体の間で切換えるようにされている。フォント切換え
スイッチ204が明朝体に切換えられている場合には、こ
れによりベースフォントが明朝体とされ、制御コードの
ない文字は明朝体で印刷される。制御コードのある文字
はフォント切換えスイッチ204の指示するものと逆のゴ
シック体で印刷される。In this device, as shown in FIG.
The font changeover switch 204 is adapted to switch between Mincho typeface and Gothic typeface, for example. When the font changeover switch 204 is switched to Mincho type, the base font is set to Mincho type, and characters without a control code are printed in Mincho type. A character with a control code is printed in a Gothic font that is the reverse of what the font switch 204 indicates.
したがって、第11図のステップ144において制御コー
ドがない場合には、ステップ147においてフォント切換
えスイッチ204によりベースフォントが明朝体に指定さ
れた後、印刷データ生成部30は切換え部32を通して表示
用CGフォント16から明朝体のフォントを読み出す。Therefore, when there is no control code in step 144 of FIG. 11, after the base font is designated as Mincho by the font changeover switch 204 in step 147, the print data generation unit 30 causes the changeover unit 32 to display CG for display. Read Mincho font from font 16.
ステップ144において制御コードがある場合には、ス
テップ149においてフォント切換えスイッチ204により指
定されたベースフォントと逆のフォントによりゴシック
体のフォントアドレスを生成し、印刷用CGフォント34か
らゴシック体のフォントデータを読み出す(150)。そ
の他の動作は第9図(a)と同様である。If there is a control code in step 144, a gothic font address is generated by a font reverse to the base font specified by the font changeover switch 204 in step 149, and the gothic font data is output from the printing CG font 34. Read (150). Other operations are the same as in FIG. 9 (a).
この実施例においては、切換え制御部12からの切換え
の指示および印刷データ生成部28からの制御コードによ
る読み出しの指示はいずれも「1」「0」の2値の指示
であり、それぞれどちらかが選択される。In this embodiment, the switching instruction from the switching control section 12 and the reading instruction by the control code from the print data generating section 28 are both binary instructions of "1" and "0". To be selected.
この実施例によれば、ベースのフォントを容易に切換
えることができる。According to this embodiment, the base font can be easily switched.
上記の各実施例においては、明朝体とゴシック体の間で
の字体の変換を行っているが、太丸ゴシック、斜体文
字、白抜き文字等その他の字体についても適用可能であ
り、例えば印刷用CGフォント34に太丸ゴシックを格納
し、明朝体と太丸ゴシックとの間で制御コードにより変
換を行うことも可能である。In each of the above embodiments, the font is converted between Mincho and Gothic, but it is also applicable to other fonts such as bold circle Gothic, italicized characters, and outlined characters. It is also possible to store Taimaru Gothic in the CG font 34 for use and convert between Mincho typeface and Taimaru Gothic by a control code.
また、上記の実施においてはCGフォントの切換えによ
りフォントの変換を行っているが、明朝体からゴシック
体への変換のようなフォントの変換アルゴによる切換え
によりフォントの変換を行うものとしてもよい。Further, although the font conversion is performed by switching the CG font in the above-described implementation, the font conversion may be performed by switching by the font conversion algorithm such as conversion from Mincho typeface to Gothic typeface.
効果 本発明によれば、印刷手段に設けられた字体指定手段
により印刷する文字の字体を選択して指定することがで
き、表示手段に表示された文字の属性により印刷する字
体の異なる文字を判断することができる。Effect According to the present invention, it is possible to select and designate the font of the character to be printed by the font designating means provided in the printing means, and to judge the character of different font to be printed by the attribute of the character displayed on the display means. can do.
しかも、文字の属性は容易に指定、変更できるから異
なる字体にする文字の変更も容易である。Moreover, since the character attributes can be easily specified and changed, it is easy to change the character to have a different font.
第1図は本発明による文字列処理装置の一実施例を示す
機能ブロック図、 第2図は第1図の装置の概観を示す斜視図、 第3図(a)は第1図の装置の表示装置に表示される例
を示す図、 第3図(b)は第1図の装置の印刷装置により印刷され
る例を示す図、 第4図(a)は従来の装置の表示装置に表示される例を
示す図、 第4図(b)は従来の装置の印刷装置により印刷される
例を示す図、 第5図は本発明による文字列処理装置の他の実施例を示
す図、 第6図は第5図の装置の概観を示す斜視図、 第7図は本発明による文字列処理装置の他の実施例を示
す図、 第8図は第7図の装置の概観を示す斜視図、 第9図(a)は第1図の装置における文字の指定の動作
を示すフローチャート、 第9図(b)は第1図の装置における表示の動作を示す
フローチャート、 第9図(c)は第1図の装置における印刷の動作を示す
フローチャート、 第10図は第5図の装置における印刷の動作を示すフロー
チャート、 第11図は第7図の装置における印刷の動作を示すフロー
チャートである。 主要部分の符号の説明 2……入力装置 6……制御コード制御部 8……文字編集制御部 10……文字格納エリア 14……文字表示制御部 16……表示用CGフォント 18……属性制御部 24……表示装置 26……印刷制御部 32……切換え部 34……印刷用CGフォント 38……印刷装置 204……フォント切換えスイッチ 206……ベースフォント切換えスイッチ1 is a functional block diagram showing an embodiment of a character string processing device according to the present invention, FIG. 2 is a perspective view showing an overview of the device of FIG. 1, and FIG. 3 (a) is a device of FIG. FIG. 3 (b) is a diagram showing an example displayed on a display device, FIG. 3 (b) is a diagram showing an example printed by the printing device of the device of FIG. 1, and FIG. 4 (a) is displayed on a display device of a conventional device. FIG. 4 (b) is a diagram showing an example printed by a conventional printing device, FIG. 5 is a diagram showing another embodiment of the character string processing device according to the present invention, FIG. 6 is a perspective view showing the appearance of the apparatus of FIG. 5, FIG. 7 is a view showing another embodiment of the character string processing apparatus according to the present invention, and FIG. 8 is a perspective view showing the appearance of the apparatus of FIG. 9 (a) is a flow chart showing a character designating operation in the apparatus of FIG. 1, and FIG. 9 (b) is a display operation in the apparatus of FIG. FIG. 9 (c) is a flowchart showing the printing operation in the apparatus of FIG. 1, FIG. 10 is a flowchart showing the printing operation in the apparatus of FIG. 5, and FIG. 11 is in the apparatus of FIG. 6 is a flowchart showing a printing operation. Explanation of main part code 2 …… Input device 6 …… Control code control unit 8 …… Character edit control unit 10 …… Character storage area 14 …… Character display control unit 16 …… Display CG font 18 …… Attribute control Part 24 …… Display device 26 …… Print control unit 32 …… Switching unit 34 …… Printing CG font 38 …… Printing device 204 …… Font changeover switch 206 …… Base font changeover switch
Claims (5)
まれる文字に属性を付加すべきことを示す属性指示を入
力する入力手段と、 該入力された文字列データを編集処理する編集処理手段
と、 該編集処理手段に接続され、文字列データおよび該文字
列データに含まれる文字の属性を表示する表示手段と、 前記編集処理手段に接続され、文字列データを複数種類
の属性で印刷出力することができる印刷手段とを有する
文字列処理装置において、 前記印刷手段は印刷する文字の字体の種類を指定する字
体指定手段を有し、前記編集処理手段から文字列データ
を受け、該文字列データに前記属性指示が含まれている
ときは、前記字体指定手段により指定されている字体に
て該文字列データを印刷出力することを特徴とする文字
列処理装置。1. Input means for inputting character string data and an attribute instruction indicating that an attribute should be added to a character included in the character string data, and edit processing means for editing the input character string data. A display unit which is connected to the editing processing unit and displays the character string data and the attributes of characters included in the character string data; and a printing unit which is connected to the editing processing unit and prints the character string data with a plurality of types of attributes. In the character string processing device having a printing unit capable of performing the printing, the printing unit has a font designating unit that designates a type of a font of a character to be printed, receives the character string data from the editing processing unit, and receives the character string. A character string processing device, wherein when the data includes the attribute instruction, the character string data is printed out in a character style designated by the font designating means.
て、前記字体指定手段は前記属性指示のある文字を印刷
する字体を指定することを特徴とする文字列処理装置。2. The character string processing device according to claim 1, wherein the font designating means designates a font for printing a character with the attribute designation.
て、前記字体指定手段は前記属性指示のない文字を印刷
する字体を指定することを特徴とする文字列処理装置。3. The character string processing device according to claim 1, wherein the font designating means designates a font for printing characters without the attribute designation.
て、前記字体指定手段は前記属性指示のある文字および
前記属性指示のない文字のそれぞれの印刷字体を指定す
ることを特徴とする文字列処理装置。4. The character string according to claim 1, wherein the font designating unit designates a print font of each of the character with the attribute designation and the character without the attribute designation. Processing equipment.
て、前記表示手段に表示される前記文字の属性は、文字
の下部を白黒反転することにより表示されるものである
ことを特徴とする文字列処理装置。5. The apparatus according to claim 1, wherein the attribute of the character displayed on the display means is displayed by inverting the lower part of the character in black and white. String processing device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61080225A JPH0823744B2 (en) | 1986-04-09 | 1986-04-09 | Character string processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61080225A JPH0823744B2 (en) | 1986-04-09 | 1986-04-09 | Character string processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62237495A JPS62237495A (en) | 1987-10-17 |
| JPH0823744B2 true JPH0823744B2 (en) | 1996-03-06 |
Family
ID=13712417
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61080225A Expired - Lifetime JPH0823744B2 (en) | 1986-04-09 | 1986-04-09 | Character string processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0823744B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01225987A (en) * | 1988-03-07 | 1989-09-08 | Brother Ind Ltd | string display device |
| JP2562555Y2 (en) * | 1988-08-31 | 1998-02-10 | カシオ計算機株式会社 | Word processor |
| JPH04192070A (en) * | 1990-11-27 | 1992-07-10 | Hitachi Ltd | Document preparing device |
| JP2588288Y2 (en) * | 1997-06-24 | 1999-01-06 | カシオ計算機株式会社 | Word processor |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59132030A (en) * | 1983-01-17 | 1984-07-30 | Toshiba Corp | Documentation device |
-
1986
- 1986-04-09 JP JP61080225A patent/JPH0823744B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62237495A (en) | 1987-10-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6342305B2 (en) | ||
| US5084820A (en) | Entry text display system | |
| JPH0823744B2 (en) | Character string processor | |
| JPH0785027A (en) | Document editing device | |
| JP3371435B2 (en) | Input mode automatic setting method or input mode automatic setting device | |
| JPS6260657A (en) | character processing device | |
| JPH0511319B2 (en) | ||
| JP2555036B2 (en) | Character string input device | |
| JP2756246B2 (en) | Character processor | |
| JP2571043B2 (en) | Character replacement device | |
| JPS59140541A (en) | Character processing device | |
| JPH0640325B2 (en) | Writing device | |
| JPH0778133A (en) | Document creating apparatus and character pattern output method | |
| JP2592840B2 (en) | Character processor | |
| JPH0638256B2 (en) | Input/Output Devices | |
| JPH0666065B2 (en) | Document processor with furigana addition function | |
| JPH04282755A (en) | Word processor | |
| JPH0756649B2 (en) | Document creation device | |
| JPH0346056A (en) | Document generation device | |
| JPS6341923A (en) | Method of changing kind of character in keyboard inputting | |
| JPH04276854A (en) | Word processor | |
| JPH0661080B2 (en) | Document processor with furigana addition function | |
| JPS61173376A (en) | Keyboard device for word processor | |
| JPH06259414A (en) | Method of outputting furigana of document creation device and device | |
| JPH08235164A (en) | Document display device display control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |