JP3486788B2 - String output device - Google Patents

String output device

Info

Publication number
JP3486788B2
JP3486788B2 JP33102694A JP33102694A JP3486788B2 JP 3486788 B2 JP3486788 B2 JP 3486788B2 JP 33102694 A JP33102694 A JP 33102694A JP 33102694 A JP33102694 A JP 33102694A JP 3486788 B2 JP3486788 B2 JP 3486788B2
Authority
JP
Japan
Prior art keywords
character
character string
graphic
characters
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
JP33102694A
Other languages
Japanese (ja)
Other versions
JPH08160936A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP33102694A priority Critical patent/JP3486788B2/en
Publication of JPH08160936A publication Critical patent/JPH08160936A/en
Application granted granted Critical
Publication of JP3486788B2 publication Critical patent/JP3486788B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】この発明は、複数の文字から
なる文字列を出力する文字列出力装置に関する。 【0002】 【従来の技術】従来、ワードプロセッサ等の文書処理装
置において、任意の文字列を強調出力する場合、反転、
回転、斜体等によって所望する文字列に修飾をかけて強
調する方法が知られているが、このようにして文字列を
強調する方法では、予め決められた形態でしか修飾する
ことができず、極めて自由度が低く、ユーザの要望に十
分応じきれないという問題があった。 【0003】 【発明が解決しようとする課題】この発明の課題は、出
力対象となる文字列をその文字高さがバランス良く、配
列形状上でもバランス良く配列できるようにすることで
ある。 【0004】 【課題を解決するための手段】この発明は、出力対象と
なる複数の文字からなる文字列を指定する文字列指定手
段と、上記文字列を配列させる曲線形状を指定する形状
指定手段と、上記曲線形状の長さ方向での長さと上記文
字列の文字数とに基づいて、当該曲線形状上で配列され
る各文字の文字高さを決定し、その決定された文字高さ
に応じた文字枠を上記曲線形状上において上記文字数分
生成する生成手段と、上記曲線形状上で生成された各文
字枠内に上記各文字を配置出力する出力手段と、を具備
したことを特徴とする。 【0005】 【0006】 【実施例】以下、図1〜図7を参照して一実施例を説明
する。図1はワードプロセッサにおける文字列出力装置
の全体構成を示したブロック図である。主制御部1は各
種プログラムにしたがってこの文字列出力装置の全体動
作を制御する中央演算処理装置であり、キー操作部2か
ら文字列データや図形データが入力されると、主制御部
1はそれを取り込んで表示制御部3に与え、表示装置4
から表示出力させたり、文書メモリ5を構成する図形メ
モリ5−1に図形データを格納したり、テキストメモリ
5−3に文字列データを格納する。また、主制御部1は
キー操作部2から印刷指令が入力されると、文書メモリ
5の内容を印字制御部6に与え、印刷装置7から印字出
力させ、また、キー操作部2から保存指令が入力される
と、文書メモリ5の内容を外部記憶制御部8に与え、外
部記憶装置9に登録保存させる。また、主制御部1は外
部記憶装置9から文字列データや図形データを外部記憶
制御部8を介して取り込み、文書メモリ5に格納する。 【0007】文書メモリ5は図形メモリ5−1、ハイパ
ーアウトラインメモリ5−2、テキストメモリ5−3を
有する構成で、図形メモリ5−1は図形情報としてその
図形種や図形を表現する座標列データを記憶するもの
で、例えば矩形図形、円形図形、星形図形等を記憶す
る。ハイパーアウトラインメモリ5−2は2本の線で挟
まれた領域を文字配置領域とし、この文字配置領域内に
その線分に沿って配置される文字列を図形要素+文字列
というデータ構造、つまり、図形要素である文字配置領
域を定義する配置情報が付加された文字列を記憶する本
実施例固有のメモリで、その内容は文字図形情報変換部
10によって生成される。なお、文字配置領域を定義す
る配置情報は図形と同一の座標系によって表現される。
テキストメモリ5−3は文字列データを記憶するもの
で、主制御部1は出力対象として指定された文字列デー
タをテキストメモリ5−3から読み出す。 【0008】文字図形情報変換部10は文字列格納部1
0−1、図形情報格納部10−2、配置情報作成部10
−3を有し、図形メモリ5−1、テキストメモリ5−3
の内容に基づいて上述した配置情報付き文字列を生成す
るもので、キー操作部2から出力対象図形が指定される
と、主制御部1は指定された図形情報を文字図形情報変
換部10内の図形情報格納部10−2にセットし、また
キー操作部2から出力対象の文字列が指定されると、主
制御部1は指定された文字列を文字図形情報変換部10
内の文字列格納部10−1にセットする。 【0009】配置情報作成部10−3はこの文字列格納
部10−1、図形情報格納部10−2内の文字列と図形
情報とに基づいて配置情報付き文字列を生成するが、そ
の際、図形情報解析部10−3A、文字情報解析部10
−3Bによって図形情報や文字列の解析が行われ、それ
に基づいて図形/配置変換部10−3Cは図形情報を配
置情報に変換する。これによって得られた配置情報付き
文字列はデータバッファ10−4に一時記憶されたの
ち、ハイパーアウトラインメモリ5−2に書き込まれ
る。 【0010】ここで、図2、図3を参照して本実施例の
前提となる技術、つまり、文字列を任意の場所に配置す
る技術の動作原理について簡単に説明しておく。任意の
場所に配置される文字列は図2に示すようなデータ構造
を成している。すなわち、この文字列のデータ構造は上
述した様に図形要素+文字列という形を成し、図形要素
を定義する「パターンコード」は2本の線がどのような
線分の組み合せによって構成されているかを示すもの
で、パターンコード「0」は2本の線が「直線+直線」
の組み合せから文字配置領域が構成されていることを示
している。また、パターンコード「1」は「直線+ベジ
ェール曲線」の組み合せ、「2」は「ベジェール曲線+
ベジェール曲線」の組み合せ、「3」は「円弧+円弧」
の組み合せから文字配置領域が構成されていることを示
している。また「桁ピッチ」は文字幅をn/32で表わ
したnの値で、文字間ピッチを定義する。なお、「3
2」は文字幅の最大値を示している。また、「座標デー
タ」は文字配置領域を定義する座標列で、直線部分につ
いてはその開始点と終了点、ベジェール曲線部分につい
ては開始点、制御点、終了点、円弧部分については中
心、開始角度、終了角度、半径から成る。「文字列デー
タ」は文字配置領域内にその線分に沿って配置される文
字列で、その文字数と共に文字列データが定義されてい
る。 【0011】このように構成された配置情報付き文字列
データは図形情報と配置情報とが同一座標系であるため
に、文字列を図形に追従させることができるものであ
り、この配置情報付き文字列データに基づいて文字列を
配置出力すると図3に示す如くとなる。つまり、図3
(A)はパターンコードが「0」の場合の配置例を示
し、文字配置領域を構成する上の直線は開始点(1)、
終了点(1)によって定義され、また、下の線は開始点
(2)、終了点(2)によって定義されたもので、両方
の直線は平行せず、その間隔は開始点から終了点に向か
って徐々に広くなっている。このような2本の直線によ
って挟まれて成る文字配置領域内に文字列を配置出力す
る際に、文字配置領域は文字列の文字数によって均等分
割され、その文字数分の文字枠内に対応する文字が配置
される。これによって文字列の先頭から徐々に文字の大
きさが大きくなり、自然な奥行き感を持った文字列が得
られる。 【0012】図3(B)はパターンコードが「2」の場
合の配置例、図3(C)はパターンコードが「3」の場
合の配置例であり、文字列はベジェール曲線や円弧に沿
って配置され、変化に富んだ文字列が得られる。なお、
図3(B)において、2本のベジェール曲線を描画する
のに開始点(1)、(2)、制御点(1a)、(1
b)、(2a)、(2b)、終了点(1)、(2)を必
要とし、図3(C)において、2本の円弧を描画するの
に半径(1)、(2)、中心座標、開始角度、終了角度
を必要とする。 【0013】このように本実施例の前提となる技術は2
本の直線あるいは曲線を定義しておけば、その間に文字
が収まる形で文字列が配置される技術であり、直線の場
合には2つの開始点と終了点とによって文字配置領域が
特定され、その直線を文字数で均等分割して1文字を収
める文字枠を決定し、その中に文字を収める。なお、2
本の直線がベジェール曲線であっても、円弧であっても
同様に応用可能なものである。 【0014】ここで、本実施例においては、文字配置領
域を特定するために、予め2本の線分を入力指定する方
法を採用するのではなく、予め用意されている図形を図
形メモリ5−1から読み出し、その座標列から文字配置
領域を定義する配置情報を自動生成して出力対象文字列
に付加することにより、配置情報付き文字列を得るよう
にしたものである。つまり、任意の図形を指定するだけ
で、その図形を構成する線分に沿って文字列を自動配置
するようにしたものであり、図4は指定図形の線分に沿
って文字列が配置された状態を具体的に示し、また、図
5は本実施例における配置情報付き文字列のデータ構造
を示した図である。 【0015】そこで、本実施例では図形メモリ5−1内
に既に格納されている図形情報(座標列データ等)を取
り込み、これを文字配置領域を構成する1本の線分とし
てそのまま配置情報として複写すれば、文字列を挟む上
部あるいは下部の線は図形を構成する線分と一致するこ
とになる。図4はいずれも図形を構成する線分を文字列
の上部に位置する線として複写した場合を示し、円は図
形情報をそのまま複写し、文字の高さを考慮して下部の
線を自動生成する。また、指定図形が矩形の場合は、対
角座標によって図形が定義されているので、これをその
まま複写することができないため、矩形をこの対角座標
に基づいて4本の直線に分解し、4本の線に対向する下
部の線を自動生成する。 【0016】このように文字列を配置する際、文字図形
情報変換部10は図形の座標情報を複写等のために取り
込むだけではなく、文字を挟むためのもう1本の線を発
生する機能と、図形を構成する各線分毎に文字列を分割
配置する機能を有し、これらの機能に基づいて図5
(B)に示すような配置情報付き文字列データが生成さ
れてハイパーアウトラインメモリ5−2にセットされ
る。 【0017】次に、本実施例の動作を図6に示すフロー
チャートにしたがって説明する。図6は図5に示す配置
情報付き文字列データを生成する過程の一例を示したフ
ローチャートである。ここで、図4に示す配置例を参照
して図6に示すフローチャートを具体的に説明する。い
ま、図形メモリ5−1内に格納されている任意の図形を
キー操作部2から指定すると共に、テキストメモリ5−
3内に格納されている任意の文字列を出力対象文字列と
して指定しておく。ここで、キー操作部2から図形に文
字列を沿わせる処理の実行命令が入力されると、主制御
部1は出力対象として指定された図形情報を図形メモリ
5−1から読み出して文字図形情報変換部10内の図形
情報格納部10−2にセットすると共に、出力対象とし
て指定された文字列をテキストメモリ5−3から読み出
して文字図形情報変換部10内の文字列格納部10−1
にセットする。この状態において、主制御部1は文字図
形情報変換部10を起動させる。すると、文字図形情報
変換部10は図6に示すフローチャートにしたがって動
作する。なお、図6は文字図形情報変換部10の動作の
一例を示している。 【0018】先ず、配置情報作成部10−3は図形情報
格納部10−2をアクセスし、その図形情報内に含まれ
ているパターンコードにしたがって図形種を判別する
(ステップS1)。ここで、各図形種に共通する処理と
して配置する文字列の高さを決定する処理が行われる。
この場合、基本的には図形を構成する線分の長さを文字
数で割った値が文字の高さとして決定され、これによっ
て1文字を収める文字枠の形は正方形に近いものとな
る。ただし、矩形の場合には4隅での文字の重なり合い
を防ぐために、文字数に「8」を加える。 【0019】すなわち、図形種が矩形の場合にはステッ
プS2に進み、図形の座標列情報(対角座標)から矩形
を構成する4辺の直線の長さを求める。そして、配置情
報作成部10−3は文字数に「8」を加算し、4辺の長
さをこの文字数+8の値で割ることにより文字の高さを
決定する(ステップS3)。このように文字の高さを決
定するのは文字列を挟むのにもう1本の線を生成するた
めである。なお、矩形のように対角座標によって定義さ
れた図形ではなく、連続直線によって定義された多角形
等においてもその隅部での文字の重なり合いを防ぐため
の処理を行う必要がある。また、矩形等のように文字の
重なりを考慮する図形においては、文字列を各辺に応じ
て分割する処理が必要となる。 【0020】ここで、矩形の場合にはステップS4に進
み、配置情報作成部10−3は文字数に8を加算し、そ
の文字数を矩形の線分に沿わせるべき文字数とし、各辺
の長さによって全体の文字数を分割する。このとき、相
対向する辺に沿う文字列の文字数が等しくならない場合
など不都合が生じたときには、全体の文字数を1文字づ
つ増やしてゆき(増やした部分が空白となる)、相対向
する辺の文字数を合わせるようにすればよい。いま、図
4(A)に示す例では長辺が8文字、短辺が6文字と決
定された場合を示している。次にステップS5に進み、
配置情報作成部10−3は矩形の4辺に対応付けて分割
した各文字列の両端に空白コードをそれぞれ付加する。
これは各辺の両側での文字の重なり合いを防ぐためであ
り、図4(A)において、その第1辺に沿う文字列とし
て「□矩形の内側に□」(□は空白を表わす)が当ては
められることになる。また、第2辺に沿う文字列は「□
文字列を□」となり、第3辺に沿う文字列は「□沿わせ
る場合□」となる。 【0021】次に、矩形を構成する4辺の直線に対応し
てその開始点(1)、終了点(2)を生成すると共に
(ステップS6)、この4辺の直線と平行し、矩形の内
側に位置するもう1本の線を生成するために、ステップ
S3で求めた文字の高さに基づいて矩形の4辺の開始点
と終了点を文字の高さ分平行移動させた座標位置をもう
1本の線の開始点(2)、終了点(2)とする(ステッ
プS7)。そして、配置情報作成部10−3は矩形の4
辺を構成する開始点(1)、終了点(1)と、これらに
平行する線の開始点(2)、終了点(2)、および各辺
に対応して割り当てられる各文字列等を文字図形情報変
換部10内のデータバッファ10−4に格納する(ステ
ップS16)。 【0022】すると、主制御部1はこのデータバッファ
10−4の内容を文書メモリ5に書き込む際に、配置情
報付き文字列であることを示す識別子を付加してハイパ
ーアウトラインメモリ5−2に格納する。図5は図4
(A)に示す具体例に対応したハイパーアウトラインメ
モリ5−2内のデータ構造を示し、図5(A)は図形情
報として既に円と矩形の情報が図形メモリ5−1に格納
されている状態を示し、また図5(B)は図形情報とし
て矩形および円を指定することによって生成されたハイ
パーアウトラインメモリ5−2内の配置情報付き文字列
を示している。この場合、ハイパーアウトラインメモリ
5−2内には配置情報付き文字列識別子としてそれぞれ
「1」がセットされる。ここで、矩形の場合、パターン
コードは「直線+直線」を示す「0」がセットされる。
また矩形の上辺を構成する座標データは開始点が「0、
0」、終了点が「16.0」となり、文字の高さを考慮
して生成された上辺に平行する線の開始点は「0、
2」、終了点は「16、2」となる。そして、両端に空
白が付加された文字列データ「□矩形の内側に□」が矩
形の上辺に対応付けられてセットされる。同様に、他の
3辺に対応してそれぞれパターンコード、座標データ、
文字列データがハイパーアウトラインメモリ5−2にセ
ットされる。このとき、最後の1辺は上述した配置文字
数の増加によって文字数よりも格納場所(文字枠)の数
が多くなる場合があるが、このような場合には増加させ
た文字数分の空白コードを文字列の最後に付加するよう
にしている。 【0023】一方、図形種が円系の場合にはステップS
8〜S11、S16の処理が行われる。すなわち、配置
情報作成部10−3は円周(円弧)の全体の長さを求め
(ステップS8)、この長さを文字数で割ることにより
文字の高さを決定する(ステップS9)。そして、図形
情報の座標列データ、つまり中心座標、開始および終了
角度を文字配置領域を構成する上部の曲線としてそのま
まコピーし(ステップS10)、また半径は半径(1)
としてそのままコピーし、半径(2)は半径(1)から
文字の高さを引いた値として円系図形の内側に沿うもう
1本の曲線、つまり、文字配置領域を構成する下部の曲
線として生成する(ステップS11)。そして、これら
の座標列データをデータバッファ10−4内に文字列と
共に格納する(ステップS16)。図4(B)は図形情
報として円を指定した場合で、円の内側にその線分に沿
って文字列が均等に配置出力された状態を示している。
なお、円の場合、文字列の文字数としては7文字以上を
条件とすることによってバランスの取れた文字列配置と
なる。 【0024】また、図形種がベジェール曲線などの場合
にはステップS12〜S16の処理が行われる。すなわ
ち、配置情報作成部10−3は図形の曲線に沿わせる長
さを求めると共に(ステップS12)、この長さを文字
数で割ることにより文字の高さを決定する(ステップS
13)。そして、配置情報作成部10−3は図形を構成
するパラメータを文字配置領域を構成する上部の曲線と
してそのままコピーし(ステップS14)、また、この
曲線を文字の高さ分平行移動したものとして文字配置領
域を構成する下部の曲線を生成する(ステップS1
5)。そして、これらの座標列データをデータバッファ
10−4内に文字列と共に格納する(ステップS1
6)。 【0025】これによって文字図形情報変換部10の動
作が終了すると、主制御部1は文字図形情報変換部10
内のデータバッファ10−4から配置情報付き文字列を
取り込んでハイパーアウトラインメモリ5−2に格納す
る。このハイパーアウトラインメモリ5−2の内容はそ
の出力指令に応答して読み出され、その文字列は図形を
構成する線分に沿って配置出力される。 【0026】なお、上述の図4、図6は図形を構成する
線分に文字列の上部を沿わせる場合を示したが、文字列
の上部に沿わせるか、下部に沿わせるかはユーザが任意
に選択可能であり、その選択をキー操作部2から指示す
ると、それに応じた処理が行われる。図7は図形を構成
する線分に文字列の下部を沿わせた場合の具体例を示し
ている。ここで、図7(A)に示すように直線やベジェ
ール曲線をアンダーラインとして予め入力しておくと、
図7(B)に示すようにそれに文字列を沿わせたアンダ
ーライン付きの文字列が得られる。この場合においても
上述と同様の処理によって実現可能である。 【0027】以上のように本実施例においては、予め用
意されている図形を単に指定するだけで、当該図形を構
成する各線分毎にその線分と同一形状の文字配置領域を
定義する配置情報を生成し、この配置情報を出力対象文
字列に付加するようにしたから、この図形を構成する線
分に沿って文字列を配置出力することができる。この場
合、配置情報付き文字列は図形情報と配置情報とが同一
座標系であるために、文字列を図形に追従させることが
できる。また、文字数と図形を構成する線分の長さとに
基づいて文字の高さが決定されるので、文字数が多けれ
ば文字サイズは小さくなり、文字数が少なければ、文字
サイズは大きくなる。更に、矩形等のように直線が折り
曲がる図形の場合には、その折り曲がり部分での文字の
重なり合いを防止することができると共に、各辺にバラ
ンス良く文字列を分割配置することができる。また、図
形を構成する線分に文字列の上部を沿わせるか、下部を
沿わせるかを任意に選択することができる。ここで、下
部を沿わせることを選択した場合、アンダーラインとな
る線を図形情報として入力しておけば、変化に富んだア
ンダーライン付き文字列を得ることができる。 【0028】なお、上記実施例は図形と共にその線分に
沿って文字列を配置出力するようにしたが、図形を出力
せずに単に文字列だけを出力するようにしてもよい。ま
た、上記実施例は矩形や円の線分に沿ってその内側に文
字列を配置する場合を示したが、例えば、矩形の内に更
に小さな矩形や円が存在している場合、外側の図形と内
側の図形にその線分に沿って文字列を配置するようにし
てもよい。 【0029】 【発明の効果】本発明によれば、文字列を配列させるた
めの曲線形状の指定により、その曲線形状の長さ方向で
の長さと上記文字列の文字数とに基づいて当該曲線形状
上で配列される各文字の文字高さを決定し、その決定さ
れた文字高さに応じた文字枠を上記曲線形状上に上記文
字数分自動生成してその各文字枠内に上記各文字を配置
出力するようにしたので、指定された曲線形状上で、そ
の曲線形状の長さと文字列の文字数とに応じて決まる文
字高さで当該文字列の各文字をバランス良く出力するこ
とができ、しかも上記指定の曲線形状上ではその曲線形
状全体にわたって上記文字列をバランスよく配列させる
ことができる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string output device for outputting a character string composed of a plurality of characters. 2. Description of the Related Art Conventionally, in a document processing apparatus such as a word processor, when an arbitrary character string is emphasized and output, inversion,
A method of emphasizing a desired character string by rotation, italic, or the like is known, but in the method of emphasizing a character string in this way, the character string can be modified only in a predetermined form. There is a problem that the degree of freedom is extremely low and the user cannot fully meet the demands. An object of the present invention is to make it possible to arrange a character string to be output with a well-balanced character height and a well-balanced arrangement shape. [0004] The present invention provides a character string designating means for designating a character string composed of a plurality of characters to be output, and a shape designating means for designating a curve shape in which the character strings are arranged. And, based on the length in the length direction of the curved shape and the number of characters of the character string, determine the character height of each character arranged on the curved shape, according to the determined character height Generating means for generating the same number of character frames on the curved shape as the number of characters, and output means for arranging and outputting each of the characters in each character frame generated on the curved shape. . An embodiment will be described below with reference to FIGS. 1 to 7. FIG. 1 is a block diagram showing an overall configuration of a character string output device in a word processor. The main control unit 1 is a central processing unit that controls the overall operation of the character string output device according to various programs. When character string data or graphic data is input from the key operation unit 2, the main control unit 1 Is given to the display control unit 3 and the display device 4
, The graphic data is stored in the graphic memory 5-1 constituting the document memory 5, and the character string data is stored in the text memory 5-3. When a print command is input from the key operation unit 2, the main control unit 1 gives the contents of the document memory 5 to the print control unit 6, prints out the data from the printing device 7, and stores a print command from the key operation unit 2. Is input, the contents of the document memory 5 are given to the external storage control unit 8 and registered and stored in the external storage device 9. Further, the main control unit 1 fetches character string data and graphic data from the external storage device 9 via the external storage control unit 8 and stores the data in the document memory 5. The document memory 5 includes a graphic memory 5-1, a hyper-outline memory 5-2, and a text memory 5-3. The graphic memory 5-1 stores, as graphic information, coordinate sequence data representing the graphic type and graphic. And stores, for example, a rectangular figure, a circular figure, a star figure, and the like. The hyper outline memory 5-2 sets a region sandwiched between two lines as a character arrangement region, and a character structure arranged along the line segment in the character arrangement region has a data structure of a graphic element and a character string. This is a memory unique to the present embodiment for storing a character string to which arrangement information defining a character arrangement area as a graphic element is added, and its contents are generated by the character / graphic information conversion unit 10. The arrangement information defining the character arrangement area is represented by the same coordinate system as the graphic.
The text memory 5-3 stores character string data, and the main control unit 1 reads character string data specified as an output target from the text memory 5-3. [0008] The character / graphic information conversion unit 10 includes a character string storage unit 1
0-1, graphic information storage unit 10-2, arrangement information creation unit 10
-3, a graphic memory 5-1 and a text memory 5-3.
When the output target graphic is specified by the key operation unit 2, the main control unit 1 converts the specified graphic information into the character / graphic information conversion unit 10. When the character string to be output is designated by the key operation unit 2, the main control unit 1 converts the designated character string into the character / graphic information conversion unit 10-2.
Is set in the character string storage unit 10-1. The arrangement information creating section 10-3 generates a character string with arrangement information based on the character strings in the character string storage section 10-1 and the graphic information storage section 10-2 and the graphic information. , Graphic information analysis unit 10-3A, character information analysis unit 10
-3B analyzes the graphic information and the character string, and the graphic / layout conversion unit 10-3C converts the graphic information into the layout information based on the analysis. The character string with the arrangement information thus obtained is temporarily stored in the data buffer 10-4, and then written into the hyper outline memory 5-2. Referring to FIGS. 2 and 3, a brief description will be given of the operation principle of the technology which is the premise of the present embodiment, that is, the technology of arranging a character string at an arbitrary position. A character string arranged at an arbitrary place has a data structure as shown in FIG. That is, the data structure of this character string has the form of a graphic element and a character string as described above, and the "pattern code" that defines the graphic element is composed of a combination of two line segments. The pattern code "0" indicates that two lines are "straight line + straight line"
Indicates that the character arrangement area is constituted by the combination of. The pattern code “1” is a combination of “straight line + Bézier curve”, and “2” is a combination of “Bézier curve +
"Bézier curve" combination, "3" is "arc + arc"
Indicates that the character arrangement area is constituted by the combination of. The "digit pitch" is a value of n representing a character width by n / 32, and defines a character pitch. Note that "3
"2" indicates the maximum value of the character width. The “coordinate data” is a coordinate sequence that defines a character arrangement area. The start and end points of a straight line portion, the start point, the control point, the end point of a Bezier curve portion, and the center and start angle of an arc portion. , End angle and radius. “Character string data” is a character string arranged along the line segment in the character arrangement area, and character string data is defined together with the number of characters. In the character string data with arrangement information configured as described above, since the graphic information and the arrangement information have the same coordinate system, the character string can follow the graphic. When a character string is arranged and output based on the column data, the result is as shown in FIG. That is, FIG.
(A) shows an example of arrangement when the pattern code is “0”, and the upper straight line forming the character arrangement area is the starting point (1),
The lower line is defined by the end point (1), and the lower line is defined by the start point (2) and the end point (2). Both straight lines are not parallel and the interval is from the start point to the end point. It is getting wider gradually. When arranging and outputting a character string in such a character arrangement area sandwiched by two straight lines, the character arrangement area is equally divided according to the number of characters of the character string, and the characters corresponding to the number of characters in the character frame. Is arranged. Thus, the size of the character gradually increases from the beginning of the character string, and a character string having a natural sense of depth can be obtained. FIG. 3B shows an example of the arrangement when the pattern code is "2", and FIG. 3C shows an example of the arrangement when the pattern code is "3". The character string follows a Bezier curve or an arc. To obtain a variety of character strings. In addition,
In FIG. 3B, starting points (1) and (2), control points (1a) and (1) are used to draw two Bezier curves.
b), (2a), (2b), end points (1), and (2) are required, and in FIG. 3C, radii (1), (2), and center are used to draw two arcs. Requires coordinates, start and end angles. As described above, the technology which is the premise of this embodiment is 2
If a straight line or curve is defined, the character string is arranged so that the characters fit in between. In the case of a straight line, the character arrangement area is specified by two start points and end points, The straight line is equally divided by the number of characters to determine a character frame in which one character is stored, and the character is stored therein. In addition, 2
Whether the straight line is a Bezier curve or a circular arc, the present invention can be similarly applied. In this embodiment, in order to specify a character arrangement area, a method of inputting and designating two line segments in advance is not adopted, but a previously prepared graphic is stored in a graphic memory 5-. 1, a character string with arrangement information is obtained by automatically generating arrangement information defining a character arrangement area from the coordinate string and adding it to the output target character string. In other words, by simply designating an arbitrary figure, a character string is automatically arranged along the line segments constituting the figure. FIG. 4 shows a character string arranged along the line segment of the designated figure. FIG. 5 is a diagram showing a data structure of a character string with arrangement information in the present embodiment. Therefore, in this embodiment, graphic information (coordinate string data and the like) already stored in the graphic memory 5-1 is fetched, and this is directly used as layout information as one line segment constituting a character layout area. If copied, the upper or lower line sandwiching the character string will coincide with the line segments that make up the figure. FIG. 4 shows a case where a line segment constituting a figure is copied as a line located at the upper part of a character string. For a circle, the figure information is copied as it is, and a lower line is automatically generated in consideration of the character height. I do. When the designated figure is a rectangle, the figure is defined by diagonal coordinates, and cannot be copied as it is. Therefore, the rectangle is decomposed into four straight lines based on the diagonal coordinates and Automatically generate the lower line opposite the book line. When arranging a character string in this manner, the character / graphic information conversion unit 10 not only captures the coordinate information of the graphic for copying or the like, but also has a function of generating another line for sandwiching the character. 5 has a function of dividing and arranging a character string for each line segment constituting a figure, and FIG.
Character string data with arrangement information as shown in (B) is generated and set in the hyper outline memory 5-2. Next, the operation of this embodiment will be described with reference to the flowchart shown in FIG. FIG. 6 is a flowchart showing an example of a process of generating the character string data with the arrangement information shown in FIG. Here, the flowchart shown in FIG. 6 will be specifically described with reference to the arrangement example shown in FIG. Now, an arbitrary figure stored in the figure memory 5-1 is designated from the key operation unit 2, and the text memory 5-
3 is designated as an output target character string. Here, when an execution instruction of processing for causing a character string to follow a graphic is input from the key operation unit 2, the main control unit 1 reads graphic information designated as an output target from the graphic memory 5-1 and reads the character graphic information. The character string specified as the output target is set from the text memory 5-3 while being set in the graphic information storage unit 10-2 in the conversion unit 10, and the character string storage unit 10-1 in the character / graphic information conversion unit 10 is read.
Set to. In this state, the main controller 1 activates the character / graphic information converter 10. Then, the character / graphic information converter 10 operates according to the flowchart shown in FIG. FIG. 6 shows an example of the operation of the character / graphic information conversion unit 10. First, the arrangement information creating unit 10-3 accesses the graphic information storage unit 10-2, and determines the graphic type according to the pattern code included in the graphic information (step S1). Here, a process of determining the height of a character string to be arranged is performed as a process common to each graphic type.
In this case, basically, a value obtained by dividing the length of the line segment constituting the figure by the number of characters is determined as the character height, whereby the shape of the character frame that accommodates one character is close to a square. However, in the case of a rectangle, "8" is added to the number of characters to prevent overlapping of characters at the four corners. That is, if the figure type is a rectangle, the process proceeds to step S2, and the lengths of four straight lines constituting the rectangle are obtained from the coordinate sequence information (diagonal coordinates) of the figure. Then, the arrangement information creating unit 10-3 determines the character height by adding "8" to the number of characters and dividing the length of the four sides by the value of the number of characters +8 (step S3). The reason for determining the height of the character is to generate another line to sandwich the character string. In addition, it is necessary to perform a process for preventing characters from overlapping at corners of a polygon or the like defined by a continuous straight line, instead of a figure defined by diagonal coordinates such as a rectangle. Also, for a figure such as a rectangle that considers overlapping of characters, a process of dividing a character string according to each side is required. Here, in the case of a rectangle, the process proceeds to step S4, where the arrangement information creating unit 10-3 adds 8 to the number of characters, sets the number of characters to be the number of characters to follow the rectangular line segment, and sets the length of each side. To divide the total number of characters. At this time, if an inconvenience occurs, such as when the number of characters in the character strings along the opposite sides is not equal, the total number of characters is increased by one character at a time (the increased portion becomes blank), and the number of characters on the opposite side is increased. Should be matched. Now, the example shown in FIG. 4A shows a case where the long side is determined to be 8 characters and the short side is determined to be 6 characters. Next, proceed to step S5,
The arrangement information creating unit 10-3 adds blank codes to both ends of each character string divided in association with the four sides of the rectangle.
This is to prevent characters from overlapping on both sides of each side. In FIG. 4A, “□ inside a rectangle” (□ represents a blank) is applied as a character string along the first side. Will be done. The character string along the second side is "□
A character string is indicated by □, and a character string along the third side is indicated by “□ when aligned”. Next, the start point (1) and the end point (2) are generated corresponding to the four straight lines constituting the rectangle (step S6), and are parallel to the four straight lines to form a rectangle. In order to generate another line located inside, the coordinate position obtained by translating the start and end points of the four sides of the rectangle by the character height based on the character height obtained in step S3 The start point (2) and the end point (2) of another line are set (step S7). Then, the arrangement information creating unit 10-3 outputs the rectangular 4
The starting point (1) and the ending point (1) constituting the side, the starting point (2) and the ending point (2) of the line parallel to these, and each character string assigned to each side are represented by characters. The data is stored in the data buffer 10-4 in the graphic information converter 10 (step S16). Then, when writing the contents of the data buffer 10-4 to the document memory 5, the main control unit 1 adds an identifier indicating a character string with arrangement information and stores it in the hyper outline memory 5-2. I do. FIG. 5 is FIG.
FIG. 5A shows a data structure in the hyper outline memory 5-2 corresponding to the specific example shown in FIG. 5A, and FIG. 5A shows a state where circle and rectangle information has already been stored in the figure memory 5-1 as figure information. FIG. 5B shows a character string with arrangement information in the hyper outline memory 5-2 generated by designating a rectangle and a circle as graphic information. In this case, “1” is set in the hyper outline memory 5-2 as a character string identifier with arrangement information. Here, in the case of a rectangle, “0” indicating “straight line + straight line” is set as the pattern code.
The coordinate data forming the upper side of the rectangle has a start point of “0,
0 ", the end point is" 16.0 ", and the start point of the line parallel to the upper side generated in consideration of the character height is" 0,
2 ", and the end point is" 16, 2 ". Then, the character string data “□ inside the rectangle” with blanks added at both ends is set in association with the upper side of the rectangle. Similarly, pattern codes, coordinate data,
The character string data is set in the hyper outline memory 5-2. At this time, the number of storage locations (character frames) on the last side may be larger than the number of characters due to the increase in the number of characters arranged as described above. In such a case, a blank code for the increased number of characters is replaced with a character. It is added to the end of the column. On the other hand, if the figure type is a circle type, step S
Steps 8 to S11 and S16 are performed. That is, the arrangement information creating unit 10-3 determines the entire length of the circumference (arc) (step S8), and determines the character height by dividing the length by the number of characters (step S9). Then, the coordinate sequence data of the graphic information, that is, the center coordinates, the start and end angles are copied as they are as the upper curve constituting the character arrangement area (step S10), and the radius is radius (1).
The radius (2) is generated by subtracting the height of the character from the radius (1) as another curve along the inside of the circular figure, that is, a lower curve constituting the character arrangement area. (Step S11). Then, these coordinate string data are stored in the data buffer 10-4 together with the character string (step S16). FIG. 4B shows a case where a circle is designated as graphic information, and a state in which character strings are evenly arranged and output inside the circle along the line segment.
In the case of a circle, the character string arrangement is balanced by setting the number of characters of the character string to seven or more. If the graphic type is a Bezier curve or the like, steps S12 to S16 are performed. That is, the arrangement information creating unit 10-3 determines the length along the curve of the figure (step S12), and determines the character height by dividing the length by the number of characters (step S12).
13). Then, the arrangement information creating unit 10-3 copies the parameters constituting the graphic as it is as the upper curve constituting the character arrangement area (step S14). A lower curve forming the arrangement area is generated (step S1).
5). Then, these coordinate string data are stored together with the character string in the data buffer 10-4 (step S1).
6). When the operation of the character / graphic information conversion unit 10 is completed, the main control unit 1 sets the character / graphic information conversion unit 10
Then, a character string with arrangement information is fetched from the data buffer 10-4 in the memory and stored in the hyper outline memory 5-2. The contents of the hyper outline memory 5-2 are read in response to the output command, and the character strings are arranged and output along the line segments constituting the figure. Although FIGS. 4 and 6 show the case where the upper part of the character string is made to follow the line segment forming the figure, the user can decide whether to make the character string follow the upper part or the lower part of the character string. Any selection can be made, and when the selection is instructed from the key operation unit 2, processing corresponding to the selection is performed. FIG. 7 shows a specific example in the case where the lower part of the character string is made to follow a line segment constituting the figure. Here, if a straight line or Bezier curve is previously input as an underline as shown in FIG.
As shown in FIG. 7B, a character string with an underline and a character string along it is obtained. Also in this case, it can be realized by the same processing as described above. As described above, in the present embodiment, by simply designating a figure prepared in advance, for each line segment constituting the figure, the layout information defining the character layout area having the same shape as the line segment is defined. Is generated, and this arrangement information is added to the output target character string. Therefore, the character string can be arranged and output along the line segments constituting the figure. In this case, since the character string with the arrangement information has the same coordinate system as the graphic information and the arrangement information, the character string can follow the graphic. Further, since the character height is determined based on the number of characters and the length of the line segment forming the figure, the character size is reduced if the number of characters is large, and the character size is increased if the number of characters is small. Further, in the case of a figure in which a straight line is bent, such as a rectangle, it is possible to prevent overlapping of characters at the bent portion, and to divide and arrange a character string on each side with good balance. In addition, it is possible to arbitrarily select whether the upper part or the lower part of the character string follows the line constituting the graphic. If the user selects to follow the lower part, a character string with a variety of underlines can be obtained by inputting an underline as graphic information. In the above embodiment, the character string is arranged and output along the line segment together with the graphic. However, it is also possible to output only the character string without outputting the graphic. In the above-described embodiment, the case where a character string is arranged along the line segment of a rectangle or a circle is shown. For example, when a smaller rectangle or a circle exists in the rectangle, the outer figure A character string may be arranged along the line segment in the figure inside. According to the present invention, by specifying a curve shape for arranging a character string, the curve shape is determined based on the length in the length direction of the curve shape and the number of characters of the character string. Determine the character height of each character arranged on the above, automatically generate a character frame corresponding to the determined character height on the curve shape by the number of characters, and place each character in each character frame Since the arrangement output is performed, on the designated curve shape, each character of the character string can be output in a well-balanced manner at a character height determined according to the length of the curve shape and the number of characters of the character string, In addition, the character strings can be arranged in a well-balanced manner over the specified curve shape.

【図面の簡単な説明】 【図1】一実施例に係るワードプロセッサの文字列出力
装置を示したブロック構成図。 【図2】本実施例の前提となる基本原理を説明するため
の図で、配置情報付き文字列のデータ構造例を示した
図。 【図3】本実施例の前提となる基本原理を説明するため
の図で、図2に示すような配置情報付き文字列がこの配
置情報にしたがって配置された状態を具体的に示した
図。 【図4】本実施例における文字配置例を示し、(A)は
図形として矩形が指定された場合の配置例、(B)は円
が指定された場合の配置例を示した図。 【図5】文書メモリ5を構成する図形メモリ5−1、ハ
イパーアウトラインメモリ5−2のデータ格納例を示
し、(A)は図形メモリ5−1に円と矩形の図形情報が
格納され、ハイパーアウトラインメモリ5−2にはデー
タが格納されていない状態、(B)は予め指定された出
力対象文字列を図形メモリ5−1内の図形に沿わせるた
めに生成された配置情報が付加された文字列がハイパー
アウトラインメモリ5−2に格納された状態を示した
図。 【図6】本実施例における文字図形情報変換部10の動
作を示したフローチャート。 【図7】入力されたアンダーラインに文字列を沿わせて
アンダーライン付きの文字列を配置するようにした応用
例を示した図。 【符号の説明】 1 主制御部 2 キー操作部 3 表示制御部 4 表示装置 5 文書メモリ 5−1 図形メモリ 5−2 ハイパーアウトラインメモリ 5−3 テキストメモリ 6 印字制御部 7 印刷装置 10 文字図形情報変換部 10−1 文字列格納部 10−2 図形情報格納部 10−3 配置情報作成部 10−3A 図形情報解析部 10−3B 文字情報解析部 10−3C 図形/配置変換部 10−4 データバッファ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a character string output device of a word processor according to one embodiment. FIG. 2 is a diagram for explaining a basic principle that is a premise of the embodiment, and is a diagram showing an example of a data structure of a character string with arrangement information. FIG. 3 is a diagram for explaining a basic principle that is a premise of the embodiment, specifically showing a state in which a character string with arrangement information as shown in FIG. 2 is arranged according to the arrangement information. FIGS. 4A and 4B show an example of character arrangement in the present embodiment, in which FIG. 4A shows an example of arrangement when a rectangle is designated as a figure, and FIG. 4B shows an example of arrangement when a circle is designated; 5A and 5B show an example of data storage in a graphic memory 5-1 and a hyper outline memory 5-2 constituting a document memory 5; FIG. 5A shows a case where circle and rectangle graphic information are stored in a graphic memory 5-1; In the state where no data is stored in the outline memory 5-2, (B) has added the arrangement information generated in order to make the specified output target character string follow the graphic in the graphic memory 5-1. FIG. 4 is a diagram illustrating a state in which a character string is stored in a hyper outline memory 5-2. FIG. 6 is a flowchart showing the operation of the character / graphic information conversion unit 10 in the embodiment. FIG. 7 is a diagram showing an application example in which a character string with an underline is arranged along an input underline. [Description of Signs] 1 Main control unit 2 Key operation unit 3 Display control unit 4 Display device 5 Document memory 5-1 Graphic memory 5-2 Hyper outline memory 5-3 Text memory 6 Print control unit 7 Printing device 10 Character graphic information Conversion section 10-1 Character string storage section 10-2 Graphic information storage section 10-3 Layout information creation section 10-3A Graphic information analysis section 10-3B Character information analysis section 10-3C Graphic / layout conversion section 10-4 Data buffer

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平5−108773(JP,A) 特開 平5−66759(JP,A) 特開 平6−83315(JP,A) 特開 昭63−108392(JP,A) 特開 平3−101792(JP,A) 特開 平4−148420(JP,A) 特開 平5−242212(JP,A) 特開 平6−96182(JP,A) 特開 平7−219506(JP,A) 特開 平8−30666(JP,A) (58)調査した分野(Int.Cl.7,DB名) G09G 5/00 - 5/40 G06T 11/60 ──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-5-108773 (JP, A) JP-A-5-66759 (JP, A) JP-A-6-83315 (JP, A) JP-A-63-1988 108392 (JP, A) JP-A-3-101792 (JP, A) JP-A-4-148420 (JP, A) JP-A-5-242212 (JP, A) JP-A-6-96182 (JP, A) JP-A-7-219506 (JP, A) JP-A-8-30666 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G09G 5/00-5/40 G06T 11/60

Claims (1)

(57)【特許請求の範囲】 【請求項1】出力対象となる複数の文字からなる文字列
を指定する文字列指定手段と、 上記文字列を配列させる曲線形状を指定する形状指定手
段と、 上記曲線形状の長さ方向での長さと上記文字列の文字数
とに基づいて、当該曲線形状上で配列される各文字の文
字高さを決定し、その決定された文字高さに応じた文字
枠を上記曲線形状上において上記文字数分生成する生成
手段と、 上記曲線形状上で生成された各文字枠内に上記各文字を
配置出力する出力手段と、 を具備したことを特徴とする文字列出力装置。
(57) [Claims] [Claim 1] Character string designating means for designating a character string composed of a plurality of characters to be output, shape designating means for designating a curve shape for arranging the character strings, Based on the length in the length direction of the curved shape and the number of characters of the character string, determine the character height of each character arranged on the curved shape, and determine the character according to the determined character height A character string comprising: generating means for generating a frame for the number of characters on the curve shape; and output means for arranging and outputting the characters in each character frame generated on the curve shape. Output device.
JP33102694A 1994-12-09 1994-12-09 String output device Expired - Fee Related JP3486788B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33102694A JP3486788B2 (en) 1994-12-09 1994-12-09 String output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33102694A JP3486788B2 (en) 1994-12-09 1994-12-09 String output device

Publications (2)

Publication Number Publication Date
JPH08160936A JPH08160936A (en) 1996-06-21
JP3486788B2 true JP3486788B2 (en) 2004-01-13

Family

ID=18238999

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33102694A Expired - Fee Related JP3486788B2 (en) 1994-12-09 1994-12-09 String output device

Country Status (1)

Country Link
JP (1) JP3486788B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3858149B2 (en) * 2002-06-28 2006-12-13 カシオ計算機株式会社 Printing apparatus and printing method
JP2004255760A (en) * 2003-02-27 2004-09-16 Canon Inc Information processor, its control method and program
JP4250466B2 (en) * 2003-06-30 2009-04-08 キヤノン株式会社 Image processing apparatus, image processing method, recording medium thereof, and program

Also Published As

Publication number Publication date
JPH08160936A (en) 1996-06-21

Similar Documents

Publication Publication Date Title
JPH07106660B2 (en) How to create handwritten manuscript
JP3486788B2 (en) String output device
JPH0827843B2 (en) How to edit a character string in a figure
JPH02250152A (en) Character processor
JP3412203B2 (en) String output device
JP2616427B2 (en) String display device
JP3404770B2 (en) Document processing device
JP3412202B2 (en) String output device
JP2764944B2 (en) Character output device
JPS63136084A (en) Character processor
JPH03266172A (en) Word processor
JP3348480B2 (en) Graphic output device
JP2655900B2 (en) Character processor
JPH08161333A (en) Character string output device
JPH02257260A (en) Document editing processor
JPH08314927A (en) Character string arrangement device
JPH08171555A (en) Word processor
JPH0258158A (en) Documentation device
JPH02288946A (en) Document processor
JPH02255968A (en) Document producing device
JPS60132270A (en) Word processor
JPH0540509A (en) Picture developing device for numerical controller
JPH0462589B2 (en)
JPH03153298A (en) Document output device
JPS59117621A (en) Document editing and proofreading system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071031

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081031

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081031

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091031

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091031

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101031

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101031

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111031

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111031

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121031

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121031

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131031

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees