JP2962720B2 - Image processing method - Google Patents

Image processing method

Info

Publication number
JP2962720B2
JP2962720B2 JP62289157A JP28915787A JP2962720B2 JP 2962720 B2 JP2962720 B2 JP 2962720B2 JP 62289157 A JP62289157 A JP 62289157A JP 28915787 A JP28915787 A JP 28915787A JP 2962720 B2 JP2962720 B2 JP 2962720B2
Authority
JP
Japan
Prior art keywords
line
ruled line
cell
text
ruled
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
JP62289157A
Other languages
Japanese (ja)
Other versions
JPH01130265A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP62289157A priority Critical patent/JP2962720B2/en
Priority to DE3838729A priority patent/DE3838729C2/en
Publication of JPH01130265A publication Critical patent/JPH01130265A/en
Priority to US07/948,621 priority patent/US5867159A/en
Application granted granted Critical
Publication of JP2962720B2 publication Critical patent/JP2962720B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、表組等の線分の編集が可能な画像処理方法
に関するものである。 〔従来の技術〕 従来の文書処理装置における作表方式では、罫線を引
く手段としては、 (1)罫線の始点、終点の2点を指示する。 (2)罫引する本数を指定し、既に引かれている基準と
なる罫線と、別に指示された位置との距離を罫引する本
数で分割して罫線の位置を求め、それらの求められた位
置の罫線を最も近い格子点であるグリツド(第2図
(a),(b)100)に整列させる。 というような方法がとられていた。 これを第2図をもとに説明する。第2図(a)の15は
基準線である。この基準線とカーソル20との間の距離
(基準線が横罫線の場合、y座標の差分、縦罫線の場合
X座標の差分で、この例の場合はy座標の差分)を罫引
の本数5で割り、罫線の間隔を求める。この間隔で5本
の罫線の位置を求めると(a)の点線16のようになる。
これらの罫線の位置を最も近いグリツド100に整列し、
第2図(b)のような結果が得られる。 しかし一般的に文書に用いられる表は、行幅の等しい
表が多いにもかかわらず、上記分割罫引の方法では、第
2図(b)のように、最大1グリツド間隔分のずれが生
じ等間隔な罫線を引くことが困難であった。又、1つの
表を作成するのに1本の罫線に平行で、長さが等しい罫
線をその度毎に描画させるために操作が繁雑であった。 〔目 的〕 以上の点に鑑み、本発明は、表示画面上に線分を表示
する表示工程と、前記表示工程により表示される線分の
中から所望の線分を指定する指定工程と、前記表示画面
上で位置を指示する位置指示工程と、前記指定工程によ
り水平な線分が指定された場合、該指定された線分を記
述する罫線レコードのy座標のデータを前記位置指示工
程により指示された位置のy座標に置き換えた罫線レコ
ードを新たに作成することにより、該指示された位置を
通り、該指定された線分のy座標のみ変更した線分を表
示し、また、前記指定工程により垂直な線分が指定され
た場合、該指定された線分を記述する罫線レコードのx
座標のデータを前記位置指示工程により指示された位置
のx座標に置き換えた罫線レコードを新たに作成するこ
とにより、該指示された位置を通り、該指定された線分
のx座標のみ変更した線分を表示するよう制御する表示
制御工程とを有することを特徴とする画像処理方法を提
供することを目的とする。 〔実施例〕 以下、図面を用いて本発明を詳細に説明する。なお、
本発明でいう文書は、文書(表も含む),図形,イメー
ジ等を含めて総称している。又、本発明の機能が実行さ
れるのであれば、単体の機器であっても、複数の機器か
ら成るシステムであっても、LAN等のネツトワークを介
して、処理が行われるシステムであっても本発明が適用
されることは言うまでもない。なお、本発明の文書処理
は元来、机上でペン等により人間が描くという処理を電
子的に行うという基本的な考えがあり、明細書中「線を
引く」、「移動」…等は全く電子的な処理によるもので
ある。 [システムブロツク図] 第1図は本発明に係る一実施例の文書処理装置のシス
テムブロツク図である。1はラスタ・スキヤン表示方式
で使用されるCRT部、2は一画面分の表示パターン情報
を記憶するビデオRAM(VRAM)、3はVRAM2に対するパタ
ーン情報の書き込み、CRT1への読み出しを制御する表示
制御部である。4はマイクロプロセツサ(MPU)でこの
装置の主制御である。5は後述フローチヤートに示すよ
うな制御プログラムや文書データを格納するエリアを有
する主メモリである。MPU4には文字データ等の入力を行
うキーボード8及びCRT上の位置の指定を行い、図形等
のデータの入力編集を行うポインテイング・デバイス
(以下P.D)9が接続されている。6はハードデイスク
装置でこの中に文書フアイルや後述のフローチヤートに
示す様なプログラムや文字フオントが格納されている。
10は作成された文書を出力するためのプリンタで、両面
出力ユニツト等を有している。11は画像等のイメージデ
ータを読み込むためのイメージスキヤナ、12は文書フア
イル等の保存を行うためのフロツピーデイスク装置であ
る。これらの各構成ブロツクはI/Oバス7で接続されて
いる。 [文書編集画面] 以上のような構成からなる文書編集装置は組版ルール
に基づく字づめ、文字の配列及びその印刷形式をCRT1上
に表示し、キーボード8、P.D9を用いて即応性のある文
書編集方法を画面上の任意の領域、又はその領域内に枠
空けされた領域についても行うことができる。第3−1
図は文書編集画面の例で、20はP.Dによって操作される
カーソル、21は印刷形式を画面上に表示した用紙ウイン
ドウである。用紙には第3−2図に示すように、文字5
0、図形51、イメージ52、フオーム53のデータを入力す
ることができる。それぞれには優先順位が決められてお
り、フオーム、イメージ、図形、文字の順に重ね合わせ
て表示される。なお、後述の表組は上記文字と同等と考
えるものとする。又、第3−1図の22はユーザメニユー
で文字入力用かな漢字ウインドウ、機能選択用フアンク
シヨンキーが表示される。23はステータスラインでキー
ボードの入力モードやオペレータに対するメツセージな
どが表示される。24は用紙上に枠空けされた領域(以下
枠と呼ぶ)で、枠内には文字(小組)又は表組及び図形
イメージのデータが入力でき、用紙同様、各々の優先順
位に従い重ね合せて表示される。 [ワープロ編集] 次に各編集機能について説明する。ワープロ編集は、
用紙又は枠内の文字の入力、編集を行うことができる。
文字の入力はローマ字かな変換、かな漢字変換等の機能
を用いて行われる。各用紙には書式が割当てられてい
て、用紙サイズ、用紙中の文書等の入力編集する領域で
ある版面の位置、段組の数、段中の行数、本文の文字サ
イズ、書体(明朝、ゴシツク等)、ノンブル(ページ番
号)、柱(欄外の見出し)等が定義されている。文字は
この書式に従って組まれて表示又は印刷される。又編集
機能により部分的な文字サイズ、書体の変更、アンダー
ライン,圏点,ルビ,上付,下付文字等の文字修飾,セ
ンタリング,右寄せ,左寄せ,均等割付等の行そろえ等
も行う。さらに、文字列を検索して、他の文字列に置換
する検索置換の機能も持つ。又、文字の移動、入力、削
除に供い、文字に追従して動く、浮動枠の枠空け、サイ
ズ等の変更、消去等を行う浮動枠編集の機能を持つ。 [図形編集] 次に図形編集は、直線、円、矩形、だ円等の図形の入
力及び面種、線種の変更、図形の移動、複写、消去、変
形、回転、拡大、縮小等の編集機能、複数のレイアの層
から構成され、各レイア単独の表示、編集ができ、複数
レイアを重ねて表示することができる多種レイア構造な
どの機能を持つ。 [イメージ編集] イメージ編集はイメージスキヤナからの画像の入力、
イメージデータの回転、反転、移動、複写、消去並びに
1ドツト単位で編集を行う、ドツト単位編集、イメージ
データを部分的に切り出すトリミングの機能を有する。 [固定枠編集] 次に固定枠編集は浮動枠とは異なり、用紙上の固定位
置に枠空けされ、文字の移動に依存しない枠の枠空け、
サイズ変更、移動、消去等の機能を持つ。 [表組処理] 次に本発明の中心である表組処理について説明する。
表組は小組の入っていない枠に対して編集を行うことが
できる。機能は罫線を引いたり、移動,削除を行う罫線
編集と、文字を入力したり、アンダーライン,ルビなど
の修飾を行う文字編集とに大きく2つに分けられる。罫
線編集は罫線を引いて表を作り、セルを呼ばれる罫線で
囲まれた矩形の領域を作成することが目的である。文字
はこのセルの中に入力することができる。文字編集は、
罫線編集で作られたセルの中に文字を入力することが目
的である。これら2つの編集機能を用いる事により、良
質かつ複雑な表を早く容易に作成できる。 [表組データテーブルレイアウト] 第4図はハードデイスク中の文書データの1部である
表組データテーブルのレイアウトの一例を示す図、制御
テーブル罫線テーブル、テキストテーブル、セル(第5
−2図の様な枠)属性テーブルから構成される。制御テ
ーブルは表組データテーブル全体を管理するためのもの
である。statは表組データ型式を表わす番号が格納され
ている。measrは内部記憶座標単位からCRT又はプリンタ
座標単位への変換のための制御情報が格納されている。
次に斜線、横線、縦線、テキスト、セル属性の各々のオ
フセツト(offset)およびカウントが格納されている。
オフセツトは罫線テーブルの斜線、横線、縦線及びテキ
ストデータテーブル、セル属性テーブルのテーブル領域
の始点アドレスを示すデータである。又、カウントは斜
線、横線、縦線及びテキスト、属性の各レコードの個数
を示すもので、斜線レコードはn1個横線レコードはn2
個、縦線レコードはn3個、テキストレーコドはn4個、セ
ル属性レコードはn5個である。これらのoffsetとcount
により罫線テーブル、テキストテーブル、属性テーブル
の領域を把握することができる。 [第4図罫線テーブル] 罫線テーブルは斜線、横線、縦線各々の情報の集まり
である。POS(x,y)は、各線の開始位置が格納されてい
る。line styleは例えば実線一点鎖線のような各線の
線種を表わす情報が格納されている。line widthは各
線の太さの情報が格納されている。flagは各罫線のロツ
ク情報が格納されている。roundは、横線と縦線の交点
の角丸めの情報が格納されている。横線レコード、縦線
レコードのlengthは各線の長さの情報が格納されてい
る。斜線のw−length,h−lengthはそれぞれ横方向、縦
方向の長さの情報が格納されている。横線レコードのテ
キストoffsetは、その横線が構成するセルに対応するテ
キストデータがテキストテーブルのどの位置に格納され
ているかを示すオフセツトが格納されている。テキスト
を持たない場合は−1の値が格納されている。罫線テー
ブルの各レコードは、POS(x,y)の示す開始位置情報に
より、斜線、横線はx座標値昇順、縦線はy座標値昇順
に整列されている。なお、この罫線はセルを構成する素
片といっても良い。 [第4図テキストテーブル] テキストテーブルは可変長さテキストレコードから構
成される。属性offsetは、そのテキストの属性、例えば
組み方向(縦組/横組)、文字の大きさ、左,右,セン
タリングなどの文字揃え、行間、字間等がセル属性テー
ブルのどこに格納されているかを示すオフセツトであ
る。text countにはテキストデータの文字数が格納さ
れている。テキストデータは文字コードの配列でtext
count個の2バイトコードから成る。flagはセルの表示
状態などのフラグがセツトされる。テキストレコードは
文字又は属性を持ったセルに1つずつ存在し、このテキ
ストレコードに対する属性レコードも必ず1つ存在す
る。但し、属性がまったく同じテキストには同じ属性が
割り当てられる。 [第4図セル属性テーブル] セル属性テーブルは可変長のセル属性レコードから構
成される。attrsizは1つのセル属性のサイズでバイト
数が格納される。flgは使用されているか未使用かのフ
ラグが格納されている。meshはセルの中塗りパターン番
号が格納されている。kum−fは縦組か横組かのフラ
グ、字間,文字ピツチどちらの指定か、行間,行ピツチ
どちらの指定かのフラグが格納されている。aldpは、
上,下,左,右の文字揃え、回転表示の回転角度、表示
方式(白抜き、重ね書きなど)の情報が格納されてい
る。fontは文字書体(明朝,ゴシツクなど)の情報が格
納されている。psは文字の大きさが格納される。lnsp.c
hspはklm−fに従って、行ピツチ又は行間、文字ピツチ
又は字間の値が格納される。lrmgn,udmgnは左右、上下
のマージンの値が格納される。 オペレータは後述する分割罫引や連続罫引を用いて、
後述する様に第10図のように図形的に罫引を行うことが
できるが、内部的には縦横の罫線は、第5−1図に示す
ように交点において分割されて記憶される。この様に記
憶しているので、表を描くときには図形的に行い、各セ
ルに対して編集(1つのセルの左辺のみを消去する等)
する時は、各素片について行うことが可能となる。又、
各セルのテキストデータは各セルを構成する罫線のうち
左上端の横罫線(第5−2図の太線で示した罫線)が保
持している(第5−2図)。 [分割罫引] 第6図から第8図を用いて、複数の平行な罫線を等間
隔に引く方法について説明する。第6図はその制御フロ
ーチヤートである。まずキーボード又はP.Dにより分割
罫引を指示すると第7図40の分割数入力ウインドウが表
示される。第6図のstep1においてキーボードより、平
行で等間隔な罫線(分割罫線)の本数(分割数)を入力
する。第7図では分割数を10と入力したところを示して
いる。step2で分割罫線の基準となる基準線第7図41を
決定する。これは、すでに引かれている罫線上にP.Dに
よりカーソル20を動かし、P.Dのボタンを1度押す(以
下1クリツク)か、又は罫線を罫引する(罫線の始点で
P.Dのボタンを押し、押したままカーソルを終点へ移動
し、ボタンを放す)ことによって基準線は決定される。
次にstep3において任意の位置にカーソルを動かし、P.D
のボタンを押すと、基準線とカーソルの位置との距離
(基準線が横罫線ならy座標の差分、縦罫線ならx座標
の差分)を求めこの距離を分割数で割ることにより、分
割罫線間距離(第8−1図(a)L1)を求める。なお、
第8−1図では横罫線である。次に分割罫線が全てグリ
ツド100に整列するようにstep4でstep3で求めた距離を
グリツド間隔の整数倍に近似する。近似は、 によって行われる。割り算は小数点以下切り捨てで行わ
れるために求める値はグリツド間隔の整数倍として求め
られる(第8−1図(b)L2)。次に第6図のstep5に
おいてstep4で求められた分割罫線間隔で分割数の数だ
けの分割罫線を表示する(第8−2図42)。以上第6図
step3以降をP.D.のボタンが放されるまで繰り返す。オ
ペレータは罫線間隔が適当になるまでP.Dのボタンを押
しながらカーソルを移動する。これに応じて等間隔の複
数の罫線が、リアルタイムに表示される。P.Dのボタン
を放すことにより罫線間隔が決定されて、分割罫線のレ
コードが登録される。 [連続罫引] 次に、任意な位置に平行な罫線を連続して罫引する手
段について説明する。キーボード又はP.Dにより連続罫
引を指示することにより開始される。連続罫引の制御フ
ローチヤートを第9−1図に示す。まずsetp1において
基準線を決定する。これはP.Dにより既に引かれている
罫線上にカーソルを移動し、1クリツクするか、罫線を
罫引することによって決定される(第9−2図41)。次
にstep2において基準線と平行な罫線を引きたい位置に
カーソル20を移動し、1クリツクするとstep4〜7にて
基準線が縦罫線なら基準線のx座標を、横罫線ならy座
標をクリツク位置に最も近いグリツドの座標に置き変え
たレコードを登録する(第10図)。以上step2以降、1
クリツクを繰り返すことにより、連続して平行線を引く
ことができる。 [罫線消去] 罫線消去によるテキストデータの移動について説明す
る。 まず、第11図(a)は横罫線の消去に関する制御フロ
ーチヤートである。step1において消去される横罫線が
デキストを持っているかをチエツク(第4図横線レコー
ドのテキストoffsetが−1でないかどうか)し持ってい
なければ(−1ならば)横罫線レコードを消去する(st
ep5)。もしテキストを持っていれば、step2でその横罫
線の上はセルかどうかをチエツクし、セルでなければst
ep4にてテキストデータを消去し、step5で罫線データを
消去する(第12−1図(b)のH3の消去のような場
合)。上がセルの時は(第12−1(a)のH1を消去のよ
うな場合)罫線の消去によりセルC1とC2が合成されるも
のと扱って、step3にてH1のテキストデータを上のセル
のテキストデータであるH2の保持するテキストデータに
合成し、第12−1図(a)の左図ような結果を得る。な
お、本発明でいうテキストの合成は第4図のセルの属性
テーブルのaldp等によって合成先のセルの属性に基づい
て行われる。つまり第12−1図の(a)でセルC1の属性
の1つに「センタリング」があったとすると、H1を消去
することによりできるセルの属性も「センタリング」と
なり、合成テキストの「ああいい」がセンタンリングさ
れる。これは他のテキストの合成でも同様である。 表組における文字列の再配列つまり、文字の合成につ
いて第12−2図から第12−3図を用いて説明する。第12
−2図は、第4図のテキストテーブルだけを示した図で
ある。まず(a)のようにある合成先テキスト(第12−
1図(a)の例ではH2の保持しているテキストレコー
ド)を第12−2図(b)のように抜き出し、抜いたテキ
ストレコード以降のテキストテーブルを(c)のように
前に詰める。この時、この詰められたテキストレコード
を保持する横罫線のテキストoffsetは、ずれるので横罫
線テーブルのレコードのテキストoffsetを順に調べ、合
成先テキストのオフセツトより大きいテキストoffsetを
持つ罫線レコードのテキストoffsetから合成先テキスト
のサイズを減ずることにより、全ての横罫線のテキスト
offsetは補正される。次に抜き出しておいた合成先テキ
ストをテキストテーブルの最後尾に挿入し、合成先横罫
線レコードのテキストoffsetに挿入された位置を格納す
る。次に合成元テキストも同様に、合成先テキストの後
に移動し(e)のような状態にする。第12−3図(a)
がテキストテーブルの最後尾に移動された合成先、合成
元それぞれのテキストレコードである。次に合成元テキ
ストレコードのヘツダ部(第12−3図(a)の110)を
取り、それ以降を前に詰め、第12−3図(b)のように
し、合成先テキストレコードのtext countに合成元テ
キストレコードのtext countを加える。さらに合成元
横罫線レコードのテキストoffsetを−1にすることによ
り合成が完了する。 次に第11図の(b)は縦罫線を消去した時の制御フロ
ーチヤートである。step1において消去される縦罫線が
セルの左辺を構成する罫線かどうかを調べる。もしそう
でなければ、step4にて罫線レコードを消去して終る。
もし左辺を構成する罫線ならば(例えば第12−1図の
(b)のV1)そのセル(第12−1図(b)のC3)の左上
端横罫線H3がテキストを持っているかをチエツクする
(step2)。持っていかなければstep4へ、もし持ってい
れば、その縦罫線の左側がセルかどうかをチエツクする
(step3)。もしセルでなければstep4へ、セルならば
(例えば第12−1(c)のV3を消去する場合)step4に
て右側のセルのテキストへ合成(H5のテキストをH4のテ
キストへ合成)する。 [罫線移動] (横罫線移動) 横罫線の移動について説明する。第13図はその制御フ
ローチヤートである。まずstep1において移動される罫
線がテキストデータを持っているかどうか(第4図横罫
線レコードのテキストoffsetが−1でないかどうか)を
チエツクし、持っていなければ(−1ならば)、そのま
ま移動する。もしテキストを持っていればstep2におい
てその横罫線の上はセルかどうかをチエツクする。セル
でなければテキストデータも罫線と一緒に移動する(第
14図(c)のH9をH9′の位置に移動。H9′はテキストを
持っていたが、セルでなくなったのでテキストは表示さ
れない第14図(c)右図)。もし上がセルであればstep
3においてその罫線を移動した結果がセルを構成するか
どうかをチエツクする。もし移動先もセルだったら(第
14図(b)のH8をH8′へ移動した時移動先はセル9′で
ある)テキストデータは罫線と一緒に移動する。もし移
動先がセルでなかったら(第14図(a)H6をH6′へ移
動)、step4でその罫線のテキストデータは上のセルの
テキストデータへ合成される(H6のテキストをH7へ合
成)。なお、この合成については第12−2図、第12−3
図における説明と同様である。 (縦罫線移動) 次に縦罫線の移動について説明する。第15図はその制
御フローチヤートである。まずstep1において移動罫線
は、セルの左辺を構成するかをチエツクする。もしNoな
らばstep7にて罫線を移動して終る。Yesならstep2にお
いて、そのセルの左上端横罫線(第16図(c)のV5を移
動しようとした時のH15)はテキストを持っているかを
チエツクする。もしNoならばstep7へ、もし持っていれ
ばstep3にてその移動罫線の左側はセルかどうかをチエ
ツクする。セルでなければstep7へ(第16図(c)のV5
をV5′に移動、H15のテキストはセルでなくなるため表
示されなくなる。)、セルであればstep4に進み、移動
先がセルかどうか判定する。セルであればstep1に進
み、移動元のセルの左上端横罫線のテキストを移動先の
セルの左上端横罫線に合成する(第16図(b)のH13の
テキストをH13′のテキストに合成)。もしセルでなけ
れば(第16図(a)のV3をV3′へ移動)移動元のセルの
左上端横罫線(H11)のテキストを移動罫線の左側のセ
ル(C6)の左上端横罫線(H10)のテキストに合成する
(H10′の罫線のテキストとする)。 [セル消去] 次に消去したいセルに隣接するセルを壊すことなくセ
ル単位で罫線を消去する方法について説明する。まず、
キーボード又はP.Dによりセル消去を指示する。次に消
去したいセルが1つならばP.Dによりそのセルを1クリ
ツク(第17図(a))する。複数ならば第17図(b)に
示すようにP.Dのボタンを押し、押したままカーソルを
移動して範囲を指定し、ボタンを開放する。この場合P.
Dのボタンを押し下げた位置と、開放した位置の2点よ
りできる矩形(第17図線で示す)に接するすべてのセル
がセル消去の対象となり、反転表示される。消去したい
セルが指示されたら、まず、第4図の罫線テーブル中の
横罫線レコードを順に第18図に示す制御フローチヤート
のように処理する。まず、step1において、罫線の下は
セルかどうかを調べる。言い換えれば、この罫線はセル
の上辺を構成するかどうかを調べる。もしセルならばst
ep2においてそのセルが反転されているか(セル消去の
対象か)どうかを調べる。反転されていればstep3にお
いてその罫線の上がセルかどうか(セルの下辺を構成す
るかどうか)を調べる。もしセルならばstep4において
そのセルは反転されているかどうかを調べる。もし反転
されていればstep5においてその罫線のテキストoffset
の示すところのテキストレコードを消去し、その罫線レ
コードを消去する。又、step4において上のセルが反転
されていなければ、step8にて次の罫線があればstep1か
ら繰り返す。次の罫線がなければ終了する。又、step3
においてセルでなければstep5においてテキストレコー
ドと罫線レコードが消去される。又、step1において罫
線の下がセルでなかったり、step2において下のセルが
反転されていない場合は、step6にて罫線の上がセルか
どうかを調べる。もし、セルでなければstep8にて、次
の罫線へ処理が移る。又、もし罫線の上がセルならば、
step7において、上のセルが反転されているかを調べ
る。反転されていれば罫線とテキストレコードを消去
し、反転されていなければ次の罫線へ処理が移る。 次に縦罫線に対しても同様の処理を行う。ただし縦罫
線の場合は、step1,step2において罫線の下を調べる所
を右側を調べ、step3,4,6,7において罫線の上を調べる
所を左側を調べることにより同様の処理を行うことがで
きる。又、縦罫線はテキストを持たないのでstep5にお
いてテキストレコードの消去は行われない。 以上を全ての横罫線、耐罫線に対して行うことによ
り、反転されているセル間の境界にある罫線と隣接する
セルのないセルの辺を構成する罫線全てを消去すること
ができ、消去されるセルに隣接するセルを損なうことな
く、セルを消去することができる。 以上説明したように本発明により以下のような効果が
ある。 複数の平行で等間隔な罫線を引く手段と任意な位置に
平行な罫線を連続して引く手段を具備することにより、
オペレータの思い通りに、少ない操作で素早く作表する
ことを実現した。 罫線の消去、移動時に、文字を入力する領域であるセ
ルの左下左右の関係を考慮して文字の合成先を決定する
ことにより、どの罫線にも属さない不要な文字データが
生じるのを防ぎ、文書フアイル領域の節約になった。 〔効 果〕 以上説明したように、本発明は、表示画面上に線分を
表示する表示工程と、前記表示工程により表示される線
分の中から所望の線分を指定する指定工程と、前記表示
画面上で位置を指示する位置指示工程と、前記指定工程
により水平な線分が指定された場合、該指定された線分
を記述する罫線レコードのy座標のデータを前記位置指
示工程により指示された位置のy座標に置き換えた罫線
レコードを新たに作成することにより、該指示された位
置を通り、該指定された線分のy座標のみ変更した線分
を表示し、また、前記指定工程により垂直な線分が指定
された場合、該指定された線分を記述する罫線レコード
のx座標のデータを前記位置指示工程により指示された
位置のx座標に置き換えた罫線レコードを新たに作成す
ることにより、該指示された位置を通り、該指定された
線分のx座標のみ変更した線分を表示するよう制御する
表示制御工程とを備えることで、表示画面上に表示され
ている線分の中から所望の線分に平行で長さが等しい線
分を、簡単に引くことが可能となった。
Description: TECHNICAL FIELD The present invention relates to an image processing method capable of editing a line segment such as a table. [Prior Art] In a tabulation method in a conventional document processing apparatus, as a means for drawing a ruled line, (1) a start point and an end point of the ruled line are specified. (2) The number of lines to be ruled is specified, and the distance between the already drawn reference ruled line and the position specified separately is divided by the number of lines to be ruled to determine the position of the ruled line. The ruled line at the position is aligned with the grid (FIG. 2 (a), (b) 100) which is the closest lattice point. Such a method was taken. This will be described with reference to FIG. Reference numeral 15 in FIG. 2A indicates a reference line. The distance between the reference line and the cursor 20 (the difference in the y coordinate when the reference line is a horizontal ruled line, the difference in the X coordinate when the vertical line is a ruled line, and the difference in the y coordinate in this example) is the number of ruled lines. Divide by 5 to obtain the ruled line interval. When the positions of the five ruled lines are obtained at this interval, the dotted line 16 in FIG.
Align the positions of these rules to the nearest grid 100,
The result as shown in FIG. 2 (b) is obtained. However, although there are many tables that are generally used for documents and have the same line width, in the above-described division and crease method, a shift of up to one grid interval occurs as shown in FIG. 2 (b). It was difficult to draw equally spaced ruled lines. In addition, the operation is complicated because a ruled line that is parallel to one ruled line and has the same length is drawn each time to create one table. [Objective] In view of the above, the present invention provides a display step of displaying a line segment on a display screen, and a designation step of designating a desired line segment from the line segments displayed by the display step. A position designation step of designating a position on the display screen, and when a horizontal line segment is designated by the designation step, data of the y-coordinate of a ruled line record describing the designated line segment is written by the position designation step. By newly creating a ruled line record replaced with the y-coordinate of the designated position, a line segment passing through the designated position and changing only the y-coordinate of the designated line segment is displayed. When a vertical line segment is specified by the process, x of a ruled line record describing the specified line segment
By newly creating a ruled line record in which the coordinate data is replaced with the x coordinate of the position designated by the position designating step, a line passing only the designated position and changing only the x coordinate of the designated line segment A display control step of controlling display of minutes. EXAMPLES Hereinafter, the present invention will be described in detail with reference to the drawings. In addition,
The document referred to in the present invention is a generic term including a document (including a table), a graphic, an image, and the like. Further, if the functions of the present invention are performed, a system in which processing is performed via a network such as a LAN, whether it is a single device or a system including a plurality of devices, may be used. Needless to say, the present invention is applied. Note that the document processing of the present invention originally has a basic idea of electronically performing processing in which a human draws with a pen or the like on a desk. In the specification, “draw a line”, “move”, etc. This is due to electronic processing. [System Block Diagram] FIG. 1 is a system block diagram of a document processing apparatus according to an embodiment of the present invention. 1 is a CRT unit used in a raster scan display system, 2 is a video RAM (VRAM) that stores display pattern information for one screen, and 3 is a display control that controls writing of pattern information to VRAM2 and reading to CRT1. Department. Reference numeral 4 denotes a microprocessor (MPU), which is the main control of this device. Reference numeral 5 denotes a main memory having an area for storing a control program and document data as shown in a flowchart described later. The MPU 4 is connected to a keyboard 8 for inputting character data and the like and a pointing device (hereinafter PD) 9 for specifying a position on the CRT and inputting and editing data such as graphics. Reference numeral 6 denotes a hard disk device in which a document file, a program as shown in a flowchart described later, and a character font are stored.
Reference numeral 10 denotes a printer for outputting a created document, and includes a duplex output unit and the like. Reference numeral 11 denotes an image scanner for reading image data such as images, and reference numeral 12 denotes a floppy disk device for storing document files and the like. These constituent blocks are connected by an I / O bus 7. [Document Editing Screen] The document editing apparatus having the above-described configuration displays the spelling, character arrangement and its printing format based on the typesetting rules on the CRT 1, and is responsive using the keyboard 8 and P.D9. The document editing method can be applied to an arbitrary area on the screen or an area framed within the area. No. 3-1
The figure shows an example of a document editing screen, in which reference numeral 20 denotes a cursor operated by the PD, and reference numeral 21 denotes a paper window displaying a print format on the screen. As shown in Fig. 3-2, the characters 5
0, figure 51, image 52, and form 53 data can be input. Each of them has a priority order, and is displayed in the form of a form, an image, a figure, and a character in an overlapping manner. In addition, it is assumed that the following table set is equivalent to the above character. A reference numeral 22 in FIG. 3-1 is a user menu, in which a Kana-Kanji window for character input and a function selection function key are displayed. Reference numeral 23 denotes a status line on which a keyboard input mode, a message for an operator, and the like are displayed. Numeral 24 is a framed area on the paper (hereinafter referred to as a frame). In the frame, text (small group) or table data and graphic image data can be input. Is done. [Word Processor Editing] Next, each editing function will be described. Word processing editing
The user can input and edit characters in a sheet or a frame.
The input of characters is performed using functions such as Roman-Kana conversion and Kana-Kanji conversion. A format is assigned to each sheet. The sheet size, the position of the printing plate, which is an area for inputting and editing a document or the like on the sheet, the number of columns, the number of lines in the column, the character size of the text, the font (Mincho , Gossip, etc.), page numbers (page numbers), columns (headings on margins), and the like. The characters are displayed or printed according to this format. The editing function also performs partial character size and typeface changes, character modification of underline, emphasis point, ruby, superscript, subscript, etc., alignment of centering, right alignment, left alignment, uniform layout, etc. Furthermore, it has a search and replace function of searching for a character string and replacing it with another character string. It also has a floating frame editing function for moving, inputting, and deleting characters, moving along with the characters, opening a floating frame, changing the size, etc., and erasing. [Figure editing] Next, figure editing involves inputting figures such as straight lines, circles, rectangles, ellipses, etc. and editing the surface type, line type, moving, copying, erasing, transforming, rotating, enlarging, reducing, etc. It has functions such as a multi-layer structure that is composed of multiple layers of layers, can display and edit each layer independently, and can display multiple layers in a superimposed manner. [Image Editing] Image editing is for inputting images from Image Scanner,
It has a function of editing in units of dots for performing rotation, inversion, movement, copying, erasing of image data and editing in units of dots, and a function of trimming for partially cutting out image data. [Fixed frame editing] Next, fixed frame editing differs from floating frames in that a frame is opened at a fixed position on the paper, and a frame that does not depend on the movement of characters is opened.
It has functions such as resizing, moving, and erasing. [Table Composing Processing] Next, table composing processing, which is the main feature of the present invention, will be described.
The table set can be edited for frames that do not contain small sets. The functions are broadly divided into two types: ruled line editing for drawing, moving, and deleting ruled lines, and character editing for inputting characters and modifying characters such as underline and ruby. The purpose of rule line editing is to draw a rule line to create a table, and to create a rectangular area surrounded by rule lines called cells. Characters can be entered in this cell. Character editing is
The purpose is to enter characters into cells created by ruled line editing. By using these two editing functions, a high-quality and complicated table can be created quickly and easily. [Table Data Table Layout] FIG. 4 is a diagram showing an example of the layout of a table data table which is a part of the document data on the hard disk, a control table ruled line table, a text table, and cells (fifth.
-Frame as shown in Fig. 2). The control table is for managing the entire table data table. In stat, a number indicating a table data type is stored. measr stores control information for conversion from an internal storage coordinate unit to a CRT or printer coordinate unit.
Next, offsets and counts of the oblique lines, horizontal lines, vertical lines, text, and cell attributes are stored.
The offset is data indicating a diagonal line, a horizontal line, a vertical line of the ruled line table, and a starting address of a table area of the text data table and the cell attribute table. The count indicates the number of diagonal lines, horizontal lines, vertical lines, text, and attribute records. The diagonal line record is n1 and the horizontal line record is n2.
, The vertical line record is n3, the text record is n4, and the cell attribute record is n5. These offset and count
Thereby, areas of the ruled line table, the text table, and the attribute table can be grasped. [FIG. 4 Ruled Line Table] The ruled line table is a collection of information of oblique lines, horizontal lines, and vertical lines. POS (x, y) stores the start position of each line. The line style stores information indicating the line type of each line such as a solid line and a dashed line. The line width stores information on the thickness of each line. The flag stores the lock information of each ruled line. "round" stores information on rounding of intersections between horizontal and vertical lines. The length of each of the horizontal line record and the vertical line record stores information on the length of each line. The hatched w-length and h-length store information on the lengths in the horizontal and vertical directions, respectively. The text offset of the horizontal line record stores an offset indicating in which position in the text table the text data corresponding to the cell constituted by the horizontal line is stored. If there is no text, a value of -1 is stored. Each record in the ruled line table is sorted by the starting position information indicated by POS (x, y), where the oblique lines and horizontal lines are arranged in ascending order of x coordinate values, and the vertical lines are arranged in ascending order of y coordinate values. Note that this ruled line may be referred to as a fragment constituting a cell. [Figure 4 Text Table] The text table is composed of variable length text records. The attribute "offset" indicates where in the cell attribute table the attributes of the text, for example, the composition direction (vertical composition / horizontal composition), character size, character alignment such as left, right, centering, line spacing, character spacing, etc., are stored. Is an offset. The text count stores the number of characters of the text data. Text data is an array of character codes and text
It consists of count 2-byte codes. In flag, a flag such as a display state of a cell is set. There is one text record for each cell having a character or attribute, and there is always one attribute record for this text record. However, the same attribute is assigned to texts having exactly the same attribute. [FIG. 4 Cell Attribute Table] The cell attribute table is composed of variable length cell attribute records. Attrsiz stores the number of bytes in the size of one cell attribute. In flg, a flag indicating whether the flag is used or not is stored. In the mesh, the intermediate pattern number of the cell is stored. kum-f stores a flag indicating whether vertical setting or horizontal setting, character spacing or character pitch designation, or line spacing or line pitch designation flag is stored. aldp is
Information of upper, lower, left, and right character alignment, rotation angle of rotation display, and display method (whiteout, overwriting, etc.) are stored. The font stores information of a character typeface (Mincho, Gothic, etc.). ps stores the size of the character. lnsp.c
hsp stores values of line pitch or line spacing and character pitch or character spacing according to klm-f. lrmgn, udmgn stores left, right, top and bottom margin values. The operator uses division crease and continuous crease described later,
As will be described later, the rule can be drawn graphically as shown in FIG. 10, but internally the vertical and horizontal ruled lines are divided and stored at intersections as shown in FIG. 5-1. Since it is stored in this way, when drawing a table, it is done graphically and edited for each cell (such as deleting only the left side of one cell)
When it does, it becomes possible to do about each element. or,
The text data of each cell is held by a horizontal ruled line (a ruled line shown by a thick line in FIG. 5-2) at an upper left end among ruled lines constituting each cell (FIG. 5-2). [Divided Rule Drawing] A method of drawing a plurality of parallel ruled lines at equal intervals will be described with reference to FIGS. FIG. 6 shows the control flow chart. First, when a division rule is instructed by a keyboard or PD, a division number input window shown in FIG. 40 is displayed. In step 1 in FIG. 6, the number of parallel ruled lines (divided ruled lines) (division number) is input from the keyboard. FIG. 7 shows the case where the number of divisions is input as 10. In step 2, a reference line shown in FIG. 7 as a reference for the divided ruled line is determined. This is done by moving the cursor 20 with a PD on the ruled line that has already been drawn and pressing the PD button once (hereinafter, one click), or by creased the ruled line (at the starting point of the ruled line).
The reference line is determined by pressing the button on the PD, holding down and moving the cursor to the end point and releasing the button).
Next, in step 3, move the cursor to any position and
Button, the distance between the reference line and the position of the cursor (if the reference line is a horizontal ruled line, the difference in y-coordinate, if the reference line is a vertical ruled line, the difference in x-coordinate) is obtained, and this distance is divided by the number of divisions. The distance (FIG. 8-1 (a) L1) is obtained. In addition,
In FIG. 8-1, it is a horizontal ruled line. Next, the distance obtained in step 3 in step 4 is approximated to an integral multiple of the grid interval so that all the divided ruled lines are aligned with the grid 100. The approximation is Done by Since the division is performed with the fractional part truncated, the value to be obtained is obtained as an integral multiple of the grid interval (FIG. 8-1 (b) L2). Next, in step 5 of FIG. 6, as many divided rule lines as the number of divisions are displayed at the divided rule line intervals obtained in step 4 (FIG. 42). Fig. 6
Repeat the steps from step 3 until the PD button is released. The operator moves the cursor while pressing the PD button until the ruled line interval becomes appropriate. In response, a plurality of equally spaced ruled lines are displayed in real time. By releasing the PD button, the ruled line interval is determined, and the record of the divided ruled line is registered. [Continuous Crease] Next, a means for continuously crating parallel ruled lines at an arbitrary position will be described. It is started by instructing continuous crease by keyboard or PD. FIG. 9-1 shows a control flow chart of the continuous crease. First, a reference line is determined in setp1. This is determined by moving the cursor over the ruled line already drawn by the PD and clicking one or by ruled out the ruled line (FIG. 9-2, FIG. 41). Next, in step 2, the cursor 20 is moved to a position where a ruled line parallel to the reference line is to be drawn. When one click is performed, the x-coordinate of the reference line is clicked if the reference line is a vertical ruled line, and the y coordinate is clicked if the reference line is a horizontal ruled line in steps 4 to 7. Register the record replaced with the coordinates of the grid closest to (Fig. 10). After step2, 1
By repeating the click, parallel lines can be drawn continuously. [Line Erase] Movement of text data due to line erase will be described. First, FIG. 11 (a) is a control flowchart relating to erasure of a horizontal ruled line. Check whether the horizontal ruled line deleted in step 1 has a text (whether the text offset of the horizontal line record in FIG. 4 is not -1) or not (if -1), delete the horizontal ruled line record (st
ep5). If you have the text, check if it is a cell above the horizontal rule in step 2;
The text data is erased in ep4, and the ruled line data is erased in step 5 (in the case of the erasure of H3 in FIG. 12-1 (b)). When the upper part is a cell (in the case of erasing H1 in the 12-1 (a)), it is treated that the cells C1 and C2 are synthesized by erasing the ruled line. The result is combined with the text data held by H2, which is the text data of the cell, to obtain the result shown in the left diagram of FIG. 12A. The synthesis of the text in the present invention is performed based on the attribute of the cell to be synthesized by aldp or the like in the attribute table of the cell in FIG. That is, if one of the attributes of the cell C1 has "centering" in FIG. 12A, the attribute of the cell formed by erasing H1 is also "centering", and the "Ai" Is sentan ring. This also applies to the synthesis of other texts. Rearrangement of character strings in a table set, that is, combination of characters will be described with reference to FIGS. 12-2 to 12-3. Twelfth
FIG. 2 shows only the text table of FIG. First, as shown in FIG.
In the example of FIG. 1 (a), the text record held by H2 is extracted as shown in FIG. 12-2 (b), and the text tables after the extracted text record are packed forward as in FIG. 1 (c). At this time, the text offset of the horizontal ruled line that holds the packed text record is shifted, so the text offset of the record in the horizontal ruled table is examined in order, and the text offset of the ruled line record having a text offset larger than the offset of the destination text is calculated. By reducing the size of the destination text, the text of all horizontal rules
offset is corrected. Next, the extracted synthesis destination text is inserted at the end of the text table, and the inserted position is stored in the text offset of the horizontal ruled line record of the synthesis destination. Next, the synthesis source text is similarly moved after the synthesis destination text to a state as shown in FIG. Fig. 12-3 (a)
Are the text records of the synthesis destination and the synthesis source, respectively, that have been moved to the end of the text table. Next, the header portion (110 in FIG. 12-3 (a)) of the source text record is taken, and the subsequent portions are stuffed to the front, as shown in FIG. 12-3 (b). To the text count of the source text record. Further, the combining is completed by setting the text offset of the combining horizontal ruled line record to -1. Next, FIG. 11 (b) is a control flow chart when the vertical ruled line is deleted. It is checked whether the vertical ruled line erased in step 1 is a ruled line constituting the left side of the cell. If not, the ruled line record is deleted in step 4 and the processing ends.
If the ruled line constitutes the left side (for example, V1 in FIG. 12-1 (b)), check whether the upper left horizontal ruled line H3 of the cell (C3 in FIG. 12-1 (b)) has text. (Step2). If not, go to step 4; if so, check if the left side of the vertical ruled line is a cell (step 3). If it is not a cell, the process proceeds to step 4; if it is a cell (for example, when erasing V3 of the 12-1 (c)), in step 4, the text of the right cell is synthesized (the text of H5 is synthesized with the text of H4). [Move Ruled Line] (Move Horizontal Rule) Movement of a horizontal ruled line will be described. FIG. 13 shows the control flow chart. First, in step 1, it is checked whether the ruled line to be moved has text data (whether the text offset of the horizontal ruled record in FIG. 4 is not -1), and if it is not (if -1), it is moved as it is. . If there is text, check in step 2 whether the cell is above the horizontal ruled line. If it is not a cell, the text data moves with the ruled line (No.
14 Move H9 in Fig. (C) to the position of H9 '. H9 'had text, but the text is not displayed because it is no longer a cell (Fig. 14 (c), right). If the cell is above, step
In step 3, it is checked whether the result of moving the ruled line forms a cell. If the destination is a cell (No.
When H8 in FIG. 14B is moved to H8 ', the destination is cell 9'.) The text data moves together with the ruled line. If the destination is not a cell (Fig. 14 (a), move H6 to H6 '), in step 4, the text data of the ruled line is combined with the text data of the upper cell (the text of H6 is combined with H7). . This synthesis is described in FIGS. 12-2 and 12-3.
This is the same as the description in the figure. (Vertical Ruled Line Movement) Next, the movement of the vertical ruled line will be described. FIG. 15 shows the control flow chart. First, in step 1, it is checked whether the moving ruled line forms the left side of the cell. If No, move the ruled line in step 7 and end. If Yes, in step 2, it is checked whether or not the upper left horizontal ruled line (H15 when moving V5 in FIG. 16 (c)) has text. If No, go to step 7 and if you have one, check in step 3 if the left side of the moving rule is a cell. If it is not a cell, go to step 7 (V5 in FIG. 16 (c)).
Is moved to V5 ', and the text of H15 is no longer displayed because it is no longer a cell. ), If it is a cell, proceed to step 4 and determine whether the destination is a cell. If it is a cell, proceed to step 1 and combine the text of the upper left horizontal ruled line of the source cell with the upper left horizontal ruled line of the destination cell (combine the text of H13 in FIG. 16 (b) with the text of H13 ') ). If it is not a cell (V3 in FIG. 16 (a) is moved to V3 '), the text of the upper left horizontal ruled line (H11) of the source cell is moved. Combine with the text of H10) (the text is the ruled line of H10 '). [Cell Erase] Next, a method of erasing a ruled line in cell units without destroying a cell adjacent to a cell to be erased will be described. First,
Instruct cell erasure by keyboard or PD. Next, if there is one cell to be erased, the cell is clicked by one click by the PD (FIG. 17 (a)). If there is more than one, press the PD button as shown in FIG. 17 (b), move the cursor while pressing it, specify the range, and release the button. In this case P.
All cells in contact with a rectangle (shown by the line in FIG. 17) formed by two points, the position where the button D is pressed down and the position where the button D is released, are subject to cell erasure and are highlighted. When a cell to be erased is designated, first, the horizontal ruled line records in the ruled line table of FIG. 4 are sequentially processed as shown in the control flowchart of FIG. First, in step 1, it is checked whether or not a cell is below the ruled line. In other words, it is checked whether this ruled line forms the upper side of the cell. St if cell
It is checked whether or not the cell is inverted at ep2 (is the cell to be erased). If it is inverted, it is checked in step 3 whether the upper part of the ruled line is a cell (whether it constitutes the lower side of the cell). If it is a cell, it is checked in step 4 if the cell is inverted. If it is inverted, the text of that ruled line is offset in step5
The text record indicated by is deleted, and the ruled line record is deleted. If the upper cell is not inverted in step 4, if there is a next ruled line in step 8, the process is repeated from step 1. If there is no next ruled line, the process ends. Also, step3
In step 5, the text record and the ruled line record are deleted in step 5. If no cell is below the ruled line in step 1 or if the cell below is not inverted in step 2, it is checked in step 6 whether the cell is above the ruled line. If it is not a cell, the process moves to the next ruled line in step 8. Also, if the cell above the ruled line,
In step 7, it is checked whether the upper cell is inverted. If it is inverted, the ruled line and the text record are deleted, and if not, the process moves to the next ruled line. Next, the same processing is performed on the vertical ruled line. However, in the case of a vertical ruled line, a similar process can be performed by checking the right side of the portion under the ruled line in step 1 and step 2 and examining the left side of the portion above the ruled line in steps 3, 4, 6, and 7. . Further, since the vertical ruled line has no text, the erasure of the text record is not performed in step 5. By performing the above for all the horizontal ruled lines and the ruled line, all the ruled lines forming the side of the cell having no adjacent cell and the ruled line at the boundary between the inverted cells can be erased. Cell can be erased without damaging cells adjacent to the cell. As described above, the present invention has the following effects. By providing a plurality of parallel and equally spaced ruled means and a means for continuously drawing parallel ruled lines at arbitrary positions,
Realized quick creation with few operations as desired by the operator. When erasing or moving the ruled line, by determining the character synthesis destination in consideration of the lower left and right sides of the cell where the character is input, the unnecessary character data that does not belong to any ruled line is prevented, Saved document file space. [Effect] As described above, the present invention provides a display step of displaying a line segment on a display screen, a designation step of designating a desired line segment from the line segments displayed by the display step, A position specifying step of specifying a position on the display screen; and, when a horizontal line segment is specified in the specifying step, the y-coordinate data of a ruled line record describing the specified line segment is converted by the position specifying step. By newly creating a ruled line record replaced with the y coordinate of the designated position, a line segment passing through the designated position and changing only the y coordinate of the designated line segment is displayed. When a vertical line segment is specified in the process, a new ruled line record is created by replacing the x-coordinate data of the ruled line record describing the specified line segment with the x-coordinate of the position specified in the position specifying step. To do And a display control step of controlling to display a line segment that has been changed only by the x-coordinate of the specified line segment, passing through the designated position, thereby displaying the line segment displayed on the display screen. From among them, it is possible to easily draw a line segment having a length equal to a desired line segment.

【図面の簡単な説明】 第1図は本発明適用の装置のシステムブロツク図、 第2図は従来技術の説明図、 第3−1図は文書編集画面の説明図、 第3−2図は文字,図形,イメージ,フオームのデータ
の説明図、 第4図は表組データテーブルの説明図、 第5−1図は罫線の交点の様子を示す図、 第5−2図はセル中のテキストデータの保持の仕方の説
明図、 第6図は分割罫引の制御フロチャート、 第7図は分割罫引を行う場合の表示画面の説明図、 第8−1図は分割罫引の演算の説明図、 第8−2図は分割罫引を行った結果の表示例を示す図、 第9−1図は連続罫引の制御フローチヤート 第9−2図は連続罫引を行う場合の表示画面の説明図、 第10図は連続罫引を行う過程の説明図、 第11図は罫線消去の制御フローチャート、 第12−1図は罫線消去の表示例を示す図、 第12−2図は表組における文字の再配列の説明図、 第12−3図はテキストテーブルの説明図、 第13図は罫線移動の制御フローチヤート、 第14図は横罫線の移動の説明図、 第15図は縦罫線移動の制御フローチヤート、 第16図は縦罫線移動の説明図、 第17図はセル消去の説明図、 第18図はセル消去の制御フローチヤート。 4……MPU 3……表示制御部 5……主メモリ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a system block diagram of an apparatus to which the present invention is applied, FIG. 2 is an explanatory diagram of a prior art, FIG. 3-1 is an explanatory diagram of a document editing screen, and FIG. Illustration of character, figure, image, and form data, FIG. 4 is an illustration of a table data table, FIG. 5-1 is a diagram showing the intersection of ruled lines, and FIG. 5-2 is text in a cell FIG. 6 is a control flowchart for dividing and marking, FIG. 7 is an explanatory view of a display screen when performing dividing and marking, and FIG. Fig. 8-2 is a diagram showing a display example of the result of performing the divided crease. Fig. 9-1 is a control flow chart of the continuous crease. Fig. 9-2 is a display when the continuous crease is performed. FIG. 10 is an explanatory diagram of a screen, FIG. 10 is an explanatory diagram of a process of performing continuous crease, FIG. 11 is a control flowchart of ruled line erasing, FIG. FIG. 12-2 is a diagram showing a display example of ruled line erasure, FIG. 12-2 is a diagram for explaining the rearrangement of characters in a table set, FIG. 12-3 is a diagram for explaining a text table, FIG. 13 is a control flow chart for ruled line movement; Fig. 14 is an explanatory diagram of horizontal ruled line movement, Fig. 15 is a control flow chart of vertical ruled line movement, Fig. 16 is an explanatory diagram of vertical ruled line movement, Fig. 17 is an explanatory diagram of cell erasing, Fig. 18 is a cell erasing Control flow chart. 4 MPU 3 Display control unit 5 Main memory

Claims (1)

(57)【特許請求の範囲】 1.表示画面上に線分を表示する表示工程と、 前記表示工程により表示される線分の中から所望の線分
を指定する指定工程と、 前記表示画面上で位置を指示する位置指示工程と、 前記指定工程により水平な線分が指定された場合、該指
定された線分を記述する罫線レコードのy座標のデータ
を前記位置指示工程により指示された位置のy座標に置
き換えた罫線レコードを新たに作成することにより、該
指示された位置を通り、該指定された線分のy座標のみ
変更した線分を表示し、また、前記指定工程により垂直
な線分が指定された場合、該指定された線分を記述する
罫線レコードのx座標のデータを前記位置指示工程によ
り指示された位置のx座標に置き換えた罫線レコードを
新たに作成することにより、該指示された位置を通り、
該指定された線分のx座標のみ変更した線分を表示する
よう制御する表示制御工程と、を有することを特徴とす
る画像処理方法。
(57) [Claims] A display step of displaying a line segment on a display screen, a designation step of designating a desired line segment from the line segments displayed by the display step, and a position designation step of designating a position on the display screen, When a horizontal line segment is specified in the specifying step, a new ruled line record in which the y coordinate data of the ruled line record describing the specified line segment is replaced with the y coordinate of the position specified in the position specifying step is newly added. To display a line segment passing through the designated position and changing only the y-coordinate of the designated line segment. If a vertical line segment is designated in the designation step, the designated line segment is displayed. By newly creating a ruled line record in which the x-coordinate data of the ruled line record describing the line segment described is replaced with the x-coordinate of the position specified in the position specifying step, the data passes the specified position,
A display control step of performing control to display a line segment in which only the x-coordinate of the specified line segment has been changed.
JP62289157A 1987-11-16 1987-11-16 Image processing method Expired - Fee Related JP2962720B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP62289157A JP2962720B2 (en) 1987-11-16 1987-11-16 Image processing method
DE3838729A DE3838729C2 (en) 1987-11-16 1988-11-15 Document processing device
US07/948,621 US5867159A (en) 1987-11-16 1992-09-22 Document processing apparatus for displaying a plurality of ruled lines at regular intervals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62289157A JP2962720B2 (en) 1987-11-16 1987-11-16 Image processing method

Publications (2)

Publication Number Publication Date
JPH01130265A JPH01130265A (en) 1989-05-23
JP2962720B2 true JP2962720B2 (en) 1999-10-12

Family

ID=17739501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62289157A Expired - Fee Related JP2962720B2 (en) 1987-11-16 1987-11-16 Image processing method

Country Status (1)

Country Link
JP (1) JP2962720B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61201296A (en) * 1985-03-04 1986-09-05 株式会社東芝 Word processor
JPS61278971A (en) * 1985-06-04 1986-12-09 Kiyuwatsuto Kk Multi-input discrimination processing system

Also Published As

Publication number Publication date
JPH01130265A (en) 1989-05-23

Similar Documents

Publication Publication Date Title
US7800776B2 (en) Methods and apparatus for mixed page imposition
US5867159A (en) Document processing apparatus for displaying a plurality of ruled lines at regular intervals
JP2810368B2 (en) Image processing method
JP2962720B2 (en) Image processing method
JP2547797B2 (en) Document processing method
JP4275808B2 (en) Character assignment processing device
JP2547799B2 (en) Document processing method
JP2547798B2 (en) Document processing method
JPH0877324A (en) Electronic filing device
JP3062259B2 (en) Document processing apparatus and method
JP2608300B2 (en) Document processing method
JPH03156668A (en) Document preparing device
JP3109804B2 (en) Formula processing apparatus and method
JP4062332B2 (en) Ruled line processing method and apparatus
JP2879940B2 (en) Score editing system
JP3026617B2 (en) Document processing apparatus and method
JP2862239B2 (en) Document processing device
JP2698345B2 (en) Document processing method
JP4466780B2 (en) Method and apparatus for mixed processing of character string and ruled line
JP4201056B2 (en) Ruled line processing method and apparatus
JP2851840B2 (en) Document processing device
JPS62168275A (en) Processing system for picture editing
JPH03137764A (en) Document processor
JPH01130274A (en) Document processor
JPH0422634A (en) Sheet music editing system

Legal Events

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