JPH0959360A - Document processing apparatus and disposition of modification information on character string - Google Patents

Document processing apparatus and disposition of modification information on character string

Info

Publication number
JPH0959360A
JPH0959360A JP7238966A JP23896695A JPH0959360A JP H0959360 A JPH0959360 A JP H0959360A JP 7238966 A JP7238966 A JP 7238966A JP 23896695 A JP23896695 A JP 23896695A JP H0959360 A JPH0959360 A JP H0959360A
Authority
JP
Japan
Prior art keywords
character
information
character string
decoration
underline
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.)
Pending
Application number
JP7238966A
Other languages
Japanese (ja)
Inventor
Hiroshi Satomi
宏 里見
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP7238966A priority Critical patent/JPH0959360A/en
Publication of JPH0959360A publication Critical patent/JPH0959360A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily apply modification information to a character set in a sentence without overlapping the character set. SOLUTION: When a character string contains a character set, a work variable pos(y) at the lower end of a character set is initialized to '0' (S21), the underline- starting character of the character set is acquired (S22), the y-coordinate of the lower end of the character set under processing is set to the work variable pos2 at the lower end of the character set (S23) and, if the work variable pos(y) of present underline y is smaller than the work variable at the lower end of character set pos2, the operation is proceeded to the step S26 and, if the answer of the step S24 is (yes), the work variable pos(y) of the underline y is set to the work variable pos2 at the lower end of the character set and the operation is proceeded to the step S26. Subsequently, the judgment of whether or not the character under processing is an end character of the character set, is performed and if the character is the end character of the character set and the end character of underline, the work variable pos(y) of the underline y is set to an underline starting y coordinate position start(y) and an underline ending y coordinate position end(y) to complete the operation.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は文書処理装置と文字
列に対する修飾情報の配置方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus and a method of arranging decoration information on a character string.

【0002】[0002]

【従来の技術】従来の文書処理装置においては、文書に
対する修飾情報としての下線は、例えば図12(a)
(b)に示すように付される。
2. Description of the Related Art In a conventional document processing apparatus, an underline as modification information for a document is, for example, as shown in FIG.
It is attached as shown in (b).

【0003】すなわち、「従来の下線」という横書きの
文字列に下線を付す場合、図12(a)に示すように、
下線表示を開始する文字である「従」の左端位置から下
線表示が終了する文字である「線」の右端位置までの
間、順次文字配置位置の下側を走査して下線が付され
る。また、上記「従来の下線」という文字列が縦書きの
場合は、図12(b)に示すように、下線は文字列の右
側に付される。
That is, when the horizontal character string "conventional underline" is underlined, as shown in FIG.
From the left end position of “subordinate”, which is the character that starts the underline display, to the right end position of “line,” which is the character that ends the underline display, the lower side of the character arrangement position is sequentially scanned and the underline is added. When the character string "conventional underline" described above is written vertically, the underline is added to the right side of the character string, as shown in Fig. 12B.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記従
来の文書処理装置においては、文字列内に組文字が含ま
れている場合は、図13(a)(b)に示すように、下
線の配置位置は組文字以外の通常の文字を基準に決定さ
れるので、下線が組文字内を横断する形となって組文字
と重なってしまう。このため、文書編集者が画面の文字
位置を目視しながら手動操作でもって下線の位置を変更
する等の労力を払わなければならないという問題点があ
った。
However, in the above-described conventional document processing apparatus, when a character string includes a set character, an underlined layout is used as shown in FIGS. 13 (a) and 13 (b). Since the position is determined based on a normal character other than the set character, the underline crosses the set character and overlaps with the set character. For this reason, there has been a problem that the document editor has to make efforts such as manually changing the underline position while visually checking the character position on the screen.

【0005】本発明はこのような問題点に鑑みなされた
ものであって、文章内に組文字が含まれている場合であ
っても容易に組文字と重ならないように修飾情報を付す
ることができる文書処理装置及び文字列に対する修飾情
報の配置方法を提供することを目的とする。
The present invention has been made in view of the above problems, and even when a sentence includes a set character, it is possible to easily add the modification information so that the set character does not overlap the set character. It is an object of the present invention to provide a document processing device and a method of arranging decoration information for a character string.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に本発明は、文字列に対する修飾情報の配置位置を設定
する配置位置設定手段と、前記文字列に対して前記修飾
情報が付された文書情報を出力する出力手段とを備えた
文書処理装置において、前記文字列に付すべき前記修飾
情報の修飾方向を決定する修飾方向決定手段と、前記修
飾方向に対して直交方向についての前記文字列中の最端
部の座標位置を検出する座標位置検出手段とを備え、前
記配置位置設定手段が、前記座標位置検出手段により検
出された座標位置を基準にして前記文字列に対する修飾
情報の配置を決定する修飾情報位置決定手段を有してい
ることを特徴としている。
In order to achieve the above object, the present invention provides an arrangement position setting means for setting an arrangement position of decoration information for a character string, and the decoration information for the character string. In a document processing device including an output unit that outputs document information, a modification direction determination unit that determines a modification direction of the modification information to be attached to the character string, and the character string in a direction orthogonal to the modification direction. A coordinate position detecting means for detecting the coordinate position of the outermost end of the character string, and the arrangement position setting means arranges the arrangement of the decoration information for the character string on the basis of the coordinate position detected by the coordinate position detecting means. It is characterized in that it has a modification information position determining means for determining.

【0007】また、本発明に係る文字列に対する修飾情
報の配置方法は、文字列に付すべき前記修飾情報の修飾
方向を決定した後、前記修飾方向に対して直交方向につ
いての前記文字列中の最端部の座標位置を検出し、該座
標位置を基準にして前記文字列に対する修飾情報の配置
を決定し、次いで、修飾情報の配置を決定した後前記修
飾方向に修飾情報を付し、前記文字列に前記修飾情報が
付された文書データを出力することを修飾情報位置決定
手段を有していることを特徴としている。
Further, in the method for arranging decoration information on a character string according to the present invention, after determining a modification direction of the modification information to be attached to the character string, the modification direction in the character string in a direction orthogonal to the modification direction is determined. The coordinate position of the extreme end is detected, the arrangement of the modification information with respect to the character string is determined based on the coordinate position, and then the arrangement of the modification information is determined, and then the modification information is attached to the modification direction. It is characterized in that it has a modification information position determining means for outputting the document data in which the modification information is added to the character string.

【0008】また、上記文書処理装置及び文字列に対す
る修飾情報の配置方法において、前記文字列中に少なく
とも1つ以上の組文字が含まれていることを特徴とし、
さらに前記修飾情報は下線情報、又は上線情報、或いは
囲み罫情報であることを特徴としている。ここで、本明
細書では、下線情報には、横書き文字列に対して文字列
の下側に付されるものの他、縦書き文字列に対しては文
字列の右側に付されるものも含まれ、上線情報には、横
書き文字列に対して文字列の上側に付されるものの他、
縦書き文字列に対しては文字列の左側に付されるものも
含まれるものとする。
Further, in the above document processing apparatus and method for arranging decoration information for a character string, at least one set character is included in the character string,
Further, the modification information is characterized by being underlined information, overlined information, or enclosing ruled information. Here, in the present specification, the underline information includes not only what is attached to the lower side of the character string with respect to the horizontally written character string, but also what is attached to the right side of the character string with respect to the vertically written character string. In addition, the overline information is added to the upper side of the character string with respect to the horizontally written character string,
The vertical writing character string also includes the one added to the left side of the character string.

【0009】[0009]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて詳説する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below in detail with reference to the drawings.

【0010】図1は本発明に係る文書処理装置の一実施
の形態を示すブロック構成図であって、該文書処理装置
は、編集中の文書や各種メッセージメニュー等を表示す
るCRT等の表示装置1と、該表示装置1の画面に表示
される文字やイメージを展開し記憶するビデオRAM
(VRAM)2と、文書編集等を行う各種キーを備えた
キーボード3と、表示装置1の画面上に表示されるアイ
コン等を指示するためのポインティングデバイス(P
D)4と、文書編集プログラムやエラー処理プログラ
ム、更には下線情報等の修飾情報の配置を決定する修飾
情報処理プログラム等各種制御プログラムが格納された
ROM5と、演算データを格納すると共に作業エリアと
して使用されるRAM6と、アプリケーションプログラ
ムやデータ更にはライブラリが保存されたハードディス
ク及びフロッピーディスクを駆動するハードディスクド
ライブ(HDD)7及びフロッピーディスクドライブ
(FDD)8と、これら上述のメモリ間或いはメモリと
各デバイス間のデータ転送を制御するビットムーブユニ
ット(BMU)9と、所定通信網に接続されて他の文書
処理装置との間でインターフェース動作を司るネットワ
ークインターフェース(Net−I/F)10と、入出
力バス(アドレスバス、データバス、制御バスからな
る)11を介して上記各構成要素と接続されこれら各構
成要素を制御するCPU12とを備えている。尚、RO
M5に記憶されている各種制御プログラムをハードディ
スクやフロッピーディスクに保存するように構成しても
よく、或いはこれらの制御プログラムをネットワーク・
インターフェース10を介して接続される他の文書処理
装置の記憶装置に記憶するように構成してもよい。
FIG. 1 is a block diagram showing an embodiment of a document processing apparatus according to the present invention. The document processing apparatus is a display device such as a CRT for displaying a document being edited and various message menus. 1 and a video RAM for developing and storing characters and images displayed on the screen of the display device 1.
(VRAM) 2, a keyboard 3 having various keys for editing a document, and a pointing device (P) for designating icons and the like displayed on the screen of the display device 1.
D) 4, a ROM 5 in which various control programs such as a document editing program, an error processing program, and a modification information processing program for deciding the arrangement of modification information such as underline information are stored, and operation data is also stored as a work area. A RAM 6 to be used, a hard disk drive (HDD) 7 and a floppy disk drive (FDD) 8 for driving a hard disk and a floppy disk in which application programs and data, as well as a library are stored, and between these memories or between the memory and each device. A bit move unit (BMU) 9 that controls data transfer between the two, a network interface (Net-I / F) 10 that is connected to a predetermined communication network and controls interface operations with other document processing devices, and input / output. Bus (address bus Data bus, and a control bus) 11 via the connected to the above components and a CPU12 for controlling the respective components. RO
The various control programs stored in the M5 may be configured to be stored on a hard disk or a floppy disk, or these control programs may be stored on a network.
It may be configured to be stored in the storage device of another document processing device connected via the interface 10.

【0011】図2は文字列に対して修飾情報としての下
線等を付すための線引き情報テーブルであって、必要に
応じて適宜書き換えられRAM6に記憶される。該線引
き情報テーブルは、具体的には、線引き表示開始位置の
横座標start(x)及び縦座標start(y)、線引き表示終了位
置の横座標end(x)及び縦座標end(y)、及び実線や破線等
の線種が使用者の要求に応じて書き換えられる。すなわ
ち、座標値(start(x)、start(y))は線引き位置の始点
座標値を示し、座標値(end(x)、end(y))は線引き位置
の終点座標値を示す。
FIG. 2 is a line drawing information table for adding an underline or the like as modification information to a character string, which is appropriately rewritten as necessary and stored in the RAM 6. The drawing information table is specifically, the abscissa start (x) and the ordinate start (y) of the drawing display start position, the abscissa end (x) and the ordinate end (y) of the drawing display end position, and Line types such as a solid line and a broken line are rewritten according to the user's request. That is, the coordinate values (start (x), start (y)) indicate the starting point coordinate value of the drawing position, and the coordinate values (end (x), end (y)) indicate the ending point coordinate value of the drawing position.

【0012】以下、横書き文字列に対する修飾情報とし
ての下線を付す場合の処理手順を説明する。
The processing procedure for underlining the horizontally written character string as the modification information will be described below.

【0013】図3は修飾情報処理プログラムとしての下
線y座標位置決定処理手順のフローチャートであって、
横書き文字列に下線を付す場合は該下線y座標位置決定
処理手順を実行することにより下線位置が決定される。
FIG. 3 is a flow chart of an underline y coordinate position determination processing procedure as a modified information processing program.
When an underline is added to the horizontally written character string, the underline position is determined by executing the underline y coordinate position determination processing procedure.

【0014】ステップS1では文書の下端表示y座標を
示す下端作業変数pos(y)を「0」に初期化し、次いでス
テップS2では下線開始文字を取得し、続くステップS
3で現在処理中の文字が組文字か否かを判断する。そし
て、その答が否定(No)のときは現在処理中の文字の
下端のy座標を下端作業変数pos1として(ステップS
4)、ステップS7に進む。
At step S1, a lower end work variable pos (y) indicating the y coordinate of the lower end display of the document is initialized to "0", then at step S2, an underline start character is acquired, and the following step S
At 3, it is determined whether the character currently being processed is a set character. When the answer is negative (No), the y coordinate of the lower end of the character currently being processed is set as the lower end work variable pos1 (step S
4) and proceeds to step S7.

【0015】一方、ステップS3の答が肯定(Yes)
のとき、すなわち現在処理中の文字が組文字のときは組
文字下端取得ルーチンを実行して(ステップS5)組文
字の下端のy座標を取得し、該y座標を下端作業変数po
s1として(ステップS6)ステップS7に進む。
On the other hand, the answer to step S3 is affirmative (Yes).
When, that is, when the character currently being processed is a set character, a set character lower end acquisition routine is executed (step S5) to obtain the y coordinate of the lower end of the set character, and the y coordinate is set to the lower end work variable po.
As s1 (step S6), the process proceeds to step S7.

【0016】ステップS7では現在の下線y座標を示す
y作業変数pos(y)がステップS4又はステップS6で決
定された文字の下端作業変数pos1より小さいか否かを判
断する。そして、その答が否定(No)のときはステッ
プS9に進む一方、ステップS7の答が肯定(Yes)
のときはy作業変数pos(y)を下端作業変数pos1に設定し
てステップS9に進む。
In step S7, it is determined whether or not the y work variable pos (y) indicating the current underline y coordinate is smaller than the lower end work variable pos1 of the character determined in step S4 or step S6. When the answer is negative (No), the process proceeds to step S9, while the answer at step S7 is affirmative (Yes).
If y, the y work variable pos (y) is set to the lower end work variable pos1 and the process proceeds to step S9.

【0017】ステップS9では現在処理中の文字が下線
終了文字か否かを判断し、下線終了文字でないときは次
の文字を取得して(ステップS10)ステップS3に戻
り、上述の処理を繰り返す一方、下線終了文字であると
きは下線y作業変数pos(y)が下線開始y座標位置start
(y)及び下線終了y座標位置end(y)を示すこととなり、
これらの下線y作業変数pos(y)を下線開始y座標位置st
art(y)及び下線終了y座標位置end(y)に設定してこれら
の設定値をRAM6に格納し処理を終了する。
In step S9, it is determined whether or not the character currently being processed is the underline end character, and if it is not the underline end character, the next character is acquired (step S10) and the process returns to step S3 to repeat the above-described process. , Underline end work character pos (y) is underline start y coordinate position start
(y) and the underline end y coordinate position end (y) will be shown.
Set these underline y work variables pos (y) to the underline start y coordinate position st
The art (y) and the underline end y coordinate position end (y) are set, these set values are stored in the RAM 6, and the process ends.

【0018】図4は上記ステップS5で実行される組文
字下端取得ルーチンのフローチャートである。
FIG. 4 is a flowchart of the set character lower end acquisition routine executed in step S5.

【0019】ステップS21では組文字の下端表示y座
標を示す組文字下端作業変数pos(y)を「0」に初期化
し、次いでステップS22では組文字下線開始文字を取
得し、続くステップS23では現在処理中の組文字の下
端のy座標を組文字下端作業変数pos2とし、次いでステ
ップS24では現在の下線y作業変数pos(y)がステップ
S23で設定された組文字下端作業変数pos2より小さい
か否かを判断する。そして、その答が肯定(Yes)の
ときはステップS26に進む一方、ステップS24の答
が肯定(Yes)のときは下線y作業変数pos(y)を組文
字下端作業変数pos2に設定してステップS26に進む。
In step S21, the work character lower end work variable pos (y) indicating the lower end display y coordinate of the set character is initialized to "0", then in step S22 the set character underline start character is acquired, and in the following step S23, The y coordinate of the lower end of the set character being processed is set as the set character lower end work variable pos2, and then in step S24, whether the current underline y work variable pos (y) is smaller than the set character lower end work variable pos2 set in step S23. To judge. When the answer is affirmative (Yes), the process proceeds to step S26, while when the answer at step S24 is affirmative (Yes), the underline y work variable pos (y) is set to the set character lower end work variable pos2 and the step is performed. Proceed to S26.

【0020】そして、ステップS26では現在処理中の
文字が組文字終了文字か否かを判断し、組文字終了文字
でないときは次の組文字を取得して(ステップS27)
ステップS23に戻り、上述の処理を繰り返す一方、組
文字終了文字であるときはメインルーチンのステップS
6に進む。
Then, in step S26, it is determined whether or not the character currently being processed is the set character end character, and if it is not the set character end character, the next set character is acquired (step S27).
Returning to step S23, while repeating the above processing, when the character is the set character end character, step S of the main routine.
Proceed to 6.

【0021】そして、これにより横書き文字列に対して
座標値(start(x)、start(y))から座標値(end(x)、en
d(y))までを結んで下線を付した場合、図5に示すよう
に、下線を付したい横書き文字列に組文字が含まれる場
合においても、従来のように画面を目視しながら手動操
作を行う手間を要することなく、下線開始y座標位置st
art(y)から下線終了y座標位置end(y)までの間、組文字
と重ならないように自動的に付される。
As a result, the coordinate values (start (x), start (y)) to the coordinate values (end (x), en
If you connect up to d (y) and underline it, as shown in Fig. 5, even if the horizontal character string you want to underline includes a set character, you can manually operate it while observing the screen as before. Underline start y-coordinate position st without the need to perform
Between art (y) and the underline end y coordinate position end (y), it is automatically added so as not to overlap with the set characters.

【0022】尚、上記実施の形態では横書き文字列につ
いて述べたが、縦書き文字列についても同様に適用でき
る。すなわち、図3及び図4のフローチャートにおい
て、y作業変数pos(y)をx作業変数pos(x)とし、下線表
示開始位置の横座標start(x)を縦座標start(y)、下線表
示終了位置の横座標end(x)及び縦座標end(y)とすること
により縦書き文字列に組文字が含まれている場合であっ
ても、図6に示すように、組文字と重なることなく該文
字列の右側に下線を付すことができる。
In the above embodiment, the horizontal writing character string has been described, but the same applies to the vertical writing character string. That is, in the flowcharts of FIGS. 3 and 4, the y work variable pos (y) is set to the x work variable pos (x), the abscissa start (x) of the underline display start position is the ordinate start (y), and the underline display end Even if the vertical writing character string includes a set character by setting the position abscissa end (x) and the ordinate end (y), as shown in FIG. 6, it does not overlap with the set character. The right side of the character string can be underlined.

【0023】次に、横書き文字列に対する修飾情報とし
て上線を付す場合の処理手順について述べる。
Next, a processing procedure when an overline is added as modification information for a horizontally written character string will be described.

【0024】図7は修飾情報処理プログラムとしての上
線y座標位置決定処理手順のフローチャートであって、
上線を付す場合は該上線y座標位置決定処理手順を実行
することにより上線位置が決定される。
FIG. 7 is a flow chart of the procedure for determining the upper line y coordinate position as a modified information processing program.
When an overline is attached, the overline position is determined by executing the overline y coordinate position determination processing procedure.

【0025】ステップS31では文書の上端表示y座標
を示す上端作業変数pos(y)を「∞」に初期化し、次いで
ステップS32では上線開始文字を取得し、続くステッ
プS3で現在処理中の文字が組文字か否かを判断する。
そして、その答が否定(No)のときは現在処理中の文
字の上端のy座標を上端作業変数pos3として(ステップ
S34)、ステップS37に進む。
In step S31, the upper end work variable pos (y) indicating the y coordinate of the upper end display of the document is initialized to "∞", then in step S32, the overline start character is acquired, and in the following step S3, the character currently being processed is Judge whether it is a set character or not.
When the answer is negative (No), the y coordinate of the upper end of the character currently being processed is set as the upper end work variable pos3 (step S34), and the process proceeds to step S37.

【0026】一方、ステップS33の答が肯定(Ye
s)のとき、すなわち現在処理中の文字が組文字のとき
は組文字上端取得ルーチンを実行して(ステップS3
5)組文字の上端のy座標を取得し、該y座標を上端作
業変数pos3として(ステップS36)ステップS37に
進む。
On the other hand, the answer in step S33 is affirmative (Yes
In the case of s), that is, when the character currently being processed is a set character, a set character upper end acquisition routine is executed (step S3).
5) The y coordinate of the upper end of the set character is acquired, and the y coordinate is set as the upper end work variable pos3 (step S36), and the process proceeds to step S37.

【0027】ステップS37では現在の上線y座標を示
す上線y作業変数pos(y)がステップS34又はステップ
S36で決定された文字の上端作業変数pos3より大きい
か否かを判断する。そして、その答が否定(No)のと
きはステップS39に進む一方、ステップS37の答が
肯定(Yes)のときは上線y作業変数pos(y)を上端作
業変数pos3に設定してステップS39に進む。
In step S37, it is determined whether the overline y work variable pos (y) indicating the current overline y coordinate is larger than the upper end work variable pos3 of the character determined in step S34 or step S36. Then, when the answer is negative (No), the process proceeds to step S39, while when the answer at step S37 is affirmative (Yes), the overline y work variable pos (y) is set to the upper end work variable pos3 and the process goes to step S39. move on.

【0028】ステップS39では現在処理中の文字が上
線終了文字か否かを判断し、上線終了文字でないときは
次の文字を取得して(ステップS40)ステップS33
に戻り、上述の処理を繰り返す一方、上線終了文字であ
るときは上線y作業変数pos(y)が上線開始y座標位置st
art(y)及び上線終了y座標位置end(y)を示すこととな
り、これらの上線y作業変数pos(y)を上線開始y座標位
置start(y)及び上線終了y座標位置end(y)に設定してこ
れらの設定値をRAM6に格納して処理を終了する。
In step S39, it is determined whether or not the character currently being processed is an overline end character, and if it is not an overline end character, the next character is acquired (step S40) step S33.
Then, while the above processing is repeated, if the character is an overline end character, the overline y work variable pos (y) is the overline start y coordinate position st.
art (y) and the overline end y coordinate position end (y) are shown, and these overline y work variables pos (y) are set to the overline start y coordinate position start (y) and the overline end y coordinate position end (y). The setting is performed, these set values are stored in the RAM 6, and the process is ended.

【0029】図8は上記ステップS35で実行される組
文字上端取得ルーチンのフローチャートである。
FIG. 8 is a flow chart of a set upper end character acquisition routine executed in step S35.

【0030】ステップS51では組文字の上端表示y座
標を示す組文字上端作業変数pos(y)を「∞」に初期化
し、次いでステップS52では組文字上線開始文字を取
得し、続くステップS53では現在処理中の組文字の上
端のy座標を組文字上端作業変数pos4とし、次いでステ
ップS54では現在の上線y作業変数pos(y)がステップ
S53で設定された組文字上端作業変数pos4より大きい
か否かを判断する。そして、その答が否定(No)のと
きはステップS56に進む一方、その答が肯定(Ye
s)のときはy作業変数pos(y)を組文字上端作業変数po
s4に設定してステップS56に進む。
In step S51, a work upper limit work variable pos (y) indicating the y-coordinate of the upper end display of the set character is initialized to "∞", then in step S52, a set start character of the set character is acquired. The y coordinate of the upper end of the set character being processed is set to the set character upper end work variable pos4, and then in step S54, whether the current overline y work variable pos (y) is larger than the set character upper end work variable pos4 set in step S53. To judge. When the answer is negative (No), the process proceeds to step S56, while the answer is affirmative (Yes).
s), the y work variable pos (y) is set to the upper working character set po of the set character.
Set to s4 and proceed to step S56.

【0031】そして、ステップS56では現在処理中の
文字が組文字終了文字か否かを判断し、組文字終了文字
でないときは次の組文字を取得して(ステップS57)
ステップS53に戻り、上述の処理を繰り返す一方、組
文字終了文字であるときはメインルーチンのステップS
36に戻る。
Then, in step S56, it is determined whether or not the character currently being processed is the set character end character, and if it is not the set character end character, the next set character is acquired (step S57).
Returning to step S53, while repeating the above-described processing, when the character is the set character end character, step S of the main routine.
Return to 36.

【0032】そして、これにより横書き文字列に対して
始点座標値(start(x)、start(y))から終点座標値(en
d(x)、end(y))までを結んで上線を付した場合、図9に
示すように、上線を付したい横書き文字列に組文字が含
まれる場合においても、従来のように画面を目視しなが
ら手動操作を行う手間を要することなく、上線開始y座
標位置start(y)から上線終了y座標位置end(y)までの
間、組文字と重ならないように自動的に付される。
Then, with respect to the horizontally written character string, from the start point coordinate value (start (x), start (y)) to the end point coordinate value (en
When connecting up to (d (x), end (y)) and adding an overline, even if the horizontal writing character string to be overlined includes a set character as shown in FIG. It is automatically added so as not to overlap with the set characters from the overline start y-coordinate position start (y) to the overline end y-coordinate position end (y) without the need for manual operation while visually observing.

【0033】上記実施の形態では、横書き文字列につい
て述べたが、縦書き文字列についても同様である。すな
わち、図7及び図8のフローチャートにおいて、y作業
変数pos(y)をx作業変数pos(x)とし、上線表示開始位置
の横座標start(x)を縦座標start(y)、上線表示終了位置
の横座標end(x)及び縦座標end(y)とすることにより縦書
き文字列に組文字が含まれている場合であっても、図1
0に示すように、組文字と重なることなく該文字列の左
側に上線を付すことができる。
In the above embodiment, the horizontal writing character string has been described, but the same applies to the vertical writing character string. That is, in the flowcharts of FIGS. 7 and 8, the y work variable pos (y) is set to the x work variable pos (x), the abscissa start (x) of the overline display start position is the ordinate start (y), and the overline display end Even if the vertical writing character string includes a set character by setting the position abscissa end (x) and ordinate end (y),
As shown in 0, an overline can be added to the left side of the character string without overlapping the set character.

【0034】尚、本発明は上記実施例に限定されるもの
ではない。例えば、上記実施例は組文字を含む文字列に
おいて、下線及び上線の配置方法について述べたが、こ
れらを組み合わせて図11(a)(b)に示すように、
組文字を含む文字列の一部を囲む囲み罫を作成する場合
にも適用することができる。
The present invention is not limited to the above embodiment. For example, in the above embodiment, the method of arranging the underline and the overline in the character string including the set characters has been described. However, by combining these, as shown in FIGS.
It can also be applied when creating a box rule that encloses a part of a character string that includes set characters.

【0035】[0035]

【発明の効果】以上詳述したように本発明の文書処理装
置及び及び文字列に対する修飾情報の配置方法によれ
ば、組文字を含むような文字列に下線、上線、囲み罫等
の修飾情報を付して文書情報を出力する場合であって
も、従来のように画面を目視しながら手動操作を行う手
間を要することなく、修飾情報が組文字と重ならないよ
うに容易に文字列に対して修飾情報を付することができ
る。
As described above in detail, according to the document processing apparatus and the method of arranging the modification information for the character string of the present invention, the modification information such as the underline, the overline, and the enclosing rule is added to the character string including the set character. Even when outputting the document information with a mark attached, it is easy to change the decoration information to the character string without the need for manual operation while visually observing the screen as in the past. Modification information can be attached.

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

【図1】本発明に係る文書処理装置の一実施の形態を示
すブロック構成図である。
FIG. 1 is a block diagram showing an embodiment of a document processing apparatus according to the present invention.

【図2】線引き情報テーブルである。FIG. 2 is a line drawing information table.

【図3】下線y位置決定処理手順のフローチャートであ
る。
FIG. 3 is a flowchart of an underline y position determination processing procedure.

【図4】組文字下端取得手順のフローチャートである。FIG. 4 is a flowchart of a combined character lower end acquisition procedure.

【図5】本発明に係る文字列に対する修飾情報の配置方
法により下線が付された状態を示す例を示す図である。
FIG. 5 is a diagram showing an example of a state in which an underline is added by a method of arranging decoration information on a character string according to the present invention.

【図6】本発明に係る文字列に対する修飾情報の配置方
法により下線が付された状態を示す例を示す図である。
FIG. 6 is a diagram showing an example of a state in which an underline is added by a method of arranging decoration information on a character string according to the present invention.

【図7】上線y位置決定処理手順のフローチャートであ
る。
FIG. 7 is a flowchart of a procedure for determining an overline y position.

【図8】組文字上端取得手順のフローチャートである。FIG. 8 is a flowchart of a combined character upper end acquisition procedure.

【図9】本発明に係る文字列に対する修飾情報の配置方
法により上線が付された状態を示す例を示す図である。
FIG. 9 is a diagram showing an example showing a state in which an overline is added by a method of arranging decoration information on a character string according to the present invention.

【図10】本発明に係る文字列に対する修飾情報の配置
方法により左線が付された状態を示す例を示す図であ
る。
FIG. 10 is a diagram showing an example showing a state in which a left line is added by the method of arranging decoration information on a character string according to the present invention.

【図11】本発明に係る文字列に対する修飾情報の配置
方法により囲み罫が引かれた状態を示す図である。
FIG. 11 is a diagram showing a state in which an enclosing rule is drawn by the method of arranging decoration information for a character string according to the present invention.

【図12】従来の修飾情報の配置方法により下線を付し
た場合の状態を説明するための図である。
FIG. 12 is a diagram for explaining a state in which an underline is added by a conventional method of arranging decoration information.

【図13】従来の修飾情報の配置方法により下線を付し
た場合の問題点を説明するための図である。
FIG. 13 is a diagram for explaining a problem in the case where an underline is added by a conventional decoration information arrangement method.

【符号の説明】[Explanation of symbols]

1 表示装置(出力手段) 12 CPU(修飾方向決定手段、座標位置検出手段、
修飾情報位置決定手段)
1 Display Device (Output Means) 12 CPU (Modification Direction Determining Means, Coordinate Position Detecting Means,
Modification information position determining means)

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 文字列に対する修飾情報の配置位置を設
定する配置位置設定手段と、前記文字列に対して前記修
飾情報が付された文書情報を出力する出力手段とを備え
た文書処理装置において、 前記文字列に付すべき前記修飾情報の修飾方向を決定す
る修飾方向決定手段と、前記修飾方向に対して直交方向
についての前記文字列中の最端部の座標位置を検出する
座標位置検出手段とを備え、 前記配置位置設定手段が、前記座標位置検出手段により
検出された座標位置を基準にして前記文字列に対する修
飾情報の配置を決定する修飾情報位置決定手段を有して
いることを特徴とする文書処理装置。
1. A document processing apparatus comprising: an arrangement position setting means for setting an arrangement position of decoration information with respect to a character string; and an output means for outputting document information with the decoration information attached to the character string. A decoration direction determining means for determining a decoration direction of the decoration information to be attached to the character string, and a coordinate position detecting means for detecting a coordinate position of an end portion in the character string in a direction orthogonal to the decoration direction. The arrangement position setting means includes a decoration information position determination means for determining the arrangement of the decoration information with respect to the character string with reference to the coordinate position detected by the coordinate position detection means. Document processing device.
【請求項2】 前記文字列中に少なくとも1つ以上の組
文字が含まれていることを特徴とする請求項1記載の文
書処理装置。
2. The document processing apparatus according to claim 1, wherein the character string includes at least one or more set characters.
【請求項3】 前記修飾情報は下線情報であることを特
徴とする請求項1又は請求項2記載の文書処理装置。
3. The document processing apparatus according to claim 1, wherein the decoration information is underline information.
【請求項4】 前記修飾情報は上線情報であることを特
徴とする請求項1又は請求項2記載の文書処理装置。
4. The document processing apparatus according to claim 1, wherein the decoration information is overline information.
【請求項5】 前記修飾情報は囲み罫情報であることを
特徴とする請求項1又は請求項2記載の文書処理装置。
5. The document processing apparatus according to claim 1, wherein the decoration information is surrounding ruled information.
【請求項6】 文字列に付すべき前記修飾情報の修飾方
向を決定した後、前記修飾方向に対して直交方向につい
ての前記文字列中の最端部の座標位置を検出し、該座標
位置を基準にして前記文字列に対する修飾情報の配置を
決定し、次いで、修飾情報の配置を決定した後前記修飾
方向に修飾情報を付し、前記文字列に前記修飾情報が付
された文書データを出力することを修飾情報位置決定手
段を有していることを特徴とする文字列に対する修飾情
報の配置方法。
6. After determining a decoration direction of the decoration information to be attached to a character string, a coordinate position of an end portion in the character string in a direction orthogonal to the decoration direction is detected, and the coordinate position is determined. The arrangement of the decoration information for the character string is determined based on the reference, then the arrangement of the decoration information is determined, the decoration information is attached to the decoration direction, and the document data in which the decoration information is attached to the character string is output. A method of arranging decoration information with respect to a character string, characterized in that it has a decoration information position determining means.
【請求項7】 前記文字列中に少なくとも1つ以上の組
文字が含まれていることを特徴とする請求項6記載の文
書処理装置。
7. The document processing apparatus according to claim 6, wherein the character string includes at least one set character.
【請求項8】 前記修飾情報は下線情報であることを特
徴とする請求項6又は請求項7記載の文書処理装置。
8. The document processing apparatus according to claim 6, wherein the modification information is underline information.
【請求項9】 前記修飾情報は上線情報であることを特
徴とする請求項6又は請求項7記載の文書処理装置。
9. The document processing apparatus according to claim 6, wherein the decoration information is overline information.
【請求項10】 前記修飾情報は囲み罫情報であること
を特徴とする請求項6又は請求項7記載の文書処理装
置。
10. The document processing apparatus according to claim 6, wherein the modification information is surrounding ruled information.
JP7238966A 1995-08-25 1995-08-25 Document processing apparatus and disposition of modification information on character string Pending JPH0959360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7238966A JPH0959360A (en) 1995-08-25 1995-08-25 Document processing apparatus and disposition of modification information on character string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7238966A JPH0959360A (en) 1995-08-25 1995-08-25 Document processing apparatus and disposition of modification information on character string

Publications (1)

Publication Number Publication Date
JPH0959360A true JPH0959360A (en) 1997-03-04

Family

ID=17037948

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7238966A Pending JPH0959360A (en) 1995-08-25 1995-08-25 Document processing apparatus and disposition of modification information on character string

Country Status (1)

Country Link
JP (1) JPH0959360A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009289197A (en) * 2008-05-30 2009-12-10 Fuji Xerox Co Ltd Information processing apparatus, system and program
CN113435166A (en) * 2021-06-09 2021-09-24 深圳市世强元件网络有限公司 Underlining method and system, computer device and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009289197A (en) * 2008-05-30 2009-12-10 Fuji Xerox Co Ltd Information processing apparatus, system and program
CN113435166A (en) * 2021-06-09 2021-09-24 深圳市世强元件网络有限公司 Underlining method and system, computer device and readable storage medium
CN113435166B (en) * 2021-06-09 2024-03-19 深圳市世强元件网络有限公司 Underline method and system, computer device and readable storage medium

Similar Documents

Publication Publication Date Title
JP2008158765A (en) Information processing device, information processing method, and program for executing it by computer
JP4961792B2 (en) Formula editing apparatus and formula editing program
JPH0959360A (en) Document processing apparatus and disposition of modification information on character string
JP3176080B2 (en) Document processing method and apparatus
JPH08202856A (en) Picture processing method
JP2513771B2 (en) Multimedia display system
JPH1021062A (en) Device and method for visual programming
JP3980085B2 (en) Graphic processing method and graphic processing apparatus
JP2798688B2 (en) Character processing apparatus and method
JPH05346941A (en) Designing assistance system
JP3143503B2 (en) Image processing method and apparatus
JPH04369689A (en) Graphic display system
JP3113023B2 (en) Arc length dimension creation method and device
JPH06274482A (en) Character processing method and device
JPH05150924A (en) Device for generating network monitor screen text file
JPH01269983A (en) Text layout device
JPH05143545A (en) Instruction selection/execution processing system of plural instructions texts
JP2000235651A (en) Compiling method/device for raster data
JPH06208597A (en) Method and device for processing of dimension element
JP2005115693A (en) Sequence program converter
JPH08335249A (en) Document reader
JPH05135119A (en) Drawing generation device
JPH07152734A (en) Document information processor
JPH1185743A (en) Document processor, document processing method and storage medium
JPH05151287A (en) Method and device for forming circular arc length measure