JP2011053986A - Computing device, computing program, and recording medium recording the program - Google Patents

Computing device, computing program, and recording medium recording the program Download PDF

Info

Publication number
JP2011053986A
JP2011053986A JP2009203142A JP2009203142A JP2011053986A JP 2011053986 A JP2011053986 A JP 2011053986A JP 2009203142 A JP2009203142 A JP 2009203142A JP 2009203142 A JP2009203142 A JP 2009203142A JP 2011053986 A JP2011053986 A JP 2011053986A
Authority
JP
Japan
Prior art keywords
information
formula
writing
mathematical
unit
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
JP2009203142A
Other languages
Japanese (ja)
Inventor
Tadashi Hirose
斉志 広瀬
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2009203142A priority Critical patent/JP2011053986A/en
Publication of JP2011053986A publication Critical patent/JP2011053986A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a computing device capable of reducing a user's burden for operation related to computation by using only part of a mathematical formula which has been written on the other calculation to avoid the trouble of writing a mathematical formula therefor, a computing program and a recording medium recording the program. <P>SOLUTION: In the computing device 1, a mathematical formula recognition unit 13 recognizes writing information showing a mathematical formula as mathematical formula information. An area recognition unit 15 recognizes a handwriting pattern gesture showing area designation information as area designation information. The handwriting pattern gesture designates an area on a display surface. An operation recognition unit 16 recognizes a handwriting operation gesture showing an operation as operation information. A post-operation mathematical formula generation unit 17 generates post-operation mathematical formula information based on the mathematical formula information and the operation information. A computing unit 18 performs operation according to a mathematical formula shown by the post-operation mathematical formula information, and outputs an operation result when the post-operation mathematical formula generation unit 17 generates the post-operation mathematical formula information. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、筆記によって入力された数式に基づく計算を行う計算装置、計算プログラムおよびこれが記録された記録媒体に関する。   The present invention relates to a calculation device that performs a calculation based on a mathematical expression input by writing, a calculation program, and a recording medium on which this is recorded.

第1の従来技術に係る計算装置として、利用者がタッチパネルまたはタブレット等のポインティングデバイスを用いて数式を筆記すれば数字や計算記号を認識し、さらに認識した数字や計算記号を基に数式を認識し、演算する手書き入力式電子卓上計算機が知られる。   As a calculation device according to the first prior art, if a user writes a mathematical expression using a pointing device such as a touch panel or a tablet, the numerical value and the calculation symbol are recognized, and further, the mathematical expression is recognized based on the recognized number and the calculation symbol. In addition, a handwritten input type electronic desk calculator for calculating is known.

前記手書き入力式電子卓上計算機は、利用者が前記ポインティングデバイスを用いて演算させたい通りに筆記すれば自動的に数式の演算を行う。そのため、前記計算装置は、利用者にとって装置に対する入力が簡便な操作で済むという特徴を備えている。例えば、角度30度の正弦関数値を求める場合、一般的な電卓の場合、入力される数値が角度であることを指示する[DEG]キー、角度の数値キー[3]および[0]、さらに関数を示す[sin]キーが押されると結果が得られる。これは、人が通常筆記し、紙や画面等の媒体上で表示される順序に合致した入力方法ではない。しかしながら、前記手書き入力式電子卓上計算機は、利用者がsin30°と数式通りに筆記入力すれば、その筆記入力を自動的に認識し、演算し、結果を得る(たとえば特許文献1参照)。   The handwritten input-type electronic desk calculator automatically calculates mathematical formulas when the user writes as desired using the pointing device. For this reason, the computing device has a feature that a user can input the device with a simple operation. For example, when calculating a sine function value with an angle of 30 degrees, in the case of a general calculator, a [DEG] key for indicating that an input numerical value is an angle, numerical value keys [3] and [0] for an angle, and When a [sin] key indicating a function is pressed, a result is obtained. This is not an input method that matches the order in which a person normally writes and is displayed on a medium such as paper or a screen. However, the handwritten input type electronic desk calculator automatically recognizes and calculates the written input when the user inputs the written value as sin 30 ° according to the mathematical expression (see, for example, Patent Document 1).

前記手書き入力式電子卓上計算機をさらに便利にする工夫を示す第2の従来技術に係る計算装置として、表示された計算結果に対して丸チェックおよび矢印を記入し、これらの記号の意味と配置とから、さらに演算が行われる手書き計算処理装置が知られている。この計算処理装置は、すでに行った演算で得られている結果に利用者が数字や演算記号を書き加えると、書き加えられた数字や演算記号を認識し、指定された演算を行う(たとえば特許文献2参照)。   As a calculation device according to the second prior art showing a device for making the handwriting input type electronic desk calculator more convenient, a circle check and an arrow are entered for the displayed calculation result, and the meaning and arrangement of these symbols. Therefore, a handwritten calculation processing device that performs further calculation is known. When a user adds a number or an operation symbol to a result obtained by an operation already performed, this calculation processing device recognizes the added number or operation symbol and performs a specified operation (for example, patent Reference 2).

特開昭63−165944号公報JP-A 63-165944 特開平4−76756号公報JP-A-4-76756

第1の従来技術では、計算を表す数式を完結させる必要があるので、数式の一部を他の計算に利用する場合には、計算に利用したい計算を完結させて筆記する必要があり、すでに筆記された数式の一部のみを他の計算に利用することができないという問題点がある。   In the first conventional technique, it is necessary to complete a mathematical expression representing a calculation. Therefore, when a part of the mathematical expression is used for another calculation, it is necessary to complete the calculation to be used for the calculation and write it. There is a problem that only a part of the written mathematical formula cannot be used for other calculations.

第2の従来技術では、計算結果をさらに他の数式による計算に利用することはできるけれども、第2の従来技術でも、すでに筆記された数式の一部のみを他の計算に利用することができないという問題点がある。したがって、数式を筆記する手間を自由に省略することができないという問題点がある。   In the second conventional technique, the calculation result can be used for calculation by another mathematical expression, but even in the second conventional technique, only a part of the mathematical expression already written cannot be used for another calculation. There is a problem. Therefore, there is a problem that the trouble of writing the mathematical formula cannot be omitted freely.

本発明の目的は、すでに筆記した数式の一部のみを他の計算に利用し、数式を筆記する手間を省略することができ、利用者にとって演算にかかる操作の負担を軽減できる計算装置、計算プログラムおよびこれが記録された記録媒体を提供することである。   An object of the present invention is to use only a part of a mathematical formula that has already been written for other calculations, to save the trouble of writing the mathematical formula, and to reduce the burden of the operation for the user. It is to provide a program and a recording medium on which the program is recorded.

本発明は、筆記によって入力を行うための筆記入力手段を有する入力部であって、前記筆記入力手段は、筆記によって外力が付与された1または複数の部位の位置の情報を筆記情報として検出し、
前記筆記入力手段による検出結果を出力する入力部と、
前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を表わす数式筆記情報を、数式情報として認識する数式認識部と、
表示を行う表示面が形成され、前記数式情報を前記表示面に表示する表示部と、
前記筆記情報のうち、前記表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する領域認識部と、
前記筆記情報のうち、前記領域指定情報によって指定される前記表示面上の領域に表示される数式情報に対する操作を表す手書き操作ジェスチャを、操作情報として認識する操作認識部と、
前記数式情報および前記操作情報に基づいて、前記操作が反映された数式を表す操作後数式情報を生成する操作後数式生成部と、
前記操作後数式生成部が操作後数式情報を生成したときに、前記操作後数式情報が表す数式に基づいて演算を行い演算結果を出力する演算部とを含むことを特徴とする計算装置である。
The present invention is an input unit having a writing input unit for performing input by writing, wherein the writing input unit detects information on the position of one or more parts to which an external force is applied by writing as writing information. ,
An input unit for outputting a detection result by the writing input unit;
Of the writing information input by writing using the writing input means, a mathematical expression recognition unit that recognizes mathematical expression writing information representing a mathematical expression as mathematical expression information,
A display surface for displaying, and a display unit for displaying the mathematical formula information on the display surface;
An area recognition unit for recognizing a handwritten figure gesture for designating an area on the display surface as the area designation information among the writing information;
An operation recognizing unit that recognizes, as operation information, a handwriting operation gesture representing an operation on mathematical formula information displayed in the region on the display surface specified by the region specifying information among the writing information;
A post-operation formula generation unit that generates post-operation formula information representing a formula reflecting the operation based on the formula information and the operation information;
And a calculation unit that, when the post-operation formula generation unit generates post-operation formula information, performs a calculation based on a formula represented by the post-operation formula information and outputs a calculation result. .

また本発明は、前記操作情報は、代入、置換、移動および削除のいずれか1つを意味する情報であることを特徴とする。   In the invention, it is preferable that the operation information is information meaning any one of substitution, replacement, movement, and deletion.

また本発明は、前記領域指定情報によって指定される領域に表示される数式情報を記憶する記憶部であって、
前記操作情報が、変数に対する代入を意味する情報である場合に、前記変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する記憶部をさらに含むことを特徴とする。
Further, the present invention is a storage unit for storing mathematical formula information displayed in an area designated by the area designation information,
When the operation information is information meaning assignment to a variable, the information further includes a storage unit that stores the information of the variable and mathematical expression information representing the mathematical expression assigned to the variable in association with each other, To do.

また本発明は、前記表示部は、前記入力部に対する予め定める操作に応じて、前記記憶部に記憶される数式情報の少なくとも一部を表示することを特徴とする。   Further, the present invention is characterized in that the display unit displays at least a part of mathematical formula information stored in the storage unit in response to a predetermined operation on the input unit.

また本発明は、コンピュータを、筆記によって入力を行うための筆記入力手段を有する入力部であって、
前記筆記入力手段は、筆記によって外力が付与された1または複数の部位の位置の情報を筆記情報として検出し、
前記筆記入力手段による検出結果を出力する入力部、
前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を表わす数式筆記情報を、数式情報として認識する数式認識部、
表示を行う表示面が形成され、前記数式情報を前記表示面に表示する表示部、
前記筆記情報のうち、前記表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する領域認識部、
前記筆記情報のうち、前記領域指定情報によって指定される前記表示面上の領域に表示される数式情報に対する操作を表す手書き操作ジェスチャを、操作情報として認識する操作認識部、
前記数式情報および前記操作情報に基づいて、前記操作が反映された数式を表す操作後数式情報を生成する操作後数式生成部、および
前記操作後数式生成部が操作後数式情報を生成したときに、前記操作後数式情報が表す数式に基づいて演算を行い演算結果を出力する演算部として機能させることを特徴とする計算プログラムである。
The present invention is an input unit having a writing input means for inputting a computer by writing,
The writing input means detects, as writing information, information on positions of one or more parts to which an external force is applied by writing,
An input unit for outputting a detection result by the writing input unit;
Of the writing information input by writing using the writing input means, a mathematical expression recognition unit that recognizes mathematical expression writing information representing a mathematical expression as mathematical expression information,
A display surface for displaying is formed, and the display unit displays the mathematical formula information on the display surface.
An area recognition unit for recognizing handwritten graphic gestures for designating an area on the display surface as area designation information among the writing information,
An operation recognition unit that recognizes, as operation information, a handwriting operation gesture representing an operation on mathematical formula information displayed in the region on the display surface specified by the region specifying information among the writing information.
Based on the formula information and the operation information, a post-operation formula generation unit that generates post-operation formula information that represents a formula reflecting the operation, and when the post-operation formula generation unit generates post-operation formula information A calculation program that functions as a calculation unit that performs a calculation based on a formula represented by the post-operation formula information and outputs a calculation result.

また本発明は、前記計算プログラムが、コンピュータに読取り可能に記録されることを特徴とする記録媒体である。   The present invention is also a recording medium in which the calculation program is recorded in a computer-readable manner.

本発明によれば、筆記入力手段は、筆記によって外力が付与された1または複数の部位の位置の情報を筆記情報として検出する。数式認識部は、前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を数式筆記情報を数式情報として認識する。領域認識部は、表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する。操作認識部は、操作を表す手書き操作ジェスチャを、操作情報として認識する。操作後数式生成部は、前記操作が反映された数式を表わす操作後数式情報を生成し、演算部は、操作後数式生成部が操作後数式情報を生成したときに、操作後数式情報が表わす数式に基づいて演算を行い、演算結果を出力する。   According to the present invention, the writing input means detects information on the position of one or more parts to which an external force is applied by writing as writing information. The mathematical expression recognizing unit recognizes the mathematical expression as mathematical expression information among the written information input by writing using the writing input means. The area recognition unit recognizes a handwritten graphic gesture that specifies an area on the display surface as area specifying information. The operation recognition unit recognizes a handwriting operation gesture representing an operation as operation information. The post-operation formula generation unit generates post-operation formula information that represents the formula reflecting the operation, and the calculation unit represents the post-operation formula information when the post-operation formula generation unit generates the post-operation formula information. Calculation is performed based on the mathematical formula, and the calculation result is output.

これによって、利用者は、筆記入力手段を用いて演算の数式を筆記し入力できる。また筆記情報によって操作の対象となる領域を指定し、指定された領域に表示される数式情報に対する操作を筆記によって入力することができる。したがって指定された領域に表示される数式を、指定された領域外に表示される数式と区別して処理することができる。これによって、すでに筆記した数式の一部のみを他の計算に利用することができる。このように数式に対する演算操作を簡単かつ容易にして、入力に要する利用者の手間を省き労力を軽減することができる。   Thereby, the user can write and input the mathematical expression of the calculation using the writing input means. In addition, an area to be operated can be specified by writing information, and an operation for mathematical expression information displayed in the specified area can be input by writing. Therefore, the mathematical expression displayed in the designated area can be processed separately from the mathematical expression displayed outside the designated area. As a result, only a part of the mathematical formula already written can be used for other calculations. In this way, it is possible to simplify and easily perform arithmetic operations on mathematical formulas, thereby saving the labor of the user required for input and reducing labor.

また本発明によれば、操作情報は、代入、移動、置換えおよび削除のいずれか一つを意味する情報である。これによって、利用者は、代入、移動、置換えおよび削除のいずれか1つを意味する操作を行うことができる。したがって、すでに入力した数式に対する変更を行うことができる。これによって、数式を完成した状態で入力しなくても、すでに筆記によって入力した数式に対して操作を行うことによって、数式を完成させることができる。したがって、数式の筆記の手間を節減可能となり、利用者にとっての操作性を向上することができる。   According to the present invention, the operation information is information meaning any one of substitution, movement, replacement, and deletion. As a result, the user can perform an operation meaning any one of substitution, movement, replacement, and deletion. Therefore, it is possible to make a change to the mathematical formula already input. Thus, even if the mathematical formula is not input in a completed state, the mathematical formula can be completed by performing an operation on the mathematical formula that has already been written. Therefore, it is possible to save the trouble of writing the mathematical formula, and the operability for the user can be improved.

また本発明によれば、記憶部は、領域指定情報によって指定される領域に表示される数式情報を記憶し、操作情報が、変数に対する代入を意味する情報である場合には、さらに前記変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する。これによって、利用者は、一度入力された数式を変数に代入する操作を行えば、この操作の後、変数を入力することによって、変数に代入された数式情報を、利用することができるようになる。これによって利用者は、一度入力した数式の再入力を省略することができる。また複雑な数式を変数に代入しておけば、変数を筆記する入力によって複雑な数式に対して入力を簡単化することができる。   According to the invention, the storage unit stores mathematical formula information displayed in an area designated by the area designation information, and when the operation information is information meaning substitution for a variable, Information and mathematical formula information representing the mathematical formula assigned to this variable are stored in association with each other. As a result, if the user performs an operation of assigning a mathematical formula once input to a variable, the mathematical formula information assigned to the variable can be used by inputting the variable after this operation. Become. As a result, the user can omit re-entry of the mathematical expression once entered. Moreover, if a complicated mathematical expression is substituted into a variable, the input to the complicated mathematical expression can be simplified by inputting the variable.

また本発明によれば、表示部は、入力部に対する予め定める操作に応じて、記憶部に記憶される数式情報の少なくとも一部を表示する。これによって、利用者がすでに入力した数式の一部を忘れた場合でも、記憶部に記憶される数式情報を目視確認することができるとともに、計算装置に計算を続行させることができる。   According to the invention, the display unit displays at least a part of the mathematical formula information stored in the storage unit in response to a predetermined operation on the input unit. Thereby, even when the user forgets a part of the mathematical formula already input, the mathematical formula information stored in the storage unit can be visually confirmed, and the calculation can be continued in the calculation device.

また本発明によれば、計算プログラムは、コンピュータを、入力部、数式認識部、表示部、領域認識部、操作認識部、操作後数式生成部、および演算部として機能させる。これによって、コンピュータを、計算装置として機能させることができる。   According to the invention, the calculation program causes the computer to function as an input unit, a formula recognition unit, a display unit, a region recognition unit, an operation recognition unit, a post-operation formula generation unit, and a calculation unit. As a result, the computer can function as a computing device.

また本発明によれば、前記計算プログラムが、コンピュータに読取り可能に、記録される。したがって、計算プログラムを、コンピュータに読取り可能な記録媒体として提供できる。   According to the invention, the calculation program is recorded so as to be readable by a computer. Therefore, the calculation program can be provided as a computer-readable recording medium.

本発明の一実施形態に係る計算装置1の構成を表すブロック図である。It is a block diagram showing the structure of the calculation apparatus 1 which concerns on one Embodiment of this invention. 本発明の一実施形態における表示部の表示画面30の正面図である。It is a front view of the display screen 30 of the display part in one Embodiment of this invention. 本発明の一実施形態において記憶部が管理する数式データファイルFdfの一例を示す図である。It is a figure which shows an example of the numerical formula data file Fdf which a memory | storage part manages in one Embodiment of this invention. 本発明の一実施形態において認識された数式の領域と各文字の位置座標とを説明する図である。It is a figure explaining the area | region of the numerical formula recognized in one Embodiment of this invention, and the position coordinate of each character. 本発明の一実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。It is a figure which shows an example of the handwritten figure gesture Gr and handwriting operation gesture Gop in one Embodiment of this invention. 本発明の一実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。It is a figure which shows an example of the handwritten figure gesture Gr and handwriting operation gesture Gop in one Embodiment of this invention. 本発明の一実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。It is a figure which shows an example of the handwritten figure gesture Gr and handwriting operation gesture Gop in one Embodiment of this invention. 本発明の一実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。It is a figure which shows an example of the handwritten figure gesture Gr and handwriting operation gesture Gop in one Embodiment of this invention. 本発明の一実施形態におけるジェスチャ処理の制御フラグ構成の一例を示す図である。It is a figure which shows an example of the control flag structure of the gesture process in one Embodiment of this invention. 本発明の一実施形態における領域指定処理のフローチャートである。It is a flowchart of the area | region designation | designated process in one Embodiment of this invention. 本発明の一実施形態における代入の処理のフローチャートである。It is a flowchart of the process of substitution in one Embodiment of this invention. 本発明の一実施形態における代入の処理のフローチャートである。It is a flowchart of the process of substitution in one Embodiment of this invention. 本発明の一実施形態における移動の処理のフローチャートである。It is a flowchart of the process of the movement in one Embodiment of this invention. 本発明の一実施形態における移動の処理のフローチャートである。It is a flowchart of the process of the movement in one Embodiment of this invention. 本発明の一実施形態における置換えの処理のフローチャートである。It is a flowchart of the process of replacement in one Embodiment of this invention. 本発明の一実施形態における置換えの処理のフローチャートである。It is a flowchart of the process of replacement in one Embodiment of this invention. 本発明の一実施形態において操作後数式情報Fpが生成される様子を示す図である。It is a figure which shows a mode that the numerical formula information Fp after operation is produced | generated in one Embodiment of this invention. 本発明の一実施形態において操作後数式情報Fpが生成される様子を示す図である。It is a figure which shows a mode that the numerical formula information Fp after operation is produced | generated in one Embodiment of this invention. 本発明の他の実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。It is a figure which shows an example of the handwritten figure gesture Gr and the handwriting operation gesture Gop in other embodiment of this invention. 本発明の他の実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。It is a figure which shows an example of the handwritten figure gesture Gr and the handwriting operation gesture Gop in other embodiment of this invention. 本発明のさらに他の実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。It is a figure which shows an example of the handwritten figure gesture Gr and the handwriting operation gesture Gop in other embodiment of this invention. 本発明のさらに他の実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。It is a figure which shows an example of the handwritten figure gesture Gr and the handwriting operation gesture Gop in other embodiment of this invention.

以下、図面を参照しながら本発明を実施するための形態について説明する。以下に示す実施形態は、本発明に係る技術を具体化するために例示するものであり、本発明の技術的範囲を限定するものではない。本発明に係る技術内容は、特許請求の範囲に記載された技術的範囲内において、種々の変更を加えることが可能である。以下の説明は、計算装置1、計算プログラムおよびこれが記録された記録媒体についての説明をも含む。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. The embodiments described below are illustrated for embodying the technology according to the present invention, and do not limit the technical scope of the present invention. The technical contents according to the present invention can be variously modified within the technical scope described in the claims. The following description also includes descriptions of the calculation apparatus 1, the calculation program, and the recording medium on which the calculation program is recorded.

図1は、本発明の一実施形態である計算装置1の構成を表すブロック図である。本実施形態において計算装置1は、筆記によって入力された数式に基づく計算を行う装置である。本実施形態においては、等号および不等号のいずれか1つを含む数式だけでなく、等号および不等号を含まない1または複数の項のみの式をも、「数式」に含むものとする。したがって数式が、単一の数値のみを指す場合をも含む。   FIG. 1 is a block diagram showing a configuration of a computing device 1 according to an embodiment of the present invention. In the present embodiment, the computing device 1 is a device that performs calculations based on mathematical formulas input by writing. In the present embodiment, not only a mathematical expression including any one of an equal sign and an inequality sign, but also an expression of only one or a plurality of terms not including the equal sign and the inequality sign is included in the “math formula”. Therefore, the case where the mathematical expression indicates only a single numerical value is included.

計算装置1は、入力部12と、数式認識部13と、表示部14と、領域認識部15と、操作認識部16と、操作後数式生成部17と、演算部18とを含んで構成される。入力部12は、筆記によって入力を行うための筆記入力手段120を有する。筆記入力手段120は、筆記によって外力が付与された1または複数の部位の位置の情報を検出する。外力が付与される位置が変化するときには、外力が付与される位置の変化が表す軌跡の情報を、筆記情報として検出する。入力部12は、筆記入力手段120による検出結果を出力する。数式認識部13は、筆記入力手段120を用いて筆記によって入力された筆記情報のうち、数式を表す数式筆記情報Gfを、数式情報として認識する。   The calculation apparatus 1 includes an input unit 12, a mathematical expression recognition unit 13, a display unit 14, a region recognition unit 15, an operation recognition unit 16, a post-operation mathematical expression generation unit 17, and a calculation unit 18. The The input unit 12 includes a writing input unit 120 for inputting by writing. The writing input unit 120 detects information on the position of one or more parts to which an external force is applied by writing. When the position to which the external force is applied changes, information on the locus represented by the change in the position to which the external force is applied is detected as writing information. The input unit 12 outputs a detection result by the writing input unit 120. The mathematical expression recognition unit 13 recognizes mathematical expression writing information Gf representing a mathematical expression as mathematical expression information among the writing information input by writing using the writing input unit 120.

本実施形態においては、数式認識部13は、文字認識手段121とは異なる機能を有し、数式認識部13は数式筆記情報Gfの認識を行い、文字の認識は、筆記入力手段12の文字認識手段121で行われるものとした。ただし他の実施形態においては、数式認識部13は、文字の認識および文字の組合わせによって表される数式の認識、両方を認識を行う構成とすることも可能である。表示部14には、表示を行う表示面が形成され、表示部14は、数式情報を表示面に表示する。表示部14の表示面は、具体的に本実施形態では、後述する表示画面30である。   In the present embodiment, the mathematical expression recognition unit 13 has a function different from that of the character recognition unit 121, the mathematical expression recognition unit 13 recognizes the mathematical formula writing information Gf, and character recognition is performed by the character recognition of the writing input unit 12. It was assumed to be performed by means 121. However, in other embodiments, the mathematical expression recognition unit 13 may be configured to recognize both of character recognition and mathematical expression represented by a combination of characters. A display surface for displaying is formed on the display unit 14, and the display unit 14 displays mathematical formula information on the display surface. Specifically, in the present embodiment, the display surface of the display unit 14 is a display screen 30 described later.

領域認識部15は、筆記情報のうち手書き図形ジェスチャGrを領域指定情報として認識する。手書き図形ジェスチャGrは、表示面上の領域を指定する。操作認識部16は、筆記情報のうち、手書き操作ジェスチャGopを、操作情報として認識する。手書き操作ジェスチャGopは、領域指定情報によって指定される表示面上の領域に表示される数式情報に対する操作を表す。操作後数式生成部17は、数式情報および操作情報に基づいて、操作後数式情報Fpを生成する。操作後数式情報Fpは、操作が反映された数式を表す。演算部18は、操作認識部16が操作情報を認識したときに、操作後数式情報Fpが表す数式に基づいて演算を行い、演算結果を出力する。具体的には演算部18は、操作後数式生成部17が操作後数式を生成したときに、操作後数式情報Fpが表す数式に基づいて演算を行い、演算結果を出力する。   The area recognition unit 15 recognizes the handwritten figure gesture Gr in the writing information as area designation information. The handwritten graphic gesture Gr designates an area on the display surface. The operation recognition unit 16 recognizes the handwriting operation gesture Gop among the writing information as the operation information. The handwriting operation gesture Gop represents an operation on mathematical formula information displayed in an area on the display surface designated by the area designation information. The post-operation formula generation unit 17 generates post-operation formula information Fp based on the formula information and the operation information. The post-operation mathematical formula information Fp represents a mathematical formula reflecting the manipulation. When the operation recognizing unit 16 recognizes the operation information, the calculation unit 18 performs a calculation based on the formula represented by the post-operation formula information Fp, and outputs the calculation result. Specifically, when the post-operation formula generation unit 17 generates the post-operation formula, the calculation unit 18 performs a calculation based on the formula represented by the post-operation formula information Fp, and outputs the calculation result.

「演算を行う」とは、「式の値を算出すること」をも、「文字を含んだまま解を求めること」をも、「簡単な表現形式の数式に変換すること」をも、さらに「数式が表す関数を図形情報として求めること」をも含む。第1実施形態では「演算」について、式の値を算出する場合を例示するけれども、他の実施形態においては、これに限定するものではない。筆記による入力に対して数式認識、領域認識および操作認識が行うことができるならば、その演算内容については、規定しない。   “Calculate” means “to calculate the value of an expression”, “to find a solution with characters included”, “to convert it into a simple expression”, It also includes “obtaining a function represented by a mathematical expression as graphic information”. In the first embodiment, the case of calculating the value of an expression for “calculation” is illustrated, but in other embodiments, the value is not limited to this. If mathematical expression recognition, area recognition, and operation recognition can be performed on a written input, the calculation contents are not specified.

図1に示すように、具体的に計算装置1は、制御部11、入力部12、数式認識部13、表示部14、領域認識部15、操作認識部16、操作後数式生成部17、演算部18、および記憶部19の各部を含んで構成される。計算装置1のうち、制御部11は、中央処理演算装置(Central Processing Unit, 略称「CPU」)を含んで構成される。   As shown in FIG. 1, specifically, the computing device 1 includes a control unit 11, an input unit 12, a mathematical expression recognition unit 13, a display unit 14, a region recognition unit 15, an operation recognition unit 16, a post-operation mathematical expression generation unit 17, an arithmetic operation. The unit 18 and the storage unit 19 are included. In the computing device 1, the control unit 11 includes a central processing unit (abbreviated as “CPU”).

制御部11には、入力部12、数式認識部13、表示部14、領域認識部15、操作認識部16、操作後数式生成部17、演算部18、および記憶部19がバス等によって、接続されている。   An input unit 12, a mathematical expression recognition unit 13, a display unit 14, a region recognition unit 15, an operation recognition unit 16, a post-operation mathematical expression generation unit 17, a calculation unit 18, and a storage unit 19 are connected to the control unit 11 by a bus or the like. Has been.

筆記入力手段120は、透明なシート状部品を含み、透明なシート状部品は、表示部14の表示面に重ねて配置される。またシート状部品は、筆記による押圧に応じて押圧された位置を検出する。表示部14は、押圧された位置に対してシート状部品の厚み方向に重なる表示面の位置に、シート状部品による検出結果に応じた表示を行う。これによって、筆記動作を確認しながら入力を行うことができる。したがって、紙面に対して記入するときと同様の操作性を実現することができる。   The writing input unit 120 includes a transparent sheet-like component, and the transparent sheet-like component is disposed so as to overlap the display surface of the display unit 14. In addition, the sheet-like component detects a pressed position in response to pressing by writing. The display unit 14 performs display according to the detection result by the sheet-like component at the position of the display surface that overlaps the pressed position in the thickness direction of the sheet-like component. Thereby, it is possible to input while confirming the writing operation. Therefore, the same operability as when writing on the paper surface can be realized.

入力部12は、筆記入力手段120と、文字認識手段121とを含んで構成される。筆記入力手段120は、利用者が筆記によって入力を行うための手段である。筆記入力手段120は、利用者インタフェース機能を備え、手書き入力できるタッチパネル、タブレットおよびスタイラスペン等の、既に実用化され公知である手書き入力のための入力手段を含んでいる。本実施形態では、従来の入力手段であるキーは、入力部12に含まれていないものとしている。ただし他の実施形態では、キーを設けて、たとえば[=]キーが押されることによって演算が実施され、結果が表示されるようにすることもでき、よく四則演算に使われる[+]、[−]、[*]および[/]キーで入力可能な構成とすることもできる。   The input unit 12 includes a writing input unit 120 and a character recognition unit 121. The writing input means 120 is a means for the user to input by writing. The handwriting input means 120 has a user interface function and includes input means for handwriting input that has already been put into practical use and known, such as a touch panel, a tablet, and a stylus pen that can input handwriting. In the present embodiment, it is assumed that keys that are conventional input means are not included in the input unit 12. However, in another embodiment, a key may be provided, for example, the calculation may be performed by pressing the [=] key, and the result may be displayed. [+], [ It is also possible to adopt a configuration in which input is possible with the [-], [*] and [/] keys.

筆記入力手段120は、利用者による筆記情報を検出する。文字認識手段121は、筆記入力手段120が出力する時系列の座標データから利用者が筆記した文字および数式の軌跡を検出し、それを文字として認識し、一時記憶する。入力部12は、制御部11の求めに応じて該軌跡に応じた時系列の座標データを出力する。   The writing input unit 120 detects writing information by the user. The character recognizing means 121 detects the trajectory of characters and mathematical expressions written by the user from the time-series coordinate data output from the writing input means 120, recognizes them as characters, and temporarily stores them. The input unit 12 outputs time-series coordinate data corresponding to the trajectory in response to the request of the control unit 11.

数式認識部13は、筆記入力手段120を用いて筆記によって入力された筆記情報のうち、数式を表わす数式筆記情報Gfを、文字認識手段121から得られる文字認識結果である文字と文字間の位置関係の情報とを用いて数式として認識し、数式情報を生成する。ここで、計算装置1は、数式を扱うので、アルファベット等の「文字」の他に、数字、四則演算記号、微分および積分等の「数学記号」等およびsin、log等「文字」から成る関数等、多種多様な「文字」や「記号」を扱う。これらを総称して「文字」という言葉を用いる。   The mathematical expression recognizing unit 13 uses the mathematical expression writing information Gf representing the mathematical expression among the writing information input by writing using the writing input means 120, as a character recognition result obtained from the character recognition means 121. It is recognized as a mathematical expression using the relationship information, and mathematical expression information is generated. Here, since the calculation apparatus 1 handles mathematical expressions, in addition to “characters” such as alphabets, functions including “mathematical symbols” such as numbers, four arithmetic symbols, differentiation and integration, and “characters” such as sin and log. It handles a wide variety of “characters” and “symbols”. These are collectively referred to as “characters”.

表示部14は、数式筆記情報Gfを表示する。数式認識部13が数式筆記情報Gfに基づいて数式情報を認識すると、表示部14は、数式筆記情報Gfの表示を消去した後、数式認識部13が認識した数式情報を活字によって表示する。これによって、筆記によって入力された数式を、活字によって確認することができる。したがって、筆記によって入力した数式に誤記があったり、数式認識部13による手書き数式に対する認識に誤りがあったりしても、確認の上、修正することが可能となる。   The display unit 14 displays the mathematical formula writing information Gf. When the mathematical formula recognition unit 13 recognizes the mathematical formula information based on the mathematical formula writing information Gf, the display unit 14 erases the display of the mathematical formula writing information Gf, and then displays the mathematical formula information recognized by the mathematical formula recognition unit 13 in a type. Thereby, the mathematical formula input by writing can be confirmed by the type. Therefore, even if there is an error in the mathematical expression input by writing or there is an error in recognition of the handwritten mathematical expression by the mathematical expression recognition unit 13, it can be corrected after confirmation.

表示部14は、表示面を形成して、数式情報を表示面に表示する。表示部14で用いられる表示媒体は、現在では小型の液晶等が採用される。表示部14は、液晶式に限定されることはなく、有機エレクトロルミネッセンス(EL)式のものであってもよい。表示部14および筆記入力手段120は、利用者にとって一体となって見える装置である。計算装置1の表示出力は、表示部14の表示媒体上に表示され、利用者が表示面上にスタイラスペン等を用いて数式および後述するジェスチャを書けば、筆記入力手段120によって書かれた情報が読み取られる座標が検出される。   The display unit 14 forms a display surface and displays mathematical formula information on the display surface. Currently, a small liquid crystal or the like is employed as the display medium used in the display unit 14. The display unit 14 is not limited to a liquid crystal type, and may be an organic electroluminescence (EL) type. The display unit 14 and the writing input unit 120 are devices that appear to be integrated with the user. The display output of the computing device 1 is displayed on the display medium of the display unit 14, and information written by the writing input means 120 if the user writes a mathematical expression and a later-described gesture using a stylus pen or the like on the display surface. The coordinates at which are read are detected.

領域認識部15は、利用者によって筆記された手書き図形ジェスチャGrを解析して手書き図形ジェスチャGrとして認識し、手書き図形ジェスチャGrに外接する矩形座標を算出する。   The region recognizing unit 15 analyzes the handwritten graphic gesture Gr written by the user and recognizes it as the handwritten graphic gesture Gr, and calculates rectangular coordinates circumscribing the handwritten graphic gesture Gr.

操作認識部16は、筆記情報のうち、領域指定情報によって指定される表示面上の領域に表示される数式情報に対する操作を表わす手書き操作ジェスチャGopを操作情報として認識する。本実施形態において操作情報は、代入、置換、移動および削除のいずれか1つを意味する情報である。領域指定情報によって指定される表示面上の領域に表示される数式情報を「内部数式情報」といい、領域指定情報によって指定される領域外に表示される数式情報を「外部数式情報」という。「代入」は、変数の中身を、特定の数値または数式に設定することを意味するものとする。共通の変数を含む複数の数式において、1つの式における変数の中身を他の数式に代入することは、数学的な「代入」または「式への代入」に相当するけれども、これについては「関係付け」と称することがある。   The operation recognizing unit 16 recognizes, as operation information, handwriting operation gestures Gop representing operations on mathematical formula information displayed in the area on the display surface specified by the area specifying information in the writing information. In the present embodiment, the operation information is information meaning any one of substitution, replacement, movement, and deletion. Formula information displayed in the area on the display surface specified by the area specification information is referred to as “internal formula information”, and formula information displayed outside the area specified by the area specification information is referred to as “external formula information”. “Substitution” means setting the contents of a variable to a specific numerical value or mathematical expression. Assigning the contents of a variable in one expression to other expressions in multiple expressions that include a common variable is equivalent to mathematical “assignment” or “assignment to an expression”. Sometimes referred to as “attachment”.

操作後数式生成部17は、数式情報および領域指定情報に基づいて、操作が反映された数式を表わす操作後数式情報Fpを生成する。演算部18は、操作認識部16が操作情報を認識したときに、操作後数式情報Fpが表わす数式に基づいて演算を行い、演算結果を出力する。以上の各部ともデータ授受のために一時的にデータを保存するバッファを含んでいる。これを内部バッファと称する。構成ブロック図においては、内部バッファの図示を省略する。   The post-operation formula generation unit 17 generates post-operation formula information Fp representing the formula reflecting the operation based on the formula information and the area designation information. When the operation recognizing unit 16 recognizes the operation information, the calculation unit 18 performs a calculation based on the mathematical expression represented by the post-operation mathematical formula information Fp and outputs the calculation result. Each of the above units includes a buffer for temporarily storing data for data exchange. This is called an internal buffer. In the configuration block diagram, the illustration of the internal buffer is omitted.

また、制御部11は、手書き入力を処理するための制御の手順と後述する制御フラグとの関係を予め定めるテーブルTbとして有している。このテーブルを「機能テーブル」(Tb)と称する。機能テーブルTbの一例は、後述する図7に示す。   The control unit 11 has a table Tb that predetermines a relationship between a control procedure for processing handwritten input and a control flag described later. This table is referred to as a “function table” (Tb). An example of the function table Tb is shown in FIG.

本実施形態において、制御の中で読み書きの記憶として用いられる情報を「ファイル」と呼ぶ。また、ファイルのなかで制御に用いられるオン/オフ情報を「制御フラグ」と呼ぶ。   In the present embodiment, information used as read / write storage in the control is referred to as a “file”. In addition, on / off information used for control in a file is referred to as a “control flag”.

本実施形態において「筆記情報」とは、利用者による筆記によって表示面上に外力が付与された部位の位置の情報およびその位置の変化が表す軌跡の情報をいう。本実施形態において、筆記情報のことを単に「ジェスチャ」と称することもある。筆記情報には、文字によって数式を表す数式筆記情報と、操作する領域を指定する手書き図形ジェスチャと、指定された領域の数式部分を操作するための手書き操作ジェスチャとがある。本実施形態では、指定された領域の数式部分に対する手書き操作ジェスチャの代表例として「代入」、「移動」および「置換え」の3つの手書き操作ジェスチャを用意している。しかし、これに限定することはなく、これらの3つの機能のうち、いずれか2つ以上の機能が組合わされた機能を他の手書き操作ジェスチャとして定義することも可能である。   In the present embodiment, “writing information” refers to information on the position of a part to which an external force is applied on the display surface by writing by the user, and information on a locus represented by the change in the position. In the present embodiment, the written information may be simply referred to as “gesture”. The writing information includes mathematical expression writing information representing a mathematical expression with characters, a handwritten figure gesture for designating an area to be operated, and a handwriting operation gesture for operating a mathematical expression portion of the designated area. In this embodiment, three handwriting operation gestures of “substitution”, “movement”, and “replacement” are prepared as representative examples of the handwriting operation gesture for the mathematical expression portion of the designated area. However, the present invention is not limited to this, and a function in which any two or more of these three functions are combined can be defined as another handwriting operation gesture.

以下の説明では、代入を行わせる手書き操作ジェスチャを「代入ジェスチャ」と称し、移動および置換えを行わせる手書き操作ジェスチャを、それぞれ「移動ジェスチャ」および「置換えジェスチャ」と称する。「ストローク」とは、「1回の連続した動作による筆記情報」のことをいう。また、「領域」とは、「数式を内包する外接矩形SQの内側、または筆記入力手段120によって示される筆記情報内包する外接矩形SQの内側」をいう。さらに「領域指定する」とは、「利用者が表示部の表示面上において操作の対象となる領域を筆記し指定する」ことをいう。   In the following description, the handwriting operation gesture for performing substitution is referred to as “substitution gesture”, and the handwriting operation gesture for performing movement and replacement is referred to as “movement gesture” and “replacement gesture”, respectively. “Stroke” means “written information by one continuous operation”. The “region” means “the inside of the circumscribed rectangle SQ containing the mathematical expression or the inside of the circumscribed rectangle SQ included in the writing information indicated by the writing input unit 120”. Furthermore, “specify the area” means that “the user writes and specifies the area to be operated on the display surface of the display unit”.

図2は、本発明の一実施形態における表示部14の表示画面30の正面図である。表示画面30は、数式認識結果および演算結果表示ならびに数式入力用の表示入力領域31と、筆記情報の入力に係るジェスチャ開始ボタン32と、ジェスチャ終了ボタン33と、数式入力ボタン34とを含んで構成される。以上の各ボタンに対して、予めボタンの機能およびボタンの画面における位置情報を対応付けた情報が制御部11の機能テーブルTbに記憶されているものとする。利用者は、図2で示される画面の上で筆記し、筆記に応じた数式表示および演算結果表示を得る。   FIG. 2 is a front view of the display screen 30 of the display unit 14 according to the embodiment of the present invention. The display screen 30 includes a display input area 31 for displaying mathematical expression recognition results and calculation results and inputting mathematical expressions, a gesture start button 32 for inputting writing information, a gesture end button 33, and a mathematical expression input button 34. Is done. It is assumed that information in which the function of the button and the position information on the button screen are associated with each other is stored in the function table Tb of the control unit 11 in advance. The user writes on the screen shown in FIG. 2 and obtains a mathematical expression display and a calculation result display according to the writing.

以下、図1に基づいて文字認識、数式の認識、演算および結果の表示に関する制御とデータの流れを述べる。利用者は、図2に示される画面上にあるジェスチャ開始ボタン32を押す。入力部12は、押された位置の座標データを検出し、制御部11に送る。制御部11は、送られてきた座標データと機能テーブルTbの位置情報を比較して、ジェスチャ開始ボタン32が押されたと判定する。そして、全制御フラグをOFFとする。制御フラグについては図7に関連した説明箇所で述べる。   Hereinafter, control and data flow relating to character recognition, mathematical expression recognition, calculation, and result display will be described with reference to FIG. The user presses the gesture start button 32 on the screen shown in FIG. The input unit 12 detects the coordinate data of the pressed position and sends it to the control unit 11. The control unit 11 compares the received coordinate data with the position information in the function table Tb, and determines that the gesture start button 32 has been pressed. Then, all control flags are turned OFF. The control flag will be described in the explanation related to FIG.

ジェスチャ開始ボタン32の押釦に引き続き利用者は、数式を筆記するか、領域を指定するための筆記情報か、または領域で指定された数式を操作するための筆記情報を筆記する。これを受けて筆記入力手段120は、筆記された筆記情報の座標を検出し、制御部11に送る。制御部11は、送られてきた座標を内部バッファに記憶し、筆記入力監視用タイマを作動させる。筆記入力監視用タイマは、制御部に内蔵され、時間を計測する。筆記入力監視用タイマによって計測される時間が過ぎて、それまでに他に筆記入力がなければ、制御部11は、それまで得ていた座標データと一緒に筆記情報の種類に対する認識を行う。   Following the push button of the gesture start button 32, the user writes a mathematical expression, writing information for designating an area, or writing information for operating a mathematical expression designated in the area. In response to this, the writing input means 120 detects the coordinates of the written writing information and sends them to the control unit 11. The control unit 11 stores the sent coordinates in an internal buffer, and activates a writing input monitoring timer. The writing input monitoring timer is built in the control unit and measures time. If the time measured by the writing input monitoring timer has passed and there is no other writing input so far, the control unit 11 recognizes the type of writing information together with the coordinate data obtained so far.

制御部11が筆記情報に対する認識を行うときには、座標データを筆記情報認識辞書20に登録されているジェスチャデータと照合し、筆記情報認識を行う。筆記情報認識の結果、制御部11は、指定された領域に位置する数式に対する手書き操作ジェスチャであると判断すると、操作認識部16に筆記情報を送り、操作認識部16に制御フラグのON/OFFを決定させる。筆記情報認識の結果、制御部11が、領域を指定する手書き図形ジェスチャであると判断すると、領域認識部15に筆記情報を送る。入力された筆記情報が、文字および数式の数式筆記情報である場合には、手書き図形ジェスチャGrまたは手書き操作ジェスチャとして認識されないので制御フラグに対しては何もしない。制御部11は、認識の結果、確からしい順に筆記情報の種類を特定し、筆記情報認識結果として得る。制御部11は、得られた筆記情報認識結果の種類に基づいて、   When the control unit 11 recognizes the writing information, the coordinate data is collated with the gesture data registered in the writing information recognition dictionary 20, and the writing information is recognized. As a result of the recognition of the writing information, when the control unit 11 determines that it is a handwriting operation gesture for the mathematical formula located in the designated area, the control unit 11 sends the writing information to the operation recognition unit 16 and turns ON / OFF the control flag to the operation recognition unit 16. Let me decide. If the control unit 11 determines that the handwriting graphic gesture specifies the region as a result of the writing information recognition, the handwriting information is sent to the region recognition unit 15. If the input writing information is character and mathematical expression writing information, it is not recognized as a handwritten graphic gesture Gr or a handwriting operation gesture, so nothing is done to the control flag. As a result of recognition, the control unit 11 specifies the type of writing information in the most probable order and obtains it as a writing information recognition result. Based on the type of the written information recognition result obtained, the control unit 11

制御部11は、筆記情報認識結果が領域を指定する手書き図形ジェスチャGrまたは領域で指定された数式を操作する手書き操作ジェスチャのいずれの筆記情報でもないと判断すると、文字認識手段121に該筆記情報を送り、文字認識を行うことを指示する。   When the control unit 11 determines that the writing information recognition result is not the writing information of the handwritten graphic gesture Gr that designates the area or the handwriting operation gesture that operates the mathematical expression designated in the area, the writing information is notified to the character recognition unit 121. To instruct to perform character recognition.

文字認識手段121は、座標データから文字を認識する文字認識処理を行う。しかし、文字認識処理の結果、文字を認識できなければ制御部11に認識不能であった旨応答を返す。制御部11は、この応答を受け取ると、特に何もしない。   The character recognition unit 121 performs character recognition processing for recognizing characters from coordinate data. However, if the character is not recognized as a result of the character recognition process, a response indicating that the character cannot be recognized is returned to the control unit 11. When receiving this response, the control unit 11 does nothing.

文字認識手段121は、座標データから文字を認識できた場合、認識した文字毎に位置情報を算出する。この位置情報の算出の処理が終われば文字認識手段121は、文字または文字列とそれらの位置情報を組み合わせた文字認識結果を制御部11に送る。制御部11は、これを内部バッファに保存する。   When the character recognition unit 121 can recognize the character from the coordinate data, the character recognition unit 121 calculates position information for each recognized character. When the position information calculation processing is completed, the character recognition unit 121 sends a character recognition result obtained by combining the character or character string and the position information to the control unit 11. The control unit 11 stores this in the internal buffer.

利用者によって数式入力ボタン34が押されると、制御部11は、文字認識手段121から送られてきて内部バッファに保存していた文字認識結果を数式認識部13に送り、数式として認識することを指示する。数式認識部13は、各文字の並び順序および文字間の間隙等を精査し、各文字が組み合わさった数式としての認識を行い、数式認識結果を制御部11に送る。   When the mathematical expression input button 34 is pressed by the user, the control section 11 sends the character recognition result sent from the character recognition means 121 and stored in the internal buffer to the mathematical expression recognition section 13 to recognize it as a mathematical expression. Instruct. The mathematical expression recognition unit 13 examines the arrangement order of the characters and the gap between the characters, recognizes the mathematical expression in which the characters are combined, and sends the mathematical expression recognition result to the control unit 11.

制御部11は、受け取った数式認識結果を演算部18に送り、数式演算を行うことを指示する。演算部18は、数式認識を行った結果を分析した後、演算する優先順を設けてその優先順に演算を行う。演算部18は、演算を終えると演算結果を制御部11に送る。   The control unit 11 sends the received mathematical expression recognition result to the computing unit 18 and instructs to perform mathematical formula calculation. After analyzing the result of the mathematical expression recognition, the calculation unit 18 sets a priority order for calculation and performs the calculation in the priority order. The calculation unit 18 sends the calculation result to the control unit 11 when the calculation is completed.

計算装置1は、記憶部19をさらに含んで構成される。記憶部19は、領域指定情報によって指定される領域に表示される数式情報を記憶する。また記憶部19は、操作情報が変数に対する代入を意味する情報である場合に、変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する。表示部14は、入力部12に対する予め定める操作に応じて、記憶部19に記憶される数式情報の少なくとも一部を表示する。制御部11は、得られている数式認識結果および演算結果を表示することを表示部14に表示させる。また、制御部11は、数式認識が行われる都度、数式データFdを作成し、記憶部19に記憶する。   The calculation device 1 further includes a storage unit 19. The storage unit 19 stores mathematical formula information displayed in an area designated by the area designation information. In addition, when the operation information is information indicating assignment to a variable, the storage unit 19 stores the variable information and mathematical expression information representing the mathematical expression assigned to the variable in association with each other. The display unit 14 displays at least part of the mathematical formula information stored in the storage unit 19 in accordance with a predetermined operation on the input unit 12. The control unit 11 causes the display unit 14 to display the obtained mathematical expression recognition result and calculation result. Further, the control unit 11 creates the formula data Fd and stores it in the storage unit 19 every time the formula recognition is performed.

図3は、本発明の一実施形態において記憶部19が管理する数式データファイルFdfの一例である。「数式データ」(Fd)とは、数式認識部13で認識された数式に関する複数の関連情報を一個にまとめた複合データ(レコード)である。各行が一つの数式データFdである。   FIG. 3 is an example of the mathematical formula data file Fdf managed by the storage unit 19 in the embodiment of the present invention. The “mathematical data” (Fd) is composite data (record) in which a plurality of pieces of related information related to the mathematical formula recognized by the mathematical formula recognition unit 13 are collected. Each row is one mathematical formula data Fd.

数式データFdの情報構成は、列単位に最左列より「数式ID」の情報、「変数」の情報、「数式」の情報、「数式の領域」の情報および「数式を構成する各文字の位置座標」の情報である。「数式ID」には、数式データFdが一意に識別可能となるように設けられる管理番号である数式IDが保存される。数式IDとして自然数が、記憶部19によって数式データFdが生成された順に打たれる。第2列目「変数」には、数式に対して定義された変数が保存される。第3列目「数式」には、数式認識部13によって認識された結果の数式が保存される。第4列「数式の領域」は、数式の占める領域の座標データが保存される。第5列「数式を構成する各文字の位置座標」は、筆記入力手段120によって検出された数式を構成する各文字の位置座標が保存される。   The information structure of the formula data Fd is the information of “Formula ID”, “Variable”, “Formula” information, “Formula area” information and “Character of each character constituting the formula from the leftmost column in column units. Information of “positional coordinates”. In “Formula ID”, a formula ID that is a management number provided so that the formula data Fd can be uniquely identified is stored. Natural numbers are entered as mathematical formula IDs in the order in which the mathematical data Fd is generated by the storage unit 19. The variable defined for the mathematical expression is stored in the second column “Variable”. In the third column “Mathematical Expressions”, mathematical expressions obtained as a result of recognition by the mathematical expression recognition unit 13 are stored. In the fourth column “Formula area”, coordinate data of the area occupied by the formula is stored. The fifth column “positional coordinates of each character constituting the mathematical expression” stores the positional coordinates of each character constituting the mathematical expression detected by the writing input means 120.

第4列目の認識された「数式の領域」とは、以下のようにして定まる4つの座標で囲まれる範囲をいう。図4は、本発明の一実施形態において認識された数式の領域と各文字の位置座標とを説明する図である。表示部14の、たとえば図2で示される画面の左下隅を表示領域の原点とすれば、画面のドット数構成に対応して前記領域の任意の点がX座標およびY座標で表現できる。たとえば筆記された数式「1+2+3」に対し、前記数式を垂直および水平に走査すると数式が存在する領域が求まる。   The recognized “formula area” in the fourth column refers to a range surrounded by four coordinates determined as follows. FIG. 4 is a diagram for explaining an area of a mathematical expression recognized in one embodiment of the present invention and a position coordinate of each character. If, for example, the lower left corner of the screen shown in FIG. 2 of the display unit 14 is the origin of the display area, an arbitrary point in the area can be expressed by the X coordinate and the Y coordinate corresponding to the dot number configuration of the screen. For example, when a written mathematical expression “1 + 2 + 3” is scanned vertically and horizontally, an area where the mathematical expression exists is obtained.

この領域のX座標における最大値および最小値をxmaxおよびxminとし、Y座標における最大値および最小値をymaxおよびyminとすると、X座標およびY座標ならびに最大値および最小値の組合せで4つの座標、P1(xmin,ymin),P2(xmax,ymin),P3(xmin,ymax),P4(xmax,ymax)を設けることができる。これら4つの座標を結ぶ矩形の内側が「数式の領域」である。便宜上P1(xmin,ymin)をPist、またP4(xmax,ymax)をPienと二次元ベクトル表現すると、前記4つの点で構成される領域を[Pist,Pien]と表わすことができる。ここでiは、数式IDに対応する添え字である。 Assuming that the maximum value and minimum value in the X coordinate of this region are x max and x min, and the maximum value and minimum value in the Y coordinate are y max and y min , the combination of the X coordinate and Y coordinate and the maximum value and minimum value is Four coordinates, P1 ( xmin , ymin ), P2 ( xmax , ymin ), P3 ( xmin , ymax ), and P4 ( xmax , ymax ) can be provided. The inside of the rectangle connecting these four coordinates is the “mathematical area”. For convenience P1 (x min, y min) and P ist, also P4 (x max, y max) when the P ien and two-dimensional vector representation, the [P ist, P ien] a region composed of four points and Can be represented. Here, i is a subscript corresponding to the mathematical expression ID.

図3において第5列目の「数式を構成する各文字の位置座標」については以下のように文字認識手段121で文字認識される。たとえば、筆記「1+2+3」を構成する5文字は、図4に示されるように、文字「1」については、文字「1」内包する外接矩形SQの4つの座標p111(x11m,y11m),p112(x11M,y11m),p113(x11m,y11M),p114(x11M,y11M)によって、文字「1」の位置が求められる。ここで「m」は、最小値、「M」は、最大値を表わす。これら4つの位置座標を総称してPC11と表わす。同様にして第2番目の文字「+」に対する4つの位置座標、PC12が求められ、以下同様にしてPC11からPC15まで全5文字の位置座標が求められる。これらの位置座標は、数式データFdの第5列目の「数式を構成する各文字の位置座標」として保存される。 In FIG. 3, the character recognition means 121 recognizes the “positional coordinates of each character constituting the mathematical expression” in the fifth column as follows. For example, as shown in FIG. 4, five characters constituting the writing “1 + 2 + 3” have four coordinates p 111 (x 11m , y 11m ) of the circumscribed rectangle SQ included in the character “1”. , P 112 (x 11M , y 11m ), p 113 (x 11m , y 11M ), p 114 (x 11M , y 11M ), the position of the character “1” is obtained. Here, “m” represents a minimum value and “M” represents a maximum value. These four position coordinates are collectively referred to as PC11. Similarly, four position coordinates, PC12, for the second character “+” are obtained, and thereafter, the position coordinates of all five characters from PC11 to PC15 are obtained in the same manner. These position coordinates are stored as “position coordinates of each character constituting the mathematical expression” in the fifth column of the mathematical formula data Fd.

以下、手書き入力された筆記情報に対してこれを認識し、ジェスチャ処理ルール辞書21に従って筆記情報が意図する機能を実現する処理を、「ジェスチャ処理」という。ジェスチャ処理との関連で用いられる用語を説明する。   Hereinafter, processing for recognizing handwritten input writing information and realizing a function intended by the writing information in accordance with the gesture processing rule dictionary 21 is referred to as “gesture processing”. Terms used in the context of gesture processing will be described.

「新規数式データ」とは、数式データファイルFdfに登録され記憶部19で管理されることを必要とする新たに生成された数式データFdである。新規数式データは、操作後数式生成部17で生成される。操作後数式生成部17は、数式IDとして新規数式データであることを示すために、まず「零」を設定する。「操作基準数式データ」は、代入、移動、または置換えの操作を行うための操作基準数式を含む数式データFdである。操作基準数式は、操作の対象となる数式を含む数式である。「領域指定数式データ」は、1つの操作基準数式に対し手書き図形ジェスチャGrによって指定された領域の範囲内にある部分を数式として含む数式データFdをいう。「修正数式データ」とは、「操作基準数式データ」が操作によって操作基準数式から領域指定された数式部分が除かれた数式データFdをいう。   “New formula data” is newly generated formula data Fd that is registered in the formula data file Fdf and needs to be managed by the storage unit 19. The new mathematical formula data is generated by the post-operation mathematical formula generation unit 17. The post-operation formula generation unit 17 first sets “zero” to indicate that the formula ID is new formula data. The “operation standard formula data” is formula data Fd including an operation standard formula for performing an operation of substitution, movement, or replacement. The operation reference formula is a formula including a formula to be operated. “Area-designated mathematical formula data” refers to mathematical formula data Fd that includes, as a mathematical formula, a portion within the range designated by the handwritten graphic gesture Gr with respect to one operation reference mathematical formula. The “corrected mathematical formula data” refers to mathematical formula data Fd obtained by removing the mathematical formula portion whose region is designated from the operational standard mathematical formula by the operation.

つぎにこれらのジェスチャ処理に関して用いられる領域に関連する用語を定義する。「数式の領域」とは、すでに説明した通り数式を内包する外接矩形SQの内側である。「領域の範囲」とは、手書き図形ジェスチャGrを内包する外接矩形SQによって囲まれる範囲である。「領域基準位置」(Pr)は、外接矩形SQの中心、すなわち両対角線の交点である。 Next, terms related to the region used for the gesture processing are defined. The “mathematical area” is the inside of the circumscribed rectangle SQ that contains the mathematical expression as already described. The “region range” is a range surrounded by a circumscribed rectangle SQ that includes the handwritten figure gesture Gr. The “region reference position” (Pr 0 ) is the center of the circumscribed rectangle SQ, that is, the intersection of both diagonal lines.

次に、ジェスチャ処理について説明する。まず「領域指定」、「代入」、「移動」および「置換え」の各手書き操作ジェスチャについて説明する。   Next, gesture processing will be described. First, each handwriting operation gesture of “area designation”, “substitution”, “movement”, and “replacement” will be described.

図5は、本発明の一実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。本実施形態における領域指定は、書かれてある数式に対して利用者が所望する部分全体を楕円状または矩形状に囲む。   FIG. 5 is a diagram illustrating an example of a handwritten graphic gesture Gr and a handwriting operation gesture Gop according to an embodiment of the present invention. In the area designation in the present embodiment, the entire part desired by the user with respect to a written mathematical expression is enclosed in an ellipse or a rectangle.

図6A〜図6Cは、本発明の一実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。図6Aおよび図6Bでは、指定された領域の数式部分を操作するための3種のジェスチャを表わす1例である。図6A(a)で代入ジェスチャ、図6A(c)で移動ジェスチャおよび図6B(e)で置換えジェスチャがそれぞれ示される。   6A to 6C are diagrams illustrating examples of the handwritten graphic gesture Gr and the handwriting operation gesture Gop according to the embodiment of the present invention. FIG. 6A and FIG. 6B are examples representing three types of gestures for manipulating the mathematical portion of the designated area. The substitution gesture is shown in FIG. 6A (a), the movement gesture is shown in FIG. 6A (c), and the replacement gesture is shown in FIG. 6B (e).

図6A(a)は、数式「y=3x+5x−10」の「3x+5x」の部分に対して代入変数「z」が定義されていることを表わしている。手書き操作ジェスチャのうち、代入ジェスチャは、ジェスチャによる操作が代入であることを示す、ここでは「=」で表現される手書き操作ジェスチャGop部分と、代入変数を定義している、ここでは「Z」で表現される筆記情報Gfの部分とで表わされる。 FIG. 6A (a) shows that the substitution variable “z” is defined for the part “3x 2 + 5x” of the mathematical formula “y = 3x 2 + 5x−10”. Of the handwriting operation gestures, the substitution gesture indicates that the operation by the gesture is substitution. Here, a handwriting operation gesture Gop portion expressed by “=” and an substitution variable are defined. Here, “Z” is defined. It is expressed by the portion of the writing information Gf expressed by

図6A(c)は、数式「y=3x+5x−10」の「3x+5x」の部分が、他の数式「÷5」の前に移動されることを表わしている。手書き操作ジェスチャGopのうち、移動ジェスチャは、当該ジェスチャが領域指定された範囲を引き出す、ここでは円弧上に表現される部分(第1ストロークK1)と、移動であることを示す、ここでは第1ストロークK1の一端を囲む三角形状に表現される部分(第2ストロークK2)とからなる。 FIG. 6A (c) shows that the part of “3x 2 + 5x” in the formula “y = 3x 2 + 5x−10” is moved before the other formula “÷ 5”. Among the handwriting operation gestures Gop, the movement gesture is a part (first stroke K1) represented on the arc here, which indicates that the gesture draws a range in which the area is designated, and indicates a movement. It consists of a portion (second stroke K2) expressed in a triangular shape surrounding one end of the stroke K1.

図6B(e)は、数式「y=3x+5x−10」の「3x+5x」の部分が、他の数式「z=9x÷5」の「9x」と置換えられることを表わしている。置換えを表わす手書き操作ジェスチャGopの終点には手書き図形ジェスチャGr2が存在する。 FIG. 6B (e) shows that the part of “3x 2 + 5x” in the formula “y = 3x 2 + 5x−10” is replaced with “9x 3 ” in the other formula “z = 9x 3 ÷ 5”. Yes. A handwritten figure gesture Gr2 exists at the end point of the handwriting operation gesture Gop representing the replacement.

以下に利用者が手書き図形ジェスチャGrおよび手書き操作ジェスチャGopを入力したときの処理の流れを説明する。基本的な流れについては、文字入力と数式入力とについて述べた説明と同様である。ここでは利用者によってジェスチャ開始ボタン32が押され、全制御フラグをOFFとする処理がなされているものとする。   The flow of processing when the user inputs the handwritten graphic gesture Gr and the handwriting operation gesture Gop will be described below. The basic flow is the same as described for character input and mathematical expression input. Here, it is assumed that the user has pressed the gesture start button 32 and has performed processing for turning off all control flags.

利用者が数式を筆記または手書き図形ジェスチャもしくは手書き操作ジェスチャを筆記すると、すでに述べたとおり、筆記入力手段120は、筆記情報に対する座標検出を行い、制御部11は、筆記入力監視用タイマを作動させる。筆記入力監視用タイマによる計時時間内に他に筆記入力がなければ、制御部11は、それまで得ていた座標データに基づいて、筆記情報認識を行う。   When the user writes a mathematical formula or writes a handwritten figure gesture or handwriting operation gesture, as described above, the writing input means 120 detects coordinates of the writing information, and the control unit 11 activates a timer for monitoring the writing input. . If there is no other writing input within the time measured by the writing input monitoring timer, the control unit 11 performs writing information recognition based on the coordinate data obtained so far.

制御部11は、筆記情報を認識して手書き図形ジェスチャGrまたは手書き操作ジェスチャであると判断すると、操作認識部16に筆記情報を送り、操作認識部16に制御フラグのON/OFFを決定させる。制御部11は、認識の結果、確からしい順にジェスチャの種類を特定し、筆記情報認識結果として制御部11に送る。   When the control unit 11 recognizes the writing information and determines that it is a handwritten graphic gesture Gr or a handwriting operation gesture, the control unit 11 sends the writing information to the operation recognition unit 16 and causes the operation recognition unit 16 to determine ON / OFF of the control flag. As a result of recognition, the control unit 11 identifies the types of gestures in the most probable order, and sends them to the control unit 11 as a written information recognition result.

制御部11は、送られてきた筆記情報認識結果を分析する。筆記情報認識結果が手書き図形ジェスチャGrまたは手書き操作ジェスチャGopのいずれのジェスチャでもなければ文字認識処理を指示する。   The control unit 11 analyzes the written information recognition result that has been sent. If the handwritten information recognition result is neither a handwritten graphic gesture Gr nor a handwriting operation gesture Gop, a character recognition process is instructed.

制御部11は、手書き図形ジェスチャGrであると判断した場合、領域認識部15に領域認識を行うように指示する。領域認識部15は、たとえば、図5(a)に示される手書き図形ジェスチャGrに対して、図5(b)に示されるように表示面を水平および、または垂直に走査して手書き図形ジェスチャGrのX軸方向およびY軸方向の最大値と最小値を求め、この組合せで決まる4点(Pr,Pr,Pr,Pr)からなる外接矩形SQの座標を求め、領域の範囲を算出する。さらに領域基準位置Prを算出する。以上の処理を終了すると領域認識部15は、制御部11に領域認識結果を送る。制御部11は、領域認識結果を受け取って内部バッファに保存する。 When the control unit 11 determines that the handwritten figure gesture Gr, the control unit 11 instructs the region recognition unit 15 to perform region recognition. For example, the region recognizing unit 15 scans the display surface horizontally and / or vertically as shown in FIG. 5B with respect to the handwritten figure gesture Gr shown in FIG. The maximum value and the minimum value in the X-axis direction and the Y-axis direction are obtained, the coordinates of the circumscribed rectangle SQ consisting of four points (Pr 1 , Pr 2 , Pr 3 , Pr 4 ) determined by this combination are obtained, and the range of the region is determined calculate. Further calculates the area the reference position Pr 0. When the above processing ends, the region recognition unit 15 sends a region recognition result to the control unit 11. The control unit 11 receives the region recognition result and stores it in the internal buffer.

利用者は、ジェスチャ入力を完了するとジェスチャ終了ボタン33を押す。入力部12は、押された位置の座標データを検出し、制御部11に送る。制御部11は、送られてきた座標データと機能テーブルTbの位置情報を比較して、ジェスチャ終了ボタン33が押されたと判断し、操作後数式生成部17にジェスチャ処理を実行することを指示する。   When the user completes the gesture input, the user presses the gesture end button 33. The input unit 12 detects the coordinate data of the pressed position and sends it to the control unit 11. The control unit 11 compares the received coordinate data with the position information in the function table Tb, determines that the gesture end button 33 has been pressed, and instructs the post-operation formula generation unit 17 to execute the gesture processing. .

操作後数式生成部17は、制御フラグがONになっているジェスチャに対して、ジェスチャ処理ルール辞書21に記述されている処理に必要な情報がジェスチャ情報にあるか否かを判定し、情報がそろっていればジェスチャ処理を実行する。情報がそろっていないと判定するとジェスチャ処理を実行せずに終了する。   The post-operation formula generation unit 17 determines whether or not the gesture information includes information necessary for processing described in the gesture processing rule dictionary 21 for the gesture whose control flag is ON. If they are present, the gesture processing is executed. If it is determined that the information is not complete, the process ends without executing the gesture process.

図7は、本発明の一実施形態におけるジェスチャ処理の制御フラグ構成の一例を示す図である。制御フラグは、操作認識部16によってON/OFFが決定され、ジェスチャの対応する処理が終了するときに制御部11によってOFFとされ、リセットされる。制御フラグはRF、SF、MF、CFおよびVFの5種類設けられる。   FIG. 7 is a diagram illustrating an example of a control flag configuration for gesture processing according to an embodiment of the present invention. The control flag is turned ON / OFF by the operation recognizing unit 16 and turned OFF by the control unit 11 when the process corresponding to the gesture ends, and is reset. There are five types of control flags, RF, SF, MF, CF and VF.

RFフラグは、手書き図形ジェスチャGrに関連する制御フラグであり、SFフラグは、代入ジェスチャであることを示す制御フラグである。またMFフラグは、移動ジェスチャであることを示す制御フラグであり、CFフラグは、置換えジェスチャであることを示す制御フラグである。さらにVFフラグは、変数名ジェスチャに関連する制御フラグである。以下、各制御フラグを省略して単に「RF」,「SF」,「MF」,「CF」または「VF」と略する。   The RF flag is a control flag related to the handwritten figure gesture Gr, and the SF flag is a control flag indicating that it is an assignment gesture. The MF flag is a control flag indicating a movement gesture, and the CF flag is a control flag indicating a replacement gesture. Furthermore, the VF flag is a control flag related to the variable name gesture. Hereinafter, each control flag is omitted and simply abbreviated as “RF”, “SF”, “MF”, “CF”, or “VF”.

手書き図形ジェスチャGrによる領域指定の場合は、RFのみONとなる。代入の場合は、操作対象数式に対する領域指定があって代入および変数に対する筆記がさらにあるのでRF,SF,VFがONとなる。移動の場合、領域指定の筆記があって移動の筆記がさらにあるのでRFおよびMFがONになる。また置換えジェスチャの場合、領域指定の筆記があって置換えの筆記がさらにあるのでRFおよびCFがONとなる。   In the case of region designation by the handwritten graphic gesture Gr, only RF is turned on. In the case of substitution, since there is an area designation for the operation target mathematical formula and there is further writing for substitution and variables, RF, SF, and VF are turned ON. In the case of movement, since there is a writing for specifying the area and there is further writing for movement, RF and MF are turned ON. In the case of the replacement gesture, since there is a region designation writing and there is a replacement writing, RF and CF are turned ON.

以下、手書き図形ジェスチャGrによって指定された領域の数式部分を抽出する処理について説明する。手書き図形ジェスチャGrに対し外接矩形SQで示される領域範囲および領域基準位置Prの算出が行われる必要がある。これについては、手書き図形ジェスチャGrが筆記された都度行われていて、既に説明済である。ここでは「ジェスチャ終了」入力を受けてからの処理について述べる。すなわち、操作基準数式を特定し、操作基準数式中で領域指定によって指定される数式部分の抽出する処理について述べる。この処理は、指定された領域の数式部分を操作するジェスチャ、すなわち代入、移動、および置換えの各ジェスチャに共通する処理である。 Hereinafter, the process of extracting the mathematical expression portion of the region designated by the handwritten graphic gesture Gr will be described. The area range indicated by the circumscribed rectangle SQ and the area reference position Pr 0 need to be calculated for the handwritten figure gesture Gr. This is performed every time the handwritten graphic gesture Gr is written, and has already been explained. Here, the processing after receiving the “gesture end” input will be described. That is, processing for specifying an operation reference mathematical expression and extracting a mathematical expression portion designated by area designation in the operation reference mathematical expression will be described. This process is a process common to gestures for manipulating a mathematical expression portion of a designated area, that is, each of the gestures of substitution, movement, and replacement.

図8は、本発明の一実施形態における領域指定処理のフローチャートである。処理r1で、RFフラグがONか、確認する。RFフラグがOFFであれば別の処理がなされるが、ここではその説明を省略する。処理r2で、操作後数式生成部17は、領域基準位置Prのデータを制御部11に送り、領域基準位置Prに対応する操作基準数式データを入手することを要求する。 FIG. 8 is a flowchart of the area designation process in one embodiment of the present invention. In process r1, it is confirmed whether the RF flag is ON. If the RF flag is OFF, another process is performed, but the description thereof is omitted here. In processing r2, the operation after the equation generating unit 17 sends the data region the reference position Pr 0 to the control unit 11 to request to obtain the operation reference formula data corresponding to the area the reference position Pr 0.

処理r3で、制御部11は、記憶部19の数式データファイルFdfに記憶されている数式データFdを逐次引き出して、該数式データFdに含まれている数式の領域のデータと、送られてきた領域基準位置Prの座標データとを照合し、領域基準位置Pr座標を、数式の領域の中に含む数式データFdを見つけ出し、該数式データFdを操作後数式生成部17に送る。 In the process r3, the control unit 11 sequentially extracts the formula data Fd stored in the formula data file Fdf of the storage unit 19, and the data of the formula area included in the formula data Fd is sent. The coordinate data of the area reference position Pr 0 is collated, the mathematical expression data Fd including the area reference position Pr 0 coordinates in the area of the mathematical expression is found, and the mathematical expression data Fd is sent to the mathematical expression generator 17 after the operation.

処理r4で、操作後数式生成部17は、手書き図形ジェスチャGrの領域基準位置Prおよび送られてきた該数式データFdに含まれる数式を構成する各文字の位置座標を照合し、手書き図形ジェスチャGrによって定まる領域の範囲に含まれる文字のみ抽出する。処理r5で、その文字が表わす範囲の数式の情報を生成し、領域指定数式データとして、内部バッファに記憶する。 In process r4, after operation equation generation unit 17 collates the position coordinates of each character constituting a formula contained in the area the reference position Pr 0 and sent to have said numerical expression data Fd of hand-drawn figure gesture Gr, hand-drawn figure gesture Only characters included in the range of the area determined by Gr are extracted. In process r5, information on the mathematical expression in the range represented by the character is generated and stored in the internal buffer as area designation mathematical data.

以上の処理r1〜r5を、例を用いて説明する。例えば、図5(a)では、数式y=3x+5x−10があって、その上に「3x+5x」の部分が手書き図形ジェスチャGrで領域指定されている。制御部11は、指定された領域基準位置Prの座標データを基に、数式y=3x+5x−10を含む数式データFdを抽出する。操作後数式生成部17は、文字の中心座標が文字の位置座標であるとした場合、手書き図形ジェスチャの外接矩形SQの座標と各文字の中心座標を比較して、「3」,「x」,「」,「+」,「5」,「x」がそれぞれ手書き図形ジェスチャGrに含まれる文字と判定する。そして、その6文字が表わす範囲「3x+5x」を数式として含む数式データFdを生成し、領域指定数式データとして内部バッファに記憶する。 The above processes r1 to r5 will be described using an example. For example, in FIG. 5A, there is a mathematical expression y = 3x 2 + 5x-10, and a region “3x 2 + 5x” is designated by a handwritten graphic gesture Gr. The control unit 11 extracts the formula data Fd including the formula y = 3x 2 + 5x−10 based on the coordinate data of the designated region reference position Pr 0 . The post-operation mathematical expression generation unit 17 compares the coordinates of the circumscribed rectangle SQ of the handwritten figure gesture with the center coordinates of each character, assuming that the center coordinate of the character is the position coordinate of the character, and “3”, “x”. , “ 2 ”, “+”, “5”, and “x” are determined as characters included in the handwritten graphic gesture Gr. Then, formula data Fd including the range “3x 2 + 5x” represented by the six characters as a formula is generated, and stored in the internal buffer as region designation formula data.

以下、指定された領域の数式部分を操作するジェスチャ処理について述べる。代入ジェスチャの場合、指定された領域の範囲および領域基準位置Prを検出すること、代入基準位置Psを求めること、および代入変数に関する新規数式データを作成することが主要な処理である。代入基準位置とは、代入のための手書き操作ジェスチャGopを内包する外接矩形SQの中心の座標である。 Hereinafter, gesture processing for manipulating the mathematical expression portion of the designated area will be described. In the case of the substitution gesture, the main processes are to detect the range of the designated region and the region reference position Pr 0 , to obtain the substitution reference position Ps 0 , and to create new mathematical formula data regarding the substitution variable. The substitution reference position is the coordinates of the center of the circumscribed rectangle SQ that includes the handwriting operation gesture Gop for substitution.

代入ジェスチャの1例は、図6A(a)で示される。数式「y=3x+5x−10」における「3x+5x」を領域指定する手書き図形ジェスチャGrと代入の処理を指示する手書き操作ジェスチャGopおよび数式「Z」を表わす数式筆記情報Gfが示される。 An example of an assignment gesture is shown in FIG. 6A (a). A handwritten figure gesture Gr for designating a region of “3x 2 + 5x” in the formula “y = 3x 2 + 5x−10”, a handwriting operation gesture Gop for instructing a substitution process, and formula writing information Gf representing the formula “Z” are shown.

図6A(b)は、図6A(a)で示される各ジェスチャおよび情報に対するジェスチャ認識処理および代入処理のために必要となる領域が内包されて外接する矩形、位置情報および距離等を示す図である。第1外接矩形SQ1は、操作基準数式が内包されて外接する矩形、第2外接矩形SQ2は、代入操作のために指定された領域に外接する矩形、第3外接矩形SQ3は、代入に対する手書き操作ジェスチャGopが内包されて外接する矩形、第4外接矩形SQ4は、代入変数を内包する領域とそれぞれ表わされる。Prは、領域基準位置、Psは、代入基準位置、Pfは、代入変数を含める領域の中心位置であり、さらに前記Prと前記Psとの間の距離がRSlen、また前記Psと前記Pfとの間の距離がSVlenで示される。 FIG. 6A (b) is a diagram showing rectangles, position information, distances, and the like that enclose and enclose areas necessary for the gesture recognition process and substitution process for each gesture and information shown in FIG. 6A (a). is there. The first circumscribed rectangle SQ1 is a rectangle circumscribing the operation reference formula, the second circumscribed rectangle SQ2 is a rectangle circumscribing the area designated for the substitution operation, and the third circumscribed rectangle SQ3 is a handwriting operation for substitution. The rectangle circumscribing the gesture Gop and the fourth circumscribing rectangle SQ4 are each represented as an area including the substitution variable. Pr 0 is the region reference position, Ps 0 is the substitution reference position, Pf 0 is the center position of the region including the substitution variable, and the distance between Pr 0 and Ps 0 is RSlen, and Ps 0 and the distance between the Pf 0 is indicated by SVlen.

図9Aおよび図9Bは、本発明の一実施形態における代入の処理のフローチャートである。処理s1において、操作後数式生成部17は、SFがONであるか確認する。SFがONでなければここでの説明を省略する。SFがONであれば、処理s2に移行し、操作後数式生成部17は、ジェスチャ処理ルール辞書21から、代入ジェスチャのルールを読み込む。次に処理s3に移行し、RFがONになっているか判定する。   FIG. 9A and FIG. 9B are flowcharts of substitution processing in one embodiment of the present invention. In process s1, the post-operation mathematical expression generation unit 17 checks whether SF is ON. If SF is not ON, the description here is omitted. If SF is ON, the process proceeds to process s 2, and the post-operation formula generation unit 17 reads the rule for the substitution gesture from the gesture process rule dictionary 21. Next, the process proceeds to process s3, and it is determined whether RF is ON.

RFがONでなければ、処理s4に移行し、操作後数式生成部17は、制御部11に数式に変更が無くかつ処理が終了したことを制御部11に通知する。処理s5移行し、制御部11は、数式に変更が無いことを知ると一連の処理を終了する。   If RF is not ON, the process proceeds to step s4, and the post-operation formula generation unit 17 notifies the control unit 11 that there is no change in the formula and the processing is completed. The process proceeds to step s5, and when the control unit 11 knows that there is no change in the mathematical formula, the series of processing ends.

RFがONであれば、処理s6に移行し、操作後数式生成部17は、図8で説明した領域指定数式データを抽出する。   If RF is ON, the process proceeds to step s6, and the post-operation mathematical expression generation unit 17 extracts the area designation mathematical formula data described with reference to FIG.

以下、処理s7からs19までが領域基準位置Prの検出に引き続く代入の処理に関する記述である。図6A(b)を参照しながら説明する。図6A(b)で示される操作基準数式を含む領域に外接する矩形を第1外接矩形SQ1、手書き図形ジェスチャGrを内包する領域に外接する矩形を第2外接矩形SQ2、代入ストロークを内包する領域に外接する矩形を第3外接矩形SQ3、および代入変数を内包する領域に外接する矩形を第4外接矩形SQ4とする。 Hereinafter, the processing s7 to s19 is a description relating to the processing of subsequent assignment in the detection area the reference position Pr 0. This will be described with reference to FIG. 6A (b). A rectangle circumscribing the region including the operation reference mathematical formula shown in FIG. 6A (b) is a first circumscribed rectangle SQ1, a rectangle circumscribing a region enclosing the handwritten figure gesture Gr is a second circumscribing rectangle SQ2, and a region enclosing the substitution stroke A circumscribed rectangle is defined as a third circumscribed rectangle SQ3, and a rectangle circumscribed by an area containing the substitution variable is defined as a fourth circumscribed rectangle SQ4.

処理s7において、操作後数式生成部17は、代入対象の検出のため、本実施形態では図6A(a)において「=」で示される代入ジェスチャに対応するストロークの座標データを内部バッファから読み込む。次に、処理s8に移行し、ストロークの座標データを用いて第3外接矩形SQ3の中心座標である代入基準位置Psを求め、内部バッファに記憶する。 In the process s7, the post-operation mathematical expression generation unit 17 reads the coordinate data of the stroke corresponding to the substitution gesture indicated by “=” in FIG. 6A (a) from the internal buffer in this embodiment in order to detect the substitution target. Then, the process proceeds to processing s8, determine the assignment reference position Ps 0 3 is the center coordinate of the circumscribed rectangle SQ3 using the coordinate data of the stroke, and stores in the internal buffer.

処理s9において、操作後数式生成部17は、領域基準位置Prと代入基準位置Psとの距離(RSlen)を算出する。次に処理s10に移行し、前記RSlenと手書き図形ジェスチャGrおよび代入に対する手書き操作ジェスチャGop間の距離に対する閾値であるRSlenとを比較する。RSlenは、ジェスチャ処理ルール辞書21に格納されている定数の一つである。操作後数式生成部17は、比較の結果、次の判断および処理を行う。 In the process s9, the operation after the equation generating unit 17 calculates the distance between the region reference position Pr 0 and substituting the reference position Ps 0 (RSlen). Then it proceeds to process s10, comparing the RSlen 0 is a threshold for the distance between the handwriting operation gesture Gop for hand-drawn figure gesture Gr and substituted with the RSlen. RSlen 0 is one of constants stored in the gesture processing rule dictionary 21. The post-operation formula generation unit 17 performs the following determination and processing as a result of the comparison.

RSlen>RSlenである場合は、処理s4に移行し、代入する数式がないと判断し、制御部11に処理の終了を通知する。制御部11は、処理s5において、数式に変更が無いことを知ると一連の処理を終了する。 When RSlen> RSlen 0 , the process proceeds to process s4, determines that there is no mathematical expression to be substituted, and notifies the control unit 11 of the end of the process. When the control unit 11 knows that there is no change in the mathematical expression in the process s5, the series of processes ends.

一方、RSlen≦RSlenである場合は、処理s11に移行し、代入する数式が存在すると判断し、制御部11に代入する数式があることを通知する。操作後数式生成部17は、処理s12において、引き続きVFがONか、またはOFFかを判定する。 On the other hand, if RSlen ≦ RSlen 0 , the process proceeds to step s11, where it is determined that there is a formula to be substituted, and the control unit 11 is notified that there is a formula to be substituted. The post-operation formula generation unit 17 continues to determine whether the VF is ON or OFF in the process s12.

VFがOFFの場合、操作後数式生成部17は、処理s4において、操作後数式生成部17に数式の変更が無いことおよび処理が終了したことを通知する。処理の終了通知を得て、処理s5において、制御部11は、一連の処理を終了する。   When VF is OFF, the post-operation mathematical expression generation unit 17 notifies the post-operation mathematical expression generation unit 17 that there is no change in the mathematical expression and the process is completed in the process s4. Upon receiving the process end notification, in process s5, the control unit 11 ends the series of processes.

VFがONの場合、操作後数式生成部17は、処理s13において、変数名情報を制御部11に要求する。制御部11は、処理s14において、記憶部19に記憶している数式データFdから変数名が定義され記憶されているものを抽出し、各変数名を含む領域に外接する第4外接矩形SQ4の中心座標として定まる変数名の中心位置座標Pfを算出する。さらに、代入基準位置の座標Psと変数名の中心位置座標Pfとの間の距離(SVlen)を算出する。次に制御部11は、処理s15において、前記距離(SVlen)の値が一番小さくなる変数名情報を代入基準位置に最近接する変数として、その変数名情報を抽出する。以上の処理を行うと、制御部11は、処理s16において、操作後数式生成部17に変数名情報およびSVlenを送る。 When VF is ON, the post-operation formula generation unit 17 requests the variable name information from the control unit 11 in process s13. In step s14, the control unit 11 extracts the variable name defined and stored from the mathematical formula data Fd stored in the storage unit 19, and the fourth circumscribed rectangle SQ4 circumscribing the area including each variable name is extracted. The center position coordinate Pf 0 of the variable name determined as the center coordinate is calculated. Further, a distance (SVlen) between the coordinates Ps 0 of the substitution reference position and the center position coordinates Pf 0 of the variable name is calculated. Next, in step s15, the control unit 11 extracts the variable name information as the variable closest to the substitution reference position, with the variable name information having the smallest distance (SVlen) value. If the above process is performed, the control part 11 will send variable name information and SVlen to the numerical formula production | generation part 17 after operation in process s16.

以下、処理s17から処理s24までが代入に関する新規数式データ作成に関する処理である。操作後数式生成部17は、処理s17において、送られてきたSVlenのデータと代入ジェスチャおよび変数名間距離の閾値であるSVlenとを比較する。SVlenは、ジェスチャルール辞書21に格納されている定数の一つである。 Hereinafter, processing s17 to s24 is processing relating to creation of new mathematical formula data relating to substitution. In operation s17, the post-operation formula generation unit 17 compares the transmitted SVlen data with SVlen 0 , which is a threshold for the substitution gesture and the distance between variable names. SVlen 0 is one of constants stored in the gesture rule dictionary 21.

SVlen>SVlenであれば、操作後数式生成部17は、処理s4において、対応する変数名が無いと判断し、制御部11に処理の終了を通知する。処理の終了通知を得て、制御部11は、処理s5において一連の処理を終了する。 If SVlen> SVlen 0 , the post-operation formula generation unit 17 determines that there is no corresponding variable name in the process s4, and notifies the control unit 11 of the end of the process. Upon receiving the process end notification, the control unit 11 ends the series of processes in process s5.

SVlen≦SVlenであれば、操作後数式生成部17は、対応する変数名が存在すると判断し、処理s18において、求められた変数名と文字「=」(イコール)と領域指定数式データを組み合わせて新規数式データを作成する。そして、処理s19において、新規数式データおよび代入に関するジェスチャ処理が終了したことを制御部11に送る。 If SVlen ≦ SVlen 0 , the post-operation formula generation unit 17 determines that the corresponding variable name exists, and combines the obtained variable name, the character “=” (equal), and the area specification formula data in process s18. To create new formula data. Then, in process s19, the fact that the gesture process relating to the new mathematical formula data and substitution has been completed is sent to the control unit 11.

操作後数式生成部17が新規数式データを生成したとき、数式IDはゼロに設定されているので、制御部11は、処理s20において新規数式データに他の数式データFdと重複しない数式IDを割り当て、記憶部19に登録する。制御部11は、以上の処理を終えれば処理s5において一連の処理を終了する。   When the post-operation formula generation unit 17 generates new formula data, since the formula ID is set to zero, the control unit 11 assigns a formula ID that does not overlap with the other formula data Fd to the new formula data in step s20. And registering in the storage unit 19. When the above process is completed, the control unit 11 ends the series of processes in process s5.

次に移動ジェスチャに対する処理について述べる。最初に移動ジェスチャに関して用いる用語を以下に定義する。「移動基準位置」とは、「第2ストロークK2を内包する外接矩形の中心の座標」のことをいう。「移動先数式データ」とは、「移動基準位置に最近接する数式の情報」である。   Next, processing for a movement gesture will be described. The terms used for the movement gesture are defined below. The “movement reference position” refers to “the coordinates of the center of a circumscribed rectangle that includes the second stroke K2”. “Movement formula data” is “information of a formula closest to the movement reference position”.

移動ジェスチャの1例は、図6A(c)で示される。数式「y=3x+5x−10」における「3x+5x」を領域指定する手書き図形ジェスチャGrと移動の処理を指示する手書き操作ジェスチャGopが示されている。図6A(c)において符号Fが打たれている数式情報「÷5」は、図では前記2つのジェスチャが与えられる以前から存在している数式である。 An example of a movement gesture is shown in FIG. 6A (c). A handwritten figure gesture Gr for designating an area of “3x 2 + 5x” in the mathematical expression “y = 3x 2 + 5x−10” and a handwriting operation gesture Gop for instructing movement processing are shown. In FIG. 6A (c), the mathematical formula information “÷ 5” with the symbol F is a mathematical formula that exists before the two gestures are given in the figure.

図6B(d)は、図6A(c)で示される各ジェスチャに対するジェスチャ認識処理および移動処理のために必要となる領域が内包されて外接する矩形、位置情報および距離等を示す図である。第1外接矩形SQ1は、操作基準数式を含む領域に外接する矩形、第2外接矩形SQ2は、移動操作のために指定された領域に外接する矩形、第3外接矩形SQ3は、移動のための手書き操作ジェスチャGopの第1ストロークK1が内包されて外接する矩形、第4外接矩形SQ4は、前記ジェスチャの第2ストロークK2が内包されて外接する矩形、さらに第5外接矩形SQ5は、移動先の最近辺に存在する数式を内包する領域が内包されて外接する矩形とそれぞれ表わされる。Prは、領域基準位置、Pmは、移動基準位置、Pfは、移動先の数式の領域の中心位置であり、さらに前記Pmと前記Pfとの間の距離がMFlenで示される。 FIG. 6B (d) is a diagram showing rectangles, position information, distances, and the like that enclose areas that are necessary for the gesture recognition process and the movement process for each gesture shown in FIG. 6A (c). The first circumscribed rectangle SQ1 is a rectangle circumscribing the area including the operation reference mathematical formula, the second circumscribed rectangle SQ2 is a rectangle circumscribing the area designated for the moving operation, and the third circumscribed rectangle SQ3 is an area for moving. A rectangle circumscribing the first stroke K1 of the handwriting operation gesture Gop, a fourth circumscribed rectangle SQ4 is a rectangle circumscribing the second stroke K2 of the gesture, and a fifth circumscribed rectangle SQ5 is a destination A region including a mathematical expression existing in the nearest side is represented as a rectangle that is enclosed and circumscribed. Pr 0 is the area reference position, Pm 0 is the movement reference position, Pf 0 is the center position of the area of the movement destination mathematical expression, and the distance between the Pm 0 and the Pf 0 is indicated by MFlen. .

移動ジェスチャの場合、ジェスチャ処理ルール辞書21は、RFおよびMFをONの状態で保持し、さらに移動先の情報として第2ストロークK2の外接矩形SQの座標を格納している。   In the case of a movement gesture, the gesture processing rule dictionary 21 holds RF and MF in an ON state, and further stores the coordinates of the circumscribed rectangle SQ of the second stroke K2 as movement destination information.

図10Aおよび図10Bは、本発明の一実施形態における移動の処理のフローチャートである。   10A and 10B are flowcharts of the movement process according to the embodiment of the present invention.

処理m1において、操作後数式生成部17は、MFがONであるか確認する。操作後数式生成部17は、MFがONになっていれば、処理m2に移行しジェスチャ処理ルール辞書21から、移動ジェスチャのルールを読み込む。次に、処理m3に移行しRFがONになっているか判定する。   In the process m1, the post-operation mathematical expression generation unit 17 confirms whether the MF is ON. If the MF is ON, the post-operation mathematical expression generation unit 17 proceeds to the processing m2 and reads the movement gesture rule from the gesture processing rule dictionary 21. Next, the process proceeds to process m3 to determine whether RF is ON.

RFがONでなければ、処理m4に移行し、操作後数式生成部17は、制御部11に数式に変更が無くかつ処理が終了したことを制御部11に通知する。制御部11は、処理m5において数式に変更が無いことを知ると一連の処理を終了する。   If RF is not ON, the process proceeds to process m4, and the post-operation formula generation unit 17 notifies the control unit 11 that there is no change in the formula and the processing is completed. When the control unit 11 knows that there is no change in the mathematical expression in the process m5, the control unit 11 ends the series of processes.

RFがONであれば、処理m6に移行し、操作後数式生成部17は、図8で説明した領域指定数式データを抽出する。領域基準位置Prの検出については先に「代入」に関連して述べた処理内容と同じである。以下、処理m7からm12までが領域基準位置Prの検出に引き続く「移動先検出処理」に関する記述である。 If RF is ON, the process proceeds to process m6, and the post-operation formula generation unit 17 extracts the area specifying formula data described with reference to FIG. The detection of the region reference position Pr 0 is the same as the processing content described above in relation to “substitution”. Hereinafter, the processing m7 to m12 is description of following the detection of the area the reference position Pr 0 "movement destination detection process".

移動ジェスチャの場合、移動ジェスチャの示す先に存在するのは基本的に数式である。この意味で変数および置換えといった領域が存在する代入ジェスチャおよび後述する置換えジェスチャの場合と異なる。したがって、移動ジェスチャにおける第2ストロークK2の検出が重要である。図6A(c)で示されるように、第1ストロークK1は、内部数式を包含する領域と片端がつながり他の端が移動先に延びている直線状または円弧状の曲線であり、第2ストロークK2は、第1ストロークK1の端につながって書かれている三角形状の記号である。   In the case of a movement gesture, a mathematical expression basically exists at the destination indicated by the movement gesture. In this sense, it is different from the substitution gesture in which areas such as variables and substitution exist and the substitution gesture described later. Therefore, detection of the second stroke K2 in the movement gesture is important. As shown in FIG. 6A (c), the first stroke K1 is a straight or arcuate curve in which one end is connected to the region including the internal mathematical expression, and the other end extends to the destination. K2 is a triangular symbol written to the end of the first stroke K1.

処理m7において、操作後数式生成部17は、移動先の検出のため、移動ジェスチャに対応する第2ストロークK2の座標データを内部バッファから読み込む。次に、処理m8に移行し、第2ストロークK2の座標データを用いて移動基準位置Pmを求め、「移動先」として内部バッファに記憶する。 In process m7, the post-operation mathematical expression generation unit 17 reads the coordinate data of the second stroke K2 corresponding to the movement gesture from the internal buffer in order to detect the movement destination. Then, the process proceeds to processing m8, obtains the displacement reference position Pm 0 using the coordinate data of the second stroke K2, stored in the internal buffer as "destination".

操作後数式生成部17は、処理m9において、移動基準位置Pmのデータを制御部11に送り、併せて移動基準位置Pmの最近辺に存在する数式の情報の入手を要求する。 In the process m9, the post-operation mathematical expression generation unit 17 sends the data of the movement reference position Pm 0 to the control unit 11 and requests the acquisition of information on the mathematical expression existing at the nearest side of the movement reference position Pm 0 .

制御部11は、数式データFdの入手要求を受けて、処理m10において記憶部19が記憶している各数式データFdから数式の位置情報Pfを抽出して、移動基準位置Pmの座標と各数式の領域の中心位置座標Pfとの間の距離データ(MFlen)を求める。そして制御部11は、処理m11において、前記入手要求に対応する数式データFdとしてMFlenが最小となる数式の位置情報を含む数式データFdを抽出する。抽出が終われば制御部11は、処理m12において、算出されたMFlenの値を示すデータおよび前記入手要求に対応する数式データFdを操作後数式生成部17に送る。 In response to the acquisition request of the mathematical formula data Fd, the control unit 11 extracts the positional information Pf 0 of the mathematical formula from each mathematical formula data Fd stored in the storage unit 19 in the process m10, and the coordinates of the movement reference position Pm 0 Distance data (MFlen) between the center position coordinates Pf 0 of the area of each numerical formula is obtained. In step m11, the control unit 11 extracts mathematical formula data Fd including the positional information of the mathematical formula that minimizes MFlen as the mathematical formula data Fd corresponding to the acquisition request. When the extraction is completed, the control unit 11 sends the data indicating the calculated MFlen value and the formula data Fd corresponding to the acquisition request to the post-operation formula generation unit 17 in the process m12.

操作後数式生成部17は、処理m13において、送られてきた前記距離のデータ(MFlen)が所定の距離閾値(MFlen)に対し大きいか小さいか判断する。 In operation m13, the post-operation formula generation unit 17 determines whether the transmitted distance data (MFlen) is larger or smaller than a predetermined distance threshold (MFlen 0 ).

(MFlen)>(MFlen)である場合、操作後数式生成部17は、移動先に処理を施す数式が存在しないと判断し、次の移動処理を行う。すなわち、操作後数式生成部17は、処理m14において、直近に算出された領域指定数式データに対して数式IDに新規数式データを表わす数値零を設定し、新規数式データを生成する。 When (MFlen)> (MFlen 0 ), the post-operation mathematical expression generation unit 17 determines that there is no mathematical expression to be processed at the movement destination, and performs the next movement process. That is, the post-operation mathematical expression generation unit 17 sets the numerical value zero representing the new mathematical expression data to the mathematical expression ID for the area-designated mathematical expression data calculated most recently, and generates new mathematical expression data.

また処理m15において、外部数式に対して新たに数式データFdを生成し、これを修正数式データとする。図6A(c)に示される場合を例にとれば、領域指定によって「3x+5x」を含む新規数式データが生成され、修正数式データとして「y=−10」を含む数式データFdが生成される。 In process m15, new formula data Fd is generated for the external formula, and this is used as corrected formula data. Taking the case shown in FIG. 6A (c) as an example, new mathematical formula data including “3x 2 + 5x” is generated by area designation, and mathematical formula data Fd including “y = −10” is generated as corrected mathematical formula data. The

以上の処理が終われば、操作後数式生成部17は、処理m16において、生成した前記新規数式データおよび前記修正数式データを制御部11に送り、数式が変更されてジェスチャ処理が終了したことを通知する。   When the above processing is completed, the post-operation formula generation unit 17 sends the generated new formula data and the corrected formula data to the control unit 11 in process m16 to notify that the formula has been changed and the gesture processing has ended. To do.

制御部11は、処理m17において、前記新規数式データおよび前記修正数式データと通知とを受けて、記憶部19に記憶される数式のうちから、修正数式データの数式IDと一致する数式を検索し、修正数式データの内容に更新する。さらに、新規数式データに対して他の数式データFdと重複しない数式IDを割り当てて記憶部19に記憶する。   In step m17, the control unit 11 receives the new mathematical formula data, the modified mathematical formula data, and the notification, and searches the mathematical formula stored in the storage unit 19 for a mathematical formula that matches the mathematical formula ID of the modified mathematical formula data. , Update the contents of the modified formula data. Further, a mathematical expression ID that does not overlap with other mathematical expression data Fd is assigned to the new mathematical expression data and stored in the storage unit 19.

(MFlen)≦(MFlen)である場合、操作後数式生成部17は、処理m18において、「移動先文字」を検出する。「移動先文字」とは、移動基準位置Pmに近接する数式の情報である移動先数式データに含まれる数式を構成する各文字の内、移動基準位置Pmに一番近い文字をいう。例えば、移動基準位置Pmの座標と個々の文字の領域の中心位置座標とから距離をそれぞれ算出し、その値が一番小さくなる文字が「移動先文字」である。 When (MFlen) ≦ (MFlen 0 ), the post-operation formula generation unit 17 detects “move destination character” in process m18. The "destination character", among the characters constituting the formulas contained in the destination formula data is information equation proximate the moving reference position Pm 0, refers closest character to move the reference position Pm 0. For example, the distance is calculated from the coordinates of the movement reference position Pm 0 and the center position coordinates of each character area, and the character having the smallest value is the “destination character”.

「移動先文字」検出が終われば「移動」の処理が行われる。操作後数式生成部17は、処理m19において、移動先数式データに対し、移動先文字の前位置に領域指定数式データの数式部分を挿入し、新たに移動処理後の数式データFdを生成する。すなわち、生成された移動処理後の数式データFdは、前に操作基準数式の領域指定された数式部分、その後ろに移動先数式データの数式が合わさった数式を含むことになる。   When the “movement destination character” is detected, the “movement” process is performed. In step m19, the post-operation formula generation unit 17 inserts the formula portion of the area-designated formula data at the previous position of the destination character with respect to the destination formula data, and newly generates formula data Fd after the shift processing. That is, the generated mathematical expression data Fd after the movement process includes a mathematical expression part in which the area of the operation reference mathematical expression has been previously designated, and a mathematical expression in which the mathematical expression of the movement destination mathematical expression data is combined.

さらに、操作後数式生成部17は、処理m20において、外部数式を含む修正数式データを作成する。図6A(c)を例にとれば、新たな数式「(3x+5x)÷5」を含む数式データFdが生成され、修正数式データとして「y=−10」を含む数式データFdが生成される。操作後数式生成部17は、処理m21において移動処理後の数式データFdおよび修正数式データを制御部11に送り、数式が変更されたことを制御部11に通知する。 Further, the post-operation formula generation unit 17 creates corrected formula data including the external formula in the process m20. Taking FIG. 6A (c) as an example, formula data Fd including a new formula “(3x 2 + 5x) ÷ 5” is generated, and formula data Fd including “y = −10” is generated as corrected formula data. The The post-operation formula generation unit 17 sends the formula data Fd and the corrected formula data after the movement process to the control unit 11 in the process m21, and notifies the control unit 11 that the formula has been changed.

制御部11は、処理m22において記憶部19の数式データFdを検索し、修正数式データの数式IDと一致する数式データFdを抽出し、それを修正数式データと差し替える。さらに、移動処理後の数式データFdの数式IDと一致する数式データFdを抽出し、その数式データFdに含まれる数式を、移動処理後の数式に変更する。   In the process m22, the control unit 11 searches the formula data Fd in the storage unit 19, extracts formula data Fd that matches the formula ID of the corrected formula data, and replaces it with the corrected formula data. Further, the formula data Fd that matches the formula ID of the formula data Fd after the movement process is extracted, and the formula included in the formula data Fd is changed to the formula after the movement process.

次に、図6B(e)および図6C(f)を参照しながら、置換えジェスチャに関する処理について述べる。図6(e)および図6C(f)において、置換えの操作の対象となる数式のうち、一方の数式を「第1数式」、他方の数式を「第2数式」と称する。本実施形態において、「置換え基準位置」とは、「第2数式を内包する領域に外接する外接矩形の座標の中心座標」のことをいう。第2数式は、置換え基準位置Pcを含むか、または置換え基準位置に最近接する数式である。第1数式のうち、置換えられる数式を「第1置換え数式」と称し、第2数式のうち、置換えられる数式を、「第2置換え数式」と称する。 Next, processing related to the replacement gesture will be described with reference to FIGS. 6B (e) and 6C (f). In FIG. 6E and FIG. 6C (f), among the mathematical expressions to be replaced, one mathematical expression is referred to as a “first mathematical expression” and the other mathematical expression is referred to as a “second mathematical expression”. In the present embodiment, the “replacement reference position” refers to “the center coordinates of the coordinates of a circumscribed rectangle circumscribing the region containing the second mathematical expression”. The second mathematical expression is a mathematical expression that includes the replacement reference position Pc 0 or is closest to the replacement reference position. Among the first mathematical formulas, the mathematical formula to be replaced is referred to as “first replacement mathematical formula”, and among the second mathematical formulas, the mathematical formula to be replaced is referred to as “second replacement mathematical formula”.

置換えジェスチャの1例は、図6B(e)で示される。数式「y=3x+5x−10」における「3x+5x」を領域指定する第1の手書き図形ジェスチャGr1、置換えの処理を指示する手書き操作ジェスチャGopおよび数式「Z=9X÷5」における「9X」を領域指定する第2の手書き図形ジェスチャGr2が示されている。手書き操作ジェスチャGopは、直線状または円弧状の曲線の第1ストロークK1で表わされる。この場合の第1数式は、「y=3x+5x−10」、第2数式は、「Z=9X÷5」であり、第1置換え数式は、「3x+5x」、そして第2置換え数式は、「9X」であることが示されている。 An example of a replacement gesture is shown in FIG. 6B (e). The first handwritten figure gesture Gr1 that designates the region of “3x 2 + 5x” in the formula “y = 3x 2 + 5x−10”, the handwriting operation gesture Gop that instructs the replacement process, and “Z = 9X 3 ÷ 5” A second handwritten graphic gesture Gr2 for designating the area “9X 3 ” is shown. The handwriting operation gesture Gop is represented by a first stroke K1 of a linear or arcuate curve. In this case, the first equation is “y = 3x 2 + 5x−10”, the second equation is “Z = 9X 3 ÷ 5”, the first substitution equation is “3x 2 + 5x”, and the second substitution The formula is shown to be “9X 3 ”.

図6C(f)は、図6B(e)で示される各ジェスチャに対するジェスチャ認識処理および置換え処理のために必要となる領域が内包されて外接する矩形、位置情報および距離等を示す図である。第1外接矩形SQ1は、第1数式が内包されて外接する矩形、第2外接矩形SQ2は、第1置換え数式を操作するために指定された領域が内包されて外接する矩形、第3外接矩形SQ3は、置換えに対する手書き操作ジェスチャGopの第1ストロークK1が内包されて外接する矩形、第4外接矩形SQ4は、第2置換え数式を操作するために指定された領域が内包されて外接する矩形、および第5外接矩形SQ5は、第2数式を含む領域が内包されて外接する矩形と、それぞれ表わされる。Prは、第1数式の領域基準位置、Pcは、置換え基準位置、Pfは、第1数式の領域の中心位置である。前記Pcと前記Pfとの間の距離がCFlenである。 FIG. 6C (f) is a diagram showing rectangles, position information, distances, and the like that enclose and enclose areas necessary for the gesture recognition process and replacement process for each gesture shown in FIG. 6B (e). The first circumscribed rectangle SQ1 is a rectangle that circumscribes the first mathematical expression, the second circumscribed rectangle SQ2 is a rectangle that circumscribes and circumscribes the area designated for operating the first replacement mathematical expression, and the third circumscribed rectangle SQ3 is a rectangle that circumscribes the first stroke K1 of the handwriting operation gesture Gop for replacement, and a fourth circumscribed rectangle SQ4 is a rectangle that encloses and circumscribes a region specified for operating the second replacement equation, The fifth circumscribed rectangle SQ5 is expressed as a rectangle circumscribing the region including the second mathematical expression. Pr 0 is the area reference position of the first equation, Pc 0 is the replacement reference position, and Pf 0 is the center position of the area of the first equation. The distance between the Pc 0 and the Pf 0 is CFlen.

図11Aおよび図11Bは、本発明の一実施形態における置換えの処理のフローチャートである。   11A and 11B are flowcharts of the replacement process in the embodiment of the present invention.

処理c1において、操作後数式生成部17は、CFがONであるか確認する。操作後数式生成部17は、CFがONになっていれば、処理c2に移行しジェスチャ処理ルール辞書21から、置換えジェスチャのルールを読み込む。次に、処理c3に移行しRFがONになっているか判定する。   In the process c1, the post-operation formula generation unit 17 confirms whether the CF is ON. If the CF is ON, the post-operation mathematical expression generation unit 17 proceeds to processing c2 and reads the replacement gesture rule from the gesture processing rule dictionary 21. Next, the process proceeds to process c3 to determine whether RF is ON.

RFがONでなければ、処理c4に移行し、操作後数式生成部17は、制御部11に数式に変更が無くかつ処理が終了したことを制御部11に通知する。制御部11は、処理c5において数式に変更が無いことを知ると一連の処理を終了する。   If RF is not ON, the process proceeds to process c4, and the post-operation formula generation unit 17 notifies the control unit 11 that there is no change in the formula and the processing is completed. When the control unit 11 knows that there is no change in the mathematical expression in the process c5, the series of processes is terminated.

RFがONであれば、処理c6に移行し、操作後数式生成部17は、図8で説明した領域指定数式データを抽出する。領域基準位置Prの検出については先に「代入」に関連して述べた処理内容と同じである。処理c7〜c17において、領域基準位置Prの検出に引き続き、置換え数式検出処理を行う。以下、置換え数式検出処理に関して記述する。 If RF is ON, the process proceeds to process c6, and the post-operation mathematical expression generation unit 17 extracts the area designation mathematical formula data described with reference to FIG. The detection of the region reference position Pr 0 is the same as the processing content described above in relation to “substitution”. In processing C7 to C17, following the detection of the region reference position Pr 0, it performs replacement formulas detection process. Hereinafter, the replacement formula detection process will be described.

操作後数式生成部17は、領域認識部15に作用し、処理7および処理8を行わせる。処理c7において、領域認識部15は、第2置換え数式の検出のため、置換えジェスチャに対応する第2の手書き図形ジェスチャGr2の座標データを内部バッファから読み込む。次に、処理c8に移行し、第2ストロークK2の座標データを用いて第2ストロークK2を内包する外接矩形SQ4の座標と置換え基準位置Pcを求め、操作後数式生成部17に渡す。操作後数式生成部17は、得られた情報を内部バッファに記憶する。 The post-operation mathematical expression generation unit 17 acts on the region recognition unit 15 to cause processing 7 and processing 8 to be performed. In the process c7, the region recognition unit 15 reads the coordinate data of the second handwritten figure gesture Gr2 corresponding to the replacement gesture from the internal buffer in order to detect the second replacement mathematical expression. Then, the process proceeds to processing c8, determined coordinates and replace the reference position Pc 0 of the circumscribed rectangle SQ4 which encloses the second stroke K2 using the coordinate data of the second stroke K2, passed to the post-operation equation generation unit 17. The post-operation formula generation unit 17 stores the obtained information in the internal buffer.

以上の処理を終えると操作後数式生成部17は、処理c9において置換え基準位置データを制御部11に送り、置換え基準位置を数式の領域に含む数式データFdを要求する。   When the above processing is completed, the post-operation formula generation unit 17 sends the replacement reference position data to the control unit 11 in the process c9, and requests the formula data Fd including the replacement reference position in the formula area.

制御部11は、処理c10において送られてきた置換え基準位置Pcの情報を用いて第2数式を含む数式データFdと、置換え基準位置Pcの座標と各数式の領域の中心位置座標Pfとの距離(CFlen)とを求める。制御部11は、その処理を次のように行う。記憶部19に記憶している各数式データFdから数式の位置情報Pfを抽出し、置換え基準位置Pcの座標データと抽出された前記数式の領域の中心位置座標Pfとを照合し、置換え基準位置Pcが含まれる数式領域を有する数式データFdを求める。置換え基準位置Pcがどれかの数式の領域に含まれていれば距離CFlenを零に設定する。置換え基準位置がどの数式の領域にも含まれていなければ、CFlenを実際に算出し、CFlenの値が一番小さくなる数式を含む数式データFdを置換え基準位置Pcに近接する数式データFdとする。 The control unit 11 uses the information of the replacement reference position Pc 0 sent in the process c10, the mathematical formula data Fd including the second mathematical formula, the coordinates of the replacement reference position Pc 0 , and the center position coordinates Pf 0 of the area of each mathematical formula. To the distance (CFlen). The control unit 11 performs the process as follows. The position information Pf 0 of the mathematical formula is extracted from each mathematical formula data Fd stored in the storage unit 19, the coordinate data of the replacement reference position Pc 0 is collated with the center position coordinate Pf 0 of the extracted formula area, Formula data Fd having a formula area including the replacement reference position Pc 0 is obtained. If the replacement reference position Pc 0 is included in any mathematical area, the distance CFlen is set to zero. If the replacement reference position is not included in any of the mathematical expression regions, CFlen is actually calculated, and the mathematical expression data Fd including the mathematical expression having the smallest CFlen value is replaced with the mathematical expression data Fd close to the replacement reference position Pc 0. To do.

制御部11は、処理c11において以上のようにして第2数式を含む数式データFdと、置換え基準位置Pcと各数式の位置情報との距離(CFlen)とを求めると該数式データFdとCFlenデータとを操作後数式生成部17に送る。操作後数式生成部17は、処理c12において、前記距離(CFlen)の値が所定の距離閾値(CFlen)に対し大きいか小さいかを判断し、置換え指定範囲に含まれる数式部分を以下のようにして抽出する。 When the control unit 11 obtains the mathematical formula data Fd including the second mathematical formula and the distance (CFlen) between the replacement reference position Pc 0 and the positional information of each mathematical formula in the process c11 as described above, the mathematical formula data Fd and CFlen are obtained. The data is sent to the formula generator 17 after the operation. In operation c12, the post-operation formula generation unit 17 determines whether the value of the distance (CFlen) is larger or smaller than a predetermined distance threshold (CFlen 0 ), and sets the formula portion included in the replacement designation range as follows: To extract.

(CFlen)>(CFlen)である場合、操作後数式生成部17は、置換え処理を施す数式が存在しないと判断し、次の処理を行う。すなわち、操作後数式生成部17は、処理c13において、直近に算出された領域指定数式データに対して数式IDに新規数式データを表わす数値零を設定し、新規数式データを生成する。 If (CFlen)> (CFlen 0 ), the post-operation mathematical expression generation unit 17 determines that there is no mathematical expression to be replaced, and performs the following process. That is, the post-operation mathematical expression generation unit 17 sets the numerical value zero representing the new mathematical expression data to the mathematical expression ID for the area-designated mathematical expression data calculated most recently, and generates new mathematical expression data.

また処理c14において、第1数式から第1置換え数式を除いた外部数式に対して新たに数式データFdを生成し、これを修正数式データとする。以上の処理が終われば、操作後数式生成部17は、処理c15において、生成した前記新規数式データおよび前記修正数式データを制御部11に送り、数式が変更されてジェスチャ処理が終了したことを通知する。   In process c14, new formula data Fd is generated for the external formula obtained by removing the first replacement formula from the first formula, and this is used as the corrected formula data. When the above process is completed, the post-operation formula generation unit 17 sends the generated new formula data and the corrected formula data to the control unit 11 in process c15, and notifies that the formula has been changed and the gesture process has ended. To do.

制御部11は、処理c16において、前記新規数式データと前記修正数式データとジェスチャ処理の終了の通知とを受けて、記憶部19に記憶される数式のうちから修正数式データの数式IDと一致する数式を検索し、修正数式データの内容に更新する。さらに、新規数式データに対して他の数式データFdと重複しない数式IDを割り当てて記憶部19に記憶する。   In process c16, the control unit 11 receives the new mathematical formula data, the modified mathematical formula data, and the notification of the end of the gesture process, and matches the mathematical formula ID of the modified mathematical formula data among the mathematical formulas stored in the storage unit 19. Search the formula and update it with the contents of the corrected formula data. Further, a mathematical expression ID that does not overlap with other mathematical expression data Fd is assigned to the new mathematical expression data and stored in the storage unit 19.

(CFlen)≦(CFlen)である場合、操作後数式生成部17は、処理c17において以下のように「第2置換え数式」を検出する。 When (CFlen) ≦ (CFlen 0 ), the post-operation formula generation unit 17 detects the “second replacement formula” in the process c17 as follows.

CFlenが零かどうか確認し、CFlenが零でない場合、操作後数式生成部17は、置換え基準位置Pcの座標と各文字に対して中心位置座標とから両座標間の距離を算出し、前記距離の値が一番小さくなる文字を「置換え中心文字」として検出する。置換え中心文字のX軸における中心座標から左右にそれぞれX軸方向の置換え指定範囲の半分を確保し、その範囲に含まれる文字をすべて抽出し、第2置換え数式とする。また、CFlenが零であれば、操作後数式生成部17は、第2数式に含まれる数式を構成する各文字の位置情報を確認して置換え指定範囲に含まれるものをすべて抽出し、第2置換え数式とする。 CFlen confirms whether zero, if CFlen is not zero, the operation after the equation generating unit 17 calculates the distance between the coordinates from the center position coordinates with respect to coordinates and each character replacement reference position Pc 0, the The character with the smallest distance value is detected as the “replacement center character”. A half of the replacement designation range in the X-axis direction is secured to the left and right from the center coordinate on the X-axis of the replacement center character, and all characters included in the range are extracted to obtain a second replacement formula. On the other hand, if CFlen is zero, the post-operation mathematical expression generation unit 17 confirms the position information of each character constituting the mathematical expression included in the second mathematical expression, and extracts all the characters included in the replacement designation range. It is a replacement formula.

置換え中心文字の検出が終われば操作後数式生成部17は、処理c18において「置換え」の処理を行う。操作後数式生成部17は、第2数式から第2置換え数式を削除し、この削除された部分の位置に領域指定数式データからの第2置換え数式を挿入し、まず第2数式について置換えを行う。さらに操作基準数式から操作基準数式からの第2置換え数式を削除し、前記削除された部分の位置に第2置換え数式を挿入する。   When the detection of the replacement center character is finished, the post-operation formula generation unit 17 performs a “replacement” process in process c18. The post-operation formula generation unit 17 deletes the second replacement formula from the second formula, inserts the second replacement formula from the area designation formula data at the position of the deleted portion, and first performs replacement for the second formula. . Further, the second replacement expression from the operation reference expression is deleted from the operation reference expression, and the second replacement expression is inserted at the position of the deleted portion.

図6B(e)を例にして説明すると、この場合の操作の基準とする第1数式は、「y=3x+5x−10」であり、第2数式は、「Z=9x÷5」である。以上の両数式から第1置換え数式「3x+5x」および第2置換え数式「9x」が相互に置換えられる。結果として「y=9x−10」および「Z=(3x+5x)÷5」を含んだ数式データFdが生成される。 Referring to FIG. 6B (e) as an example, the first mathematical expression as the operation reference in this case is “y = 3x 2 + 5x−10”, and the second mathematical expression is “Z = 9x 3 ÷ 5”. It is. From the above equations, the first replacement equation “3x 2 + 5x” and the second substitution equation “9x 3 ” are replaced with each other. As a result, mathematical formula data Fd including “y = 9x 3 −10” and “Z = (3x 2 + 5x) ÷ 5” is generated.

このとき、置換えする数式部分は文字数の相違が起こりうる。たとえば、第1および第2置換え数式に含まれる文字数がNおよびMであるとすると、NおよびMの大小によって置換えられた操作基準数式データの数式をそのまま表示部14で表示させるとすると、一方では置換えた数式の左右に、見た目の空白部分が生じ、他方では両数式で重複する部分が生じる。このため置換え部分が元在った数式の一部に、ある一定範囲の空隙を以って滑らかにつながるようにするために、置換え後の両数式の位置情報を算出しなおし、数式領域および各文字の位置領域を設定しなおす処理がなされる。   At this time, a difference in the number of characters may occur in the replaced mathematical expression portion. For example, if the number of characters included in the first and second replacement formulas is N and M, the formula of the operation reference formula data replaced by the magnitude of N and M is displayed on the display unit 14 as it is. An apparent blank portion appears on the left and right sides of the replaced mathematical expression, and on the other hand, an overlapping portion occurs between both mathematical expressions. For this reason, in order to smoothly connect to a part of the mathematical formula in which the replacement part originally exists with a certain range of gaps, the position information of both mathematical expressions after replacement is recalculated, Processing to reset the character position area is performed.

また、前述の例で見るように、第2数式「Z=9x÷5」に対して「9x」を「3x+5x」で置換える場合には、「(」および「)」で「3x+5x」を挟み込み、四則演算の原則に則った新たな数式構築がなされる。 As seen in the above example, when “9x 3 ” is replaced with “3x 2 + 5x” in the second mathematical expression “Z = 9x 3 ÷ 5”, “(” and “)” 3x 2 + 5x "is inserted, and a new mathematical expression is constructed in accordance with the principle of the four arithmetic operations.

操作後数式生成部17は、以上のようにして置換え処理を終えれば処理c19に示されるように更新した操作基準数式データと修正数式データを送り、数式が変更されたことを制御部11に通知する。   After completion of the replacement process as described above, the post-operation formula generation unit 17 sends the updated operation reference formula data and the corrected formula data as shown in the process c19, and notifies the control unit 11 that the formula has been changed. Notice.

制御部11は、処理c20において置換え処理後の第2数式データの数式IDと一致する記憶部19の数式を検索し、数式データFdを変更する。さらに、置換え処理後の操作基準数式データと数式IDが一致する記憶部19の数式を検索し、数式データFdを変更する。   The control unit 11 searches the storage unit 19 for a mathematical expression that matches the mathematical expression ID of the second mathematical expression data after the replacement process in the process c20, and changes the mathematical expression data Fd. Further, the mathematical expression in the storage unit 19 in which the operation reference mathematical expression data after the replacement process and the mathematical expression ID match is searched, and the mathematical expression data Fd is changed.

以上指定された数式部分を操作するジェスチャについて説明した。以上で説明したジェスチャを用いてどのような演算が計算装置1で行われるかについて図12Aと図12Bとを用いて説明する。図12Aおよび図12Bは、本発明の一実施形態において操作後数式情報Fpが生成される様子を示す図である。図12Aおよび図12Bには、手書き図形ジェスチャGrおよび手書き操作ジェスチャGopによって指定された領域および操作を行う計算例を示す図である。   The gesture for operating the specified mathematical formula portion has been described above. With reference to FIG. 12A and FIG. 12B, what kind of calculation is performed in the computing device 1 using the gesture described above will be described. 12A and 12B are diagrams illustrating a state in which post-operation mathematical formula information Fp is generated in an embodiment of the present invention. 12A and 12B are diagrams illustrating calculation examples for performing the region and the operation designated by the handwritten graphic gesture Gr and the handwriting operation gesture Gop.

図12A(a)は、数式「350+500」の部分に対し変数「E」が定義されていることを示す。代入ジェスチャに関連して説明したように、このジェスチャによって「E=350+500」が記憶部19に記憶される。変数「E」を用いる数式「150×5+E×4=」が利用者によって表示面に書かれると、自動的に演算がなされて図12A(b)に示されるように答えとして「4150」が得られる。   FIG. 12A (a) shows that the variable “E” is defined for the part of the formula “350 + 500”. As described in connection with the substitution gesture, “E = 350 + 500” is stored in the storage unit 19 by this gesture. When the expression “150 × 5 + E × 4 =” using the variable “E” is written on the display surface by the user, the calculation is automatically performed and “4150” is obtained as an answer as shown in FIG. 12A (b). It is done.

図12A(c)および(d)は、移動ジェスチャを用いた演算例を示す。図12A(c)の1つ目の数式から「350+500」の部分を図12A(c)の2つ目の数式「150×5+」の右側に移動するように利用者が移動ジェスチャで指示した後に図12A(d)で示されるように移動ジェスチャの第2ストロークK2の右側に「×4=」を筆記すると、自動的に演算が行われて答えとして「4150」を表示される。   FIGS. 12A (c) and 12 (d) show examples of computation using a movement gesture. After the user instructs the movement gesture to move the portion of “350 + 500” from the first mathematical expression in FIG. 12A (c) to the right side of the second mathematical expression “150 × 5 +” in FIG. 12A (c). If “× 4 =” is written on the right side of the second stroke K2 of the movement gesture as shown in FIG. 12A (d), the calculation is automatically performed and “4150” is displayed as an answer.

図12A(c)の1つめの数式の一部に対して、(1)手書き図形ジェスチャGrの入力による領域指定情報が認識され、(2)第1および第2ストロークK1,K2が入力され、(3)その後の入力が一定時間内に行われない場合、かつ(4)第2ストロークK2近傍の予め定める範囲内に数式がない場合には、1つめの数式に対する処理は、実質的に削除と同じとなる。   With respect to a part of the first mathematical expression in FIG. 12A (c), (1) region designation information by inputting a handwritten graphic gesture Gr is recognized, (2) first and second strokes K1, K2 are input, (3) If the subsequent input is not performed within a certain time, and (4) if there is no mathematical expression within a predetermined range near the second stroke K2, the process for the first mathematical expression is substantially deleted. Will be the same.

図12B(e)および図12B(f)は、置換えジェスチャを用いた演算例である。図12B(e)は、利用者が図12B(e)における1つめの数式の一部である「500」を図12B(e)の2つめの数式の「(350+500)」の部分と置換え指示したことを示している。置換えジェスチャによって自動的に演算がなされ図12B(f)の1つめおよび2つめの数式情報のうち内部数式が置換えられて、演算結果が得られる。   FIG. 12B (e) and FIG. 12B (f) are calculation examples using the replacement gesture. In FIG. 12B (e), the user replaces “500”, which is part of the first mathematical expression in FIG. 12B (e), with the “(350 + 500)” part of the second mathematical expression in FIG. 12B (e). It shows that. An operation is automatically performed by the replacement gesture, and the internal mathematical expression is replaced in the first and second mathematical expression information in FIG. 12B (f), and a calculation result is obtained.

制御部11は、移動または置換えジェスチャの入力が停止してから、予め定める時間、たとえば数秒間、入力部12からの入力がなければ、操作後数式情報Fpに基づいて計算を行った結果、計算結果を表示する構成とする。制御部11は、時間について、筆記入力監視用タイマを利用して測定を行う。   If the input from the input unit 12 is not performed for a predetermined time, for example, several seconds after the input of the movement or replacement gesture is stopped, the control unit 11 performs the calculation based on the post-operation mathematical formula information Fp. The result is displayed. The control unit 11 measures the time by using a writing input monitoring timer.

なお、以上の実施形態では、手書き図形ジェスチャGrは図5(a)の閉図形の形状として説明した。他の実施形態として、図13A(a)、図13A(b)および図13B(d)で示されるように閉じていない図形で領域を表すことができる。図13Aおよび図13Bは、本発明の他の実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。たとえば、図13A(a)および図13A(b)に示される領域指定の場合、図13A(c)で示されるように手書き操作ジェスチャGopの初期外接矩形SQ0の座標(P1(xmin,ymin),P2(xmax,ymin),P3(xmin,ymax),P4(xmin,ymax))を求め、ymaxから所定長さL(例えば、筆記された文字の平均高さの1.5倍)だけ高いY座標値(ymax+L)を求める。 In the above embodiment, the handwritten figure gesture Gr has been described as the shape of the closed figure in FIG. As another embodiment, the region can be represented by a graphic that is not closed as shown in FIGS. 13A (a), 13A (b), and 13B (d). FIG. 13A and FIG. 13B are diagrams illustrating examples of a handwritten graphic gesture Gr and a handwriting operation gesture Gop according to another embodiment of the present invention. For example, in the case of the area designation shown in FIGS. 13A (a) and 13A (b), as shown in FIG. 13A (c), the coordinates (P1 (x min , y min ) of the initial circumscribed rectangle SQ0 of the handwriting operation gesture Gop. ), P2 (x max, y min), P3 (x min, y max), P4 (x min, y max)) of the calculated, predetermined from y max length L (e.g., the average height of the handwritten character Y coordinate value (y max + L) that is 1.5 times higher) is obtained.

これによって座標(P1(xmin,ymin),P2(xmax,ymin),P5(xmin,ymax+L),P6(xmin,ymax+L)を持つ第1外接矩形SQ1が求まる。初期外接矩形SQ0は、手書き操作ジェスチャGopとして筆記された筆記情報そのものの外接矩形SQであって、大きさが自動的に変更される前の初期の外接矩形SQである。そして、Pistとして(xmin、ymin)、Pienとして(xmax,ymax+L)とし、領域の指定範囲を[Pist,Pien]とする。ここでiは、数式情報に対応する添え字である。この座標でできる矩形の中心を基準位置Prとすれば良い。 This coordinates (P1 (x min, y min ), P2 (x max, y min), P5 (x min, y max + L), P6 (x min, the first enclosing rectangle SQ1 with y max + L) determined . initial circumscribed rectangle SQ0 is a circumscribed rectangle SQ writing information itself that has been written as a handwriting operation gesture Gop, an initial enclosing rectangle SQ before the size is automatically changed. Then, as P ist (X min , y min ), P ien is (x max , y max + L), and the designated range of the area is [P ist , P ien ], where i is a subscript corresponding to the mathematical formula information. . may be the center of the rectangle can be in the coordinate reference position Pr 0.

図13B(d)に示される領域指定の場合、図13B(e)で示されるように手書き操作ジェスチャGopに外接する外接矩形SQ0の座標(P1(xmin,ymin),P2(xmax,ymin),P3(xmin,ymax),P4(xmin,ymax))を求め、外接矩形SQ0の中心のY座標yを求める。y=(ymax+ymin)/2である。そのY座標を中心に上下に所定長さL/2を考慮したY座標y−L/2およびy+L/2を求める。これによって、新たに4つの座標(Q1(xmin,y−L/2)、Q2(xmax,y−L/2)、Q3((xmin,y+L/2)、Q4(xmax,y+L/2)を持つ外接矩形SQ1が求まる。この場合、領域の指定範囲を示す[Pist,Pien]においてPistは、Q1(xmin,y−L/2)であり、Pienは、Q4(xmax,y+L/2)となる。 In the case of the area designation shown in FIG. 13B (d), as shown in FIG. 13B (e), the coordinates (P1 (x min , y min ), P2 (x max , P)) of the circumscribed rectangle SQ0 circumscribing the handwriting operation gesture Gop are shown. y min ), P 3 (x min , y max ), P 4 (x min , y max )) are obtained, and the Y coordinate y 0 of the center of the circumscribed rectangle SQ 0 is obtained. y 0 = (y max + y min ) / 2. Y coordinates y 0 -L / 2 and y 0 + L / 2 are calculated in consideration of a predetermined length L / 2 in the vertical direction around the Y coordinate. Thus, four new coordinates (Q1 (x min, y 0 -L / 2), Q2 (x max, y 0 -L / 2), Q3 ((x min, y 0 + L / 2), Q4 ( x max, is circumscribed rectangle SQ1 with y 0 + L / 2) obtained. in this case, indicating the designated range of the area [P ist, P ien] is P ist in, Q1 (x min, y 0 -L / 2) And Pien is Q4 (x max , y 0 + L / 2).

図14Aおよび図14Bは、本発明のさらに他の実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。さらに他の実施形態では、図14Aおよび図14Bに示されるように代入、置換えの各ジェスチャに対して様々に対応することができる。   FIG. 14A and FIG. 14B are diagrams illustrating an example of a handwritten graphic gesture Gr and a handwriting operation gesture Gop according to still another embodiment of the present invention. In still other embodiments, various substitution and replacement gestures can be accommodated as shown in FIGS. 14A and 14B.

たとえば図6A(a)を参照して説明した代入ジェスチャの代わりに、図14A(a)で示される円弧状の手書き操作ジェスチャGopを用いた代入指定も可能である。この場合、図14A(b)に示されるように代入操作のために指定された領域を内包する外接矩形を第6外接矩形SQ6、代入ジェスチャの第1ストロークを内包する外接矩形を第7外接矩形SQ7、および代入変数を内包する矩形を第8外接矩形SQ8とする。外接矩形SQ13の4つの座標を(p21(x2min,y2min),p22(x2max,y2min),p23(x2min,y2max),p24(x2min,y2max))とすると、この場合の手書き操作ジェスチャGopの始端の座標は、p21であり、終端の座標は、p24である。 For example, instead of the substitution gesture described with reference to FIG. 6A (a), substitution designation using the arc-shaped handwriting operation gesture Gop shown in FIG. 14A (a) is also possible. In this case, as shown in FIG. 14A (b), the circumscribed rectangle containing the area designated for the substitution operation is the sixth circumscribed rectangle SQ6, and the circumscribed rectangle containing the first stroke of the substitution gesture is the seventh circumscribed rectangle. A rectangle containing SQ7 and the substitution variable is an eighth circumscribed rectangle SQ8. The four coordinates of the circumscribed rectangle SQ13 are (p 21 (x2 min , y2 min ), p 22 (x2 max , y2 min ), p 23 (x2 min , y2 max ), p 24 (x2 min , y2 max )) Then, the beginning of the coordinates of the handwriting operation gestures Gop in this case is p 21, the end of the coordinates is p 24.

前記始端の座標と終端の座標と領域指定の基準位置Prとを用いて、始端および終端と領域指定の基準位置との距離を算出し、この距離のうち短い方を第1の代入基準位置Ps、他方を第2の代入基準位置Psとする。前記Psと前記Prとの距離をRSlenとして、手書き図形ジェスチャGrおよび代入ジェスチャ間距離の閾値RSlenとの比較に用い、前記Psと第8外接矩形SQ8の中心位置座標Pfとの距離をSVlenとして、代入ジェスチャおよび変数名間距離の閾値SVlenとの比較に用いる。 Using the coordinates of the start end, the coordinates of the end, and the region-designated reference position Pr 0 , the distance between the start end and end and the region-designated reference position is calculated, and the shorter of these distances is used as the first substitution reference position. Let Ps 1 be the second substitution reference position Ps 2 . The distance between the Ps 1 and the Pr 0 is RSlen, and is used for comparison with the handwritten figure gesture Gr and the threshold RSlen 0 for the distance between substitution gestures, and the Ps 2 and the center position coordinate Pf 0 of the eighth circumscribed rectangle SQ8 The distance is set as SVlen, which is used for comparison with the substitution gesture and the threshold value SVlen 0 between the variable names.

また、図6B(e)で置換えジェスチャを説明したけれども、図14B(c)で示されるように1ストローク(一筆書き)のジェスチャで表現することができる。図14B(d)において置換え操作のために指定された置換え第1数式に対する領域に外接する矩形を第10外接矩形SQ10とする。置換えジェスチャは、柄杓形状の連続した1つのストロークであり、その領域は、第9外接矩形SQ9で示される。しかし、第9外接矩形SQ9を構成する座標をそのまま用いるとこれまで説明された置換えとは異なった処理が必要となる。そのため置換えジェスチャのストロークの始端から軌跡間の角度を検出する処理を設け、所定角度(例えば120°以上)折れ曲がった点Cを検出する。始端から前記C点までを始端からの仮想第1ストロークKV1として検出する。さらに前記仮想第1ストロークKV1を除いた残りの部分を前記C点から始まる一つの手書き図形ジェスチャと見なし、仮想手書き図形ジェスチャKGr2を想定する。   Further, although the replacement gesture has been described with reference to FIG. 6B (e), it can be expressed with a one-stroke (single stroke) gesture as shown in FIG. 14B (c). In FIG. 14B (d), a rectangle circumscribing the area corresponding to the first replacement mathematical expression designated for the replacement operation is defined as a tenth circumscribed rectangle SQ10. The replacement gesture is one continuous stroke of a handle pattern, and the area is indicated by a ninth circumscribed rectangle SQ9. However, if the coordinates constituting the ninth circumscribed rectangle SQ9 are used as they are, processing different from the replacement described so far is required. Therefore, a process for detecting the angle between the trajectories from the start end of the stroke of the replacement gesture is provided, and a point C bent at a predetermined angle (for example, 120 ° or more) is detected. From the start end to the point C is detected as a virtual first stroke KV1 from the start end. Further, the remaining part excluding the virtual first stroke KV1 is regarded as one handwritten figure gesture starting from the point C, and a virtual handwritten figure gesture KGr2 is assumed.

この結果、置換えに対する仮想第1ストロークKV1を内包する外接矩形が第11外接矩形SQ11として、さらに置換えに対する仮想手書き図形ジェスチャKGr2を内包する外接矩形を第12外接矩形SQ12として求められる。このようにして求められた第12外接矩形SQ12の中心座標を、置換えジェスチャ処理で説明した第2の手書き図形ジェスチャGr2に対する第4外接矩形SQ4の中心座標データと同様に用いて置換え基準位置を求めることで、上記説明と同様に置換え処理を行えばよい。   As a result, the circumscribed rectangle that encloses the virtual first stroke KV1 for the replacement is obtained as the eleventh circumscribed rectangle SQ11, and the circumscribed rectangle that encloses the virtual handwritten figure gesture KGr2 for the substitution is obtained as the twelfth circumscribed rectangle SQ12. The replacement reference position is obtained by using the center coordinates of the twelfth circumscribed rectangle SQ12 thus obtained in the same manner as the center coordinate data of the fourth circumscribed rectangle SQ4 for the second handwritten figure gesture Gr2 described in the replacement gesture process. Thus, the replacement process may be performed in the same manner as described above.

このように、筆記入力手段120は、外力が付与された筆記入力部位の位置の情報およびその位置の変化が表す軌跡の情報を筆記情報として検出する。筆記入力手段120を含む入力部12は、筆記入力手段120が行った筆記情報検出結果を出力する。数式認識部13は、筆記入力手段120を用いて筆記入力された筆記情報のうち、数式を表わす数式筆記情報Gfを数式情報として認識する。表示部14には、表示を行う表示面が形成され、数式情報は、表示面に表わされる。   As described above, the writing input unit 120 detects the information on the position of the writing input portion to which the external force is applied and the information on the locus represented by the change in the position as the writing information. The input unit 12 including the writing input unit 120 outputs a writing information detection result performed by the writing input unit 120. The mathematical expression recognition unit 13 recognizes mathematical expression writing information Gf representing a mathematical expression as mathematical expression information among the writing information input by writing using the writing input unit 120. A display surface for displaying is formed on the display unit 14, and the mathematical formula information is represented on the display surface.

領域認識部15は、筆記情報のうち手書き図形ジェスチャGrを領域指定情報として認識する。手書き図形ジェスチャGrは、表示面上の領域を指定する。操作認識部16は、筆記情報のうち、手書き操作ジェスチャGopを操作情報として認識する。手書き操作ジェスチャGopは、領域指定情報によって指定される表示面上の領域において、この領域に表示される数式情報に対して利用者が所望する操作を表わす。操作後数式生成部17は、数式情報および領域指定情報に基づいて、前記操作が反映された数式を表わす操作後数式情報Fpを生成する。演算部18は、操作認識部16が操作情報を認識したときに、操作後数式情報Fpが表わす数式に基づいて演算を行い、演算結果を出力する。   The area recognition unit 15 recognizes the handwritten figure gesture Gr in the writing information as area designation information. The handwritten graphic gesture Gr designates an area on the display surface. The operation recognition unit 16 recognizes the handwriting operation gesture Gop as the operation information in the writing information. The handwriting operation gesture Gop represents an operation desired by the user with respect to mathematical expression information displayed in the area on the display surface designated by the area designation information. The post-operation formula generation unit 17 generates post-operation formula information Fp representing the formula reflecting the operation based on the formula information and the area designation information. When the operation recognizing unit 16 recognizes the operation information, the calculation unit 18 performs a calculation based on the mathematical expression represented by the post-operation mathematical formula information Fp and outputs the calculation result.

したがって、利用者は、筆記入力手段120を用いて演算の数式を筆記し入力できるほか、筆記情報によって操作する数式の領域を指定し、指定された領域に表示される数式情報に対する演算操作を行うことができる。これによって、指定された領域に表示される数式を、指定された領域外に表示される数式と区別して処理することができる。またすでに筆記した数式の一部のみを他の計算に利用することができるようになる。このように数式に対する演算操作を簡単かつ容易にして、入力に要する利用者の手間を省き労力を軽減することができる。   Therefore, the user can write and input a mathematical expression using the writing input unit 120, designate a mathematical expression area to be operated according to the written information, and perform a mathematical operation on mathematical expression information displayed in the designated area. be able to. As a result, the mathematical expression displayed in the designated area can be processed separately from the mathematical expression displayed outside the designated area. In addition, only a part of the mathematical formula already written can be used for other calculations. In this way, it is possible to simplify and easily perform arithmetic operations on mathematical formulas, thereby saving the labor of the user required for input and reducing labor.

さらに、前記操作情報は、代入、移動、置換えおよび削除のいずれか一つを意味する情報であるので、利用者は、いずれかの前記ジェスチャによって、(1)前記領域指定した対象に対して代入変数を定義すること、(2)手書き図形ジェスチャGrによって領域指定した対象を手書き操作ジェスチャGopによって指定された領域へ移動すること、(3)領域指定情報によって指定された対象を他の数式において指定された内部数式情報と置換えする処理を行うこと、および(4)手書き図形ジェスチャGrによって領域指定情報が指定され、手書き操作ジェスチャGopによって削除を意味する操作情報が入力された場合に、領域指定情報によって指定された内部数式情報を削除すること、などを容易に指示し演算させることができる。また、同じ数式を他の数式の一部に用いる場合、当該数式の筆記の手間を節減可能なる。このため利用者にとってさらに操作性の良い計算装置1を提供できる。   Furthermore, since the operation information is information meaning any one of substitution, movement, replacement, and deletion, the user can substitute (1) the area-designated target by any of the gestures. Defining a variable, (2) moving an area designated by the handwritten graphic gesture Gr to an area designated by the handwriting operation gesture Gop, and (3) specifying the object designated by the area designation information in another mathematical expression. And (4) region designation information when the region designation information is designated by the handwritten figure gesture Gr and the operation information meaning deletion is inputted by the handwriting operation gesture Gop. It is possible to easily instruct and perform operations such as deleting the internal mathematical formula information designated by. Further, when the same mathematical expression is used as a part of another mathematical expression, it is possible to save time and effort for writing the mathematical expression. Therefore, it is possible to provide the computing device 1 with better operability for the user.

さらに、記憶部19は、前記領域指定情報によって指定される領域に表示される数式情報を記憶し、前記操作情報が、変数に対する代入を意味する情報である場合に、前記変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する記憶部19をさらに含む。これによって利用者は、一度入力された数式を代入変数として定義する操作を行えば他の数式において前記代入変数を入力することによって、変数に代入された数式情報を、利用することができる。したがって利用者は、一度入力した数式を再入力する必要がなくなり、複雑な数式を変数に代入しておけば、変数を筆記する入力によって複雑な数式に対しても簡単な入力で済ませることができる。   Further, the storage unit 19 stores mathematical formula information displayed in an area designated by the area designation information. When the operation information is information meaning substitution for a variable, the variable information, It further includes a storage unit 19 that stores mathematical formula information representing the mathematical formula assigned to the variable in association with each other. As a result, the user can use the mathematical formula information assigned to the variable by inputting the substitution variable in another mathematical formula when the mathematical formula once inputted is defined as the substitution variable. Therefore, the user does not need to re-enter the mathematical formula once entered, and if a complicated mathematical formula is assigned to a variable, a simple mathematical input can be made even by writing the variable. .

さらに、表示部14は、前記入力部12に対する予め定める操作に応じて、前記記憶部19に記憶される数式情報の少なくとも一部を表示するので、利用者がすでに入力した数式の一部を忘れた場合でも、記憶部19に記憶される数式情報を目視確認することができるとともに、計算装置1に計算を続行させることができる。   Furthermore, the display unit 14 displays at least a part of the mathematical formula information stored in the storage unit 19 in response to a predetermined operation on the input unit 12, and thus forgets a part of the mathematical formula already input by the user. Even if it is, the mathematical formula information stored in the storage unit 19 can be visually confirmed and the calculation device 1 can continue the calculation.

計算プログラムは、コンピュータを、入力部12、数式認識部13、表示部14、領域認識部15、操作認識部16、操作後数式生成部17、および演算部18として機能させる。これによって、コンピュータを、計算装置1として機能させることができる。   The calculation program causes the computer to function as the input unit 12, the formula recognition unit 13, the display unit 14, the region recognition unit 15, the operation recognition unit 16, the post-operation formula generation unit 17, and the calculation unit 18. As a result, the computer can function as the computing device 1.

さらに、前記計算プログラムがコンピュータに記録される読み取り可能な記録媒体である。したがって、前記プログラムを記録媒体として提供できる。   Further, the calculation program is a readable recording medium recorded in a computer. Therefore, the program can be provided as a recording medium.

(変形例)
前述の実施形態では、数式認識部13が数式を表す数式筆記情報Gfに基づいて数式情報を認識すると、表示部14は、数式筆記情報Gfの表示を消去した後、数式認識部13が認識した数式情報を活字によって表示するものとしたけれども、さらに他の実施形態では、表示部14は、前記数式筆記情報Gfを表示し、数式認識部13が、前記数式筆記情報Gfに基づいて数式情報を認識すると、数式筆記情報Gfを表示した表示面上の位置とは異なる位置に、数式認識部13が認識した数式情報を活字によって表示した後、数式筆記情報Gfの表示を消去する構成とすることも可能である。
(Modification)
In the above-described embodiment, when the mathematical formula recognition unit 13 recognizes the mathematical formula information based on the mathematical formula writing information Gf representing the mathematical formula, the display unit 14 recognizes the mathematical formula recognition unit 13 after erasing the display of the mathematical formula writing information Gf. Although the mathematical formula information is displayed in a typed form, in still another embodiment, the display unit 14 displays the mathematical formula writing information Gf, and the mathematical formula recognition unit 13 displays the mathematical formula information based on the mathematical formula writing information Gf. When recognized, after displaying the mathematical formula information recognized by the mathematical formula recognition unit 13 at a position different from the position on the display surface where the mathematical formula writing information Gf is displayed, the display of the mathematical formula writing information Gf is deleted. Is also possible.

これによって、数式筆記情報Gfと活字によって表示された数式情報とを見比べることが可能となる。したがって、数式認識部13によって認識された数式情報が筆記によって入力した数式と一致するか否かを、容易に確認することができる。   This makes it possible to compare the mathematical expression writing information Gf with the mathematical expression information displayed by the type. Therefore, it can be easily confirmed whether or not the mathematical formula information recognized by the mathematical formula recognition unit 13 matches the mathematical formula input by writing.

また前述の実施形態において表示部14は、手書き図形ジェスチャGrが入力されると、手書き図形ジェスチャGrをそのまま表示するものとした。これに対し、さらに他の実施形態において表示部14は、筆記によって入力された手書き図形ジェスチャGrを表示し、領域認識部が手書き図形ジェスチャGrに基づいて領域指定情報を認識すると、表示部14は、手書き図形ジェスチャGrを消去した後、領域指定情報によって指定される領域に表示される数式情報を、指定される領域外に表示される数式情報に対して視認による区別可能とする表示を行う構成とすることも可能である。   In the above-described embodiment, when the handwritten graphic gesture Gr is input, the display unit 14 displays the handwritten graphic gesture Gr as it is. On the other hand, in still another embodiment, the display unit 14 displays the handwritten graphic gesture Gr input by writing, and when the region recognition unit recognizes the region designation information based on the handwritten graphic gesture Gr, the display unit 14 The configuration is such that, after erasing the handwritten figure gesture Gr, the mathematical expression information displayed in the area designated by the area designation information can be visually distinguished from the mathematical expression information displayed outside the designated area. It is also possible.

これは、指定された領域に表示される数式情報を囲む図形を表示画面30に表示させることによって、区別可能に表示してもよいし、指定された領域に表示される数式情報を、指定された領域外に表示される数式情報を表示する表示画面30上の表示とは異なる色によって表示してもよい。   This may be displayed in a distinguishable manner by displaying a figure surrounding the mathematical formula information displayed in the designated area on the display screen 30, or the mathematical formula information displayed in the designated area may be designated. The display may be displayed in a color different from the display on the display screen 30 for displaying the mathematical formula information displayed outside the area.

これによって、手書き図形ジェスチャGrによって指定された数式情報を、目視によって確認することが可能となる。したがって、筆記によって指定した範囲に誤りがあったり、領域認識部15による手書き図形ジェスチャGrに対する認識に誤りがあったりしても、確認の上、修正することが可能となる。   As a result, the mathematical formula information designated by the handwritten graphic gesture Gr can be visually confirmed. Therefore, even if there is an error in the range designated by writing, or there is an error in recognition of the handwritten graphic gesture Gr by the area recognition unit 15, it is possible to correct it after confirmation.

変数に代入された数式を表す内部数式情報と、この変数を表す変数情報を包含する外部数式情報とを数式認識部13が認識したときに、演算部18は、外部数式情報における変数情報を、内部数式情報に置換することよって新たな数式情報を生成する。これによって、変数を介して互いに関係付けられる複数の数式から、新たな数式を生成することができる。したがって、数式を完成した状態で入力しなくても、すでに数式の少なくとも一部を利用しながら、計算を続行させることができる。これによって、数式の入力および入力した数式の訂正を、容易に行うことができる。   When the formula recognizing unit 13 recognizes the internal formula information representing the formula assigned to the variable and the external formula information including the variable information representing the variable, the calculation unit 18 determines the variable information in the external formula information as follows: New mathematical formula information is generated by replacing the internal mathematical formula information. Thereby, a new mathematical expression can be generated from a plurality of mathematical expressions related to each other via a variable. Therefore, it is possible to continue the calculation while using at least a part of the mathematical formula without inputting the mathematical formula in a completed state. Thereby, it is possible to easily input a mathematical expression and correct the inputted mathematical expression.

前述の実施形態では、筆記入力手段120は、透明なポインティングデバイスを含んで構成され、表示部14の表示面に重ねて配置されるものとしたけれども、さらに他の実施形態において、筆記入力手段120は、不透明でかつ表示部14と別体に形成されてもよい。利用者は、表示部14による表示を見ながら、たとえばマウスなどのポインティングデバイスを操作することによって、数式情報の入力を行ってもよい。このように、ポインティングデバイスが不透明な場合における入力をも、「筆記」に含むものとする。   In the above-described embodiment, the writing input unit 120 is configured to include a transparent pointing device and is arranged so as to overlap the display surface of the display unit 14. In still another embodiment, the writing input unit 120 is used. May be opaque and formed separately from the display unit 14. The user may input mathematical formula information by operating a pointing device such as a mouse while viewing the display on the display unit 14. As described above, “writing” includes an input when the pointing device is opaque.

1 計算装置
11 制御部
12 入力部
13 数式認識部
14 表示部
15 領域認識部
16 操作認識部
17 操作後数式生成部
18 演算部
19 記憶部
20 筆記情報認識辞書
21 ジェスチャ処理ルール辞書
30 表示画面
31 表示入力領域
32 ジェスチャ開始ボタン
33 ジェスチャ終了ボタン
34 数式入力ボタン
120 筆記入力手段
121 文字認識手段
DESCRIPTION OF SYMBOLS 1 Calculation apparatus 11 Control part 12 Input part 13 Formula recognition part 14 Display part 15 Area | region recognition part 16 Operation recognition part 17 Post-operation mathematical expression generation part 18 Calculation part 19 Storage part 20 Writing information recognition dictionary 21 Gesture processing rule dictionary 30 Display screen 31 Display input area 32 Gesture start button 33 Gesture end button 34 Formula input button 120 Writing input means 121 Character recognition means

Claims (6)

筆記によって入力を行うための筆記入力手段を有する入力部であって、前記筆記入力手段は、筆記によって外力が付与された1または複数の部位の位置の情報を筆記情報として検出し、
前記筆記入力手段による検出結果を出力する入力部と、
前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を表す数式筆記情報を、数式情報として認識する数式認識部と、
表示を行う表示面が形成され、前記数式情報を前記表示面に表示する表示部と、
前記筆記情報のうち、前記表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する領域認識部と、
前記筆記情報のうち、前記領域指定情報によって指定される前記表示面上の領域に表示される数式情報に対する操作を表す手書き操作ジェスチャを、操作情報として認識する操作認識部と、
前記数式情報および前記操作情報に基づいて、前記操作が反映された数式を表す操作後数式情報を生成する操作後数式生成部と、
前記操作後数式生成部が操作後数式情報を生成したときに、前記操作後数式情報が表す数式に基づいて演算を行い演算結果を出力する演算部とを含むことを特徴とする計算装置。
An input unit having a writing input means for performing input by writing, wherein the writing input means detects, as writing information, information on positions of one or more parts to which an external force is applied by writing,
An input unit for outputting a detection result by the writing input unit;
Of the writing information input by writing using the writing input means, a mathematical expression recognition unit that recognizes mathematical expression writing information representing a mathematical expression as mathematical expression information,
A display surface for displaying, and a display unit for displaying the mathematical formula information on the display surface;
An area recognition unit for recognizing a handwritten figure gesture for designating an area on the display surface as the area designation information among the writing information;
An operation recognizing unit that recognizes, as operation information, a handwriting operation gesture representing an operation on mathematical formula information displayed in the region on the display surface specified by the region specifying information among the writing information;
A post-operation formula generation unit that generates post-operation formula information representing a formula reflecting the operation based on the formula information and the operation information;
A calculation device comprising: an arithmetic unit that performs an operation based on an equation represented by the post-operation formula information when the post-operation formula generation unit generates post-operation formula information, and outputs an operation result.
前記操作情報は、代入、置換、移動および削除のいずれか1つを意味する情報であることを特徴とする請求項1に記載の計算装置。   The computing apparatus according to claim 1, wherein the operation information is information meaning any one of substitution, replacement, movement, and deletion. 前記領域指定情報によって指定される領域に表示される数式情報を記憶する記憶部であって、
前記操作情報が、変数に対する代入を意味する情報である場合に、前記変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する記憶部をさらに含むことを特徴とする請求項2に記載の計算装置。
A storage unit for storing mathematical formula information displayed in an area designated by the area designation information;
When the operation information is information meaning assignment to a variable, the information further includes a storage unit that stores the information of the variable and mathematical expression information representing the mathematical expression assigned to the variable in association with each other, The calculation device according to claim 2.
前記表示部は、前記入力部に対する予め定める操作に応じて、前記記憶部に記憶される数式情報の少なくとも一部を表示することを特徴とする請求項3に記載の計算装置。   The calculation device according to claim 3, wherein the display unit displays at least a part of mathematical formula information stored in the storage unit in response to a predetermined operation on the input unit. コンピュータを、筆記によって入力を行うための筆記入力手段を有する入力部であって、
前記筆記入力手段は、筆記によって外力が付与された1または複数の部位の位置の情報を筆記情報として検出し、
前記筆記入力手段による検出結果を出力する入力部、
前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を表す筆記情報を、数式情報として認識する数式認識部、
表示を行う表示面が形成され、前記数式情報を前記表示面に表示する表示部、
前記筆記情報のうち、前記表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する領域認識部、
前記筆記情報のうち、前記領域指定情報によって指定される前記表示面上の領域に表示される数式情報に対する操作を表す手書き操作ジェスチャを、操作情報として認識する操作認識部、
前記数式情報および前記操作情報に基づいて、前記操作が反映された数式を表す操作後数式情報を生成する操作後数式生成部、および
前記操作後数式生成部が操作後数式情報を生成したときに、前記操作後数式情報が表す数式に基づいて演算を行い演算結果を出力する演算部として機能させることを特徴とする計算プログラム。
An input unit having a writing input means for inputting a computer by writing,
The writing input means detects, as writing information, information on positions of one or more parts to which an external force is applied by writing,
An input unit for outputting a detection result by the writing input unit;
Among the writing information input by writing using the writing input means, a mathematical expression recognition unit for recognizing writing information representing a mathematical expression as mathematical information,
A display surface for displaying is formed, and the display unit displays the mathematical formula information on the display surface.
An area recognition unit for recognizing handwritten graphic gestures for designating an area on the display surface as area designation information among the writing information,
An operation recognition unit that recognizes, as operation information, a handwriting operation gesture representing an operation on mathematical formula information displayed in the region on the display surface specified by the region specifying information among the writing information.
Based on the formula information and the operation information, a post-operation formula generation unit that generates post-operation formula information that represents a formula reflecting the operation, and when the post-operation formula generation unit generates post-operation formula information A calculation program that functions as a calculation unit that performs a calculation based on a formula represented by the formula information after the operation and outputs a calculation result.
請求項5に記載の計算プログラムが、コンピュータに読取り可能に記録されることを特徴とする記録媒体。   6. A recording medium in which the calculation program according to claim 5 is recorded so as to be readable by a computer.
JP2009203142A 2009-09-02 2009-09-02 Computing device, computing program, and recording medium recording the program Pending JP2011053986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009203142A JP2011053986A (en) 2009-09-02 2009-09-02 Computing device, computing program, and recording medium recording the program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009203142A JP2011053986A (en) 2009-09-02 2009-09-02 Computing device, computing program, and recording medium recording the program

Publications (1)

Publication Number Publication Date
JP2011053986A true JP2011053986A (en) 2011-03-17

Family

ID=43942908

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009203142A Pending JP2011053986A (en) 2009-09-02 2009-09-02 Computing device, computing program, and recording medium recording the program

Country Status (1)

Country Link
JP (1) JP2011053986A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013058047A1 (en) * 2011-10-21 2013-04-25 シャープ株式会社 Input device, input device control method, controlled device, electronic whiteboard system, control program, and recording medium
JP2013097643A (en) * 2011-11-02 2013-05-20 Konica Minolta Business Technologies Inc Handwriting input device and handwriting input control program
JP2013131066A (en) * 2011-12-21 2013-07-04 Sharp Corp Display system and display program
JPWO2016117564A1 (en) * 2015-01-21 2017-10-26 国立大学法人東京農工大学 Program, information storage medium and recognition device
WO2019235274A1 (en) * 2018-06-07 2019-12-12 ソニー株式会社 Control device, control method, program, and mobile unit

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013058047A1 (en) * 2011-10-21 2013-04-25 シャープ株式会社 Input device, input device control method, controlled device, electronic whiteboard system, control program, and recording medium
JP2013089203A (en) * 2011-10-21 2013-05-13 Sharp Corp Input device, input device control method, controlled device, electronic whiteboard system, control program, and recording medium
CN103890698A (en) * 2011-10-21 2014-06-25 夏普株式会社 Input device, input device control method, controlled device, electronic whiteboard system, control program, and recording medium
JP2013097643A (en) * 2011-11-02 2013-05-20 Konica Minolta Business Technologies Inc Handwriting input device and handwriting input control program
US9158450B2 (en) 2011-11-02 2015-10-13 Konica Minolta Business Technologies, Inc. Handwriting input device and handwriting input control program
JP2013131066A (en) * 2011-12-21 2013-07-04 Sharp Corp Display system and display program
JPWO2016117564A1 (en) * 2015-01-21 2017-10-26 国立大学法人東京農工大学 Program, information storage medium and recognition device
WO2019235274A1 (en) * 2018-06-07 2019-12-12 ソニー株式会社 Control device, control method, program, and mobile unit
JPWO2019235274A1 (en) * 2018-06-07 2021-06-17 ソニーグループ株式会社 Controls, control methods, programs, and mobiles
JP7331846B2 (en) 2018-06-07 2023-08-23 ソニーグループ株式会社 CONTROL DEVICE, CONTROL METHOD, PROGRAM, AND MOVING OBJECT

Similar Documents

Publication Publication Date Title
US6502114B1 (en) Script character processing method for determining word boundaries and interactively editing ink strokes using editing gestures
JP4244614B2 (en) Handwriting input device, program, and handwriting input method system
US6499043B1 (en) Script character processing method and system
JP4742132B2 (en) Input device, image processing program, and computer-readable recording medium
US6434581B1 (en) Script character processing method for interactively adjusting space between writing element
US7697001B2 (en) Personalized ink font
WO2014147722A1 (en) Electronic apparatus, method, and program
JP2010020795A (en) Interfacing with ink
JP2011053986A (en) Computing device, computing program, and recording medium recording the program
US7295206B2 (en) Ink input region adjustments
WO2014147712A1 (en) Information processing device, information processing method and program
WO2015136618A1 (en) Electronic device, method, and program
JP2012108760A (en) Electronic information board device, information display method, and program
CN104615367B (en) The pen-based interaction method and system of processing are judged based on handwriting input state self-adaption
JP2009151449A (en) Electric blackboard with undo function
JP2002091676A (en) Input device
JP2004013318A (en) Method, apparatus, and program for information processing
TWI676932B (en) Input method and system of electronic device
JP2009048655A (en) Handwriting input device, program, and handwriting input method system
US20150347835A1 (en) Electronic device, handwritten document search method and storage medium
Zeleznik et al. Designing UI techniques for handwritten mathematics
JP2011081749A (en) Control device, control method, control program, and recording medium
JP6918252B2 (en) Ink data generator, method and program
WO2016067417A1 (en) Electronic instrument, method and program
JP3200249B2 (en) Document processing device