JPH0318192B2 - - Google Patents

Info

Publication number
JPH0318192B2
JPH0318192B2 JP57012679A JP1267982A JPH0318192B2 JP H0318192 B2 JPH0318192 B2 JP H0318192B2 JP 57012679 A JP57012679 A JP 57012679A JP 1267982 A JP1267982 A JP 1267982A JP H0318192 B2 JPH0318192 B2 JP H0318192B2
Authority
JP
Japan
Prior art keywords
pattern
character
kanji
code
ram
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
Application number
JP57012679A
Other languages
Japanese (ja)
Other versions
JPS58129645A (en
Inventor
Kyobumi Nosaka
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP57012679A priority Critical patent/JPS58129645A/en
Publication of JPS58129645A publication Critical patent/JPS58129645A/en
Publication of JPH0318192B2 publication Critical patent/JPH0318192B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/018Input/output arrangements for oriental characters

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】 発明の技術分野 本発明は、ドツトマトリクス方式の漢字プリン
タ装置又は漢字デイスプレイ装置等に使用される
漢字用の文字発生器CG(以後、単にCGという)
に関し、特に文字パターン中に含まれる誤りビツ
トを検出し、かつ訂正して、以後、同文字パター
ンの指定時に正しいパターンを送出する事を可能
とした漢字用の文字発生器に関する。
[Detailed Description of the Invention] Technical Field of the Invention The present invention relates to a character generator CG (hereinafter simply referred to as CG) for kanji used in a dot matrix type kanji printer device, a kanji display device, etc.
In particular, the present invention relates to a character generator for Kanji characters that detects and corrects erroneous bits included in a character pattern, thereby making it possible to send out a correct pattern when specifying the same character pattern thereafter.

従来技術と問題点 従来、漢字プリンタ装置や漢字デイスプレイ装
置等に於いて使用される漢字CGについては、ビ
ツトの欠落等があつても、特にこれをチエツクし
修正する事は行われていない。そのため、例えば
漢字プリンタ装置等に於いて、ビツトの欠落した
漢字パターンを印字した場合には、欠落したドツ
トの位置によつては見苦しいものとなり、特に複
写用紙使用時等に於いては、その見苦しさが一層
強調されるという欠点があつた。また、正常な漢
字用の文字発生器ROMと置換えを行おうとすれ
ば、コスト的に大きな代償を強いられるという問
題があつた。
Prior Art and Problems Conventionally, when there are missing bits in the CG of kanji characters used in kanji printers, kanji display devices, etc., there has been no particular effort to check and correct them. Therefore, if a kanji pattern with missing bits is printed using a kanji printer, for example, it may become unsightly depending on the position of the missing dots, and the unsightliness may be particularly noticeable when copying paper is used. The drawback was that it emphasized the situation even more. Another problem was that if you tried to replace it with a normal character generator ROM for kanji, you would have to pay a large price.

発明の目的および要点 本発明は、上記した問題を解決することを目的
とするもので、漢字プリンタ等の運転開始に際し
て、CG中の文字パターンの誤りを検出して、対
応する正しい文字パターンを生成あるいは導入
し、これをRAM等に記憶しておき、その文字パ
ターンが指定された時等には、RAMより対応す
る正しい文字パターンの出力を可能とする様な誤
り訂正手段を備えた漢字用文字発生器を提供する
ものである。
Purpose and main points of the invention The present invention aims to solve the above-mentioned problems, and when starting the operation of a kanji printer, etc., it detects errors in character patterns in CG and generates corresponding correct character patterns. Alternatively, a kanji character with an error correction means can be introduced and stored in RAM, etc., and when that character pattern is specified, the corresponding correct character pattern can be output from RAM. It provides a generator.

発明の実施例 以下に、本発明を実施例にしたがつて説明す
る。
Embodiments of the Invention The present invention will be described below with reference to Examples.

第1図は、本発明をプリンタに適用した場合の
実施例装置の構成を示す。図において、1は
CPU等の本体装置、2はプリンタ制御装置、3
はプリンタの印字ドライバ機構部、4はプリンタ
制御のためのマイクロプロセツサMPU、5は
ROMで構成された制御メモリCS、6はCS中に
格納されているCGパターンの誤りチエツク・ル
ーチンおよび誤りCGパターンの代りに正しいCG
パターンを出力するための管理制御を行なう訂正
出力ルーチン、7はROMで構成されたCG、8は
プリンタ制御に必要なワークエリアをもつ
RAM、9はCGパターン管理テーブル9aおよ
びCGパターン・フアイル9bの格納エリア、1
0は印字用バツフアである。RAM内のCGパタ
ーン管理テーブルには、予め、CG内のCGパター
ン中、ドツト誤りが検出されたCGパターンの漢
字コードのみが登録され、また同時にCGパター
ン・フアイルに、その漢字コードに対応する正し
いCGパターンが格納されている。
FIG. 1 shows the configuration of an embodiment apparatus in which the present invention is applied to a printer. In the figure, 1 is
Main unit such as CPU, 2 is printer control device, 3
is the printer's print driver mechanism, 4 is the microprocessor MPU for printer control, and 5 is the printer's print driver mechanism.
The control memory CS, 6 consisting of ROM, carries out an error check routine for the CG pattern stored in the CS, and performs a correct CG pattern instead of an error CG pattern.
A correction output routine performs management control for outputting patterns, 7 is a CG composed of ROM, and 8 has a work area necessary for printer control.
RAM 9 is a storage area for the CG pattern management table 9a and CG pattern file 9b, 1
0 is a buffer for printing. In the CG pattern management table in RAM, only the kanji code of the CG pattern in which a dot error was detected among the CG patterns in the CG is registered in advance, and at the same time, the correct kanji code corresponding to that kanji code is registered in the CG pattern file. CG patterns are stored.

次に、第1図におけるCG7について、実施例
構成を説明する。第2図は、1チツプ当り256K
ビツトの容量をもつROMを9個使用して漢字CG
を構成した場合の、1つのCGパターン「漢」を
示したものである。#1乃至#9が9個のROM
チツプを示し、1個の漢字パターンを24×24のマ
トリツクスで表わしている。
Next, the configuration of an embodiment of CG7 in FIG. 1 will be described. Figure 2 shows 256K per chip.
Kanji CG using 9 bit-sized ROMs
This figure shows one CG pattern ``Kan'' when configuring ``Kan''. #1 to #9 are 9 ROMs
It shows a chip and represents one kanji pattern in a 24 x 24 matrix.

第3図は、上記CGパターンのビツト誤りを検
出し、訂正するための実施例構成を示す。図にお
いて、7はCGROMを示し、9個のCGチツプ
#1乃至#9をそれぞれ32K×8ビツト構成にし
て縦に積み重ね、横方向に8ビツト単位で分割し
て、4K種の文字パターンを配列したものである。
12は水平パリテイ・ビツトROM、13は垂直
パリテイ・ビツトROMである。
FIG. 3 shows the configuration of an embodiment for detecting and correcting bit errors in the CG pattern. In the figure, 7 indicates CGROM, and nine CG chips #1 to #9 are stacked vertically in a 32K x 8-bit configuration, and divided horizontally into 8-bit units to arrange 4K character patterns. This is what I did.
12 is a horizontal parity bit ROM, and 13 is a vertical parity bit ROM.

ROM12,13は、前もつて、正しいことが
判つているCG7の全ビツトについて、水平方向
を垂直方向との奇数パリテイをそれぞれ計算し、
その計算されたパリテイ・ビツトを、CGチツプ
とは別のROMとして格納したものである。した
がつて各プリンタ等に搭載するため、CG7を正
しいCGからコピーしたときにビツト誤りが生じ
ても、それが単一のビツト誤りである限り、第3
図中の,,で示すように、水平、垂直の両
パリテイ・エラーの存在箇所の交点座標として、
誤りビツトを検出しかつ訂正することができる。
通常は、単一のビツト誤りが大部分であるから、
そのような仮定を用いて訂正を行つても支障はな
い。
The ROMs 12 and 13 calculate the odd parity between the horizontal direction and the vertical direction, respectively, for all bits of CG7 that are known to be correct.
The calculated parity bits are stored in a ROM separate from the CG chip. Therefore, since it is installed in each printer, even if a bit error occurs when copying CG7 from a correct CG, as long as it is a single bit error, the third
As shown by , in the figure, the intersection coordinates of the locations where both horizontal and vertical parity errors exist are given by
Erroneous bits can be detected and corrected.
Since most of the errors are usually single bit errors,
There is no problem in making corrections using such assumptions.

CGチツプのパターン誤りチエツクは、電源投
入時等のイニシヤル・チエツク時に、第1図の
CS中に格納されているCGパターン・チエツク・
ルーチンを用いて、次のように行われる。
The pattern error check for the CG chip is performed as shown in Figure 1 at the initial check such as when the power is turned on.
CG pattern check stored in CS
This is done using a routine as follows.

まず、CGチツプ#1乃至#9の全チツプにつ
いてリードを行い、水平方向、垂直方向それぞれ
について、ドツト“1”の数を計算し、想定され
る奇数パリテイ・ビツトを計算する。次に、この
ようにして計算されたパリテイ・ビツトを、
ROM12,13から読出した正しい(一応の)
パリテイ・ビツトと比較し、水平、垂直、両方向
のCGパターンの正当性を順次チエツクする。
First, all CG chips #1 to #9 are read, the number of dots "1" is calculated in each of the horizontal and vertical directions, and the expected odd parity bits are calculated. Next, the parity bits calculated in this way are
Correct (tentatively) read from ROM12, 13
The validity of the CG pattern in horizontal, vertical, and both directions is sequentially checked by comparing it with the parity bit.

第3図の例では、パターン・ビツトが誤りで
あつたとされるから、水平方向奇数パリテイお
よび垂直方向奇数パリテイが、計算された奇数
パリテイと相違することになり、に誤りがある
ことを知ることができる。また、に誤りがある
ことを決定できれば、直に正しいパターンを知る
ことができる。
In the example shown in Figure 3, since the pattern bit is said to be in error, the horizontal odd parity and vertical odd parity are different from the calculated odd parity, so it is difficult to know that there is an error. Can be done. Moreover, if it can be determined that there is an error in the pattern, the correct pattern can be immediately known.

第3図に示したパターン誤りチエツク方法は、
実用的に十分なものであるが、各水平、垂直方向
に多重のビツト誤りが存在するときには対処する
ことができない。このような場合について、更に
厳密なチエツクが必要とされるときには、CGを
適当な大きさのブロツクに細分化して、そのブロ
ツクごとに水平、垂直のパリテイチエツクをとる
方法、誤り修正コード(ECC)を使用する方法
等、既知のデータ・チエツクおよび修正方法を適
宜採用することができる。
The pattern error checking method shown in FIG.
Although this is sufficient for practical use, it cannot deal with multiple bit errors in each horizontal and vertical direction. In such cases, when a more rigorous check is required, you can subdivide the CG into blocks of appropriate size and perform a horizontal and vertical parity check for each block, or use an error correction code (ECC). ) may be employed as appropriate.

以上のようにして検出されたCG7内のビツト
誤りを含むCGパターンについて、その漢字コー
ドおよび修正されたCGパターンが、第1図の
RAM8内のCGパターン管理テーブル9aおよ
びCGパターン・フアイル9bに格納される。第
4図は、RAM8内のCGパターン管理テーブル
およびCGパターンフアイルの構成を示す。
Regarding the CG pattern containing the bit error in CG7 detected as described above, its kanji code and corrected CG pattern are shown in Figure 1.
The data is stored in the CG pattern management table 9a and CG pattern file 9b in the RAM 8. FIG. 4 shows the configuration of the CG pattern management table and CG pattern file in the RAM 8.

次に、第5図に示す動作フローにしたがつて、
第1図に示す実施例装置の動作を説明する。この
フローは、CS内のCGパターン訂正出力ルーチン
の処理を示す。
Next, according to the operation flow shown in Figure 5,
The operation of the embodiment device shown in FIG. 1 will be explained. This flow shows the processing of the CG pattern correction output routine in CS.

本体装置1がプリンタを印字起動し、印字デー
タをプリンタ制御装置2に送る。制御装置2内の
MPU4は、受入れた印字データを、一旦RAM
8内のワークエリアに設定されたデータバツフア
中に格納する。
The main body device 1 starts printing the printer and sends print data to the printer control device 2. in the control device 2
The MPU4 stores the received print data in the RAM.
The data is stored in the data buffer set in the work area within 8.

次に、データバツフア中の印字データから、最
初に印字すべき文字のCG指定コードni(漢字コー
ド)を読出す。
Next, the CG designation code ni (kanji code) of the character to be printed first is read from the print data in the data buffer.

読出したCG指定コードniを、CGパターン管理
テーブル9a中の一つのCGコードと突合せる。
一致が得られたなら、CGパターン・フアイル9
bから対応する正しいCGパターンを読出し(第
4図)、印字用バツフア10へ転送する。他方、
一致が得られない場合には、CGパターン管理テ
ーブル中の他の一つのCGコードを読出し、前回
と同様な処理を行う。
The read CG designation code ni is compared with one CG code in the CG pattern management table 9a.
If a match is found, CG pattern file 9
The corresponding correct CG pattern is read from b (FIG. 4) and transferred to the printing buffer 10. On the other hand,
If no match is found, another CG code in the CG pattern management table is read and the same process as the previous one is performed.

CGパターン管理テーブル9a中の全てのCGコ
ードと、印字すべきCG指定コードniとの突合せ
が、一致が得られないままに終了したときには、
ROM CG7から対応するCGパターンを読出し、
印字用バツフア10へ転送する。
When all the CG codes in the CG pattern management table 9a and the CG designation code ni to be printed are completed without a match being found,
Read the corresponding CG pattern from ROM CG7,
Transfer to printing buffer 10.

最後に、印字用バツフア10内のCGパターン
について、必要な編集処理を行い、印字ドライ
バ・機構部3に出力して印字動作を行わせる。
Finally, necessary editing processing is performed on the CG pattern in the print buffer 10, and the result is output to the print driver/mechanism section 3 for printing.

以上の動作が終了したら、RAM内のデータバ
ツフアから、次に印字すべき文字のCG指定コー
ドを読出し、同様なCGパターンの出力と印字と
を繰り返してゆく。
When the above operations are completed, the CG designation code of the next character to be printed is read from the data buffer in the RAM, and the same CG pattern is output and printed repeatedly.

上述した実施例の説明では、ビツト誤りCGパ
ターンに対応してRAM内に格納される正しい
CGパターンは、ビツト誤りCGパターンを修正し
て生成していたが、これを、本体装置に通常置か
れているCGパターン・マスターフアイルから転
送したもので代替することができる。第6図は、
その概要説明図である。
In the description of the embodiments above, the correct CG pattern stored in RAM in response to a bit error CG pattern is
The CG pattern was generated by correcting the bit error CG pattern, but this can be replaced with one transferred from the CG pattern master file normally stored in the main unit. Figure 6 shows
It is a schematic explanatory diagram.

第6図において、プリンタ制御装置2のCGチ
エツク時に検出されたビツト誤りパターンのCG
コードは、本体装置1に送られる。本体装置1で
は受信したCGコードにしたがつて、CGパター
ン・マスターフアイルをサーチし、対応する正し
いCGパターンを読出して、CGコードと共にプリ
ンタ制御装置2へ転送する。プリンタ制御装置2
は、本体装置1から送られた正しいCGパターン
をCGコードにしたがつて、CGパターン・フアイ
ル9b中に格納する。
In FIG. 6, the CG of the bit error pattern detected during the CG check of the printer control device 2 is shown.
The code is sent to the main device 1. The main device 1 searches the CG pattern master file according to the received CG code, reads out the corresponding correct CG pattern, and transfers it to the printer control device 2 together with the CG code. Printer control device 2
converts the correct CG pattern sent from the main device 1 into a CG code and stores it in the CG pattern file 9b.

以上の本発明について、プリンタを実施例とし
て説明なされたが、デイスプレイ装置の場合も、
全く同様に適用できることは明らかである。
The present invention has been explained above using a printer as an example, but it can also be applied to a display device.
It is clear that the same applies.

発明の効果 以上述べたように、本発明によれば、CGROM
中に多少のビツト誤りパターンが存在しても、
CGの交換や従来の構成の大きな変更を必要とせ
ずに、高品質の印字あるいはデイスプレイが可能
となる。
Effects of the Invention As described above, according to the present invention, the CGROM
Even if there are some bit error patterns in the
High-quality printing or display is possible without the need to replace CG or make major changes to conventional configurations.

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

第1図は本発明実施例の構成図、第2図は漢字
用CGパターンの説明図、第3図はCGROMの構
成およびビツト誤り検出方法の説明図、第4図は
RAM内のCGパターン管理テーブルおよびCGパ
ターン・フアイルの構成図、第5図は実施例の動
作を説明するための動作フロー図、第6図は誤り
パターンに対応する正しいパターンを本体装置か
ら転送させる実施例のための説明図である。 図中、1はCPUなどの本体装置、2はプリン
タ制御装置、3はプリンタの印字ドライバおよび
機構部、4はプリンタ制御のためのMPU、5は
制御メモリ、6はCGパターンのチエツクルーチ
ンおよび訂正出力ルーチン、7はCG ROM、8
はRAM、9はRAM内のCGパターン管理テーブ
ルおよびCGパターン・フアイルの格納エリア、
10は印字用バツフア、をそれぞれ示す。
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is an explanatory diagram of the CG pattern for kanji, Fig. 3 is an explanatory diagram of the CGROM structure and bit error detection method, and Fig. 4 is an explanatory diagram of the CGROM structure and bit error detection method.
A configuration diagram of the CG pattern management table and CG pattern file in RAM, Figure 5 is an operation flow diagram for explaining the operation of the embodiment, and Figure 6 shows how the correct pattern corresponding to the error pattern is transferred from the main unit. It is an explanatory diagram for an example. In the figure, 1 is a main unit such as a CPU, 2 is a printer control device, 3 is a print driver and mechanism of the printer, 4 is an MPU for controlling the printer, 5 is a control memory, and 6 is a CG pattern check routine and correction. Output routine, 7 is CG ROM, 8
is RAM, 9 is the storage area for the CG pattern management table and CG pattern file in RAM,
Reference numeral 10 indicates a printing buffer.

Claims (1)

【特許請求の範囲】 1 漢字プリンタあるいは漢字デイスプレイ装置
等に使用される漢字用文字発生器において、漢字
の文字パターンが格納されているROMと、上記
ROM内の各文字パターンについてそのビツト誤
りの検出を行い、ビツト誤りが検出された文字パ
ターンを正しい文字パターンに修正し、修正され
た正しい文字パターンをその文字コードと共に
RAM内に格納する文字パターンチエツク手段
と、文字コードが入力されたときに、まず上記
RAM内の文字コードを調べて対応する文字コー
ドが存在するときその文字パターンを出力し、他
方RAM内に対応する文字コードが存在しない場
合には上記ROM内にある対応する文字パターン
を出力する訂正出力手段とをそなえていることを
特徴とする漢字用文字発生器。 2 前記第1項において、RAM内に格納される
正しい文字パターンは、ROM内のビツト誤りを
もつ文字パターンを、誤り検出コードあるいは誤
り修正コードを用いて修正したものであることを
特徴とする漢字用文字発生器。 3 前記第1項において、RAM内に格納される
正しい文字パターンは、本体装置の漢字パター
ン・テーブルから転送したものを用いることを特
徴とする漢字用文字発生器。
[Claims] 1. A kanji character generator used in a kanji printer or a kanji display device, etc., which includes a ROM in which kanji character patterns are stored, and a ROM that stores kanji character patterns;
Bit errors are detected for each character pattern in the ROM, the character pattern in which a bit error has been detected is corrected to the correct character pattern, and the corrected correct character pattern is sent along with its character code.
When the character pattern check means stored in RAM and the character code are input, the above
Correction to check the character code in RAM and output the character pattern if the corresponding character code exists, and if the corresponding character code does not exist in RAM, output the corresponding character pattern in the ROM. A character generator for kanji, characterized by comprising an output means. 2. The kanji character set forth in item 1 above, wherein the correct character pattern stored in the RAM is a character pattern with a bit error in the ROM corrected using an error detection code or an error correction code. character generator. 3. The character generator for kanji as set forth in item 1 above, wherein the correct character pattern stored in the RAM is one transferred from the kanji pattern table of the main unit.
JP57012679A 1982-01-29 1982-01-29 Correction output system for pattern error of "kanji" (chinese character) generator Granted JPS58129645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57012679A JPS58129645A (en) 1982-01-29 1982-01-29 Correction output system for pattern error of "kanji" (chinese character) generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57012679A JPS58129645A (en) 1982-01-29 1982-01-29 Correction output system for pattern error of "kanji" (chinese character) generator

Publications (2)

Publication Number Publication Date
JPS58129645A JPS58129645A (en) 1983-08-02
JPH0318192B2 true JPH0318192B2 (en) 1991-03-11

Family

ID=11812059

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57012679A Granted JPS58129645A (en) 1982-01-29 1982-01-29 Correction output system for pattern error of "kanji" (chinese character) generator

Country Status (1)

Country Link
JP (1) JPS58129645A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5998244A (en) * 1982-11-26 1984-06-06 Fujitsu Ltd Printer

Also Published As

Publication number Publication date
JPS58129645A (en) 1983-08-02

Similar Documents

Publication Publication Date Title
JPS60116464A (en) Printer
JPS63205257A (en) Printing control system
JP2570684B2 (en) Character pattern generator for Dot Tomato Rix serial printer
JPH0318192B2 (en)
JPS60118878A (en) Character pattern processing system
JPS5942357B2 (en) Character pattern error check method
JP2916274B2 (en) Extended pattern processing method for printer
JPS6259048A (en) Dot pattern generation system of dot printer
JPH0211357A (en) Printing apparatus
JPH02209267A (en) Printing controller
JP2525333B2 (en) Output device
JP2843809B2 (en) Printing control device
JPS60107374A (en) Printer
JPS6373418A (en) Chinese character printer controller
JPS63147221A (en) Hard copy system
JPH04246569A (en) Printer
JP2836026B2 (en) Printing control device
JPH058454A (en) Bar code printer
JP2564513B2 (en) Printer control device
JPH06131132A (en) Bit map printing system
JPH0461782B2 (en)
JPS63198120A (en) Printer controller
JPS6071265A (en) Printer
JPS6188291A (en) Character font distortion correction system
JPH01214460A (en) Page output detection system of printer