JPS6189060A - Printer - Google Patents

Printer

Info

Publication number
JPS6189060A
JPS6189060A JP59211055A JP21105584A JPS6189060A JP S6189060 A JPS6189060 A JP S6189060A JP 59211055 A JP59211055 A JP 59211055A JP 21105584 A JP21105584 A JP 21105584A JP S6189060 A JPS6189060 A JP S6189060A
Authority
JP
Japan
Prior art keywords
information
character
printed
font
image
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.)
Granted
Application number
JP59211055A
Other languages
Japanese (ja)
Other versions
JPH0583382B2 (en
Inventor
Noboru Kawaguchi
昇 川口
Tomohiro Daino
台野 智広
Shigeo Indei
因泥 茂夫
Yoshiaki Saito
斉藤 芳明
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP59211055A priority Critical patent/JPS6189060A/en
Publication of JPS6189060A publication Critical patent/JPS6189060A/en
Publication of JPH0583382B2 publication Critical patent/JPH0583382B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To print a multi-linguistic sentence including Japanese in well-arranged layout by switching position information in accordance with the comparative results of printed character direction and base line direction. CONSTITUTION:Font direction information and base line direction information which were inputted from an interface 1 are supplied to a vertical/lateral printing decision circuit 5. Address information from the circuit 5 is applied to a font position information memory 6 together with address information which is outputted from a font switching circuit 2. The font position information memory 6 stores information XO, YO, XW, YW to prescribe the position of printed character by character code information and information of character size XS, YS. Information XO-YW is set at a different value according to the cases of vertical printing and lateral printing. For instance, when characters are vertically printed, any symbols can be added slightly off the alignment forming the well-balanced appearance as a whole. Thus it is possible to print a sentence in well-arranged outlay using each information XO-YW.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、日本語処理装置などに用いるプリンタ装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer device used in a Japanese language processing device or the like.

〔従来の技術〕[Conventional technology]

従来1日本語や英語の文章をキーボード等から入力して
プリンタによって印刷する処理装置があるが、この装置
においては印刷文字の書体を表わす第1の情報、印刷文
字が縦書きか横書きかを表わす第2の情報および印刷文
字を表わす第3の情報をプリンタ装置に出力し、プリン
タ装置側でこれら第1ないし第3の情報に対応した画像
情報な発生し、さらに前記第2および第3の情報に基づ
き印刷文字画像の原点に対する左端(または右端)の画
像までの位置関係を表わす第1の位置情報および次の印
刷文字画像の原点との位置関係を表わす第2の位置情報
を発生し、前記画像情報を第1および第2の位置情報で
指定された位置に印字するように構成している。
Conventionally, there is a processing device that inputs Japanese or English sentences from a keyboard or the like and prints them out using a printer, but in this device, the first information that represents the font of the printed characters, and whether the printed characters are written vertically or horizontally. The second information and the third information representing printed characters are outputted to the printer device, image information corresponding to the first to third information is generated on the printer device side, and further the second and third information are outputted to the printer device. generate first position information representing the positional relationship to the leftmost (or rightmost) image with respect to the origin of the printed character image and second positional information representing the positional relationship with the origin of the next printed character image based on the The image information is configured to be printed at a position specified by first and second position information.

すなわち、例えば英語の「f」とrgJの文字を印刷す
る場合について説明すると、第3図に示すように「fJ
と「g」の画像情報を発生させると共に、印刷文字の縦
方向および横方向の基準線となるベースラインAとBと
の交点である原点Cに対する左下端の画像までのX方向
(横方向)の長さXo 、同じく原点Cに対する左下端
の画像までのY方向(縦方向)の長さYo 、現在の印
刷文字rfJの原点Cと次の印刷文字「g」の原点との
X方向およびY方向の長さXw、Ywの各位置情報を発
生させ、これらの各位置情報と印字文字の大きさを表わ
す情報Xs、YSとにより各位置情報で指定された位置
に印刷文字を印刷するように構成されている。
That is, for example, to explain the case of printing the English characters "f" and rgJ, as shown in Figure 3, "fJ
and "g" image information, as well as the X direction (horizontal direction) to the lower left end image with respect to the origin C, which is the intersection of baselines A and B, which are the reference lines in the vertical and horizontal directions of printed characters. The length Xo, the length Yo in the Y direction (vertical direction) from the origin C to the lower left image, the X direction and Y distance between the origin C of the current printed character rfJ and the origin of the next printed character "g" Generate positional information of lengths Xw and Yw in the direction, and use these positional information and information Xs and YS representing the size of the printed character to print the printed character at the position specified by each positional information. It is configured.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところが、従来においては横書き文字を印刷する場合で
も、また縦書き文字を印刷する場合でも第1の位置情報
X、、Y、および第2の位置情報へ、YWは同じ値に設
定されていた。このため、横書き文字で例えば「あった
」という文字を印刷する場合、第4図(a)に示すよう
に「っ」の文字は正しく印刷されるが、縦書きの場合に
はrつ」の文字は「あ」の文字の右下になるべきところ
が第4図(b)に示すように左下に印刷されるものとな
り、美しいレイアウトで印刷できないという問題点があ
った。
However, conventionally, the first position information X, Y, and the second position information YW are set to the same value whether horizontally written characters are printed or vertically written characters are printed. For this reason, when printing the character ``Ata'' in horizontal writing, for example, the character ``tsu'' is printed correctly, as shown in Figure 4 (a), but in vertical writing, the character ``r'' is printed correctly. The character "A" should be printed at the lower right of the character, but as shown in FIG. 4(b), it is printed at the lower left, resulting in a problem that it is not possible to print in a beautiful layout.

〔問題点を解決するための手段1作用〕本発明は、印刷
文字の上下方向の基準位置を示すベースラインの方向と
印刷文字の方向を示す情報を比較し、同一方向の情報な
らば横書き文字、異なる方向の情報ならば縦書き文字と
して判断し、この判断結果に応じて印刷文字の位置を規
定する位置情報を変更するように構成したものである。
[Means for solving the problem 1] The present invention compares the direction of the baseline indicating the reference position in the vertical direction of the printed character with the information indicating the direction of the printed character, and if the information is in the same direction, it is determined that the character is horizontally written. , if the information is in a different direction, it is determined as a vertically written character, and the position information that defines the position of the printed character is changed in accordance with the result of this determination.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示すブロック図であり、イ
ンタフェイス1には印刷文字の書体(ゴシック、大文字
、小文字の区別など)を表わすフォント名情報(第1の
情報)、印刷文字の方向が縦書きか横書きかを表わすフ
ォント方向情報(第2の情報)、印刷文字を表わす文字
コード情報(第3の情報)、印刷文字の上下方向の基準
位置を示すベースライン(第3図のラインB)の方向を
表わすベースライン方向情報(第4の情報)が入力さt
[る。これら各情報は例えば日本語処理装置の本体部か
ら与えられる。
FIG. 1 is a block diagram showing an embodiment of the present invention. Interface 1 includes font name information (first information) representing the typeface of printed characters (Gothic, upper case, lower case sensitivity, etc.), printed characters Font direction information (second information) that indicates whether the direction is vertical or horizontal, character code information that indicates the printed characters (third information), and a baseline that indicates the reference position of the printed characters in the vertical direction (Fig. 3). Baseline direction information (fourth information) representing the direction of line B) is input.
[ru. Each of these pieces of information is given, for example, from the main body of the Japanese language processing device.

こt[ら各情報のうち、フォント名情報およびフォント
方向情報はフォント切り替え回路2に入力される。フォ
ント切り替え回路2は、縦書きと横書きの区別を含め、
印刷可能な複数の書体のそれぞれに対応して第2図(a
)に示すようなアドレス情報を記憶しており、例えば書
体I−書体■のうち書体Iを指定するフォント名情報お
よびフォント方向fW報を受けた場合、アドレス情報B
Iを出力する。このアドレス情−4B■はフォント画像
情報メモリ3に入力される。
Among these pieces of information, font name information and font direction information are input to the font switching circuit 2. The font switching circuit 2 includes the distinction between vertical writing and horizontal writing,
Figure 2 (a) corresponds to each of the plurality of printable typefaces.
), and for example, when receiving font name information and font direction fW information specifying font I out of font I - font ■, address information B is stored.
Outputs I. This address information -4B■ is input to the font image information memory 3.

フォント画像情報メモリ3は、Wary 2図(b)K
示すように印刷可能な書体I〜IVに対応して4つのメ
モリブロックMB(I)〜MB(IV)  を備えてお
り、各メモリブロックには英語の大文字および小文字9
日本語のM書き文字、横書き文字の画像情報を記憶して
いる。従って、フォント切り替え回路2から例えば書体
工に対応するアドレス情報BIが入力されると、4つの
メモリブロックMB(I)〜MB(IV)のうちMB(
I)が選択される。そして1文字コード情報が下位アド
レス情報として与えられることにより、メモリブロック
MB(I)K記憶された英語の大文字の画像情報のうち
文字コード情報に対応した文字の画像情報が読出される
。この画像情報はmxn(m、n≧2の整数)個の画素
で構成され、頁イメージ作成回路4に供給される。
The font image information memory 3 stores Wary 2 (b) K
As shown, it is equipped with four memory blocks MB(I) to MB(IV) corresponding to the printable fonts I to IV, and each memory block has 9 uppercase and lowercase English letters.
It stores image information of Japanese M-written characters and horizontally written characters. Therefore, when address information BI corresponding to, for example, a typeface is input from the font switching circuit 2, MB (of the four memory blocks MB(I) to MB(IV)
I) is selected. Then, by giving one character code information as lower address information, image information of a character corresponding to the character code information is read out of the image information of English capital letters stored in memory block MB(I)K. This image information is composed of m×n (m, an integer of n≧2) pixels, and is supplied to the page image creation circuit 4.

一方、インタフェイス1から入力されたフォント方向情
報およびベースライン方向情報は縦iトき/横書き判断
回路5に供給される。
On the other hand, font direction information and baseline direction information input from the interface 1 are supplied to the vertical/horizontal writing determination circuit 5.

この判断回路5は、フォント方向情報で示される印刷文
学の方向とベースライン方向情報で示さtするベースラ
インの方向とが同一ならば、印刷文字を横拭き文字とし
て判断し、異なるならば縦書き文字として判断し、横書
き文字と判断した場合にはアドレス情報Ylを、また縦
書き文字と判断した場合にはアドレス情’s Y *を
出力する。このアドレス情報Yg  、Ytはフォント
切り替え回路2から出力されるアドレス情報BI−BI
V\・と共にフォント位置情報メモリ6に供給される。
If the direction of the printed literature indicated by the font direction information and the direction of the baseline t indicated by the baseline direction information are the same, this judgment circuit 5 judges the printed character as a horizontal writing character, and if they are different, it judges it as a vertical writing character. If it is determined to be a horizontally written character, address information Yl is output, and if it is determined to be a vertically written character, address information 's Y * is output. These address information Yg and Yt are address information BI-BI output from the font switching circuit 2.
It is supplied to the font position information memory 6 together with V\.

フォント位置情報メモリ6は、第2図(C)に示すよう
に回路5から出力されるアドレス情報Y、〜Y、にそれ
ぞれ対応したメモリブロックM B (Y、)〜MB(
Y、)を有し、さらに各メモリブロックには回路2から
出力されるアドレス情報BI〜B IVに対応したサブ
メモリブロックSMB(I)〜8MB(IV)を有し、
各サブメモリブロックには文字コード情報側に印刷文字
の位置を規定する情報X、、Y、、XW、Ywおよび大
きさの情報Xs、 Ysを記憶している。この場合、情
報X。IY、、Xw、Ywは各メモリブロック別に異な
る値に設定されている。すなわち、情報X0〜YWは縦
書きの場合と横書きの場合とでは異なる値に設定され1
例えば「あった」の「つ」の文字を縦書きで印刷する場
合、「あJの文字の右下に印刷されるように各情報X0
〜Ywが設定されている。
As shown in FIG. 2(C), the font position information memory 6 stores memory blocks M B (Y,) to MB (
Each memory block further includes submemory blocks SMB(I) to 8MB(IV) corresponding to address information BI to BIV output from the circuit 2,
Each sub-memory block stores information X, , Y, , XW, Yw defining the position of printed characters and size information Xs, Ys on the character code information side. In this case, information X. IY, , Xw, and Yw are set to different values for each memory block. In other words, information X0 to YW is set to different values for vertical writing and horizontal writing.
For example, when printing the character ``tsu'' in ``at'' vertically, each piece of information
~Yw is set.

従って、フォント位置情報メモリ6に書体に応じたアド
レス情報BI−BIVと縦書きまたは横書きを指示する
アドレス情報Y1.Y、が入力されると、これらの情報
に応じてFD n’11文字の位置関係を規定する位置
情報X0〜Ywが文字コード別に出力される。この時、
文字の大きさを示す情報XS。
Therefore, the font position information memory 6 contains address information BI-BIV corresponding to the font and address information Y1 . When Y is input, positional information X0 to Yw defining the positional relationship of FD n'11 characters is output for each character code according to this information. At this time,
Information XS indicating the font size.

Y3も出力される。これらの情報X、〜YwおよびX、
、Y、は位置付き文字情報合成回路7に入力され、ここ
において文字コード情報と合成され、位置情報を持った
文字情報として出力される。この位置情報を持った文字
情報は、頁イメージ作成回路4に入力され、フォント画
像情報メモリ3から出力される画像情報と照合され、1
行分の画像情報に編集される。そして、編集された1行
分の画像情報はプリンタインタフェース8を介して印刷
機構9に一走査ライン毎に出力される。すなわち、印刷
機構9は1文字がm)<n画素から成る画像を水平方向
の第1走査ラインの画素から第n走査ラインの画素に到
るまで順次走査して印刷するラスクスキャン型の印刷機
構で構成されている。このため、貞イメージ作成回路4
で編集された1行分の画像情報は水平方向の走査ライン
毎にプリンタインタフェイス8を介して印刷機構9に出
力される。これにより、1行分の文字が印刷される。
Y3 is also output. These information X, ~Yw and X,
, Y are input to the positional character information synthesis circuit 7, where they are combined with character code information and output as character information with positional information. This character information with position information is input to the page image creation circuit 4, and is compared with the image information output from the font image information memory 3.
Edited into lines of image information. Then, the edited image information for one line is output to the printing mechanism 9 via the printer interface 8 for each scanning line. That is, the printing mechanism 9 is a rask scan type printing mechanism that sequentially scans and prints an image in which one character consists of m)<n pixels from the pixels of the first scanning line in the horizontal direction to the pixels of the nth scanning line. It consists of For this reason, the image creation circuit 4
One line of image information edited in is output to the printing mechanism 9 via the printer interface 8 for each horizontal scanning line. This prints one line of characters.

このように本実施例においては、ベースラインの方向と
印刷文字の方向とをそれぞれ示す情報の比較結果に応じ
て印刷文字の位置関係を規定する情報X0〜Ywが切替
えられる。このため、「あった」の文字を縦書きする場
合、「つ」の文字は「あ」の文字の右下に印刷されるよ
うになり、美しいレイアウトの文章を印刷することがで
きる。
In this manner, in this embodiment, the information X0 to Yw defining the positional relationship of the printed characters is switched according to the comparison result of the information indicating the direction of the baseline and the direction of the printed characters, respectively. Therefore, when writing the character ``Ata'' vertically, the character ``TS'' is printed at the bottom right of the character ``A'', making it possible to print a sentence with a beautiful layout.

なお、実施例では印刷機構はラスクスキャン型としてい
るが、1文字単位で印字する印刷機構でありてもよい。
In the embodiment, the printing mechanism is a rask scan type, but it may be a printing mechanism that prints character by character.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように本発明によれば、印刷文
字の方向とベースラインの方向を示す情報の比較結果に
応じて位置情報を切替えるようKしたため1日本語を含
めて多国語の文章を美しいレイアウトで印刷することが
できる。
As is clear from the above description, according to the present invention, the position information is switched according to the comparison result of the information indicating the direction of printed characters and the direction of the baseline, so that text in multiple languages including Japanese can be edited. You can print beautiful layouts.

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

第1図は本発明の一実施例を示すブロック図、第2図は
第1図における各回路の記憶内容を示す図、第3図は印
刷文字の位置情報の定義を示す図、第4図は従来の印刷
文字の一例を示す図である。 2・・・フォント切り替え回路、3・・・フォント画像
情報メモリ、4・・・頁イメージ作成回路、5・・・縦
書     ・き/横書き判断回路、6・・・フォント
位置情報メモリ、7・・・位置付き文字情報合成回路、
9・・・印刷機構。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing the memory contents of each circuit in FIG. 1, FIG. 3 is a diagram showing the definition of position information of printed characters, and FIG. is a diagram showing an example of conventional printed characters. 2... Font switching circuit, 3... Font image information memory, 4... Page image creation circuit, 5... Vertical writing / horizontal writing judgment circuit, 6... Font position information memory, 7.・Character information synthesis circuit with position,
9...Printing mechanism.

Claims (1)

【特許請求の範囲】 印刷文字の書体を表わす第1の情報、印刷文字が縦書き
か横書きかを表わす第2の情報および印刷文字を表わす
第3の情報を受け、これら第1、第2、第3の情報に対
応した画像情報を発生する手段と、前記第2および第3
の情報を受け、印刷文字画像の原点に対する左端または
右端の画像までの位置関係を表わす第1の位置情報およ
び次の印刷文字画像の原点との位置関係を表わす第2の
位置情報を発生する手段とを有し、前記画像情報に対応
した文字を前記第1および第2の位置情報で指定された
印字位置に印刷するプリンタ装置において、 印刷文字の上下方向の基準位置を示すベースラインの方
向が縦方向か横方向かを示す第4の情報を受け、この第
4の情報と前記第2の情報とを比較し、ベースラインの
方向と第2の情報で示される印刷文字の方向が同一なら
ば横書き文字として判断し、異なるならば縦書き文字と
して判断する判断手段と、この判断手段の判断結果に応
じて前記第1および第2の位置情報を変更する変更手段
とを設けたことを特徴とするプリンタ装置。
[Scope of Claims] Receiving first information representing the font of printed characters, second information representing whether the printed characters are written vertically or horizontally, and third information representing the printed characters, means for generating image information corresponding to third information; and means for generating image information corresponding to third information;
means for receiving the information and generating first position information representing the positional relationship between the origin of the printed character image and the leftmost or rightmost image, and second positional information representing the positional relationship with the origin of the next printed character image. and a printer device that prints characters corresponding to the image information at printing positions specified by the first and second position information, wherein the direction of the baseline indicating the reference position in the vertical direction of the printed characters is Receive fourth information indicating whether the direction is vertical or horizontal, compare this fourth information with the second information, and if the direction of the baseline and the direction of the printed characters indicated by the second information are the same, A determining means for determining that the character is a horizontally written character, and a vertically writing character if different, and a changing means for changing the first and second position information in accordance with the determination result of the determining means. printer device.
JP59211055A 1984-10-08 1984-10-08 Printer Granted JPS6189060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59211055A JPS6189060A (en) 1984-10-08 1984-10-08 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59211055A JPS6189060A (en) 1984-10-08 1984-10-08 Printer

Publications (2)

Publication Number Publication Date
JPS6189060A true JPS6189060A (en) 1986-05-07
JPH0583382B2 JPH0583382B2 (en) 1993-11-25

Family

ID=16599640

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59211055A Granted JPS6189060A (en) 1984-10-08 1984-10-08 Printer

Country Status (1)

Country Link
JP (1) JPS6189060A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5074194A (en) * 1988-03-03 1991-12-24 Hitachi Construction Machinery Co., Ltd. Hydraulic driving method of and hydraulic driving apparatus for hydraulic machine
JP2009040409A (en) * 2008-09-08 2009-02-26 Iseki & Co Ltd Speed control unit for continuously variable transmission for working vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5074194A (en) * 1988-03-03 1991-12-24 Hitachi Construction Machinery Co., Ltd. Hydraulic driving method of and hydraulic driving apparatus for hydraulic machine
JP2009040409A (en) * 2008-09-08 2009-02-26 Iseki & Co Ltd Speed control unit for continuously variable transmission for working vehicle

Also Published As

Publication number Publication date
JPH0583382B2 (en) 1993-11-25

Similar Documents

Publication Publication Date Title
US6704116B1 (en) Method and font for representing Arabic characters, and articles utilizing them
JPS5924336A (en) Word processor
JPH031193A (en) Data converter
JPS6189060A (en) Printer
JPS6189061A (en) Printer
JPS58134327A (en) Japanese word processor
JPS6189059A (en) Printer
JPH08227422A (en) Character-graphic pattern conversion system and translation system
JPS581238A (en) Document forming device
KR890001157B1 (en) Printing control system for korean-characters in a dot matrix printer
JPH08153092A (en) Document processor
JPS61108562A (en) Letter pitch processing system
JP2621987B2 (en) Document processing device
JPH0440936Y2 (en)
Millar et al. Synthesis of the Devanagari orthography
JPS59231687A (en) Document processor
JPH02269389A (en) Automatic face converting system
JPH07256954A (en) Image-forming apparatus
JPH0883277A (en) Character conversion device
JPH06149813A (en) Thai character input and output device
JPS58137084A (en) Character processor
JPH07152737A (en) Document preparing device
JPH07210629A (en) Character recognition system
JPH0719258B2 (en) Information processing equipment
JPS61296388A (en) Rule deletion