JPH0741724B2 - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JPH0741724B2 JPH0741724B2 JP60003300A JP330085A JPH0741724B2 JP H0741724 B2 JPH0741724 B2 JP H0741724B2 JP 60003300 A JP60003300 A JP 60003300A JP 330085 A JP330085 A JP 330085A JP H0741724 B2 JPH0741724 B2 JP H0741724B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- output
- data
- page
- code
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
- G06K15/02—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- Dot-Matrix Printers And Others (AREA)
- Record Information Processing For Printing (AREA)
- Editing Of Facsimile Originals (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、外部装置より入力された文字コードおよび
制御コードを受信して、ページ方向,文字の回転方向,
文字の進み方向に応じてイメージドット情報を出力する
画像処理方法に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention receives a character code and a control code input from an external device, and detects a page direction, a character rotation direction,
The present invention relates to an image processing method for outputting image dot information according to the direction of advance of a character.
第10図〜第13図を参照しながら従来の画像処理方法にお
ける文字出力方式を説明する。A character output method in the conventional image processing method will be described with reference to FIGS. 10 to 13.
第10図は従来の文字出力動作を説明するブロック図であ
り、1は外部装置からのコードデータを受けるとインタ
ーフェース、2は入力データ処理用のマイクロプロセッ
サであって、インターフェース1を介して入力されたコ
ードデータを解釈してデータ処理を行う。3はページメ
モリで、表示,印字等の出力を行う共通コードに変換さ
れた文字データを1ページ分蓄える。4はパターン発生
回路で、共通コードに応じたフォントパターンをフォン
トメモリ5より読み出し、図示しない出力手段に対しビ
デオ信号として送出する。FIG. 10 is a block diagram for explaining a conventional character output operation. 1 is an interface for receiving code data from an external device, 2 is a microprocessor for processing input data, which is input through the interface 1. The data processing is performed by interpreting the code data. A page memory 3 stores character data converted into a common code for output such as display and printing for one page. A pattern generation circuit 4 reads a font pattern corresponding to the common code from the font memory 5 and sends it as a video signal to an output means (not shown).
次に第11図,第12図を参照しながら第10図の動作につい
て説明する。Next, the operation of FIG. 10 will be described with reference to FIGS. 11 and 12.
第11図は文字出力を説明する模式図で、(1)は記録紙
Sの長手方向に対し文字を短手方向に出力する出力例、
(2)は記録紙Sの長手方向に対し文字を長手方向で、
かつ、回転文字を出力する出力例である。なお、出力例
(1)に示される出力形態をポートレイト出力、出力例
(2)に示される出力形態をランドスケープ出力と云
う。(3)は記録紙Sの長手方向に対して文字を短手方
向で、かつ、途中で文字を回転させて長手方向に出力す
る出力例、(4)は前記出力例(1)に示される文字の
進み方向を変更して文字列を出力した出力例である。FIG. 11 is a schematic diagram for explaining character output. (1) is an output example in which characters are output in the lateral direction with respect to the longitudinal direction of the recording paper S,
(2) is a character in the longitudinal direction with respect to the longitudinal direction of the recording paper S,
In addition, this is an output example of outputting a rotated character. The output form shown in the output example (1) is called portrait output, and the output form shown in the output example (2) is called landscape output. (3) is an output example in which characters are rotated in the lateral direction with respect to the longitudinal direction of the recording paper S and is rotated in the middle to output in the longitudinal direction, and (4) is shown in the output example (1). It is the output example which changed the advancing direction of a character and output the character string.
第11図に示される出力例(1)、すなわち、ポートレイ
トで文字を出力する場合は、インターフェース1を介し
て入力された文字コードがマイクロプロセッサ2により
処理され、内部コードに変換された文字コードがページ
メモリ3にストアされ、1ページの文字コードが蓄えら
れると、ページメモリ3をクローズするとともに、マイ
クロプロセッサ2の指令に応じて文字コードで指定され
るフォントパターンをフォントメモリ5より読み出し、
指定されるフォントパターンを書き込みアドレスに応じ
て順次出力手段に送出することにより得らる。In the output example (1) shown in FIG. 11, that is, in the case of outputting characters in portrait, the character code input through the interface 1 is processed by the microprocessor 2 and converted into the internal code. Is stored in the page memory 3 and the character code of one page is stored, the page memory 3 is closed, and a font pattern designated by the character code is read from the font memory 5 in accordance with a command from the microprocessor 2.
It is obtained by sequentially outputting the designated font pattern to the output means according to the write address.
第12図はランドスケープ文字出力動作を説明する図で、
(イ)はフォントパターンのアクセス方向を示し、例え
ば90゜回転された文字「A」のイメージドットデータが
矢印方向に沿って順次記録紙Sに書き込まれる。(ロ)
は記録紙Sに出力された文字の出力例を示している。FIG. 12 is a diagram for explaining the landscape character output operation,
(A) shows the access direction of the font pattern, for example, the image dot data of the character "A" rotated by 90 ° is sequentially written on the recording paper S along the arrow direction. (B)
Shows an output example of the characters output to the recording paper S.
第11図に示される出力例(2)、すなわち、ランドスケ
ープで文字を出力させる場合は、インターフェース1を
介して入力されたランドスケープ指令および文字コード
がマイクロプロセッサ2により処理され、内部コードに
変換された文字コードがページメモリ3にストアされる
とともに、パターン発生回路4に対してフォントパター
ンを回転させる回転指令が送出される。このため、ペー
ジメモリ3に書き込まれた文字コードに応じてフォント
メモリ5より読み出される各文字のフォントパターンが
パターン発生回路4により所定方向に回転されて出力手
段に送出(第12図の(イ)に示す)される。これによ
り、出力例(2)が得られ、全体としては第12図(ロ)
に示されるようにランドスケープに出力される。In the output example (2) shown in FIG. 11, that is, when the characters are output in the landscape, the landscape command and the character code input through the interface 1 are processed by the microprocessor 2 and converted into the internal code. The character code is stored in the page memory 3, and a rotation command for rotating the font pattern is sent to the pattern generation circuit 4. Therefore, the font pattern of each character read from the font memory 5 according to the character code written in the page memory 3 is rotated in a predetermined direction by the pattern generation circuit 4 and sent to the output means ((a) in FIG. 12). Will be shown). As a result, the output example (2) is obtained, and Fig. 12 (b) as a whole
It is output to the landscape as shown in.
第13図は同じく従来の文字出力動作を説明するブロック
図であり、1,2,5は第10図に示したものと同一のものを
示し、11はフレームメモリで、マイクロプロセッサ2の
指示に応じてフォントデータが書き込まれる。なお、フ
ォントメモリ5にはあらかじめランドスケープ用のフォ
ントパターンが設けられている。FIG. 13 is a block diagram for explaining the conventional character output operation. 1,2,5 are the same as those shown in FIG. 10, 11 is a frame memory, and the instructions of the microprocessor 2 are given. The font data is written accordingly. The font memory 5 is provided with a font pattern for landscape in advance.
マイクロプロセッサ2がインターフェース1を介して入
力されたコードデータを解釈し、内部コードに応じてフ
ォントメモリ5より読み出されたフォンドデータを書き
込みアドレスに応じてフレームメモリ11にストアして行
く。その際、外部装置より、ランドスケープ指令,回転
文字指令,縦書き指令等の内、例えばランドスケープ指
令がなされた場合は、マイクロプロセッサ2がフォント
メモリ5に書き込まれたランドスケープ用のフォントパ
ターンを読み出し、書き込みアドレスに応じてフレーム
メモリ11にストアされ、出力指令に応じてビデオデータ
が出力手段に送出され、第12図(ロ)に示されるように
ランドスケープに出力される。The microprocessor 2 interprets the code data input via the interface 1 and stores the fond data read from the font memory 5 according to the internal code in the frame memory 11 according to the write address. At that time, when a landscape command, a rotation character command, a vertical writing command, or the like, for example, is issued from an external device, the microprocessor 2 reads and writes the landscape font pattern written in the font memory 5. It is stored in the frame memory 11 according to the address, and the video data is sent to the output means according to the output command, and is output to the landscape as shown in FIG.
また、図示しないシリアルプリンタでは、1文字毎に記
録紙を搬送させながら縦書きに文字を出力したり、フォ
ントパターンを回転させる手段を設けて、回転させた文
字を出力するように構成されたものもある。Further, a serial printer (not shown) is configured to output characters in vertical writing while conveying the recording paper character by character or to rotate the font pattern to output the rotated characters. There is also.
従来の文字出力装置は、上記のように構成されているた
め、ページメモリ3を有する文字出力装置においては、
1ページ内に書き込む全ての文字のフォントサイズが同
一のサイズ、すなわち、文字の高さ方向のドット数と文
字の幅方向のドット数が一致していなければならない。
また、ランドスケープ用のフォントパターンを有する装
置においては、ランドスケープ用のフォントパターンを
記憶する領域を使用できるランドスケープ用の文字数に
応じて大きくする必要があり、非常に高価になる。さら
に、シリアルプリンタ等のように記録紙を搬送させなが
ら出力を行う装置においては、記録紙の搬送速度に同期
してフォントデータを送出するため、高速に文字を出力
できない等の問題点があった。Since the conventional character output device is configured as described above, in the character output device having the page memory 3,
The font size of all characters written in one page must be the same size, that is, the number of dots in the height direction of the character and the number of dots in the width direction of the character must match.
Further, in a device having a font pattern for landscape, it is necessary to increase the area for storing the font pattern for landscape according to the number of characters for landscape, which is very expensive. Further, in a device such as a serial printer that outputs while conveying recording paper, font data is transmitted in synchronization with the conveying speed of the recording paper, so there is a problem that characters cannot be output at high speed. .
この発明は、上記の問題点を解消するためになされたも
ので、入力した文字コードに設定されている出力形態を
指定する属性情報を解析しながら、同一の属性となる文
字コードを編成しながら同一のページメモリ内に格納し
て、該編成された同一属性の文字コードを連続してイメ
ージドット処理を実行することにより、同一の出力形態
となる文字コードに対するイメージドット出力処理を高
速化することができる画像処理方法を提供することを目
的とする。The present invention has been made to solve the above problems, and while analyzing the attribute information that specifies the output form set in the input character code, while organizing the character codes that have the same attribute. By storing image data in the same page memory and successively executing the image dot processing of the organized character codes of the same attribute, it is possible to speed up the image dot output processing for the character code having the same output form. It is an object of the present invention to provide an image processing method capable of
この発明に係る画像処理方法は、ページメモリに格納さ
れている文字コードにより指定されるイメージドットデ
ータを所定方向に回転して読み出す画像処理方法であっ
て、文字コードおよびその文字コードにより指定される
イメージドットデータの出力形態を指定する属性情報を
入力し、前記入力した文字コードに設定されている属性
情報を判断して、同一属性毎にその属性情報が設定され
ている文字コードを属性情報に関連付けて前記ページメ
モリに格納し、前記属性情報に関連付けてページメモリ
に格納されている複数の文字コードを連続して出力す
る。The image processing method according to the present invention is an image processing method for reading image dot data designated by a character code stored in a page memory by rotating the image dot data in a predetermined direction and designated by a character code and the character code. Input the attribute information that specifies the output form of the image dot data, determine the attribute information set for the input character code, and use the character code for which the attribute information is set for each same attribute as the attribute information. The plurality of character codes stored in the page memory in association with each other and stored in the page memory are successively output.
この発明においては、文字コードおよびその文字コード
により指定されるイメージドットデータの出力形態を指
定する入力データが入力されると、入力した文字コード
に設定されている文字コードを属性情報に関連付けて出
力ページ内で同一の出力形態となる文字コード毎に前記
ページメモリに編成して格納して、同一の出力形態とな
る文字コードを連続して処理可能とする。In the present invention, when the input data that specifies the output form of the character code and the image dot data specified by the character code is input, the character code set in the input character code is output in association with the attribute information. The character codes having the same output form in the page are organized and stored in the page memory, and the character codes having the same output form can be continuously processed.
第1図はこの発明の画像処理方法を説明するブロック図
であり、21は受信用のインターフェースで、図示しない
外部装置より入力される文字コードデータおよび制御コ
ードデータを受信する。制御コードデータには出力する
文字の出力形態を指定するコードデータも含まれてい
る。22は入力データ処理用のマイクロプロセッサであっ
て、インターフェース21を介して入力されたコードデー
タを解釈してデータ処理を行う。23はページメモリで、
表示,印字等の出力を行う文字データを1ページ分蓄え
る。24は出力データ処理用のマイクロプロセッサであっ
て、パターン発生回路25を介して読み出されるフォント
パターンをフレームメモリ26に展開する。27はフォント
メモリで、各文字のフォントパターン(イメージドット
データ)を記憶している。なお、パターン発生回路25は
出力形態を指定するデータに応じてフォントメモリ27よ
り読み出すフォントパターンを回転させる。FIG. 1 is a block diagram for explaining the image processing method of the present invention. Reference numeral 21 is a receiving interface for receiving character code data and control code data input from an external device (not shown). The control code data also includes code data that specifies the output form of the characters to be output. Reference numeral 22 denotes a microprocessor for processing input data, which interprets code data input via the interface 21 and performs data processing. 23 is page memory,
Stores one page of character data for output such as display and printing. Reference numeral 24 denotes a microprocessor for processing output data, which develops a font pattern read via the pattern generation circuit 25 in the frame memory 26. A font memory 27 stores the font pattern (image dot data) of each character. The pattern generation circuit 25 rotates the font pattern read from the font memory 27 according to the data designating the output form.
次に第2図を参照しながら第1図の動作について説明す
る。Next, the operation of FIG. 1 will be described with reference to FIG.
第2図は第1図に示したページメモリ23の格納状態を説
明する模式図であり、23aはこの発明の属性レコード
で、同一の属性を持つ一連の文字コードが順次ポインタ
Pにより指示される。FIG. 2 is a schematic diagram for explaining a storage state of the page memory 23 shown in FIG. 1, and 23a is an attribute record of the present invention, and a series of character codes having the same attribute is sequentially pointed by the pointer P. .
外部装置から送出されてきたデータは、インターフェー
ス21を介してマイクロプロセッサ22に入力される。マイ
クロプロセッサ22は入力データの解釈を行うとともに、
出力文字コードの取り出しや制御コード,制御命令のデ
ータ処理を行う。外部装置から回転文字の指定,文字の
進み方向指定,位置移動の指定等の出力形態についての
指定がなされると、マイクロプロセッサ22は第2図に示
されるように、ポインタPに指示される同一の属性、す
なわち、出力形態が同一の属性毎に出力する文字レコー
ドをページメリ23上に形成する。マイクロプロセッサ22
は機能指定の開始位置を各ページにおけるドット位置の
情報で保持しておき、改行,改頁といった仮想的な機能
指定を含めて機能指定が終了すると、マイクロプロセッ
サ22は出力する文字の文字レコードの形成を終了し、ポ
インタPで指示される同一属性の次の文字に対する文字
レコードを形成する。この操作を属性を有するポインタ
毎に行う。The data sent from the external device is input to the microprocessor 22 via the interface 21. The microprocessor 22 interprets the input data and
Retrieves output character code and processes control code and control command data. When an external device designates an output form such as designation of a rotating character, designation of a character advancing direction, designation of position movement, and the like, the microprocessor 22 instructs the same as indicated by the pointer P as shown in FIG. Character attributes, that is, character records to be output for each attribute having the same output form are formed on the page memory 23. Microprocessor 22
Holds the start position of the function specification by the dot position information on each page, and when the function specification is completed including the virtual function specification such as line feed and page break, the microprocessor 22 outputs the character record of the character to be output. The formation is ended, and a character record for the next character having the same attribute pointed to by the pointer P is formed. This operation is performed for each pointer having an attribute.
次にマイクロプロセッサ22は改頁レコードを受け取ると
か、または1ページ分のデータを受け取った場合は、ペ
ージメモリ23をクローズして、マイクロプロセッサ24に
対して制御の開始を指令し、マイクロプロセッサ24がペ
ージメモリ23上の文字レコードを順次処理し、パターン
発生回路25を経由してフォントメモリ27をアクセスし
て、フォントパターンをフレームメモリ26に書き込みア
ドレスに応じてストアする。この際、出力形態を指定す
る。例えば文字を回転させる回転指令をマイクロプロセ
ッサ24が受け取った場合は、パターン発生回路25に対し
読み出したフォントパターンを所定角度回転させるため
の回転角度を指示する。そして、ポインタPで指示され
る各文字レコードのx,y座標データに応じて更新される
書き込みアドレスに応じてドットデータ,文字コードに
指定されるフォントパターンをフレームメモリ26上に展
開して行く。次にマイクロプロセッサ24が回転角度およ
び文字の進み方向が同一な文字コード、すなわち同一の
ポインタPに指示される文字レコードに対する展開が終
了したかどうかを判断し、終了したら次のポインタに指
示される文字レコードの展開を開始する。Next, when the microprocessor 22 receives a page-break record or receives data for one page, the page memory 23 is closed and the microprocessor 24 is instructed to start the control. The character records on the page memory 23 are sequentially processed, the font memory 27 is accessed via the pattern generation circuit 25, and the font pattern is stored in the frame memory 26 according to the write address. At this time, the output form is designated. For example, when the microprocessor 24 receives a rotation command for rotating a character, it instructs the pattern generation circuit 25 about a rotation angle for rotating the read font pattern by a predetermined angle. Then, the dot data and the font pattern designated by the character code are expanded on the frame memory 26 according to the write address updated according to the x, y coordinate data of each character record designated by the pointer P. Next, the microprocessor 24 judges whether or not the expansion for the character code having the same rotation angle and the advancing direction of the character, that is, the character record pointed to by the same pointer P is completed, and when it is completed, the next pointer is instructed. Begin expanding character records.
この発明に係る画像処理法は、ページメモリ23(第2図
参照)に格納されている文字コードにより指定されるイ
メージドットデータを所定方向に回転して読み出す画像
処理方法であって、文字コードおよびその文字コードに
より指定されるイメージドットデータの出力形態を指定
する属性情報を入力し(第5図の入力データL1〜L8)、
前記入力した文字コードに設定されている属性情報を判
断して(この実施例ではマイクロプロセッサ22により判
断される)、同一属性毎にその属性情報が設定されてい
る文字コードを属性情報に関連付けて前記ページメモリ
に格納し、前記属性情報に関連付けて(第2図に示した
属性レコード23aはポインタPにより関連付けされてい
る)ページメモリ23に格納されている複数の文字コード
を連続して出力(この実施例ではフレームメモリ26に展
開されて出力される)するように構成し、同一の出力形
態となる文字コードを連続して処理可能となるように、
入力データを同一属性毎にその属性情報に関連付けた状
態で文字コードをページメモリ23に格納する。The image processing method according to the present invention is an image processing method in which image dot data designated by a character code stored in the page memory 23 (see FIG. 2) is rotated in a predetermined direction and read out. Input the attribute information that specifies the output form of the image dot data specified by the character code (input data L1 to L8 in FIG. 5),
The attribute information set in the input character code is determined (determined by the microprocessor 22 in this embodiment), and the character code in which the attribute information is set for each same attribute is associated with the attribute information. A plurality of character codes stored in the page memory and stored in the page memory 23 in association with the attribute information (the attribute record 23a shown in FIG. 2 is associated by the pointer P) are continuously output ( In this embodiment, the frame code is expanded and output in the frame memory 26) so that character codes having the same output form can be continuously processed.
The character code is stored in the page memory 23 in a state where the input data is associated with the attribute information for each same attribute.
次に第3図〜第7図を参照しながらこの発明の画像処理
方法について説明する。Next, the image processing method of the present invention will be described with reference to FIGS.
第3図はこの発明で適用するフォントパターンを説明す
る図で、各フォントパターンは文字の高さ方向のドット
数は32ドットで、文字の幅方向のドット数は24ドットで
構成されている。FIG. 3 is a diagram for explaining a font pattern applied in the present invention. In each font pattern, the number of dots in the height direction of the character is 32, and the number of dots in the width direction of the character is 24.
第4図はフォントパターンの出力エリアを説明する図
で、長手方向が例えば2000ドット、短手方向が例えば15
00ドットで構成され、x,y軸は外部座標軸を示し、X,Y軸
は内部座標軸を示す。また、(1)は長手方向がyおよ
びY座標軸に一致する(ポートレイト)出力エリアを表
し、(2)は長与方向がxおよびY座標軸に対向する
(ランドスケープ)出力エリアを示す。なお、同図の出
力エリア(2)に示されるように、ランドスケープ時
は、外部座標軸x,yに対する外部座標(100,500)が内部
座標軸X,Yに対する内部座標〔500,1900〕に一致する。FIG. 4 is a diagram for explaining the output area of the font pattern, for example, 2000 dots in the longitudinal direction and 15 dots in the lateral direction.
It consists of 00 dots, and the x and y axes show the external coordinate axes, and the X and Y axes show the internal coordinate axes. Further, (1) shows an output area whose longitudinal direction coincides with the y and Y coordinate axes (portrait), and (2) shows an output area whose longitudinal direction opposes the x and Y coordinate axes (landscape). As shown in the output area (2) of the same figure, during landscape, the external coordinates (100,500) with respect to the external coordinate axes x and y coincide with the internal coordinates [500,1900] with respect to the internal coordinate axes X and Y.
第5図は外部装置から入力されたデータを説明する図
で、L1〜L8は各ライン毎の入力データを表している。FIG. 5 is a diagram for explaining data input from an external device, and L1 to L8 represent input data for each line.
この図に示すように、外部装置からは出力形態を指定す
る属性情報としての入力データ、例えば3頁分の入力デ
ータL1〜L8が図示されるデータ形式でI/F21を介して入
力される。そして、これらの入力データL1〜L8はマイク
ロプロセッサ22により入力した文字コードに設定されて
いる文字コードを属性情報にポインタにより関連付けて
出力ページ内で同一の出力形態となる文字コード毎に前
記ページメモリ23に編成して、すなわち、後述する第7
図に示すように同一属性毎にページメモリ23に格納され
る。As shown in this figure, input data as attribute information designating an output form, for example, input data L1 to L8 for three pages is input from the external device via the I / F 21 in the illustrated data format. Then, these input data L1 to L8 are associated with the character code set in the character code input by the microprocessor 22 by the pointer to the attribute information by the pointer and become the same output form in the output page. Knitted into 23, that is, the seventh described below
As shown in the figure, the same attributes are stored in the page memory 23.
第6図は文字の進み方向を説明する模式図であり、
「0」〜「3」がそれぞれの進みベクトルを示し、
「0」は回転なし、「1」は90゜回転、「2」は180゜
回転、「3」は270゜回転をそれぞれ表す。FIG. 6 is a schematic diagram for explaining the advancing direction of characters,
“0” to “3” indicate the respective advance vectors,
“0” means no rotation, “1” means 90 ° rotation, “2” means 180 ° rotation, and “3” means 270 ° rotation.
第7図は第5図に示したデータの内部データを説明する
図で、23aは第2図と同一のものを示し、それぞれの内
部データは各属性レコード23a,23a1〜23a2に応じてペー
ジメモリ23に格納される。この図で、(a)は前記入力
データL1,L2に対する内部データに相当し、ポインタPO1
により指示される。また、ΔSは文字の進み方向に対す
る文字のドット数を示している。(b)は前記L3,L4の
入力データに対する内部データに相当し、ポインタPO2
により指示される。(c)は前記L5〜L8の入力データに
対する内部データに相当し、ポインタPO3−1,PO3−2,PO
3−3により指示される。FIG. 7 is a diagram for explaining the internal data of the data shown in FIG. 5, 23a shows the same as FIG. 2, and each internal data corresponds to each attribute record 23a, 23a 1 to 23a 2. It is stored in the page memory 23. In this figure, (a) corresponds to the internal data for the input data L1 and L2, and the pointer PO1
Instructed by. Further, ΔS represents the number of dots of the character in the advancing direction of the character. (B) corresponds to the internal data corresponding to the input data of L3 and L4, and the pointer PO2
Instructed by. (C) corresponds to the internal data for the input data of L5 to L8, and has pointers PO3-1, PO3-2, PO
Instructed by 3-3.
インターフェース21を介してマイクロプロセッサ22が第
5図に示す入力データL1〜L8を順次受信すると、まず、
入力データL1〜L2、すなわち、ポートレイト指定、「A,
B,C」,「改行」,「D,E,F」の解釈を行い、第7図の内
部データ(a)に示すように、属性レコード23aに文字
の回転の有無および進み方向「0」(第6図に示す)を
セットするとともに、ポインタPO1に指示されるページ
メモリ23の領域に先頭文字「A」の内部座標〔0,40〕を
設定し、さらに、文字の進み方向に対するドット数ΔS
に「24」を設定する。次いで、出力する文字「A,B,C」
の文字コードを格納して行く。次いで、改行操作を行
い、ポインタPO1で指示される(同一の属性)ページメ
モリ23の領域に先頭文字「D」の内部座標〔0,72〕を設
定し、出力する文字「D,E,F」の文字コードを格納して
行き、さらに、「改頁」処理を行う。When the microprocessor 22 sequentially receives the input data L1 to L8 shown in FIG. 5 through the interface 21, first,
Input data L1 to L2, that is, portrait specification, "A,
Interpret "B, C", "line feed", "D, E, F", and as shown in the internal data (a) of FIG. 7, the attribute record 23a indicates whether or not the character is rotated and the forward direction is "0". (Shown in FIG. 6) is set, the internal coordinates [0, 40] of the first character "A" are set in the area of the page memory 23 pointed to by the pointer PO1, and the number of dots in the character advance direction is set. ΔS
Set to "24". Then output the letters "A, B, C"
Store the character code of. Next, a line feed operation is performed, the internal coordinates [0,72] of the first character "D" are set in the area of the page memory 23 (identical attribute) designated by the pointer PO1, and the characters "D, E, F" to be output are output. The character code of “” is stored, and the “page break” process is further performed.
次に第2ページ目のページデータ作成に移り、マイクロ
プロセッサ22は入力データL3,L4、すなわち、ランドス
ケープ指定、文字「G,H,I」,「改行」,文字「J,K,
L」,「改頁」の解釈を行い、第7図の内部データ
(b)に示すように、属性レコード23aに文字の回転の
有無「1」および進み方向「3」(第6図に示す)をセ
ットするとともに、ポインタPO2に指示されるページメ
モリ23の領域に先頭文字「G」の内部座標〔40,2000〕
を設定し、さらに、文字の進み方向に対するドット数Δ
Sに「24」を設定する。次いで、出力する文字「G,H,
I」の文字コードを格納して行く。次いで、改行操作を
行い、ポインタPO2で指示される(同一の属性)ページ
メモリ23の領域に先頭文字「G」の内部座標〔72,200
0〕を設定し、出力する文字「D,E,F」の文字コードを格
納して行き、「改頁」処理を行う。Next, moving to page data creation for the second page, the microprocessor 22 sets the input data L3, L4, that is, landscape designation, characters "G, H, I", "line feed", characters "J, K,
After interpreting "L" and "page break", as shown in the internal data (b) of FIG. 7, whether or not the character is rotated in the attribute record 23a is "1" and the advancing direction is "3" (shown in FIG. 6). ) Is set, and the internal coordinates [40, 2000] of the first character "G" are set in the area of the page memory 23 designated by the pointer PO2.
And the number of dots Δ in the character advance direction.
Set "24" to S. Then, output the characters "G, H,
Store the character code of "I". Then, a line feed operation is performed, and the internal coordinates [72,200] of the first character “G” are displayed in the area of the page memory 23 (identical attribute) designated by the pointer PO2.
0] is set, the character codes of the characters to be output “D, E, F” are stored, and the “page break” process is performed.
次に3ページ目のページデータ作成に移り、マイクロプ
ロセッサ22は入力データL5〜L8、すなわち、文字「M,N,
O」,「270゜回転指定」,文字「P,Q,R」,「外部座標
(1976,40)への位置移動指定」,「縦書き指定」,文
字「S,T,U」,「改行」,文字「V,W,X」,「改頁」の解
釈を行い、第7図の内部データ(c)に示すように、属
性レコード23a1に文字の回転の有無「1」および進み方
向「3」(第6図に示す)をセットするとともに、ポイ
ンタPO3−1に指示されるページメモリ23の領域に先頭
文字「M」の内部座標〔40,2000〕を設定し、さらに、
文字の進み方向に対するドット数ΔSに「24」を設定す
る。次いで、ポインタPO3−1に指示される同一属性の
出力する文字「M,N,O」の文字コードを格納して行く。Next, moving to page data creation for the third page, the microprocessor 22 inputs data L5 to L8, that is, the characters "M, N,
"O", "270 ° rotation designation", letters "P, Q, R", "position movement designation to external coordinates (1976,40)", "vertical writing designation", letters "S, T, U", " newline "character" V, W, X ', interprets the "form feed", as shown in the internal data of FIG. 7 (c), the presence or absence of rotation of the character attribute record 23a 1 "1" and proceeds The direction "3" (shown in FIG. 6) is set, and the internal coordinates [40, 2000] of the first character "M" are set in the area of the page memory 23 pointed to by the pointer PO3-1.
Set "24" for the number of dots ΔS for the character advance direction. Then, the character code of the character "M, N, O" output by the same attribute designated by the pointer PO3-1 is stored.
次に文字「P,Q,R」に対する270゜回転指定の処理を行う
が、ランドスケープに対して270゜回転させると、全体
として360゜回転させることになるので、第7図の内部
データ(c)に示すように、属性レコード23a2文字の回
転の有無「0」および進み方向「0」(第6図に示す)
をセットするとともに、ポインタPO3−2に指示される
ページメモリ23の領域に先頭文字「P」の内部座標〔4
0,1928〕を設定し、さらに、文字の進み方向に対するド
ット数ΔSに「24」を設定する。Next, the process of designating 270 ° rotation for the letters “P, Q, R” is performed, but if it is rotated 270 ° to the landscape, it will rotate 360 ° as a whole, so the internal data (c ), The presence / absence of rotation of two characters of the attribute record 23a “0” and the advancing direction “0” (shown in FIG. 6).
And the internal coordinates [4] of the first character “P” are set in the area of the page memory 23 designated by the pointer PO3-2.
0,1928] is set, and further, the number of dots ΔS in the character advancing direction is set to “24”.
次に文字「S,T,U」の縦書き指定の処理を行い、第7図
の内部データ(c)に示すように、属性レコード23a3に
文字の回転の有無「1」および進み方向「0」(第6図
に示す)をセットするとともに、ポインタPO3−3に指
示されるページメモリ23の領域の先頭文字「S」の内部
座標〔40,24〕を設定し、さらに、文字の進み方向に対
するドット数ΔSに「32」を設定する。次いで、ポイン
タPO3−3に指示される同一属性の出力する文字「S,T,
U」の文字コードを格納して行く。続いて改行処理を行
い、ポインタPO3−1で指示される(同一の属性)ペー
ジメモリ23の領域に先頭文字「V」の内部座標〔40,4
8〕を設定し、出力する文字「V,W,X」の文字コードを格
納して行き、「改頁」処理を行う。Then perform vertical specification processing of the letter "S, T, U", as shown in the internal data of FIG. 7 (c), whether "1" in the rotation of the character attribute record 23a 3 and leading direction " 0 "(shown in FIG. 6) is set, the internal coordinates [40, 24] of the first character" S "of the area of the page memory 23 pointed to by the pointer PO3-3 are set, and the character advance Set "32" to the dot number ΔS for the direction. Then, the characters “S, T,
The character code of "U" is stored. Subsequently, line feed processing is performed, and the internal coordinates [40,4] of the first character "V" are displayed in the area of the page memory 23 (identical attribute) designated by the pointer PO3-1.
8] is set, the character codes of the characters to be output “V, W, X” are stored, and the “page break” process is performed.
次に第8図(a)〜(c)を参照しながらフォントパタ
ーンの出力動作について説明する。Next, the font pattern output operation will be described with reference to FIGS.
第8図(a)〜(c)は第7図に示した内部データ
(a)〜(c)に対する出力例を示している。FIGS. 8A to 8C show output examples for the internal data (a) to (c) shown in FIG.
第7図(a)〜(c)に示す属性レコード23a,23a1〜23
a3に応じて、一連の文字データがページメモリ23に格納
されると、マイクロプロセッサ24がページメモリ23を参
照しながら出力する文字コードで指定されるフォントパ
ターンを読み出す。その際、出力する文字に対して出力
形態を示すポートレイト指定,ランドスケープ指定,回
転指定がある場合は、それぞれの指定に応じてフォント
パターンをパターン発生回路25により処理(回転)して
マイクロプロセッサ24にフォントデータを引き渡す。Attribute record 23a shown in FIG. 7 (a) ~ (c), 23a 1 ~23
When a series of character data is stored in the page memory 23 according to a 3 , the microprocessor 24 reads the font pattern designated by the output character code while referring to the page memory 23. At this time, if there is a portrait designation, a landscape designation, or a rotation designation indicating the output form for the character to be output, the font pattern is processed (rotated) by the pattern generation circuit 25 according to each designation, and the microprocessor 24 Pass the font data to.
マイクロプロセッサ24は内部座標および回転角度により
フォントデータ(イメージドットデータ)をストアする
フレームメモリ26上の書き込みアドレスを演算する。こ
の書き込みアドレスは第8図(a)〜(c)に示される
ように、文字パターンの左下を基準としているので、文
字パターンの書き込みアドレス(第9図に△で示す)と
内部座標(第9図に○で示す)とは必ずしも一致しな
い。次いで、上記書き込みアドレスに応じて各ページ毎
にイメージドットデータをフレームメモリ26に展開して
行き、1ページの展開終了毎にフォントパターンをビデ
オ化したビデオデータを出力手段、例えば解像度の高い
CRTディスプレイやレーザプリンタ等に送出して行く。
第8図(a)はポートレイト指定による文字データ、す
なわち、第1ページ目のフォントパターンを出力した例
である。第8図(b)はランドスケープ指定による文字
データ、すなわち、第2ページ目の文字データのフォン
トパターンを出力した例を示している。第8図(c)は
位置移動および縦書き指定による文字データ、すなわ
ち、第3ページ目のフォントパターンを出力した例を示
している。The microprocessor 24 calculates a write address on the frame memory 26 for storing font data (image dot data) according to the internal coordinates and the rotation angle. As shown in FIGS. 8 (a) to 8 (c), this write address is based on the lower left corner of the character pattern. Therefore, the write address of the character pattern (indicated by Δ in FIG. 9) and the internal coordinates (9th) are used. (Indicated by a circle in the figure) does not necessarily match. Next, the image dot data is expanded into the frame memory 26 for each page according to the write address, and video data obtained by converting the font pattern into video is output every time the expansion of one page is completed, for example, with high resolution.
Send to a CRT display or laser printer.
FIG. 8A shows an example in which character data designated by portrait, that is, the font pattern of the first page is output. FIG. 8 (b) shows an example in which the character data designated by the landscape, that is, the font pattern of the character data of the second page is output. FIG. 8 (c) shows an example in which character data by position movement and vertical writing designation, that is, the font pattern of the third page is output.
なお、上記実施例ではフレームメモリ26の書き込みアド
レスの演算をマイクロプロセッサ24がソフトウエア的に
行った場合について説明したが、フレームメモリ26への
フォントパターンの展開と並行して書き込みアドレスを
演算するようにしてもよいし、ハードウエア的に演算す
るように構成すれば、より高速に演算できることは云う
までもない。また、上記実施例では回転指定によりフォ
ントパターンを90゜回転させたり、進み方向90゜毎に指
定できる場合について説明したが、フォントパターンを
任意の角度に回転または進ませることは容易に行える。In the above embodiment, the case where the write address of the frame memory 26 is calculated by the microprocessor 24 by software has been described, but the write address is calculated in parallel with the development of the font pattern in the frame memory 26. However, it goes without saying that the operation can be performed at higher speed if the operation is performed by hardware. Further, in the above-described embodiment, the case where the font pattern can be rotated by 90 ° by the rotation designation or designated by every 90 ° in the advancing direction has been described, but the font pattern can be easily rotated or advanced at any angle.
〔発明の効果〕 以上説明したように、文字コードおよびその文字コード
により指定されるイメージドットデータの出力形態を指
定する属性情報を入力し、前記入力した文字コードに設
定されている属性情報を判断して、同一属性毎にその属
性情報が設定されている文字コードを属性情報に関連付
けて前記ページメモリに格納し、前記属性情報に関連付
けてページメモリに格納されている複数の文字コードを
連続して出力させるように構成したので、出力形態が同
一となる同一属性毎にその属性情報が設定されている文
字コードを属性情報に関連付けて同一のページメモリ内
に混在した状態で同時に複数種格納することができ、小
容量のページメモリで出力形態が異なる複数種の文字情
報を記憶することができる。[Effects of the Invention] As described above, the character code and the attribute information designating the output form of the image dot data designated by the character code are input, and the attribute information set in the input character code is determined. Then, the character code in which the attribute information is set for each same attribute is stored in the page memory in association with the attribute information, and a plurality of character codes stored in the page memory in association with the attribute information are consecutively stored. Since it is configured to output the same, the character code in which the attribute information is set for each attribute having the same output form is associated with the attribute information and simultaneously stored in a mixed state in the same page memory in plural types. Therefore, it is possible to store a plurality of types of character information having different output forms in a small capacity page memory.
また、同一出力形態毎に連続してイメージドットデータ
を出力するので、ページメモリに記憶された文字コード
に対するイメージドット出力処理を効率よく行うことが
できる。Further, since the image dot data is continuously output for each same output form, the image dot output process for the character code stored in the page memory can be efficiently performed.
従って、安価なメモリで文字コードに対するイメージド
ット出力処理を高速化することができる。Therefore, the image dot output process for the character code can be sped up with an inexpensive memory.
第1図はこの発明の一実施例を示す画像処理方法を説明
するブロック図、第2図は第1図に示したページメモリ
の格納状態を示す模式図、第3図はこの発明で適用する
フォントパターンを説明する図、第4図はフォントパタ
ーンの出力エリアを説明する図、第5図は外部から入力
されたデータを説明する図、第6図は文字の進み方向を
説明する図、第7図は第5図に示したデータの内部デー
タを説明する図、第8図(a)〜(c)は第7図に示し
た内部データの出力例を示す図、、第9図は内部座標と
書き込みアドレスの関係を示す図、第10図,第13図は従
来の文字出力動作を説明する図、第11図は文字出力を説
明する模式図、第12図はポートレイト文字出力,ランド
スケープ文字出力,回転文字出力,縦書き出力を説明す
る図である。 図中、21はインターフェース、22,24はマイクロプロセ
ッサ、23はページメモリ、23a,23a1〜23a3は属性レコー
ド、25はパターン発生回路、26はフレームメモリ、27は
フォントメモリである。FIG. 1 is a block diagram illustrating an image processing method showing an embodiment of the present invention, FIG. 2 is a schematic diagram showing a storage state of a page memory shown in FIG. 1, and FIG. 3 is applied in the present invention. FIG. 4 is a diagram for explaining a font pattern, FIG. 4 is a diagram for explaining an output area of a font pattern, FIG. 5 is a diagram for explaining data input from the outside, and FIG. 6 is a diagram for explaining a character advancing direction. FIG. 7 is a diagram for explaining internal data of the data shown in FIG. 5, FIGS. 8 (a) to 8 (c) are diagrams showing an output example of the internal data shown in FIG. 7, and FIG. 9 is an internal diagram. Figures showing the relationship between coordinates and write addresses, Figures 10 and 13 are diagrams for explaining the conventional character output operation, Figure 11 is a schematic diagram for explaining the character output, and Figure 12 is a portrait character output, landscape. It is a figure explaining a character output, a rotation character output, and a vertical writing output. In the figure, 21 is the interface, 22, 24 microprocessor, 23 page memory, 23a, 23a 1 ~23a 3 is attribute record, 25 the pattern generation circuit, 26 a frame memory, 27 is a font memory.
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/24 9471−5G 5/32 Z 9471−5G (72)発明者 鈴木 保人 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 伊坂 幸男 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G09G 5/24 9471-5G 5/32 Z 9471-5G (72) Inventor Yasuto Suzuki Ota, Tokyo 3-30-2 Shimomaruko-ku, Canon Inc. (72) Inventor Yukio Isaka 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc.
Claims (1)
により指定されるイメージドットデータを所定方向に回
転して読み出す画像処理方法であって、 文字コードおよびその文字コードにより指定されるイメ
ージドットデータの出力形態を指定する属性情報を入力
し、 前記入力した文字コードに設定されている属性情報を判
断して、同一属性毎にその属性情報が設定されている文
字コードを属性情報に関連付けて前記ページメモリに格
納し、 前記属性情報に関連付けてページメモリに格納されてい
る複数の文字コードを連続して出力することを特徴とす
る画像処理方法。1. An image processing method for reading image dot data designated by a character code stored in a page memory by rotating the image dot data in a predetermined direction, the image dot data being designated by the character code and the image dot data designated by the character code. Input the attribute information that specifies the output form, determine the attribute information set in the input character code, and associate the character code in which the attribute information is set for each same attribute with the attribute information An image processing method comprising: successively outputting a plurality of character codes stored in a memory and stored in a page memory in association with the attribute information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60003300A JPH0741724B2 (en) | 1985-01-14 | 1985-01-14 | Image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60003300A JPH0741724B2 (en) | 1985-01-14 | 1985-01-14 | Image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61162363A JPS61162363A (en) | 1986-07-23 |
| JPH0741724B2 true JPH0741724B2 (en) | 1995-05-10 |
Family
ID=11553517
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60003300A Expired - Lifetime JPH0741724B2 (en) | 1985-01-14 | 1985-01-14 | Image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0741724B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2825486B2 (en) * | 1987-07-06 | 1998-11-18 | ソニー 株式会社 | Videotex image display circuit |
-
1985
- 1985-01-14 JP JP60003300A patent/JPH0741724B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61162363A (en) | 1986-07-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS61254980A (en) | Character front transmission control system | |
| JPS63163889A (en) | Image processor | |
| JPH01275056A (en) | page printer | |
| JPH0741724B2 (en) | Image processing method | |
| US4683552A (en) | System for on-line and off-line display | |
| JPS5971564A (en) | Image data memory control method | |
| JP2550562B2 (en) | Character display device | |
| JP2727667B2 (en) | Drawing equipment | |
| JPH0366157B2 (en) | ||
| JP3018692B2 (en) | Printing device | |
| JPS61129683A (en) | Character generation system | |
| JP2773458B2 (en) | Vector controller | |
| JP3012269B2 (en) | Printing control device | |
| JPH04205346A (en) | Printer device | |
| JPH01295859A (en) | Rotary output system of character, figure and image data | |
| JP2611971B2 (en) | Output device | |
| JPH0766349B2 (en) | Shifter circuit | |
| JPH0596811A (en) | Printing method | |
| JPS62208085A (en) | Character display unit | |
| JPH08174917A (en) | Page memory control circuit | |
| JPS6163891A (en) | Format rotation method | |
| JPH0492987A (en) | Image forming device | |
| JPS61162362A (en) | Pattern generation controlling | |
| JPS6228251A (en) | Letter-printing system | |
| JPS63243990A (en) | Character transmission system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |