JP2881884B2 - Document creation device - Google Patents

Document creation device

Info

Publication number
JP2881884B2
JP2881884B2 JP1337116A JP33711689A JP2881884B2 JP 2881884 B2 JP2881884 B2 JP 2881884B2 JP 1337116 A JP1337116 A JP 1337116A JP 33711689 A JP33711689 A JP 33711689A JP 2881884 B2 JP2881884 B2 JP 2881884B2
Authority
JP
Japan
Prior art keywords
character
vector data
conversion
vector
enhancement
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
JP1337116A
Other languages
Japanese (ja)
Other versions
JPH03196187A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1337116A priority Critical patent/JP2881884B2/en
Publication of JPH03196187A publication Critical patent/JPH03196187A/en
Application granted granted Critical
Publication of JP2881884B2 publication Critical patent/JP2881884B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、日本語デスクトップパブリッシングシステ
ム(以下DTPという)や日本語ワードプロセッサ等の文
書作成装置に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document creation device such as a Japanese desktop publishing system (hereinafter referred to as DTP) or a Japanese word processor.

従来の技術 近年、DTP等において、少ない情報量で文字パターン
を表現し、文字のパターンをその輪郭線上の点の座標列
で表現し、拡大・縮小・回転・斜体等の変形を座標変換
を用いて容易に行うことのできるアウトラインフォント
が普及してきている。
2. Description of the Related Art In recent years, in DTP and the like, a character pattern is represented with a small amount of information, a character pattern is represented by a coordinate sequence of points on the contour line, and transformation such as enlargement, reduction, rotation, italic, etc. is performed using coordinate transformation. Outline fonts that can be performed easily and easily are becoming popular.

以下、従来の文書作成装置について説明する。 Hereinafter, a conventional document creation apparatus will be described.

第8図は、従来の文書作成装置の一例を示すもので、
81はアウトラインフォントのベクトルデータを記憶する
ベクトルデータ記憶部、82はアウトラインフォントのベ
クトルデータを文字のパターンをその文字を形成する全
てのドットで表現したドットマップフォント(以下ドッ
トマップデータという)のデータに変換するドットマッ
プデータ生成部、83はドットマップデータを重ね合わせ
ることにより強調文字を生成する強調文字生成部、84は
ドットマップデータを変換し、文字に拡大・縮小・回転
・斜体等の変換を施す第1文字変換部、85はアウトライ
ンフォントのベクトルデータに座標変換を施して、文字
に拡大・縮小・回転・斜体等の変換を施す第2文字変換
部、86はデータの入出力を制御する制御部、87は入力
部、88は出力部である。
FIG. 8 shows an example of a conventional document creation device.
81 is a vector data storage unit for storing outline font vector data, and 82 is data of a dot map font (hereinafter referred to as dot map data) expressing the vector data of the outline font with all the dots forming a character pattern forming the character. The dot map data generator that converts to dot, 83 is an emphasis character generator that generates emphasis characters by superimposing dot map data, and 84 converts the dot map data and converts them to characters such as enlargement, reduction, rotation, italics, etc. The first character conversion unit 85 performs coordinate conversion on vector data of the outline font, and the second character conversion unit 85 performs conversion such as enlargement / reduction / rotation / italics on characters, and 86 controls input / output of data. A control unit 87, an input unit 87, and an output unit 88.

以上のように構成された従来の文書作成装置につい
て、以下第9図に示すフローチャートに沿って、指定さ
れた文字が、拡大・縮小・回転・斜体等の変換を施さ
れ、強調文字として出力されるまでの動作を説明する。
In the conventional document creating apparatus configured as described above, the designated character is subjected to conversion such as enlargement / reduction / rotation / italicity, etc., according to the flowchart shown in FIG. The operation up to this point will be described.

まず、ステップ91で入力部87から文字コードが入力さ
れると、ステップ92で制御部86は入力されたコードを持
ったアウトラインフォントのベクトルデータをベクトル
データ記憶部81から得る。次に、ステップ93においてベ
クトルデータは第1文字変換部84で座標変換を施された
後、ステップ94においてドットマップ生成部82でドット
マップデータに変換される。それから、ステップ95にお
いて、ドットマップデータは強調文字生成部83で文字の
強調度合に合わせてずらして重ね合わされ、強調文字と
して出力部88へ出力される。
First, when a character code is input from the input unit 87 in step 91, the control unit 86 obtains vector data of an outline font having the input code from the vector data storage unit 81 in step 92. Next, in step 93, the vector data is subjected to coordinate conversion by the first character conversion unit 84, and then, in step 94, is converted to dot map data by the dot map generation unit 82. Then, in step 95, the dot map data is shifted and superimposed by the emphasized character generation unit 83 in accordance with the degree of character emphasis, and is output to the output unit 88 as emphasized characters.

強調文字として出力されている文字に、拡大・縮小・
回転・斜体等の文字変換を施す場合は、第1文字変換部
84でドット単位の処理を行うことによって文字変換され
た新たなドットマップデータが生成される。
Enlarged / reduced /
When performing character conversion such as rotation and italics, the first character conversion unit
By performing the processing in units of dots at 84, new dot map data converted into characters is generated.

発明が解決しようとする課題 しかしながら前記従来の構成では、強調文字を生成す
る際に、該当文字のドットマップデータを文字の強調度
合に合わせてずらして複数回重ね合わせなければなら
ず、処理時間の点で問題を有していた。また、強調文字
として出力されている文字に拡大・縮小・回転・斜体等
の変換を施す場合には、文字を構成するドット毎に変換
を施さなくてはならず、処理が複雑であった。
SUMMARY OF THE INVENTION However, in the above conventional configuration, when generating an emphasized character, the dot map data of the character must be shifted a plurality of times in accordance with the degree of emphasis of the character and overlapped a plurality of times. Had a problem in that respect. In addition, when performing conversion such as enlargement / reduction / rotation / italicization on a character output as an emphasized character, the conversion must be performed for each dot constituting the character, and the processing is complicated.

課題を解決するための手段 本発明は上記問題を解決するために 文字に拡大・縮小・回転・斜体等の変換を施す際、文
字パターンをその輪郭線上の点の座標列で表したベクト
ルデータに変換内容に応じた座標変換を施す文字変換手
段と、 文字を強調する際、強調幅を指定する強調幅指定手段
と、 前記ベクトルデータに前記強調幅に基づいた座標変換
を施し、強調後の文字の文字パターンをその輪郭線の屈
曲点の座標列で表した強調ベクトルデータを生成する強
調ベクトルデータ生成手段と、 前記強調ベクトルデータを記憶する強調ベクトルデー
タ記憶手段と を有する。
Means for Solving the Problems In order to solve the above problem, the present invention provides a method of converting a character pattern into vector data represented by a coordinate sequence of points on the contour line when performing conversion such as enlargement / reduction / rotation / italics. Character conversion means for performing coordinate conversion according to the conversion content, emphasis width designating means for specifying an emphasis width when emphasizing a character, and performing coordinate conversion based on the emphasis width on the vector data, thereby enhancing the character. There is provided an emphasis vector data generating means for generating emphasis vector data in which the character pattern is represented by a coordinate sequence of a bending point of the contour line, and an emphasis vector data storage means for storing the emphasis vector data.

作用 本発明は上記した構成により、文字に拡大・縮小・回
転・斜体等の変換を施し、強調して出力する際、文字パ
ターンを輪郭線の屈曲点の座標列で表したベクトルデー
タを、文字変換手段により文字変換後の文字パターンの
輪郭線を表したベクトルデータに変換した後、指定され
た強調幅に基づいて強調ベクトルデータが生成され、そ
の強調ベクトルデータをビットパターンのデータに変換
した後、出力する。また、一旦出力された文字に変換を
施す場合、強調ベクトルデータに座標変換を施した後、
ビットパターンのデータに変換して出力する。
Effect of the Invention With the above-described configuration, the present invention performs character-based conversion such as enlargement / reduction / rotation / italicization, and emphasizes and outputs the character data. After the conversion means converts the character pattern into vector data representing the outline of the character pattern after conversion, the enhancement vector data is generated based on the specified enhancement width, and the enhancement vector data is converted into bit pattern data. ,Output. In addition, when performing conversion on a character once output, after performing coordinate conversion on the emphasized vector data,
Convert to bit pattern data and output.

実施例 第1図は、本発明の一実施例における文書作成装置の
機能ブロック図である。
Embodiment FIG. 1 is a functional block diagram of a document creating apparatus according to an embodiment of the present invention.

第1図において、1はアウトラインフォントをベクト
ルデータとして記憶している第1ベクトルデータ記憶
部、2は文字を強調する際に、強調幅を指定する強調幅
指定部、3は指定された強調幅に応じてベクトルデータ
に座標変換を施し、文字強調後のアウトラインフォント
のベクトルデータを生成する強調ベクトルデータ生成
部、4は文字に拡大・縮小・回転・斜体等の文字変換を
施す際に、ベクトルデータおよび強調ベクトルデータ
に、変換内容に応じた座標変換を施す文字変換部、5は
文字変換のための座標変換を施されたベクトルデータお
よび強調ベクトルデータを一時記憶する第2ベクトルデ
ータ記憶部、6はベクトルデータおよび強調ベクトルデ
ータをドットマップデータに変換するドットマップ生成
部、7はデータの入出力を制御する制御部、8は入力
部、9は出力部である。
In FIG. 1, reference numeral 1 denotes a first vector data storage unit that stores an outline font as vector data, 2 denotes an emphasis width specifying unit that specifies an emphasis width when emphasizing a character, and 3 denotes a specified emphasis width. The coordinate vector conversion unit 4 performs a coordinate conversion on the vector data according to, and generates an outline font vector data after the character enhancement. The enhancement vector data generation unit 4 performs a character conversion such as enlargement / reduction / rotation / italicization on the character. A character conversion unit that performs coordinate conversion on the data and the emphasis vector data in accordance with the conversion content; 5 a second vector data storage unit that temporarily stores vector data and emphasis vector data that have been subjected to coordinate conversion for character conversion; Reference numeral 6 denotes a dot map generation unit that converts vector data and enhanced vector data into dot map data. Gosuru control unit, 8 input unit, 9 is an output unit.

以上のように構成された本実施例の文書作成装置につ
いて、以下、指定された文字が強調され、拡大・縮小・
回転・斜体等の変換を施された後、出力されるまでの動
作を、第2図に示すフローチャートに添って説明する。
In the document creating apparatus of the present embodiment configured as described above, the designated characters are emphasized, and
The operation performed after the conversion such as rotation and italics until output is described with reference to the flowchart shown in FIG.

まず、ステップ21で、出力させたい文字の文字コード
を入力部8より入力すると、ステップ22において、入力
された文字コードに対応するベクトルデータが読み出さ
れる。次に、ステップ23において強調ベクトル生成部3
は指定された文字強調幅に応じて、読み出されたベクト
ルデータを変換し強調ベクトルデータを生成する。以
下、強調ベクトル生成部3の動作を第3図に示すフロー
チャートに添って説明する。
First, in step 21, a character code of a character to be output is input from the input unit 8, and in step 22, vector data corresponding to the input character code is read. Next, in step 23, the enhancement vector generation unit 3
Converts the read vector data according to the designated character emphasis width to generate emphasis vector data. Hereinafter, the operation of the emphasis vector generation unit 3 will be described with reference to the flowchart shown in FIG.

ここで、第4図に示すように、平面上のA点からB点
へのベクトルa、B点からC点へのベクトルbにおい
て、ベクトルの外側といえばベクトルの進行方向へ向か
ってそのベクトルの作用線の左側、また、ベクトルの成
す角といえばベクトルa、ベクトルbの成すベクトルの
左側の角であることと定義する。
Here, as shown in FIG. 4, in the vector a from the point A to the point B and the vector b from the point B to the point C on the plane, outside the vector, The left side of the line of action and the angle formed by the vectors are defined as the left side corner of the vector formed by the vectors a and b.

今、座標列{p1,p2,・・・・,Pn}(nは自然数)で
表された文字パターンを強調幅dで強調するものとす
る。まず、ステップ31において座標をカウントしていく
座標カウンタiに1をセットする。次に、ステップ32
で、座標列中の座標数nとiの値を比較し、i<=nで
あれば、ステップ33へ処理は移行する。ステップ33で
は、piからp(i+1)へ向かうベクトルpi、p(i+
1)からp(i+2)へ向かうベクトルP(i+1)が
定義される。次に、ステップ34において、ベクトルPiと
ベクトルP(i+1)の成す角の大きさが、0度以上18
0度以下であるか、また、180度以上360度以下であるか
を判別する。判別の結果、前者の場合はステップ36へ、
また、後者の場合はステップ35へ処理は移行する。ステ
ップ35では第5図に示すように、ベクトルPiの外側に距
離dはなれたベクトルPiの平行線と、ベクトルP(i+
1)の外側に距離dはなれたベクトルP(i+1)の平
行線の交点を強調ベクトルデータの座標qmとして設定さ
れる。また、ステップ36では第6図に示すように、p
(i+1)を通りベクトルPiに垂直な直線上でベクトル
Piの外側にあり、p(i+1)からの距離dの点qmと、
p(i+1)を通りベクトルP(i+1)に垂直な直線
上でベクトルP(i+1)の外側にあり、p(i+1)
からの距離dの点q(m+1)を設定する。ステップ35
又はステップ36に処理が終了すると、ステップ37におい
て、座標カウンタの値が+1され、ふたたび処理は、ス
テップ32へ移行される。
Now, it is assumed that a character pattern represented by a coordinate sequence {p1, p2,..., Pn} (n is a natural number) is emphasized with an emphasis width d. First, at step 31, 1 is set to a coordinate counter i for counting coordinates. Next, step 32
Then, the number of coordinates n in the coordinate sequence is compared with the value of i. If i <= n, the process proceeds to step 33. In step 33, vectors pi and p (i +) from pi to p (i + 1)
A vector P (i + 1) from 1) to p (i + 2) is defined. Next, in step 34, the magnitude of the angle formed by the vector Pi and the vector P (i + 1) is 0 degree or more.
It is determined whether the angle is equal to or less than 0 degrees or equal to or more than 180 degrees and equal to or less than 360 degrees. As a result of the determination, in the case of the former, go to step 36,
In the latter case, the processing shifts to step 35. In step 35, as shown in FIG. 5, a parallel line of the vector Pi separated by a distance d outside the vector Pi and the vector P (i +
The intersection of the parallel lines of the vector P (i + 1) separated by a distance d outside of 1) is set as the coordinates qm of the emphasized vector data. In step 36, as shown in FIG.
Vector on a straight line passing through (i + 1) and perpendicular to vector Pi
A point qm outside Pi, at a distance d from p (i + 1),
outside the vector P (i + 1) on a straight line passing through p (i + 1) and perpendicular to the vector P (i + 1), p (i + 1)
Is set at a point q (m + 1) at a distance d from. Step 35
Alternatively, when the process ends in step 36, the value of the coordinate counter is incremented by 1 in step 37, and the process proceeds to step 32 again.

ステップ32からステップ37までの処理が、座標列{p
1,p2,・・・・,Pn}の全ての座標についてなされると、
強調ベクトルデータは第2ベクトルデータ記憶部5に記
憶され、強調ベクトル生成部3での処理は終了する。例
えば第7図に示すように、文字[L]のベクトルデータ
{p1,p2,・・・・,P6}を強調ベクトルデータに変換し
た場合、座標列{q1,q2,・・・・,q7}が得られる。
The processing from step 32 to step 37 is performed by the coordinate sequence {p
When done for all coordinates of 1, p2, ..., Pn},
The enhancement vector data is stored in the second vector data storage unit 5, and the processing in the enhancement vector generation unit 3 ends. For example, as shown in FIG. 7, when vector data {p1, p2,..., P6} of the character [L] is converted into emphasized vector data, a coordinate sequence {q1, q2,. } Is obtained.

次に、第2図において、ステップ24で強調ベクトルデ
ータは文字変換部4で拡大・縮小・回転・斜体等の指定
された内容の変換に応じた座標変換がなされ、第2ベク
トルデータ記憶部5に記憶される。それから、ステップ
25で、ドットマップ生成部6でドットマップデータに変
換された後、出力部9へ出力される。
Next, in FIG. 2, in step 24, the emphasized vector data is subjected to coordinate conversion in accordance with conversion of designated contents such as enlargement / reduction / rotation / italicization in the character conversion unit 4, and the second vector data storage unit 5 Is stored. Then, step
At 25, the data is converted into dot map data by the dot map generator 6, and then output to the output unit 9.

以上のように本実施例によれば、文字強調動作を座標
変換により行うため、文字強調の処理速度が向上する。
また、本実施例によれば、強調後の文字パターンをベク
トルデータとして記憶しておくため、強調文字の拡大・
縮小・回転・斜体等の文字変換が容易に行える。
As described above, according to the present embodiment, the character emphasizing operation is performed by the coordinate conversion, so that the processing speed of the character emphasis is improved.
Further, according to the present embodiment, the character pattern after emphasis is stored as vector data.
Character conversion such as reduction, rotation, and italics can be easily performed.

発明の効果 本発明は、文字強調後の文字パターンをその輪郭線上
の点の座標列で表し、強調文字出力後も前記座標列を記
憶しておくため、文字強調の処理速度が向上し、強調文
字出力後の文字変換も前記座標列に指定された内容の座
標変換を施すだけで容易に行うことができる。
According to the present invention, the character pattern after the character emphasis is represented by a coordinate sequence of points on the outline thereof, and the coordinate sequence is stored even after the emphasized character is output. The character conversion after the character output can be easily performed only by performing the coordinate conversion of the contents specified in the coordinate sequence.

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

第1図は本発明の実施例における文書処理装置の機能ブ
ロック図、第2図および第3図は前記文書処理装置の動
作を表すフローチャート、第4図は前記文書処理装置の
動作説明に用いるベクトル定義図、第5図および第6図
は強調ベクトルデータを生成する動作を説明する図、第
7図は実際に強調ベクトルデータを生成した場合の一例
を示す図、第8図は従来の文書作成装置の機能ブロック
図、第9図は従来の文書作成装置の動作を表すフローチ
ャートである。 1…第1ベクトル記憶部 2…強調幅指定部、3…強調ベクトル生成部 4…文字変換部、5…第2ベクトル記憶部 6…ドットマップ生成部、7…制御部 8…入力部、9…出力部
FIG. 1 is a functional block diagram of a document processing apparatus according to an embodiment of the present invention, FIGS. 2 and 3 are flowcharts showing the operation of the document processing apparatus, and FIG. 4 is a vector used to describe the operation of the document processing apparatus. Definition diagrams, FIGS. 5 and 6 are diagrams for explaining the operation for generating the enhancement vector data, FIG. 7 is a diagram showing an example of the case where the enhancement vector data is actually generated, and FIG. FIG. 9 is a functional block diagram of the apparatus, and FIG. 9 is a flowchart showing the operation of the conventional document creation apparatus. DESCRIPTION OF SYMBOLS 1 ... 1st vector storage part 2 ... Emphasis width designation part, 3 ... Emphasis vector generation part 4 ... Character conversion part, 5 ... Second vector storage part 6 ... Dot map generation part, 7 ... Control part 8 ... Input part, 9 … Output section

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】データを入力する入力手段と、文字パター
ンをその輪郭線上の点の座標列で表したベクトルデータ
を記憶する手段と、前記ベクトルデータを変換し、文字
パターンをその輪郭線上および輪郭線で囲まれた部分の
ドットで表したドットデータを生成する手段と、前記ド
ットデータを基に指定された文字を出力する出力手段と
を有する装置であって、 文字に拡大・縮小・回転・斜体等の変換を施す際、前記
ベクトルデータに変換内容に応じた座標変換を施す文字
変換手段と、 文字を強調する際、強調幅を指定する強調幅指定手段
と、 前記ベクトルデータに前記強調幅に基づいた座標変換を
施し、強調後の文字の文字パターンをその輪郭線上の点
の座標列で表した強調ベクトルデータを生成する強調ベ
クトルデータ生成手段と、 前記強調ベクトルデータを記憶する強調ベクトルデータ
記憶手段と を有することを特徴とする文書作成装置。
1. An input means for inputting data, a means for storing vector data representing a character pattern by a coordinate sequence of points on the contour line, and converting the vector data to convert the character pattern on the contour line and the contour. An apparatus comprising: means for generating dot data represented by dots in a portion surrounded by a line; and output means for outputting a character specified based on the dot data, wherein the character is enlarged, reduced, rotated, Character conversion means for performing coordinate conversion according to the content of conversion on the vector data when performing conversion such as italic; enhancement width designation means for designating an enhancement width when emphasizing characters; An enhancement vector data generating means for performing coordinate conversion based on the above, and generating enhancement vector data representing a character pattern of the enhanced character by a coordinate sequence of points on the outline thereof; A document creation device, comprising: enhancement vector data storage means for storing enhancement vector data.
JP1337116A 1989-12-26 1989-12-26 Document creation device Expired - Fee Related JP2881884B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1337116A JP2881884B2 (en) 1989-12-26 1989-12-26 Document creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1337116A JP2881884B2 (en) 1989-12-26 1989-12-26 Document creation device

Publications (2)

Publication Number Publication Date
JPH03196187A JPH03196187A (en) 1991-08-27
JP2881884B2 true JP2881884B2 (en) 1999-04-12

Family

ID=18305590

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1337116A Expired - Fee Related JP2881884B2 (en) 1989-12-26 1989-12-26 Document creation device

Country Status (1)

Country Link
JP (1) JP2881884B2 (en)

Also Published As

Publication number Publication date
JPH03196187A (en) 1991-08-27

Similar Documents

Publication Publication Date Title
US5870107A (en) Character and symbol pattern generator based on skeleton data including thickness calculation
JP3145509B2 (en) Character generation method and device
JP3037854B2 (en) Character generation method and device
JP3009525B2 (en) Vector image drawing equipment
JP2881884B2 (en) Document creation device
US5355448A (en) Method of generating dot signals corresponding to character pattern and the system therefor
JP2006227824A (en) Drawing recognition method and device
JP2004004302A (en) System for generating font by genetic algorithm
JPH0832471B2 (en) output method
JPS62211692A (en) Preparation system for character of varied size
JP3160957B2 (en) Document creation device
JP3082467B2 (en) Outline data processing device
JPH01191192A (en) High quality character generating device
JP3344538B2 (en) Character generator
JP2887263B2 (en) Character transformation device
JP2893836B2 (en) Document creation device and document creation method
JP2989604B2 (en) Pattern restoration method
JPS62211691A (en) Character synthesization system
JPS62212167A (en) Synthesized character forming system
JP3039214B2 (en) Data converter
JP3381326B2 (en) Outline font data coordinate normalization method and outline font data generation device
JP2603322B2 (en) Character processing apparatus and method
JP3254770B2 (en) Round character generator
JP2552556B2 (en) Outline font generation method
JP2861201B2 (en) Data converter

Legal Events

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