Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2559697B2 - Character processor - Google Patents
[go: Go Back, main page]

JP2559697B2 - Character processor - Google Patents

Character processor

Info

Publication number
JP2559697B2
JP2559697B2 JP61041720A JP4172086A JP2559697B2 JP 2559697 B2 JP2559697 B2 JP 2559697B2 JP 61041720 A JP61041720 A JP 61041720A JP 4172086 A JP4172086 A JP 4172086A JP 2559697 B2 JP2559697 B2 JP 2559697B2
Authority
JP
Japan
Prior art keywords
character
dots
mode
pattern
information
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 - Fee Related
Application number
JP61041720A
Other languages
Japanese (ja)
Other versions
JPS62199457A (en
Inventor
和幸 本田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP61041720A priority Critical patent/JP2559697B2/en
Publication of JPS62199457A publication Critical patent/JPS62199457A/en
Application granted granted Critical
Publication of JP2559697B2 publication Critical patent/JP2559697B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は文字処理装置に関し、特に異なるサイズの文
字パターンを展開できる文字処理装置に関するものであ
る。
The present invention relates to a character processing device, and more particularly to a character processing device capable of developing character patterns of different sizes.

[従来の技術] 従来この種の装置では第2図(a)〜(c)に示すよ
うに印字された文字枠の下端や上端を揃えるようにした
ものがある。これらは各文字セツト毎に各文字のベース
ラインの位置を記憶しておき、このベースラインの位置
が揃うように文字の出力を行つたりしていた。なお、文
字セツトとはASCIIコードやJIS7,JIS8及びJIS−6226コ
ードのように、あるコード範囲(X′20′〜X′7E′,
X′A0′〜X′DE′,X′2121′〜X7E7E′、但しX″はそ
の数が16進数であることを示す。以下同様とする)にあ
る複数の文字パターンの集合体を言う。これらの文字パ
ターンは、文字セツト毎に文字枠の大きさ(例えば16ド
ツト×24ドツト)や書体(例えばイタリツク)等が定つ
ており、各文字セツト内での各文字パターンは文字枠の
大きさ、書体が同一にデザインされているものとする。
またベースラインはここでは文字パターンのデザイン上
の基準線20を示し、アルフアベツトや漢字等の文字パタ
ーンの最下端の“黒”のドツトの位置を言う。
[Prior Art] Conventionally, there is an apparatus of this type in which the lower end and the upper end of a printed character frame are aligned as shown in Figs. 2 (a) to (c). These have stored the position of the baseline of each character for each character set, and output the characters so that the position of this baseline is aligned. The character set means a certain code range (X'20 'to X'7E', such as ASCII code, JIS7, JIS8 and JIS-6226 code).
X'A0 'to X'DE', X'2121 'to X7E7E', where X "indicates that the number is hexadecimal. The same shall apply hereinafter). In these character patterns, the size of the character frame (for example, 16 dots x 24 dots) and the typeface (for example, italic) are set for each character set, and each character pattern within each character set is the size of the character frame. , The typeface is designed to be the same.
The baseline here indicates the reference line 20 in the design of the character pattern, and refers to the position of the "black" dot at the bottom end of the character pattern such as alphabet or kanji.

文字の印刷や表示等を行う出力装置本体が、複数種の
ホストコンピユータに接続されているような場合、例え
ばA社の出力装置がB社のコンピユータやC社のコンピ
ユータと接続される場合、A社の出力装置は、B社のコ
ンピユータに対する出力装置やC社のコンピユータに対
する出力装置と同様の動きをするように要求される。し
かし、B社やC社のホストコンピユータに対応した出力
装置と比べて、A社の出力装置による印字では文字パタ
ーンのデザインが異なつたり、ベースライン等の文字セ
ツトの情報が異なり、文字の並びの感じが変つてしまう
場合が生じる。
When the output device body for printing or displaying characters is connected to a plurality of types of host computers, for example, when the output device of company A is connected to the computer of company B or the computer of company C, Company output devices are required to behave in a similar manner to those for company B computers and those for company C computers. However, as compared with the output devices corresponding to the host computers of company B and company C, the character pattern design is different in the printing by the output device of company A, the character set information such as the baseline is different, and the arrangement of characters is different. There may be cases where the feeling of changes.

[発明が解決しようとする問題点] 従つてこの種の、特に複数種のホストコンピユータと
の接続を行う出力装置においては、ホストコンピユータ
に合せて文字パターンを用意したり、ホストコンピユー
タに合せてプログラムを用意する必要が生じるため、出
力装置に複数のフオントパターンやプログラムを前もつ
て用意しておかねばならないという欠点があつた。
[Problems to be Solved by the Invention] Accordingly, in this type of output device, particularly in connection with a plurality of types of host computers, a character pattern is prepared in accordance with the host computer, or a program is prepared in accordance with the host computer. Therefore, there is a drawback that it is necessary to prepare a plurality of font patterns and programs in the output device in advance.

本発明は上記従来例に鑑みてなされたもので、異なる
サイズの文字を混在させて、モードによって文字の特定
位置を揃えて出力できる文字処理装置を提供することを
目的とする。
The present invention has been made in view of the above conventional example, and an object of the present invention is to provide a character processing device capable of mixing characters of different sizes and aligning specific positions of the characters according to the mode and outputting.

[問題点を解決するための手段] 上記目的を達成するために本発明の文字処理装置は以
下のような構成を備える。即ち、 第1のモード、第2のモードのいずれかのモードを指
定する指定手段と、 前記指定手段に指定されるモードに対応させて文字の
展開位置を決定するための情報を記憶する記憶手段と、 前記指定手段により第1のモードが指定された場合、
指定された第1のモードに対応する前記記憶手段に記憶
されている情報に基づいて、各文字の第1の特定位置が
線上に並ぶように異なるサイズの文字を混在させて展開
し、前記指定手段により第2のモードが指定された場
合、指定された第2のモードに対応する前記記憶手段に
記憶されている情報に基づいて、各文字の第1の特定位
置が線上に並ばないように且つ各文字の第2の特定位置
が線上に並ぶように異なるサイズの文字を混在させて展
開する展開手段とを有する。
[Means for Solving Problems] In order to achieve the above object, the character processing device of the present invention has the following configuration. That is, a designating unit that designates either the first mode or the second mode, and a storage unit that stores information for determining a character development position corresponding to the mode designated by the designating unit. And when the first mode is designated by the designating means,
Based on the information stored in the storage means corresponding to the designated first mode, the characters of different sizes are mixed and developed so that the first specific position of each character is lined up, and the designation is performed. When the second mode is designated by the means, the first specific position of each character should not be aligned on the line based on the information stored in the storage means corresponding to the designated second mode. In addition, there is a developing unit that mixes and develops characters of different sizes so that the second specific position of each character is lined up.

[作用] 以上の構成において、第1のモード及び第2のモード
に対応させて文字の展開位置を決定するための情報を記
憶しておき、指定手段により第1或は第2のモードが指
定されると、第1のモードが指定された場合は、指定さ
れた第1のモードに対応する、記憶されている情報に基
づいて、各文字の第1の特定位置が線上に並ぶように異
なるサイズの文字を混在させて展開する。一方、第2の
モードが指定された場合、指定された第2のモードに対
応する、記憶されている情報に基づいて、各文字の第1
の特定位置が線上に並ばないように且つ各文字の第2の
特定位置が線上に並ぶように異なるサイズの文字を混在
させて展開するように動作する。
[Operation] In the above configuration, information for determining the expansion position of the character is stored in association with the first mode and the second mode, and the first or second mode is designated by the designating means. Then, when the first mode is designated, the first specific position of each character is different so as to be aligned on the line based on the stored information corresponding to the designated first mode. Expand mixed size characters. On the other hand, when the second mode is designated, the first of each character is based on the stored information corresponding to the designated second mode.
The characters of different sizes are mixed and developed so that the specific positions of the characters are not aligned on the line and the second specific positions of the characters are aligned on the line.

[実施例] 第1図に示す実施例の文書処理装置は、第1のメモリ
のページバッファ4と、パターンメモリのフォントメモ
リ7と、第2のメモリのフレームメモリ6と、位置記憶
手段の文字セット情報部8と、パターン発生制御回路5
と、記憶手段のページバッファ4と、選択手段のスイッ
チ部11とを備える。
[Embodiment] The document processing apparatus of the embodiment shown in FIG. 1 has a page buffer 4 of a first memory, a font memory 7 of a pattern memory, a frame memory 6 of a second memory, and characters of a position storage means. Set information section 8 and pattern generation control circuit 5
And a page buffer 4 as a storage unit and a switch unit 11 as a selection unit.

かかる第1図の構成において、ホストコンピュータ13
よりの文書情報をページバッファ4に格納する。パター
ン発生制御回路5はページバッファ4のコードに対応す
るフォントパターンをフォントメモリ7より読み出し、
ドットパターンに展開してフレームメモリ6に格納す
る。ページバッファ4の文書情報には、文字種及び出力
開始位置等が含まれている。また文字セット情報部8に
は各文字種に対応して、パターンサイズや文書出力フォ
ーマットに対応した位置情報が記憶されており、スイッ
チ部11よりの指定に対応して前記位置情報を選択して、
文字毎にフレームメモリ6の格納アドレスを求め、文書
情報のパターン展開を実施する。
In the configuration shown in FIG. 1, the host computer 13
The document information is stored in the page buffer 4. The pattern generation control circuit 5 reads a font pattern corresponding to the code of the page buffer 4 from the font memory 7,
The dot pattern is developed and stored in the frame memory 6. The document information in the page buffer 4 includes a character type, an output start position, and the like. Further, the character set information section 8 stores position information corresponding to the pattern size and the document output format corresponding to each character type, and the position information is selected according to the designation from the switch section 11,
The storage address of the frame memory 6 is obtained for each character, and the pattern expansion of the document information is performed.

以下、添付図面に従って本発明の実施例を詳細に説明
する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

以下、添付図面に従つて本発明の実施例を詳細に説明
する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[文書処理装置の説明(第1図)] 第1図は本発明の実施例の文書処理装置のブロツク図
である。
[Description of Document Processing Device (FIG. 1)] FIG. 1 is a block diagram of the document processing device according to the embodiment of the present invention.

1は種々のホストコンピユータ13よりの文書情報を受
信し、ドツトイメージに変えてプリンタ部12に出力する
文書処理装置の制御部である。2は制御部1の制御を司
どるCPUで、例えばマイクロプロセツサ等で構成されて
いる。3はCPU2の制御プログラムやプリント用各種テー
ブル等を格納しているプログラムメモリ、4はホストコ
ンピユータ13よりの文書情報を蓄えるページバツフアで
ある。
Reference numeral 1 is a control unit of the document processing apparatus which receives document information from various host computers 13, converts it into a dot image, and outputs it to the printer unit 12. Reference numeral 2 is a CPU that controls the control of the control unit 1, and is composed of, for example, a microprocessor. Reference numeral 3 is a program memory for storing control programs for the CPU 2, various tables for printing, and the like, and 4 is a page buffer for storing document information from the host computer 13.

5はページバツフア4に格納されているコード情報を
もとに、文字記号等のフオントパターンを発生してフレ
ームメモリ6に格納するパターン発生制御回路で、制御
用のマイクロプロセツサMPUや、MPUの制御プログラムや
データ等を内蔵したROM及びワークエリアとしてのRAM等
を備えている。6はプリンタ部12の出力用紙1ページに
相当するドツトイメージを格納するフレームメモリ、7
は文字コードに対応して各文字のフオントパターンを内
蔵しているフオントメモリである。
Reference numeral 5 is a pattern generation control circuit that generates font patterns such as characters and symbols based on the code information stored in the page buffer 4 and stores them in the frame memory 6, and controls the microprocessor MPU for control and MPU. It has a ROM with built-in programs and data, and a RAM as a work area. 6 is a frame memory for storing a dot image corresponding to one page of output paper of the printer unit 12, 7
Is a font memory containing a font pattern of each character corresponding to the character code.

8は文字セツト毎にベースラインや文字の高さ、幅等
の情報を格納する文字セツト情報部、9はホストコンピ
ユータ13との接続を行うインタフエース回路で、例えば
RS−232C等のインタフエース回路である。10はフレーム
メモリ6のドツトイメージを、例えばシリアルの電気信
号(例えばレーザビームプリンタでのレーザのオン/オ
フ用信号)に変換したりして、プリンタ部12に印刷デー
タを出力するプリンタインタフエース回路、11はホスト
コンピユータの種類を指示するスイツチ部である。12は
印字出力を行うプリンタ部、13は印字データの発生源で
あるホストコンピユータである。
Reference numeral 8 is a character set information section for storing information such as a baseline and the height and width of the character for each character set, and 9 is an interface circuit for connecting to the host computer 13.
It is an interface circuit such as RS-232C. A printer interface circuit 10 outputs the print data to the printer unit 12 by converting the dot image of the frame memory 6 into, for example, a serial electric signal (for example, a laser on / off signal in a laser beam printer). , 11 are switch sections for instructing the type of the host computer. Reference numeral 12 is a printer unit for performing print output, and 13 is a host computer which is a generation source of print data.

かかる構成において、ホストコンピユータ13よりの印
字データは、インタフエース回路9を経由してCPU2に取
り込まれ、順次ページバツフア4に格納される。CPU2は
1ページ分の印字データをページバツフア4に格納する
とパターン発生制御回路5へ、文字コードをフオントパ
ターンに展開する指示と、ページバツフア4の印字デー
タの開始アドレスの指定を行う。これによりパターン発
生制御回路5はページバツフア4の印字開始アドレスよ
り順次文字コードを読み出し、そのコードに対応するフ
オントパターンをフオントメモリ7より読み出し、順次
フレームメモリ6へパターン展開していく。その際、パ
ターン発生制御回路5はスイツチ部11の情報を基に、文
字セツト情報部8のどの情報によりパターン展開を行う
かを決定する。
In such a configuration, the print data from the host computer 13 is taken into the CPU 2 via the interface circuit 9 and sequentially stored in the page buffer 4. When the CPU 2 stores the print data for one page in the page buffer 4, it instructs the pattern generation control circuit 5 to develop the character code into a font pattern and specifies the start address of the print data of the page buffer 4. As a result, the pattern generation control circuit 5 sequentially reads the character code from the print start address of the page buffer 4, reads the font pattern corresponding to the code from the font memory 7, and sequentially develops the pattern in the frame memory 6. At this time, the pattern generation control circuit 5 determines which information in the character set information section 8 is used to develop the pattern, based on the information in the switch section 11.

1ページ部の印字データをフレームメモリ6へフオン
トパターンとして展開し終えると、パターン発生制御回
路5はCPU2に1ページ分のフオントパターン展開終了を
通知する。CPU2は、このフオントパターンの展開終了後
3を受けとると、プリンタインタフエース回路10にフレ
ームメモリ6のデータをビデオ信号化する指示を行う。
プリンタインタフエース回路10はプリンタ部12に対し、
給紙の指示を行うと共に、例えばプリンタ部12がレーザ
ビームプリンタの時は、フレームメモリ6の各ドツトデ
ータを順次レーザのオン/オフ用シリアル信号に変換し
て出力する。
When the print data of one page portion has been expanded into the frame memory 6 as a font pattern, the pattern generation control circuit 5 notifies the CPU 2 of the end of the expansion of the font pattern for one page. When the CPU 2 receives 3 after the development of the font pattern, it instructs the printer interface circuit 10 to convert the data in the frame memory 6 into a video signal.
The printer interface circuit 10 is
When the printer unit 12 is, for example, a laser beam printer, the sheet data is instructed, and each dot data in the frame memory 6 is sequentially converted into a laser on / off serial signal and output.

[文字セツト情報の説明(第2図〜第3図)] 第3図(a)〜(c)はそれぞれ第2図(a)〜
(c)の印字例に対応した文字セツト情報を示したもの
である。
[Explanation of character set information (FIGS. 2 to 3)] FIGS. 3 (a) to 3 (c) are shown in FIGS.
FIG. 7 shows character set information corresponding to the print example of (c).

第2図(a)は文字の下端を揃えて印字した例を示し
たもので、第3図(a)はこのときの各文字情報を示し
ている。即ち、欄30は文字“A"を含む文字セツトのドツ
トサイズと、揃える位置21(文字の下端)を、文字枠23
の状態からのドツト数で示している。同様に欄31は24×
24ドツト文字“亜”を含む文字セツトのサイズと、揃え
る位置21を文字枠24の上端からのドツト数で示してお
り、欄32は32×32ドツトの文字“亜”を含む文字セツト
のサイズと、揃える位置21を文字枠25の状態からのドツ
ト数で示している。
FIG. 2 (a) shows an example in which the lower ends of the characters are aligned and printed, and FIG. 3 (a) shows each character information at this time. That is, in the column 30, the dot size of the character set including the character "A", the alignment position 21 (the lower end of the character), the character frame 23
It is indicated by the number of dots from the state of. Similarly, column 31 is 24 ×
The size of the character set containing the 24 dot character "A" and the alignment position 21 are shown by the number of dots from the upper edge of the character frame 24. Column 32 is the size of the character set containing the 32 character "A" character. And the aligned position 21 is indicated by the number of dots from the state of the character frame 25.

第2図(b)は文字の上端22を揃えて印字したもの
で、第3図(b)はその時の各文字情報を示している。
ここでは上端が揃えられているため、揃える位置を示す
上端からのドツト数はいずれも0になつている。
FIG. 2 (b) shows the upper ends 22 of the characters aligned and printed, and FIG. 3 (b) shows the respective character information at that time.
Here, since the upper ends are aligned, the number of dots from the upper end indicating the aligned position is zero.

第2図(c)は文字のベースラインを揃えて印字した
例を示し、第3図(c)はその時の各文字情報を示して
いる。
FIG. 2 (c) shows an example in which the character baselines are aligned and printed, and FIG. 3 (c) shows each character information at that time.

[ページバツフアのデータ構造の説明(第4図〜第6
図)] 第4図はページバツフア4のデータ構造を示す図であ
る。
[Description of data structure of page buffer (FIGS. 4 to 6
FIG.) FIG. 4 is a diagram showing a data structure of the page buffer 4.

位置情報40は紙面上での文字列の位置を示す座標値
(x,y)であり、この座標(x,y)は第6図に示す如く、
紙送り方向をy軸、紙送り方向に垂直な方向をx軸とす
る。
The position information 40 is a coordinate value (x, y) indicating the position of the character string on the paper surface, and this coordinate (x, y) is as shown in FIG.
The paper feed direction is the y-axis, and the direction perpendicular to the paper feed direction is the x-axis.

41は文字セツトの種類を示す文字セツトIDで、例えば
文字セツトID=0は幅16ドツト、高さ24ドツトのアルフ
アベツト文字セツトを示し、文字セツトID=1は幅24ド
ツト、高さ24ドツトの漢字セツト、文字セツトID=2は
幅32ドツト、高さ32ドツトの漢字セツトを表すものとす
る。42は同じ文字セツトIDの文字がいくつ続くかを示す
印字データ数、43はASCIIやJIS等の文字コードである。
44は連続した同じ文字セツトIDの文字列データを示して
いる。45は次のレコードのアドレスを示すポインタで、
0のときは1ページの終了を示す。
41 is a character set ID that indicates the type of character set. For example, character set ID = 0 indicates an alphabet character set with a width of 16 dots and a height of 24 dots, and a character set ID = 1 indicates a width of 24 dots and a height of 24 dots. Kanji set and character set ID = 2 represent a Kanji set with a width of 32 dots and a height of 32 dots. 42 is the number of print data indicating how many characters with the same character set ID continue, and 43 is a character code such as ASCII or JIS.
Reference numeral 44 indicates consecutive character string data having the same character set ID. 45 is a pointer indicating the address of the next record,
A value of 0 indicates the end of one page.

第5図は第2図(a)〜(c)に示したような文字列
のコードデータをページバツフア4に格納した時の一例
を示す図である。
FIG. 5 is a diagram showing an example when the code data of the character string as shown in FIGS. 2A to 2C is stored in the page buffer 4.

50は文字セツトID41が0、即ち幅16ドツト、高さ24ド
ツトのアルフアベツト文字で、この文字セツトは1文字
であり、その文字コードはX′41′、即ち“A"であるこ
とを示している。51は幅24ドツト、高さ24ドツトの文字
“亜”、52は幅32ドツト、高さ32ドツトの文字“亜”を
示している。そしてこれらの文字列の基準印字開始位置
(x0,y0)が40によつて示されている。なお、文字セツ
トID41のX′FF′コードは1レコードの終了を示す。
50 is an alphanumeric character whose character set ID 41 is 0, that is, width 16 dots and height 24 dots. This character set is one character, and its character code is X'41 ', that is, "A". There is. Reference numeral 51 represents a character "A" having a width of 24 dots and height 24 dots, and 52 represents a character having a width of 32 dots and a height of 32 dots. The reference print start position (x0, y0) of these character strings is indicated by 40. The X'FF 'code of the character set ID 41 indicates the end of one record.

パターン発生制御回路5は、1レコード処理毎にレコ
ード上の位置情報(x,y)の値と、文字セツトIDの情報
及び、例えば第2図(a)〜(c)の如く、文字の下端
を揃えるか、上端を揃えるか或いはベースラインを揃え
るかを示すスイツチ部11の情報を基に、文字枠の左上端
の位置を求める。その位置に基づいてフレームメモリ6
上のアドレスを求め、そのアドレスに文字コードのフオ
ントパターンを展開していく。1文字分の処理が終了す
ると、フオントパターンの幅分をx軸の座標に加え、次
の文字枠の左上端の位置を求める。この位置を基に次の
文字のパターン展開を行う。このようにして、各レコー
ドでの文字処理を行い、ポインタ45が0、即ち1ページ
の最終レコードまで1ページ分の文字処理を実行する。
The pattern generation control circuit 5 determines the value of the position information (x, y) on the record, the information of the character set ID, and the lower end of the character, for example, as shown in FIGS. The position of the upper left end of the character frame is obtained based on the information of the switch unit 11 indicating whether the lines are aligned, the tops are aligned, or the baselines are aligned. Frame memory 6 based on its position
Find the address above and expand the font pattern of the character code to that address. When the processing for one character is completed, the width of the font pattern is added to the coordinates of the x axis to obtain the position of the upper left end of the next character frame. The pattern of the next character is developed based on this position. In this way, the character processing is performed on each record, and the pointer 45 is 0, that is, the character processing for one page is executed up to the last record of one page.

[文字セツト情報部の説明(第7図、第8図)] 第7図は文字セツト情報部8における1文字分のデー
タの構造の一例を示す図である。
[Explanation of Character Set Information Section (FIGS. 7 and 8)] FIG. 7 is a diagram showing an example of a data structure for one character in the character set information section 8.

70にはフオントメモリ7における、当該文字パターン
の先頭アドレスが格納されている。71は文字パターンの
横幅のドツト数、72は文字パターンの高さ方向のドツト
数、73は文字コードが1バイト或いは2バイトかを示
し、0のときは1バイト、1のときは2バイトコードで
あることを示す。74は、例えば第2図(a)〜(c)に
示したように3種類の印字が可能なときの、第3図
(a)〜(c)に示す上端からのドツト数を記憶する欄
で、75は下端揃えのときの上端よりのドツト数、76は上
端揃えの時の上端よりのドツト数で、通常0のはずであ
る。77はベースライン揃えの時の上端からのドツト数で
ある。
In 70, the start address of the character pattern in the font memory 7 is stored. 71 is the number of dots in the width of the character pattern, 72 is the number of dots in the height direction of the character pattern, 73 is the character code 1 byte or 2 bytes, 0 is 1 byte, 1 is 2 byte code Is shown. 74 is a column for storing the number of dots from the upper end shown in FIGS. 3A to 3C when three types of printing are possible as shown in FIGS. 2A to 2C. Here, 75 is the number of dots from the upper end when aligning the lower ends, and 76 is the number of dots from the upper end when aligning the upper ends, which should normally be zero. 77 is the number of dots from the top when the baseline is aligned.

第8図は文字“A"の文字セツト情報とフオントメモリ
の関係を示す図である。
FIG. 8 shows the relationship between the character set information of the character "A" and the font memory.

70にはフオントメモリ7における文字“A"のフオント
パターンの先頭アドレスがセツトされている。第2図
(a)に示した如く、文字“A"の幅は16ドツト、高さは
24ドツトであるため、71,72にはそれらの16進数がそれ
ぞれセツトされている。73は文字“A"のコードが1バイ
トであることを示し、75には第3図(a)の欄30より文
字の下端揃えの時の上端からのドツト数23(X′17′)
がセツトされ、76には上端揃えのため、ドツト数がゼ
ロ、77には第3図(c)のベースライン揃えの時の上端
からのドツト数20(X′14′)がセツトされている。
In 70, the start address of the font pattern of the character "A" in the font memory 7 is set. As shown in Fig. 2 (a), the width of the letter "A" is 16 dots, and the height is
Since it is 24 dots, the hexadecimal numbers are set in 71 and 72, respectively. The numeral 73 indicates that the code of the character "A" is 1 byte, and the numeral 75 indicates from the column 30 in Fig. 3 (a) that the number of dots from the upper end when aligning the lower ends of the characters is 23 (X'17 ').
Is set, the number of dots is zero for 76, and the number of dots 20 (X'14 ') from the upper end at the time of baseline alignment in FIG. 3 (c) is set for 77. .

[パターン発生制御回路の動作説明(第1図、第4図、
第9図、第10図)] 第9図はパターン発生制御回路5のRAMの構成を示す
図で、第10図はパターン発生制御回路5のROMに格納さ
れているMPUの動作フローチヤートを示したものであ
る。
[Explanation of the operation of the pattern generation control circuit (see FIGS. 1, 4 and
(FIGS. 9 and 10)] FIG. 9 is a diagram showing a configuration of the RAM of the pattern generation control circuit 5, and FIG. 10 shows an operation flow chart of the MPU stored in the ROM of the pattern generation control circuit 5. It is a thing.

まずステツプS1ではページバツフア4より印字データ
を読み出すため、ページアドレスポインタPGADRにペー
ジバツフア4の読み出し先頭アドレスをセツトする。ス
テツプS2ではx,y座標値40をそれぞれx座標メモリXAXS,
y座標メモリYAXSにセツトする。ステツプS3では文字セ
ツトID41をIDメモリMJIDにセツトする。ステツプS4では
IDがX′FF′即ち1レコードの終了かをみる。1レコー
ドの終了のときはステツプS5に進み、ポインタ45の値を
調べ、0、即ち1ページの終了かをみる。1ページの終
了のときはステツプS6に進み、CPU2に1ページ分のドツ
トイメージがフレームメモリ6に展開されたことを知ら
せて処理を終了する。1ページの終了でない時は、ステ
ツプS7でポインタ45で指示されたアドレスをPGADRにセ
ツトして、次のレコードのチエツクを行うべく、再びス
テツプS2に戻る。
First, in step S1, the print data is read from the page buffer 4, so the read start address of the page buffer 4 is set in the page address pointer PGADR. In step S2, the x and y coordinate values 40 are stored in the x coordinate memory XAXS,
Set to y coordinate memory YAXS. In step S3, the character set ID 41 is set in the ID memory MJID. In Step S4
Check whether the ID is X'FF ', that is, the end of one record. When one record has ended, the process proceeds to step S5, the value of the pointer 45 is checked, and it is determined whether it is 0, that is, whether one page has ended. When one page is finished, the process proceeds to step S6 to notify the CPU 2 that one page of the dot image has been developed in the frame memory 6, and the process is finished. If one page has not ended, the address pointed to by the pointer 45 is set in PGADR in step S7, and the process returns to step S2 to check the next record.

ステツプS4で1レコードの終了でなければステツプS8
に進み、文字セツトID41と文字コード43に基づいて、文
字セツト情報部8の文字幅を文字幅メモリMJWDにセツト
する。ステツプS9ではポインタMJPTに、同一文字セツト
IDにおける文字コード列の先頭アドレスをセツトし、カ
ウンタCNTに印字数42をセツトする。
If one record does not end in step S4, step S8
Then, based on the character set ID 41 and the character code 43, the character width of the character set information section 8 is set in the character width memory MJWD. In step S9, the same character set is set in the pointer MJPT.
The head address of the character code string in the ID is set, and the number of prints 42 is set in the counter CNT.

ステツプS10では文字セツトIDが同一の文字コード列
全てを終了したかを調べ、終了していれば次の文字セツ
トID41を読み取るべくステツプS3に戻るが、現在の文字
セツトIDの処理中ならばステツプS11に進み、スイツチ
部11のスイツチ状態を読み取り、出力の形態が、例えば
上端揃え、下端揃え、ベースライン揃えのいずれに該当
するかをみる。このスイツチ部11のスイツチに基づき、
文字セツト情報部8の上端からのドツト数74のいずれか
を読み込み、ステツプS12でy座標YAXSより上端からの
ドツト数を引いて実際のy座標YYを求める。
In step S10, it is checked whether all character code strings with the same character set ID have been completed. If completed, the process returns to step S3 to read the next character set ID 41, but if the current character set ID is being processed, step In step S11, the switch state of the switch unit 11 is read, and it is determined whether the output form corresponds to, for example, upper end alignment, lower end alignment, or baseline alignment. Based on the switch of this switch unit 11,
Any one of the dot numbers 74 from the upper end of the character set information section 8 is read, and the actual y coordinate YY is obtained by subtracting the dot number from the upper end from the y coordinate YAXS in step S12.

ステツプS13では、前述のXAXSとYYとで示されるアド
レスに対応するフレームメモリ6のアドレスより、フオ
ントパターンの展開を行う。ステツプS14ではx座標に
文字幅MJWDを加算して、次の文字のx座標XAXSを求め、
ステツプS15で印字数カウンタCNTを−1して、再びステ
ツプS10に戻り、CNTが0になるまで前述の動作を繰り返
し実行する。
In step S13, the font pattern is expanded from the address of the frame memory 6 corresponding to the address indicated by the above-mentioned XAXS and YY. In step S14, the character width MJWD is added to the x coordinate to obtain the x coordinate XAXS of the next character,
In step S15, the print number counter CNT is decremented by one, and the process returns to step S10 to repeat the above operation until CNT becomes 0.

上述の動作の概要を、第2図〜第5図の場合を例にと
つて説明すると、いまスイツチ部11の設定により第2図
(c)のようなベースライン揃えでフオントパターンの
印字を行うものとする。第5図のx0,y0の値を夫々X′1
00′,X′100′とすると、パターン発生制御回路5は文
字“A"の左上端のy座標YAXSをy座標=y座標(X′10
0′)−上端からのドツト数20(X′14′)で求める。
X′100′−X′14′=X′EC′であるから、(X′10
0′,X′EC′)に相当するフレームメモリ6上のアドレ
スと、文字“A"のフオントメモリ7におけるフオントパ
ターンのアドレスを求め、文字“A"のフオントパターン
をフレームメモリ6へ展開する。
The outline of the above operation will be described by taking the case of FIGS. 2 to 5 as an example. Now, by setting the switch unit 11, the font pattern is printed with the baseline alignment as shown in FIG. 2C. I shall. The values of x0 and y0 in Fig. 5 are X'1 respectively.
Assuming that 00 'and X'100', the pattern generation control circuit 5 sets the y coordinate YAXS at the upper left end of the character "A" to y coordinate = y coordinate (X'10
0 ')-Dot number 20 (X'14') from the upper end.
Since X'100'-X'14 '= X'EC', (X'10
The address on the frame memory 6 corresponding to 0 ', X'EC') and the address of the font pattern in the font memory 7 of the character "A" are obtained, and the font pattern of the character "A" is expanded in the frame memory 6.

次に幅24ドツト、高さ24ドツトの漢字“亜”に対する
位置は、“A"に対するフオントパターンの幅分x軸方向
へプラスされたものとなる。従つてX′100′+X′1
0′=X′110′がx座標XAXSとなり、y座標YAXSはX′
100′−X′16′(22)より、X′EA′となつて(X′1
10′,X′EA′)に相当するフレームメモリ6のアドレス
から、幅24ドツト、高さ24ドツトの“亜”のフオントパ
ターンが展開される。同様にして、幅32ドツト、高さ32
ドツトの“亜”の左上端の(X′128′,X′E4′)に相
当するフレームメモリのアドレスより、幅32ドツト、高
さ32ドツトの“亜”のフオントパターンが展開される。
Next, the position of 24 dots wide and 24 dots high for the Chinese character "A" is the width of the font pattern for "A" plus in the x-axis direction. Therefore, X'100 '+ X'1
0 '= X'110' becomes x coordinate XAXS, and y coordinate YAXS is X '
From 100'-X'16 '(22), connect to X'EA'(X'1
From the address of the frame memory 6 corresponding to 10 ', X'EA'), a "dot" font pattern having a width of 24 dots and a height of 24 dots is developed. Similarly, width 32 dots, height 32
From the frame memory address corresponding to (X'128 ', X'E4') at the upper left end of the dot "A", a font pattern of "A" with a width of 32 dots and a height of 32 dots is developed.

なお、本実施例ではビデオ信号による印字出力につい
て説明したが、フレームメモリの出力は印字に限定され
るものではなく、デイスプレイ装置のような画面出力に
も利用できることはもちろんである。
It should be noted that although the print output by the video signal is described in the present embodiment, the output of the frame memory is not limited to the print, and it is needless to say that the output of the frame memory can also be used for the screen output of a display device.

また、本実施例では1ページ分のドツトイメージをフ
レームメモリ上に生成するように説明したが、インパク
トプリンタのように逐次的に文字出力を行うプリンタ等
を用いた場合は、現在の書体(実施例での文字セツトID
に相当する)を印字後、文字セツト情報部の情報を基に
印字ヘツドや紙面を戻すなどして印字を行うようにして
もよい。また、本実施例の文書情報は図形情報であつて
も良い。
In the present embodiment, one page of dot image is generated on the frame memory. However, when a printer that sequentially outputs characters such as an impact printer is used, the current typeface (implementation) is performed. Character set ID in the example
(Corresponding to) is printed, and then printing is performed by returning the printing head or the paper surface based on the information in the character set information section. Further, the document information of this embodiment may be graphic information.

以上説明したように本実施例によれば、フオントパタ
ーンの他に例えばベースライン位置等の文字セツトの情
報を複数持つ事により、種々の機器に合わせて文書出力
が可能になるため、これら機器との接続が容易になると
いう効果がある。
As described above, according to the present embodiment, by having a plurality of character set information such as the baseline position in addition to the font pattern, it is possible to output a document according to various devices. This has the effect of facilitating connection.

[発明の効果] 以上説明したように本発明によれば、異なるサイズの
文字を混在させて、モードによって文字の特定位置を揃
えて出力できるという効果がある。
[Effect of the Invention] As described above, according to the present invention, there is an effect that characters of different sizes can be mixed and the specific positions of the characters can be aligned and output depending on the mode.

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

第1図は本実施例の文書処理装置のブロツク図、 第2図(a)〜(c)は文書出力フオーマツトの例を示
す図、 第3図(a)〜(c)は第2図(a)〜(c)の出力例
の文字情報を示す図、 第4図はページバツフアの構成を示す図、 第5図はページバツフアの具体例を示す図、 第6図は文書の座標系を示す図、 第7図は文字セツト情報部の構成を示す図、 第8図は文字セツト情報部の具体例とフオントメモリと
の関係を示す図、 第9図はパターン発生制御部のRAM構成図、 第10図はパターン発生制御部の動作フローチヤートであ
る。 図中、1……制御部、2……CPU、3……プログラムメ
モリ、4……ページバツフア、5……パターン発生制御
回路、6……フレームメモリ、7……フオントメモリ、
8……文字セツト情報部、9……インターフエース回
路、10……プリンタインターフエース回路、11……スイ
ツチ部、12……プリンタ部、13……ホストコンピユー
タ、41……文字セツトID、45……ポインタである。
FIG. 1 is a block diagram of the document processing apparatus according to the present embodiment, FIGS. 2 (a) to 2 (c) are diagrams showing an example of a document output format, and FIGS. 3 (a) to 3 (c) are shown in FIG. The figure which shows the character information of the output example of a)-(c), the figure 4 which shows the constitution of the page buffer, the figure 5 which shows the concrete example of the page buffer, and the figure 6 which shows the coordinate system of the document. FIG. 7 is a diagram showing the configuration of the character set information section, FIG. 8 is a diagram showing the relationship between a concrete example of the character set information section and the font memory, and FIG. 9 is a RAM configuration diagram of the pattern generation control section. FIG. 10 is an operation flow chart of the pattern generation control unit. In the figure, 1 ... Control unit, 2 ... CPU, 3 ... Program memory, 4 ... Page buffer, 5 ... Pattern generation control circuit, 6 ... Frame memory, 7 ... Font memory,
8 ... Character set information section, 9 ... Interface circuit, 10 ... Printer interface circuit, 11 ... Switch section, 12 ... Printer section, 13 ... Host computer, 41 ... Character set ID, 45 ... … A pointer.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/32 9288−5L G06F 15/20 562C 9288−5L 596A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location G09G 5/32 9288-5L G06F 15/20 562C 9288-5L 596A

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】第1のモード、第2のモードのいずれかの
モードを指定する指定手段と、 前記指定手段に指定されるモードに対応させて文字の展
開位置を決定するための情報を記憶する記憶手段と、 前記指定手段により第1のモードが指定された場合、指
定された第1のモードに対応する前記記憶手段に記憶さ
れている情報に基づいて、各文字の第1の特定位置が線
上に並ぶように異なるサイズの文字を混在させて展開
し、前記指定手段により第2のモードが指定された場
合、指定された第2のモードに対応する前記記憶手段に
記憶されている情報に基づいて、各文字の第1の特定位
置が線上に並ばないように且つ各文字の第2の特定位置
が線上に並ぶように異なるサイズの文字を混在させて展
開する展開手段と、 を有することを特徴とする文字処理装置。
1. A designation means for designating one of a first mode and a second mode, and information for deciding a development position of a character in correspondence with the mode designated by the designation means. And a first specific position of each character based on the information stored in the storage means corresponding to the designated first mode when the first mode is designated by the designation means. When characters of different sizes are mixed and developed so as to line up on a line, and the second mode is designated by the designating means, the information stored in the storage means corresponding to the designated second mode. Based on, the expansion means for expanding the characters of different sizes in a mixed manner so that the first specific positions of the characters are not aligned on the line and the second specific positions of the characters are aligned on the line. Characterized by Character processing apparatus.
【請求項2】前記第1の特定位置は文字の上端位置であ
り、前記第2の特定位置は文字のベースライン位置であ
ることを特徴とする特許請求の範囲第1項に記載の文字
処理装置。
2. The character processing according to claim 1, wherein the first specific position is an upper end position of a character, and the second specific position is a baseline position of the character. apparatus.
【請求項3】前記第1の特定位置は文字の下端位置であ
り、前記第2の特定位置は文字のベースライン位置であ
ることを特徴とする特許請求の範囲第1項に記載の文字
処理装置。
3. The character processing according to claim 1, wherein the first specific position is a lower end position of a character, and the second specific position is a baseline position of the character. apparatus.
【請求項4】前記第1の特定位置は文字の上端位置であ
り、前記第2の特定位置は文字の下端位置であることを
特徴とする特許請求の範囲第1項に記載の文字処理装
置。
4. The character processing device according to claim 1, wherein the first specific position is an upper end position of a character, and the second specific position is a lower end position of the character. .
JP61041720A 1986-02-28 1986-02-28 Character processor Expired - Fee Related JP2559697B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61041720A JP2559697B2 (en) 1986-02-28 1986-02-28 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61041720A JP2559697B2 (en) 1986-02-28 1986-02-28 Character processor

Publications (2)

Publication Number Publication Date
JPS62199457A JPS62199457A (en) 1987-09-03
JP2559697B2 true JP2559697B2 (en) 1996-12-04

Family

ID=12616257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61041720A Expired - Fee Related JP2559697B2 (en) 1986-02-28 1986-02-28 Character processor

Country Status (1)

Country Link
JP (1) JP2559697B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62297153A (en) * 1986-06-17 1987-12-24 Omron Tateisi Electronics Co Controller of page printer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58173665A (en) * 1982-04-05 1983-10-12 Hitachi Ltd Laser beam printer signal generation circuit

Also Published As

Publication number Publication date
JPS62199457A (en) 1987-09-03

Similar Documents

Publication Publication Date Title
JP2559697B2 (en) Character processor
JP2783601B2 (en) Information processing device
JPS6363913B2 (en)
JP2956705B2 (en) Data converter
JP3119094B2 (en) Character output device
JPH0583381B2 (en)
JPH049152B2 (en)
JPS60109888A (en) Character processor
JP3089918B2 (en) Data converter
JP2903531B2 (en) Data converter
JPS6189861A (en) Printing controller
JP2617190B2 (en) String output device
JPH0560876B2 (en)
JPH0661960B2 (en) Dot interpolation control device
JPS61263764A (en) Method for printer control
JPS63286359A (en) Pattern generation system
JPH0747339B2 (en) Data converter
JPS62269991A (en) Character deformation printing processor
JPH01281974A (en) Rule line printing control system for printer device
JPS637963A (en) Printing apparatus
JPS62202749A (en) document processing device
JPS61156188A (en) Character output system
JPH08290626A (en) Printer and character-disposing method
JPH03132374A (en) Document output device
JPH07110677A (en) Character generator

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees