JPS6230294A - Expression system for special character - Google Patents

Expression system for special character

Info

Publication number
JPS6230294A
JPS6230294A JP60169968A JP16996885A JPS6230294A JP S6230294 A JPS6230294 A JP S6230294A JP 60169968 A JP60169968 A JP 60169968A JP 16996885 A JP16996885 A JP 16996885A JP S6230294 A JPS6230294 A JP S6230294A
Authority
JP
Japan
Prior art keywords
code
character
circuit
special
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
JP60169968A
Other languages
Japanese (ja)
Inventor
恒美 望月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP60169968A priority Critical patent/JPS6230294A/en
Publication of JPS6230294A publication Critical patent/JPS6230294A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [発明の技術分野] 本発明は、例えばワードプロセッサ等の文書作成機能を
持つ情報処理機器に於ける特殊文字の表現方式に関する
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a method for representing special characters in an information processing device having a document creation function, such as a word processor.

[従来技術とその問題点] 従来、ワードプロセッサ等の文書作成機能を持つ情報処
理機器に於いて、例えば「■」のような特殊文字を出力
するためには、その特殊文字の漢字コードに対応する文
字パターンを持たせなければならなかった。即ち、文書
作成字等で多用する特殊文字の漢字コードの文字パター
ンを全て予め登録しておく必要があった。
[Prior art and its problems] Conventionally, in information processing devices with document creation functions such as word processors, in order to output a special character such as "■", it is necessary to output a special character that corresponds to the kanji code of the special character. It had to have a character pattern. That is, it was necessary to register in advance all the character patterns of kanji codes for special characters frequently used in document creation.

あるいは、2文字の漢字コードと、予め設定した特殊コ
ードとを使用して、1文字の文1字パターンを合成して
いた。例えば、「○」の漢字コードであるro 127
Jと、予め設定した特殊コードと、「1」の漢字コード
であるro 317Jとから、「■」を合成していた。
Alternatively, a single character pattern of a single character was synthesized using a two-character kanji code and a preset special code. For example, ro 127, which is the kanji code for "○"
"■" was synthesized from J, a preset special code, and ro 317J, which is the kanji code for "1".

または、2文字の1文字目を特殊コードとして、1文−
字の文字パターンを合成していた。例えば、rOJの特
殊コードであり且つ次のコードと合成するための予め設
定した特殊コードと、「1」の漢字コードであるro 
317Jとから、r■」を合成していた。
Or, use the first character of two characters as a special code to make one sentence -
I was synthesizing character patterns. For example, the special code for rOJ and a special code set in advance to be combined with the next code, and the kanji code for "1" for ro.
317J, "r■" was synthesized.

しかし、これら合成によるものは、表示又は印字の列と
メモリ上のサイズとが異なるため、そのデータを扱うプ
ログラムは全て、余分な処理を行なわなければならない
という欠点を有していた。
However, these combination methods have the disadvantage that since the display or print columns and the memory size are different, any program that handles the data must perform extra processing.

[発明の目的] 本発明は上記の点に鑑みて成されたもので、使用頻度が
高く且つ2文字を合成することによって表現される文字
を、表示及び印字の列とメモリ上のサイズを一致させた
状態で表現することが可能な特殊文字の表現方式を提供
することを目的とする。
[Objective of the Invention] The present invention has been made in view of the above points, and it is possible to match characters that are frequently used and are expressed by combining two characters by matching the display and print columns with the size in memory. The purpose of this invention is to provide a method for expressing special characters that can be expressed in

[発明の要点] 本発明はこのような目的を達成するため、「○」、1口
」等の図形文字と、英数字、カタカナ等の1バイトで表
現できる文字とを合成して表現される「■」等の特殊文
字のコードを、上記「○」や1口」等の図形文字に対応
する予め設定された1バイトコードと、上記英数字やカ
タカナ等に相当する1バイトコードとから成る2バイト
コードを用いて表現することを特徴とする。
[Summary of the Invention] In order to achieve the above-mentioned object, the present invention is expressed by combining graphic characters such as "○" and "1 mouth" with characters that can be expressed in one byte such as alphanumeric characters and katakana. Codes for special characters such as "■" are composed of preset 1-byte codes corresponding to graphical characters such as "○" and 1-ku, and 1-byte codes corresponding to the alphanumeric characters and katakana characters listed above. It is characterized by being expressed using a 2-byte code.

〔発明の実施例] 以下図面を参照して本発明の一実施例を説明する。第1
図中10は、供給された2バイトの漢字コードを格納す
る表示文字レジスタである。この場合、上記漢字コード
は、上位1バイトが、例えばroj を意味する(FE
) 1e や、1口」を意味する(FD)l B等の予
め設定された特殊コードであり、下位1バイトが、1バ
イトで表現できる英数字やカタカナ等のEBCD I 
CコードやASCIIコードのもの(以下、アルファコ
ードと称す)である。即ち、EBCDICコードを用 
  □いた場合には、「■」は(FEF 1) 1a、
rQJ    ’は(FECI) 1s、1口」は(F
D81) 1e等の漢字コード表現となる。このように
、上記表示文字レジスタ10には、1バイトで表現でき
る英数字、カタカナ等の文字と、「○」や「口」等の図
形文字とを合成して表現する文字のコードとして、漢字
1文字と同じ2バイトのコードが格納されるものである
[Embodiment of the Invention] An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, numeral 10 is a display character register that stores the supplied 2-byte Kanji code. In this case, the upper 1 byte of the above Kanji code means, for example, roj (FE
) 1e or (FD)l B, which means 1 unit, is a preset special code, and the lower 1 byte is an EBCD code such as alphanumeric characters or katakana that can be expressed in 1 byte.
This code is a C code or an ASCII code (hereinafter referred to as an alpha code). In other words, using the EBCDIC code
If □, “■” is (FEF 1) 1a,
rQJ' is (FECI) 1s, 1 mouth' is (F
D81) Kanji code expression such as 1e. In this way, the display character register 10 stores kanji characters as codes for characters expressed by combining alphanumeric characters, katakana characters, etc. that can be expressed in one byte, and graphic characters such as "○" and "mouth". A 2-byte code equivalent to one character is stored.

図中12は、特殊コードテーブルであって、これは特殊
コードと漢字コードとが対応している。
12 in the figure is a special code table, in which special codes and kanji codes correspond.

14は比較回路であって、これは上記表示文字レジスタ
10に格納された漢字コードの上位1バイトと、上記特
殊コードテーブル12の特殊コードとを比較する。16
は、上記特殊コードテーブル12の漢字コードを一方の
入力とし、且つ上記比較回路14の出力を他方の入力と
するAND回路である。また、18は上記表示文字レジ
スタ10に格納された漢字コードを一方の入力とし、且
つ上記比較回路14の反転出力を他方の入力とするAN
D回路である。20は、上記AND回路16の出力を一
方の入力とし、且つ上記AND回路18の出力を他方の
入力とするOR回路である。
14 is a comparison circuit which compares the upper one byte of the Kanji code stored in the display character register 10 and the special code in the special code table 12. 16
is an AND circuit which takes the Kanji code of the special code table 12 as one input and the output of the comparison circuit 14 as the other input. Further, 18 is an AN having one input as the kanji code stored in the display character register 10 and the other input as the inverted output of the comparison circuit 14.
This is the D circuit. Reference numeral 20 denotes an OR circuit having one input as the output of the AND circuit 16 and the other input as the output of the AND circuit 18.

22は、上記OR回路20の出力を格納する表示文字レ
ジスタである。24は、上記表示文字レジスタ22に格
納された漢字コードを、表示又は印字等のフォントパタ
ーンに変換するための漢字コード/文字パターン変換回
路である。
22 is a display character register that stores the output of the OR circuit 20. 24 is a kanji code/character pattern conversion circuit for converting the kanji code stored in the display character register 22 into a font pattern for display or printing.

また、26は上記表示文字レジスタ10に格納された漢
字コードの下位1バイト、即ちアルファコードを、2バ
イトの漢字コードに変換するためのアルファコード/漢
字コード変換回路である。
Further, 26 is an alpha code/kanji code conversion circuit for converting the lower 1 byte of the kanji code stored in the display character register 10, that is, the alpha code, into a 2-byte kanji code.

28は、上記アルファコード/漢字コード変換回路26
にて変換された漢字コードをフォントパターンに変換す
るための漢字コード/文字パターン変換回路である。3
0は、上記漢字コード/文字パターン変換回路28にて
変換されたフォントパターンを、約20%縮小するため
の文字縮小回路である。
28 is the alpha code/kanji code conversion circuit 26
This is a kanji code/character pattern conversion circuit for converting kanji codes converted into font patterns. 3
0 is a character reduction circuit for reducing the font pattern converted by the Kanji code/character pattern conversion circuit 28 by about 20%.

そして、32は上記文字縮小回路30の出力を一方の入
力とし、且つ上記比較回路14の出力を他方の入力とす
るAND回路である。34は、上記AND回路32の出
力を一方の入力とし、且つ上記漢字コード/文字パター
ン変換回路24の出力を他方の入力とするOR回路であ
る。なお、36はキャラクタジェネレータRAM (以
下、CGRAMと称す)、38は表示制御回路、40は
CRTディスプレイである。
32 is an AND circuit which takes the output of the character reduction circuit 30 as one input and the output of the comparison circuit 14 as the other input. 34 is an OR circuit which takes the output of the AND circuit 32 as one input and the output of the Kanji code/character pattern conversion circuit 24 as the other input. Note that 36 is a character generator RAM (hereinafter referred to as CGRAM), 38 is a display control circuit, and 40 is a CRT display.

このような構成のものでは、上記表示文字レジスタ10
に供給される漢字コードが、特殊文字に対応する漢字コ
ードの場合に於ける動作と、通常の漢字コードの場合に
於ける動作との2通りの動作がある。以下、特殊文字に
対応する漢字コードの場合に於ける動作に関して説明を
行なう。即ち、特殊文字に対応する予め設定された2バ
イトの漢字コードが、上記表示文字レジスタ10に格納
される。そして、上記格納された漢字コードの上位1バ
イト、即ち特殊コードと、上記特殊コードテーブル12
の内容が、上記比較回路14にて比較される。この場合
、上記特殊コードテーブル12の先頭から順に、上記比
較回路14に特殊コードが供給されると共に、その特殊
コードに対応する漢字コードが上記AND回路16に供
給される。
In such a configuration, the display character register 10
There are two types of operations: one when the Kanji code supplied to the character is a Kanji code corresponding to a special character, and the other when it is a normal Kanji code. The operation in the case of Kanji codes corresponding to special characters will be explained below. That is, a preset 2-byte Kanji code corresponding to the special character is stored in the display character register 10. Then, the upper 1 byte of the stored Kanji code, that is, the special code, and the special code table 12
The contents of are compared in the comparison circuit 14. In this case, special codes are supplied to the comparison circuit 14 in order from the beginning of the special code table 12, and the Kanji code corresponding to the special code is supplied to the AND circuit 16.

例えば、上記比較回路14に(FD) 1Bが供給され
る場合には、上記AND回路16には(2222)IB
が供給され、GFE)18が供給される場合には、上記
AND回路16には(217B)1sが供給される。
For example, when (FD) 1B is supplied to the comparison circuit 14, (2222) IB is supplied to the AND circuit 16.
is supplied and (GFE) 18 is supplied, the AND circuit 16 is supplied with (217B) 1s.

上記比較の結果、等しいコードが存在した場合、上記比
較回路14の出力が「ハイ」となる。従って、その一致
した特殊コードに対応する漢字コードが、上記AND回
路16の出力となり、それが上記OR回路20に供給さ
れる。この場合、上記AND回路18の一方の入力は「
ロー」となるため、該AND回路18の出力はない。従
って、上記OR回路20の出力は、上記AND回路16
がら供給された漢字コードとなる。そして、この漢字コ
ードが上記表示文字レジスタ22に格納され、上記漢字
コード/文字パターン変換回路24にて、フォントパタ
ーンに変換される。このフォントパターンが、上記OR
回路34の一方人力に供給される。
As a result of the comparison, if equal codes exist, the output of the comparison circuit 14 becomes "high". Therefore, the kanji code corresponding to the matched special code becomes the output of the AND circuit 16, and is supplied to the OR circuit 20. In this case, one input of the AND circuit 18 is "
Therefore, there is no output from the AND circuit 18. Therefore, the output of the OR circuit 20 is the output of the AND circuit 16.
This is the kanji code supplied by the user. This Kanji code is stored in the display character register 22, and converted into a font pattern by the Kanji code/character pattern conversion circuit 24. This font pattern is the same as the above OR
One side of the circuit 34 is supplied with human power.

一方、上記表示文字レジスタ10に格納された漢字コー
ドの下位1バイトは、上記アルファコード/漢字コード
変換回路26にて、2バイトの漢字コードに変換される
。そして、その漢字コードが、上記漢字コード/文字パ
ターン変換回路28にてフォントパターンに変換される
。そのフォントパターンがさらに、上記文字縮小回路3
0にて20%程度縮小される。この縮小されたフォント
パターンが、上記AND回路32の一方人力に供給され
る。この場合、該AND回路32の他方入力が「ハイ」
であるため、上記縮小されたフォントパターンがそのま
ま上記OR回路34の他方入力に供給される。
On the other hand, the lower 1 byte of the Kanji code stored in the display character register 10 is converted into a 2-byte Kanji code by the alpha code/Kanji code conversion circuit 26. Then, the Kanji code is converted into a font pattern by the Kanji code/character pattern conversion circuit 28. The font pattern is further changed to the above character reduction circuit 3.
0, it is reduced by about 20%. This reduced font pattern is supplied to one of the AND circuits 32. In this case, the other input of the AND circuit 32 is "high"
Therefore, the reduced font pattern is supplied as is to the other input of the OR circuit 34.

従ワて、上記OR回路34からは、上記漢字コード/文
字パターン変換回路24の出カフオンドパターンと、上
記文字縮小回路30の出カフオンドパターンとの合成フ
ォントパターンが出力され、この合成フォントパターン
が上記CGRAM36に書込まれる。よって、上記CR
Tディスプレイ40には、■、■、・・・、 [!]、
 口、・・・等の特殊文字が表示される−0 次に、上記表示文字レジスタに供給される漢字コードが
通常の漢字コードの場合に関しての説明を行なう。即ち
、2バイトの漢字コードが、上記表示文字レジスタ10
に格納される。そして、上記格納された漢字コードの上
位1バイトと、上記特殊コードテーブル12の内容が、
上記比較回路14にて比較され、一致しているか否かが
調べられる。
Subsequently, the OR circuit 34 outputs a composite font pattern of the output caffondo pattern of the kanji code/character pattern conversion circuit 24 and the output cuffondo pattern of the character reduction circuit 30, and this composite font pattern is written into the CGRAM 36. Therefore, the above CR
The T display 40 shows ■, ■, ..., [! ],
-0 where special characters such as 口, . That is, the 2-byte kanji code is stored in the display character register 10.
is stored in Then, the upper 1 byte of the stored Kanji code and the contents of the special code table 12 are as follows.
The comparison circuit 14 compares them and checks whether they match.

上記比較の結果、等しいコードが存在しない場合、上記
AND回路16からのデータ出力はなく、上記AND回
路18からのデータ、即ち上記表示文字レジスタ10の
内容が、そのまま上記OR回路20の出力となり、上記
表示文字レジスタ22に格納される。そして、この表示
文字レジスタ22の内容である漢字コードが、上記漢字
コード/文字パターン変換回路24にて表示又は印字等
のフォントパターンに変換される。
As a result of the comparison, if no equal code exists, there is no data output from the AND circuit 16, and the data from the AND circuit 18, that is, the contents of the display character register 10, becomes the output of the OR circuit 20 as is. It is stored in the display character register 22. The Kanji code, which is the content of the display character register 22, is converted into a font pattern for display or printing by the Kanji code/character pattern conversion circuit 24.

また、上記AND回路32の出力も「0」となるので、
上記漢字コード/文字パターン変換回路24の出力がそ
のまま、上記CGRAM36に書込まれ、上記CRTデ
ィスプレイ4o上に表示される。
In addition, since the output of the AND circuit 32 is also "0",
The output of the Kanji code/character pattern conversion circuit 24 is written as is into the CGRAM 36 and displayed on the CRT display 4o.

このように、1バイトで表現できる英数字、カタカナ等
の文字と、O2口等の図形文字とを合成して表現される
文字を、漢字1文字と同じ2バイトで表現して、上記表
示文字レジスタ1oに格納することによって、特殊文字
を出力(表示、印字)することができる。
In this way, characters that can be expressed by combining alphanumeric characters, katakana, etc. that can be expressed in 1 byte, and graphic characters such as O2 mouth are expressed in 2 bytes, which is the same as 1 Kanji character, and the above display characters are expressed. By storing the special characters in the register 1o, the special characters can be output (displayed, printed).

なお、キーボード(図示せず)からの人力方法としては
、使用されていないキーのいずれかを用いるようにする
。例えば、1口」を打込むには、カタカナの1口」に相
当するキーのカナシフトとして人力させることが考えら
れる。即ち、「「口」のカナシフトJ、rAJと入力す
ることにより、「囚」と出力させることができるように
なる。
Note that as a manual method using a keyboard (not shown), any unused keys are used. For example, in order to input ``1 kuchi'', it is conceivable to manually input the key corresponding to ``1 kuchi'' in katakana by using a kana shift. That is, by inputting the kana shift J, rAJ of ``口'', it becomes possible to output ``prison''.

[発明の効果] 以上詳述したように本発明によれば、表示及び印字の列
とメモリ上のサイズを一致させた状態で特殊文字のコー
ド表現が行なえ、使用する文字パターンを全て登録する
必要がなく、使用頚度の高い合成文字の入力が飛躍的に
容易にされることが可能となる特殊文字の表現方式を提
供することができる。
[Effects of the Invention] As detailed above, according to the present invention, special character codes can be expressed while matching display and print columns with memory size, and it is not necessary to register all character patterns to be used. Therefore, it is possible to provide a special character representation method that dramatically facilitates the input of composite characters that are difficult to use.

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

第1図は本発明による特殊文字の表現方式により表現さ
れる2バイトのコードから、特殊文字を出力するための
装置のブロック構成図である。 10.22・・・表示文字レジスタ、12・・・特殊コ
ードテーブル、14・・・比較回路、16.18゜32
・・・AND回路、20.34・・・OR回路、24゜
28・・・漢字コード/文字パターン変換回路、26・
・・アルファコード/漢字コード変換回路、30・・・
文字縮小回路、36・・・キャラクタジェネレータRA
M、38・・・表示制御回路、40・・・CRTディス
プレイ0                     
1・≧
FIG. 1 is a block diagram of a device for outputting special characters from a 2-byte code expressed by the special character representation method according to the present invention. 10.22...Display character register, 12...Special code table, 14...Comparison circuit, 16.18゜32
...AND circuit, 20.34...OR circuit, 24°28...Kanji code/character pattern conversion circuit, 26.
・・Alpha code/Kanji code conversion circuit, 30...
Character reduction circuit, 36...Character generator RA
M, 38...Display control circuit, 40...CRT display 0
1・≧

Claims (1)

【特許請求の範囲】[Claims] 図形文字に対応させて予め設定された1バイトコードと
、1バイトで表現可能な文字に対応する1バイトコード
とで、特殊文字に対応する2バイトのコードを表現する
ことを特徴とする特殊文字の表現方式。
A special character characterized in that a 2-byte code corresponding to a special character is expressed by a 1-byte code set in advance corresponding to a graphic character and a 1-byte code corresponding to a character that can be expressed in 1-byte. method of expression.
JP60169968A 1985-08-01 1985-08-01 Expression system for special character Pending JPS6230294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60169968A JPS6230294A (en) 1985-08-01 1985-08-01 Expression system for special character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60169968A JPS6230294A (en) 1985-08-01 1985-08-01 Expression system for special character

Publications (1)

Publication Number Publication Date
JPS6230294A true JPS6230294A (en) 1987-02-09

Family

ID=15896152

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60169968A Pending JPS6230294A (en) 1985-08-01 1985-08-01 Expression system for special character

Country Status (1)

Country Link
JP (1) JPS6230294A (en)

Similar Documents

Publication Publication Date Title
JPS6230294A (en) Expression system for special character
JPS6260657A (en) Character processor
JPS6338735B2 (en)
JPS6230293A (en) Special character output system
JPS6371767A (en) Document producing device
JPS63104119A (en) Document processor
JPS61260353A (en) Document processing system
KR820000406B1 (en) Korean(han geul)electronic typewriter and communication equipment system
JP2564470B2 (en) Document processing device
JPS58200326A (en) Word processor
JPS626369A (en) Character string processing system
JPS62270364A (en) Document processing apparatus
JPS63155230A (en) Data converter
JPS60254275A (en) Japanese word processor
JPS62220991A (en) Character processor
JPH02300965A (en) Sentence editing device
JPS61267093A (en) Sentence processor
JPS61133469A (en) Document generating device
JPH02144659A (en) Character processor
JPS60101585A (en) Character processor
JPS61267869A (en) Japanese sentence editing and producing device
JPH03108054A (en) Document processor
JPS5918728B2 (en) Japanese word processor
JPH04321166A (en) Information processor
JPS62117063A (en) Kana conversion system for word processor