JP3728768B2 - Method and apparatus for mixed processing of character string and ruled line - Google Patents

Method and apparatus for mixed processing of character string and ruled line Download PDF

Info

Publication number
JP3728768B2
JP3728768B2 JP09782995A JP9782995A JP3728768B2 JP 3728768 B2 JP3728768 B2 JP 3728768B2 JP 09782995 A JP09782995 A JP 09782995A JP 9782995 A JP9782995 A JP 9782995A JP 3728768 B2 JP3728768 B2 JP 3728768B2
Authority
JP
Japan
Prior art keywords
character string
ruled line
character
ruled
line
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 - Lifetime
Application number
JP09782995A
Other languages
Japanese (ja)
Other versions
JPH08272783A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP09782995A priority Critical patent/JP3728768B2/en
Publication of JPH08272783A publication Critical patent/JPH08272783A/en
Application granted granted Critical
Publication of JP3728768B2 publication Critical patent/JP3728768B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、所望の大きさの文字列と所定の線種の罫線とをディスプレイ上に表示し、この文字列と罫線とを混在処理する混在処理方法およびその装置に関する。
【0002】
【従来技術】
従来、ワードプロセッサ装置あるいはコンピュータにて処理されるワードプロセッサソフトの多くは、文字列の任意の箇所に罫線を挿入する機能を有しており、文字列により表現したい文章を罫線により区画することで視覚的な表現力を高めたり、情報の理解を容易にする手助けなどに用いられている。
【0003】
また、この種の装置あるいはソフトは、上記視覚的効果をより一層顕著なものとするため、罫線の描画に使用する線種として実線、点線など複数の線幅を用意するなど罫線描画の表示形式に配慮している。
【0004】
日本語を処理するワードプロセッサでは、従来、文字幅はいわゆる全角とその1/2幅の半角、更に全角の倍の幅を有する倍角など、文字の大きさが整数倍となっており、この幅を単位として罫線を引くことが一般的であった。また、当初罫線は文字と同じ位置に引かれ、既に文字が書かれた位置に罫線を引くと文字が上書きされてしまったが、最近では文字と文字の間に罫線を引くいわゆる行間(文字間)罫線も用いられるようになっている。
【0005】
【発明が解決しようとする課題】
しかし、上記の装置あるいはソフトは、取り扱う文字の幅が同一、せいぜい整数倍の何種類かの文字が存在する程度を想定しているに過ぎず、大きさの異なる複数種類の文字が混在する文書については、どのように罫線を取り扱ったら良いか分からないのが現状であった。近年、コンピュータの情報処理を担当するマイクロプロセッサの大幅な能力向上により、文字列を構成する各文字としてアウトラインフォントを採用し、任意のポイント数の文字を綺麗に表示、印刷することが可能となっているが、こうしたアウトラインフォントを採用した装置あるいはソフトにおいては、文字の描画範囲が一義的に決定できないため、文字に合わせて罫線を引くことができないのである。従って、例えば文字が存在する場所に罫線を引いた場合、文字と罫線とを単純に置き換える従来方式では、フォントの違い、文字の大きさ(ポイント数)によっては、予期しない空白や文字の非消耗な移動あるいは文字と罫線との干渉や重なり合いが発生してしまう。
【0006】
更に、既に文字が配置された行に様々な配置状態が設定されている場合、罫線を引いた後や既存の罫線を削除した後で、その行の文字の配置をどうするのが望ましいかという問題も存在した。文字の配置状態、例えば左寄せ、右寄せ、中央寄せ、均等割付あるいはタブ、インデント等が設定されている場合、その行を分割する罫線が引かれたとき、罫線により文字列が分割されるとすれば、罫線により分割された複数の領域毎に、既存の配置状態を用いて文字を配置すべきか否か等の問題である。実際には、罫線の挿入や削除により、文字列を再配置すると、再位置のための移動量が大きい場合があり、使用者にとって非所望の処理がなされてしまうこともあった。
【0007】
更に、文字の大きさや幅が多様化すると、罫線を付加する位置についても従来方式以上の高い分解能が要求されることになるから、予め定めた所定幅・高さを単位として移動するカーソルにより指定する従来の指定方式に代えて、マウスやタブレットなどのポインティングデバイスを利用することが考えられている。しかし、従来方式では、ポインティングデバイスを有効に利用して縦横の罫線の配置位置を簡単に指示するまでには未だに至っていない。
【0008】
本発明の文字列と罫線の混在処理方法およびその装置は、こうした問題点を解決し、文字及び罫線が混在した文書を作成する使用者にとって最も快適なインタフェイスを提供し、多種類の文字列への対処、ポインティングデバイスを有効に利用した罫線の配置位置の簡易的指示を可能とすることを目的としてなされ、次の構成を採った。
【0009】
【課題を解決するための手段および作用】
請求項1の文字列と罫線の混在処理方法は、
所望の大きさの文字列と所定の線種の罫線とをディスプレイ上に表示し、該文字列と該罫線とを混在処理する文書処理装置が実行する方法であって、
前記ディスプレイ上に左寄せで表示された前記文字列の一部に前記罫線が重複して描かれることを、該ディスプレイ上の前記文字の位置と前記罫線の位置とから検出し、
前記文字列中の前記重複の発生した文字を前記ディスプレイ上から消去して罫線を優先して表示し、
表示した罫線と該消去された文字の前後にそれぞれ続く文字との間隔と略同一の文字幅を有するスペースを該消去された文字の前後それぞれについて演算し、
該演算したスペースを前記重複の発生した文字に代えて前記文字列に挿入すること
を要旨とする。
【0010】
この処理方法によれば、罫線と文字列とが重複した場合には、文字を消去して罫線を優先して表示するが、文字を消去した際、表示した罫線と消去した文字の前後にそれぞれ続く文字との間隔と略同一の幅を有するスペースを消去されたもじれ之前後のそれぞれについて演算し、重複の発生した文字に代えてこのスペースを挿入する。この結果、文字の消去にも関わらず、元の文字列は概ね同一の位置に表示される。
【0011】
請求項2は、請求項1記載の文字列と罫線の混在処理方法において、スペースの演算を、表示した罫線と消去された文字に続く文字との間隔と略同一の幅となるスペースの個数を演算する処理として行なうものである。文字の種類によっては、同一のフォントでも文字によって文字幅が異なる。例えば、プロポーショナルなフォントでは「W」と「i」とで文字幅が異なるのが通常である。この場合、「W」が消去された場合に代替すべきスペースの個数と「i」が消去された場合に代替すべきスペースの個数とは異なる。従って、請求項2の処理方法によれば、代替すべきスペースの個数を求めることで、置き換えを簡略に行なうのである。
【0012】
請求項3は、請求項1記載の文字列と罫線の混在処理方法において、スペースの演算は、表示した罫線と消去された文字に続く文字との間隔と略同一の幅となるスペースの大きさを演算する処理として行なうものである。消去した文字を代替するのに必要なスペースをスペースの個数で調整するもの(請求項2)に対して、請求項3では、スペースそのもののポイント数等を演算することにより、置き換えを行なうものである。
【0013】
請求項4の文字列と罫線の混在処理方法は、
所望の大きさの文字列と所定の線種の罫線とをディスプレイ上に表示し、該文字列と該罫線とを混在処理する方法であって、
所定コマンドの実行により、ディスプレイ上に表示された文字列を、前記所定コマンドに応じて予め定められた配置状態に配置し、
該配置状態に文字列が配置された行に前記罫線が挿入されたとき、これを検出し、
該罫線の挿入箇所を境界として左右に分割された領域毎に、前記文字列の配置状態を初期の配置状態に復帰すること
を要旨としている。
【0014】
従って、この処理方法によれば、罫線が挿入された行では、罫線より分割された領域毎に文字列の配置は初期の配置状態に復帰する。元の行に、右寄せ、左寄せ、インデント等様々な配置状態が設定し得るが、これらは罫線の挿入により初期の配置状態に戻すことが最も使用者にとって素直なインタフェイスの一つだからである。
【0015】
請求項5は、請求項4の文字列と罫線の混在処理方法において、文字列の配置状態が、左寄せ、右寄せ、センタリング、均等配置または両端揃え(両端に文字があり内部が均等配置されたもの)であるものを特定する。これは、文書を処理するものにおいて最低限必要となる処理である。
【0016】
請求項6記載の文字列と罫線の混在処理方法は、
所望の大きさの文字列と所定の線種の罫線とをディスプレイ上に表示し、該文字列と該罫線とを混在処理する方法であって、
所定コマンドの実行により、ディスプレイ上に表示された文字列を、前記所定コマンドに応じて予め定められた配置状態に配置し、
該配置状態に文字列が配置された行に前記罫線が挿入されたとき、
前記配置状態の設定を初期状態に戻し、
該挿入された罫線により分割された区間におけるそれぞれの文字列の配置位置が、前記配置状態の配置もしくはその近傍となるよう所定幅のスペースを演算し、
該演算したスペースを挿入すること
を要旨とする。
【0017】
この処理方法によれば、所定の配置状態が設定されている行に罫線が挿入されると、配置状態の設定を初期状態に戻すと共に、既に配置された文字列についてはその位置を保持するようにスペースを演算して挿入する。したがって、配置状態の設定は初期化されるが文字列の配置はほとんど変わらず、使用者が違和感を感じることがない。
【0018】
請求項7は、請求項6の文字列と罫線の混在処理方法において、文字列の配置状態が、タブまたはインデントによる配置であるものを特定している。これらは、文書の配置状態として必要となるものである。
【0019】
請求項8の文字列と罫線の混在処理方法は、
所望の大きさの文字列と所定の線種の罫線とをディスプレイ上に表示し、該文字列と該罫線とを混在処理する方法であって、
所定コマンドの実行により、ディスプレイ上に表示された文字列を、前記所定コマンドに応じて予め定められた配置状態に配置し、
該配置状態に文字列が配置された行に存在した罫線が削除されたとき、該罫線により分割されていたそれぞれの区間毎に、前記所定コマンドの実行により所定の配置状態とされた文字列を、該区間毎の初期位置もしくはその近傍に復帰させること
を要旨とする。
【0020】
この処理方法によれば、所定の配置状態が設定された行に存在した罫線が削除されたとき、所定の配置状態とされた文字列を、罫線により分割されていた区間毎に初期位置もしくはその近傍位置に復帰させる。従って、罫線により分割された区間で、例えば右寄せされていた文字列は、罫線が削除されると、初期状態(例えば左寄せの状態)に復帰される。罫線が削除されて分割されていた区間がなくなった場合には、区間毎の配置状態を初期状態に戻すのが使用者にとって分かりやすい対応のひとつだからである。
【0021】
請求項9は、請求項8記載の文字列と罫線の混在処理方法において、初期位置への復帰を、タブコードあるいは所定幅のスペースの挿入により行なうものである。従って、初期状態への復帰を容易を行なうことができる。
【0022】
請求項10記載の文字列と罫線の混在処理方法は、
所望の大きさの文字列と所定の線種の罫線とをディスプレイ上に表示し、該文字列と該罫線とを混在処理する方法であって、
所定コマンドの実行により、ディスプレイ上に表示された文字列を、前記所定コマンドに応じて予め定められた配置状態に配置し、
該配置状態に文字列が配置された行に存在した罫線が削除されたとき、
前記配置状態の設定を初期状態に戻し、
該削除された罫線により分割されていた区間におけるそれぞれの文字列の配置位置が、前記配置状態の配置位置もしくはその近傍となるよう所定幅のスペースを演算し、
該演算したスペースを挿入すること
を要旨とする。
【0023】
この処理方法によれば、所定の配置状態が設定された行に存在した罫線が削除されると、罫線により分割されていた区間におけるそれぞれの文字列の配置位置が、その配置状態での配置位置もしくはその近傍となるように、所定幅のスペースを演算し挿入する。従って、罫線を削除しても、既に所定の配置状態に配置された文字列は、ほぼ元の位置に配置される。この処理方法は、使用者にとって違和感のない処理の一つである。
【0024】
請求項11は、請求項10の文字列と罫線の混在処理方法において、文字列の配置状態が、タブまたはインデントによる配置状態であるものを特定する。タブまたはインデントは、文書における配置状態のうち基本的なものの一つである。
【0031】
請求項1は、所望の大きさの文字列と所定の線種の罫線とをディスプレイ上に表示し、該文字列と該罫線とを混在処理する装置であって、
前記ディスプレイ上に左寄せで表示された前記文字列の一部に前記罫線が重複して描かれることを検出する検出手段と、
前記文字列中の前記重複の発生した文字を消去して罫線を優先して表示する罫線表示手段と、
表示した罫線と該消去された文字の前後にそれぞれ続く文字との間隔と略同一の文字幅を有するスペースを該消去された文字の前後それぞれについて演算するスペース演算手段と、
該演算したスペースを前記重複の発生した文字に代えて前記文字列に挿入する挿入手段と
を備えたことを要旨とする。
【0032】
この処理装置によれば、罫線と文字列とが重複した場合には、文字を消去して罫線を優先して表示するが、文字を消去した際、消去された文字の前後それぞれに続く文字との間隔と略同一の幅を有するスペースを消去された文字の前後それぞれについて演算し、重複の発生した文字に代えてこのスペースを挿入する。この結果、文字の消去にも関わらず、元の文字列は概ね同一の位置に表示される。
【0033】
こうした罫線の混在処理装置は、
前記ディスプレイ上に表示される文字列の配置に関し、初期の配置状態として左寄せを予め設定されており、
該表示された文字列について、左寄せを除く所定のコマンドである第1のコマンドの実行により、ディスプレイ上に表示された文字列を、前記第1のコマンドに応じて予め定められた配置状態に配置して前記ディスプレイ上に表示する文字列配置手段と、
該配置状態に文字列が配置された行に前記罫線が挿入されたとき、これを検出する検出手段と、
該罫線の挿入箇所を境界として左右に分割された区間毎に、前記文字列の配置状態を前記初期の配置状態に復帰する配置状態復帰手段と
を備えるものとすることができる。
【0034】
従って、この処理装置によれば、罫線が挿入された行では、罫線より分割された領域毎に文字列の配置は初期の配置状態に復帰する。元の行に、右寄せ、左寄せ、インデント等様々な配置状態が設定し得るが、これらは罫線の挿入により初期の配置状態である左寄せに戻すことが最も使用者にとって素直なインタフェイスの一つだからである。
【0035】
あるいはこの種の混在処理装置は、
更に、前記挿入された罫線により分割された区間におけるそれぞれの文字列の配置位置が、前記配置状態の配置もしくはその近傍となるよう所定幅のスペースを演算するスペース演算手段と、
該演算したスペースを、前記行の文字列に挿入し、該スペースが挿入された後の文字列を前記ディスプレイ上に表示するスペース挿入手段と
を備えたものとすることができる。
【0036】
この処理装置によれば、所定の配置状態が設定されている行に罫線が挿入されると、配置状態の設定を初期状態に戻すと共に、既に配置された文字列についてはその位置を保持するようにスペースを演算して挿入する。したがって、配置状態の設定は初期化されるが文字列の配置はほとんど変わらず、使用者が違和感を感じることがない。
【0037】
更に、前記罫線が挿入された行の該罫線により左右に分割された区間毎に、左寄せを除く所定のコマンドである第2のコマンドを実行して、文字列の配置状態を設定する配置状態設定手段と、
前記配置状態に文字列が配置された行に存在した罫線が削除されたとき、該罫線により分割されていたそれぞれの区間毎に、前記第2のコマンドの実行により所定の配置状態とされていた文字列を、該区間毎に、前記初期の配置状態もしくはその近傍に復帰させる配置状態初期化手段とを備えるものとすることができる。
【0038】
この処理装置によれば、所定の配置状態が設定された行に存在した罫線が削除されたとき、所定の配置状態とされた文字列を、罫線により分割されていた区間毎に初期位置もしくはその近傍位置に復帰させる。従って、罫線により分割された区間で、例えば右寄せされていた文字列は、罫線が削除されると、初期状態(例えば左寄せの状態)に復帰される。罫線が削除されて分割されていた区間がなくなった場合には、区間毎の配置状態を初期状態に戻すのが使用者にとって分かりやすい対応のひとつだからである。
【0039】
こうした文字列と罫線の混在処理装置は、
更に、前記罫線が挿入された行の該罫線により左右に分割された区間毎に、左寄せを除く所定のコマンドである第2のコマンドを実行して、文字列の配置状態を設定する文字列配置手段と、
該配置状態に文字列が配置された行に存在した罫線を削除する削除手段と、
該削除手段により前記罫線が削除されたとき、該文字列が配置された行の前記配置状態の設定を前記初期の配置状態の設定に戻す配置状態初期化手段と、
該削除された罫線により分割されていた区間におけるそれぞれの文字列の配置位置が、前記罫線を削除する前の配置状態の配置位置もしくはその近傍となるよう所定幅のスペースを演算する演算手段と、
該演算したスペースを、前記行の文字列に挿入し、該スペースが挿入された後の文字列を前記ディスプレイ上に表示するスペース挿入手段と
を備えた構成とすることができる。
【0040】
この処理装置によれば、所定の配置状態が設定された行に存在した罫線が削除されると、罫線により分割されていた区間におけるそれぞれの文字列の配置位置が、その配置状態での配置位置もしくはその近傍となるように、所定幅のスペースを演算し挿入する。従って、罫線を削除しても、既に所定の配置状態に配置された文字列は、ほぼ元の位置に配置される。この処理装置は、使用者にとって違和感のない処理の一つを提供する。
【0047】
【実施例】
以上説明した本発明の構成、作用を一層明らかにするために、以下本発明の文字列と罫線の混在処理方法およびその装置の好適な実施例について説明する。図1は実施例である文字列と罫線の混在処理方法を採用した日本語ワードプロセッサ・アプリケーションソフトをコンピュータ上で動作させたときディスプレイ40に表示される基本ウインドウ画面の説明図、図2はそのアプリケーションソフトを起動しているパーソナルコンピュータ20の内部の機能ブロック図である。即ち、通常のパーソナルコンピュータ20でこのソフトを実行することで、本実施例の文字列と罫線の混在処理方法が実現される。また、このパーソナルコンピュータ20上でこのソフトウェアを実行すれば、全体として、実施例の文字列と罫線の混在処理装置が実現されることになる。
【0048】
説明の都合上、まずパーソナルコンピュータ20の内部構成について説明する。ソフトが起動されるパーソナルコンピュータ20は、図2の機能ブロック図に示すように、その基本構成は周知のものであり、論理演算を実行するCPU22,そのCPU22により実行されるプログラム等を不揮発的に記憶しているROM24,プログラムやデータを記憶する大容量のRAM26からなる論理回路部分と、周辺機器部分であるディスプレイ40,このディスプレイ40上の任意の一点を指示するためのポインティングデバイスであるマウス42,キーボード46,プリンタ48,ハードディスク50との入出力インターフェイス28〜36から構成されている。なお、最近では処理速度の向上を目的として各種の高速バスをCPU22の周辺に採用したものなども知られているので、処理速度や記憶容量などの点で適したハードウェア構成を採用すれば良い。
【0049】
実施例のアプリケーションプログラムは、オペレーティングシステム(以下、OSと呼ぶ)の管理によるグラフィカル・ユーザ・インタフェイス(GUI)の下で動作するようプログラムされており、予めこのOSに用意されたGUIのためのツールを用いることで、他のアプリケーションソフトとの操作方法の統一化が図られている。また、OSレベルでサポートされるアウトラインフォント(文字の形状をベクトルデータとして記述し、指定されたポイント数に応じて対応する大きさの文字のドットを生成するフォント)を利用し、文書作成に際して任意の大きさの文字を滑らかに表示することができる。
【0050】
図1に示すアプリケーションの基本ウインドウ画面の最上部は、実施例であるアプリケーションソフトの名前及び現在処理中であるデータファイルのファイル名を表示するタイトルバー402である。このタイトルバー402の左端にあるボタン402Aはシステムメニューをプルダウンするためのボタンであり、その下欄には「ファイル」、「編集」といった表示がされるメニューバー404が配置される。このメニューバー404の任意の表示をマウス42でクリックすると、その表示名に関連したコマンドがプルダウン表示され、コマンド名を覚えたりキーボード46からコマンド名を入力するなど手間が省略される。
【0051】
メニューバー404下欄のツールバー406及び上記タイトルバー402右端は、上述したOSに用意されたインタフェイスではなく、本アプリケーションソフトに独自の主たるコマンドがアイコンあるいはコマンド名により表示される箇所である。タイトルバー402右端のボタン402B(罫線ボタン)をマウス42により選択すると、罫線の描画形態、罫線の消去、罫線領域の拡大・縮小などのコマンドをアイコン化したプルダウンメニューが、図示のごとく表示される。その右隣のボタン402C(線種ボタン)は、同様にマウス42により選択されたとき、図示するように罫線描画に使用する14種の線の一部を表示する。また、ツールバー406には、日本語ワードプロセッサである本実施例のアプリケーションソフトの基本的な動作モードである文字入力モード、罫線作成モード及び左寄せ、中央配置、右寄せ等の自動配置のコマンドや文字のアウトラインフォント種類、ポイント数更等のコマンドがアイコンにより表示されており、このアイコンをマウス42で選択するだけで本アプリケーションソフトに対するコマンド入力がなされる。
【0052】
基本ウインドウ画面の中央に当たる操作領域410は、日本語ワードプロセッサである本アプリケーションソフトに独特の情報編集領域であり、その上方には文字数をカウントしたり、タブやインデントを設定するためのルーラ部412、左側縁には各行に設定された属性を表示する属性表示部414、右側縁及び下側縁にはウインドウを上下左右にスクロールするためのスクロール部416が配置されている。また、ウインドウ画面の最下部の一行は、本アプリケーションソフトの動作状態、例えば編集中の頁数、行数等の状態を表示するステータスバー420である。
【0053】
上述した概略構成を有する本実施例のアプリケーションソフトは、日本語ワードプロセッサとして一般的なルビ機能、脚注機能、ヘッダやフッタを指定する書式機能、カナ漢字変換機能、辞書機能等を独自にあるいは他のツールを利用して達成することは勿論であるが、これらの機能については一般的なソフトと同様であるため説明を省略する。
【0054】
本実施例のアプリケーションソフトは、操作領域410の大部分を占めている編集部418の内部で視覚的に処理される文字列とこの文字列を区画して文章の理解に供される罫線との混在処理に関し、以下のように独特かつ巧みなインタフェイスを有している。以下、本アプリケーションソフトに独特の文字列と罫線の混在処理方法について詳述する。
【0055】
図3ないし図7は、以下に説明する独特の文字列と罫線の混在処理方法を達成するために、本アプリケーションソフトにて採用している文字列と罫線のデータ構造を説明するための図である。図3は、以下のデータ構造説明に利用する文字列と罫線とが編集部418に表示されている状態の説明図である。図示した例では、編集部418は全体として縦17行×横30文字の文字編集領域を有している。この内部に罫線がない状態では、この文字編集領域は単一の領域として扱われるが、いったんこの文字編集領域内に罫線が作成されると、編集処理は、罫線により分割された領域毎に行なわれることになる。例えば、図3に示すように矩形の罫線(図中の実線四角)が引かれた場合には、この文字編集領域は、罫線の4つの辺を境界線とし、行方向を優先方向として区分される5つの編集領域1,編集領域2,・・・・・・,編集領域5(5つの点線四角)に分けられ、文字列は各領域毎に管理される。
【0056】
まず、罫線データの管理について説明する。図3に示した各領域のうち、編集部418に描画される罫線データは、これだけを取り出せば、図4に示したように、計7行に亘る罫線領域を形成している。この罫線データは、図5に示すデータ構造を有する罫線描画情報として管理される。すなわち、罫線描画情報は、その罫線がどこに存在するかを大まかに表す情報であり、罫線がある範囲に亘って連続している箇所を1ブロックとしてとらえたものである。罫線描画情報には、開始位置、大きさ、罫線データポインタが含まれる。一つの罫線ブロックが一つの罫線(縦罫線、横罫線、矩形罫線)を定義しているので、文書毎に最大n個の罫線ブロックを管理することができる。罫線描画情報における開始位置とは、罫線が開始される行位置であり、大きさとは、罫線が縦方向に何行連続するかを示すものである。これらの情報は、罫線の描画単位が行桁の場合には行を単位として示される。
【0057】
罫線データポインタは、実際に描画される罫線の形、線種を表すデータの保存された場所を指し示すポインタである。本実施例では、この罫線データポインタが指し示す場所(アドレス)に、図4に示すように、二次元の領域が確保されている。この領域は、横方向には罫線の情報を記述するのに必要な大きさが確保され、縦方向には罫線が縦方法に連続する大きさが確保される。従って、図1に例示した罫線では、縦方向に7行の領域が確保される。各行に対応したメモリには罫線の形や線種を表すデータが、罫線の存在に対応する形態で格納されている。なお、この罫線描画情報においても座標位置や大きさを表す単位として前述の文字数を利用しているが、これに限定されないことは先に述べた。
【0058】
この様に罫線が描画されると、画面はいくつかの矩形領域に分割される。この分割された各領域は、内部的に編集は領域毎に行なわれている。この点を説明する。罫線により分割される各編集領域n(nは任意の自然数である)とは、文字を挿入、削除する際、流れ込みなど既存文字列に対して影響が及ぶ区域である。図6は、第n編集領域までの各編集領域を管理するための編集領域情報のデータ構造の説明図である。図示するように各編集領域nの情報は、その左上隅の座標位置である開始横座標,開始縦座標、その座標からの横方向の大きさ(横大きさ)と縦方向の大きさ(縦大きさ)とによって規定されている。第1編集領域を例に取ると、この領域は、開始横座標1および開始縦座標1(即ち画面左上隅)を開始位置とし、横方向の大きさが30、縦方向の大きさが2となっている。また、先頭文字列インデックスには値1が格納されており、後述する図7に示す文字列情報において第1文字列から、この領域内の文字列が始まっていることが示されている。
【0059】
なお、本実施例では各編集領域nの位置と大きさを示す単位として、編集部418にて編集される標準的なポイント数(デフォルトでは12ポイント)の文字を採用し、文字数表示としているが、この様な単位はプログラム毎に統一しておりさえすればよく、mm単位やドット単位など任意に選択可能である。また、各編集領域nの情報として管理される先頭文字列インデックスとは、後述する文字列情報(図7参照)に格納されている文字列にアクセスするためのインデックスで、編集領域nの先頭に表示される文字列を指し示している。
【0060】
次に、編集部418に記述される文字列の情報について、その概要を説明する。文字列は、図7に示す様に、文字列を単位とするテーブルによって管理される。テーブルには、文字列ポインタ、アトリビュートポインタ、次の文字列情報といった情報が含まれる。ここでいう文字列とは改行コードが挿入されるまでの一塊の文字の集まりであり、文字列ポインタとは文字列が実際に格納されたメモリへのアクセスポインタである。また、アトリビュートポインタとは、文字に対するアトリビュートの情報の格納場所を示すポインタである。文字列を構成する文字は、1文字毎に、フォントの種類,ポイント数,文字飾り(修飾)などの情報が設定可能であり、アトリビュートポインタは、この設定(アトリビュート)がメモリに実際に格納されている場所を指し示す。また、次の文字列情報とは、この文字列に続く文字列が存在する場合のインデックスであり、一つの編集領域内で最終の文字列の場合には「0」がセットされる。図3に示した例では、第1文字列が「あいうえお<改行>」であり、次の文字列は第2文字列「ABCDE<改行>」であるから、次の文字列情報の欄には、値2が記憶されている。即ち、図6および図7に示したテーブルにより、全編集領域の文字列が管理されるのである。
【0061】
この様に本アプリケーションソフトは、一つの文章(データファイル)毎に、上記データ構造に則った編集領域情報,罫線描画情報,文字列情報をRAM26またはハードディスク50上に新規作成、更新、削除することで、文字列と罫線の混在したデータファイルを管理している。次に、本実施例のアプリケーションソフトが行なう独特かつ巧みな文字列と罫線の混在処理方法、すなわち上記3つの編集領域情報,罫線描画情報,文字列情報を更新する具体例について詳述する。
【0062】
図8,図9は、ディスプレイ40に表示され確定している文字列に対して重複して罫線描画が指示された場合の処理方法を説明するための説明図及びその部分のプログラムのフローチャートである。なお、編集領域の文字については、本アプリケーションソフトでは、配置状況のデフォルト(初期設定)として、左寄せ,5文字間隔毎のタブ設定,インデント設定がなされている。これらの設定は、図示されていないが、以下の説明では、配置状況の初期設定として扱う。
【0063】
図9に示すように、アプリケーションプログラムの処理が、罫線作成のモードに入ると(ステップS100)、まず確定した文字上に罫線が重なる状況が発生したか否かを判断し(ステップS102)、重複が発生していないときには以下の処理を行なうことなく、「END」に抜けて本処理ルーチンを終了する。これに対して、文字列に対する罫線の重複が発生したと判定したときには、その罫線に掛かる文字を消去する処理を行なう(ステップS104)。文字列を構成する文字は、プロポーショナルなフォントでは文字毎に幅は相違するものの、文字毎に指定されたフォントおよびポイント数から定まる幅を持つものとして管理されている。他方、罫線は表示される線幅とは無関係に一定の幅をもつものとして扱われている。従って、両者の重なり合いを演算により求めることは容易である。罫線が所定の幅を持つため、縦に1本の罫線を引いただけで、複数の文字との重複を生じ、結果的に複数の文字が消去されることも有り得る。
【0064】
重複が生じた文字を消去した後、指定されている線種の罫線をその場所に描き(ステップS106)、この罫線の左の文字列の終端から罫線までに空白があるか否かを判断する(ステップS108)。そして、罫線左の文字列終端から罫線までに空白がある場合には、この空白と略同一の文字幅となるアウトラインフォントによるスペース情報、すなわちスペースの個数やポイント数を自動演算し(ステップS110)、これを罫線の左側に挿入する(ステップS112)。続いて、罫線から罫線右の文字列先頭まで空白があるか否かを判断し(ステップS114)、この空白がある場合には上記同様に空白を埋め尽くすだけのスペース情報を自動演算し(ステップS116)、これをその罫線右側の空白部分に挿入する(ステップS118)。こうして罫線の挿入に因っても従前の文字列の位置が不変となるように出来る限り文字幅が同一となるスペースを挿入するが、上記処理によっても以前として余りの空白がある場合には(ステップS120)、この空白を埋め尽くすために罫線右側の文字列をその余り空白部分に移動させ(ステップS122)、処理を完了する。
【0065】
こうした処理により、図8に示すように文字列「あいうえお」の「い」という文字情報に重ねて罫線描画が指令された場合、その重なる文字情報「い」を消去して罫線描画を優先し、その他の文字列「あうえお」の位置が従前の位置と変わらないように罫線の左あるいは右の空白部にスペースが自動挿入されるのである。これにより、アウトラインフォントにより任意の大きさに設定されている文字列に対して一定幅の罫線が重複描画された場合にも、文字列の配置位置は従前とほぼ同一となり、使用者の文書作成イメージが壊されることなく、文字列と罫線との混在したデータファイルを手早く作成することができる。空白を埋めるスペース情報の演算は、所定幅のスペースの個数を演算することでも良いし、スペースのポイント数等を演算することでも良い。
【0066】
次に、本発明の第2の実施例について説明する。第2実施例は、上記のような罫線の挿入が、アプリケーションソフトのデフォルト値である左寄せ以外の行属性、例えば均等配置,右寄せ,中央寄せ等が設定された行においてなされた場合の処理方法である。この場合の処理について、図10(A),(B),(C)の説明図及び図11のフローチャートに従って説明する。
【0067】
罫線の作成処理が実行されると、まず使用者の指示に従って罫線を作成した後(ステップS200)、この罫線が描かれた行に設定された行属性がデフォルト値、即ち左寄せ属性か否かを判断し(ステップS202)、デフォルト値である場合には「END」に抜けて処理を終了する。行属性がデフォルト値から変更されていた場合、すなわち図10(A)〜(C)に示すように均等配置,右寄せあるいは中央寄せが設定されている場合には、罫線が描かれる行に文字列があるか否かを判断し(ステップS204)、文字列が既に存在する場合にのみ以下の処理を実行する。まず、罫線が描画されたその位置に文字が存在した場合には先の実施例同様(図8,図9参照)その文字を削除し(ステップS206)、罫線により左右に分割された領域のうち左の文字列の行属性を初期設定である左寄せに戻し(ステップS208)、その文字列の最後に改行コードを付加する(ステップS210)。同様に、罫線右側の文字列の文字列の行属性も、初期設定である左寄せに戻し(ステップS212)、その文字列の最後に改行コードを付加し(ステップS214)、この処理を終了する。
【0068】
罫線が引かれたことで行が分割された場合、その罫線を境界とする左右両側の領域については、行属性である均等配置,右寄せなどが独立して設定可能となっているので、罫線による分割前の設定と分割後の設定との関係が問題となる。本実施例では、予め行属性が設定されている行に罫線が挿入されたときを取り上げており、行の分割による行属性の設定変更について、罫線左右の両領域に対して初期設定(デフォルト)の行属性に自動的に戻すものとしている。なお、この処理は、文字列が罫線によって分割されない場合(例えば右寄せされた文字列の左側隔たった位置に罫線を引いた場合)でも同様である。また、文字の上に罫線が作成された場合には、その重なった文字は、図9のフローチャートにて説明したと処理に準じて取り扱い、その文字を削除する。
【0069】
次に、本発明の第3の実施例について説明する。第3実施例の文字列と罫線の混在処理方法は、タブ,インデント等が設定された行に罫線を引いた場合の処理に関する。タブやインデントは、文字列を所望の位置に配置するための設定であるが、このタブ,インデントについては、実施例では上記図11のフローチャートとは異なる次の処理を行なっている。図12(A),(B),(C)及び図13は、タブが存在するか、インデントがデフォルト値から変更された段落について罫線が描かれた場合の処理の説明図及びそのフローチャートである。なお、デフォルトでは、タブは8文字毎に設定されており、インデントは左マージン位置と同一位置に設定されている。なお、タブやインデントの設定は、全角または半角の標準の文字の大きさを単位として設定するものとしたが、ミリ等の長さの単位やドット数等の単位を用いて設定することも可能である。
【0070】
図13に示した処理が開始されると、使用者の指示に従って罫線を作成した後(ステップS300)、この罫線が描かれた行にデフォルト値と異なるインデント設定がなされているかを判断し(ステップS302)、デフォルト値から何等かの変更がなされている場合、すなわち図12(B),(C)に示すようにインデント設定されている場合には、インデントによる空白量をスペース情報によって置換する(ステップS304)。続いて、罫線が描かれる文字列にタブが含まれているか否かを判断し(ステップS306)、タブが含まれている場合(図12(A)を参照)には、このタブによる空白量をスペース情報に置換する(ステップS308)。こうしてインデント,タブによる空白部分がすべてスペース情報に置換された後には、罫線左のインデントの設定をデフォルト値に復帰させ(ステップS310)、罫線右のインデントの設定をデフォルト値に復帰させ(ステップS312)、罫線左のタブ設定を標準タブに復帰させ(ステップS314)、罫線右のタブ設定を標準タブに復帰させ(ステップS316)、処理を終了する。なお、ステップS304およびステップS308で置換されるスペース情報は、第1実施例で説明したスペース情報と同じものである。スペースによる置換は、インデントまたはタブによる構成された空白をこれとほぼ同じ幅となる個数のスペースで置き換えるものとしても良いし、スペースのポイント数等を演算して大きな幅のスペースと置き換えを行なうものとしても差し支えない。
【0071】
即ち、タブやインデントが設定されている行では、罫線が挿入されて行が分割された場合、第2実施例で説明した右寄せや均等配置の場合のように、文字列の配置を初期設定の配置(実施例では左寄せ)に戻すのではなく、罫線を作成する前の配置とほぼ同一の位置に配置するようにスペースを挿入しているのである。これは、タブ,インデントが、前述した行属性である均等配置,右寄せなどと異なり、段落毎に設定使用されることが一般的であり、罫線が挿入された後においても文字列の配置位置をそのままの状態とすることが使用者の文書作成のイメージに合致すると考えられるからである。また、罫線挿入後の左右の領域の文字列には、タブ,インデントのデフォルト値が自動設定されるため、使用者には文書作成のイメージが残存されたまま、かつ、文書作成に最も多用されるデフォルト値による操作環境が提供され、極めて使い勝手に優れたものとなる。なお、タブ,インデントは1文字とみなし、この上に罫線が描かれる場合には図9にて説明した文字削除処理と同様に実行される。
【0072】
以上、罫線を追加する際の各種処理について説明したが、本実施例のアプリケーションソフトは、既に描画されている罫線を削除する際にも以下のような優れたインタフェイスを用意している。これらについて以下の実施例で説明する。
【0073】
図14(A),(B)及び図15は、アプリケーションソフトのデフォルト値が採用された行、すなわち左寄せ属性で、かつ、タブ,インデントの変更設定がなされていない行に描画されている罫線を削除する際の処理説明図及びフローチャートであり、第4実施例の概要を示す。
【0074】
図15に示した処理が開始されると、罫線を消去する処理(ステップS400)がまずなされる。罫線の消去は罫線上のある点から他の点までを指定して「DEL」キー等を操作することで実行可能である。罫線の消去がなされると、その罫線により分割されていた左右の区間に存在していた文字列の統合(図14(A)を参照)が生じるか否か(ステップS402)、そして少なくとも削除された罫線の右側の編集領域に文字列が存在(図14(B)を参照)するか否かを判断する(ステップS404)。この何れかの条件が成立しない場合には、単純に罫線を削除するためにその消去した罫線に替わってスペース情報を挿入(ステップS406)して処理を終了する。スペース情報の挿入は、第1実施例で説明した手法が用いられる。
【0075】
他方、ステップS402とS404の両条件が成立する場合には、消去した罫線の左側に存在する文字列の終端から右側に存在する文字列の先頭までの空白量と略同一の文字幅となるアウトラインフォントによるスペース情報、すなわちスペースの個数やポイント数を自動演算し(ステップS408)、これをその空白部にに挿入する(ステップS410)。そして、こうして罫線の消去に因っても従前の文字列の位置が不変となるように出来る限り文字幅が同一となるスペース情報を挿入するが、上記処理によっても以前として余りの空白がある場合には(ステップS412)、この空白を埋め尽くすために右側の編集領域の文字列をその余り空白部分に移動させ(ステップS414)、処理を完了する。
【0076】
第4実施例の罫線消去処理によれば、罫線が既に存在した行においてその罫線が消去されるても、消去された罫線によりそれまで左右の編集領域に分割されていたそれぞれの文字列の配置位置はほぼ同一に保たれる。従って、作成中の文書のイメージは維持され、文書作成の効率を低下させることがない。しかも、この文字列の配置位置をほぼ同一に維持するためのスペース情報が自動演算されるため、文字列にアウトラインフォントを使用している本実施例のOSにおいても高い精度で文書イメージを維持することが可能となる。
【0077】
次に、第5実施例として、罫線により左右に分割された編集領域の何れかにアプリケーションソフトの初期設定である左寄せ以外の行属性の設定、例えば均等配置,右寄せ,中央寄せがなされている場合の処理について、図16の説明図及び図17のフローチャートに従い説明する。
【0078】
この処理が開始されると、使用者の指示により、指定された罫線を消去した後(ステップS500)、罫線の消去により、それまで罫線により分割されていた左右の編集領域の統合が発生するか否かを判断し(ステップS502)、領域の統合が発生しない場合には直ちに罫線消去処理(ステップS504)を実行して本プログラムを終了する。一方、領域の統合が発生するとステップS502にて判定された場合には、統合される左側の編集領域の行属性が初期設定(実施例では左寄せ属性)以外の設定か否かを判断し(ステップS506)、初期設定から何等かの変更がなされている場合、すなわち図16に例示するように均等配置などが設定されている場合にはその設定をデフォルト値である左寄せに復帰(ステップS508)させる(図16に示す中段の状態参照)。そして、統合される右側の編集領域についても、属性の設定がデフォルトの左寄せか否かを判断し(ステップS510)、左寄せでない場合のみその段落設定値をデフォルト値の左寄せ属性に設定し(ステップS512)、その後に罫線消去処理(ステップS504)を実行して(図16に示す下段の状態参照)、この処理を終了する。
【0079】
この罫線消去処理によれば、罫線を消去したことで統合されて1つの編集領域となる行に対し、文書作成に際して最も使用頻度の高い初期設定である左寄せ属性が自動的に設定される。従って、罫線消去により新たに発生した編集領域での編集活動を円滑に行なうことができる。しかも、左右の編集領域に存在した文字列を統合する際には、罫線により分割されていた状態で存在した文字列間の隔たりと等しい距離となるようスペース情報を演算して挿入する。従って、図16の下段に示すように、左右に分割されていた文字列の状態を保ったまま、新たな編集領域とするので、領域統合後も従前どおり位置関係にある文字列をベースとして文書作成を実行することができる。
【0080】
なお、タブ,インデントについては、前記罫線の挿入と同様に、上記図16,図17に示した実施例とは異なる処理が用意されている。この処理を第6実施例として説明する。図18(A),(B)及び図19は、タブが存在するかインデントがデフォルト値から変更された段落についての罫線消去処理の説明図及びフローチャートである。
【0081】
この場合、罫線消去の処理が指示されると、使用者の指示に従って罫線を消去した後(ステップS600)、その罫線消去により領域の統合が発生するか否かを判断し(ステップS602)、領域統合が発生しない場合にはこの処理を終了する。一方、ステップS602の判断処理により領域統合が発生すると判定された場合には、統合される罫線左側領域の文字列にタブデータが存在するか否かを判断し(ステップS604)、タブデータが存在する場合には、該タブデータを、そのタブデータにより表示上形成される空白の幅と略同一となるスペース情報にて置換する(ステップS606)。次いで、統合される罫線右側領域についても同様にタブデータの有無について判断する処理を行ない(ステップS608)、更にタブデータが存在する場合、スペース情報へ置換する処理(ステップS610)を実行する(図18(A)を参照)。
【0082】
統合される左右領域についてのタブデータの置換処理が完了すると、続いてインデントを設定する処理に移行する。すなわち、統合される左側領域にデフォルト値と異なるインデント設定がなされているか否かを判断し(ステップS612)、何等かのインデント設定がなされている場合、すなわち図18(B)に示すようにインデント設定されている場合には、インデントによる空白量をスペース情報によって置換する処理を行なう(ステップS614)。統合される右側領域についても同様にデフォルト値と異なるインデントの設定がなされているか否かを判断し(ステップS616)、インデントの設定がある場合にはこれに相当する空白量をスペース情報により置換する処理を行なう(ステップS618)。この様子を、図18(B)に示した。その後、先に指示された罫線を消去する処理(ステップS620)を実行し、統合された編集領域について、タブ,インデントの設定をデフォルト値に復帰させ(ステップS622)、「END」に抜けて処理を終了する。
【0083】
以上説明した第6実施例の処理により、段落毎に設定使用されるタブ,インデントについては、左右編集領域の統合前の文字列配置位置を維持しつつ、新たな統合編集領域を生成することができる。すなわち、罫線を消去した行の変更が同一段落の他の文字列配置位置に何等の影響を及ぼさないように処理し、使用者の段落イメージに合致した形式にて罫線を消去する処理を行なうのである。しかも、統合された編集領域では、タブ,インデントの設定はデフォルト値に自動復帰されるため、それ以後の文書作成作業が円滑となるのである。
【0084】
以上いくつかの実施例により説明したように、実施例の文字列と罫線の混在処理方法およびその装置によれば、文字列の配置状態をデフォルト値の左寄せから、右寄せ、中央寄せ設定している場合、または段落設定をデフォルトのインデント設定から変更している場合あるいは段落にタブが設定されている場合についても罫線の挿入,削除を使用者の感覚に合致した形で行なうことができる。また、編集領域の統廃合に応じてその編集領域の行配置や段落設定などを適宜デフォルト値に復帰させるため、罫線の挿入,削除処理を行なった後の文書作成が極めて簡単となる。
【0085】
また、文字情報の削除や上記各種設定の変更に伴って空白部が発生するときには、その空白部を埋めるスペース情報が自動演算、自動挿入されるため、文書全体のイメージを保ったままで罫線の挿入,削除を行なうことができる。これによって使用者は、罫線操作前の文書イメージを描き続けたまま、操作後の文書編集ができるのである。
【0086】
更に、罫線を付加する位置についてもマウス42を有効に利用することで、編集部418の任意の位置を高い分解能で指示することができ、かつ、縦横の罫線の配置位置が一操作で完了する。
【0087】
以上、罫線の挿入と消去に関する各種処理方法について説明したが、本実施例のアプリケーションソフトはこれ以外にも罫線により区画される編集領域の管理及び罫線作成に関して優れたユーザ・インタフェイスを用意している。次に、これらのユーザ・インタフェイスについて詳述する。
【0088】
図20(A),(B),(C)及び図21は、編集領域の管理に関する処理の説明図及びその部分のプログラムのフローチャートであり、第7実施例の概要を示すものである。なお、図20は、矩形の罫線KLにより区画された編集領域に文字列「abc…xyz」が予め入力されており(図20(A))、この文字列の途中に「123」という文字列を挿入し(20図(B))、その追加した文字列から文字「3」のみを消去(図20(C))するという一連の文書編集処理を施した過程を例として、編集部418の表示状態の変化を示している。また、この処理プログラムは、罫線KLにより区画された編集領域にカーソルが配置され、その編集領域内においてカーソルのある位置の文字列が編集される際に実行される。すなわち、この処理は、文字列の編集作業と同時かつ並行的に処理されるものである。文字列の編集作業とは、文字列に対して情報の追加,挿入,削除,フォントやポイント数の変更などを行ない、その作業に応じた画面描画や各種管理情報の変更を実行する処理である。
【0089】
使用者による文字列の編集作業が開始されると、まず初めにその編集領域の縦方向の大きさ(初期値)を所定の記憶領域に記憶する(ステップS700)。その後、使用者による文字列の編集がなされると、編集後の文字列の占有面積を算出し(ステップS702)、この新たな占有面積とステップS700にて記憶した編集領域との大小関係を判断する(ステップS704)。記憶した編集領域の当初の大きさ(初期値)よりも算出された占有面積が大きい場合には、編集されつつある文字列が収まる編集領域の大きさを演算し(ステップS706)、編集領域の下辺を区画している罫線の位置を下方向に延長する(ステップS708)。実際には、下辺の罫線を消去して新たな罫線を描画する処理を実行するのである。即ち、図20(A)の状態から同図(B)の状態へ、罫線KLを変更する。もとより、占有面積が編集領域の初期値より大きいのであれば、編集によって占有面積が減った場合にも、矩形の罫線KLの書き直しがなされる。一方、編集に伴って算出した占有面積がステップS700にて記憶した編集領域の初期値より小さいとステップS704にて判断された場合には、本処理を終了し、罫線描画をそのままの状態、すなわち当該編集領域のデフォルトの大きさに維持する(図20(B)の状態から同図(C)の状態への変更)。
【0090】
この様な編集領域の処理により、罫線により区画された編集領域内の文字列の情報量が増加した場合、罫線を自動延長して文字列が編集領域内に収まるように処理できることは勿論である。そして更に、この様な自動延長機能に加え、自動延長した罫線による編集領域に対して文字列の情報量が小さいものとなったとき、自動延長した領域に限って罫線を縮小する。換言するならば、罫線作成時の編集領域の大きさを基準として、その編集領域に記入される文字列の占有面積に応じて罫線による領域の大きさは自動伸縮するのであり、文書編集の作業効率が大幅に向上する。例えば、大量の文字列を編集領域に入力した場合、編集領域を区画する罫線は更新されてその文字列を収納するに十分な大きさに拡大され、しかも入力されたこの文字列が削除されたりした場合には、罫線は初期値の大きさまで漸次縮小する。
【0091】
次に、第8実施例について説明する。第8実施例では、上述した罫線の生成、削除を伴う処理において、罫線を描画する処理自身を取り上げ、マウス42を利用して簡単に縦横の罫線描画を行なうことができるユーザインタフェイスについて説明する。図22は、本実施例のアプリケーションソフトで採用しているマウス42を利用した罫線の描画の操作手順に則し、罫線の描画が完成するまでのディスプレイ40の表示の状態を時系列的に示した説明図である。各図に添えられている文字は、その図の状態となるためになされる操作などについて説明するものである。図22(A)に示するように、罫線描画に際して本ソフトにより処理は次のように行なわれる。
【0092】
使用者は、矩形の罫線を作成する際、作成しようとする罫線の左上隅の位置P1でマウス42の左ボタン422を押圧する。位置P1を指定すると、その位置が第n罫線ブロックの開始位置として記憶される。その後、マウス42が移動されるとこれに応じてポインタPが移動し、ポインタPの移動位置を矩形罫線の右下隅とする矩形RSが、ディスプレイ40に表示される。この状態での罫線の表示は、ポインタPの移動に応じて自由に動くので、ラバーバンド形式による表示と呼んでいる。そして、使用者がディスプレイ40を見ながらマウス42を移動させ、所望の位置P2でキーボード46の所定キー(例えば「TAB」キー)を操作すると、その位置P2が検出され、この位置を分割点として記憶する処理がなされる。分割点が記憶されると、開始位置P1を左上隅とし当該分割点を交点とする縦横の分割罫線RLを、矩形の罫線と同様の表示の態様で表示する(図22(B))。従って、以上の処理を繰り返すならば、図22(C)に示すように、分割点の個数(P2,P3・・・)に応じた多数の縦横の罫線が表示されることになる。その後、使用者がキーボード46の所定キーに割り付けられた終了キー(例えば「RETURN」キー)を操作すると、これが検出され、罫線は、ラバーバンド形式の描画状態から、所定の線種の罫線としての描画状態に変更され、確定された罫線が表示される。また、内部的には、罫線ブロックの情報が確定される(図22(D))。上記例では、「TAB」の操作により分割点を記憶するものとしたが、分割点の記憶は、「TAB」キー以外のキーに割り当てることはもとより、他の種々の操作によっても指定可能である。例えば、マウスの機能が割り当てられていないボタンの操作、タブレットが存在する場合にはタブレット上の所定の位置での指示、ライトペンによる指定等であっても差し支えない。
【0093】
第1実施例において説明した図1の描画状態は、この操作方法により罫線の開始位置を指定してラバーバンド形式の矩形罫線をドラッグしている状態を示したものである。この状態でキーボード46に割り付けられた終了キーを操作すると、図23に示すように所定の線種として選択されている罫線により描画が完了し、かつ、前記した各種の文字列と罫線の混在処理方法に基づくデータ処理が実行されるのである。もとより、矩形の罫線の描画の途中で分割点が指定されていれば、その分割点を通る縦横の罫線も表示される。
【0094】
一方、図22(C)に示したように、ラバーバンド形式で罫線が表示されており、まだ確定していない状態において、既に指定した分割点を取り消したい場合が有り得る。図22(E),(F)は、分割点を取り消す操作方法の一つを示すものである。ある分割点Pnを指定した後で、マウス42を操作してポインタPを、この分割点よりも矩形の罫線の開始位置P1側に持ってきた場合には、先に指定した分割点Pnを消去するものとし、この分割点に関する情報もメモリ上から消去する。この分割点を交点とする縦横の罫線も同様に消去される。複数の分割点がある場合、図22(E)及び(F)に示しているように、ポインタPがその内側(開始位置側)に移動した分割点P3は消去されるが、ポインタPがその外側に位置している分割点P2は消去されない(図22(E))。そしてこの状態から更にマウス42をドラッグして分割キーを操作すると、図22(F)に示すように、新たな位置を分割点P3として新たな縦横の罫線の表示がなされるのである。
【0095】
この様な罫線作成のユーザインタフェイスによれば、従来の罫線作成の手順のように縦方向の罫線と横方向の罫線とを別個に位置指定する手間が省略され、縦横の罫線を一操作で簡単に作成することができる。また、マウス42の操作により簡単に縦横の罫線の指定を取り消すことができる。なお、図22(X),(Y)に示したように、ポインタPを戻すだけで分割点を取り消す構成に代えて、ポインタPを分割点の上において所定の操作(例えば分割キーやマウスボタンの再度の操作)を行なうことで分割点を取り消す構成とすることも差し支えない。この場合には、複数個の分割点うち開始位置P1に近い側のものを他の分割点を取り消すことなく取り消すという操作が可能となる。なお、本実施例では、ポインタPの移動にはマウスやトラックボール等のポインティングデバイスを用いるものとして説明したが、カーソルキー等の操作によりポインタを移動するものとしても差し支えない。
【0096】
以上本発明の実施例について説明したが、本発明はこうした実施例に何等限定されるものではなく、その要旨を逸脱しない種々なる態用により具現化されることは勿論である。
【0097】
【発明の効果】
以上説明したように本発明の文字列と罫線の混在処理方法およびその装置は、文字及び罫線が混在したデータファイルを作成する使用者にとって最も快適なインタフェイスを提供し、大きさを自由に設定できる文字列と罫線の混在への適切な対処、カーソルキー操作やポインティングデバイスを有効に利用した罫線の配置指示などを可能とする。
【0098】
特に請求項1の処理方法および請求項12記載の処理装置によれば、罫線と文字列とが重複した場合には、文字を消去して罫線を優先して表示するが、文字を消去した際、消去した文字と略同一の幅を有するスペースを演算し、重複の発生した文字に代えてこのスペースを挿入するので、文字の消去にも関わらず、元の文字列は概ね同一の位置に表示されるという効果を奏する。
【0099】
また、請求項4の処理方法および請求項13記載の処理装置によれば、罫線が挿入された行では、罫線より分割された領域毎に文字列の配置は初期の配置状態に復帰するので、使用者にとって素直なインタフェイスが実現される。
【0100】
請求項6の処理方法および請求項14記載の処理装置によれば、所定の配置状態が設定されている行に罫線が挿入されると、配置状態の設定を初期状態に戻すと共に、既に配置された文字列についてはその位置を保持するようにスペースを演算して挿入するので、配置状態の設定は初期化されるが文字列の配置はほとんど変わらず、使用者が違和感を感じることがないという効果が得られる。
【0101】
請求項8の処理方法および請求項15の処理装置によれば、所定の配置状態が設定された行に存在した罫線が削除されたとき、所定の配置状態とされた文字列を、罫線により分割されていた区間毎に初期位置もしくはその近傍位置に復帰させるので、罫線により分割された区間で、例えば右寄せされていた文字列は、罫線が削除されると、初期状態(例えば左寄せの状態)に復帰される。罫線が削除されて分割されていた区間がなくなった場合、使用者にとって分かりやすいインタフェイスが実現される。
【0102】
請求項10の処理方法および請求項16の処理装置によれば、所定の配置状態が設定された行に存在した罫線が削除されると、罫線により分割されていた区間におけるそれぞれの文字列の配置位置が、その配置状態での配置位置もしくはその近傍となるように、所定幅のスペースを演算し挿入するので、罫線を削除しても、既に所定の配置状態に配置された文字列は、ほぼ元の位置に配置され、使用者にとって違和感のないインタフェイスが実現されるという効果が得られる。
【図面の簡単な説明】
【図1】本発明の一実施例である文字列と罫線の混在処理方法を実現するアプリケーションソフトウェアが採用する基本ウインドウ画面の説明図である。
【図2】実施例の文字列と罫線の混在処理装置を実現するコンピュータの概略ブロック図である。
【図3】アプリケーションソフト内部のデータ構造を説明するための説明図である。
【図4】罫線データ構造のイメージを示す説明図である。
【図5】罫線のデータ構造の説明図である。
【図6】編集領域のデータ構造の説明図である。
【図7】文字列情報のデータ構造の説明図である。
【図8】文字列に重ねて罫線を引く様子を示す説明図である。
【図9】罫線を文字列に重ねて引いた場合の処理を示すフローチャートである。
【図10】行属性が設定される文字列に罫線を挿入する様子を示す説明図である。
【図11】行属性が設定される文字列に罫線を挿入する処理を示すフローチャートである。
【図12】段落設定がなされている文字列に罫線を挿入する様子を示す説明図である。
【図13】段落設定がなされている文字列に罫線を挿入する処理を示すフローチャートである。
【図14】文字列から罫線を消去する様子を示す説明図である。
【図15】文字列から罫線を消去する処理を示すフローチャートである。
【図16】行属性が設定された文字列から罫線を消去する様子を示す説明図である。
【図17】行属性が設定された文字列から罫線を消去する処理を示すフローチャートである。
【図18】段落設定がなされている文字列から罫線を消去する様子を示す説明図である。
【図19】段落設定がなされている文字列から罫線を消去する処理を示すフローチャートである。
【図20】罫線により区画された領域を伸縮する様子を示す説明図である。
【図21】罫線により区画された領域を伸縮する処理を示すフローチャートである。
【図22】矩形の罫線をマウスで描画する様子を示す説明図である。
【図23】矩形の罫線をマウスで描画しつつ縦横の分割罫線を発生および消去する例を示す説明図である。
【符号の説明】
20…パーソナルコンピュータ
22…CPU
24…ROM
26…RAM
28〜36…入出力インターフェイス
40…ディスプレイ
42…マウス
46…キーボード
48…プリンタ
50…ハードディスク
402…タイトルバー
402A…ボタン
402B…ボタン
402C…ボタン
404…メニューバー
406…ツールバー
410…操作領域
412…ルーラ部
414…属性表示部
416…スクロール部
418…編集部
420…ステータスバー
422…左ボタン
[0001]
[Industrial application fields]
The present invention relates to a mixed processing method and apparatus for displaying a character string of a desired size and a ruled line of a predetermined line type on a display and processing the character string and the ruled line together.
[0002]
[Prior art]
Conventionally, most word processor software processed by a word processor device or a computer has a function of inserting ruled lines at arbitrary positions of a character string, and visually separates a sentence to be expressed by a character string by dividing the line with ruled lines. It is used for improving expressive power and for facilitating understanding of information.
[0003]
Also, this type of device or software makes the above visual effects even more prominent, so that a ruled line drawing display format such as preparing multiple line widths such as solid lines and dotted lines as line types used for drawing ruled lines. Consideration.
[0004]
In a word processor that processes Japanese characters, the character width has conventionally been an integer multiple, such as the so-called full-width and half-width of the half-width, and the double-width that is twice the full-width. It was common to draw a ruled line as a unit. In addition, the original ruled line was drawn at the same position as the character, and when the ruled line was drawn at the position where the character was already written, the character was overwritten. Recently, a so-called line spacing (character spacing between characters) is drawn. ) Ruled lines are also used.
[0005]
[Problems to be solved by the invention]
However, the above-mentioned device or software only assumes that there are several types of characters with the same character width and at most an integer multiple, and a document containing multiple types of characters of different sizes. The current situation is that I don't know how to handle ruled lines. In recent years, the microprocessors in charge of computer information processing have greatly improved their capabilities, and it has become possible to display and print any number of characters neatly using outline fonts for each character that constitutes a character string. However, in an apparatus or software that employs such an outline font, the drawing range of the character cannot be uniquely determined, so that a ruled line cannot be drawn according to the character. Therefore, for example, when a ruled line is drawn where a character exists, the conventional method that simply replaces the character and the ruled line may cause unexpected blanks and non-consumed characters depending on the font difference and the character size (number of points). Movement or interference between characters and ruled lines will occur.
[0006]
Furthermore, when various arrangement states are set for a line where characters are already arranged, the problem of how to arrange the characters on the line after drawing a ruled line or deleting an existing ruled line There was also. If the character layout is set, for example, left-justified, right-justified, center-justified, evenly arranged, or tab, indented, etc. The problem is whether or not characters should be arranged using an existing arrangement state for each of a plurality of areas divided by ruled lines. Actually, when a character string is rearranged by inserting or deleting a ruled line, the amount of movement for repositioning may be large, and processing undesired for the user may be performed.
[0007]
Furthermore, when the size and width of characters are diversified, the position where the ruled line is added requires higher resolution than the conventional method, so it is specified by a cursor that moves in units of a predetermined width and height. Instead of the conventional designation method, it is considered to use a pointing device such as a mouse or a tablet. However, the conventional method has not yet reached the point where the pointing device is effectively used to simply designate the arrangement positions of the vertical and horizontal ruled lines.
[0008]
The mixed processing method and apparatus for character strings and ruled lines according to the present invention solves these problems and provides the most comfortable interface for a user who creates a document in which characters and ruled lines are mixed. In order to cope with this problem, and to enable simple designation of the arrangement position of the ruled line using the pointing device effectively, the following configuration is adopted.
[0009]
[Means and Actions for Solving the Problems]
  The mixed processing method of character strings and ruled lines according to claim 1 is:
  A character string of a desired size and a ruled line of a predetermined line type are displayed on the display, and the character string and the ruled line are mixedly processed.Executed by the document processing deviceA method,
  The ruled line is drawn on a part of the character string displayed left-justified on the display.From the position of the character on the display and the position of the ruled lineDetect
  Erase the duplicated character in the character string from the display and display the ruled line preferentially,
  A space having approximately the same character width as the interval between the displayed ruled line and the characters following the erased characters is calculated for each of the characters before and after the erased characters,
  Inserting the calculated space into the character string instead of the duplicated character
  Is the gist.
[0010]
  According to this processing method, when the ruled line and the character string overlap, the character is deleted and the ruled line is displayed with priority, but when the character is deleted, the displayed ruled line and the deleted character are displayed.Before and afterA space having approximately the same width as the space between the following charactersAbout each before and after erasedOperate and insert this space instead of the duplicated character. As a result, the original character string is displayed at substantially the same position despite the deletion of the character.
[0011]
According to a second aspect of the present invention, in the mixed processing method of character strings and ruled lines according to claim 1, the number of spaces having a width substantially the same as the interval between the displayed ruled line and the character following the erased character is calculated. This is performed as a calculation process. Depending on the type of character, the character width varies depending on the character even in the same font. For example, in a proportional font, the character width is usually different between “W” and “i”. In this case, the number of spaces to be replaced when “W” is erased is different from the number of spaces to be replaced when “i” is erased. Therefore, according to the processing method of claim 2, the replacement is simply performed by obtaining the number of spaces to be replaced.
[0012]
According to a third aspect of the present invention, in the mixed processing method for character strings and ruled lines according to claim 1, the space calculation is performed so that the width of the space is substantially the same as the interval between the displayed ruled line and the character following the erased character. Is performed as a process of calculating. Whereas the space necessary for replacing the erased character is adjusted by the number of spaces (Claim 2), in Claim 3, the space is replaced by calculating the number of points of the space itself. is there.
[0013]
The character string and ruled line mixed processing method of claim 4 is:
A method of displaying a character string of a desired size and a ruled line of a predetermined line type on a display, and processing the character string and the ruled line together,
By executing the predetermined command, the character string displayed on the display is arranged in a predetermined arrangement state according to the predetermined command,
When the ruled line is inserted in the line where the character string is arranged in the arrangement state, this is detected,
The arrangement state of the character string is restored to the initial arrangement state for each of the areas divided into left and right with the ruled line insertion point as a boundary.
Is the gist.
[0014]
Therefore, according to this processing method, in the line in which the ruled line is inserted, the arrangement of the character strings is restored to the initial arrangement state for each area divided from the ruled line. Various arrangement states such as right alignment, left alignment and indentation can be set in the original line, because these are one of the most straightforward interfaces for the user to return to the initial arrangement state by inserting ruled lines.
[0015]
Claim 5 is the mixed processing method of character strings and ruled lines according to claim 4, wherein the arrangement state of the character strings is left-justified, right-justified, centering, evenly arranged or justified (both have characters at both ends and the inside is evenly arranged) ). This is the minimum processing required for processing a document.
[0016]
The mixed processing method of character strings and ruled lines according to claim 6 is:
A method of displaying a character string of a desired size and a ruled line of a predetermined line type on a display, and processing the character string and the ruled line together,
By executing the predetermined command, the character string displayed on the display is arranged in a predetermined arrangement state according to the predetermined command,
When the ruled line is inserted in the line where the character string is arranged in the arrangement state,
Return the setting of the arrangement state to the initial state,
A space of a predetermined width is calculated so that the arrangement position of each character string in the section divided by the inserted ruled line is the arrangement state or the vicinity thereof,
Insert the calculated space
Is the gist.
[0017]
According to this processing method, when a ruled line is inserted into a row in which a predetermined arrangement state is set, the arrangement state setting is returned to the initial state, and the position of the already arranged character string is maintained. Calculate and insert a space in Accordingly, the setting of the arrangement state is initialized, but the arrangement of the character strings is hardly changed, and the user does not feel uncomfortable.
[0018]
According to a seventh aspect of the present invention, in the mixed processing method of character strings and ruled lines according to the sixth aspect, the character string arrangement state is specified to be an arrangement by tabs or indents. These are necessary as the arrangement state of the document.
[0019]
The mixed processing method of character strings and ruled lines according to claim 8 is:
A method of displaying a character string of a desired size and a ruled line of a predetermined line type on a display, and processing the character string and the ruled line together,
By executing the predetermined command, the character string displayed on the display is arranged in a predetermined arrangement state according to the predetermined command,
When the ruled line existing in the line where the character string is arranged in the arrangement state is deleted, for each section divided by the ruled line, the character string put in the predetermined arrangement state by executing the predetermined command is changed. Return to the initial position for each section or the vicinity thereof
Is the gist.
[0020]
According to this processing method, when a ruled line existing in a row for which a predetermined arrangement state is set is deleted, the character string in the predetermined arrangement state is set to the initial position or its position for each section divided by the ruled line. Return to a nearby position. Accordingly, for example, a character string that has been right-justified in a section divided by a ruled line is restored to an initial state (for example, a left-justified state) when the ruled line is deleted. This is because, when the ruled line is deleted and there is no longer a section that has been divided, it is one of the easy-to-understand actions for the user to return the arrangement state of each section to the initial state.
[0021]
According to a ninth aspect of the present invention, in the mixed character string / ruled line processing method according to the eighth aspect, the return to the initial position is performed by inserting a tab code or a space of a predetermined width. Therefore, it is possible to easily return to the initial state.
[0022]
The mixed processing method of character strings and ruled lines according to claim 10 is:
A method of displaying a character string of a desired size and a ruled line of a predetermined line type on a display, and processing the character string and the ruled line together,
By executing the predetermined command, the character string displayed on the display is arranged in a predetermined arrangement state according to the predetermined command,
When the ruled line existing in the line where the character string is arranged in the arrangement state is deleted,
Return the setting of the arrangement state to the initial state,
A space of a predetermined width is calculated so that the arrangement position of each character string in the section divided by the deleted ruled line is the arrangement position of the arrangement state or the vicinity thereof,
Insert the calculated space
Is the gist.
[0023]
According to this processing method, when a ruled line existing in a row in which a predetermined arrangement state is set is deleted, the arrangement position of each character string in the section divided by the ruled line is the arrangement position in the arrangement state. Alternatively, a space having a predetermined width is calculated and inserted so as to be in the vicinity thereof. Therefore, even if the ruled line is deleted, the character string already arranged in the predetermined arrangement state is arranged almost at the original position. This processing method is one of the processes that does not give the user a sense of incongruity.
[0024]
The eleventh aspect specifies the character string and ruled line mixed processing method according to the tenth aspect, wherein the character string arrangement state is an arrangement state by tabs or indentation. A tab or indent is one of the basic arrangement states in a document.
[0031]
  Claim 12Is a device that displays a character string of a desired size and a ruled line of a predetermined line type on a display, and performs a mixed processing of the character string and the ruled line,
  Displayed left-justified on the displayDetecting means for detecting that the ruled line is drawn overlappingly on a part of the character string;
  Ruled line display means for preferentially displaying ruled lines by deleting the duplicated characters in the character string;
  Displayed ruled lines and the erased charactersBefore and afterSpaces that have approximately the same character width as the space between the following charactersSpace calculating means for calculating each of the characters before and after the erased character;
  Insertion means for inserting the calculated space into the character string in place of the duplicated character;
  The main point is that
[0032]
  According to this processing apparatus, when the ruled line and the character string overlap, the character is deleted and the ruled line is preferentially displayed., DisappearLeft characterBefore and afterA space having approximately the same width as the space between the following charactersAbout each before and after erased charactersOperate and insert this space instead of the duplicated character. As a result, the original character string is displayed at substantially the same position despite the deletion of the character.
[0033]
  Such a mixed processing device for ruled lines,
  Regarding the arrangement of the character strings displayed on the display, left alignment is preset as an initial arrangement state,
  Predetermined commands excluding left justification for the displayed character stringOf the first command isBy executing, the character string displayed on the display isFirstA character string arranging means arranged in a predetermined arrangement state according to a command and displayed on the display;
  Detecting means for detecting when the ruled line is inserted in a line in which the character string is arranged in the arrangement state;
  Arrangement state returning means for returning the arrangement state of the character string to the initial arrangement state for each section divided right and left with the insertion position of the ruled line as a boundary;
  Can be provided.
[0034]
  Therefore, according to this processing apparatus, in the row in which the ruled line is inserted, the arrangement of the character strings is restored to the initial arrangement state for each area divided from the ruled line. Various alignment states such as right alignment, left alignment and indentation can be set in the original line, but these are the initial alignment states by inserting ruled lines.Left justifiedThis is because it is one of the most straightforward interfaces for the user.
[0035]
  Or this kind ofMixed processing equipment
Furthermore, a space calculation means for calculating a space of a predetermined width so that the arrangement position of each character string in the section divided by the inserted ruled line is the arrangement of the arrangement state or the vicinity thereof,
Space insertion means for inserting the calculated space into the character string on the line and displaying the character string after the space is inserted on the display;
  Can be provided.
[0036]
According to this processing apparatus, when a ruled line is inserted in a row in which a predetermined arrangement state is set, the arrangement state setting is returned to the initial state, and the position of the already arranged character string is maintained. Calculate and insert a space in Accordingly, although the setting of the arrangement state is initialized, the arrangement of the character strings is hardly changed, and the user does not feel uncomfortable.
[0037]
  Furthermore, for each section divided left and right by the ruled line of the row in which the ruled line is inserted,Excluding left justificationA given commandThe second command isAnd an arrangement state setting means for setting the arrangement state of the character string,
  When the ruled line existing in the line where the character string is arranged in the arrangement state is deleted, for each section divided by the ruled line,SecondCharacter strings that have been placed in a predetermined state by command execution areAnd saidinitialArrangement stateAlternatively, arrangement state initialization means for returning to the vicinity thereof can be provided.
[0038]
According to this processing apparatus, when a ruled line that exists in a row in which a predetermined arrangement state is set is deleted, the character string in the predetermined arrangement state is set to the initial position or its position for each section divided by the ruled line. Return to a nearby position. Accordingly, for example, a character string that has been right-justified in a section divided by a ruled line is restored to an initial state (for example, a left-justified state) when the ruled line is deleted. This is because, when the ruled line is deleted and there is no longer a section that has been divided, it is one of the easy-to-understand actions for the user to return the arrangement state of each section to the initial state.
[0039]
  Such a character string and ruled line mixed processing device
  Furthermore, for each section divided left and right by the ruled line of the row in which the ruled line is inserted,Excluding left justificationA given commandThe second command isAnd a character string arranging means for setting the character string arranging state,
  A deletion means for deleting a ruled line existing in the line in which the character string is arranged in the arrangement state;
  When the ruled line is deleted by the deleting means, the setting of the arrangement state of the line in which the character string is arranged is set.SaidinitialPlacementStatussettings ofAn arrangement state initialization means for returning to
  A calculation means for calculating a space of a predetermined width so that the arrangement position of each character string in the section divided by the deleted ruled line is the arrangement position of the arrangement state before deleting the ruled line or the vicinity thereof;
  Space insertion means for inserting the calculated space into the character string on the line and displaying the character string after the space is inserted on the display;
  It can be set as the structure provided with.
[0040]
According to this processing apparatus, when a ruled line that exists in a row in which a predetermined arrangement state is set is deleted, the arrangement position of each character string in the section divided by the ruled line is the arrangement position in the arrangement state. Alternatively, a space having a predetermined width is calculated and inserted so as to be in the vicinity thereof. Therefore, even if the ruled line is deleted, the character string already arranged in the predetermined arrangement state is arranged almost at the original position. This processing apparatus provides one of the processes that does not feel uncomfortable for the user.
[0047]
【Example】
In order to further clarify the configuration and operation of the present invention described above, a preferred embodiment of the character string / ruled line mixed processing method and apparatus of the present invention will be described below. FIG. 1 is an explanatory diagram of a basic window screen displayed on a display 40 when a Japanese word processor application software adopting a mixed processing method of character strings and ruled lines according to an embodiment is operated on a computer, and FIG. It is a functional block diagram inside the personal computer 20 which has started the software. That is, by executing this software on a normal personal computer 20, the character string and ruled line mixed processing method of the present embodiment is realized. If this software is executed on the personal computer 20, the character string and ruled line mixed processing apparatus of the embodiment is realized as a whole.
[0048]
For convenience of explanation, the internal configuration of the personal computer 20 will be described first. As shown in the functional block diagram of FIG. 2, the personal computer 20 in which the software is started has a well-known basic configuration, and the CPU 22 that executes logical operations, the program executed by the CPU 22, and the like are nonvolatile. A ROM 24, a logic circuit portion comprising a large-capacity RAM 26 for storing programs and data, a display 40 as a peripheral device portion, and a mouse 42 as a pointing device for indicating any one point on the display 40 , A keyboard 46, a printer 48, and input / output interfaces 28 to 36 with the hard disk 50. Recently, there are also known various types of high-speed buses used around the CPU 22 for the purpose of improving the processing speed. Therefore, a hardware configuration suitable for processing speed and storage capacity may be employed. .
[0049]
The application program of the embodiment is programmed to operate under a graphical user interface (GUI) managed by an operating system (hereinafter referred to as OS), and is used for a GUI prepared in advance in the OS. By using the tool, the operation method with other application software is unified. In addition, an outline font supported by the OS level (a font that describes character shapes as vector data and generates character dots of the corresponding size according to the specified number of points) can be used for creating documents. Can be displayed smoothly.
[0050]
The top part of the basic window screen of the application shown in FIG. 1 is a title bar 402 that displays the name of the application software according to the embodiment and the file name of the data file currently being processed. A button 402A at the left end of the title bar 402 is a button for pulling down the system menu, and a menu bar 404 for displaying “file” and “edit” is arranged below the button 402A. When an arbitrary display on the menu bar 404 is clicked with the mouse 42, a command related to the display name is displayed in a pull-down manner, and the trouble of memorizing the command name or inputting the command name from the keyboard 46 is omitted.
[0051]
The right end of the tool bar 406 and the title bar 402 in the lower part of the menu bar 404 is not the interface prepared in the OS described above, but is a place where main commands unique to this application software are displayed by icons or command names. When the button 402B (ruled line button) on the right end of the title bar 402 is selected with the mouse 42, a pull-down menu in which commands such as ruled line drawing form, ruled line erasure, and ruled line area enlargement / reduction are iconized is displayed as shown in the figure. . When the button 402C (line type button) on the right side is similarly selected by the mouse 42, a part of 14 types of lines used for ruled line drawing is displayed as shown in the figure. The tool bar 406 includes a character input mode, which is a basic operation mode of the application software of this embodiment, which is a Japanese word processor, a ruled line creation mode, and commands for automatic placement such as left alignment, center alignment, and right alignment, and character outlines. Commands such as the font type and the number of points are displayed by icons, and a command is input to the application software simply by selecting the icons with the mouse 42.
[0052]
An operation area 410 corresponding to the center of the basic window screen is an information editing area unique to this application software, which is a Japanese word processor. Above that, a ruler section 412 for counting the number of characters and setting tabs and indents, An attribute display section 414 that displays attributes set in each row is arranged on the left edge, and a scroll section 416 for scrolling the window up, down, left, and right is arranged on the right edge and the lower edge. The bottom line of the window screen is a status bar 420 that displays the operating state of the application software, for example, the number of pages being edited, the number of lines, and the like.
[0053]
The application software of the present embodiment having the above-described schematic configuration has a ruby function, a footnote function, a format function for designating headers and footers, a kana-kanji conversion function, a dictionary function, etc. Of course, this function is achieved by using a tool, but since these functions are the same as those of general software, the description thereof is omitted.
[0054]
The application software of this embodiment includes a character string that is visually processed inside the editing unit 418 that occupies most of the operation area 410 and a ruled line that divides the character string and is used for understanding the sentence. The mixed processing has a unique and skillful interface as follows. Hereinafter, a mixed processing method of character strings and ruled lines unique to this application software will be described in detail.
[0055]
3 to 7 are diagrams for explaining the character string and ruled line data structure employed in this application software in order to achieve the unique character string and ruled line mixed processing method described below. is there. FIG. 3 is an explanatory diagram showing a state in which a character string and ruled lines used for the following data structure description are displayed on the editing unit 418. In the illustrated example, the editing unit 418 as a whole has a character editing area of 17 lines in the vertical direction and 30 characters in the horizontal direction. When there is no ruled line inside, this character editing area is treated as a single area, but once a ruled line is created in this character editing area, the editing process is performed for each area divided by the ruled line. Will be. For example, as shown in FIG. 3, when a rectangular ruled line (solid square in the figure) is drawn, this character editing area is divided with the four sides of the ruled line as the boundary lines and the row direction as the priority direction. Are divided into five edit areas 1, edit areas 2,..., Edit area 5 (five dotted squares), and character strings are managed for each area.
[0056]
First, management of ruled line data will be described. If only the ruled line data drawn in the editing unit 418 is extracted from each area shown in FIG. 3, a ruled line area covering a total of seven rows is formed as shown in FIG. This ruled line data is managed as ruled line drawing information having the data structure shown in FIG. In other words, the ruled line drawing information is information that roughly represents where the ruled line exists, and is obtained by capturing a portion that is continuous over a certain range as one block. The ruled line drawing information includes a start position, a size, and a ruled line data pointer. Since one ruled line block defines one ruled line (vertical ruled line, horizontal ruled line, rectangular ruled line), a maximum of n ruled line blocks can be managed for each document. The starting position in the ruled line drawing information is a line position where the ruled line is started, and the size indicates how many lines the ruled line continues in the vertical direction. These pieces of information are shown in units of lines when the ruled line drawing unit is a row digit.
[0057]
The ruled line data pointer is a pointer that indicates the location of data representing the shape and line type of the ruled line that is actually drawn. In the present embodiment, a two-dimensional area is secured at the location (address) pointed to by the ruled line data pointer as shown in FIG. In this region, a size necessary for describing ruled line information is secured in the horizontal direction, and a size in which the ruled lines are continuous in the vertical direction is secured in the vertical direction. Therefore, in the ruled line illustrated in FIG. 1, an area of 7 rows is secured in the vertical direction. In the memory corresponding to each row, data representing the shape and line type of ruled lines is stored in a form corresponding to the existence of ruled lines. In the ruled line drawing information, the number of characters described above is used as a unit representing the coordinate position and size. However, the present invention is not limited to this.
[0058]
When ruled lines are drawn in this way, the screen is divided into several rectangular areas. Each of the divided areas is internally edited for each area. This point will be described. Each edit area n (n is an arbitrary natural number) divided by the ruled line is an area that affects existing character strings such as a flow when characters are inserted or deleted. FIG. 6 is an explanatory diagram of a data structure of editing area information for managing each editing area up to the nth editing area. As shown in the figure, the information of each editing area n includes the start abscissa, the start ordinate, and the horizontal size (horizontal size) and the vertical size (vertical size) that are the coordinate positions of the upper left corner. Size). Taking the first editing area as an example, this area has a starting abscissa 1 and a starting ordinate 1 (that is, the upper left corner of the screen) as a starting position, the horizontal size is 30, and the vertical size is 2. It has become. Further, the value “1” is stored in the first character string index, and it is indicated that the character string in this area starts from the first character string in the character string information shown in FIG. 7 described later.
[0059]
In this embodiment, as a unit indicating the position and size of each editing area n, characters having a standard number of points edited by the editing unit 418 (12 points by default) are adopted, and the number of characters is displayed. Such units need only be standardized for each program, and can be arbitrarily selected such as mm units or dot units. The head character string index managed as information of each editing area n is an index for accessing a character string stored in character string information (see FIG. 7) described later, and is at the head of the editing area n. Pointing to the character string to be displayed.
[0060]
Next, the outline of the character string information described in the editing unit 418 will be described. As shown in FIG. 7, the character strings are managed by a table in units of character strings. The table includes information such as a character string pointer, an attribute pointer, and next character string information. The character string here is a group of characters until a line feed code is inserted, and the character string pointer is an access pointer to a memory in which the character string is actually stored. The attribute pointer is a pointer indicating a storage location of attribute information for characters. Information such as font type, number of points, character decoration (modification), etc. can be set for each character constituting the character string, and this setting (attribute) is actually stored in memory for the attribute pointer. Point to where you are. The next character string information is an index when there is a character string following this character string, and “0” is set in the case of the last character string in one editing area. In the example shown in FIG. 3, the first character string is “Aiueo <line feed>”, and the next character string is the second character string “ABCDE <line feed>”. , Value 2 is stored. That is, the character strings in all editing areas are managed by the tables shown in FIGS.
[0061]
As described above, this application software newly creates, updates, and deletes edit area information, ruled line drawing information, and character string information in accordance with the data structure for each sentence (data file) on the RAM 26 or the hard disk 50. So, we manage data files with mixed character strings and ruled lines. Next, a specific and skillful character string / ruled line mixed processing method performed by the application software of this embodiment, that is, a specific example of updating the above three editing area information, ruled line drawing information, and character string information will be described in detail.
[0062]
FIGS. 8 and 9 are an explanatory diagram for explaining a processing method when a ruled line drawing is instructed for a character string displayed and fixed on the display 40, and a flowchart of the program of that part. . As for the characters in the editing area, in this application software, left alignment, tab setting every 5 character intervals, and indent setting are made as the default (initial setting) of the arrangement status. Although these settings are not shown, in the following description, they are treated as initial settings of the arrangement state.
[0063]
As shown in FIG. 9, when the processing of the application program enters the ruled line creation mode (step S100), it is first determined whether or not a situation in which the ruled line overlaps the determined character has occurred (step S102). If no has occurred, the process goes to "END" without performing the following process, and the process routine is terminated. On the other hand, when it is determined that the ruled line overlaps with the character string, a process for deleting the character applied to the ruled line is performed (step S104). The characters constituting the character string are managed as having a width determined from the font and the number of points specified for each character, although the width differs for each character in a proportional font. On the other hand, ruled lines are treated as having a certain width regardless of the displayed line width. Therefore, it is easy to obtain the overlap between the two by calculation. Since the ruled line has a predetermined width, duplication with a plurality of characters may occur only by drawing a single ruled line vertically, and as a result, a plurality of characters may be erased.
[0064]
After deleting the overlapped character, a ruled line of the designated line type is drawn at that position (step S106), and it is determined whether or not there is a blank from the end of the character string on the left of the ruled line to the ruled line. (Step S108). If there is a blank from the end of the character string on the left side of the ruled line to the ruled line, the space information by the outline font having the same character width as this blank, that is, the number of spaces and the number of points are automatically calculated (step S110). This is inserted on the left side of the ruled line (step S112). Subsequently, it is determined whether or not there is a blank from the ruled line to the beginning of the character string to the right of the ruled line (step S114). If there is a blank, the space information for filling the blank is automatically calculated in the same manner as above (step S114). This is inserted into the blank portion on the right side of the ruled line (S116). In this way, a space having the same character width is inserted as much as possible so that the position of the previous character string remains unchanged even when the ruled line is inserted. In step S120, the character string on the right side of the ruled line is moved to the remaining blank portion in order to fill this blank (step S122), and the process is completed.
[0065]
By such processing, when ruled line drawing is instructed on the character information “I” of the character string “Aiueo” as shown in FIG. 8, the overlapping character information “I” is deleted, and ruled line drawing is given priority. A space is automatically inserted in the left or right blank part of the ruled line so that the position of the other character string “AUEO” does not change from the previous position. As a result, even when ruled lines with a certain width are repeatedly drawn for a character string that is set to an arbitrary size by the outline font, the position of the character string is almost the same as before, and the user's document is created. A data file in which character strings and ruled lines are mixed can be quickly created without destroying the image. The calculation of the space information for filling in the blank may be performed by calculating the number of spaces having a predetermined width, or calculating the number of points of the space.
[0066]
Next, a second embodiment of the present invention will be described. The second embodiment is a processing method in the case where the ruled line is inserted in a line attribute other than the left justification which is the default value of the application software, for example, a line in which uniform alignment, right justification, center justification, etc. are set. is there. Processing in this case will be described with reference to FIGS. 10A, 10B, and 10C and the flowchart of FIG.
[0067]
When the ruled line creation process is executed, first, a ruled line is created according to the user's instruction (step S200), and then whether or not the line attribute set in the line on which the ruled line is drawn is a default value, that is, a left-justified attribute. Judgment is made (step S202), and if it is the default value, the process ends by exiting to “END”. When the line attribute has been changed from the default value, that is, as shown in FIGS. 10A to 10C, when the uniform alignment, right alignment, or center alignment is set, the character string is displayed on the line where the ruled line is drawn. (Step S204), and the following processing is executed only when the character string already exists. First, if a character is present at the position where the ruled line is drawn, the character is deleted as in the previous embodiment (see FIGS. 8 and 9) (step S206). The line attribute of the left character string is returned to the default left alignment (step S208), and a line feed code is added to the end of the character string (step S210). Similarly, the line attribute of the character string of the character string on the right side of the ruled line is also returned to the default left alignment (step S212), a line feed code is added to the end of the character string (step S214), and this process ends.
[0068]
When a line is divided by drawing a ruled line, the right and left side areas that are bordered by the ruled line can be set independently, such as even placement and right alignment. The relationship between the settings before division and the settings after division becomes a problem. In this embodiment, the case where a ruled line is inserted into a line for which a line attribute has been set in advance is taken up, and the initial setting (default) for both the left and right areas of the ruled line is made with respect to a change in the setting of the line attribute by dividing the line. It is assumed that the row attribute is automatically restored. This process is the same even when the character string is not divided by the ruled line (for example, when the ruled line is drawn at the left side of the right-aligned character string). When a ruled line is created on a character, the overlapped character is handled according to the processing described in the flowchart of FIG. 9, and the character is deleted.
[0069]
Next, a third embodiment of the present invention will be described. The mixed processing method of character strings and ruled lines according to the third embodiment relates to a process when a ruled line is drawn on a line in which tabs, indents and the like are set. Tabs and indents are settings for arranging a character string at a desired position. However, for the tabs and indents, the following processing different from the flowchart of FIG. 11 is performed in the embodiment. FIGS. 12A, 12B, 12C, and 13 are explanatory diagrams and flowcharts of processing when ruled lines are drawn for a paragraph in which a tab exists or indent is changed from a default value. . By default, the tab is set every 8 characters, and the indent is set at the same position as the left margin position. Note that tabs and indents are set in units of standard full-width or half-width characters, but can be set using units such as millimeters or the number of dots. It is.
[0070]
When the process shown in FIG. 13 is started, a ruled line is created in accordance with the user's instruction (step S300), and then it is determined whether the indent setting different from the default value is set in the line on which the ruled line is drawn (step S300). S302) When some change is made from the default value, that is, when the indent is set as shown in FIGS. 12B and 12C, the blank amount due to the indent is replaced with the space information (S302). Step S304). Subsequently, it is determined whether or not the character string on which the ruled line is drawn includes a tab (step S306). If a tab is included (see FIG. 12A), the blank amount by this tab is determined. Is replaced with space information (step S308). After all of the blank portions due to indents and tabs are replaced with space information, the indent setting on the left of the ruled line is restored to the default value (step S310), and the indent setting on the right of the ruled line is restored to the default value (step S312). ), The ruled line left tab setting is restored to the standard tab (step S314), the ruled line right tab setting is restored to the standard tab (step S316), and the process ends. The space information replaced in step S304 and step S308 is the same as the space information described in the first embodiment. The replacement by space may replace the white space composed of indents or tabs with a number of spaces that have almost the same width as this, or replace the space with a larger width by calculating the number of points in the space. It does not matter.
[0071]
In other words, in a line with tabs and indents, when a ruled line is inserted and the line is divided, the arrangement of character strings is initialized as in the case of right alignment and uniform arrangement described in the second embodiment. Instead of returning to the arrangement (left-justified in the embodiment), a space is inserted so as to be arranged at substantially the same position as the arrangement before creating the ruled line. This is because tabs and indentation are generally set and used for each paragraph, unlike the above-mentioned line alignment, right alignment, etc., and the position of the character string can be changed even after ruled lines are inserted. This is because it is considered that the state as it is matches the image of the user's document creation. In addition, the default values for tabs and indents are automatically set for the character strings in the left and right areas after the ruled line is inserted, so the image of document creation remains for the user and is most frequently used for document creation. An operating environment with default values is provided, making it extremely easy to use. Note that the tab and indent are regarded as one character, and when a ruled line is drawn on the tab and indent, the same processing as the character deletion processing described with reference to FIG. 9 is performed.
[0072]
As described above, various processes when adding ruled lines have been described. However, the application software of this embodiment provides the following excellent interfaces when deleting ruled lines that have already been drawn. These will be described in the following examples.
[0073]
14A, 14B, and 15 show ruled lines drawn on a line in which the default value of the application software is adopted, that is, a line that has a left-justified attribute and is not set to change tabs and indents. It is process explanatory drawing at the time of deletion, and a flowchart, and shows the outline | summary of 4th Example.
[0074]
When the processing shown in FIG. 15 is started, processing for deleting ruled lines (step S400) is first performed. The ruled line can be erased by designating a certain point on the ruled line to another point and operating the “DEL” key or the like. When the ruled line is deleted, whether or not the character strings existing in the left and right sections divided by the ruled line (see FIG. 14A) are generated (step S402), and at least deleted. It is determined whether or not a character string exists in the edit area on the right side of the ruled line (see FIG. 14B) (step S404). If any of these conditions is not satisfied, space information is inserted in place of the deleted ruled line in order to simply delete the ruled line (step S406), and the process ends. The method described in the first embodiment is used for inserting the space information.
[0075]
On the other hand, if both the conditions of steps S402 and S404 are satisfied, the outline has the same character width as the blank amount from the end of the character string existing on the left side of the erased ruled line to the beginning of the character string existing on the right side. The space information by the font, that is, the number of spaces and the number of points are automatically calculated (step S408), and this is inserted into the blank portion (step S410). And, in this way, space information with the same character width is inserted as much as possible so that the position of the previous character string remains unchanged even if the ruled line is erased. (Step S412), the character string in the right edit area is moved to the remaining blank portion in order to fill this blank (Step S414), and the processing is completed.
[0076]
According to the ruled line erasure process of the fourth embodiment, even if the ruled line is erased in the line where the ruled line already exists, the arrangement of the character strings that have been divided into the left and right editing areas by the erased ruled line until then. The position is kept almost the same. Therefore, the image of the document being created is maintained, and the efficiency of document creation is not reduced. In addition, since the space information for maintaining the arrangement positions of the character strings almost the same is automatically calculated, the document image is maintained with high accuracy even in the OS of this embodiment using outline fonts for the character strings. It becomes possible.
[0077]
Next, as a fifth embodiment, when the line attribute setting other than the left justification which is the initial setting of the application software, for example, equal placement, right justification, and center justification is made in any of the editing areas divided to the left and right by ruled lines This process will be described with reference to the explanatory diagram of FIG. 16 and the flowchart of FIG.
[0078]
When this process is started, the specified ruled line is deleted according to the user's instruction (step S500), and then the ruled line deletion causes the integration of the left and right editing areas that have been divided by the ruled line until then. It is determined whether or not (step S502), and if the integration of the areas does not occur, the ruled line erasing process (step S504) is immediately executed and the program is terminated. On the other hand, if it is determined in step S502 that region integration has occurred, it is determined whether or not the row attribute of the left editing region to be integrated is a setting other than the initial setting (left-justified attribute in the embodiment) (step S502). S506) If any change has been made since the initial setting, that is, if the uniform arrangement or the like is set as illustrated in FIG. 16, the setting is returned to the default value of left justification (step S508). (Refer to the state of the middle stage shown in FIG. 16). Then, for the right editing area to be integrated, it is determined whether or not the attribute setting is the default left alignment (step S510), and the paragraph setting value is set as the default value of the left alignment attribute only when it is not left alignment (step S512). Then, a ruled line erasing process (step S504) is executed (see the lower state shown in FIG. 16), and this process is terminated.
[0079]
According to this ruled line erasing process, the left-aligned attribute, which is the most frequently used initial setting when creating a document, is automatically set for a line that is integrated by deleting the ruled line and becomes one editing area. Therefore, it is possible to smoothly perform editing activities in the editing area newly generated by ruled line deletion. In addition, when the character strings existing in the left and right editing areas are integrated, the space information is calculated and inserted so that the distance is equal to the distance between the character strings existing in the state divided by the ruled lines. Accordingly, as shown in the lower part of FIG. 16, since the new editing area is maintained while maintaining the state of the character string divided into the left and right, the document is based on the character string having the positional relationship as before even after the area integration. Creation can be performed.
[0080]
For tabs and indents, processing different from the embodiment shown in FIGS. 16 and 17 is prepared in the same manner as the ruled line insertion. This process will be described as a sixth embodiment. FIGS. 18A, 18B, and 19 are explanatory diagrams and flowcharts of ruled line erasure processing for a paragraph in which tabs exist or indentation is changed from the default value.
[0081]
In this case, when the ruled line erasing process is instructed, the ruled line is erased according to the user's instruction (step S600), and then it is determined whether or not the area integration is caused by the ruled line erasing (step S602). If no integration occurs, this process ends. On the other hand, if it is determined in step S602 that region integration occurs, it is determined whether or not tab data exists in the character string in the left region of the ruled line to be integrated (step S604), and tab data exists. If so, the tab data is replaced with space information that is substantially the same as the width of the blank formed on the display by the tab data (step S606). Next, processing for determining the presence or absence of tab data is similarly performed for the right side of the ruled line to be integrated (step S608), and when tab data is present, processing for replacing with space information (step S610) is executed (FIG. 5). 18 (A)).
[0082]
When the tab data replacement process for the left and right areas to be integrated is completed, the process proceeds to a process for setting an indent. That is, it is determined whether or not an indentation setting different from the default value is set in the left region to be integrated (step S612). If any indentation setting is made, that is, as shown in FIG. If it is set, a process of replacing the blank amount due to indentation with the space information is performed (step S614). Similarly, for the right region to be integrated, it is determined whether or not indentation different from the default value is set (step S616). If there is indentation setting, the corresponding blank amount is replaced with the space information. Processing is performed (step S618). This state is shown in FIG. Thereafter, a process of deleting the ruled line previously designated (step S620) is executed, the tab and indent settings are restored to the default values for the integrated editing area (step S622), and the process returns to “END”. Exit.
[0083]
As a result of the processing of the sixth embodiment described above, for the tabs and indents set and used for each paragraph, a new integrated editing area can be generated while maintaining the character string arrangement position before the integration of the left and right editing areas. it can. In other words, the process of deleting the ruled line in a format that matches the user's paragraph image is performed so that the change of the line from which the ruled line has been deleted has no effect on other character string arrangement positions of the same paragraph. is there. In addition, in the integrated editing area, the tab and indent settings are automatically restored to the default values, so that the subsequent document creation work becomes smooth.
[0084]
As described above with reference to some embodiments, according to the mixed processing method and apparatus for character strings and ruled lines in the embodiments, the arrangement state of the character strings is set from the default value left-justified, right-justified, and center-justified. In this case, even when the paragraph setting is changed from the default indent setting or when a tab is set in the paragraph, the ruled line can be inserted and deleted in a form that matches the user's sense. In addition, the line layout and paragraph settings of the editing area are appropriately restored to the default values in accordance with the integration / decommissioning of the editing area, so that the document creation after the ruled line insertion / deletion processing becomes extremely simple.
[0085]
In addition, when a blank part occurs due to deletion of character information or changes in the above settings, the space information that fills the blank part is automatically calculated and inserted, so that the ruled line can be inserted while maintaining the image of the entire document. , Can be deleted. As a result, the user can edit the document after the operation while continuously drawing the document image before the ruled line operation.
[0086]
Further, by effectively using the mouse 42 for the position to add ruled lines, an arbitrary position of the editing unit 418 can be designated with high resolution, and the arrangement positions of the vertical and horizontal ruled lines can be completed with one operation. .
[0087]
Although various processing methods related to ruled line insertion and deletion have been described above, the application software of this embodiment provides an excellent user interface for managing editing areas and creating ruled lines divided by ruled lines. Yes. Next, these user interfaces will be described in detail.
[0088]
FIGS. 20A, 20B, 20C, and 21 are explanatory diagrams of processing relating to management of the editing area and a flowchart of the program of that portion, showing the outline of the seventh embodiment. In FIG. 20, the character string “abc... Xyz” is input in advance in the editing area partitioned by the rectangular ruled line KL (FIG. 20A), and the character string “123” is placed in the middle of the character string. Is inserted (see FIG. 20 (B)), and a series of document editing processes of deleting only the character “3” from the added character string (FIG. 20 (C)) is taken as an example. The change of the display state is shown. This processing program is executed when a cursor is placed in an editing area defined by the ruled line KL and a character string at a position where the cursor is located is edited in the editing area. That is, this process is performed simultaneously and in parallel with the editing operation of the character string. Character string editing is a process of adding, inserting, or deleting information to a character string, changing the font or the number of points, etc., and executing screen drawing and various management information changes according to the task. .
[0089]
When the editing operation of the character string is started by the user, first, the vertical size (initial value) of the editing area is stored in a predetermined storage area (step S700). Thereafter, when the user edits the character string, the area occupied by the edited character string is calculated (step S702), and the size relationship between the new occupied area and the editing area stored in step S700 is determined. (Step S704). If the calculated occupied area is larger than the initial size (initial value) of the stored editing area, the size of the editing area in which the character string being edited fits is calculated (step S706). The position of the ruled line defining the lower side is extended downward (step S708). Actually, the process of erasing the lower ruled line and drawing a new ruled line is executed. That is, the ruled line KL is changed from the state of FIG. 20A to the state of FIG. Of course, if the occupied area is larger than the initial value of the editing area, the rectangular ruled line KL is rewritten even when the occupied area is reduced by editing. On the other hand, if it is determined in step S704 that the occupation area calculated with the editing is smaller than the initial value of the editing area stored in step S700, the process ends and the ruled line drawing is left as it is, that is, The default size of the editing area is maintained (change from the state of FIG. 20B to the state of FIG. 20C).
[0090]
When the amount of information of the character string in the editing area defined by the ruled line is increased by such editing area processing, the ruled line is automatically extended so that the character string can be accommodated in the editing area. . Further, in addition to such an automatic extension function, when the amount of information of the character string is small with respect to the editing area by the automatically extended ruled line, the ruled line is reduced only in the automatically extended area. In other words, based on the size of the editing area at the time of creating the ruled line, the size of the area by the ruled line automatically expands and contracts according to the occupied area of the character string written in the editing area. Efficiency is greatly improved. For example, if a large number of character strings are entered in the editing area, the ruled lines that divide the editing area are updated to a size that is large enough to accommodate the character string, and the input character string is deleted. In this case, the ruled line is gradually reduced to the initial value.
[0091]
Next, an eighth embodiment will be described. In the eighth embodiment, a process for drawing ruled lines in the process involving generation and deletion of ruled lines described above will be taken up, and a user interface capable of easily drawing vertical and horizontal ruled lines using the mouse 42 will be described. . FIG. 22 shows, in time series, the display state of the display 40 until ruled line drawing is completed in accordance with the ruled line drawing operation procedure using the mouse 42 employed in the application software of this embodiment. FIG. The characters attached to each figure are used to explain operations and the like performed to obtain the state of the figure. As shown in FIG. 22A, the processing is performed as follows by the present software when drawing ruled lines.
[0092]
When creating a rectangular ruled line, the user presses the left button 422 of the mouse 42 at the position P1 of the upper left corner of the ruled line to be created. When the position P1 is designated, the position is stored as the start position of the nth ruled line block. Thereafter, when the mouse 42 is moved, the pointer P is moved accordingly, and a rectangle RS having the movement position of the pointer P as the lower right corner of the rectangular ruled line is displayed on the display 40. The display of the ruled line in this state is called a display in the rubber band format because it moves freely according to the movement of the pointer P. Then, when the user moves the mouse 42 while looking at the display 40 and operates a predetermined key (for example, “TAB” key) of the keyboard 46 at a desired position P2, the position P2 is detected, and this position is set as a dividing point. Processing to memorize is performed. When the dividing points are stored, the vertical and horizontal dividing ruled lines RL having the start position P1 as the upper left corner and the dividing point as an intersection are displayed in the same display manner as the rectangular ruled lines (FIG. 22B). Therefore, if the above processing is repeated, a large number of vertical and horizontal ruled lines corresponding to the number of division points (P2, P3...) Are displayed as shown in FIG. Thereafter, when the user operates an end key (for example, “RETURN” key) assigned to a predetermined key of the keyboard 46, this is detected, and the ruled line is determined as a ruled line of a predetermined line type from the drawing state of the rubber band format. The drawn ruled line is displayed after changing to the drawing state. Internally, ruled line block information is determined (FIG. 22D). In the above example, the division point is stored by the operation of “TAB”. However, the storage of the division point can be designated by various other operations as well as being assigned to a key other than the “TAB” key. . For example, an operation of a button to which a mouse function is not assigned, an instruction at a predetermined position on the tablet, or a designation with a light pen when a tablet exists may be used.
[0093]
The drawing state of FIG. 1 described in the first embodiment shows a state in which a ruled line start position is designated by this operation method and a rubber ruled rectangular ruled line is being dragged. When the end key assigned to the keyboard 46 is operated in this state, drawing is completed with the ruled line selected as the predetermined line type as shown in FIG. 23, and the above-described mixed processing of various character strings and ruled lines is performed. Data processing based on the method is executed. Of course, if a dividing point is specified during the drawing of a rectangular ruled line, vertical and horizontal ruled lines passing through the divided point are also displayed.
[0094]
On the other hand, as shown in FIG. 22C, there may be a case where it is desired to cancel the already specified division point in a state where the ruled lines are displayed in the rubber band format and are not yet determined. 22E and 22F show one of the operation methods for canceling the dividing points. After designating a certain dividing point Pn, if the pointer 42 is moved to the start position P1 of the rectangular ruled line from this dividing point by operating the mouse 42, the previously designated dividing point Pn is deleted. The information regarding the division point is also deleted from the memory. The vertical and horizontal ruled lines with the division points as intersections are similarly deleted. When there are a plurality of division points, as shown in FIGS. 22E and 22F, the division point P3 where the pointer P has moved to the inside (start position side) is erased, but the pointer P is The dividing point P2 located outside is not erased (FIG. 22E). If the mouse 42 is further dragged from this state and the division key is operated, new vertical and horizontal ruled lines are displayed with the new position as the division point P3 as shown in FIG. 22 (F).
[0095]
According to such a ruled line creation user interface, the trouble of specifying the vertical ruled line and the horizontal ruled line separately as in the conventional ruled line creation procedure is eliminated, and the vertical and horizontal ruled lines can be operated with one operation. It can be created easily. Also, the designation of vertical and horizontal ruled lines can be easily canceled by operating the mouse 42. As shown in FIGS. 22X and 22Y, instead of a configuration in which the dividing point is canceled by simply returning the pointer P, the pointer P is moved to a predetermined operation (for example, a dividing key or a mouse button) on the dividing point. It is also possible to adopt a configuration in which the dividing point is canceled by performing the operation again. In this case, an operation of canceling the one near the start position P1 among the plurality of division points without canceling other division points becomes possible. In the present embodiment, the pointer P is moved by using a pointing device such as a mouse or a trackball. However, the pointer may be moved by operating a cursor key or the like.
[0096]
Although the embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and it is needless to say that the present invention can be embodied in various ways without departing from the gist thereof.
[0097]
【The invention's effect】
As described above, the character string and ruled line mixed processing method and apparatus according to the present invention provide the most comfortable interface for a user who creates a data file in which characters and ruled lines are mixed, and the size can be freely set. Appropriate countermeasures against mixed character strings and ruled lines, cursor key operations, and ruled line placement instructions that make effective use of pointing devices are made possible.
[0098]
  In particular, the processing method and claim of claim 112According to the described processing device, when the ruled line and the character string overlap, the character is deleted and the ruled line is displayed with priority, but when the character is deleted, it has substantially the same width as the deleted character. Since the space is calculated and this space is inserted in place of the overlapping character, the original character string is displayed at substantially the same position regardless of the deletion of the character.
[0099]
  Further, the processing method of claim 4 and claim13According to the described processing apparatus, in the row in which the ruled line is inserted, the arrangement of the character strings is restored to the initial arrangement state for each area divided by the ruled line, so that a user-friendly interface is realized.
[0100]
  Claim 6 processing method and claim14According to the described processing apparatus, when a ruled line is inserted in a row in which a predetermined arrangement state is set, the arrangement state setting is returned to the initial state, and the position of the already arranged character string is held. Thus, since the space is calculated and inserted, the setting of the arrangement state is initialized, but the arrangement of the character strings is hardly changed, and the effect that the user does not feel uncomfortable is obtained.
[0101]
  The processing method of claim 8 and claim15According to the processing device, when a ruled line existing in a row having a predetermined arrangement state is deleted, the character string in the predetermined arrangement state is set to an initial position or its position for each section divided by the ruled line. Since the character string that has been right-justified in the section divided by the ruled line is restored to the vicinity position, for example, the character string that has been right-justified is restored to the initial state (for example, left-justified state) when the ruled line is deleted. When the ruled line is deleted and there is no longer a divided section, an interface that is easy for the user to understand is realized.
[0102]
  Claim 10 processing method and claim16According to the processing apparatus, when a ruled line that exists in a row for which a predetermined arrangement state is set is deleted, the arrangement position of each character string in the section divided by the ruled line is the arrangement position in the arrangement state. Alternatively, a space of a predetermined width is calculated and inserted so that it is in the vicinity thereof, so even if the ruled line is deleted, the character string already arranged in the predetermined arrangement state is arranged almost at the original position, so that the user There is an effect that an interface without a sense of incongruity is realized.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram of a basic window screen employed by application software that implements a mixed processing method of character strings and ruled lines according to an embodiment of the present invention.
FIG. 2 is a schematic block diagram of a computer that realizes a mixed processing apparatus for character strings and ruled lines according to an embodiment.
FIG. 3 is an explanatory diagram for explaining a data structure inside application software;
FIG. 4 is an explanatory diagram showing an image of a ruled line data structure.
FIG. 5 is an explanatory diagram of a ruled line data structure;
FIG. 6 is an explanatory diagram of a data structure of an editing area.
FIG. 7 is an explanatory diagram of a data structure of character string information.
FIG. 8 is an explanatory diagram showing a state in which ruled lines are drawn over character strings.
FIG. 9 is a flowchart showing processing when a ruled line is drawn over a character string.
FIG. 10 is an explanatory diagram illustrating a state in which a ruled line is inserted into a character string in which a line attribute is set.
FIG. 11 is a flowchart showing processing for inserting ruled lines into a character string in which line attributes are set.
FIG. 12 is an explanatory diagram showing a state in which ruled lines are inserted into a character string for which paragraph setting has been made.
FIG. 13 is a flowchart showing processing for inserting ruled lines in a character string for which paragraph setting has been made.
FIG. 14 is an explanatory diagram showing how a ruled line is deleted from a character string.
FIG. 15 is a flowchart showing processing for deleting ruled lines from a character string.
FIG. 16 is an explanatory diagram showing a state in which ruled lines are deleted from a character string in which a line attribute is set.
FIG. 17 is a flowchart showing processing for deleting ruled lines from a character string in which a line attribute is set.
FIG. 18 is an explanatory diagram showing a state in which ruled lines are deleted from a character string for which paragraph setting has been made.
FIG. 19 is a flowchart showing processing for deleting ruled lines from a character string for which paragraph setting has been made.
FIG. 20 is an explanatory diagram showing a state in which an area partitioned by ruled lines is expanded and contracted.
FIG. 21 is a flowchart showing processing for expanding and contracting an area partitioned by ruled lines.
FIG. 22 is an explanatory diagram showing how a rectangular ruled line is drawn with a mouse.
FIG. 23 is an explanatory diagram illustrating an example of generating and deleting vertical and horizontal divided ruled lines while drawing rectangular ruled lines with a mouse.
[Explanation of symbols]
20 ... Personal computer
22 ... CPU
24 ... ROM
26 ... RAM
28-36 ... I / O interface
40 ... Display
42 ... Mouse
46 ... Keyboard
48 ... Printer
50 ... Hard disk
402 ... Title bar
402A ... button
402B ... button
402C ... button
404 ... Menu bar
406 ... Toolbar
410 ... operation area
412 ... Ruler section
414 ... Attribute display section
416 ... Scroll part
418 ... Editorial department
420 ... Status bar
422 ... Left button

Claims (16)

所望の大きさの文字列と所定の線種の罫線とをディスプレイ上に表示し、該文字列と該罫線とを混在処理する文書処理装置が実行する方法であって、
前記ディスプレイ上に左寄せで表示された前記文字列の一部に前記罫線が重複して描かれることを、該ディスプレイ上の前記文字の位置と前記罫線の位置とから検出し、
前記文字列中の前記重複の発生した文字を前記ディスプレイ上から消去して罫線を優先して表示し、
表示した罫線と該消去された文字の前後にそれぞれ続く文字との間隔と略同一の文字幅を有するスペースを該消去された文字の前後それぞれについて演算し、
該演算したスペースを前記重複の発生した文字に代えて前記文字列に挿入する
文字列と罫線の混在処理方法。
A method executed by a document processing apparatus that displays a character string of a desired size and a ruled line of a predetermined line type on a display, and performs mixed processing of the character string and the ruled line,
Detecting that the ruled line is drawn to overlap a part of the character string displayed left- aligned on the display from the position of the character and the position of the ruled line on the display;
Erase the duplicated character in the character string from the display and display the ruled line preferentially,
A space having approximately the same character width as the interval between the displayed ruled line and the characters following the erased characters is calculated for each of the characters before and after the erased characters,
A mixed processing method of character strings and ruled lines, wherein the calculated space is inserted into the character string in place of the overlapping character.
請求項1記載の文字列と罫線の混在処理方法であって、
前記スペースの演算は、表示した罫線と消去された文字の前後にそれぞれ続く文字との間隔と略同一の文字幅となる前記スペースの個数を、該消去された文字の前後それぞれについて演算する処理である文字列と罫線の混在処理方法。
A mixed processing method for character strings and ruled lines according to claim 1,
The calculation of the space is a process of calculating the number of the spaces having a character width substantially the same as the interval between the displayed ruled line and the characters following the erased character before and after the erased character. A mixed processing method of a certain character string and ruled line.
請求項1記載の文字列と罫線の混在処理方法であって、
前記スペースの演算は、表示した罫線と消去された文字の前後にそれぞれ続く文字との間隔と略同一の文字幅となる前記スペースの大きさを演算する処理である文字列と罫線の混在処理方法。
A mixed processing method for character strings and ruled lines according to claim 1,
The calculation of the space is a mixed processing method of a character string and a ruled line, which is a process of calculating the size of the space having a character width substantially the same as the interval between the displayed ruled line and the character that follows the erased character. .
請求項1記載の文字列と罫線とを混在処理する方法であって、
前記ディスプレイ上に表示される文字列の配置に関し、初期の配置状態として左寄せが予め設定されており、
該表示された文字列について、左寄せを除く所定のコマンドである第1のコマンドの実行により、ディスプレイ上に表示された文字列を、前記第1のコマンドに応じて予め定められた配置状態に配置して前記ディスプレイ上に表示し、
該配置状態に文字列が配置された行に前記罫線が挿入されたとき、これを検出し、
該罫線の挿入箇所を境界として左右に分割された区間毎に、前記文字列の配置状態を前記初期の配置状態に復帰する
文字列と罫線の混在処理方法。
A method for mixed processing of character strings and ruled lines according to claim 1,
Regarding the arrangement of the character strings displayed on the display, left alignment is preset as an initial arrangement state,
For the display character string, arranged by the execution of the first command is a predetermined command, except for left-justified, a character string displayed on the display, to a predetermined arrangement in response to said first command To display on the display,
When the ruled line is inserted in the line where the character string is arranged in the arrangement state, this is detected,
A mixed processing method of character strings and ruled lines in which the arrangement state of the character strings is restored to the initial arrangement state for each section divided right and left with the insertion position of the ruled lines as a boundary.
前記第1のコマンドが、前記配置状態を、右寄せ、センタリング、均等配置または両端揃え(両端に文字があり内部が均等配置されたもの)とするコマンドである請求項4記載の文字列と罫線の混在処理方法。5. The character string and ruled line according to claim 4, wherein the first command is a command for setting the arrangement state to right alignment, centering, uniform arrangement, or justified both ends (characters at both ends and the inside are equally arranged). Mixed processing method. 請求項4記載の文字列と罫線とを混在処理する方法であって、
更に、前記挿入された罫線により分割された区間におけるそれぞれの文字列の配置位置が、前記予め定められた配置状態の配置もしくはその近傍となるよう所定幅のスペースを演算し、
該演算したスペースを、前記行の文字列に挿入し、該スペースが挿入された後の文字列を前記ディスプレイ上に表示する
文字列と罫線の混在処理方法。
A method for mixed processing of character strings and ruled lines according to claim 4,
Further, a space of a predetermined width is calculated so that the arrangement position of each character string in the section divided by the inserted ruled line is the arrangement in the predetermined arrangement state or the vicinity thereof,
A mixed character string / ruled line processing method for inserting the calculated space into a character string on the line and displaying the character string after the space is inserted on the display.
文字列の配置状態の配置が、タブまたはインデントによって指定された配置である請求項6記載の文字列と罫線の混在処理方法。7. The mixed processing method of character strings and ruled lines according to claim 6, wherein the arrangement of the arrangement state of the character strings is an arrangement designated by a tab or indent. 請求項4記載の文字列と罫線とを混在処理する方法であって、
更に、前記罫線が挿入された行の該罫線により左右に分割された区間毎に、左寄せを除く所定のコマンドである第2のコマンドを実行して、文字列の配置状態を設定し、
前記配置状態に文字列が配置された行に存在した罫線が削除されたとき、該罫線により分割されていたそれぞれの区間毎に、前記第2のコマンドの実行により所定の配置状態とされていた文字列を、該区間毎に、前記初期の配置状態もしくはその近傍に復帰させる
文字列と罫線の混在処理方法。
A method for mixed processing of character strings and ruled lines according to claim 4,
Further, a second command, which is a predetermined command excluding left justification , is executed for each section divided left and right by the ruled line of the row in which the ruled line is inserted, and a character string arrangement state is set.
When the ruled line existing in the line where the character string is arranged in the arrangement state is deleted, each section divided by the ruled line is in a predetermined arrangement state by executing the second command. a string, each between the compartment, mixed processing method of a character string and ruled lines to return to the arrangement or in the vicinity of the initial.
前記初期の配置状態への復帰は、タブコードあるいは所定幅のスペースの挿入により行なう請求項8記載の文字列と罫線の混在処理方法。9. The mixed processing method of character strings and ruled lines according to claim 8, wherein the return to the initial arrangement state is performed by inserting a tab code or a space having a predetermined width. 請求項4記載の文字列と罫線とを混在処理する方法であって、
更に、前記罫線が挿入された行の該罫線により左右に分割された区間毎に、左寄せを除く所定のコマンドである第2のコマンドを実行して、文字列の配置状態を設定し、
該配置状態に文字列が配置された行に存在した罫線が削除されたとき、
該文字列が配置された行の前記配置状態の設定を前記初期の配置状態の設定に戻し、
該削除された罫線により分割されていた区間におけるそれぞれの文字列の配置位置が、前記罫線を削除する前の配置状態の配置位置もしくはその近傍となるよう所定幅のスペースを演算し、
該演算したスペースを、前記行の文字列に挿入し、該スペースが挿入された後の文字列を前記ディスプレイ上に表示する
文字列と罫線の混在処理方法。
A method for mixed processing of character strings and ruled lines according to claim 4,
Further, a second command, which is a predetermined command excluding left justification , is executed for each section divided left and right by the ruled line of the row in which the ruled line is inserted, and a character string arrangement state is set.
When the ruled line existing in the line where the character string is arranged in the arrangement state is deleted,
Return the setting of the arrangement of the line in which the character string has been placed in the setting of the initial arrangement,
A space of a predetermined width is calculated so that the arrangement position of each character string in the section divided by the deleted ruled line is the arrangement position of the arrangement state before deleting the ruled line or the vicinity thereof,
A mixed character string / ruled line processing method for inserting the calculated space into a character string on the line and displaying the character string after the space is inserted on the display.
前記罫線が削除される前の文字列の配置状態の配置位置が、タブまたはインデントによって指定された配置位置である請求項10記載の文字列と罫線の混在処理方法。Mixed processing method of a character string and ruled lines of a previous position of arrangement of strings, according to claim 10, wherein the in tab or indent Therefore the specified position of the ruled line is deleted. 所望の大きさの文字列と所定の線種の罫線とをディスプレイ上に表示し、該文字列と該罫線とを混在処理する装置であって、
前記ディスプレイ上に左寄せで表示された前記文字列の一部に前記罫線が重複して描かれることを検出する検出手段と、
前記文字列中の前記重複の発生した文字を消去して罫線を優先して表示する罫線表示手段と、
表示した罫線と該消去された文字の前後にそれぞれ続く文字との間隔と略同一の文字幅を有するスペースを該消去された文字の前後それぞれについて演算するスペース演算手段と、
該演算したスペースを前記重複の発生した文字に代えて前記文字列に挿入する挿入手段と
を備えた文字列と罫線の混在処理装置。
A device that displays a character string of a desired size and a ruled line of a predetermined line type on a display, and performs a mixed processing of the character string and the ruled line,
Detecting means for detecting that the ruled line is drawn overlappingly on a part of the character string displayed left-aligned on the display;
Ruled line display means for preferentially displaying ruled lines by deleting the duplicated characters in the character string;
A space calculation means for calculating a space having a character width substantially the same as the interval between the displayed ruled line and the character that follows the erased character before and after the erased character;
A character string and ruled line mixed processing apparatus comprising: an insertion unit that inserts the calculated space into the character string in place of the duplicated character.
請求項12記載の文字列と罫線の混在処理装置であって、
前記ディスプレイ上に表示される文字列の配置に関し、初期の配置状態として左寄せを予め設定されており、
該表示された文字列について、左寄せを除く所定のコマンドである第1のコマンドの実行により、ディスプレイ上に表示された文字列を、前記第1のコマンドに応じて予め定められた配置状態に配置して前記ディスプレイ上に表示する文字列配置手段と、
該配置状態に文字列が配置された行に前記罫線が挿入されたとき、これを検出する検出手段と、
該罫線の挿入箇所を境界として左右に分割された区間毎に、前記文字列の配置状態を前記初期の配置状態に復帰する配置状態復帰手段と
を備えた文字列と罫線の混在処理装置。
A character string and ruled line mixed processing device according to claim 12,
Regarding the arrangement of the character strings displayed on the display, left alignment is preset as an initial arrangement state,
For the display character string, arranged by the execution of the first command is a predetermined command, except for left-justified, a character string displayed on the display, to a predetermined arrangement in response to said first command And character string arrangement means for displaying on the display;
Detecting means for detecting when the ruled line is inserted in a line in which the character string is arranged in the arrangement state;
A character string / ruled line mixed processing device comprising: arrangement state returning means for returning the arrangement state of the character string to the initial arrangement state for each section divided right and left with the ruled line insertion point as a boundary.
請求項13記載の文字列と罫線の混在処理装置であって、
更に、前記挿入された罫線により分割された区間におけるそれぞれの文字列の配置位置が、前記予め定められた配置状態の配置もしくはその近傍となるよう所定幅のスペースを演算するスペース演算手段と、
該演算したスペースを、前記行の文字列に挿入し、該スペースが挿入された後の文字列を前記ディスプレイ上に表示するスペース挿入手段と
を備えた文字列と罫線の混在処理装置。
A mixed processing device for character strings and ruled lines according to claim 13,
Furthermore, a space calculation means for calculating a space of a predetermined width so that the arrangement position of each character string in the section divided by the inserted ruled line is the arrangement of the predetermined arrangement state or the vicinity thereof,
A character string and ruled line mixed processing device comprising: space insertion means for inserting the calculated space into the character string of the line and displaying the character string after the space is inserted on the display.
請求項13記載の文字列と罫線の混在処理装置であって、
更に、前記罫線が挿入された行の該罫線により左右に分割された区間毎に、左寄せを除く所定のコマンドである第2のコマンドを実行して、文字列の配置状態を設定する配置状態設定手段と、
前記配置状態に文字列が配置された行に存在した罫線が削除されたとき、該罫線により分割されていたそれぞれの区間毎に、前記第2コマンドの実行により所定の配置状態とされていた文字列を、該区間毎に、前記初期の配置状態もしくはその近傍に復帰させる配置状態初期化手段と
を備えた文字列と罫線の混在処理装置。
A mixed processing device for character strings and ruled lines according to claim 13,
Further, an arrangement state setting for setting a character string arrangement state by executing a second command, which is a predetermined command excluding left justification, for each section of the row in which the ruled line is inserted and divided into right and left by the ruled line Means,
When the ruled line existing in the line where the character string is arranged in the arrangement state is deleted, the character that has been in the predetermined arrangement state by executing the second command for each section divided by the ruled line A character string and ruled line mixed processing device comprising: a column state for each section, and an arrangement state initialization means for returning the column to the initial arrangement state or the vicinity thereof.
請求項13記載の文字列と罫線の混在処理装置であって、
更に、前記罫線が挿入された行の該罫線により左右に分割された区間毎に、左寄せを除く所定のコマンドである第2のコマンドを実行して、文字列の配置状態を設定する文字列配置手段と、
該配置状態に文字列が配置された行に存在した罫線を削除する削除手段と、
該削除手段により前記罫線が削除されたとき、該文字列が配置された行の前記配置状態の設定を前記初期の配置状態の設定に戻す配置状態初期化手段と、
該削除された罫線により分割されていた区間におけるそれぞれの文字列の配置位置が、前記罫線を削除する前の配置状態の配置位置もしくはその近傍となるよう所定幅のスペースを演算する演算手段と、
該演算したスペースを、前記行の文字列に挿入し、該スペースが挿入された後の文字列を前記ディスプレイ上に表示するスペース挿入手段と
を備えた文字列と罫線の混在処理装置。
A mixed processing device for character strings and ruled lines according to claim 13,
Further, a character string arrangement for setting a character string arrangement state by executing a second command, which is a predetermined command excluding left justification, for each section of the line in which the ruled line is inserted and divided into right and left by the ruled line Means,
A deletion means for deleting a ruled line existing in the line in which the character string is arranged in the arrangement state;
When the ruled line is deleted by the deleting means, and the arrangement state initialization means for returning the setting of the arrangement of the line in which the character string has been placed in the setting of the initial arrangement,
A calculation means for calculating a space of a predetermined width so that the arrangement position of each character string in the section divided by the deleted ruled line is the arrangement position of the arrangement state before deleting the ruled line or the vicinity thereof;
The space that the operation to insert a string of said row, mixed processing equipment string and ruled lines and a space insertion means in which the space for displaying the character string after being inserted on the display.
JP09782995A 1995-03-29 1995-03-29 Method and apparatus for mixed processing of character string and ruled line Expired - Lifetime JP3728768B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09782995A JP3728768B2 (en) 1995-03-29 1995-03-29 Method and apparatus for mixed processing of character string and ruled line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09782995A JP3728768B2 (en) 1995-03-29 1995-03-29 Method and apparatus for mixed processing of character string and ruled line

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2003386383A Division JP2004145892A (en) 2003-11-17 2003-11-17 Mixture processing method and its device of character string and ruled line

Publications (2)

Publication Number Publication Date
JPH08272783A JPH08272783A (en) 1996-10-18
JP3728768B2 true JP3728768B2 (en) 2005-12-21

Family

ID=14202619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09782995A Expired - Lifetime JP3728768B2 (en) 1995-03-29 1995-03-29 Method and apparatus for mixed processing of character string and ruled line

Country Status (1)

Country Link
JP (1) JP3728768B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3475235B2 (en) 1999-03-08 2003-12-08 東京農工大学長 Display device control method
JP4556199B1 (en) * 2009-10-06 2010-10-06 株式会社ヤッパ Information display device and information display program
WO2024202071A1 (en) * 2023-03-31 2024-10-03 株式会社LegalOn Technologies Information processing method and information processing device

Also Published As

Publication number Publication date
JPH08272783A (en) 1996-10-18

Similar Documents

Publication Publication Date Title
JP4065545B2 (en) Layout control method and apparatus and program thereof
JP3734852B2 (en) Image editing method and editing system
EP0051857A1 (en) Method for editing document
JP3997026B2 (en) Form editing method and apparatus, and storage medium storing computer-readable program
JP3292247B2 (en) Desktop document creation system
JP2003308310A (en) Display method, display, display program, and recording medium recorded with display program
JP3728768B2 (en) Method and apparatus for mixed processing of character string and ruled line
JP4062332B2 (en) Ruled line processing method and apparatus
JP4466780B2 (en) Method and apparatus for mixed processing of character string and ruled line
JP4201056B2 (en) Ruled line processing method and apparatus
JP4183017B2 (en) Ruled line processing method and apparatus
JP4275808B2 (en) Character assignment processing device
JP4254904B2 (en) Ruled line processing method and apparatus
JPH0916566A (en) Document processor and method therefor
JP2785941B2 (en) Window information division / integration processing method
JP2004145892A (en) Mixture processing method and its device of character string and ruled line
JP4119573B2 (en) Allocation processing device
JP2608300B2 (en) Document processing method
JPH0969098A (en) Document preparation device
US6829744B1 (en) Document processing apparatus, method, and memory medium
JPH08185452A (en) Document preparation device
JPH1069480A (en) Method and processor for document processing, and storage medium
JPH11126226A (en) Form creation device and storage medium
JPH08137853A (en) Document processor
JPH05189424A (en) Device and method for editing document

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040907

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041108

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20041015

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: 20050913

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050926

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: 20091014

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101014

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101014

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111014

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121014

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121014

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131014

Year of fee payment: 8

EXPY Cancellation because of completion of term