JPH01178458A - Character pattern conversion processor - Google Patents
Character pattern conversion processorInfo
- Publication number
- JPH01178458A JPH01178458A JP63002940A JP294088A JPH01178458A JP H01178458 A JPH01178458 A JP H01178458A JP 63002940 A JP63002940 A JP 63002940A JP 294088 A JP294088 A JP 294088A JP H01178458 A JPH01178458 A JP H01178458A
- Authority
- JP
- Japan
- Prior art keywords
- column
- row
- dots
- character pattern
- rows
- 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
Links
- 238000006243 chemical reaction Methods 0.000 title claims description 24
- 238000000034 method Methods 0.000 claims description 16
- 238000001514 detection method Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 7
- RRLHMJHRFMHVNM-BQVXCWBNSA-N [(2s,3r,6r)-6-[5-[5-hydroxy-3-(4-hydroxyphenyl)-4-oxochromen-7-yl]oxypentoxy]-2-methyl-3,6-dihydro-2h-pyran-3-yl] acetate Chemical compound C1=C[C@@H](OC(C)=O)[C@H](C)O[C@H]1OCCCCCOC1=CC(O)=C2C(=O)C(C=3C=CC(O)=CC=3)=COC2=C1 RRLHMJHRFMHVNM-BQVXCWBNSA-N 0.000 description 5
- 239000011159 matrix material Substances 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
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 [Field of Industrial Application] The present invention relates to a character pattern conversion processing device, and particularly to one that converts an original character pattern into character patterns of different sizes.
〔従来技術]
従来、ドツトプリンタやサーマルプリンタなどドツトパ
ターンで印字するプリンタにおいては、多数の文字に関
するドツトパターンからなる原文字パターンを格納した
キャラクタジェネレータを備えていて、拡大又は縮小さ
れた文字をプリントするときには文字パターン変換処理
装置によって原文字パターンを拡大又は縮小された文字
の文字パターンに変換して、文字パターンデータを作成
しそのデータによってプリントするようになっている。[Prior Art] Conventionally, printers that print in dot patterns, such as dot printers and thermal printers, are equipped with character generators that store original character patterns made up of dot patterns for many characters, and are capable of printing enlarged or reduced characters. Sometimes, a character pattern conversion processing device converts an original character pattern into a character pattern of enlarged or reduced characters, creates character pattern data, and prints using the data.
上記文字パターン変換処理装置としては、従来より種々
の方式のものが提案され実用化されている。Various types of character pattern conversion processing devices have been proposed and put into practical use.
例えば、特公昭57−27478号公報、特公昭58−
16189号公報及び特公昭58−54395号公報に
は、所定数の行及び列からなる原文字パターンの夫々に
、文字を拡大又は縮小するために挿入又は削除する行及
び列を指示する付加情報を記憶するようにし、その付加
情報に基いて原文字パターンを拡大又は縮小して異なる
大きさの文字のドツトパターンデータを発生するように
した文字パターン発生方式が記載されている。For example, Japanese Patent Publication No. 57-27478, Japanese Patent Publication No. 58-
16189 and Japanese Patent Publication No. 58-54395, additional information indicating the rows and columns to be inserted or deleted in order to enlarge or reduce the characters is added to each original character pattern consisting of a predetermined number of rows and columns. A character pattern generation method is described in which dot pattern data of characters of different sizes is generated by storing the original character pattern and enlarging or reducing the original character pattern based on the additional information.
特公昭56−15555号公報には、原文字パターンの
ドツトパターンを増設する行又は列の数に1を加えた数
の行群又は列群に夫々分割し、分割により隣り合う行又
は列の論理信号が「1」のときには、その分割した行又
は列の間にドツトを追加して文字を拡大するようにした
ドツトマトリクス変換装置が記載されている。Japanese Patent Publication No. 56-15555 discloses that the dot pattern of the original character pattern is divided into row groups or column groups of the number of rows or columns to be added plus 1, and the logic of adjacent rows or columns is determined by dividing. A dot matrix conversion device is described in which when the signal is "1", dots are added between the divided rows or columns to enlarge the character.
〔発明が解決しようとする問題点]
前記特公昭57−27478号公報、特公昭5B−16
189号公報及び特公昭58−54395号公報に記載
の文字パターン発生方式においては、ドツトパターンデ
ータを準備しドツトパターンデータメモリに格納すると
きに、格納する全ての文字の夫々について、挿入又は削
除する行又は列に関する付加情報を予め何らかの手段で
決定しその付加情報をドツトパターンデータとともに入
力格納することが必要でその作業が膨大になること、付
加情報を記憶するための余分なメモリ容量を必要とする
こと、付加情報は特定の大きさの文字に拡大又は縮小す
るときに有効であるが、それ以外の任意の大きさの文字
に拡大又は縮小することができないことなどの問題があ
る。[Problems to be solved by the invention] Said Japanese Patent Publication No. 57-27478, Japanese Patent Publication No. 5B-16
In the character pattern generation methods described in Japanese Patent Publication No. 189 and Japanese Patent Publication No. 58-54395, when dot pattern data is prepared and stored in the dot pattern data memory, each of all characters to be stored is inserted or deleted. It is necessary to determine additional information regarding rows or columns in advance by some means and input and store that additional information together with dot pattern data, which requires an enormous amount of work and requires extra memory capacity to store the additional information. Although the additional information is effective when enlarging or reducing characters of a specific size, there is a problem that it cannot be enlarged or reduced to characters of any other size.
特公昭56−15555号公報に記載のドツトマトリク
ス変換装置においては、原文字パターンを前記のように
決定された数の行群又は列群に略等分割し、その分割箇
所に行又は列を増設するので、この公報の第3図の「須
」の文字の第6両目の縦線と第7両目の縦線の如く同じ
大きさであるべき1対の縦線の一方だけが太くなるなど
、バランスのとれた拡大文字が得られないという問題が
ある。In the dot matrix conversion device described in Japanese Patent Publication No. 56-15555, an original character pattern is divided approximately equally into a number of rows or columns determined as described above, and additional rows or columns are added at the division locations. Therefore, in Figure 3 of this publication, only one of a pair of vertical lines that should be the same size becomes thicker, such as the 6th vertical line and the 7th vertical line of the character "su". There is a problem that balanced enlarged characters cannot be obtained.
本発明の目的は、原文字パターンの原形を極力温存して
バランスのよい拡大又は縮小文字に変換することができ
、原文字パターンを所望の大きさに変換することができ
、原文字パターンを簡単な制御で変換することができる
ような文字パターン変換処理装置を提供することである
。An object of the present invention is to be able to preserve the original form of an original character pattern as much as possible and convert it into a well-balanced enlarged or reduced character, to convert the original character pattern to a desired size, and to simplify the original character pattern. An object of the present invention is to provide a character pattern conversion processing device that can perform conversion under easy control.
本発明に係る文字パターン変換処理装置は、所定数の行
と列のドツトパターンからなる原文字パターンに対し、
行及び/又は列を重複又は削除することにより異なる大
きさの文字パターンに変換する文字パターン変更処理手
段において、文字パターンデータの各行及び/又は各列
のドツト数を検出しドツトメモリに格納する検出手段と
、前記ドツトメモリからのドツト数のデータを受けて、
最小ドツト数を有する1つの行及び/又は列を選択する
選択手段と、前記選択された行及び/又は列に隣接する
行及び/又は列のドツト数に所定数を加えて重み付けし
、その行及び/又は列の前記ドツトメモリにおけるドツ
ト数を変更処理する変更処理手段とを備え、前記選択さ
れた行及び/又は列を除いて、挿入又は削除する行及び
/又は列の数だけ、前記選択手段と変更処理手段による
各処理を繰り返し、前記選択された行及び/又は列をも
って挿入又は削除する行及び/又は列位置を決定するよ
うにしたものである。The character pattern conversion processing device according to the present invention converts an original character pattern consisting of a dot pattern in a predetermined number of rows and columns.
In the character pattern change processing means for converting into a character pattern of a different size by duplicating or deleting rows and/or columns, a detection means detects the number of dots in each row and/or each column of character pattern data and stores it in a dot memory. and receiving the data of the number of dots from the dot memory,
selection means for selecting one row and/or column having the minimum number of dots; and weighting by adding a predetermined number to the number of dots in rows and/or columns adjacent to the selected row and/or column; and/or changing processing means for changing the number of dots in the dot memory of the column, and excluding the selected row and/or column, the selecting means Each process by the change processing means is repeated, and the position of the row and/or column to be inserted or deleted is determined based on the selected row and/or column.
本発明に係る文字パターン変換処理装置においては、検
出手段が原文字パターンの文字パターンデータに基いて
各行及び/又は各列のドツト数を検出すると共にそのド
ツト数をドツトメモリに格納する。選択手段は、ドツト
メモリからのドツト数のデータを受けて、最小ドツト数
を有する1つの行及び/又は列を選択する。更に、変更
処理手段は、選択手段で選択された行及び/又は列に隣
接する行及び/又は列のドツト数に所定数を加えて重み
付けし、ドツトメモリにおけるその行及び/又は列のド
ツト数を変更処理する。選択された行及び/又は列を除
いて、選択手段により最小ドツト数を有する1つの行及
び/又は列を選択する処理と、変更処理手段により重み
付けされた行及び/又は列のドツト数をドツトメモリに
おいて変更する処理とが行及び/又は列について挿入又
は削除する行及び/又は列の数だけ順々に行なわれ、挿
入又は削除する行及び/又は列が決定される。In the character pattern conversion processing device according to the present invention, the detection means detects the number of dots in each row and/or each column based on the character pattern data of the original character pattern, and stores the number of dots in the dot memory. The selection means receives the dot number data from the dot memory and selects one row and/or column having the minimum number of dots. Furthermore, the change processing means weights the number of dots in the row and/or column adjacent to the row and/or column selected by the selection means by adding a predetermined number to the number of dots in the row and/or column in the dot memory. Process changes. Excluding the selected row and/or column, the selection means selects one row and/or column having the minimum number of dots, and the change processing means stores the weighted number of dots in the row and/or column in the dot memory. The process of changing rows and/or columns is performed in sequence for the number of rows and/or columns to be inserted or deleted, and the rows and/or columns to be inserted or deleted are determined.
従って、決定された行及び/又は列を挿入又は削除する
ことにより異なる大きさの文字パターンに変換すること
が出来る。Therefore, character patterns of different sizes can be converted by inserting or deleting determined rows and/or columns.
即ち、ドツト数の少ない行及び/又は列から優先して順
々に必要数だけ選択することにより挿入又は削除する行
及び/又は列を決定するので、原文字パターンへの影響
の少ない箇所を挿入又は削除することになる。しかも、
最小ドツト数の行及び/又は列を選択する毎にそれに隣
接する行及び/又は列のドツト数に所定数を加えて重み
付けするので、挿入又は削除する行及び/又は列が集中
することがなく全体的にバランスよく分散する。In other words, the rows and/or columns to be inserted or deleted are determined by sequentially selecting the required number of dots, starting with the rows and/or columns with the least number of dots, so it is possible to insert the rows and/or columns that have the least impact on the original character pattern. Or it will be deleted. Moreover,
Each time a row and/or column with the minimum number of dots is selected, it is weighted by adding a predetermined number to the number of dots in the adjacent row and/or column, so the rows and/or columns to be inserted or deleted are not concentrated. Distributed in a well-balanced manner overall.
従って、原文字パターンの原形を極力温存しつつ全体的
にバランスよく拡大又は縮小することができる。Therefore, the original character pattern can be enlarged or reduced in a well-balanced manner as a whole while preserving the original form as much as possible.
[発明の効果〕
本発明に係る文字パターン変換処理装置によれば、以上
説明したように、ドツト数の少ない行及び/又は列から
優先して挿入又は削除する行及び/又は列を選択し且つ
最小ドツト数の行及び/又は列に隣接する行及び/又は
列のドツト数に重み付けするのを順々に繰り返して挿入
又は削除する行及び/又は列を決定することにより、原
文字パターンの原形を極力温存しつつ全体的にバランス
よく挿入又は削除して原文字パターンをバランスよく拡
大又は縮小することが出来る。前記重み付けにより、原
文字パターンを構成する線が過度に長くなったり短くな
ったりすることがなくバランスが保たれる。[Effects of the Invention] As explained above, the character pattern conversion processing device according to the present invention selects rows and/or columns to be inserted or deleted with priority given to rows and/or columns with the smallest number of dots, and The original form of the original character pattern is determined by determining the row and/or column to be inserted or deleted by repeatedly weighting the number of dots in rows and/or columns adjacent to the row and/or column with the minimum number of dots. It is possible to expand or reduce the original character pattern in a well-balanced manner by inserting or deleting it in a well-balanced manner as a whole while preserving as much as possible. Due to the weighting, the lines constituting the original character pattern do not become excessively long or short, and a balance is maintained.
また、この文字パターン変換処理装置では、選択手段及
び変更処理手段による処理の繰返し回数を自由に設定し
得るので、任意の文字の大きさに拡大又は縮小すること
が出来る。Further, in this character pattern conversion processing device, since the number of repetitions of the processing by the selection means and the change processing means can be freely set, it is possible to enlarge or reduce the character size to any desired size.
更に、検出手段、選択手段及び変更処理手段で行なう制
御は比較的簡単であり、これらの手段の構成が簡単なも
のとなる。Furthermore, the control performed by the detection means, selection means, and change processing means is relatively simple, and the configuration of these means is simple.
以下、本発明の実施例について図面に基いて説明する。 Embodiments of the present invention will be described below with reference to the drawings.
本発明を適用したサーマルプリンタの制御装置lは、第
1図のブロック図に示すように、基本的にはCPU (
中央演算装置)2、CPU2にデータバスなどを介して
接続されたキャラクタジェネレータ3、ROM (リー
ド・オンリ・メモリ)4、RAM (ランダム・アクセ
ス・メモリ)5とから構成されている。また、CPU2
は、入力装置6(キーボード)と、印字機構8の各モー
タやサーマルヘッドの為の複数の駆動回路を有する駆動
部7と、デイスプレィを有する表示装置9とに接続され
ており、印字機構8の印字ヘッドは36ドツトのドツト
列で印字可能なサーマルヘッドである。As shown in the block diagram of FIG. 1, the thermal printer control device l to which the present invention is applied basically consists of a CPU (
It consists of a central processing unit) 2, a character generator 3 connected to the CPU 2 via a data bus, a ROM (read only memory) 4, and a RAM (random access memory) 5. Also, CPU2
is connected to an input device 6 (keyboard), a drive section 7 having a plurality of drive circuits for each motor and thermal head of the printing mechanism 8, and a display device 9 having a display. The print head is a thermal head capable of printing in a row of 36 dots.
キャラクタジェネレータ3には、多数の文字や記号の夫
々について24(行)X24(列)のドツトパターン(
ドツトマトリックス)で構成された原文字パターンのド
ツトパターンデータが、文字や記号などのコードデータ
と対応して記憶されている。例えば、第2図に示すよう
に、文字「曳」の原文字パターンは、24(行)X24
(列)のドツトパターンで構成されたドツトパターンデ
ータで記憶している。尚、この文字「曳」の■の部分に
対応するドントデータは「l」また白地部分のトッドデ
ータは「0」のデータで記憶している。The character generator 3 has 24 (rows) x 24 (columns) dot patterns (
Dot pattern data of an original character pattern composed of a dot matrix) is stored in correspondence with code data such as characters and symbols. For example, as shown in Figure 2, the original character pattern for the character "hiki" is 24 (rows) x 24
It is stored as dot pattern data consisting of (rows) of dot patterns. Note that the don't data corresponding to the ■ part of the character "hiki" is stored as "l", and the tod data of the white background part is stored as "0".
ROM4には、後述の異なる大きさの文字パターンに変
換するパターン変換処理制御の制御プログラムが記憶さ
れている。The ROM 4 stores a control program for controlling pattern conversion processing to convert character patterns of different sizes, which will be described later.
RAM5には、各行のドツト数を行番号と対応づけて記
憶し或いは各列のドツト数を列番号と対応づけて記憶す
るドツトデータメモリと、CPU2で演算した結果を一
時的に記憶する各種のメモリが設けられている。The RAM 5 includes a dot data memory that stores the number of dots in each row in association with the row number or the number of dots in each column in association with the column number, and various types of memory that temporarily stores the results of calculations performed by the CPU 2. Memory is provided.
次に、制御装置1で行われるパターン変換処理制御のル
ーチンについて、第3図のフローチャートに基いて説明
する。尚、この制御では、文字の縦と横とを入力された
拡大倍率で夫々拡大する場合について説明する。Next, a pattern conversion processing control routine performed by the control device 1 will be explained based on the flowchart shown in FIG. In addition, in this control, a case will be explained in which the vertical and horizontal directions of the character are respectively enlarged at the inputted enlargement magnification.
前記入力装置からCPU2にコードデータが入力される
とこの制御が開始され、先ず入力されたコードデータに
対応するドツトパターンデータがキャラクタジェネレー
タ3から読出される(Sl)。When code data is input to the CPU 2 from the input device, this control is started, and first, dot pattern data corresponding to the input code data is read out from the character generator 3 (Sl).
そして、入力された拡大倍率のデータに基いて、演算式
:N=24X(拡大倍率)−24に従って(重複)させ
る行及び列の数(選択回数N)が演算され(S2)、そ
の選択回数Nがカウンタ■に書き込まれる(S3)。次
に各行のドツトパターンデータについて、「1」のドツ
トデータをカウントすることにより各行のドツト数が求
められ、そのドツト数が行番号と対応づけてRAM5の
ドツトデータメモリに記憶される(S4)。Then, based on the input magnification data, the number of rows and columns to be (duplicated) (N number of selections N) is calculated according to the calculation formula: N = 24X (enlargement magnification) - 24 (S2), and the number of selections is N is written to the counter (S3). Next, regarding the dot pattern data of each row, the number of dots in each row is determined by counting the dot data of "1", and the number of dots is stored in the dot data memory of the RAM 5 in association with the row number (S4). .
次に、前記ドツトデータメモリから読出したドツト数の
データに基いて、以前に選択された行を除いた行につい
て1つの最小ドツト数の行が選択され、挿入させる行が
決定される(S5)。尚、最小ドツト数の行が複数有る
ときには、行番号の小さい方を優先して選択するように
なっている。Next, based on the dot number data read from the dot data memory, one row with the minimum number of dots is selected among the rows excluding the previously selected rows, and the row to be inserted is determined (S5). . Note that when there are multiple lines with the minimum number of dots, the one with the smaller line number is selected preferentially.
そして、以前に選択された行を除いた行について、ドツ
トデータメモリにおいて前記選択された行に隣接する2
つの行のドツト数に夫々「1」を加えてドツト数が変更
されて重み付は処理され(36)、カウンタ■のカウン
ト値■から1が減算され(S7)、カウント値■が0で
ないときには(S8)、35〜S8がN回繰り返され、
カウント値1−0となって挿入させる全部の行が決定さ
れたときにはS9へ移行する。Then, for the rows excluding the previously selected row, two adjacent rows in the dot data memory are selected.
The number of dots in each row is changed by adding "1" and the weighting is processed (36), and 1 is subtracted from the count value ■ of the counter ■ (S7), and when the count value ■ is not 0, (S8), 35 to S8 are repeated N times,
When the count value becomes 1-0 and all the rows to be inserted have been determined, the process moves to S9.
例えば、第4図に示すように、第2図に示す文字「曳」
の各行についてドツト数が求められドツトデータメモリ
に記憶される。第1行目のドツト数は「3」、第2行目
のドツト数は「2」、・・・・第24行目のドツト数は
「4」である。そして、拡大倍率が1.5倍のときには
、演算式に従って選択回数「12」が求められ、第1回
目の選択では、最小ドツト数が「2」の第2行目が選択
されると共に、第2行目に隣接する第1行目及び第3行
目のドツト数に夫々「1」が加えられて重み付は処理さ
れる。その結果、第1行目のドツト数は「4」となり、
第3行目のドツト数は「3」となる。第2回目の選択で
は、以前に選択された第2行目以外の行において最小ド
ツト数が「3」の第3行目が選択されると共に、以前に
選択された第2行目以外の行において第3行目に隣接す
る第1行目及び第4行目のドツト数に夫々「1」が加え
られて重み付は処理される。その結果、第1行目のドツ
ト数は「5」となり、第4行目のドツト数は「6」とな
る。以下、同様にして12回順々に実行され、第1行目
、第2行目、第3行目、第6行目、第8行目、第10行
目、第12行目、第15行目、第17行目、第19行目
、第20行目及び第24行目の12行が選択され、挿入
させる行が決定されこれらの行の行番号がRAM5のメ
モリに格納される。For example, as shown in Figure 4, the character "hiki" shown in Figure 2
The number of dots is determined for each row and stored in the dot data memory. The number of dots in the first row is "3", the number of dots in the second row is "2", . . . the number of dots in the 24th row is "4". Then, when the enlargement magnification is 1.5 times, the number of selections "12" is calculated according to the calculation formula, and in the first selection, the second row with the minimum number of dots "2" is selected, and the Weighting is performed by adding "1" to the number of dots in the first and third rows adjacent to the second row, respectively. As a result, the number of dots in the first row is "4",
The number of dots in the third row is "3". In the second selection, the third row with the minimum number of dots of "3" is selected among the previously selected rows other than the second row, and the third row other than the previously selected second row is selected. The weighting process is performed by adding "1" to each of the numbers of dots in the first and fourth rows adjacent to the third row. As a result, the number of dots in the first row is "5" and the number of dots in the fourth row is "6". Thereafter, it is executed in the same way 12 times in order, and the 1st line, the 2nd line, the 3rd line, the 6th line, the 8th line, the 10th line, the 12th line, the 15th line Twelve rows, including row 1, 17, 19, 20, and 24, are selected, rows to be inserted are determined, and the row numbers of these rows are stored in the memory of the RAM 5.
次に、選択回数Nがカウンタ■に書き込まれ(39)、
キャラクタジェネレータ3から読出した各列のドツトパ
ターンデータについて、「1」のドツトデータの数をカ
ウントすることにより各列のドツト数が求められ、その
ドツト数が列番号と対応づけてRAM5のドツトデータ
メモリに記憶される(SIO)。Next, the number of selections N is written to the counter ■ (39),
Regarding the dot pattern data of each column read from the character generator 3, the number of dots in each column is determined by counting the number of dot data of "1", and the number of dots is associated with the column number and stored in the dot data of the RAM 5. Stored in memory (SIO).
Sll−S14では、35〜S8と同様に挿入させる列
がN回選択されて決定されてこれらの列の列番号がRA
M5のメモリに格納され、S15へ移行する。In Sll-S14, the columns to be inserted are selected and determined N times in the same way as 35 to S8, and the column numbers of these columns are set to RA.
It is stored in the memory of M5, and the process moves to S15.
例えば、第5図に示すように、第2図に示す文字「曳」
の各列についてドツト数が求められる。For example, as shown in Figure 5, the character "hiki" shown in Figure 2
The number of dots is determined for each column.
第1列目のドツト数は「0」、第2列目のドツト数はr
2.、・・・・第24列目のドツト数は「2」である。The number of dots in the first column is "0", and the number of dots in the second column is r
2. , . . . The number of dots in the 24th column is "2".
そして、第1回目の選択では、最小ドツト数が「0」の
第1列目が選択されると共に、第1列目に隣接する第2
列目のドツト数に「1」が加えられて重み付は処理され
る。その結果、第2列目のドツト数は「2」となる。第
2回目の選択では、以前に選択された第1列目以外の列
において最小ドツト数が「1」の第2列目が選択される
と共に、以前に選択された第1列目以外の列において第
2列目に隣接する第3列目のドツト数に「1」が加えら
れて重み付は処理される。In the first selection, the first column where the minimum number of dots is "0" is selected, and the second column adjacent to the first column is selected.
Weighting is performed by adding "1" to the number of dots in the column. As a result, the number of dots in the second column is "2". In the second selection, the second column with the minimum number of dots of "1" is selected in the columns other than the previously selected first column, and the columns other than the previously selected first column are selected. The weighting process is performed by adding "1" to the number of dots in the third column adjacent to the second column.
尚、ドツト数が同数のときには列番号の小さい列が選択
される。その結果、第3列目のドツト数は「14」とな
る。以下、同様にして12回順々に実行され1、第1列
目、第2列目、第5列目、第6列目、第7列目、第9列
目、第10列目、第15列目、第17列目、第19列目
、第22列目及び第24列目の12列が選択され、挿入
させる列が決定されこれらの列番号がRAM5のメモリ
に格納される。Note that when the number of dots is the same, the column with the smaller column number is selected. As a result, the number of dots in the third column is "14". Thereafter, the execution is repeated 12 times in the same way. Twelve columns, the 15th column, the 17th column, the 19th column, the 22nd column, and the 24th column, are selected, columns to be inserted are determined, and these column numbers are stored in the memory of the RAM 5.
S15は、前述のようにして決定された挿入すべき行及
び列のデータと原文字パターンのドツトパターンデータ
とに基いて、拡大された変換パターンのドツトパターン
を作成するステップであり、先ず行の増設に関して説明
すると、前述の如く挿入すべく決定された12行の行番
号のデータをメモリから読込んでおく一方、原文字パタ
ーンのドツトパターンデータを第1行目から順々に読込
み、前記挿入すべく決定された行については、当該行の
ドツトパターンデータのコピーを作成し、当該行と原文
字パターンの次行との間に挿入させることにより縦方向
に拡大された文字パターンのドツトパターンデータが決
定される。S15 is a step of creating a dot pattern of the enlarged conversion pattern based on the row and column data to be inserted determined as described above and the dot pattern data of the original character pattern. To explain the expansion, the data for the 12 line numbers determined to be inserted as described above is read from memory, while the dot pattern data of the original character pattern is read in order from the first line, and then the data for the insertion is performed. For the line that has been determined to be the same, a copy of the dot pattern data of the line is created and inserted between the line and the next line of the original character pattern, so that the dot pattern data of the vertically expanded character pattern is created. It is determined.
次に列の増設に関して説明すると、前述の如く挿入すべ
く決定された12列の列番号のデータをメモリから読込
んでおく一方、前記縦方向に拡大さた文字パターンのド
ツトパターンデータを第1行目から順々に読込み、各行
のドツトパターンデータにおいて前記挿入すべく決定さ
れた列については、当該列に対応するビットのデータの
コピーを作成し、当該ビットと縦方向に拡大されたドツ
トパターンの次ビットとの間に挿入させる。以上のよう
にして、縦方向に拡大され且つ横方向に拡大さた文字パ
ターンのドツトパターンデータが決定される。Next, to explain the addition of columns, while the column number data of the 12 columns determined to be inserted as described above is read from the memory, the dot pattern data of the character pattern expanded in the vertical direction is added to the first row. For the column determined to be inserted in the dot pattern data of each row, a copy of the data of the bit corresponding to the column is created, and the data of the bit and the vertically enlarged dot pattern are Insert between the next bit and the next bit. In the manner described above, dot pattern data of a character pattern enlarged both vertically and horizontally is determined.
前記31〜S15のルーチンによって1個の文字又は記
号についての文字パターン変換処理が終了し、S15か
ら31へ戻って次の文字や記号についての変換処理が実
行さる。The character pattern conversion process for one character or symbol is completed by the routine from 31 to S15, and the process returns from S15 to 31 to execute the conversion process for the next character or symbol.
例えば、第6図に示すように原文字「曳J (第2図参
照)に対して縦と横とに夫々1.5倍に拡大された文字
「曳」の変換パターンつまり36行×36列のドツトパ
ターンデータが作成される。For example, as shown in Figure 6, the conversion pattern for the character ``hiki'', which is enlarged 1.5 times vertically and horizontally relative to the original character ``hiki J'' (see Figure 2), is 36 rows x 36 columns. dot pattern data is created.
尚、文字の縦と横とを夫々入力された縮小倍率で縮小す
る場合には、演算式で求められた選択回iNに対応して
決定されたN個の行及びN個の列を削除することにより
、原文字に対して縮小倍率で縮小された変換パターンの
ドツトパターンデータが作成される。In addition, when reducing the length and width of a character by the respectively input reduction magnification, N rows and N columns determined according to the selection times iN determined by the calculation formula are deleted. As a result, dot pattern data of a converted pattern that is reduced by the reduction magnification with respect to the original character is created.
尚、縦方向のみ拡大成いは縮小する場合には、行に関し
てのみ挿入或いは削除する行を決定すればよく、また横
方向のみ拡大成いは縮小する場合には、列に関してのみ
挿入或いは削除する列を決定すればよい。Note that when enlarging or reducing only the vertical direction, it is only necessary to determine the rows to be inserted or deleted, and when enlarging or reducing only the horizontal direction, insert or delete only the columns. All you have to do is decide on the column.
以上説明したように、ドツト数の少ない行及び/又は列
から優先して順々に選択して挿入又は削除しながら、選
択された行及び/又は列に隣接する行及び/又は列のド
ツト数に1を加えて重み付けするのを必要数だけ繰り返
して挿入又は削除する行及び/又は列を決定するので、
原文字パターンの原形が極力温存され、挿入又は削除す
る行及び/又は列が全体的に分散して文字や記号の線が
過度に長くなったり短くなったりせず、バランスのとれ
た文字パターンに拡大又は縮小することが出来る。As explained above, while sequentially selecting and inserting or deleting rows and/or columns with a smaller number of dots, the number of dots in rows and/or columns adjacent to the selected row and/or column is The rows and/or columns to be inserted or deleted are determined by adding 1 and weighting as many times as necessary.
The original form of the original character pattern is preserved as much as possible, lines and/or columns to be inserted or deleted are dispersed throughout, and the lines of characters and symbols are not excessively long or short, resulting in a well-balanced character pattern. It can be enlarged or reduced.
しかも、この変換処理のルーチンは比較的シンプルであ
り、CPU2の負担も軽いものである。Furthermore, the routine for this conversion process is relatively simple, and the burden on the CPU 2 is light.
尚、選択された行及び/又は列に隣接する行及び/又は
列に重み付けする値を「1」以外に設定してもよく、ま
た拡大又は縮小する文字に応じて重み付けする値を変更
するようにしてもよい。Note that the weighting value for the row and/or column adjacent to the selected row and/or column may be set to a value other than "1", and the weighting value may be changed depending on the character to be enlarged or reduced. You may also do so.
尚、この制御装置1によるパターン変換処理制御は、2
4行×24列のドツトパターン以外のドツトパターンで
構成された原文字パターンを拡大又は縮小するときにも
同様に適用し得ることば勿論である。Note that the pattern conversion processing control by this control device 1 is performed by 2
Of course, the present invention can also be similarly applied when enlarging or reducing an original character pattern composed of dot patterns other than the 4 rows x 24 columns dot pattern.
図面は本発明の実施例を示すもので、第1図はサーマル
プリンタの制御装置のブロック図、第2図は文字「曳」
の原文字パターンのドツトパターンを示す図、第3図は
パターン変換処理制御のルーチンのフローチャート、第
4図は重複させる行の選択過程を説明する説明図、第5
図は重複させる列の選択過程を説明する説明図、第6図
は拡大された文字「曳」のドツトパターンを示す図であ
る。
1・・制御装置、 2・・CPU、 3・・キャラクタ
ジェネレータ、 4・・ROM。
特 許 出 願 人 ブラザー工業株式会社第3図
第2図
(行)
第6図
(行)The drawings show an embodiment of the present invention, and FIG. 1 is a block diagram of a control device for a thermal printer, and FIG. 2 is a block diagram of a control device for a thermal printer.
3 is a flowchart of the pattern conversion processing control routine, FIG. 4 is an explanatory diagram illustrating the process of selecting lines to be duplicated, and FIG. 5 is a diagram showing the dot pattern of the original character pattern.
The figure is an explanatory diagram illustrating the process of selecting columns to be duplicated, and FIG. 6 is a diagram showing an enlarged dot pattern of the character "hiki". 1. Control device, 2. CPU, 3. Character generator, 4. ROM. Patent applicant Brother Industries, Ltd. Figure 3 Figure 2 (row) Figure 6 (row)
Claims (1)
パターンに対し、行及び/又は列を挿入又は削除するこ
とにより異なる大きさの文字パターンに変換する文字パ
ターン変換処理装置において、文字パターンデータの各
行及び/又は各列のドット数を検出しドットメモリに格
納する検出手段と、 前記ドットメモリからのドット数のデータを受けて、最
小ドット数を有する1つの行及び/又は列を選択する選
択手段と、 前記選択された行及び/又は列に隣接する行及び/又は
列のドット数に所定数を加えて重み付けし、その行及び
/又は列の前記ドットメモリにおけるドット数を変更処
理する変更処理手段とを備え、 前記選択された行及び/又は列を除いて、挿入又は削除
する行及び/又は列の数だけ、前記選択手段と変更処理
手段による各処理を繰り返し、前記選択された行及び/
又は列をもって挿入又は削除する行及び/又は列位置を
決定することを特徴とする文字パターン変換処理装置。(1) In a character pattern conversion processing device that converts an original character pattern consisting of a dot pattern of a predetermined number of rows and columns into a character pattern of a different size by inserting or deleting rows and/or columns, the character pattern a detection means for detecting the number of dots in each row and/or each column of data and storing it in a dot memory; and receiving data on the number of dots from the dot memory and selecting one row and/or column having the minimum number of dots. a selection means for weighting by adding a predetermined number to the number of dots in a row and/or column adjacent to the selected row and/or column, and changing the number of dots in the dot memory in the row and/or column; and a change processing means for repeating each process by the selection means and the change processing means for the number of rows and/or columns to be inserted or deleted, excluding the selected row and/or column, ta line and/
A character pattern conversion processing device characterized in that the position of a row and/or column to be inserted or deleted is determined based on the character pattern conversion processing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63002940A JPH01178458A (en) | 1988-01-08 | 1988-01-08 | Character pattern conversion processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63002940A JPH01178458A (en) | 1988-01-08 | 1988-01-08 | Character pattern conversion processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01178458A true JPH01178458A (en) | 1989-07-14 |
Family
ID=11543355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63002940A Pending JPH01178458A (en) | 1988-01-08 | 1988-01-08 | Character pattern conversion processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01178458A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5348576A (en) * | 1991-03-12 | 1994-09-20 | Nippon Paint Co., Ltd. | Antifouling composition |
-
1988
- 1988-01-08 JP JP63002940A patent/JPH01178458A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5348576A (en) * | 1991-03-12 | 1994-09-20 | Nippon Paint Co., Ltd. | Antifouling composition |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4090188A (en) | Dot matrix converter | |
EP0284980B1 (en) | Method for generating character images for dot printing | |
EP0159895B1 (en) | Printer for printing characters in two alternative print qualities | |
US5062724A (en) | Method of magnifying a bit map font data in a horizontal direction | |
US4827254A (en) | Display apparatus adapted to display various types of modified characters | |
JPH01178458A (en) | Character pattern conversion processor | |
EP0409450B1 (en) | Character generator | |
JPS594706B2 (en) | Print pattern generator | |
JP2978208B2 (en) | Font data compression method for character generator | |
JP2980732B2 (en) | How to generate outline fonts | |
JPS6223316B2 (en) | ||
JP3013512B2 (en) | Barcode printer | |
US6014225A (en) | Frame buffer control method and circuit | |
JPH0456317B2 (en) | ||
JPS61158384A (en) | Character processor | |
JPH0426137B2 (en) | ||
JPH0226234B2 (en) | ||
JP2704954B2 (en) | Bit extender | |
JPH05309873A (en) | Making device of contracted letter pattern | |
JPS5874364A (en) | Character printing system | |
JPH02258265A (en) | Recording head drive control system | |
JPH0596811A (en) | Printing method | |
JPH04174899A (en) | Dot character pattern expanding device | |
JPS59116782A (en) | Generator for character signal or the like | |
JPH05294016A (en) | Image data output method |