JPS61213889A - Character pattern generator - Google Patents

Character pattern generator

Info

Publication number
JPS61213889A
JPS61213889A JP60056965A JP5696585A JPS61213889A JP S61213889 A JPS61213889 A JP S61213889A JP 60056965 A JP60056965 A JP 60056965A JP 5696585 A JP5696585 A JP 5696585A JP S61213889 A JPS61213889 A JP S61213889A
Authority
JP
Japan
Prior art keywords
character pattern
pattern
enlarged
dot
character
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
JP60056965A
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP60056965A priority Critical patent/JPS61213889A/en
Publication of JPS61213889A publication Critical patent/JPS61213889A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Controls And Circuits For Display Device (AREA)

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 The present invention relates to a character pattern generating device that can be used in a word processor or the like that handles characters such as Chinese characters.

〈従来技術とその欠点〉 従来の一般のワードプロセッサー等においては、使用す
る文字は16x16,24x24,32×32ドツト等
その構成ドツト数が予め定められている。しかし最近は
、例えば文字構成ドツト数が異なったプリンタやCRT
へ出力することを可能とすることや、出力すべき文章中
のある特定の文字の大きさや縦・横の比率を変化させる
ことにより、所定の文字を強調して出力することなど、
その文字パターンの多様化が要求されている。
<Prior Art and Its Disadvantages> In conventional general word processors, the number of dots constituting the characters used is predetermined, such as 16x16, 24x24, 32x32 dots, etc. However, recently, for example, printers and CRTs with different numbers of dots make up characters.
By changing the size and height/width ratio of certain characters in the text to be output, it is possible to emphasize certain characters and output them.
Diversification of character patterns is required.

従来このような任意倍率(非整数倍)の拡大文字を生成
する場合、原文字パターンに対して単純に補間を行うこ
とが考えられているが、例えば第4図に示すように32
X32ドツトの文字を第11図に示すように42X42
ドツトの文字に拡大した場合その飾り部分(四角の枠で
囲んだ部分)が非常に不自然なものとなってしまい、文
字品位を劣化させる原因となることがある。
Conventionally, when generating enlarged characters at an arbitrary magnification (non-integer multiple), it has been considered to simply interpolate the original character pattern.
The characters of X32 dots are changed to 42X42 as shown in Figure 11.
When enlarged to a dot character, the decorative part (the part surrounded by a square frame) becomes very unnatural, which may cause deterioration of the quality of the character.

〈発明の目的〉 この発明の目的は上記従来の問題を解消するためになさ
れたものであり、原文字パターンに対して特に飾り部分
の品質を劣化させることなく、任意倍率(非整数倍)の
拡大文字パターンを生成する文字パターン発生装置を提
供することである。
<Purpose of the Invention> The purpose of the present invention was to solve the above-mentioned conventional problems, and it is possible to apply an arbitrary magnification (non-integer multiple) to the original character pattern without deteriorating the quality of the decorative part in particular. An object of the present invention is to provide a character pattern generation device that generates an enlarged character pattern.

〈発明の構成および効果〉 この発明は、原文字パターンを記憶する記憶手段と、前
記原文字パターンを、文字を構成する各ドツトの行方向
或いは列方向の並びに関するパターンを表すコード化情
報として生成する手段1、文字を構成する飾り部分のパ
ターンを前記コード化情報に基づいて抽出する手段、前
記生成されたコード化情報から原文字パターンの飾り部
分を除去する手段、この除去されたコード化情報を基に
拡大文字パターンを生成する手段、拡大文字パターンに
対する飾り部分のパターンを生成する手段、前記生成さ
れた拡大文字パターンに前記拡大文字パターンに対する
飾り部分のパターンを付加する手段とを備えたことを特
徴とする。
<Configuration and Effects of the Invention> The present invention includes a storage means for storing an original character pattern, and generating the original character pattern as coded information representing a pattern related to the arrangement of dots constituting a character in the row direction or column direction. means 1 for extracting patterns of decorative parts constituting characters based on the coded information; means for removing the decorative parts of the original character pattern from the generated coded information; and the removed coded information. means for generating an enlarged character pattern based on the enlarged character pattern, means for generating a decorative part pattern for the enlarged character pattern, and means for adding a decorative part pattern for the enlarged character pattern to the generated enlarged character pattern. It is characterized by

上記構成によれば、拡大時の行の補間或いは列の補間に
よって飾り部分が異常に拡大されることがなく、その拡
大文字パターンの構成ドツト数に応じた飾り部分を生成
するため、拡大文字パターンの品質を維持することがで
きる。特に明朝体の漢字は飾り部分がその書体の特徴で
あり、文字のめりはりをつけるものであるが、この発明
によれば明朝体の特徴を維持しつつ拡大することができ
る。
According to the above configuration, the decorative part will not be abnormally enlarged due to row interpolation or column interpolation during enlargement, and the enlarged character pattern will generate a decorative part according to the number of constituent dots of the enlarged character pattern. quality can be maintained. In particular, the decorative parts of kanji in the Mincho font are a characteristic of the font and add emphasis to the characters, but according to this invention, the characters can be enlarged while maintaining the characteristics of the Mincho font.

〈実施例〉 第1図はこの発明に係る文字パターン発生装置のブロッ
ク図を示すものである。同図において1は原文字パター
ンメモリ、2はコード生成部、3は拡大文字パターン生
成部、4は拡大文字パターン検索補正部、5は拡大文字
パターンメモリ、6はタイミング発生部、をそれぞれ示
している。原文字パターンメモリ1には使用する全ての
文字の原文字パターンが記憶されている。この各原文字
パターンは文字を構成するパターンをビットイメージと
して記憶するか或いは何らかの情報圧縮により、コード
化されたコード化情報が予め記憶されている。信号S1
は文字指定コードであり、前記原文字パターンメモリ1
はこの指定された原文字パターンデータ(S2)をコー
ド生成fTs2へ出力する。コード生成部2はこの原文
字パターンをコード化しくS3)、拡大文字パターン生
成部3へ出力する。拡大文字パターン生成部はコード化
された原文字パターンデータに対して、任意に与えられ
た拡大率情報(拡大文字パターンの構成ドツト数)に基
づいてコード化された拡大文字バタlンを生成する。拡
大文字パターン検索補正部4はこの横方向に拡大された
文字パターンに含まれている飾り部分をパターンマツチ
ングにより抽出し、除去するとともに、その箇所に飾り
部分の種別を表すコードを付与する。さらに、与えられ
た縦方向の拡大率情報(拡大文字パターンの縦方向の構
成ドツト数)に基づいて、縦方向に拡大する。その後、
文字構成ドツト数に応じた飾り部分を本来飾り部分があ
った箇所に付加する。拡大文字パターンメモリ5はこの
ようにして生成された拡大文字パターンを記憶する。な
お、6と指定した文字を横方向、縦方向にそれぞれどれ
だけ拡大するかを指示する情報(S4)に基づいて各部
のタイミング制御を行うためのタイミング発生部である
<Embodiment> FIG. 1 shows a block diagram of a character pattern generation device according to the present invention. In the figure, 1 is an original character pattern memory, 2 is a code generation section, 3 is an enlarged character pattern generation section, 4 is an enlarged character pattern search correction section, 5 is an enlarged character pattern memory, and 6 is a timing generation section. There is. Original character pattern memory 1 stores original character patterns of all characters to be used. For each original character pattern, coded information is stored in advance by storing the pattern constituting the character as a bit image or by some kind of information compression. Signal S1
is a character designation code, and the original character pattern memory 1
outputs this specified original character pattern data (S2) to the code generator fTs2. The code generation section 2 converts this original character pattern into a code (S3) and outputs it to the enlarged character pattern generation section 3. The enlarged character pattern generation section generates a coded enlarged character pattern based on arbitrarily given enlargement ratio information (the number of dots constituting the enlarged character pattern) for the coded original character pattern data. . The enlarged character pattern search and correction section 4 extracts the decorative part included in this horizontally expanded character pattern by pattern matching, removes it, and assigns a code representing the type of the decorative part to the extracted part. Furthermore, the character pattern is expanded in the vertical direction based on the given vertical expansion rate information (number of dots forming the enlarged character pattern in the vertical direction). after that,
A decorative part corresponding to the number of dots constituting a character is added to a place where a decorative part originally existed. The enlarged character pattern memory 5 stores the enlarged character pattern generated in this way. Note that this is a timing generation section for controlling the timing of each section based on information (S4) instructing how much the character designated as 6 is to be enlarged in the horizontal and vertical directions.

第2図は上記コード生成部2を更に詳細に示したブロッ
ク図である。同図において21は原文字パターンドツト
長カウンタ、22は原文字パターンドツト位置カウンタ
、23は拡大文字パターンドツト長2位置計算部、24
は原文字パターン検索部、25はスターロエンドコード
決定部をそれぞれ示す。2■は原文字パターンの列方向
に一連するドツトパターンを抽出し、その一連のドツト
長(ドツト数)を計数する。また22はその一連するド
ツトパターンの位置(例えば、一連のドツトの先頭のド
ツト)を表す座標を計数する。23は求める拡大文字パ
ターンの文字構成・ドツト数に応じたドツト長およびド
ツト位置を計算するものである。具体的には21で求め
られた原文字パターンのドツト長に対し、横方向の拡大
率を乗じ、その結果を整数化することにより求める。ま
た22により定められた原文字パターンドツト位置の横
軸の座標に対して横方向の拡大率を乗じ、整数化するこ
とにより拡大文字パターンのドツト長とドツト−位置を
求める。一方24はある一連するドツトパターンの切れ
目やそのドツトパターンの周囲のドツトパターンの情報
を検索する。25はこれらの情報をもとに拡大された一
連するドツトパターンのスタートコードとエンドコード
を決定する。
FIG. 2 is a block diagram showing the code generation section 2 in more detail. In the figure, 21 is an original character pattern dot length counter, 22 is an original character pattern dot position counter, 23 is an enlarged character pattern dot length 2 position calculation unit, and 24 is an original character pattern dot length counter.
Reference numeral 25 indicates an original character pattern search section, and 25 indicates a Starro end code determination section. 2) Extracts a series of dot patterns in the column direction of the original character pattern, and counts the length (number of dots) of the series. Further, 22 counts the coordinates representing the position of the series of dot patterns (for example, the first dot of the series of dots). 23 calculates the dot length and dot position according to the character structure and number of dots of the desired enlarged character pattern. Specifically, it is obtained by multiplying the dot length of the original character pattern obtained in step 21 by the horizontal enlargement rate and converting the result into an integer. Further, the dot length and dot position of the enlarged character pattern are determined by multiplying the coordinates of the horizontal axis of the original character pattern dot position determined by 22 by the horizontal expansion rate and converting the result into an integer. On the other hand, 24 searches for information on breaks in a series of dot patterns and dot patterns around the dot pattern. 25 determines the start code and end code of the enlarged series of dot patterns based on this information.

第3図は上記コード生成の方法についてその具体例を示
すものである。同図において(A)は原文字パターンに
おける3個のドツトが一連するドツトパターンがコード
化された場合、矢印に示すようにコード化されることを
示している。原文字パターンの横方向の拡大によりドツ
ト長3が4になった場合である。スタートコードの3は
、原文字パターンの一連のドツト長に対応している。エ
ンドコードは独立エンドマーク、従圧エンドマーりのい
ずれかにコード化される。同図(B)は従属のエンドマ
ークがエンドコードとなる場合の例であり、コード化の
対象とする走査ラインiの末尾のドツトがこのドツトパ
ターンに隣接する他のドツトパターンの末尾と上下揃っ
ている場合、そのエンドコードは従属のエンドマークを
表すMが適用される。同図(C)は独立のエンドマーク
が適用される例であり、コード化の対象となる走査ライ
ンiとこのドツトパターンに隣接するi+1の末尾のド
ツトが上下揃っていない場合は、独立のエンドマークを
表ずCが適用される。このような処理によって拡大文字
パターンが生成される。
FIG. 3 shows a specific example of the above code generation method. In the figure, (A) shows that when a dot pattern in which a series of three dots in the original character pattern is encoded, it is encoded as shown by the arrow. This is a case where the dot length 3 becomes 4 due to the horizontal expansion of the original character pattern. The start code 3 corresponds to the length of a series of dots in the original character pattern. The end code is encoded as either an independent end mark or a pressure-dependent end mark. Figure (B) is an example where a subordinate end mark becomes an end code, and the dot at the end of scanning line i to be encoded is vertically aligned with the end of another dot pattern adjacent to this dot pattern. If the end code is M, which represents a subordinate end mark, the end code is applied. Figure (C) is an example where independent end marks are applied. If the scanning line i to be encoded and the last dot of i+1 adjacent to this dot pattern are not aligned vertically, an independent end mark is applied. C is applied without representing the mark. An enlarged character pattern is generated by such processing.

第4図は32X32ドツトより構成される原文字パター
ンの例を示すものである。第5図はこの第4図原文字パ
ターンを横方向に拡大したものである(42x32ドツ
ト)。このコード化されたパターンから飾り部分として
予め定めておいたパターンを抽出し、その箇所に相当す
るド・ノドを除去する。第5図において枠で囲んだ部分
がその飾り部分であり、上記独立のエンドマークを有す
る特有のドツトパターンで構成されている。
FIG. 4 shows an example of an original character pattern composed of 32×32 dots. FIG. 5 is a horizontally enlarged version of the original character pattern shown in FIG. 4 (42x32 dots). A predetermined pattern as a decorative part is extracted from this coded pattern, and the do/nodo corresponding to that part is removed. The part surrounded by a frame in FIG. 5 is the decorative part, and is composed of a unique dot pattern having the above-mentioned independent end marks.

第6図は上記方法により除去された後のパターンを示す
ものである。同図においてj$−&<>等のマークはそ
の部分に飾り部分があったことを示すものである。この
ように飾り部分を除去した後縦方向への拡大が行われる
ことになる。この縦方向の拡大は縦方向の拡大率と比例
式に基づいてドツトの補間により行われる。
FIG. 6 shows the pattern after it has been removed by the above method. In the figure, marks such as j$-&<> indicate that there was a decorative part in that part. After removing the decorative portion in this manner, the image is enlarged in the vertical direction. This vertical expansion is performed by dot interpolation based on the vertical expansion rate and a proportional formula.

第7図は上記−マークに相当する原文字パターンの飾り
部と拡大された文字パターンに付加されるべき飾り部の
パターンを示すものである。同図において(A)は原文
字パターンにおける飾り部(B)は文字構成ドツト数(
横方向または縦方向)が32から40ドツトの場合、(
C)は文字構成ドツト数が41〜56の場合、(D)は
文字構成ドツト数が57〜64の場合をそれぞれ示して
いる。また第8図は!マークに相当する飾り部のパター
ンを示すものであり、(A)は原文字パターン(B)(
C)(D)は文字構成ドツト数が32〜40.41〜5
6.57〜64にそれぞれ対応する拡大文字パターンに
おける飾、り部のドツトパターンを示すものである。こ
のように文字構成ドツト数毎に応じて数種類の飾り部分
のドツトパターンを予め記憶している。前記したように
縦方向の拡大の後飾り部分が除去された箇所に拡大後の
文字構成ドツト数に応じた飾り部分のパターンが付加さ
れる。
FIG. 7 shows a decorative part of the original character pattern corresponding to the above-mentioned - mark and a pattern of the decorative part to be added to the enlarged character pattern. In the same figure, (A) is the original character pattern, and the decorative part (B) is the number of character constituent dots (
If the width (horizontal or vertical direction) is 32 to 40 dots, (
C) shows the case where the number of character constituent dots is 41 to 56, and (D) shows the case where the number of character constituent dots is 57 to 64. Also, Figure 8! It shows the pattern of the decorative part corresponding to the mark, and (A) is the original character pattern (B) (
C) (D) has a character composition dot number of 32-40.41-5
6. It shows the dot patterns of the decorative and edge portions in the enlarged character patterns corresponding to numbers 6.57 to 64, respectively. In this way, several types of dot patterns for decorative parts are stored in advance for each number of dots forming a character. As described above, a pattern of decorative portions corresponding to the number of dots forming the character after enlargement is added to the portions where the decorative portions have been removed after vertical expansion.

第9図はこのようにして飾り部分が付加された後の最終
的な拡大文字パターンの例である。枠で囲んだ部分が飾
り部分であるがAは上記第7図(C)、またBは上記第
8図(C)の飾り部分のパターンにそれぞれ対応する。
FIG. 9 is an example of the final enlarged character pattern after the decorative portion has been added in this manner. The part surrounded by a frame is a decorative part, and A corresponds to the pattern of the decorative part shown in FIG. 7(C) above, and B corresponds to the pattern of the decorative part shown in FIG. 8(C) above.

また第10図は他の文字についてそれぞれ異なった文字
構成ドツト数として拡大した結果の印字例を示すもので
ある。
Further, FIG. 10 shows printing examples of the results of enlarging other characters with different numbers of character-constituting dots.

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

第1図はこの発明に係る文字パターン発生装置のブロッ
ク図、第2図はコード生成部のブロック図、第3図はコ
ード化の方法を示すための図、第4図は原文字パターン
の例を示す図、第5図は原文字パターンをコード化し横
方向に拡大した例を示す図、第6図は飾り部分を除去し
た例を示す図、第7図および第8図は飾り部分のパター
ンを示す図、第9図は最終的に生成された拡大文字パタ
ーンを示す図、第10図は拡大された文字の具体的な印
字例を示す図、第11図は従来の方法によって拡大され
た文字パターンを示す図である。 ニー原文字パターンメモリ、 2−コード生成部、 3−拡大文字パターン生成部、 4−拡大文字パターン検索補正部、 5−拡大文字パターンメモリ、 6−タイミング発生部、 21−原文字パターンドツト長カウンタ、22−原文字
パターンドツト位置カウンタ、23−拡大文字パターン
ドツト長1位置計算部、24−原文字パターン検索部、 25−スタート、エンドコード決定部。 第3図 J−+  J i争1 第4図 制御      ・嗜・         ―−第5図 第6図 (B)     (C)      (D)(B)  
    (C)      (D)第9図 軸−・―・       t 第つ図 (A)    (B)    (C) (o)     (E)     CF)苅1図
Figure 1 is a block diagram of a character pattern generator according to the present invention, Figure 2 is a block diagram of a code generator, Figure 3 is a diagram showing the encoding method, and Figure 4 is an example of an original character pattern. Figure 5 is a diagram showing an example of the original character pattern being encoded and expanded horizontally; Figure 6 is a diagram showing an example with the decorative part removed; Figures 7 and 8 are the patterns of the decorative part. , FIG. 9 is a diagram showing the enlarged character pattern finally generated, FIG. 10 is a diagram showing a specific printing example of the enlarged character, and FIG. 11 is a diagram showing the enlarged character pattern enlarged by the conventional method. It is a figure showing a character pattern. knee original character pattern memory, 2-code generation section, 3-enlarged character pattern generation section, 4-enlarged character pattern search correction section, 5-enlarged character pattern memory, 6-timing generation section, 21-original character pattern dot length counter , 22-original character pattern dot position counter, 23-enlarged character pattern dot length 1 position calculation unit, 24-original character pattern search unit, 25-start and end code determination unit. Figure 3 J-+ J i Conflict 1 Figure 4 Control ・Prevention・ --Figure 5 Figure 6 (B) (C) (D) (B)
(C) (D) Figure 9 Axis --- t Figure 2 (A) (B) (C) (o) (E) CF) Figure 1

Claims (1)

【特許請求の範囲】[Claims] (1)原文字パターンを記憶する記憶手段と、前記原文
字パターンを、文字を構成する各ドットの行方向或いは
列方向の並びに関するパターンを表すコード化情報とし
て生成する手段、文字を構成する飾り部分のパターンを
前記コード化情報に基づいて抽出する手段、前記生成さ
れたコード化情報から原文字パターンの飾り部分を除去
する手段、この除去されたコード化情報を基に拡大文字
パターンを生成する手段、拡大文字パターンに対する飾
り部分のパターンを生成する手段、前記生成された拡大
文字パターンに前記拡大文字パターンに対する飾り部分
のパターンを付加する手段、とを備えた文字パターン発
生装置。
(1) A storage means for storing an original character pattern, a means for generating the original character pattern as coded information representing a pattern related to the arrangement of each dot in the row direction or column direction that constitutes the character, and decorations that constitute the character. means for extracting a partial pattern based on the coded information; means for removing decorative parts of the original character pattern from the generated coded information; and generating an enlarged character pattern based on the removed coded information. A character pattern generating device comprising: means for generating a decorative part pattern for an enlarged character pattern; and means for adding a decorative part pattern for the enlarged character pattern to the generated enlarged character pattern.
JP60056965A 1985-03-19 1985-03-19 Character pattern generator Pending JPS61213889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60056965A JPS61213889A (en) 1985-03-19 1985-03-19 Character pattern generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60056965A JPS61213889A (en) 1985-03-19 1985-03-19 Character pattern generator

Publications (1)

Publication Number Publication Date
JPS61213889A true JPS61213889A (en) 1986-09-22

Family

ID=13042239

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60056965A Pending JPS61213889A (en) 1985-03-19 1985-03-19 Character pattern generator

Country Status (1)

Country Link
JP (1) JPS61213889A (en)

Similar Documents

Publication Publication Date Title
US5949435A (en) Digital type font providing typographic feature transformation capability
JPH01174463A (en) Dot pattern correction method
JPS6233948B2 (en)
US5519412A (en) Pattern processing method
KR100255574B1 (en) Character generating apparatus
JPS61213889A (en) Character pattern generator
JPS5816189B2 (en) Character pattern generation method
JPS63203341A (en) Enlarged character generation system
KR900005901B1 (en) Data processes method for character picture
JPH03169655A (en) Color image output/display system
JPH0281657A (en) Character font formation
JPS60176084A (en) Character pattern data 2-d compression
JPH0392897A (en) Pattern generating device
JPS61217092A (en) Character pattern generator
JPH02287739A (en) Memory access method
JPH04188190A (en) Character drawing device, character output compensation method, and character output device
JPH03166597A (en) Character data processing method
KR870000432B1 (en) Memroy system of characters and drawing and apparatus for photo-composing
JP2567590B2 (en) Character generator
KR960016738B1 (en) Method and apparatus for processing information
JPS62116989A (en) Multifont development generator
JPS60242492A (en) Character generator
JPH03271800A (en) Special processing logogram character generating system
JPH07261737A (en) Character and the like generator
JPH01213758A (en) Image data storage method