JPS6362783B2 - - Google Patents

Info

Publication number
JPS6362783B2
JPS6362783B2 JP56048246A JP4824681A JPS6362783B2 JP S6362783 B2 JPS6362783 B2 JP S6362783B2 JP 56048246 A JP56048246 A JP 56048246A JP 4824681 A JP4824681 A JP 4824681A JP S6362783 B2 JPS6362783 B2 JP S6362783B2
Authority
JP
Japan
Prior art keywords
character
input
size
string
character string
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
Application number
JP56048246A
Other languages
Japanese (ja)
Other versions
JPS57161894A (en
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 filed Critical
Priority to JP56048246A priority Critical patent/JPS57161894A/en
Publication of JPS57161894A publication Critical patent/JPS57161894A/en
Publication of JPS6362783B2 publication Critical patent/JPS6362783B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Character Discrimination (AREA)

Description

【発明の詳細な説明】 本発明は文字列入力方式に関し、特に2次元平
面上の任意の位置から横書きあるいは縦書きで任
意の文字サイズ、文字列間隔をもつ文字列を入力
できるようにする文字列入力方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character string input method, and in particular to a character string input method that allows character strings of any character size and character string spacing to be input in horizontal or vertical writing from any position on a two-dimensional plane. Regarding column input method.

従来陰極線管等の2次元平面上の任意の位置に
文字列を入力する方法として、入力すべき文字列
をタイプライタ等の文字入力装置で文字サイズ、
文字間隔および縦書き、横書きの指定を行なつた
上で入力し、作成される文字列をデイスプレイの
カーソル等の座標指定装置で表示位置を指定して
文字列を任意の位置に入力していた。
Conventionally, as a method of inputting a character string at an arbitrary position on a two-dimensional plane such as a cathode ray tube, the character string to be input is inputted using a character input device such as a typewriter, depending on the character size and size.
The character string was entered after specifying the character spacing, vertical writing, and horizontal writing, and the display position of the created character string was specified using a coordinate specifying device such as a cursor on the display, and the character string was input at an arbitrary position. .

しかしながらこの方法によると入力に手間がか
かるうえに、例えばブロツク図や流れ図等にみら
れる閉領域内に文字列を挿入する場合、文字サイ
ズや文字間隔の指定を誤ると閉領域から文字列が
はみ出たり、片寄つた領域に挿入されるという難
点があつた。
However, with this method, input is time-consuming, and when inserting a character string into a closed area, such as in a block diagram or flowchart, if the character size or character spacing is incorrectly specified, the character string may protrude from the closed area. The problem was that it was inserted into a lopsided area.

したがつて本発明は、前記の如き文字列入力方
式にみられる欠点を改善するために、文字入力装
置としてタブレツトのような2次元座標平面のあ
る入力装置を使用し、この2次元座標平面上に順
次文字を手書きしてその文字列情報より正規化さ
れた文字サイズと文字位置を決定するとともに、
その入力文字を認識して文字コードを生成するこ
とにより、陰極線管等の2次平面上の任意の位置
にコード化された文字列を入力できるようにした
文字列入力方式を提供することを目的とする。そ
してそのために本発明における文字列入力方式で
は、2次元平面上の任意の位置から横書きあるい
は縦書きで任意の文字サイズ、文字列間隔をもつ
文字列を入力する文字列入力方式において、入力
手書き文字を1文字ごとに切出す文字切出し手段
と、この手書き文字の大きさを検出する文字枠検
出手段と、最初に入力された文字の中心点を検出
して文字列原点を作成する原点検出手段と、入力
した文字が縦書きであるか横書きであるかを識別
する縦書横書検出手段と、文字間の間隔を決定す
る文字間隔決定手段と、表示すべき文字位置を正
規化する文字位置正規化手段と、入力文字を認識
してそれに応じた文字コードを出力する文字認識
手段を設け、入力した文字列入力から正規化した
文字サイズ、文字位置および文字コード信号を得
るようにしたことを特徴とする。
Therefore, in order to improve the drawbacks of the above-mentioned character string input method, the present invention uses an input device with a two-dimensional coordinate plane, such as a tablet, as a character input device, and inputs information on this two-dimensional coordinate plane. In addition to sequentially handwriting characters and determining the normalized character size and character position from the character string information,
The purpose of the present invention is to provide a character string input method that allows inputting a coded character string at any position on the secondary plane of a cathode ray tube, etc. by recognizing the input characters and generating a character code. shall be. For this purpose, in the character string input method of the present invention, input handwritten characters are a character cutting means for cutting out each character, a character frame detection means for detecting the size of the handwritten character, and an origin detection means for detecting the center point of the first input character to create a character string origin. , vertical/horizontal writing detection means for identifying whether input characters are written vertically or horizontally, character spacing determining means for determining the spacing between characters, and character position normalization for normalizing character positions to be displayed. character recognition means for recognizing input characters and outputting character codes corresponding to the input characters, and obtaining normalized character size, character position, and character code signals from the input character string input. shall be.

まず本発明の一実施例を詳述するに先立ち、本
発明の動作原理を第1図ないし第6図に基づき詳
細に説明する。
First, before describing one embodiment of the present invention in detail, the principle of operation of the present invention will be explained in detail based on FIGS. 1 to 6.

タブレツトのような文字入力装置の2次元座標
平面に手書きで入力された文字列は、一般に文字
の大きさ、文字間隔、文字列間隔等が不揃いであ
るので、そのままこれらの情報を認識して2次元
平面に入力したのでは表示された文字列の大き
さ、間隔が不揃いになつて不都合である。このた
めこの発明では、これらを設定基準値で正規化し
た後、2次元平面に入力するようにする。
Character strings input by hand onto the two-dimensional coordinate plane of a character input device such as a tablet generally have irregular character sizes, character spacing, character string spacing, etc. Inputting on a dimensional plane is inconvenient because the displayed character strings will be irregular in size and spacing. Therefore, in the present invention, these are normalized using a set reference value and then input into a two-dimensional plane.

次にこれらの動作原理について順次説明する。 Next, these operating principles will be explained in sequence.

(1) 文字入力および文字の切出し方式 第1図は文字入力および文字の切出し方式に
対する説明図である。
(1) Character input and character extraction method FIG. 1 is an explanatory diagram of the character input and character extraction method.

まず文字入力は、タブレツトのような2次元
座標面A上に入力ペンによる手書きによりスト
ローク単位で入力が行なわれる。例えば文字
「あ」は3ストローク、「い」は2ストロークか
らなる。
First, character input is performed in stroke units by handwriting with an input pen on a two-dimensional coordinate plane A such as a tablet. For example, the character "a" consists of three strokes, and the character "i" consists of two strokes.

次に連続する文字間の区切り情報、例えば第
1図において文字「あ」と「い」との間の区切
り情報は、2次元座標面Aの右上隅に区切り情
報検出用の特定座標値領域Bを設定し、1文字
入力毎にこの特定座標値領域Bに文字入力用の
ペンを接触して区切り情報を発生させる。また
文字筆記時に出現しない形状を持つストロー
ク、例えば第1図に示されるような下から上に
向う形の特定ストロークCS1またはCS2を1文
字入力毎に入力し、これを検出して区切り情報
とすることもできる。この後者の方が前者の方
式よりも文字入力に手間がかからないという利
点がある。
Next, the delimiter information between consecutive characters, for example, the delimiter information between the characters "a" and "i" in FIG. is set, and a pen for character input is brought into contact with this specific coordinate value area B every time one character is input to generate delimiter information. In addition, a stroke with a shape that does not appear when writing characters, for example, a specific stroke CS 1 or CS 2 from the bottom to the top as shown in Figure 1, is input for each character input, and this is detected and delimiter information is generated. It is also possible to do this. The latter method has the advantage of requiring less time and effort to input characters than the former method.

(2) 文字サイズ、文字列原点座標の決定方式 前記(1)で述べた方式により順次切出された文
字の大きさや位置を修正して正規化するために
は、基準となる文字サイズと文字列の原点座標
を設定することが必要である。第2図はこの文
字サイズ、文字列原点座標決定方式の説明であ
る。
(2) Method for determining font size and character string origin coordinates In order to correct and normalize the size and position of characters sequentially cut out using the method described in (1) above, it is necessary to determine the standard font size and character string. It is necessary to set the origin coordinates of the column. FIG. 2 is an explanation of the character size and character string origin coordinate determination method.

この発明では切出された最初の文字によつて
基準となる文字サイズと文字列原点座標を決定
する。いま切出された最初の文字が第2図aで
示す文字「あ」であつたとして、その文字枠
P0の大きさ(S0、S1)とその中心位置座標
(X0、Y0)を検出する。そして文字枠F0の大き
さを示す幅S1と高さS0のうち大きい方の値、す
なわち図示の「あ」の場合はS0>S1であるから
「S0」を文字列の各文字を正規化するときの基
準文字サイズとし、文字枠F0の中心位置(X0、
Y0)を文字列の原点座標と決定する。
In this invention, the reference character size and character string origin coordinates are determined based on the first character cut out. Assuming that the first character just cut out is the character “a” shown in Figure 2 a, the character frame
Detect the size of P 0 (S 0 , S 1 ) and its center position coordinates (X 0 , Y 0 ). Then, the larger value of the width S 1 indicating the size of the character frame F 0 and the height S 0 , that is, in the case of “A” shown in the figure, S 0 > S 1 , so “S 0 ” is the value of the character string. The standard character size when normalizing each character is the center position of the character frame F 0 (X 0 ,
Y 0 ) is determined as the origin coordinate of the string.

次に切出された文字が第2図bで示す文字
「い」であつたとすると、その文字枠の大きさ
は、S2、S3でS3>S2であるから、大きい方のS3
が文字「い」の文字サイズとなり、このS3を基
準にして、dに示す如く、基準文字サイズS0に
正規化する。この場合、S3>S0であるので、正
規化すると、S3→S0、S2→S20となり、全体が
やや小さくなる。
If the next cut out character is the character "i" shown in Figure 2b, the size of the character frame is S 2 and S 3 , and since S 3 > S 2 , the larger S 3
is the character size of the character "i", and using this S3 as a reference, it is normalized to the standard character size S0 , as shown in d. In this case, since S 3 >S 0 , normalization results in S 3 →S 0 and S 2 →S 20 , making the whole a little smaller.

もし切出された文字が第2図Cで示す文字
「い」のように文字サイズに関してS0>S3′>
S2′のような関係であれば、S3′を基準にしてS0
に正規化されてdに示す「い」となるので、こ
の場合は全体がやや大きくなる。
If the cut out character is S 0 >S 3 ′> in terms of character size, like the character ``i'' shown in Figure 2C.
If the relationship is S 2 ′, then S 0 with S 3 ′ as the reference
Since it is normalized to "i" as shown in d, the whole becomes a little larger in this case.

なお文字枠の中心位置(XC、YC)値は文字
サイズ正規化に際しては影響を受けない。
Note that the center position (X C , Y C ) values of the character frame are not affected during character size normalization.

また次に切出された文字が縦に長くS2>S3で
ある場合には、S2がその文字の文字サイズとな
り、このS2を基準にしてS0に規格化されること
によりなる。
Also, if the next cut out character is vertically long and S 2 > S 3 , S 2 becomes the character size of that character, and it is standardized to S 0 based on this S 2 . .

(3) 横書き、縦書きの決定方式 第3図は横書き、縦書きの決定方式に対する
説明図で、最初に書かれた文字L0の中心位置
(X0、Y0)と2番目の文字L1の中心位置(X1、
Y1)を比較し、水平座標の差DX0(DX=X1−
X0)の絶対値|DX0|が、垂直座標の差DY0
(DY0=Y1−Y0)の絶対値(|DY0|)より大
きいときは横書き、その逆のときは縦書きと判
定する。
(3) Determination method for horizontal writing and vertical writing Figure 3 is an explanatory diagram of the determination method for horizontal writing and vertical writing, showing the center position (X 0 , Y 0 ) of the first written character L 0 and the second character L 1 center position (X 1 ,
Y 1 ) and the difference in horizontal coordinates DX 0 (DX=X 1 −
The absolute value of |DX 0 | is the difference in vertical coordinates DY 0
When the absolute value (|DY 0 |) of (DY 0 = Y 1 − Y 0 ) is larger than the absolute value (|DY 0 |), it is determined that the writing is horizontal, and when the opposite is true, it is determined that the writing is vertical.

例えば第3図においてa,bの場合はいずれ
も|DX0|×|DY0|であるから横書と判定さ
れ、c,dの場合はいずれも|DX0|<|DY0
|であるから縦書きと判定される。
For example , in the case of a and b in Fig. 3, it is determined that the writing is horizontal because |DX 0 |
|, so it is determined to be vertical writing.

(4) 文字列における文字間隔の決定方式 横書きでも縦書きでも、手書きによる場合は
各文字列における文字間隔は一般に不揃いであ
るので、文字間隔を一定の大きさに規格化した
後に2次元平面に入力することが望ましい。
(4) Method for determining character spacing in character strings Whether written horizontally or vertically, the character spacing in each character string is generally uneven when written by hand. It is recommended that you enter the information.

この発明の文字間隔の決定方式を第3図によ
り説明する。第3図のaまたはbで示される横
書きのときは、最初の文字L0と2番目の文字
L1の中心位置の水平座標の差(X1−X0)すな
わちDX0を水平文字列における水平文字間隔と
決定する。
The character spacing determination method of this invention will be explained with reference to FIG. When writing horizontally as shown in a or b in Figure 3, the first character L 0 and the second character
The difference (X 1 −X 0 ) in the horizontal coordinates of the center position of L 1 , that is, DX 0 is determined as the horizontal character interval in the horizontal character string.

また第3図cまたはdで示される縦書きのと
きは、最初の文字L0と2番目の文字L1の中心
位置の垂直座標の差(Y1−Y0)すなわちDY0
を垂直文字列の垂直文字間隔と決定する。
In addition, in the case of vertical writing as shown in Figure 3 c or d, the difference (Y 1 - Y 0 ) in the vertical coordinates of the center positions of the first character L 0 and the second character L 1 , that is, DY 0
Determine the vertical character spacing of the vertical string.

このように、第2番に書込まれる文字の位置
は、前記(3)で説明したように、横書き、縦書き
を決定するとともに、その場合の文字間隔を決
定する要因ともなる。
In this way, as explained in (3) above, the position of the second character is a factor that determines horizontal writing or vertical writing, and also determines the character spacing in that case.

(5) 文字列の行間隔決定方式 横書きの場合でも縦書きの場合でも行を変え
て書込みが行なわれるが、手書きの場合は各文
字列の行間隔が不揃いになることが多いので、
この発明ではこの行間隔についても規格化を行
なつている。
(5) Method for determining line spacing for character strings Whether writing horizontally or vertically, writing is done on different lines, but when writing by hand, the line spacing between each character string is often uneven.
In this invention, the line spacing is also standardized.

第4図はこの発明の文字列の行間隔決定方式
に対する説明図であつて、同図においてP0、
P1、P2……は手書きで1番目、2番目、3番
目……の順に書込まれた文字の文字枠中心を示
し、括弧内はその座標を示す。
FIG. 4 is an explanatory diagram of the method for determining the line spacing of character strings according to the present invention, and in the same figure, P 0 ,
P 1 , P 2 . . . indicate the center of the character frame of the first, second, third, etc. characters written by hand, and the coordinates are shown in parentheses.

横書きのときは、3番目以降に書かれた文字
の中心の垂直座標と最初の文字の中心P0の垂
直座標の差の絶対値があらかじめ設定された一
定の基準値DYSより初めて大きくなつた場合
に、その差の値を水平文字列の行間隔と決定す
る。第4図において、第5番目の文字の中心
P4と最初の文字の中心P0とにおける垂直座標
の差の絶対値|Y4−Y0|がはじめて基準値
DYSより大きくなつたと判断されると、5番目
の文字は次の行の文字と判断されて、その垂直
座標の差DYL(DYL=Y4−Y0)が水平文字列の
行間隔と決定される。
When writing horizontally, the absolute value of the difference between the vertical coordinate of the center of the third and subsequent characters and the vertical coordinate of the center P0 of the first character becomes larger than a preset reference value DY S for the first time. , the difference value is determined as the line spacing of the horizontal string. In Figure 4, the center of the fifth letter
The absolute value of the difference in vertical coordinates between P 4 and the center of the first character P 0 | Y 4 − Y 0 | is the reference value
When it is determined that the fifth character is larger than DY S , the fifth character is determined to be a character on the next line, and the difference in vertical coordinates DY L (DY L = Y 4 − Y 0 ) is the line spacing of the horizontal character string. It is determined that

縦書きの場合も同様にして(図示せず)3番
目以後に書かれた文字の中心の水平座標と最初
の文字の中心P0の水平座標の差の絶対値が、
あらかじめ設定された一定の基準値DXSよりは
じめて大きくなつた場合に、その差の値を垂直
文字列の行間隔と決定する。
Similarly for vertical writing (not shown), the absolute value of the difference between the horizontal coordinates of the center of the third and subsequent characters and the horizontal coordinate of the center P0 of the first character is
When it becomes larger than a preset constant reference value DX S for the first time, the value of the difference is determined as the line spacing of the vertical character string.

なお各文字列の行間隔を決定する際の基準値
DYS、DXSは二次元座標面の大きさ、書込む文
字の大きさ、文字列の間隔等を考慮して選定さ
れる。
In addition, the standard value when determining the line spacing of each character string
DY S and DX S are selected in consideration of the size of the two-dimensional coordinate plane, the size of characters to be written, the spacing between character strings, etc.

(6) 入力文字の大きさ、位置の正規化方式 前記(2)〜(5)で説明した方式によつて定められ
た基準文字サイズS0、文字列の原点位置(X0、
Y0)、文字列の文字間隔(DX0またはDY0)、
文字列の行間隔(DYLまたはDXL)を用いて入
力文字の文字サイズおよび中心位置正規化を他
図を参照しつつ第5図により説明する。
(6) Normalization method for input character size and position Standard character size S 0 and character string origin position (X 0 ,
Y 0 ), string character spacing (DX 0 or DY 0 ),
Normalization of the character size and center position of input characters using the line spacing (DY L or DX L ) of a character string will be explained with reference to FIG. 5 with reference to other figures.

(i) 入力文字の大きさの正規化方式 文字入力の大きさの正規化方式は前記(2)で
説明したとおりである。すなわち第2図に示
す如く手書きで書込まれた最初の文字L0の
文字枠F0の幅と高さの大きい方(S0)を基
準にして幅・高さがともにS0の基準文字サイ
ズが設定される。2番目以後の文字は各文字
枠の幅または高さの大きい方がその文字サイ
ズと定められ、その文字サイズが基準文字サ
イズS0と等しくなるように全体を拡大または
縮小して各文字の正規化が行なわれる。
(i) Normalization method for the size of input characters The normalization method for the size of input characters is as explained in (2) above. In other words, as shown in Figure 2, the reference character whose width and height are both S 0 based on the larger of the width and height (S 0 ) of the character frame F 0 of the first character L 0 written by hand. The size is set. For the second and subsequent characters, the larger width or height of each character frame is determined as the character size, and the entire character is enlarged or reduced so that the character size is equal to the standard character size S0 . conversion is carried out.

(ii) 文字中心位置の正規化方式 横書きの場合の例を第5図により説明する
が、縦書きの場合も同様である。
(ii) Normalization method for character center position An example in the case of horizontal writing will be explained with reference to FIG. 5, but the same applies to the case of vertical writing.

横書きの場合は、最初の文字の中心P0の
座標(X0、Y0)によつて座標原点(X0、
Y0)が、第2番目の文字の中心P1の座標
(X1、Y1)から各文字の文字間隔DX0(DX0
=X1−X0)が、第5番目の文字の中心P4の
座標(X4、Y4)から文字列の行間隔DYL
(DYL=Y4−Y0)が決定されるので、第3番
目以降の文字はX方向はDX0、Y方向はDYL
の等間隔で区切られた座標の交点である格子
点(K0、K1、K2……)のいずれかに再配置
されて正規化が行なわれる。
In the case of horizontal writing, the coordinate origin (X 0 , Y 0 ) is determined by the coordinates (X 0 , Y 0 ) of the center P 0 of the first character.
Y 0 ) is the character interval DX 0 ( DX 0
= X 1 - X 0 ) is the line spacing DY L of the string from the coordinates (X 4 , Y 4 ) of the center P 4 of the fifth character.
(DY L = Y 4 − Y 0 ) is determined, so the third and subsequent characters are DX 0 in the X direction and DY L in the Y direction.
Normalization is performed by rearranging the coordinates to one of the grid points (K 0 , K 1 , K 2 . . . ), which are intersection points of coordinates separated at equal intervals.

正規化に際しては各文字は、その文字の中
心に最も近い格子点に再配置されるようにす
る。第5図において、P1はK1に、P2はK2
に、P3はK3に……P7はK7に正規化される。
During normalization, each character is relocated to the grid point closest to the center of the character. In Figure 5, P 1 becomes K 1 and P 2 becomes K 2
Then, P 3 is normalized to K 3 ...P 7 is normalized to K 7 .

この正規化操作は次のような演算式に従つ
て行うことができる。
This normalization operation can be performed according to the following arithmetic expression.

II=(XC−X0+SN*D0/2)/DX0 …… ここで、 XC:書込まれたある文字の中心PCのX座標 *:積の演算記号 SN= 1:(XC−X0)とDX0の符号が等し
いとき −1:その他の場合 II:右辺の演算結果の整数値部分を示す。
II = ( X C − When the signs of X C −X 0 ) and DX 0 are equal -1: Otherwise II: Indicates the integer value part of the operation result on the right side.

また(又は′)式の演算を実行する演
算装置は、演算結果の小数部分を四捨五入す
ることなく切り捨てて整数部分のみを出力と
して発生する構成のものである。これにより
演算装置の構成は簡単化される。
Furthermore, the arithmetic device that executes the calculation of formula (or ') is configured to truncate the decimal part of the calculation result without rounding it off, and generate only the integer part as output. This simplifies the configuration of the arithmetic device.

次に前記式の演算操作について説明す
る。
Next, the operation of calculating the above equation will be explained.

いま文字中心PCが格子点KC+1とKC(それぞ
れX座標をX(KC+1)、X(KC)とする)の中
間に存在しているときに、最も近い格子点に
正規化するためには、X座標に関しては文字
中心PCX座標(XC)を四捨五入して整数値
に変換し、その値の等しいX座標を持つ格子
点に正規化すればよい。
When the character center P C is located between the grid points K C+1 and K C (where the X coordinates are X(K C+1 ) and X(K C ), respectively), the nearest grid point In order to normalize the X coordinate, the character center P C

ところで演算装置は四捨五入の機能を有せ
ず、単に整数値部分のみを出力するものであ
るが、このような演算装置に四捨五入を行つ
たと同等の演算を行なわせるために式の右
辺の第1項の演算結果に第2項に示すように
0.5(または1/2)DX0を加える操作が行なわ
れる。このようにすることにより X(KC)≦XC<X(KC)+DX0*0.5 のとき、すなわち、PCがKC点に近いときに
は X(KC)≦XC+DX0*0.5<X(KC)+DX0 すなわち X(KC)≦XC+DX0*0.5<X(KC+1) となり、このXC+DX0*0.5をD0Xで割つた
値の整数値部分はKC点のX座標X(KC)を示
すことになる。
By the way, arithmetic devices do not have a rounding function and simply output only the integer value part, but in order to have such arithmetic devices perform an operation equivalent to rounding, the first As shown in the second term in the calculation result of the term
An operation of adding 0.5 (or 1/2) DX 0 is performed. By doing this, when X(K C )≦X C <X(K C )+DX 0 *0.5, that is, when P C is close to the K C point, X(K C )≦X C +DX 0 *0.5 <X (K C ) + DX 0 , that is, X (K C )≦X C + DX 0 * 0.5 < indicates the X coordinate X(K C ) of the K C point.

もしX(KC)+DX0*0.5≦XC<X(KC+1)
のとき、すなわちPCがKC+1点に近いときは、 X(KC)+DX0≦XC+DX0*0.5<X(KC+1)
+DX0*0.5 となり、このXC+DX0*0.5をDX0で割つた
値の整数値部分はKC+1点のX座標X(KC+1)
を示すことになる。
If X(K C )+DX 0 *0.5≦X C <X(K C+1 )
When P C is close to the K C+1 point, X (K C ) + DX 0 ≦ X C + DX 0 *0.5 <
+DX 0 *0.5, and the integer part of the value obtained by dividing this X C +DX 0 *0.5 by DX 0 is the X coordinate X of point K C+1 (K C+1 )
will be shown.

ところでDX0の符号と、XC−X0の符号が
異なるとき、すなわち第5図でP2点の場合
は、DX0>0、XC−X0<0であるから、P2
を最も近い格子点K2に正規化するためXC−
X0(=X2−X0<0)からDX0*0.5(>0)の
値を引くようにしなければならない。前記
式の右辺第2項中のSNはこのために行なわ
れる演算操作である。
By the way, when the sign of DX 0 and the sign of X C −X 0 are different, that is, in the case of point P 2 in FIG. 5, DX 0 >0 and X C −X 0 <0, so P 2
To normalize X C − to the nearest grid point K 2
The value of DX 0 *0.5 (>0) must be subtracted from X 0 (=X 2 −X 0 <0). SN in the second term on the right side of the above equation is an arithmetic operation performed for this purpose.

文字列の第2行目以後に関しても同様であ
り、文字列の行間隔(DYL)が決定された
文字以降の文字に対する正規化位置は次のよ
うになる。
The same applies to the second and subsequent lines of the character string, and the normalized positions for characters after the character for which the line spacing (DYL) of the character string has been determined are as follows.

正規化位置座標(Xp、Yp)=(X0+DX0*
II、Y0+DYL*JJ) ここでIIは前記式で求められた整数 JJ=(YC−Y0+SN*DYL/2)/DYL
…… ただし ただしSN=1:(YC−Y0)とDYLの符号が 等しいとき −1:その他のとき で与えられる。
Normalized position coordinates (Xp, Yp) = (X 0 +DX 0 *
II, Y 0 + DYL * JJ) Here, II is the integer obtained using the above formula JJ = (Y C − Y 0 + SN * DYL / 2) / DYL
...However, SN = 1: When the signs of (Y C - Y 0 ) and DYL are equal - 1: In other cases, it is given.

(7) 手書き文字の認識および小文字コードの変換 文字サイズおよび中心位置が正規化された手
書き文字は公知の手書文字認識され、認識結果
は文字カテゴリーコードとして出力される。
(7) Handwritten character recognition and lowercase code conversion Handwritten characters whose character size and center position have been normalized are recognized as known handwritten characters, and the recognition results are output as character category codes.

また小文字(句読点「。」、「,」等を含む)は
入力文字の大きさ情報を用いて認識装置によつ
て判別され、それらに対するコードに変換した
上で文字コテゴリコード、文字サイズおよび文
字位置を文字列格納領域に格納する。
In addition, lowercase letters (including punctuation marks ".", ",", etc.) are distinguished by the recognition device using the size information of the input characters, and after converting them into codes, the character category code, character size, and character position are determined. Store in the string storage area.

また縦書きの場合、例えば小文字の「つ」
は、第6図aに示すように手書きで入力されて
も、同図bの如く「つ」を右上隅の位置に修正
する必要があるので、縦書きでかつ小文字の
「つ」と判別されたときは、同図bに示す位置
に書かれた小文字としての文字カテゴリコード
に変換される。
Also, in the case of vertical writing, for example, the lowercase letter "tsu"
Even if it is input by hand as shown in Figure 6a, it is necessary to correct the ``tsu'' to the upper right corner position as shown in Figure 6b, so it will be recognized as a vertically written and lowercase ``tsu''. , it is converted into a character category code as a lowercase letter written in the position shown in FIG.

なお、「ぱ」、「ば」、「か」等は一体として文
字カテゴリコードに変換されるので、小文字と
の混同が生じることはない。
Note that "pa", "ba", "ka", etc. are converted into character category codes as a whole, so there is no confusion with lowercase letters.

さらに第5図の第8番目の文字(中心P7)
を入力したとき既に格子点K7に文字が正規化
されて入力されている場合には、既に入力され
ている文字が自動的に消去されて新しく記入さ
れた第8番目の文字が入力されることになる。
これにより文字の訂正が容易に行なわれる。
Furthermore, the 8th character in Figure 5 (center P 7 )
If a character has already been normalized and entered at grid point K7 when inputting , the already entered character will be automatically deleted and the newly entered 8th character will be entered. It turns out.
This facilitates character correction.

次に本発明の一実施例構成を第7図により説
明する。
Next, the configuration of an embodiment of the present invention will be explained with reference to FIG.

入力データSiは、図示省略したタブレツトの
如き2次元座標面から発生された文字のストロ
ーク系列であつて、出力として発生されるもの
は位置(Xp、Yp)と文字サイズS0を伴なう文
字カテゴリコードCODである。
The input data Si is a stroke series of characters generated from a two-dimensional coordinate plane such as a tablet (not shown), and what is generated as output is a character with position (Xp, Yp) and character size S0 . The category code is COD.

以下第7図をその動作の順に説明する。 Below, FIG. 7 will be explained in the order of its operation.

(A) 入力データSiは文字切出し回路1に伝達さ
れる。この文字切出し回路1は、第1図に示
す特定ストローク(CS1、CS2)あるいは特
定座標値領域Bから区切り情報を検出して文
字の切出しを行ない、何番目の文字かを示す
文字番号Nと文字データDATAを出力する。
この文字データDATAは切出された入力デ
ータであり、文字枠検出回路2および文字認
識回路8に伝達される。そして文字番号Nは
文字サイズ及び文字列原点検出回路3、縦書
横書検出回路4、文字間隔決定回路5および
文字列行間隔決定回路6等に伝達される。
(A) Input data Si is transmitted to the character cutting circuit 1. This character extraction circuit 1 extracts characters by detecting delimiter information from specific strokes (CS 1 , CS 2 ) or specific coordinate value area B shown in FIG. and outputs character data DATA.
This character data DATA is cut out input data and is transmitted to the character frame detection circuit 2 and the character recognition circuit 8. The character number N is then transmitted to a character size and character string origin detection circuit 3, a vertical/horizontal writing detection circuit 4, a character spacing determining circuit 5, a character string line spacing determining circuit 6, and the like.

(B) 文字枠検出回路2は、前記文字切出し回路
1から伝達された1文字毎の文字データ
DATAにもとづき、入力文字の中心位置
(XC、YC)および入力文字の文字サイズ
(S)が各文字について出力される。
(B) The character frame detection circuit 2 receives character data for each character transmitted from the character cutting circuit 1.
Based on DATA, the center position (X C , Y C ) of the input character and the character size (S) of the input character are output for each character.

(C) 文字サイズ及び文字列原点検出回路3は文
字切出し回路1から伝達された文字番号Nに
もとづき、および文字枠検出回路2から伝達
された最初に入力された文字(N=1)の中
心位置および文字サイズを座標原点(X0、
Y0)および基準文字サイズS0として出力す
る。
(C) The character size and character string origin detection circuit 3 determines the center of the first input character (N=1) transmitted from the character frame detection circuit 2 based on the character number N transmitted from the character cutting circuit 1. Coordinate the position and font size to the origin (X 0 ,
Y 0 ) and standard character size S 0 .

(D) 縦書横書検出回路4は切出し回路1から入
力された第2番目の文字番号N=2出力を検
出したとき、文字枠検出回路2から出力され
たこのN=2の文字の中心位置(X1、Y1)
と前記(C)による座標原点(X0、Y0)とによ
り第3図に説明した如く、(X1、X0)と
(Y1、Y0)の絶対値を比較することにより縦
書か横書かを判定し、縦書・横書指定信号
TYを出力する。このとき、例えば横書のと
きはTY=「0」、縦書のときにはTY=「1」
と定める。そしてこの縦書・横出指定信号
TYを文字間隔決定回路5、文字列行間隔決
定回路6および文字認識回路8等に送出す
る。
(D) When the vertical/horizontal writing detection circuit 4 detects the second character number N=2 output input from the cutting circuit 1, the center of this N=2 character output from the character frame detection circuit 2 is detected. Position (X 1 , Y 1 )
By comparing the absolute values of (X 1 , X 0 ) and (Y 1 , Y 0 ) , as explained in FIG. Determine horizontal writing and send vertical/horizontal writing designation signal
Output TY. At this time, for example, TY = "0" for horizontal writing, and TY = "1" for vertical writing.
It is determined that And this vertical writing/horizontal writing designation signal
TY is sent to the character spacing determining circuit 5, character string line spacing determining circuit 6, character recognition circuit 8, etc.

(E) 文字間隔決定回路5は第2番目(N=2)
の文字中心位置(XC=X1、YC=Y1)と座標
原点(X0、Y0)との比較により、横書きの
ときは水平文字間隔DX0(DX0=X1−X0)を
出力し、縦書きのときは垂直文字間隔DY0
(DY0=Y1−Y0)が出力される。そしてこの
水平文字間隔DX0または垂直文字間隔DY0は
文字列間隔決定回路6に送出される。
(E) Character spacing determining circuit 5 is the second (N=2)
By comparing the character center position (X C = X 1 , Y C = Y 1 ) with the coordinate origin (X 0 , Y 0 ), the horizontal character spacing DX 0 (DX 0 = ), and when writing vertically, the vertical character spacing DY 0
(DY 0 = Y 1 − Y 0 ) is output. This horizontal character spacing DX 0 or vertical character spacing DY 0 is sent to the character string spacing determining circuit 6.

(F) 文字列行間隔決定回路6は、横書きのとき
と縦書きのときにより、次のようにして行間
隔を定める。
(F) The character string line spacing determining circuit 6 determines the line spacing in the following manner depending on whether the character string is written horizontally or vertically.

(イ) 横書き(TY=「0」、DX0≠0)のとき
で入力文字と原点のY座標の差(YC−Y0)
の絶対値がはじめて所定の基準値を越えた
とき、水平文字列の行間隔DYLを、DYL
=YC−Y0として決定しこれを出力する。
それ以外のときはDX0、DY0の値は不変の
ままである。
(B) Difference between the Y coordinate of the input character and the origin when writing horizontally (TY = "0", DX 0 ≠ 0) (Y C - Y 0 )
When the absolute value of
=Y C −Y 0 and output it.
Otherwise, the values of DX 0 and DY 0 remain unchanged.

(ロ) 縦書き(TY=「1」、DY0≠0)のとき
で、入力文字と原点のX座標の差(XC−
X0)の絶対値がはじめて所定の基準値を
越えたとき、垂直文字列の行間隔DXLを、
DXL=XC−X0として決定し、これを出力
する。それ以外のときはDX0、DY0の値は
不変のままである。
(b) When writing vertically (TY = "1", DY 0 ≠ 0), the difference between the X coordinate of the input character and the origin (X C -
When the absolute value of
Determine DXL=X C −X 0 and output this. Otherwise, the values of DX 0 and DY 0 remain unchanged.

そしてこの(イ)または(ロ)の操作により、横書
き(TY=「0」)のときは文字間隔DX0と行
間隔DYLが出力され、縦書き(TY=「1」)
のときは文字間隔DY0と行間隔DXLが出力
され、文字位置正規化回路7に送出される。
Then, by operating (a) or (b), character spacing DX 0 and line spacing DYL are output for horizontal writing (TY = "0"), and for vertical writing (TY = "1")
In this case, the character spacing DY 0 and the line spacing DXL are output and sent to the character position normalization circuit 7.

(G) 文字位置正規化回路7は、前記(C)、(E)、(F)
で定まるパラメータ(X0、Y0、DX0、DY0、
DYL、DXL)を用いて入力文字の正規化さ
れた位置(Xp、Yp)を算出する。例えば横
書きのときは前記式および式の如き計算
が行なわれる。ここで Xp=X0+DX0*II、Yp=Y0+DYL*JJ である。
(G) The character position normalization circuit 7 has the above-mentioned (C), (E), and (F).
Parameters determined by (X 0 , Y 0 , DX 0 , DY 0 ,
DYL, DXL) to calculate the normalized position (Xp, Yp) of the input character. For example, when writing horizontally, calculations such as the above equations and equations are performed. Here, Xp=X 0 +DX 0 *II, Yp=Y 0 +DYL *JJ.

(H) 文字認識回路8は、文字切出し回路1から
伝達された文字データDATAと文字サイズ
Sにもとづき手書き入力文字を認識して文字
カテゴリコードCODに変換してこの文字カ
テゴリコードCODを出力する。ただし縦書
きのとき(TY=1)で小文字のときはこれ
を縦書き用の文字カテゴリコードに変換す
る。
(H) The character recognition circuit 8 recognizes the handwritten input character based on the character data DATA and the character size S transmitted from the character cutting circuit 1, converts it into a character category code COD, and outputs this character category code COD. However, when writing vertically (TY = 1) and lowercase letters, this is converted to a character category code for vertical writing.

このようにして、最終的に出力される文字サイ
ズ及び文字列原点検出回路3から得られる基準文
字サイズS0、文字位置正規化回路7から得られる
正規化位置(Xp、Yp)および文字認識回路8か
ら得られる文字カテゴリーコードCODを一組と
して、文字入力順に文字単位で図示省略した文字
列格納領域に格納する。
In this way, the finally output character size, the reference character size S 0 obtained from the character string origin detection circuit 3, the normalized position (Xp, Yp) obtained from the character position normalization circuit 7, and the character recognition circuit The character category codes COD obtained from 8 are stored as a set in a character string storage area (not shown) in character input order.

そしてこれを表示するとき、図示省略した二次
元平面を有する表示装置において各入力文字は基
準文字サイズS0に正規化される。
When displaying this, each input character is normalized to a reference character size S0 on a display device having a two-dimensional plane (not shown).

もしも表示装置内で正規化する手段が備えられ
ていないものを使用するときには、文字サイズお
よび文字列原点検出回路3から出力される基準文
字サイズS0にもとづき、あらかじめ文字認識回路
8から出力される文字カテゴリコードCODを正
規化しておけばよい。
If a display device that is not equipped with normalization means is used, the character recognition circuit 8 outputs the standard character size S0 in advance based on the character size and the standard character size S0 output from the character string origin detection circuit 3. All you have to do is normalize the character category code COD.

以上説明の如く、本発明によれば、タブレツト
のような2次元座標面上に通常文字を手書きする
操作で文字ストロークを書入れることにより、自
動的に文字のコード化、大きさの正規化および位
置の正規化を行うことができるので、文字列の入
力に従来必要であつた文字列作成のためのパラメ
ータの入力を省くことができ、文字列作成を非常
に簡単に行なうことができる。
As explained above, according to the present invention, by writing character strokes by handwriting ordinary characters on a two-dimensional coordinate plane such as a tablet, characters can be automatically encoded, their sizes normalized, and Since the position can be normalized, it is possible to omit the input of parameters for creating character strings, which were conventionally necessary for inputting character strings, and it is possible to create character strings very easily.

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

第1図は文字入力および切出し状態説明図、第
2図は文字サイズ、文字列原点の決定状態説明
図、第3図は横書き、縦書き判定および文字列の
文字間隔決定状態説明図、第4図は文字列の行間
隔決定状態説明図、第5図は文字中心位置の正規
化状態説明図、第6図は小文字コードの変換状態
説明図、第7図は本発明の一実施例構成図であ
る。 図中、1は文字切出し回路、2は文字枠検出回
路、3は文字サイズおよび文字列原点検出回路、
4は縦書横書検出回路、5は文字間隔決定回路、
6は文字列行間隔決定回路、7は文字位置正規化
回路、8は文字認識回路をそれぞれ示す。
Fig. 1 is an explanatory diagram of character input and cutting, Fig. 2 is an explanatory diagram of character size and character string origin determination, Fig. 3 is an explanatory diagram of horizontal writing, vertical writing determination, and character spacing determination of character strings, and Fig. 4 is an explanatory diagram of character input and cutting state. The figure is an explanatory diagram of the line spacing determination state of a character string, Fig. 5 is an explanatory diagram of the normalization state of the character center position, Fig. 6 is an explanatory diagram of the lowercase character code conversion state, and Fig. 7 is a configuration diagram of an embodiment of the present invention. It is. In the figure, 1 is a character cutting circuit, 2 is a character frame detection circuit, 3 is a character size and character string origin detection circuit,
4 is a vertical writing/horizontal writing detection circuit; 5 is a character spacing determining circuit;
Reference numeral 6 indicates a character string line spacing determination circuit, 7 a character position normalization circuit, and 8 a character recognition circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 2次元平面上の任意の位置から横書きあるい
は縦書きで任意の文字サイズ、文字列間隔をもつ
文字列を入力する文字列入力方式において、入力
手書き文字を1文字ごとに切出す文字切出し手段
と、この手書き文字の大きさを検出する文字枠検
出手段と、最初に入力された文字の中心点を検出
して文字列原点を作成する原点検出手段と、入力
した文字が縦書きであるか横書きであるかを識別
する縦書横書検出手段と、文字間の間隔を決定す
る文字間隔決定手段と、表示すべき文字位置を正
規化する文字位置正規化手段と、入力文字を認識
してそれに応じた文字コードを出力する文字認識
手段を設け、入力した文字列入力から正規化した
文字サイズ、文字位置および文字コード信号を得
るようにしたことを特徴とする文字列入力方式。
1. In a character string input method that inputs a character string of any character size and character string spacing in horizontal or vertical writing from any position on a two-dimensional plane, a character cutting means for cutting out input handwritten characters character by character; , a character frame detection means for detecting the size of this handwritten character, an origin detection means for creating a character string origin by detecting the center point of the first input character, and a character frame detection means for detecting the center point of the first input character to create a character string origin, and a character frame detection means for detecting the center point of the first input character to create a character string origin, and a character frame detection means for detecting the center point of the first input character to create a character string origin. vertical and horizontal writing detection means, character spacing determination means for determining the spacing between characters, character position normalization means for normalizing the character position to be displayed, and 1. A character string input method characterized in that a character recognition means for outputting a corresponding character code is provided, and normalized character size, character position, and character code signals are obtained from an input character string.
JP56048246A 1981-03-31 1981-03-31 Character string input system Granted JPS57161894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56048246A JPS57161894A (en) 1981-03-31 1981-03-31 Character string input system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56048246A JPS57161894A (en) 1981-03-31 1981-03-31 Character string input system

Publications (2)

Publication Number Publication Date
JPS57161894A JPS57161894A (en) 1982-10-05
JPS6362783B2 true JPS6362783B2 (en) 1988-12-05

Family

ID=12798077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56048246A Granted JPS57161894A (en) 1981-03-31 1981-03-31 Character string input system

Country Status (1)

Country Link
JP (1) JPS57161894A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015040740A1 (en) * 2013-09-20 2015-03-26 株式会社 東芝 Electronic device and method

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62159291A (en) * 1986-01-07 1987-07-15 Toshiba Corp Sentence input device
JPS631261U (en) * 1986-06-19 1988-01-07
JPS6436383A (en) * 1987-07-31 1989-02-07 Toshiba Corp Character reader
JP2858581B2 (en) * 1989-06-15 1999-02-17 キヤノン株式会社 Image processing method and apparatus
JP2012108893A (en) * 2010-10-22 2012-06-07 Metamoji Corp Hand-written entry method
CN107967105A (en) * 2016-10-19 2018-04-27 夏普株式会社 Handwritten content editing equipment and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015040740A1 (en) * 2013-09-20 2015-03-26 株式会社 東芝 Electronic device and method
US9940536B2 (en) 2013-09-20 2018-04-10 Kabushiki Kaisha Toshiba Electronic apparatus and method

Also Published As

Publication number Publication date
JPS57161894A (en) 1982-10-05

Similar Documents

Publication Publication Date Title
US5799115A (en) Image filing apparatus and method
US5513278A (en) Handwritten character size determination apparatus based on character entry area
US5212769A (en) Method and apparatus for encoding and decoding chinese characters
JP3761937B2 (en) Pattern recognition method and apparatus, and computer control apparatus
JPS62159291A (en) Sentence input device
JP3167800B2 (en) Online character input device
JPH04290184A (en) Handwritten document creation device
JPH0782530B2 (en) Handwriting recognition device
JPH06119496A (en) Handwritten information processor
JP2697790B2 (en) Character type determination method
JP2578747B2 (en) Handwritten information processing method
JPH1049627A (en) Online character recognition method and apparatus
JP3111521B2 (en) Recognition character correction method
JP2731394B2 (en) Character input device
JP2866388B2 (en) Character recognition device
JPH0610447Y2 (en) Image processing device
JPS63273969A (en) Input device for architectural drawing cad
JPS63204486A (en) Character input device
JPH04337890A (en) Device for recognizing on-line handwritten character
JP3352467B2 (en) Online character recognition device
JP3111522B2 (en) Recognition character correction method
JPS61194583A (en) Hand-written character recognition device
JP2953162B2 (en) Character recognition device
JPH0658694B2 (en) Character recognition device
JPH0580711B2 (en)