JPS62178354A - Character generating method - Google Patents

Character generating method

Info

Publication number
JPS62178354A
JPS62178354A JP61019848A JP1984886A JPS62178354A JP S62178354 A JPS62178354 A JP S62178354A JP 61019848 A JP61019848 A JP 61019848A JP 1984886 A JP1984886 A JP 1984886A JP S62178354 A JPS62178354 A JP S62178354A
Authority
JP
Japan
Prior art keywords
character
data
area width
reduction
address
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
JP61019848A
Other languages
Japanese (ja)
Inventor
Norihiro Hidaka
日高 教裕
Masaaki Fukumura
福村 正明
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 JP61019848A priority Critical patent/JPS62178354A/en
Publication of JPS62178354A publication Critical patent/JPS62178354A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers

Abstract

PURPOSE:To obtain a character generating method capable of narrowing a character area width by having character data provided with address information indicating a narrow area read data based on that information. CONSTITUTION:If a character area width reduction mode is determined by a mode decision means, 'reduction' information is retrieved by a reduction information storage means 2. If a narrower character area width than a conventional character area width is displayed, reduction address storage means 3 is further retrieved and character data of a character generator 4 is read based on a reduction address. If an ordinary character area width is displayed in the reduction information storage means 2, the full memory area of display or printing character data can be read in usual manner, without retrieving the reduction address storage means 3. In addition, if an ordinary character area width mode is determined by the mode decision means 1, both the reduction information storage means 2 and the reduction address storage means 3 are not retrieved and the full memory area of display or printing character data can be read as usual.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は、CRTディスブレス装置、プリンタ等に表
示または印字する文字、記号(以F1文字等と呼ぶ)を
生成する文字生成方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a character generation method for generating characters and symbols (hereinafter referred to as F1 characters, etc.) to be displayed or printed on a CRT display device, printer, etc.

[従来技術とその聞届点] 読出し1,1メ用メモリ(以下、ROMと呼ぶ)にキャ
ラクタデータを予め記憶しておき(このlJ的で使用さ
れるROMは一般にキャラクタ−ジェネレータと呼ばれ
ている)、このROMに記憶され従来の文字生成方式に
おいては、キャラクタデータの1文字当りのメモリ領域
すなわち、1文字に対するビット数が固定されており、
全てのビットがキャラクタデータとしてアクセスされて
いる。
[Prior art and its findings] Character data is stored in advance in a readout 1/1 memory (hereinafter referred to as ROM). In the conventional character generation method stored in this ROM, the memory area for each character of character data, that is, the number of bits for one character, is fixed.
All bits are accessed as character data.

したがって、このキャラクタデータに基づいて表示また
は印字した場合1句点「、」、読点「、」、カンマ「、
」、コロンr:」hg、文字形状が小さい、すなわち字
幅が狭い文字等も通常の字幅の文字等と同様の表示領域
または印字領域を占めることとなり、CRTディスプレ
イ装置の表示領域、プリンタ印字領域等を有効に活用し
ているとははえなかった。また1字幅の狭い文字等の部
分では、文字領域幅が広すぎて間延びした感じに見え、
交信としてスムーズに読めなくなるという欠点もあり、
さらに、通常の字幅の文字等であっても、使用態様によ
っては文字領域幅を狭くしたい場合もあるが、従来方式
ではこれに対処することができなかった。
Therefore, when displayed or printed based on this character data, one period mark ",", comma ",", comma ","
", Colon r: "hg, Characters with small character shapes, that is, characters with narrow character width, occupy the same display area or print area as characters with normal character width, and the display area of CRT display devices and printer printing It did not appear that the area was being utilized effectively. Also, in areas such as characters where the width of one character is narrow, the character area width is too wide and it looks stretched out.
There is also the disadvantage that it cannot be read smoothly as a communication,
Furthermore, even for characters with a normal character width, there are cases where it is desired to reduce the width of the character area depending on the manner of use, but conventional methods have not been able to deal with this.

[発IJIの[I的J この発明は上述した“杯情に鑑みてなされたもので、そ
のlJ的とするところは1文字等の固有の字幅や使用態
様等に応じて文字領域幅を狭くすることのできる文字生
成方式を提供することにある。
[IJI's [IJ] This invention was made in view of the above-mentioned "philosophy," and the purpose of this invention is to adjust the width of the character area according to the unique character width of a single character, how it is used, etc. The object of the present invention is to provide a character generation method that can be narrowed down.

[発明の要点J この発明は、に記の目的を達成するため、文字笠の形状
情報と文字領域幅情報とを兼イ1するキャラクタデータ
に対して文字領域幅短縮指示がなされている場合は、狭
い領域を示すアドレス情報が+1力11されているキャ
ラクタデータはそのアドレス情報に基づいてキャラクタ
データを読み出すことを特徴とするものである。
[Summary of the Invention J] In order to achieve the object described in 1, the present invention provides the following advantages: Character data whose address information indicating a narrow area is incremented by +1 or 11 is characterized in that the character data is read out based on the address information.

[発明の作用] 第1図は、この発明の概念を示す図であり、モード判定
「1段lにより文字領域幅短縮モードであるとr(定さ
れた場合は、短縮情報記tf!L段2の短縮情報を検索
し1通常の文字領域幅よりも狭い文字領域幅が示されて
いる時は、さらに短縮アドレス記憶[段3を検索し、そ
の短縮アドレスに)6(づいてキャラクタジェネレータ
4のキャラクタデータを読み出す、短縮情報記憶り段2
に通常の文字領域幅が示されている時は、短縮アドレス
記憶1段3を検索することなく、通常通り表示または印
字文字のキャラクタデータの全メモリ領域が読出される
。また、モード判定手段lにより通常文字領域幅モード
であると判定された場合は、短縮情報記+2r1段2と
短縮アドレス記憶手段3とは共に検索されず通常通り表
示または印字文字のキャラクタデータの全メモリ領域が
読出される。
[Operation of the Invention] FIG. 1 is a diagram showing the concept of the present invention, in which the mode judgment "1 stage l determines that the character area width shortening mode is r (when it is determined that the character area width shortening mode is set, the shortening information record tf!L stage When the shortened information in step 2 is searched and a character area width narrower than the normal character area width is shown, the shortened address memory [row 3 is searched and the shortened address is searched] 6 (then the character generator 4 Abbreviated information storage stage 2 for reading character data of
When the normal character area width is indicated, the entire memory area of the character data of the displayed or printed character is read out as usual without searching the abbreviated address storage 1 stage 3. In addition, if the mode determining means 1 determines that the mode is the normal character area width mode, the shortened information record +2r1 stage 2 and the shortened address storage means 3 are not searched, and all of the character data of the displayed or printed characters is searched normally. A memory area is read.

[実施例] 以ド、この発明の・実施例を図面に基づいて詳、wJに
説明する。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は、この発明の一実施例による文字生成方式の構
成図である。+−ボード5のキー操作によりモード設定
信号−が出力されると、CPU6はそのモードに従って
キャラクタジェネレータ4をアクセスする。このキャラ
クタジェネレータ4はROMにより構成され、このRO
Mには文字等の形状情報と文字領域幅情報とを兼有する
キャラクタデータが矛め記憶されている。CPU6は、
キャラクタジェネレータ4から読み出したキャラクタデ
ータを、CRTディスプレイ装置9の表示位置に対応す
る表示RAM7のメモリ領域に格納するとともに、プリ
ンタ10の印字位置に対応する印t−RA M 8のメ
モリ領域に格納する。このようにして表示RAM7、印
字RAM8に格納されたキャラクタデータは、CRTデ
ィプレイ装置9゜プリンタlOの対応する位置にそれぞ
れ表示、印字される。
FIG. 2 is a block diagram of a character generation method according to an embodiment of the present invention. When a mode setting signal - is output by key operation on the +- board 5, the CPU 6 accesses the character generator 4 according to the mode. This character generator 4 is constituted by a ROM, and this RO
Character data having both shape information of characters and character area width information is stored in M. CPU6 is
Character data read from the character generator 4 is stored in the memory area of the display RAM 7 corresponding to the display position of the CRT display device 9, and also stored in the memory area of the mark t-RAM 8 corresponding to the print position of the printer 10. . The character data thus stored in the display RAM 7 and print RAM 8 are displayed and printed at corresponding positions on the CRT display device 9 and printer 10, respectively.

第3図は第2図に示したキャラクタジェネレータ4のデ
ータ構造を示す図であり、1文字当りのキャラクタデー
タは24X24の576ビツトで構成されている0図中
斜線で示したように、lアドレス当りのメモリ領域は、
1バイトで構成され、アドレスは矢印で示したように右
方向に1番地、2番地・・・・・・と進行しており、こ
れに対応してキャラクタデータに対するアクセスも右方
に進行する。このキャラクタデータには、1文字ごとに
文字領域幅短縮用のフラグAが付加され、フラグAがl
″のキャラクタデータに対しては、短縮アドレスデータ
BとしてスタートアドレスデータBlとエンドアドレス
データB2とが付加されている。このスタートアドレス
データBlとエンドアドレスデータB2とは、キャラク
タジェネレータ4を4R成するROMの絶対アドレスで
はなく。
FIG. 3 is a diagram showing the data structure of the character generator 4 shown in FIG. The relevant memory area is
It consists of one byte, and the addresses progress to the right as indicated by the arrows, such as 1st address, 2nd address, etc. Correspondingly, access to character data also progresses to the right. A flag A for shortening the character area width is added to this character data for each character, and the flag A is
'', start address data Bl and end address data B2 are added as shortened address data B. The start address data Bl and end address data B2 form the character generator 4 in 4R. Not the absolute ROM address.

1文字分のメモリ領域内における内部アドレス(相対ア
ドレス)で示されている。フラグAが“0″のキャラク
タデータに対しては、第4図に示したように短縮アドレ
スデータBが付加されていない、フラグAに“1″が設
定されるのは、第3図のカンマ「、」のように字幅の狭
い文字等や使用態様により文字領域幅の短縮が望まれる
可能性のある文字等のキャラクタデータに対してである
。フラグAが“1″のキャラクタデータは、文字領域幅
短縮モード時には、スタートアドレスデータ81とエン
ドアドレスデータB2に基づいて2本線で囲まれたメモ
リ領域がアクセスされる。
It is indicated by an internal address (relative address) within a memory area for one character. For character data with flag A "0", abbreviated address data B is not added as shown in FIG. 4. Flag A is set to "1" when the comma shown in FIG. This is for character data such as characters with a narrow character width such as "," or characters for which it may be desired to shorten the character area width depending on the manner of use. For character data whose flag A is "1", in the character area width reduction mode, the memory area surrounded by two lines is accessed based on the start address data 81 and end address data B2.

付加されたフラグA、短縮アドレスデータBは、文字領
域幅短縮モードが設定されている場合にのみ検索され、
文字領域幅短縮モードが設定されていない場合は検索の
対象とならない。
The added flag A and shortened address data B are searched only when the character area width shortening mode is set.
If the character area width reduction mode is not set, it will not be searched.

次に、上記実施例の動作を第5図のフローチャートに基
づいて説明する。
Next, the operation of the above embodiment will be explained based on the flowchart of FIG.

CPU6は、まず最初に、キーボード5の操作により文
字領域幅短縮モードが、没定されているか否かを判断し
くステップSt)、文字領域幅短縮モードが、没定され
ている場合は、ステップ52に進み表示または印字対象
の文字等の入力データがあるか台かを判定する0文字人
力データがある場合は、CPU6はその文字等に対応す
るキャラクタ選択0吟をキャラクタジェネレータ4に与
え、キャラクタデータを選択する。キャラクタデータが
選択されると、CPU6はキャラクタデータに付加され
ている文字領域幅指定用のフラグAを検索し、フラグA
が“l”であるか否かを判定する(ステップS3)、フ
ラグAが“1”である場合には短縮アドレスデータBが
付加されているので、そのスタートアドレスデータB1
、エンドアドレスデータB2に基づいてキャラクタデー
タが読出される。
First, the CPU 6 determines whether or not the character area width shortening mode is set by operating the keyboard 5 (step St). If the character area width shortening mode is set, the process proceeds to step 52. If there is 0-character manual data, the CPU 6 gives the character selection 0-gin corresponding to that character to the character generator 4, and determines whether there is input data such as characters to be displayed or printed. Select. When character data is selected, the CPU 6 searches for flag A added to the character data for specifying character area width, and selects flag A.
is "l" (step S3). If the flag A is "1", the shortened address data B has been added, so the start address data B1
, character data is read based on end address data B2.

短縮アドレスデータBで示されるメモリ領域は、1文字
分のメモリ領域より幅の狭いメモリ領域なので、この短
縮アドレスデータBにノ^づいて読出されたキャラクタ
データの文字領域幅情報は、幅の狭い文字領域幅を示し
ており、これに基づいて表示または印字される文字等の
文字領域幅は1文字分のメモリ領域全体を読出した場合
に比べ当然短縮されている(ステップS4)。
The memory area indicated by the shortened address data B is a memory area narrower than the memory area for one character, so the character area width information of the character data read based on this shortened address data B is narrower than the memory area for one character. This indicates the character area width, and the character area width of characters displayed or printed based on this is naturally shorter than when the entire memory area for one character is read out (step S4).

ところで、上記スタートアドレスデータB1は文字領域
幅短縮モード時に実際にアクセスを開始する番地を示し
ているが、エンドアドレスデータB2は現実のアクセス
終了番地とは異なる。その理由は、第3図に示したよう
に、キャラクタジェネレータ4のメモリ領域は縦方向の
1バイトを1番地当りの領域として192に区分され、
左最上段の領域を始点として右方向にアドレスが進み、
アクセス方向もアドレス進行方向と同じなので。
By the way, the start address data B1 indicates the address at which access actually starts in the character area width reduction mode, but the end address data B2 is different from the actual access end address. The reason for this is that, as shown in FIG. 3, the memory area of the character generator 4 is divided into 192 areas, with 1 byte in the vertical direction per address.
Addresses start from the top left area and advance to the right.
The access direction is the same as the address progression direction.

例えば第3図の2木線で囲まれた領域をアクセスする場
合、その領域のアドレスは連続していないからである。
For example, when accessing an area surrounded by two tree lines in FIG. 3, the addresses of that area are not consecutive.

そこで、エンドアドレスデータB2としては、2木線で
囲まれた領域の最り段の区画の右端のアドレスを格納し
ておき、中段の区画をアクセスする場合は、スタートア
ドレスデータBl、エンドアドレスデータB2にそれぞ
れ24を加算し、下段の区画・をアクセスする場合は、
48を加算したアドレスを使用するようCPUfl(%
理している。このように、24の倍数を加算するのは、
各区画には24個の領域が存在しているため、各区画の
アドレスは最上段の区画の7ドレスに24の倍数を加算
した数字で示されるからである。
Therefore, as end address data B2, store the right end address of the most partition in the area surrounded by two tree lines, and when accessing the middle partition, start address data Bl, end address data If you add 24 to each B2 and access the lower section,
CPUfl(%
I understand. In this way, adding multiples of 24 is
This is because each partition has 24 areas, so the address of each partition is indicated by a number obtained by adding a multiple of 24 to the 7 addresses of the top partition.

ステップS3において、フラグAが“θ″の場合は、短
縮アドレスデータBが付加されていないので0通常の処
理に従い2選択されたキャラクタデータの全メモリ領域
がアクセスされ、通常の文字領域幅で選択文字が表示ま
たは印刷される(ステップS5)、ステップS4.S5
にて表示または印刷処理が終了すると1次にステップS
2に戻り1文字領域幅短縮モード時の処理を1文字ごと
に行う、ステップSlにおいて文字領域幅短縮モードが
設定されていない場合は、フラグA、短縮アドレスデー
タBを−リノ検索せずに通常処理に従い選択されたキャ
ラクタデータの全メモリ領域をアクセスするため、通常
の文字領域幅で表示または印字される(ステップS6)
、このようにして、固有の短縮アドレスデータBが付加
されたキャラクタデータは文字領域幅短縮モード時には
文字領域幅が短縮されることとなる。
In step S3, if the flag A is "θ", the shortened address data B is not added, so the entire memory area of the selected character data is accessed according to normal processing, and the selection is made with the normal character area width. Characters are displayed or printed (step S5), step S4. S5
When the display or printing process is completed, the first step is step S.
Return to step 2 and perform the processing in the 1 character area width shortening mode for each character. If the character area width shortening mode is not set in step Sl, flag A and shortened address data B are set to normal without reno search. In order to access the entire memory area of the character data selected according to the process, it is displayed or printed with the normal character area width (step S6).
In this way, the character data to which the unique shortened address data B is added has its character area width reduced in the character area width reduction mode.

なお、本実施例では1文字領域幅短縮情報記憶り段とし
て1ビツトのフラグを用いているため文字領域幅は2通
りしか選択できないが、文字領域幅短縮情報記憶り段を
#i数のビットで構成すればさらに多くの文字領域幅を
選択することができる。
Note that in this embodiment, since a 1-bit flag is used as the 1-character area width reduction information storage stage, only two character area widths can be selected. By configuring , more character area widths can be selected.

[発明の効果J 以−ヒ説明したように、この発明は1文字等の形状情報
と文字領域幅情報とを兼有するキャラクタデータに対し
て文字領域幅短縮指示がなされている場合は、狭い領域
を示すアドレス情報が付加されているキャラクタデータ
はそのアドレス情報に)、(づいて読出すようにしたの
で、文字等の固有の字幅や使用態様に応じて文字領域幅
を狭くすることが可能な文字生成方式を実現することが
できる。
[Effects of the Invention J] As explained below, the present invention is capable of reducing the width of a narrow area when a character area width shortening instruction is given to character data having both shape information such as one character and character area width information. Since character data to which address information indicating ``()'' is added is read out based on the address information (), (), it is possible to narrow the character area width according to the unique character width of the character and the manner of use. A character generation method can be realized.

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

第1図はこの発明を示すブロック図、第2図はこの発明
の一実施例を適用したシステム構成図。 第3図および第4図は第2図のキャラクタジェネレータ
の構造図、第5図は第2図の動作を示すフローチャート
である。 ■・・・・・・モード判定r段、2・・・・・・短縮情
報記憶手段、3・・・・・・短縮アドレス記憶手段、4
・・・・・・キャラクタジェネレータ。 特許出願人  カシオ計算機株式会社 代理人 弁理士  町 10 俊 正 第1図 第2図 第3図 第4図 第5図
FIG. 1 is a block diagram showing the present invention, and FIG. 2 is a system configuration diagram to which an embodiment of the present invention is applied. 3 and 4 are structural diagrams of the character generator of FIG. 2, and FIG. 5 is a flowchart showing the operation of FIG. 2. ■... Mode determination r stage, 2... Shortened information storage means, 3... Shortened address storage means, 4
...Character generator. Patent Applicant Casio Computer Co., Ltd. Agent Patent Attorney Masashi Toshi Town 10 Figure 1 Figure 2 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] 表示または印字対象の文字・記号等の形状情報と文字領
域幅情報とを含むキャラクタデータを用いる文字生成方
式において、文字領域幅短縮モードであるか否かを判定
するモード判定手段と、前記文字領域幅情報に対する短
縮情報を記憶した短縮情報記憶手段と、この短縮情報記
憶手段の短縮情報に応じた前記キャラクタデータに対す
る読出しアドレスを記憶した短縮アドレス記憶手段とを
設け、文字領域幅短縮モードである場合には前記読出し
アドレスに基づき前記キャラクタデータを読出すように
したことを特徴とする文字生成方式
In a character generation method using character data including shape information of characters/symbols, etc. to be displayed or printed and character area width information, a mode determining means for determining whether or not a character area width reduction mode is set; A shortened information storage means that stores shortened information for the width information and a shortened address storage means that stores a read address for the character data according to the shortened information stored in the shortened information storage means, and when the character area width shortened mode is set. The character generation method is characterized in that the character data is read based on the read address.
JP61019848A 1986-01-31 1986-01-31 Character generating method Pending JPS62178354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61019848A JPS62178354A (en) 1986-01-31 1986-01-31 Character generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61019848A JPS62178354A (en) 1986-01-31 1986-01-31 Character generating method

Publications (1)

Publication Number Publication Date
JPS62178354A true JPS62178354A (en) 1987-08-05

Family

ID=12010668

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61019848A Pending JPS62178354A (en) 1986-01-31 1986-01-31 Character generating method

Country Status (1)

Country Link
JP (1) JPS62178354A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01135657A (en) * 1987-11-20 1989-05-29 Ricoh Co Ltd Character transformation processing of data processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01135657A (en) * 1987-11-20 1989-05-29 Ricoh Co Ltd Character transformation processing of data processor

Similar Documents

Publication Publication Date Title
JPS62178354A (en) Character generating method
JPH0337697A (en) Character generator
JPH0522933B2 (en)
JP2846357B2 (en) Font memory device
JPS58114275A (en) Pattern information retrieving system
JPH09274663A (en) Device and method for processing graphic
JP2590327B2 (en) How to manage drawing information
JPS61158384A (en) Character processor
JPH03174588A (en) Document processor
JP3333540B2 (en) Hierarchical symbol correction system
JP3847836B2 (en) Character string search method and apparatus
JP2907007B2 (en) Character display device
JPH03118661A (en) Word retrieving device
JPH025175A (en) Character processor
JPH077397B2 (en) Kana-Kanji conversion method and device
JP3912849B2 (en) Character processing apparatus, character processing method, and recording medium
JP3005220B2 (en) Scanning display controller
JPH1139326A (en) High speed document registration/retrieval method and device therefor
JPH03237491A (en) Font memory controller
JPH0467210B2 (en)
JPH10307842A (en) Information processor and its method
JPS61210391A (en) Character generator
JPH03105389A (en) Character pattern control system
JPS62293376A (en) Document processor
JPH06161424A (en) Method for output processing of character data