Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3817871B2 - Document processing apparatus and program recording medium thereof - Google Patents
[go: Go Back, main page]

JP3817871B2 - Document processing apparatus and program recording medium thereof - Google Patents

Document processing apparatus and program recording medium thereof Download PDF

Info

Publication number
JP3817871B2
JP3817871B2 JP31157497A JP31157497A JP3817871B2 JP 3817871 B2 JP3817871 B2 JP 3817871B2 JP 31157497 A JP31157497 A JP 31157497A JP 31157497 A JP31157497 A JP 31157497A JP 3817871 B2 JP3817871 B2 JP 3817871B2
Authority
JP
Japan
Prior art keywords
design
document
parts
aspect ratio
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.)
Expired - Fee Related
Application number
JP31157497A
Other languages
Japanese (ja)
Other versions
JPH10275146A (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 JP31157497A priority Critical patent/JP3817871B2/en
Priority to US09/014,318 priority patent/US6167410A/en
Priority to KR1019980002583A priority patent/KR100311083B1/en
Priority to CN98106401A priority patent/CN1102778C/en
Publication of JPH10275146A publication Critical patent/JPH10275146A/en
Priority to HK99101837.7A priority patent/HK1017102B/en
Application granted granted Critical
Publication of JP3817871B2 publication Critical patent/JP3817871B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、文書データに所定の修飾を施す文書処理装置およびそのプログラム記録媒体に関する。
【0002】
【従来の技術】
近年、パーソナルコンピュータやワードプロセッサ等の文書処理装置においては、表、グラフ、イラスト、画像等を多用したグラフィカルな文書をカラー出力することができるようになっており、オペレータは文書全体のレイアウトを考慮しながら入力操作によって「タイトル」、「見出し」、「図形」、「キャプション」、「ページ背景」、「矢印」などの各要素を1つずつ指定しながら、色、網かけ、反転、アンダライン、白抜き等の修飾を各要素に施すようにしていた。
【0003】
【発明が解決しようとする課題】
しかしながら、文書全体をグラフィカルに、体裁良く、ハイセンスに作り上げるためには、オペレータが各種の技法やセンス、ソフトウェアの知識を必要とすると共に、画面を見ながら試行錯誤を繰り返す等、膨大な作業を必要とするため、オペレータに大きな負担をかけていた。
そこで、本出願人は、オペレータの労力を必要とせず、またセンスや知識によらず、文書全体のレイアウト状態を変更することもなく、文書単位毎に文書全体の視読性を考慮してデザイン的に見栄え良く修飾加工する自動デザイン技術(特願平9−29864号、発明の名称:文書処理装置およびそのプログラム記録媒体)を提案した。
この種の技術においては、例えば、文字列が矩形の罫線枠で囲まれている場合、その罫線枠を影付きの立体画像に置き換えることによって罫線枠をデザイン的に見栄え良く修飾することもできる。すなわち、図14はこの場合の修飾の仕方を示したもので、図14(A)に示すような影付き立体画像を用いて修飾する場合、文字列を囲む罫線枠の形状に応じて図14(B)に示すように縦長に変形加工されたり、図14(C)に示すように横長に変形加工される。この場合、その変形度合が大きいと、原形が崩れ、例えば、(B)の場合には上下の影部分が原形よりも太くなり、また左右の影部分が原形よりも細くなり、逆に(C)の場合には上下の影部分が原形よりも細くなり、また左右の影部分が原形よりも太くなるが、このような修飾でも元の罫線枠に比べてデザイン的には見栄えが良いものとなる。
同様に、図15(A)に示すように両端が半円形の影付き立体画像を用いて修飾する場合、それを横方向に伸長すると、両端部分が楕円に変形し、原形が崩れてしまうが、元の罫線枠に比べてデザイン的には見栄えが良いものとなる。
この発明の課題は、先に本出願人が提案した技術を改善するためになされたもので、デザイン化の対象要素をその種類に応じた画像を用いて修飾する際に、デザイン対象要素がどのような形状であっても、原形の画像イメージを崩さずに修飾加工できるようにすることである。
【0004】
【課題を解決するための手段】
この発明は、デザイン対象要素の属性に応じた固有の画像を複数の部品に分割して記憶する部品情報記憶手段と、文書単位毎に文書構成要素の種類を解析する文書解析手段と、この文書解析手段によって解析された解析結果を基にデザイン対象要素を抽出する抽出手段と、この抽出手段によって抽出されたデザイン対象要素の属性に応じた画像を検索する検索手段と、この検索手段で画像が検索された際に、当該画像を分割して成る複数の部品を部品情報記憶手段から読み出す読出手段と、この読出手段によって読み出された各部品のうち、縦横比を保持すべき所定位置に配置される部品についてはその縦横比を変えないで拡大縮小し、その他の位置に配置される部品についてはその縦横比を変えて拡大縮小して、それら拡大縮小した複数の部品を連結して組み合せ配置することにより、デザイン対象要素を修飾する修飾加工手段とを備えたことを特徴としている。
したがって、記憶された複数の部品のうち縦横比を保持すべき所定位置に配置される部品についてはその縦横比を変えないで拡大縮小し、その他の位置に配置される部品についてはその縦横比を変えて拡大縮小して、それら拡大縮小した複数の部品を連結して組み合せ配置することができる。
【0005】
請求項1記載の発明においては、文書解析手段によって文書単位毎に文書構成要点の種類が解析され、この解析結果を基にデザイン対象要素を抽出する。例えば、「タイトル」、「罫線枠」、「表」等がデザイン対象要素として抽出されると、その種類に応じてデザイン対象要素を修飾するが、その際、種類に応じた複数の部品を読み出すと共に、各部品がデザイン対象要素の予め決められた位置に収まるように各部品を拡大縮小して組み合せることにより、デザイン対象要素を修飾する。
したがって、デザイン化の対象要素をその種類に応じた画像を用いて修飾する際に、デザイン対象要素がどのような形状であっても、原形の画像イメージを崩さずに修飾加工することができる。
【0006】
【発明の実施の形態】
以下、図1〜図13を参照してこの発明の一実施形態を説明する。
図1は文書処理装置の全体構成を示したブロック図である。
CPU1はRAM2内にロードされている各種プログラムにしたがってこの文書処理装置の全体動作を制御する中央演算処理装置である。記憶装置3はオペレーティングシステムや各種アプリケーションプログラム、データファイル、文字フォントデータ等が予め格納されている記憶媒体4やその駆動系を有している。この記憶媒体4は固定的に設けたもの、もしくは着脱自在に装着可能なものであり、フロッピーディスク、ハードディスク、光ディスク、RAMカード等の磁気的・光学的記憶媒体、半導体メモリによって構成されている。また、記憶媒体4内のプログラムやデータは、必要に応じてCPU1の制御により、RAM2にロードされる。更に、CPU1は通信回線等を介して他の機器側から送信されて来たプログラム、データを受信して記憶媒体4に格納したり、他の機器側に設けられている記憶媒体に格納されているプログラム、データを通信回線等を介して使用することもできる。
また、CPU1にはその入出力周辺デバイスである入力装置5、表示装置6、印刷装置7がバスラインを介して接続されており、CPU1は入出力プログラムにしたがってそれらの動作を制御する。
【0007】
入力装置5は文字列データ等を入力したり、各種コマンドを入力するキーボードやマウス等のポインティングデバイスを有し、この入力装置5から入力された文字列データは表示装置6のテキスト画面に表示出力されたり、かな漢字変換処理によって変換された漢字混りの文字列データは、確定文字列としてRAM2内の文書メモリ2−1(図2参照)に格納される。
表示装置6は多色表示を行う液晶表示装置やCRT表示装置、プラズマ表示装置等であり、また、印刷装置7はフルカラープリンタ装置で、熱転写やインクジェットなどのノンインパクトプリンタあるいはドットインパクトプリンタである。
【0008】
図2はRAM2の主要構成を示した図である。このRAM2には各種のメモリ領域が割り当てられている。文書メモリ2−1は文書データを記憶するテキストメモリで、文書中には表、グラフ、イラスト、撮影画像等を差し込むことができる。
文書構造解析テーブル2−2はCPU1が文書メモリ2−1の内容を解析する際に参照されるもので、図3は文書構造解析テーブル2−2の内容を例示している。ここで、CPU1は文書メモリ2−1の内容を文書単位毎に解析してゆき、文書全体を構成する各構成要素のうち、予め決められている属性の構成要素をデザイン化対象のデザイン要素として抽出するが、その際、CPU1は文書構造解析テーブル2−2の内容を参照してデザイン要素の抽出を行う。文書構造解析テーブル2−2はデザイン要素の属性(種類)毎に、その要素解析条件を固定的に記憶するもので、例えば、デザイン要素「タイトル」に対応する要素解析条件としては、文書の先頭行に位置している文字列であること、句読点が存在しないこと等が定義されている。また、デザイン要素「大見出し」に対応する要素解析条件としては、所定の見出し記号が先頭桁に存在していること、句読点が存在していないこと等が定義されている。更に、デザイン要素「中見出し」、「小見出し」の解析条件としては、その先頭文字の桁位置が上位の見出し文字列に対して段落されていること等が定義されている。また、デザイン要素「表」の解析条件としては、表枠やセル枠等が存在すること等が定義されている。また、デザイン要素「文字/記号」の解析条件としては、特定文字や記号であることが定義されている。なお文書構造解析テーブル2−2には124種類のデザイン要素に対応してその解析条件が定義されている。
【0009】
文書解析結果メモリ2−3は文書構造を解析することによって得られた解析結果を記憶保持するもので、図4は文書解析結果メモリ2−3の内容を示している。すなわち、文書解析結果メモリ2−3は文書解析によって抽出されたデザイン要素毎にそのIDと、位置情報、周囲の空きスペース情報を記憶する構成となっている。デザイン要素IDは「タイトル」、「大見出し」……等の属性を識別するデータであり、また位置情報はデザイン要素が存在する矩形領域を示す左上、右下の2点座標列データであり、更に、周囲の空きスペース情報はデザイン要素の上下左右に存在する空きスペースの大きさをドット単位で示すデータで、それらは文書構造の解析時にCPU1によってそれぞれ検出されて文書解析結果メモリ2−3にセットされる。
【0010】
自動デザインマスターテーブル2−4はデザイン要素の属性毎に固有の修飾情報(デザイン番号)を固定的に記憶するもので、図5(A)は自動デザインマスターテーブル2−4の一部を示している。すなわち、自動デザインマスターテーブル2−4は用途/タッチID、デザイン要素ID、候補1デザイン番号、候補2デザイン番号……を1行分のレコードデータとして複数レコード分記憶する構成となっている。ここで、用途/タッチIDは、例えば、「企画書向き」、「OHP向き」、「貼り紙・広告向き」などの用途や「立体表現」、「平面表現」、「カラー」、「モノクロ」、「派手」、「シンプル」などのタッチを定義するもので、用途とタッチを一組とするID番号「1」、「2」……が自動デザインマスターテーブル2−4に記述されている。例えば、用途/タッチID「1」は用途が「企画書向き」でタッチが「カラー」であることを示している。なお、タッチとしては「派手」な「カラー」や、「立体表現」の「カラー」等のように2種類以上のタッチを組み合せたタッチも定義されている。ここで、オペレータは任意の用途/タッチIDを選択指定すると、それに対応する自動デザインマスターテーブル2−4内の各行が処理対象行として指定される。つまり、用途/タッチに応じて予め定義されている各種のデザインのうち、任意の種類のデザインをオペレータが選択指定することができるようになっている。
【0011】
また、用途/タッチID毎に自動デザインマスターテーブル2−4には、全てのデザイン要素IDがその先頭番号から最終番号まで定義されている。ここで、デザイン要素ID「1」〜「124」は、文書構造解析テーブル2−2に定義されている124種類のデザイン要素に対応している。デザイン番号は対応するデザイン要素を修飾すべきデザインを指定するもので、デザイン要素毎に、複数のデザイン番号が選択候補として定義されている。ここで、デザイン要素をその候補1デザイン番号で示される。デザインで修飾した際に、その周囲の空きスペースの関係上当該要素を適切に修飾することができなかった場合に、次候補である候補2デザイン番号が指定される。つまり、候補2デザイン番号は候補1デザイン番号で示されるデザインよりもサイズ的に小さ目のデザインを指定するもので、以下に続く下位の候補についても上位の候補よりも小さ目のデザインを指定する。したがって、最初は候補1デザイン番号がアクセスされ、それがサイズ的に適切でなければ、次候補2のデザイン番号がアクセスされ、更に不適切であることが検出された場合には次候補がアクセスされる。
【0012】
要素デザインコマンドテーブル2−5はデザイン要素を修飾加工すべき実行コマンド等を固定的に記憶するもので、図5(B)は要素デザインコマンドテーブル2−5の一部を示している。すなわち、要素デザインコマンドテーブル2−5はデザイン要素ID、デザイン番号、コマンド実行順序、コマンドID、10種類のオプション数値OP1、OP2……OP10を1行分の1レコードデータとして複数レコード分記憶する構成となっている。ここで、自動デザインマスターテーブル2−4において、処理対象行として指定された各行のうち、その先頭行から1行毎に指定されたデザイン要素IDおよび候補デザイン番号に基づいて要素デザインコマンドテーブル2−5がアドレス指定され、それに対応する要素デザインコマンドテーブル2−5の内容が処理対象行として指定される。ここで、「コマンド実行順序」は要素デザインコマンドテーブル2−5内における処理対象行において、どのような順序でコマンドを実行すべきかを示すもので、図5(B)の例ではコマンドIDで示されるコマンドを「33、8、2……7」の順序で実行すべきことが定義されている。また、「オプション数値OP1〜OP10」は図形番号や修飾コードテーブル2−6をアクセスする修飾コード、位置座標等を定義するもので、例えば、コマンドID「33」のオプション数値OP1「42」は、図形番号「42」で示されるイラスト部品を呼び出してデザイン要素の背景画像として書き込むべきことを示している。また、コマンドID「19」のオプション数値OP1「2」は修飾コードテーブル2−6を修飾コード「2」でアクセスし、修飾コードテーブル2−6に定義されている属性でデザイン要素を修飾すべきことを示している。更に、コマンドID「4」はデザイン要素をその基準座標(左上座標)に対してオプション数値OP1(X座標)、オプション数値OP2(Y座標)で示される位置に移動すべきことを示している。
【0013】
修飾コードテーブル2−6は修飾ID毎に複数種の属性項目を記憶するもので、図5(C)は修飾コードテーブル2−6の一部を示している。すなわち、修飾コードテーブル2−6には修飾ID「1」、「2」……に対応して複数種の属性項目が固定的に記憶されているが、属性項目としては例えば、書体、文字種、太さ、塗り方、影付き、色等である。
また、RAM2にはその他に文書デザインバッファ2−7、修飾結果メモリ2−8、図形部品メモリ2−9、処理ポインタ群2−10、nレジスタ2−11、ワークメモリ2−12が設けられている。図形部品メモリ2−9はデザイン要素の属性に応じた固有の画像を複数の部品に分割して記憶するもので、例えば文字列を囲む罫線枠を影付きの立体画像に置き換えて修飾する場合には、その立体画像を図8に示すように、イラストID「284」、「285」、「286」、「287」で示される四隅の部品、「288」、「289」、「290」、「291」で示される上下左右の外側部品、「292」で示される中央部品に9分割されて記憶管理されている。また、図10に示すように両端が半円形の帯状の影付き立体画像であれば、両端部品と中央部品に3分割されて記憶管理されている。
【0014】
次に、この文書処理装置の動作を図6、図7に示すフローチャートにしたがって説明する。なお、これらのフローチャートに記述されている各機能を実現するためのプログラムは、CPU1が読み取り可能なプログラムコードの形態で記憶媒体4に記憶されており、その内容がRAM2内のワークメモリ2−12にロードされている。
いま、文書メモリ2−1内に格納されている文書データをデザイン化対象の文書として指定すると共に入力装置5から自動デザイン指令を入力すると、図6のフローチャートにしたがって自動デザイン処理が実行開始される。
先ず、自動デザインマスターテーブル2−4の内容に基づいて用途/タッチのメニュー項目が一覧表示されるので(ステップA1)、オペレータはこの表示画面の中から任意のメニュー項目を選択指定しておく(ステップA2)。いま、図7に示すような文書がデザイン化対象の文書として指定され、かつ用途/タッチとして「企画書向き」/「カラー」が選択指定されたものとする。
【0015】
すると、CPU1はこの文書をその先頭行から解析してゆき(ステップA3)、文書構造解析テーブル2−2を参照してデザイン要素を抽出すると共にその位置および周囲の空きスペースを検出する(ステップA4)。いま、図7に示す先頭行の文字列「Designer」は文書構造解析テーブル2−2に定義されているタイトルに該当するため、CPU1はその属性「タイトル」と位置情報および周囲の空きスペース情報をそれぞれ対応付けて文書解析結果メモリ2−3に格納する(ステップA5)。そして、文書中に文書構造解析テーブル2−2に定義されているデザイン要素に該当する条件を持った要素が有るかを調べ(ステップA6)、デザイン要素が有れば、ステップA3に戻り、上述の動作を繰り返す。これによって以下、文書中の「大見出し」、「中見出し」、「表」……がそれぞれデザイン要素として抽出され、その解析結果がデザイン要素毎に文書解析結果メモリ2−3に格納される。この場合、矩形内の文字列「従来……開発する。」は、大見出し、「§1.概要」の文字列は中見出し、「従来の機能〜」の文字列は小見出しとして認識され、またマトリックス状の罫線を含む文字列は表として認識されてデザイン化対象の要点となるが、その他の文書データはデザイン化対象から外される。
【0016】
このようにして文書全体の解析を行い、ステップA6でデザイン要素無しが検出されると、CPU1はステップA2で選択指定された用途/タッチIDに基づいて自動デザインマスターテーブル2−4を検索し、用途/タッチIDに該当する全ての行を処理対象行として指定する(ステップA7)。図5(A)は用途/タッチIDとして「1」、つまり企画書向け/カラーが指定された場合を示している。次に、CPU1はこの処理対象行のうち自動デザインマスターテーブル2−4のリードアドレスを指定する処理ポインタNの値をその先頭行にセットする(ステップA8)。そして、自動デザインマスターテーブル2−4の指定行に対応するデザイン要素は、文書解析結果メモリ2−3内にセットされているかを調べ(ステップA9)、無ければ、自動デザインマスターテーブル2−4の処理ポインタNを次行に更新する(ステップA10)。その結果、処理対象行を全て指定し終ったかを調べ(ステップA11)、指定終了でなければ、ステップA9に戻り、文書解析結果メモリ2−3にセットされているデザイン要素を検索する動作を繰り返す。
【0017】
この結果、該当するデザイン要素が検索されると、ステップA12に進み、nレジスタ2−11の値をクリアする。ここで、nレジスタ2−11は自動デザインマスターテーブル2−4内に記述されている候補デザイン番号をアドレス指定するもので、nレジスタ2−11の内容をクリアしたのち、次のステップA13でその値に「1」を加算することにより、nレジスタ2−11の値は初期値として「1」がセットされる。そして、処理ポインタNで指定される自動デザインマスターテーブル2−4内のデザイン要素IDと、nレジスタ2−11の値で指定される候補nデザイン番号を読み出し、このデザイン要素IDと候補nデザイン番号に基づいて要素デザインコマンドテーブル2−5を検索し、それらに合致する全ての行を対象行として指定する(ステップA14)。図5(B)はデザイン要素ID「1」、デザイン番号「2」に該当する要素デザインコマンドテーブル2−5内の各行が処理対象行として指定された場合である。そして、この処理対象行のうち要素デザインコマンドテーブル2−5のリードアドレスを指定する処理ポインタMの値をその先頭行にセットする(ステップA15)。
【0018】
このようにしてデザイン要素を要素デザインコマンドテーブル2−5の記述内容にしたがって修飾加工すると、ステップA17に進み、コマンド実行の失敗かを判別する。すなわち、このステップA17は修飾加工を施したデザイン要素をその周囲の空きスペース情報に基づいてその大きさを調整してもスペース不足か否かを判別するもので、スペース不足で、コマンド実行の失敗が検出されると、ステップA13に進みnレジスタ2−11の値を更新し、自動デザインマスターテーブル2−4内の次候補のデザイン番号を指定し、以下同様の処理を繰り返す。
これによって、コマンド実行の成功が検出されると(ステップA17でNO)、文書デザインバッファ2−7の内容(修飾加工されたデザイン要素)を修飾結果メモリ2−8にストアする(ステップA18)。そして、要素デザインコマンドテーブル2−5の処理ポインタMを次行に更新し(ステップA19)、要素デザインコマンドテーブル2−5の処理対象行が全て終了するまで(ステップA20)、上述の動作(ステップA16〜A20)が繰り返される。
【0019】
この結果、ステップA20で終了が検出されると、ステップA21に進み、自動デザインマスターテーブル2−4の処理ポインタNを更新する処理が行われ、自動デザインマスターテーブル2−4の処理対象行を全て終了するまで(ステップA22)、上述の動作(ステップA9〜A22)が繰り返される。これによって1文書中の全てのデザイン要素を修飾加工する処理が終ると、ステップA22でそのことが検出されてステップA23に進み、文書メモリ2−1の内容を表示出力させるが、その際、文書メモリ2−1内のデザイン要素を修飾結果メモリ2−8の内容に置き替えて表示出力させる。
【0020】
次に、上述したデザイン処理のうち、複数部品を組み合せてデザイン要素を修飾する場合の動作を図7に示すフローチャートを参照して詳述する。
図7は文字列が罫線枠によって囲まれている場合に、罫線枠がデザイン要素として抽出され、この罫線枠を図8に示すような影付き立体画像に置き換えることによって修飾する場合を例示したフローチャートである。この影付き立体画像は図8(A)に示すように9分割されている。先ず、ステップB1ではデザイン化対象の罫線枠の四隅の位置座標を抽出し、これを基準座標点とする。次に、影付き立体画像の四隅を構成するコーナ部品を罫線枠の隅部にその縦横比を変えずに拡大縮小して配置する(ステップB2)。すなわち、図9(A)、(B)はこの場合の配置状態を説明するための図で、先ず、イラストID「284」で示されるコーナ部品(左上部品)を読み出すと共に、罫線枠の左上を基準点としてこの部品の左上が左斜め上方の所定位置(4桁、2行分離れた位置)に来るように左上コーナ部品を配置する(図9(A)参照)。そして、この左上コーナ部品の終点(右下)が罫線枠の左上座標点に収まるようにコーナ部品を拡大縮小する。これによって、図9(B)に示すような大きさで罫線枠の左上を基準として左上コーナ部品が配置されるが、このコーナ部品は原形の縦横比2:1をそのまま保持したものとなる。
このようにして左上コーナ部品の配置が終ると、次のステップB3に進み、四隅分のコーナ部品の配置を終了したかを調べるが、いま、最初のコーナ部品を配置した場合であるから、ステップB2に戻り、次にイラストID「285」で示される右上のコーナ部品を読み出すと共に、罫線枠の右上を基準とし、その縦横比を変えずに拡大縮小して配置する。以下、同様にイラストID「286」で示される左下コーナ部品、イラストID「286」で示される右下コーナ部品を順次読み出し、罫線枠の左下、右下を基準としてその縦横比を変えずに拡大縮小して配置する。
【0021】
このようにして四隅分のコーナ部品を全て配置し終ると、ステップB4に進み、外側部品を読み出し、コーナ部品間を連結するように縦横比を変えながら拡大縮小して配置する。すなわち、先ず、イラストID「288」で示される上側部品を読み出し、その左上を左上コーナ部品の右下に合わせて配置する(図9(C)参照)。そして、左上コーナ部品の終点(右下)位置に収まるように上側部品の行方向を拡大縮小すると共に、上側部品の右下が右上コーナ部品の左下に来るように上側部品を桁方向に拡大縮小する(図9(D)参照)。このようにして上側部品の配置が終ると、次のステップB5に進み、上下左右の外側部品を全て配置し終ったかを調べるが、いま最初の上側部品の配置を行った場合であるから、ステップB4に戻り、次の外側部品、イラストID「289」で示される左側部品を読み出し、左上コーナ部品と左下コーナ部品間を連結するようにその縦横比を変えながら拡大縮小して配置する。以下、同様に、イラストID「290」、「291」で示される右側部品、下側部品を順次読み出し、コーナ部品間を連結するようにその縦横比を変えながら拡大縮小して配置する。
【0022】
これによって上下左右の外側部品を全て配置し終ると、次のステップB6に進み、最後にイラストID「292」で示される中央部品を読み出し、罫線枠内の中央部分を埋めるようにその縦横比を変えながら拡大縮小して配置する。すなわち、中央部品の左上を左上コーナ部品の右下に合わせ(図9(E)参照)、中央部品の右下が右下コーナ部品の左上位置に収まるように中央部品の行方向、桁方向を拡大縮小する。この結果、全部品の配置が終ると、複数部品の組み合せを1つの図形としてグループ化し(ステップB7)、グループ化に成功したかを調べ(ステップB8)、成功した場合には、デザイン対象の罫線枠を削除し、グループ化された画像に置き換える(ステップB9)。この場合、複数の部品の組み合せを1つの画像としてグループ化することにより、四隅だけの基準点となり、継ぎ目のない画像を得ることができる。
【0023】
図10は複数部品を組み合せて修飾する場合の他の例を示し、両端が半円形の帯状の影付き立体画像は、両端部品と中央部品に3分割されて記憶され、その両端部品をデザイン化対象の罫線枠に配置する際には、その縦横比を変えないで拡大縮小し、中央部品は両端部品を連結するようにその縦横比を変えて拡大縮小することによって配置する。
図11は複数の部品を組み合せることによって表を修飾する例を示したもので、表を構成する各セルは複数の部品を組み合せることによって生成される。この場合、1つのセルは影用の部品を含めて合計6種類の部品を所定の順序にしたがって組み合せることによって生成される。また図12は飾枠画像を6種類の部品を組み合せることによって生成するようにしたもので、リボンの部品はその縦横比を変えずに配置するが、波形の線部品はデザイン対象要素に応じてその縦横比を変えて配置する。図13は画板を表現する画像を8種類の部品を組み合せることによって生成するようにしたもので、この場合、6種類の細かな部品はその縦横比を変えずに配置し、画板本体の大きな部品はデザイン対象要素に応じてその縦横比を変えて配置する。その際、黒塗りの部品の上に白塗りの部品を重ね合せることにより板の上に紙を載置した状態を表現するようにしている。
【0024】
以上のようにこの文書処理装置においては、文書単位毎に文書全体の文書構造が解析され、その各構成要素のうち文書構造解析テーブル2−2に定義されている属性の構成要素がデザイン化対象のデザイン要素として抽出されると共に、抽出されたデザイン要素毎にその属性に基づいて自動デザインマスターテーブル2−4が検索され、この検索結果にしたがって要素デザインコマンドテーブル2−5の記述内容が実行されるので、各デザイン要素を予め自動デザインマスターテーブル2−4、要素デザインコマンドテーブル2−5、修飾コードテーブル2−6に定義されている内容に基づいて修飾加工することができる。したがって、タイトル、見出し、図形、キャプション、ページ背景、文字/記号、矢印など、文書中においてデザインすべき各要素を手作業によらず、自動的に修飾加工することが可能となり、全体的に見栄えのよいハイセンスな文書が得られる。
また、企画書向き、OHP向きなどの用途や立体表現、カラー、派手などのタッチをオペレータが任意に選択指定するだけで、指定された用途/タッチに応じて文書全体がデザイン化されるので、ユーザが所望する好みのデザインを得ることができる。
【0025】
また、複数のイラスト部品を組み合せて修飾加工すると共に、各部品毎にその大きさを調整することができるので、変化に富んだ画像を得ることができると共に、デザイン要素の大きさや形状に応じた画像を得ることができる。この場合、デザイン対象要素に応じた複数の部品を組み合せて配置する際に、所定の位置に配置される部品についてはその縦横比を変えないで拡大縮小し、その他の位置に配置される部品についてはその縦横比を変えて拡大縮小するようにしたから、例えば、図8に示すように縦長にデザインしたり、横長にデザインしたとしても原形に近似したデザインを得ることができ、また図10に示す場合には両端部が楕円に変形することはなく、原形に近似したものとなる。したがって、デザイン化の対象要素をその種類に応じた画像を用いて修飾する際に、デザイン対象要素がどのような形状であっても、原形の画像イメージを崩さずに修飾加工することができる。
【0026】
なお、上述した実施形態に限らず、どのような種類の画像であっても複数の部品を組み合せることによって得ることができる。また自動デザインマスターテーブル2−4、要素デザインコマンドテーブル2−5、修飾コードテーブル2−6をそれぞれ別テーブルとしたが、それらを1つのテーブルで構成してもよく、また各テーブルのデフォルト値をオペレータが任意に変更できるようにすれば、デザイン化された文書の一部をオペレータの好みに応じて修正することも可能となる。
また、文書構造解析テーブル2−2の内容を一覧表示させ、その中からオペレータが任意のデザイン要素が選択指定された場合には、選択されたデザイン要素のみをデザイン化対象として文書中から抽出するようにしてもよい。
【0027】
【発明の効果】
この発明によれば、デザイン化すべきデザイン対象要素をその属性に応じた画像を用いて修飾する際に、画像を分割して記憶された複数の部品のうち縦横比を保持すべき所定位置に配置される部品についてはその縦横比を変えないで拡大縮小し、その他の位置に配置される部品についてはその縦横比を変えて拡大縮小して、それら拡大縮小した複数の部品を連結して組み合せ配置することができ、デザイン対象要素が複雑な形状であっても、複数の部品を連結して各部品を組み合せ配置することで複雑な原形の画像イメージを崩さずに修飾加工することができる。つまり、デザイン対象要素の文字数や縦横比に合わせて拡大縮小したとしてもデザインそのものが歪んでしまったり、デザイン対象にそぐわない形になってしまうことはなく、原形に近似した良好のデザインを得ることができる。
【図面の簡単な説明】
【図1】文書処理装置の全体構成を示したブロック図。
【図2】RAM2の主要構成を示した図。
【図3】文書構造解析テーブル2−2の内容を示した図。
【図4】文書解析結果メモリ2−3の構成を示した図。
【図5】(A)は自動デザインマスターテーブル2−4の一部を示した図、(B)は要素デザインコマンドテーブル2−5の一部を示した図、(C)は修飾コードテーブル2−6の一部を示した図。
【図6】自動デザイン処理を示したフローチャート。
【図7】複数の部品を組み合せてデザイン化する際の動作を例示したフローチャート。
【図8】複数の部品を組み合せてデザイン化した状態を示した図。
【図9】(A)〜(E)は図7、図8で示したデザイン化を施す際の動作過程を模式的に示した図。
【図10】複数の部品を組み合せてデザイン化した状態の他の例を示した図。
【図11】表のデザインを示した図。
【図12】飾り枠のデザインを示した図。
【図13】画板のデザインを示した図。
【図14】この発明の前提技術を説明するもので、図8に対応する図。
【図15】この発明の前提技術を説明するもので、図10に対応する図。
【符号の説明】
1 CPU
2 RAM
2−1 文書メモリ
2−2 文書構造解析テーブル
2−3 文書解析結果メモリ
2−4 自動デザインマスターテーブル
2−5 要素デザインコマンドテーブル
2−6 修飾コードテーブル
2−9 図形部品メモリ
3 記憶装置
4 記憶媒体
5 入力装置
6 表示装置
7 印刷装置
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a document processing apparatus that applies predetermined modifications to document data and a program recording medium thereof.
[0002]
[Prior art]
In recent years, document processing apparatuses such as personal computers and word processors have been able to color output graphical documents using a large number of tables, graphs, illustrations, images, etc., and operators have to consider the layout of the entire document. While specifying each element such as “title”, “heading”, “figure”, “caption”, “page background”, “arrow” by input operation, color, shading, inversion, underline, Each element was modified such as white.
[0003]
[Problems to be solved by the invention]
However, in order to create the entire document graphically, nicely, and with high sense, the operator needs knowledge of various techniques, senses, and software, as well as enormous work such as repeated trial and error while looking at the screen. Therefore, it puts a heavy burden on the operator.
Therefore, the applicant does not need the labor of the operator, and does not change the layout state of the entire document regardless of sense and knowledge, and considers the readability of the entire document for each document unit. An automatic design technique (Japanese Patent Application No. 9-29864, title of the invention: document processing apparatus and program recording medium thereof) for modifying the image in a good-looking manner was proposed.
In this type of technology, for example, when a character string is surrounded by a rectangular ruled line frame, the ruled line frame can be modified with a good appearance by replacing the ruled line frame with a shaded stereoscopic image. That is, FIG. 14 shows a modification method in this case. When modification is performed using a shadowed stereoscopic image as shown in FIG. 14A, the modification is performed according to the shape of the ruled line frame surrounding the character string. As shown in FIG. 14B, it is deformed into a vertically long shape, or as shown in FIG. In this case, if the degree of deformation is large, the original shape collapses. For example, in the case of (B), the upper and lower shadow portions are thicker than the original shape, and the left and right shadow portions are thinner than the original shape. ), The upper and lower shadows are thinner than the original, and the left and right shadows are thicker than the original. However, even with such modifications, the design looks better than the original ruled frame. Become.
Similarly, as shown in FIG. 15A, when a stereoscopic image with shadows that are semicircular at both ends is used for modification, if it is expanded in the horizontal direction, both end portions are deformed into ellipses, and the original shape is lost. The design looks better than the original ruled frame.
An object of the present invention is to improve the technique previously proposed by the present applicant. When a design target element is modified using an image according to its type, which design target element is selected Even if it is such a shape, it is possible to modify the original image without destroying it.
[0004]
[Means for Solving the Problems]
The present invention relates to a component information storage unit that divides and stores a unique image corresponding to an attribute of a design target element into a plurality of components, a document analysis unit that analyzes the type of document constituent element for each document unit, and the document Extraction means for extracting the design target element based on the analysis result analyzed by the analysis means, search means for searching for an image according to the attribute of the design target element extracted by the extraction means, and the search means When retrieved, a reading means for reading out a plurality of parts obtained by dividing the image from the part information storage means, and among the parts read by the reading means, they are arranged at predetermined positions where the aspect ratio should be maintained. The parts that are placed are scaled without changing their aspect ratio, and the parts that are placed at other positions are scaled by changing their aspect ratios. By arranging combined by connecting the goods, and characterized in that a modification processing means for modifying the design target element.
Therefore, among the plurality of stored parts, the parts arranged at a predetermined position where the aspect ratio should be maintained are enlarged / reduced without changing the aspect ratio, and the parts arranged at other positions are changed in aspect ratio. By changing and enlarging / reducing, a plurality of the enlarged / reduced parts can be connected and combined.
[0005]
According to the first aspect of the present invention, the document analysis means analyzes the types of document composition points for each document unit, and extracts design target elements based on the analysis results. For example, when “title”, “ruled line frame”, “table”, etc. are extracted as design target elements, the design target element is modified according to the type, and at that time, a plurality of parts corresponding to the type are read out. At the same time, the design target element is modified by enlarging and reducing the parts so that each part can be placed in a predetermined position of the design target element.
Therefore, when a design target element is modified using an image corresponding to the type, the original image can be modified without breaking the original image image, regardless of the shape of the design target element.
[0006]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described with reference to FIGS.
FIG. 1 is a block diagram showing the overall configuration of the document processing apparatus.
The CPU 1 is a central processing unit that controls the overall operation of the document processing device according to various programs loaded in the RAM 2. The storage device 3 has a storage medium 4 in which an operating system, various application programs, data files, character font data, and the like are stored in advance, and a drive system thereof. This storage medium 4 is fixedly provided or detachably mountable, and is composed of a magnetic / optical storage medium such as a floppy disk, a hard disk, an optical disk, and a RAM card, and a semiconductor memory. Further, programs and data in the storage medium 4 are loaded into the RAM 2 under the control of the CPU 1 as necessary. Further, the CPU 1 receives a program and data transmitted from another device via a communication line or the like and stores them in the storage medium 4 or stored in a storage medium provided on the other device. Existing programs and data can be used via a communication line or the like.
An input device 5, a display device 6, and a printing device 7 as input / output peripheral devices are connected to the CPU 1 via a bus line, and the CPU 1 controls their operations according to an input / output program.
[0007]
The input device 5 has a pointing device such as a keyboard or a mouse for inputting character string data or inputting various commands. The character string data input from the input device 5 is displayed and output on a text screen of the display device 6. The character string data mixed with kanji and converted by the kana-kanji conversion process is stored in the document memory 2-1 (see FIG. 2) in the RAM 2 as a confirmed character string.
The display device 6 is a liquid crystal display device that performs multicolor display, a CRT display device, a plasma display device, or the like, and the printing device 7 is a full-color printer device, which is a non-impact printer or a dot impact printer such as thermal transfer or ink jet.
[0008]
FIG. 2 is a diagram showing the main configuration of the RAM 2. Various memory areas are allocated to the RAM 2. The document memory 2-1 is a text memory for storing document data, and tables, graphs, illustrations, photographed images and the like can be inserted into the document.
The document structure analysis table 2-2 is referred to when the CPU 1 analyzes the contents of the document memory 2-1, and FIG. 3 illustrates the contents of the document structure analysis table 2-2. Here, the CPU 1 analyzes the contents of the document memory 2-1 for each document unit, and among the constituent elements constituting the entire document, constituent elements having predetermined attributes are used as design elements to be designed. At this time, the CPU 1 extracts design elements with reference to the contents of the document structure analysis table 2-2. The document structure analysis table 2-2 stores element analysis conditions for each design element attribute (type) in a fixed manner. For example, the element analysis condition corresponding to the design element “title” is the head of the document. It is defined that the character string is located on a line, punctuation marks do not exist, and so on. Further, element analysis conditions corresponding to the design element “large headline” define that a predetermined headline symbol exists in the first digit, punctuation marks do not exist, and the like. Furthermore, as an analysis condition for the design elements “medium headline” and “subheadline”, it is defined that the digit position of the first character is paragraphed with respect to the upper headline character string. In addition, the analysis condition of the design element “table” defines that a table frame, a cell frame, and the like exist. Further, the analysis condition of the design element “character / symbol” is defined as a specific character or symbol. The document structure analysis table 2-2 defines analysis conditions corresponding to 124 types of design elements.
[0009]
The document analysis result memory 2-3 stores and holds the analysis result obtained by analyzing the document structure. FIG. 4 shows the contents of the document analysis result memory 2-3. That is, the document analysis result memory 2-3 is configured to store the ID, position information, and surrounding free space information for each design element extracted by document analysis. The design element ID is data for identifying attributes such as “title”, “large headline”,..., And the position information is upper left and lower right two-point coordinate string data indicating a rectangular area where the design element exists, Further, the surrounding empty space information is data indicating the size of empty spaces existing in the upper, lower, left, and right sides of the design element in dot units, which are respectively detected by the CPU 1 when analyzing the document structure and stored in the document analysis result memory 2-3. Set.
[0010]
The automatic design master table 2-4 stores fixed information (design number) unique to each design element attribute, and FIG. 5A shows a part of the automatic design master table 2-4. Yes. That is, the automatic design master table 2-4 is configured to store the use / touch ID, design element ID, candidate 1 design number, candidate 2 design number,. Here, the usage / touch ID includes, for example, “planning document orientation”, “OHP orientation”, “pasted paper / advertisement orientation”, etc., “stereoscopic expression”, “planar expression”, “color”, “monochrome”, IDs “1”, “2”,... That define touches such as “flash” and “simple” are described in the automatic design master table 2-4. For example, the usage / touch ID “1” indicates that the usage is “plan” and the touch is “color”. Note that a touch that combines two or more touches such as “color” that is “flashy” or “color” that is “three-dimensional expression” is also defined as touch. Here, when the operator selects and designates an arbitrary use / touch ID, each row in the automatic design master table 2-4 corresponding to that is designated as a processing target row. In other words, the operator can select and designate an arbitrary type of design among various designs that are defined in advance according to the application / touch.
[0011]
In addition, in the automatic design master table 2-4 for each use / touch ID, all design element IDs are defined from the first number to the last number. Here, the design element IDs “1” to “124” correspond to 124 types of design elements defined in the document structure analysis table 2-2. The design number designates a design for modifying the corresponding design element, and a plurality of design numbers are defined as selection candidates for each design element. Here, the design element is indicated by its candidate 1 design number. When the design is modified, if the element cannot be modified appropriately due to the surrounding empty space, the candidate 2 design number as the next candidate is designated. That is, the candidate 2 design number designates a design that is smaller in size than the design indicated by the candidate 1 design number, and the lower candidate that follows is designated a design that is smaller than the upper candidate. Thus, the candidate 1 design number is accessed first, and if it is not appropriate in size, the design number of the next candidate 2 is accessed, and if it is detected to be inappropriate, the next candidate is accessed. The
[0012]
The element design command table 2-5 stores an execution command or the like for modifying the design element in a fixed manner, and FIG. 5B shows a part of the element design command table 2-5. That is, the element design command table 2-5 stores a design element ID, a design number, a command execution order, a command ID, 10 kinds of option numerical values OP1, OP2,..., OP10 for a plurality of records as one record data for one line. It has become. Here, in the automatic design master table 2-4, the element design command table 2-based on the design element ID and candidate design number specified for each line from the first line among the lines specified as the process target lines. 5 is addressed, and the content of the element design command table 2-5 corresponding thereto is designated as a processing target line. Here, “command execution order” indicates in what order the commands should be executed in the processing target line in the element design command table 2-5. In the example of FIG. Defined commands should be executed in the order of “33, 8, 2... 7”. “Option numerical values OP1 to OP10” define a figure number, a modification code for accessing the modification code table 2-6, position coordinates, etc. For example, an option numerical value OP1 “42” of the command ID “33” This indicates that the illustration part indicated by the graphic number “42” should be called and written as a background image of the design element. Further, the option numerical value OP1 “2” of the command ID “19” should access the modification code table 2-6 with the modification code “2”, and modify the design element with the attributes defined in the modification code table 2-6. It is shown that. Further, the command ID “4” indicates that the design element should be moved to the position indicated by the option numerical value OP1 (X coordinate) and the option numerical value OP2 (Y coordinate) with respect to the reference coordinate (upper left coordinate).
[0013]
The modification code table 2-6 stores a plurality of types of attribute items for each modification ID, and FIG. 5C shows a part of the modification code table 2-6. That is, in the modification code table 2-6, a plurality of types of attribute items are fixedly stored corresponding to the modification IDs “1”, “2”, etc. As the attribute items, for example, typeface, character type, Thickness, painting method, shadow, color, etc.
In addition, the RAM 2 includes a document design buffer 2-7, a modification result memory 2-8, a graphic component memory 2-9, a processing pointer group 2-10, an n register 2-11, and a work memory 2-12. Yes. The graphic component memory 2-9 stores a unique image corresponding to the attribute of the design element by dividing it into a plurality of components. For example, when a ruled line frame surrounding a character string is replaced with a shaded stereoscopic image and modified. As shown in FIG. 8, the three-dimensional images of the four corner parts indicated by the illustration IDs “284”, “285”, “286”, “287”, “288”, “289”, “290”, “ It is divided into nine parts and stored and managed in the upper, lower, left and right outer parts indicated by "291" and the central part indicated by "292". Further, as shown in FIG. 10, in the case of a shadow-like three-dimensional image having a semicircular shape at both ends, it is stored and managed by being divided into three parts at both ends and a central part.
[0014]
Next, the operation of the document processing apparatus will be described with reference to the flowcharts shown in FIGS. A program for realizing each function described in these flowcharts is stored in the storage medium 4 in the form of a program code that can be read by the CPU 1, and the contents thereof are stored in the work memory 2-12 in the RAM 2. Is loaded.
When the document data stored in the document memory 2-1 is designated as a document to be designed and an automatic design command is input from the input device 5, execution of automatic design processing is started according to the flowchart of FIG. .
First, since a list of usage / touch menu items is displayed based on the contents of the automatic design master table 2-4 (step A1), the operator selects and designates an arbitrary menu item from the display screen (step A1). Step A2). Assume that a document as shown in FIG. 7 is designated as a document to be designed, and “planning document orientation” / “color” is selected and designated as usage / touch.
[0015]
Then, the CPU 1 analyzes this document from the first line (step A3), extracts a design element with reference to the document structure analysis table 2-2, and detects its position and surrounding free space (step A4). ). Since the character string “Designer” in the first line shown in FIG. 7 corresponds to the title defined in the document structure analysis table 2-2, the CPU 1 displays the attribute “title”, the position information, and the surrounding free space information. They are stored in the document analysis result memory 2-3 in association with each other (step A5). Then, it is checked whether there is an element having a condition corresponding to the design element defined in the document structure analysis table 2-2 in the document (step A6). Repeat the operation. As a result, “large headline”, “medium headline”, “table”,... In the document are extracted as design elements, and the analysis results are stored in the document analysis result memory 2-3 for each design element. In this case, the character string “conventional ... development” in the rectangle is recognized as a large heading, the character string “§1.Overview” is recognized as a medium heading, and the character string “conventional function” is recognized as a subheading. A character string including a matrix-like ruled line is recognized as a table and becomes a point to be designed, but other document data is excluded from the design target.
[0016]
In this way, the entire document is analyzed, and if no design element is detected in step A6, the CPU 1 searches the automatic design master table 2-4 based on the use / touch ID selected and specified in step A2. All the rows corresponding to the usage / touch ID are designated as processing target rows (step A7). FIG. 5A shows a case where “1” is used as the application / touch ID, that is, for the project document / color is designated. Next, the CPU 1 sets the value of the processing pointer N for designating the read address of the automatic design master table 2-4 among the processing target rows in the first row (step A8). Then, it is checked whether the design element corresponding to the designated row of the automatic design master table 2-4 is set in the document analysis result memory 2-3 (step A9). The processing pointer N is updated to the next line (step A10). As a result, it is checked whether or not all the processing target lines have been designated (step A11). If the designation is not finished, the process returns to step A9 to repeat the operation of searching for the design elements set in the document analysis result memory 2-3. .
[0017]
As a result, when the corresponding design element is searched, the process proceeds to step A12, and the value of the n register 2-11 is cleared. Here, the n register 2-11 addresses the candidate design number described in the automatic design master table 2-4. After clearing the contents of the n register 2-11, the next step A13 By adding “1” to the value, the value of the n register 2-11 is set to “1” as an initial value. Then, the design element ID in the automatic design master table 2-4 designated by the processing pointer N and the candidate n design number designated by the value of the n register 2-11 are read out, and this design element ID and the candidate n design number are read out. Based on the above, the element design command table 2-5 is searched, and all lines that match them are designated as target lines (step A14). FIG. 5B shows a case where each row in the element design command table 2-5 corresponding to the design element ID “1” and the design number “2” is designated as a processing target row. Then, the value of the processing pointer M for designating the read address of the element design command table 2-5 among the processing target rows is set in the first row (step A15).
[0018]
When the design element is modified in accordance with the description contents of the element design command table 2-5 in this way, the process proceeds to step A17 to determine whether the command execution has failed. That is, this step A17 determines whether or not the design element subjected to the modification process is insufficient even if the size of the design element is adjusted based on the empty space information around the design element. Is detected, the value of the n register 2-11 is updated, the design number of the next candidate in the automatic design master table 2-4 is designated, and the same processing is repeated thereafter.
As a result, when the successful execution of the command is detected (NO in step A17), the contents of the document design buffer 2-7 (the modified design element) are stored in the modification result memory 2-8 (step A18). Then, the processing pointer M in the element design command table 2-5 is updated to the next line (step A19), and the above-described operation (steps) is performed until all processing target lines in the element design command table 2-5 are completed (step A20). A16 to A20) are repeated.
[0019]
As a result, when the end is detected in step A20, the process proceeds to step A21, where the processing pointer N of the automatic design master table 2-4 is updated, and all the processing target rows of the automatic design master table 2-4 are all processed. The above operation (steps A9 to A22) is repeated until the end (step A22). As a result, when the process of modifying all the design elements in one document is completed, this is detected in step A22 and the process proceeds to step A23, where the contents of the document memory 2-1 are displayed and output. The design elements in the memory 2-1 are replaced with the contents of the modification result memory 2-8 for display output.
[0020]
Next, in the design process described above, the operation when a design element is modified by combining a plurality of parts will be described in detail with reference to the flowchart shown in FIG.
FIG. 7 is a flowchart illustrating a case where a ruled line frame is extracted as a design element when a character string is surrounded by a ruled line frame, and the ruled line frame is modified by replacing it with a shadowed stereoscopic image as shown in FIG. It is. This shaded stereoscopic image is divided into nine as shown in FIG. First, in step B1, the position coordinates of the four corners of the ruled line frame to be designed are extracted and set as reference coordinate points. Next, the corner parts constituting the four corners of the shaded stereoscopic image are arranged at the corners of the ruled line frame while being enlarged or reduced without changing the aspect ratio (step B2). That is, FIGS. 9A and 9B are diagrams for explaining the arrangement state in this case. First, the corner part (upper left part) indicated by the illustration ID “284” is read and the upper left part of the ruled line frame is displayed. The upper left corner part is arranged so that the upper left part of this part is located at a predetermined position (a position separated by four digits and two rows) as a reference point (see FIG. 9A). Then, the corner part is enlarged or reduced so that the end point (lower right) of the upper left corner part falls within the upper left coordinate point of the ruled line frame. As a result, the upper left corner part is arranged with the size as shown in FIG. 9B on the basis of the upper left corner of the ruled line frame. This corner part retains the original aspect ratio of 2: 1.
When the arrangement of the upper left corner part is completed in this way, the process proceeds to the next step B3 to check whether the arrangement of the corner parts for the four corners has been completed. Returning to B2, next, the upper right corner part indicated by the illustration ID “285” is read, and the upper right part of the ruled line frame is used as a reference, and the scaled part is enlarged and reduced without changing its aspect ratio. Similarly, the lower left corner part indicated by the illustration ID “286” and the lower right corner part indicated by the illustration ID “286” are sequentially read out and enlarged without changing the aspect ratio with respect to the lower left and lower right of the ruled line frame. Reduce and place.
[0021]
When all the corner parts for the four corners have been arranged in this way, the process proceeds to step B4, where the outer parts are read out and arranged in an enlarged and reduced manner while changing the aspect ratio so as to connect the corner parts. That is, first, the upper part indicated by the illustration ID “288” is read out, and the upper left part thereof is aligned with the lower right part of the upper left corner part (see FIG. 9C). Then, the row direction of the upper part is enlarged / reduced to fit the end point (lower right) position of the upper left corner part, and the upper part is enlarged / reduced in the digit direction so that the lower right part of the upper part is located at the lower left corner of the upper right corner part (See FIG. 9D). When the placement of the upper part is completed in this way, the process proceeds to the next step B5 to check whether all the upper, lower, left, and right outer parts have been placed. Returning to B4, the next outer part, the left part indicated by the illustration ID “289”, is read out, and is arranged in an enlarged and reduced manner while changing its aspect ratio so as to connect the upper left corner part and the lower left corner part. Hereinafter, similarly, the right part and the lower part indicated by the illustration IDs “290” and “291” are sequentially read out, and are arranged in an enlarged and reduced manner while changing the aspect ratio so as to connect the corner parts.
[0022]
When all the upper, lower, left, and right outer parts have been arranged in this way, the process proceeds to the next step B6, and finally the central part indicated by the illustration ID “292” is read and the aspect ratio is set so as to fill the central part in the ruled line frame. Scale and arrange while changing. That is, the upper left corner of the central part is aligned with the lower right corner of the upper left corner part (see FIG. 9E), and the row direction and column direction of the central part are adjusted so that the lower right corner of the central part is within the upper left position of the lower right corner part. Scale. As a result, when all the parts have been arranged, the combination of a plurality of parts is grouped as a single figure (step B7), and it is checked whether the grouping has succeeded (step B8). The frame is deleted and replaced with a grouped image (step B9). In this case, by grouping a combination of a plurality of parts as one image, it becomes a reference point for only four corners, and a seamless image can be obtained.
[0023]
FIG. 10 shows another example of modification by combining a plurality of parts. A shadowed stereoscopic image having a semicircular shape with both ends semicircular is stored in three parts divided into both end parts and a central part, and the both end parts are designed. When arranging the target ruled line frame, it is enlarged / reduced without changing its aspect ratio, and the central part is arranged by changing its aspect ratio so as to connect both end parts.
FIG. 11 shows an example of modifying a table by combining a plurality of parts. Each cell constituting the table is generated by combining a plurality of parts. In this case, one cell is generated by combining a total of six types of parts including shadow parts in a predetermined order. In addition, Fig. 12 shows a decoration frame image generated by combining six types of parts. Ribbon parts are arranged without changing their aspect ratio, but corrugated line parts correspond to design target elements. Arrange with different aspect ratios. In FIG. 13, an image representing the drawing board is generated by combining eight kinds of parts. In this case, six kinds of fine parts are arranged without changing the aspect ratio, and the drawing board has a large size. Parts are arranged by changing the aspect ratio according to the design target element. At this time, the state in which the paper is placed on the plate is expressed by superimposing the white parts on the black parts.
[0024]
As described above, in this document processing apparatus, the document structure of the entire document is analyzed for each document unit, and among the constituent elements, the constituent elements of the attributes defined in the document structure analysis table 2-2 are to be designed. Are extracted as design elements, and the automatic design master table 2-4 is searched for each extracted design element based on its attributes, and the description contents of the element design command table 2-5 are executed according to the search result. Therefore, each design element can be modified based on the contents defined in the automatic design master table 2-4, the element design command table 2-5, and the modification code table 2-6 in advance. Therefore, it is possible to automatically modify each element that should be designed in the document, such as title, headline, figure, caption, page background, text / symbol, arrow, etc., without any manual work. A high-sense document with good quality.
In addition, the entire document can be designed according to the designated use / touch by simply selecting and specifying the touch such as the plan book orientation, OHP orientation, etc., and 3D expression, color, flashy, etc. A desired design desired by the user can be obtained.
[0025]
In addition, it can be modified by combining multiple illustration parts, and the size of each part can be adjusted, so that a variety of images can be obtained, and the size and shape of the design element can be adjusted. An image can be obtained. In this case, when a plurality of parts according to the design target element are combined and arranged, the parts arranged at a predetermined position are enlarged or reduced without changing the aspect ratio, and the parts arranged at other positions are arranged. Since the aspect ratio is changed and enlarged / reduced, for example, as shown in FIG. 8, even if it is designed to be vertically long or horizontally long, a design that approximates the original shape can be obtained. In the case shown, both ends are not deformed into an ellipse, and approximate to the original shape. Therefore, when a design target element is modified using an image corresponding to the type, the original image can be modified without breaking the original image image, regardless of the shape of the design target element.
[0026]
Note that the present invention is not limited to the above-described embodiment, and any type of image can be obtained by combining a plurality of components. The automatic design master table 2-4, the element design command table 2-5, and the modification code table 2-6 are separate tables. However, they may be configured as one table, and the default values of each table are set. If the operator can arbitrarily change it, a part of the designed document can be modified according to the preference of the operator.
Also, the contents of the document structure analysis table 2-2 are displayed in a list, and when an operator selects and designates an arbitrary design element, only the selected design element is extracted from the document as a design target. You may do it.
[0027]
【The invention's effect】
According to the present invention, when a design target element to be designed is modified using an image according to its attribute, the image is divided and arranged at a predetermined position where the aspect ratio should be maintained among a plurality of parts stored. The parts to be expanded / reduced without changing the aspect ratio, and the parts arranged at other positions are enlarged / reduced by changing the aspect ratio, and these enlarged / reduced parts are connected and combined and arranged. Even if the design target element has a complicated shape, it is possible to perform modification without damaging a complex original image by connecting a plurality of parts and arranging the parts in combination. In other words, even if scaling is performed according to the number of characters and aspect ratio of the design target element, the design itself is not distorted or it does not become a shape that does not match the design target, and a good design approximating the original shape can be obtained. it can.
[Brief description of the drawings]
FIG. 1 is a block diagram showing the overall configuration of a document processing apparatus.
FIG. 2 is a diagram showing a main configuration of a RAM 2;
FIG. 3 is a view showing the contents of a document structure analysis table 2-2.
FIG. 4 is a diagram showing a configuration of a document analysis result memory 2-3.
5A is a diagram showing a part of the automatic design master table 2-4, FIG. 5B is a diagram showing a part of the element design command table 2-5, and FIG. 5C is a modification code table 2; The figure which showed a part of -6.
FIG. 6 is a flowchart showing an automatic design process.
FIG. 7 is a flowchart illustrating an operation when designing by combining a plurality of components.
FIG. 8 is a diagram showing a state where a plurality of parts are combined and designed.
9A to 9E are diagrams schematically showing an operation process when the design shown in FIGS. 7 and 8 is performed.
FIG. 10 is a view showing another example of a state where a plurality of parts are combined and designed.
FIG. 11 is a diagram showing a table design.
FIG. 12 is a diagram showing a design of a decorative frame.
FIG. 13 is a diagram showing the design of a drawing board.
FIG. 14 is a diagram corresponding to FIG. 8 for explaining the prerequisite technology of the present invention.
FIG. 15 is a diagram corresponding to FIG. 10 for explaining the prerequisite technology of the present invention.
[Explanation of symbols]
1 CPU
2 RAM
2-1 Document memory
2-2 Document structure analysis table
2-3 Document analysis result memory
2-4 Automatic design master table
2-5 Element design command table
2-6 Modification code table
2-9 Graphic parts memory
3 Storage device
4 storage media
5 input devices
6 Display device
7 Printing device

Claims (3)

デザイン対象要素の属性に応じた固有の画像を複数の部品に分割して記憶する部品情報記憶手段と、
文書単位毎に文書構成要素の種類を解析する文書解析手段と、
この文書解析手段によって解析された解析結果を基にデザイン対象要素を抽出する抽出手段と、
この抽出手段によって抽出されたデザイン対象要素の属性に応じた画像を検索する検索手段と、
この検索手段で画像が検索された際に、当該画像を分割して成る複数の部品を部品情報記憶手段から読み出す読出手段と、
この読出手段によって読み出された各部品のうち、縦横比を保持すべき所定位置に配置される部品についてはその縦横比を変えないで拡大縮小し、その他の位置に配置される部品についてはその縦横比を変えて拡大縮小して、それら拡大縮小した複数の部品を連結して組み合せ配置することにより、デザイン対象要素を修飾する修飾加工手段と
を具備したことを特徴とする文書処理装置。
Component information storage means for dividing and storing a unique image corresponding to the attribute of the design target element into a plurality of components;
Document analysis means for analyzing the types of document components for each document unit,
Extraction means for extracting design target elements based on the analysis result analyzed by the document analysis means;
Search means for searching for an image according to the attribute of the design target element extracted by the extraction means;
A reading unit that reads out a plurality of components obtained by dividing the image from the component information storage unit when an image is retrieved by the retrieval unit;
Among the parts read by the reading means, the parts arranged at a predetermined position where the aspect ratio should be maintained are enlarged / reduced without changing the aspect ratio, and the parts arranged at other positions are A document processing apparatus comprising: a modification processing unit configured to modify a design target element by connecting a plurality of parts that have been enlarged / reduced by changing an aspect ratio and combining the enlarged / reduced parts.
前記修飾加工手段は、部品を組み合わせ配置する際に所定部品の上に他の部品を重ね合わせるようにしたことを特徴とする請求項1記載の文書処理装置。  2. The document processing apparatus according to claim 1, wherein the modification processing unit is configured to superimpose another part on a predetermined part when the parts are combined and arranged. コンピュータを、
デザイン対象要素の属性に応じた固有の画像を複数の部品に分割して記憶する部品情報記憶手段、
文書単位毎に文書構成要素の種類を解析する文書解析手段、
この文書解析手段によって解析された解析結果を基にデザイン対象要素を抽出する抽出手段、
この抽出手段によって抽出されたデザイン対象要素の属性に応じた画像を検索する検索手段、
この検索手段で画像が検索された際に、当該画像を分割して成る複数の部品を前記部品情報記憶手段から読み出す読出手段、
この読出手段によって読み出された各部品のうち、縦横比を保持すべき所定位置に配置される部品についてはその縦横比を変えないで拡大縮小し、その他の位置に配置される部品についてはその縦横比を変えて拡大縮小して、それら拡大縮小した複数の部品を連結して組み合せ配置することにより、デザイン対象要素を修飾する修飾加工手段
として機能させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体。
Computer
Component information storage means for storing a unique image corresponding to the attribute of the design target element divided into a plurality of components ,
Document analysis means for analyzing document component types for each document unit,
Extraction means for extracting design target elements based on the analysis results analyzed by the document analysis means;
Search means for searching for an image corresponding to the attribute of the design target element extracted by the extraction means;
A reading means for reading out a plurality of parts obtained by dividing the image from the parts information storage means when an image is searched by the searching means;
Among the parts read by the reading means, the parts arranged at a predetermined position where the aspect ratio should be maintained are enlarged / reduced without changing the aspect ratio, and the parts arranged at other positions are Modification processing means for modifying the design target element by changing the aspect ratio, scaling, connecting and combining the parts
A computer-readable recording medium in which a program for functioning as a computer is recorded .
JP31157497A 1997-01-30 1997-10-29 Document processing apparatus and program recording medium thereof Expired - Fee Related JP3817871B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP31157497A JP3817871B2 (en) 1997-01-30 1997-10-29 Document processing apparatus and program recording medium thereof
US09/014,318 US6167410A (en) 1997-01-30 1998-01-27 Document processing apparatus for adding predetermined design types to an original document
KR1019980002583A KR100311083B1 (en) 1997-01-30 1998-01-30 Document processing device
CN98106401A CN1102778C (en) 1997-01-30 1998-02-04 File processing device capable of simply modifying file data and program storage medium
HK99101837.7A HK1017102B (en) 1997-01-30 1999-04-27 Document processing apparatus capable of simply decorating document data

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2986497 1997-01-30
JP9-29864 1997-01-30
JP31157497A JP3817871B2 (en) 1997-01-30 1997-10-29 Document processing apparatus and program recording medium thereof

Publications (2)

Publication Number Publication Date
JPH10275146A JPH10275146A (en) 1998-10-13
JP3817871B2 true JP3817871B2 (en) 2006-09-06

Family

ID=26368118

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31157497A Expired - Fee Related JP3817871B2 (en) 1997-01-30 1997-10-29 Document processing apparatus and program recording medium thereof

Country Status (1)

Country Link
JP (1) JP3817871B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7552169B2 (en) 2020-09-08 2024-09-18 富士フイルムビジネスイノベーション株式会社 Information processing device and program

Also Published As

Publication number Publication date
JPH10275146A (en) 1998-10-13

Similar Documents

Publication Publication Date Title
US4785296A (en) Method and system for displaying image data
KR100311083B1 (en) Document processing device
JPH09505422A (en) Method and apparatus for synchronizing, displaying and manipulating text and image documents
JP3388451B2 (en) Handwriting input device
JP3817871B2 (en) Document processing apparatus and program recording medium thereof
US5727224A (en) Document image processor for inserting and editing bracket symbols and associated text
JP3376254B2 (en) Display device, display control method, and recording medium
JPH11167571A (en) Document processing apparatus and program recording medium therefor
JP3139955B2 (en) Information processing method and apparatus
JPH1166062A (en) Document processing apparatus and program recording medium therefor
JP2550562B2 (en) Character display device
JP4462508B2 (en) Information processing apparatus and definition information generation method
JPH0325235Y2 (en)
JPH10198695A (en) Information processing device
JPH11306172A (en) Document data processing apparatus and program recording medium therefor
JPH07152737A (en) Document creation device
JPS61296388A (en) Rule deletion
JPH087012A (en) Method and device for editing output mode of data
JPH10307927A (en) Document processor
JP2000163271A (en) Method and apparatus for information processing
JPS62156768A (en) Word processor with memo function
JPS61281286A (en) information processing equipment
JPH11119879A (en) Information processor, and definition method
JPH05101068A (en) Document processor
JPH11232254A (en) Document data processing apparatus and program recording medium therefor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040709

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041228

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050204

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060202

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060228

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060328

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060523

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060605

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090623

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100623

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110623

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110623

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120623

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120623

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130623

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees