JP2624183B2 - How to determine the beginning of a line - Google Patents

How to determine the beginning of a line

Info

Publication number
JP2624183B2
JP2624183B2 JP6164840A JP16484094A JP2624183B2 JP 2624183 B2 JP2624183 B2 JP 2624183B2 JP 6164840 A JP6164840 A JP 6164840A JP 16484094 A JP16484094 A JP 16484094A JP 2624183 B2 JP2624183 B2 JP 2624183B2
Authority
JP
Japan
Prior art keywords
line
character
determining
boundary
parallel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP6164840A
Other languages
Japanese (ja)
Other versions
JPH0816652A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP6164840A priority Critical patent/JP2624183B2/en
Publication of JPH0816652A publication Critical patent/JPH0816652A/en
Application granted granted Critical
Publication of JP2624183B2 publication Critical patent/JP2624183B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は文字の行頭位置決定方
法、さらに詳しくは新聞等のレイアウト編集を行う処理
に関し、特に、矩形でない領域に所定のテキストの文章
を構成する複数行の文字列を配列する場合の編集に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for determining a head position of a character, and more particularly to a process for editing a layout of a newspaper or the like. Regarding editing when arranging.

【0002】[0002]

【従来の技術】図2は、従来の文字の行頭位置決定方法
を説明するための説明図であり、この例に示すテキスト
は縦右書きの日本文であるとする。図において、1は文
字の幅、2は文字の高さ、3は行間の幅を表し、4は矩
形でない領域の境界線である。また、11、12、1
3、14、15は、このテキストのそれぞれ第1、2、
3、4、5を表すとする。図2内の線は境界線4を除
き、矩形領域を仮定した場合の文字配列の文字区画を表
す区画線である。
2. Description of the Related Art FIG. 2 is an explanatory diagram for explaining a conventional method of determining the head position of a character. It is assumed that the text shown in this example is a Japanese sentence written vertically and right. In the figure, 1 is the width of the character, 2 is the height of the character, 3 is the width between lines, and 4 is the boundary of the non-rectangular area. Also, 11, 12, 1
3, 14, 15 are the first, second,
3, 4 and 5 are represented. Except for the boundary line 4, the lines in FIG. 2 are partition lines that represent the character partitions of the character array when a rectangular area is assumed.

【0003】図2に示す例では、この矩形領域を仮定し
た場合の文字配列をそのままにしておいて、各行につい
て行の始点を示す線が、境界線4よりも内側にある最初
の線を行頭位置とした。すなわち、各行の行頭位置が、
21、22、23、24、25となる。この場合、行頭
位置が境界線4に沿って滑らかに変化しないという問題
がある。
In the example shown in FIG. 2, the character arrangement in the case of this rectangular area is left as it is, and the line indicating the starting point of each line is set to the first line inside the boundary line 4 at the beginning of the line. Position. That is, the beginning of each line is
21, 22, 23, 24, 25. In this case, there is a problem that the line head position does not change smoothly along the boundary line 4.

【0004】図3は、従来の文字の行頭位置決定方法の
他の例を説明するための説明図であり、各行の行頭位置
を、境界線4に沿って滑らかにずらす例を示している。
すなわち、横線30に対し、第1行11の行頭は31に
示す量だけずらし、第2行12の行頭は32に示す量だ
けずらして、各行の行頭位置を決定する。この方法での
問題点は、行頭位置は滑らかに移動するが、各行の文字
の横並び位置が互いにずれて見苦しくなる点である。
FIG. 3 is an explanatory diagram for explaining another example of a conventional method for determining the head position of a character, in which the head position of each line is smoothly shifted along a boundary 4.
That is, with respect to the horizontal line 30, the head of the first row 11 is shifted by an amount indicated by 31, and the head of the second row 12 is shifted by an amount indicated by 32 to determine the head position of each line. The problem with this method is that the beginning of the line moves smoothly, but the horizontal positions of the characters on each line are shifted from each other, making it hard to see.

【0005】[0005]

【発明が解決しようとする課題】以上のように従来の文
字の行頭位置決定方法では、行頭が境界線4に沿って滑
らかに変化しないか、あるいは、これを滑らかにすると
各行の文字の横並びが乱雑になるという問題点があっ
た。
As described above, according to the conventional method of determining the beginning of a line of a character, the beginning of the line does not change smoothly along the boundary line 4, or if this is smoothed, the horizontal arrangement of characters in each line will be changed. There was a problem that it became messy.

【0006】本発明はかかる問題点を解決するためにな
されたものであり、文字の行頭位置が境界線に沿って滑
らかに移動し、且つ各行の文字の横並びが比較的整然と
した文字配列が得られる文字の行頭位置決定方法を提供
することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve such a problem, and it is possible to obtain a character array in which the position of the beginning of a character moves smoothly along a boundary line and the horizontal arrangement of characters on each line is relatively orderly. It is an object of the present invention to provide a method of determining the beginning of a line of a character.

【0007】[0007]

【課題を解決するための手段】本発明に係わる文字の行
頭位置決定方法は、最小ずれ量単位aを決定し、aを最
小単位としてずれ量を決定する。すなわち、矩形でない
領域内に所定のテキストの文章を構成する複数行の文字
列を配列する場合の各行の先頭の文字の1文字区画の行
方向の始点位置を決定する文字の行頭位置決定方法にお
いて、矩形領域を仮定した場合の文字配列の文字区画を
表す区画線と前記領域の境界線とを対話型入力装置の表
示面上に表示する段階、最小ずれ量単位aを決定し、前
記文字区画を表す区画線の行の始点を表す線と前記領域
の境界線とが交差している文字区画について、前記行の
始点を表す線に対し平行で且つ互いに前記最小ずれ単位
aの間隔を有する複数の平行線を当該文字区画内に表示
する段階、前記複数の平行線の内で、前記領域の境界線
の中におさまる最初の平行線を当該行の文字の行頭位置
として決定する段階を備えたことを特徴とする。
According to the method of determining the beginning of a line of a character according to the present invention, a minimum deviation unit a is determined, and the deviation is determined using a as a minimum unit. That is, in a character line head position determining method for determining the starting position in the line direction of one character section of the first character of each line when a character string of a plurality of lines constituting a text of a predetermined text is arranged in a non-rectangular area. Displaying, on a display surface of an interactive input device, a segment line representing a character segment of a character array assuming a rectangular region and a boundary line of the region, determining a minimum displacement unit a, For a character section in which a line representing the start point of a line of the section line representing the intersection and the boundary line of the area intersect, a plurality of sections having a distance of the minimum deviation unit a that are parallel to the line representing the start point of the line and are mutually parallel Displaying parallel lines in the character section, and determining a first one of the plurality of parallel lines that falls within the boundary of the region as a head position of a character in the line. It is characterized by the following.

【0008】また、前記最小ずれ量単位aは、前記文字
区画の行方向の長さの整数分の一として決定されること
を特徴とする。
[0008] Further, the minimum shift amount unit a is determined as an integer fraction of the length of the character section in the line direction.

【0009】さらに、前記最小ずれ量単位aは、前記対
話型入力装置の表示面上に前記領域の境界線と前記文字
区画を表す区画線と共に、行の始点を表す線に対し平行
で且つ互いに前記最小ずれ単位aの間隔を有する複数の
平行線を表示し、この表示を観察しながら操作者が決定
することを特徴とする。
Further, the minimum deviation amount unit a is, along with a boundary line of the area and a partition line representing the character partition, on the display surface of the interactive input device, parallel to the line representing the starting point of the line and mutually parallel. A plurality of parallel lines having an interval of the minimum shift unit a are displayed, and the operator determines while observing the display.

【0010】[0010]

【作用】本発明の文字の行頭位置決定方法は、上述のよ
うな段階を備えることにより、aの値を適当に選び、境
界線に沿って各行の行頭が滑らかに変化し、且つ、横方
向の文字の並びも比較的良好な決定方法が得られる。
According to the method for determining the beginning of a character line according to the present invention, by providing the above-described steps, the value of a is appropriately selected, the beginning of each line smoothly changes along the boundary line, and Is relatively good.

【0011】[0011]

【実施例】以下、図面について本発明の実施例を説明す
る。図1は本発明の一実施例を示す説明図であって、図
1において、図2と同一符号は同一又は相当部分を示
し、図1に示すように、境界線4と、各行の文字区画線
とを、対話型入力装置の表示面上に表示した上、最小ず
れ量単位aを決定する。図1に示す場合aは文字高さ2
の1/3とする。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is an explanatory view showing one embodiment of the present invention. In FIG. 1, the same reference numerals as those in FIG. 2 denote the same or corresponding parts, and as shown in FIG. The line is displayed on the display surface of the interactive input device, and the minimum deviation amount unit a is determined. In the case shown in FIG.
Of 1/3.

【0012】境界線4と文字区画線の行の始点を表す線
が交わる文字区画について、行の始点を表す線に対し平
行で、且つ互いに間隔aを有する複数の平行線を引いた
場合、境界線4の中にある最初の平行線を当該行の行頭
位置とする。第1行11、第2行12では、矩形領域を
仮定した場合の行頭位置から、aだけずらした位置が行
頭位置となり、第3〜5行13〜15では、文字区画線
の行の始点を表す線と境界線4とが交差していないの
で、ずれ量は0となる。
When a plurality of parallel lines which are parallel to the line indicating the starting point of the line and have a distance a from each other are drawn in a character section where the boundary line 4 and the line indicating the starting point of the line of the character dividing line intersect, The first parallel line in the line 4 is set as the head position of the line. In the first row 11 and the second row 12, a position shifted by a from the top of the line assuming a rectangular area is the top of the line. In the third to fifth rows 13 to 15, the starting point of the line of the character division line is set to Since the line to represent and the boundary line 4 do not intersect, the shift amount is zero.

【0013】その結果、各行の行頭位置は図に示す太い
折れ線5のようになる。折れ線5の決定は、コンピュー
タのプログラム処理だけで決定するようにプログラムし
てもよく、対話型入力装置の表示面を観察した操作者の
入力によって決定するようなプログラムとしてもよい。
As a result, the beginning of each line is as indicated by the thick broken line 5 shown in FIG. The determination of the polygonal line 5 may be programmed so as to be determined only by the program processing of the computer, or may be a program determined by an operator who observes the display surface of the interactive input device.

【0014】図1の折れ線5は、比較的滑らかに境界線
4に沿っており、且つ、第1行11と第2行12とで
は、文字の横並びが揃い、且つ第3行13、第4行1
4、第5行15では、文字の横並びが互いに揃ってい
る。
The polygonal line 5 shown in FIG. 1 is relatively smoothly along the boundary line 4, and the first row 11 and the second row 12 are aligned horizontally, and the third row 13 and the fourth row Row 1
In the fourth and fifth rows 15, the horizontal arrangement of characters is aligned with each other.

【0015】[0015]

【発明の効果】以上説明したように本発明によれば、最
小ずれ量単位aの値を適当に決定することにより、文字
の行頭位置が境界線に沿って滑らかに移動し、且つ、各
行の文字の横な並びが比較的整然とした文字配列の文字
の行頭位置決定方法が得られるという効果がある。
As described above, according to the present invention, by appropriately determining the value of the minimum deviation amount unit a, the head position of the character moves smoothly along the boundary line, and There is an effect that a method of determining the head position of a character in a character array in which the horizontal arrangement of characters is relatively orderly can be obtained.

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

【図1】本発明の一実施例を示す説明図である。FIG. 1 is an explanatory diagram showing one embodiment of the present invention.

【図2】従来の方法の一例を示す説明図である。FIG. 2 is an explanatory diagram showing an example of a conventional method.

【図3】従来の方法の他の一例を示す説明図である。FIG. 3 is an explanatory view showing another example of the conventional method.

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

1 文字幅 2 文字の高さ 3 行間幅 4 境界線 5 各行の行頭位置を示す線 11 第1行 12 第2行 13 第3行 14 第4行 15 第5行 DESCRIPTION OF SYMBOLS 1 Character width 2 Character height 3 Line width 4 Boundary line 5 Line indicating the start position of each line 11 1st line 12 2nd line 13 3rd line 14 4th line 15 5th line

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 矩形でない領域内に所定のテキストの文
章を構成する複数行の文字列を配列する場合の各行の先
頭の文字の1文字区画の行方向の始点位置を決定する文
字の行頭位置決定方法において、 矩形領域を仮定した場合の文字配列の文字区画を表す区
画線と前記領域の境界線とを対話型入力装置の表示面上
に表示する段階、 最小ずれ量単位aを決定し、前記文字区画を表す区画線
の行の始点を表す線と前記領域の境界線とが交差してい
る文字区画について、前記行の始点を表す線に対し平行
で且つ互いに前記最小ずれ単位aの間隔を有する複数の
平行線を当該文字区画内に表示する段階、 前記複数の平行線の内で、前記領域の境界線の中におさ
まる最初の平行線を当該行の文字の行頭位置として決定
する段階、 を備えたことを特徴とする文字の行頭位置決定方法。
When a character string of a plurality of lines constituting a text of a predetermined text is arranged in a non-rectangular area, a head position of a character that determines a starting position in a line direction of one character section of a first character of each line. In the determining method, a step of displaying, on a display surface of the interactive input device, a partition line representing a character partition of a character array assuming a rectangular region and a boundary line of the region, determining a minimum deviation amount unit a, For a character section in which a line representing the start point of a line of the section line representing the character section and the boundary line of the area intersect, the distance between the minimum deviation unit a is parallel to the line representing the start point of the line and mutually. Displaying a plurality of parallel lines having the following in the character section; and determining a first one of the plurality of parallel lines that falls within the boundary of the area as a head position of a character of the line. , And Character the beginning of the line position method of determining that.
【請求項2】 前記最小ずれ量単位aは、前記文字区画
の行方向の長さの整数分の一として決定されることを特
徴とする請求項第1項記載の文字の行頭位置決定方法。
2. The method according to claim 1, wherein the minimum shift amount unit a is determined as an integer fraction of the length of the character section in the line direction.
【請求項3】 前記最小ずれ量単位aは、前記対話型入
力装置の表示面上に前記領域の境界線と前記文字区画を
表す区画線と共に、行の始点を表す線に対し平行で且つ
互いに前記最小ずれ単位aの間隔を有する複数の平行線
を表示し、この表示を観察しながら操作者が決定するこ
とを特徴とする請求項第1項記載の文字の行頭位置決定
方法。
3. The minimum deviation amount unit a, together with a boundary line of the area and a division line representing the character division, on the display surface of the interactive input device, is parallel to a line representing the starting point of a line and mutually parallel. 2. The method according to claim 1, wherein a plurality of parallel lines having an interval of the minimum shift unit a are displayed, and the operator determines the position while observing the display.
JP6164840A 1994-06-24 1994-06-24 How to determine the beginning of a line Expired - Fee Related JP2624183B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6164840A JP2624183B2 (en) 1994-06-24 1994-06-24 How to determine the beginning of a line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6164840A JP2624183B2 (en) 1994-06-24 1994-06-24 How to determine the beginning of a line

Publications (2)

Publication Number Publication Date
JPH0816652A JPH0816652A (en) 1996-01-19
JP2624183B2 true JP2624183B2 (en) 1997-06-25

Family

ID=15800926

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6164840A Expired - Fee Related JP2624183B2 (en) 1994-06-24 1994-06-24 How to determine the beginning of a line

Country Status (1)

Country Link
JP (1) JP2624183B2 (en)

Also Published As

Publication number Publication date
JPH0816652A (en) 1996-01-19

Similar Documents

Publication Publication Date Title
US5577187A (en) Method and system for tiling windows based on previous position and size
JP3970357B2 (en) Table allocation device and table allocation method
JP3599360B2 (en) Shape modeling device and shape modeling method
JPH0445874B2 (en)
JP3051749B2 (en) Screen scroll control method
JPH0363756A (en) Document editor
JP2624183B2 (en) How to determine the beginning of a line
JPH11110181A (en) Scroll bar display control device and method therefor, and recording medium recording scroll bar display control method
JP2729699B2 (en) Tracking start point input method and device
JP3118379B2 (en) Layout processing device
JPS63155260A (en) Editing method for table by computer
JP3012406B2 (en) Table making device and method
JP2661377B2 (en) Hierarchical structure display processing method
JP2560500B2 (en) Drafting method
JPS5850039A (en) List output method
JPS6114691A (en) Display controller for multiple display parts
JPH11185046A (en) Graphic editor, layout processing method and storage medium
KR920008285B1 (en) Charactor processing apparatus
JPS6136235B2 (en)
JPH0379718B2 (en)
JPH07110753A (en) Picture display controller
JP3080105B2 (en) Ruled line selection device
JPH04348458A (en) Table rule production method
JPH028960A (en) Method for extracting and processing common part in two polygons
JPS60176178A (en) Displaying/processing system of graphic

Legal Events

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