JPH0764978A - Document preparing device capable of correcting character size error - Google Patents

Document preparing device capable of correcting character size error

Info

Publication number
JPH0764978A
JPH0764978A JP5214685A JP21468593A JPH0764978A JP H0764978 A JPH0764978 A JP H0764978A JP 5214685 A JP5214685 A JP 5214685A JP 21468593 A JP21468593 A JP 21468593A JP H0764978 A JPH0764978 A JP H0764978A
Authority
JP
Japan
Prior art keywords
character
processing
character size
input data
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5214685A
Other languages
Japanese (ja)
Inventor
Kiyoshi Ishizawa
潔 石沢
Sayumi Nagumo
さゆみ 南雲
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.)
NIIGATA NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Niigata Ltd
Original Assignee
NIIGATA NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Niigata 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 NIIGATA NIPPON DENKI SOFTWARE KK, NEC Corp, NEC Software Niigata Ltd filed Critical NIIGATA NIPPON DENKI SOFTWARE KK
Priority to JP5214685A priority Critical patent/JPH0764978A/en
Publication of JPH0764978A publication Critical patent/JPH0764978A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To provide a document preparing device capable of correcting the error due to the unit conversion when the input data unit system and the output data unit system are different. CONSTITUTION:The document preparing device 10 is provided with a line direction processing part 11 performing the line direction processing on input data 17 consisting of character data and a character size processing part 12 performing the character size processing on the input data 17. It is also provided with as position processing part 13 performing the display position and printing position processing on the input data 17, character size correction part 16 performing the character size correction processing on the input data 17, character code processing part 14 performing the character code processing on the input data 17, and unit conversion part 15 performing the unit conversion on the character size and position.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は文字寸法誤差補正可能の
文書作成機に関し、特にキーボード等から入力されるデ
ータを画面に表示またはプリンタで印字する文字の文字
寸法誤差補正可能の文書作成機に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document maker capable of correcting character size errors, and more particularly to a document maker capable of correcting character size errors of characters displayed on a screen or printed by a printer. .

【0002】[0002]

【従来の技術】従来、この種の文書作成機は、キーボー
ド等の入力装置から入力される文字データを入力データ
として記憶し、画面に表示する場合は画面表示用出力デ
ータに編集して表示し、プリントする場合にはプリンタ
用出力データに編集して出力する。記憶する入力データ
は、文字コード、位置および文字大きさの情報は必須で
ある。ここで、1行の連続する文字列の場合を考える
と、入力データの記憶方法として次の2通りが考えられ
る。
2. Description of the Related Art Conventionally, this type of document creator stores character data input from an input device such as a keyboard as input data, and when displaying it on a screen, edits it to output data for screen display and displays it. When printing, the output data for the printer is edited and output. The input data to be stored must have information on the character code, position and character size. Here, considering the case of a continuous character string in one line, the following two methods can be considered as a method of storing input data.

【0003】第一の方法は、一文字毎に文字コード、位
置および大きさを記憶する方法である。第二の方法は、
行方向(縦書き、横書き等)、文字大きさおよび先頭文
字の位置を記憶し、それらに変更がない限り、後は文字
コードのみを記憶する方法である。この方法の場合、画
面やプリンタに出力すると、文字の位置は一文字毎に行
方向に文字大きさ分自動的に更新される。文字数が多く
なると、第一の方法よりも第二の方法の方が、記憶する
データ量が少なく効率的なので、一般的に第二の方法が
使われる。
The first method is to store the character code, position and size for each character. The second method is
In this method, the line direction (vertical writing, horizontal writing, etc.), the character size, and the position of the first character are stored, and only the character code is stored thereafter unless they are changed. In the case of this method, when the character is output to the screen or the printer, the position of the character is automatically updated for each character in the line direction by the character size. When the number of characters is large, the second method is generally used because the second method stores less data and is more efficient than the first method.

【0004】例えば、図4の「123」という文字列を
第二の方法で記憶する場合の記憶データは、図6の表中
の入力データ17のようになる。ここで、記憶した入力
データと出力データとで位置や文字大きさ等を表す単位
系が異なる場合、例えば、入力データは全てミリメート
ルを単位として、画面用のデータはCRTのドットを単
位とする場合は、編集の中で単位変換が必要である。
For example, when the character string "123" in FIG. 4 is stored by the second method, the stored data is the input data 17 in the table of FIG. Here, when the stored input data and output data have different unit systems representing positions, character sizes, etc., for example, input data are all in millimeters, and screen data is in CRT dots. Requires unit conversion during editing.

【0005】図5は、従来の文書作成機の一例を表した
ブロック図である。図5を参照すると、この文書作成機
40は、文字データから成る入力データ17の各要素を
順番に読み取り、出力データ形式に変換後、出力データ
48として出力する。行方向処理部11は入力データ1
7の行方向処理を行ない、文字大きさ処理部12は入力
データ17の文字大きさ処理を行なう。また位置処理部
13は入力データ17の表示位置および印字位置処理を
行ない、文字コード処理部14は入力データ17の文字
コード処理を行なう。各各の処理部は、入力データ形式
を出力データ形式に変換する処理と、変換後のデータを
出力する処理とを行う。また、文字大きさ処理部12お
よび位置処理部13の出力データは、単位変換部45に
より各各のX、Yの値を単位変換される。
FIG. 5 is a block diagram showing an example of a conventional document creator. Referring to FIG. 5, the document creator 40 sequentially reads each element of the input data 17 composed of character data, converts it into an output data format, and outputs it as output data 48. The row direction processing unit 11 uses the input data 1
7, the character size processing unit 12 processes the character size of the input data 17. The position processing unit 13 performs display position and print position processing of the input data 17, and the character code processing unit 14 performs character code processing of the input data 17. Each processing unit performs a process of converting the input data format into an output data format and a process of outputting the converted data. Further, the output data of the character size processing unit 12 and the position processing unit 13 are unit-converted by the unit conversion unit 45 into respective X and Y values.

【0006】以上の方法で、図6の入力データ17をド
ット解像度80DPIの画面用出力データ48に変換し
たものが、図6の表中の出力データ48である。
The output data 48 in the table of FIG. 6 is obtained by converting the input data 17 of FIG. 6 into the screen output data 48 of the dot resolution of 80 DPI by the above method.

【0007】[0007]

【発明が解決しようとする課題】この従来の文書作成機
は、単位変換の際に生じる誤差を無視している。例え
ば、図6の表中の出力データ48のX,Y文字大きさ
は、正確には約31.4ドットであるが、四捨五入で3
1ドットとしている。このため、1文字につき約0.4
ドットの誤差が生じ、文字が増えるに従いこの誤差が累
積される。
This conventional document creator ignores the error that occurs during unit conversion. For example, the X and Y character size of the output data 48 in the table of FIG. 6 is about 31.4 dots to be exact, but it is rounded to 3
1 dot is used. Therefore, about 0.4 per character
A dot error occurs, and this error is accumulated as the number of characters increases.

【0008】[0008]

【課題を解決するための手段】本発明の文字寸法誤差補
正可能の文書作成機は、文字データから成る入力データ
の行方向処理を行なう行方向処理手段と、前記入力デー
タの文字大きさ処理を行なう文字大きさ処理手段と、前
記入力データの表示位置および印字位置処理を行なう位
置処理手段と、前記入力データの文字大きさ補正処理を
行なう文字大きさ補正手段と、前記入力データの文字コ
ード処理を行なう文字コード処理手段と、前記文字大き
さおよび前記位置の単位変換を行なう単位変換手段とを
備える。
A document creator capable of correcting a character size error according to the present invention is provided with a line direction processing means for performing a line direction processing of input data composed of character data, and a character size processing for the input data. Character size processing means for performing, position processing means for performing display position and print position processing of the input data, character size correction means for performing character size correction processing of the input data, and character code processing of the input data Character code processing means and unit conversion means for performing unit conversion of the character size and the position.

【0009】[0009]

【実施例】次に、本発明について図面を参照して説明す
る。本発明の一実施例をブロックで示す図1を参照する
と、この実施例の文書作成機10は、文字データからな
る入力データ17の行方向処理を行なう行方向処理部1
1と、入力データ17の文字大きさ処理を行なう文字大
きさ処理部12と、入力データ17の表示位置および印
字位置処理を行なう位置処理部13と、入力データ17
の文字大きさ補正処理を行なう文字大きさ補正部16
と、入力データ17の文字コード処理を行なう文字コー
ド処理部14と、文字大きさおよび位置の単位変換を行
なう単位変換部15とから構成されている。また、この
実施例の文書作成機10は、キーボード等の入力装置か
ら入力される文字データから成る入力データ17を、画
面に表示する場合は画面表示用出力データ18に編集し
て画面に出力し、プリントする場合にはプリンタ用出力
データ18に編集してプリンタに出力する。入力データ
17は、1行の連続した文字列の場合、行の方向(縦書
き、横書き等)、先頭文字の位置、文字大きさ、そして
これらに変更がない限り、後は文字コードのみである。
画面やプリンタに出力すると、文字位置は一文字毎に行
方向に文字大きさ分自動的に更新される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. Referring to FIG. 1, which shows a block diagram of an embodiment of the present invention, a document creator 10 of this embodiment performs a line-direction processing unit 1 for performing line-direction processing of input data 17 consisting of character data.
1, a character size processing unit 12 for processing the character size of the input data 17, a position processing unit 13 for processing the display position and print position of the input data 17, and the input data 17
Character size correction unit 16 for performing the character size correction process of
A character code processing unit 14 for performing character code processing of the input data 17, and a unit conversion unit 15 for unit conversion of character size and position. Further, the document creator 10 of this embodiment edits the input data 17 composed of character data input from an input device such as a keyboard into the output data 18 for screen display and outputs it on the screen. When printing, the printer output data 18 is edited and output to the printer. In the case of a continuous character string of one line, the input data 17 is only the character code after the line direction (vertical writing, horizontal writing, etc.), the position of the first character, the character size, and these are not changed. .
When output to the screen or printer, the character position is automatically updated line by line for each character by the size of the character.

【0010】図2は、文字大きさ補正部16の動作を示
す流れ図(a)と補足図(b)である。図2を図1に併
せて参照して、文字大きさ補正部16の動作を説明す
る。まず、点Aの座標を入力データ17の単位系で入手
する(ステップ21)。点Aは文字の位置を表わす。こ
の位置は、第一文字目ならば入力データそのままであ
り、第二文字目以降は行方向に入力データの文字大きさ
分の累積値である。次に、点Aの対角点Bの座標を入力
データの単位系で入手する(ステップ22)。点Bの座
標は、点Aの座標に入力データの文字大きさを加えた値
である。次に、単位変換部15は点Aと点Bの座標を出
力データの単位系に単位変換する(ステップ23)。次
に、補正文字大きさを点Aと点Bの出力データの単位系
での座標の差として計算する(ステップ24)。次に、
補正が必要かどうか判断する(ステップ25)。入力デ
ータの文字大きさを出力データの単位系に単位変換した
値と、ステップ24で計算した補正文字大きさが等しい
場合は、補正の必要がない。補正が必要な場合は出力デ
ータに補正文字大きさを出力する(ステップ26)。
FIG. 2 is a flow chart (a) and a supplementary chart (b) showing the operation of the character size correction unit 16. The operation of the character size correction unit 16 will be described with reference to FIG. 2 together with FIG. First, the coordinates of the point A are obtained in the unit system of the input data 17 (step 21). Point A represents the position of the character. This position is the input data as it is for the first character, and the second and subsequent characters are cumulative values for the character size of the input data in the row direction. Next, the coordinates of the diagonal point B of the point A are obtained in the unit system of the input data (step 22). The coordinates of the point B are values obtained by adding the character size of the input data to the coordinates of the point A. Next, the unit conversion unit 15 unit-converts the coordinates of the points A and B into a unit system of output data (step 23). Next, the corrected character size is calculated as the difference between the coordinates of the output data at points A and B in the unit system (step 24). next,
It is determined whether correction is necessary (step 25). If the value obtained by converting the character size of the input data into the unit system of the output data is equal to the corrected character size calculated in step 24, no correction is necessary. If correction is necessary, the corrected character size is output to the output data (step 26).

【0011】文字大きさ補正部16の処理が終わると、
文字コード処理部14で文字コードの出力を行う。そし
て、補正文字大きさが出力されていたら、補正前に戻す
ために、文字大きさ処理部12は、入力データの文字大
きさを処理し出力する。
When the processing of the character size correction unit 16 is completed,
The character code processing unit 14 outputs the character code. Then, if the corrected character size has been output, the character size processing unit 12 processes and outputs the character size of the input data in order to return it to the value before correction.

【0012】以上の方法で、図4の「123」という文
字列を編集した結果の出力データが図3に示されてい
る。図3において、「1」の文字大きさ31は補正が必
要無いので補正前の値である。次の「2」は補正が必要
なので、文字コードの前に補正文字大きさ33を出力す
る。そして、「3」は補正が必要無いので、補正前の文
字大きさ35を出力し、補正文字大きさは出力しない。
FIG. 3 shows output data as a result of editing the character string "123" of FIG. 4 by the above method. In FIG. 3, the character size 31 of "1" is a value before correction because correction is not necessary. Since the next "2" needs to be corrected, the corrected character size 33 is output before the character code. Since "3" does not require correction, the character size 35 before correction is output, and the corrected character size is not output.

【0013】[0013]

【発明の効果】以上説明したように、本発明によれば、
文字入力データの行方向処理と、文字大きさ処理と、表
示位置および印字位置処理と、文字大きさ補正処理と、
文字コード処理とを行なうことにより、入力データの単
位系と出力データの単体系とが異なる場合に、単位変換
による誤差を補正することができる。
As described above, according to the present invention,
Line direction processing of character input data, character size processing, display position and print position processing, character size correction processing,
By performing the character code processing, it is possible to correct the error due to the unit conversion when the unit system of the input data is different from the unit system of the output data.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】(a)この実施例の文字大きさ補正部の動作を
示す流れ図である。 (b)この実施例の文字大きさ補正部の動作を示す補足
図である。
FIG. 2A is a flowchart showing the operation of a character size correction unit of this embodiment. (B) It is a supplementary figure which shows operation | movement of the character size correction part of this Example.

【図3】この実施例の出力データの一例を示す。FIG. 3 shows an example of output data of this embodiment.

【図4】入力文字の一例を示す図である。FIG. 4 is a diagram showing an example of input characters.

【図5】従来例のブロック図である。FIG. 5 is a block diagram of a conventional example.

【図6】入力データと従来方式での出力データの一例を
示す図である。
FIG. 6 is a diagram showing an example of input data and output data in a conventional method.

【符号の説明】[Explanation of symbols]

10 文書作成機 11 行方向処理部 12 文字大きさ処理部 13 位置処理部 14 文字コード処理部 15 単位変換部 16 文字大きさ補正部 17 入力データ 18 出力データ 10 Document Creation Machine 11 Line Direction Processing Section 12 Character Size Processing Section 13 Position Processing Section 14 Character Code Processing Section 15 Unit Conversion Section 16 Character Size Correction Section 17 Input Data 18 Output Data

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 文字データから成る入力データの行方向
処理を行なう行方向処理手段と、前記入力データの文字
大きさ処理を行なう文字大きさ処理手段と、前記入力デ
ータの表示位置および印字位置処理を行なう位置処理手
段と、前記入力データの文字大きさ補正処理を行なう文
字大きさ補正手段と、前記入力データの文字コード処理
を行なう文字コード処理手段と、前記文字大きさおよび
前記位置の単位変換を行なう単位変換手段とを備えるこ
とを特徴とする文字寸法誤差補正可能の文書作成機。
1. A line direction processing means for performing line direction processing of input data consisting of character data, a character size processing means for performing character size processing of the input data, and a display position and print position processing of the input data. Position processing means, character size correction means for performing character size correction processing on the input data, character code processing means for performing character code processing on the input data, and unit conversion for the character size and the position. A document creation machine capable of correcting a character size error, comprising a unit conversion means for performing.
【請求項2】 文字入力データの行方向処理と、文字大
きさ処理と、表示位置および印字位置処理と、文字大き
さ補正処理と、文字コード処理とを行なう手段を備える
ことを特徴とする文書作成機における文字寸法誤差補正
方法。
2. A document comprising means for performing line direction processing of character input data, character size processing, display position and print position processing, character size correction processing, and character code processing. Character size error correction method in the making machine.
JP5214685A 1993-08-31 1993-08-31 Document preparing device capable of correcting character size error Pending JPH0764978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5214685A JPH0764978A (en) 1993-08-31 1993-08-31 Document preparing device capable of correcting character size error

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5214685A JPH0764978A (en) 1993-08-31 1993-08-31 Document preparing device capable of correcting character size error

Publications (1)

Publication Number Publication Date
JPH0764978A true JPH0764978A (en) 1995-03-10

Family

ID=16659895

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5214685A Pending JPH0764978A (en) 1993-08-31 1993-08-31 Document preparing device capable of correcting character size error

Country Status (1)

Country Link
JP (1) JPH0764978A (en)

Similar Documents

Publication Publication Date Title
JPS63205257A (en) Printing control system
JPH01174463A (en) Dot pattern correction method
JP2909273B2 (en) Outline font line width adjusting method and apparatus
JPH0764978A (en) Document preparing device capable of correcting character size error
JP2952915B2 (en) Dot pattern data generator
JP2618528B2 (en) Character drawing device, character output correction method, and character output device
JPH0747337B2 (en) output method
JPS63254074A (en) Label printer system
JPS6188291A (en) Character font distortion correction system
JP2675363B2 (en) Character processor
JP2738189B2 (en) Coordinate conversion method and coordinate conversion device
JPH07112731B2 (en) Character playback method
JPH08132684A (en) Braille block copy output system and braille block copy outputting method
JP2728089B2 (en) Bit data generator
JP3033731B2 (en) Ruled line processing device, ruled line processing method, and recording medium for recording program
JPS6211887A (en) Character pattern generation control system
JPH096863A (en) Method and system for document image generation
JPH07239845A (en) External character registering device
JPH05158757A (en) Dump output method
JPH07141336A (en) Character producing device
JPH01130184A (en) Encoding of character
JPS63242561A (en) Font reducing system
JPH06175637A (en) Method for generating character
JPH03246595A (en) Character pattern generating device
JPH04268600A (en) Document preparing device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990323