JP5471126B2 - Electronic device and program - Google Patents

Electronic device and program Download PDF

Info

Publication number
JP5471126B2
JP5471126B2 JP2009178685A JP2009178685A JP5471126B2 JP 5471126 B2 JP5471126 B2 JP 5471126B2 JP 2009178685 A JP2009178685 A JP 2009178685A JP 2009178685 A JP2009178685 A JP 2009178685A JP 5471126 B2 JP5471126 B2 JP 5471126B2
Authority
JP
Japan
Prior art keywords
display
character
mathematical expression
designated
character portion
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.)
Active
Application number
JP2009178685A
Other languages
Japanese (ja)
Other versions
JP2011034263A (en
Inventor
博明 吉澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2009178685A priority Critical patent/JP5471126B2/en
Publication of JP2011034263A publication Critical patent/JP2011034263A/en
Application granted granted Critical
Publication of JP5471126B2 publication Critical patent/JP5471126B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、電子機器及びプログラムに関する。   The present invention relates to an electronic device and a program.

従来より、入力される各種数式の演算を実行して演算結果を表示する電子機器として、関数電卓が知られている。   2. Description of the Related Art Conventionally, scientific calculators are known as electronic devices that execute calculations of various input mathematical expressions and display the calculation results.

このような関数電卓では、近年、取り扱える関数の種類が多くなってきており、積分等の複雑な演算を行うことが可能となっている。但し、入力キー群を操作して積分等の数式を入力するには、上下限値や被演算関数を決められた順序でキー入力しなければならないため、入力作業に手間がかかってしまう。そこで、タッチパネルによって数式の手書き入力を行わせ、入力された数式を認識する技術が開発されている(例えば、特許文献1参照)。   In such scientific calculators, in recent years, the types of functions that can be handled are increasing, and it is possible to perform complex operations such as integration. However, in order to input mathematical expressions such as integrals by operating the input key group, it is necessary to input the upper and lower limit values and the operand function in a predetermined order. Thus, a technique has been developed in which a mathematical expression is input by handwriting using a touch panel and the inputted mathematical expression is recognized (see, for example, Patent Document 1).

特開2007−72718号公報JP 2007-72718 A

しかしながら、手書き入力時の筆跡や入力スピードはユーザの個人個人で異なっているため、数式を手書き入力させて認識する場合には、例えば、認識した文字自体は合っていても、数式内での認識位置がズレてしまうことが十分考えられる。   However, the handwriting input speed and input speed are different for each individual user, so when recognizing a mathematical expression by handwriting, for example, even if the recognized character is correct, it is recognized in the mathematical expression. It is conceivable that the position will shift.

このような場合、文字の位置を修正するためには、ユーザに数式を再入力させることも考えられるが、手間がかかってしまうし、再入力時にも文字の誤認識や認識位置のズレが発生する可能性があるため、使い勝手が悪い。
そのため、近年、手書き入力された数式中での文字位置を容易に修正できる技術について、要望が強まっている。
In such a case, in order to correct the position of the character, it may be possible for the user to re-enter the mathematical formula, but it takes time, and misrecognition of the character or misalignment of the recognition position occurs even when re-input. It is not easy to use.
Therefore, in recent years, there has been a growing demand for a technique that can easily correct the character position in a mathematical expression input by handwriting.

本発明の課題は、手書き入力された数式中での文字位置を容易に修正できるようにすることである。   An object of the present invention is to make it possible to easily correct a character position in a mathematical expression input by handwriting.

以上の課題を解決するため、請求項1に記載の発明は、電子機器において、
タッチパネルを有する表示手段と、
前記タッチパネルに手書き入力された数式を認識し、当該認識された数式を前記表示手段に表示させる手書き数式認識手段と、
前記表示手段に表示された数式中の各文字部分の何れかについて、文字位置の変更指示をユーザから受ける位置変更指示手段と、
前記表示手段に表示された数式中の各文字部分のうち、前記位置変更指示手段によって指定された指定文字部分と、この指定文字部分よりも前に位置する前方文字部分とを検出するとともに、前記前方文字部分に対する前記指定文字部分の位置関係が互いに異なる複数の変更先候補を前記表示手段に表示させて、何れかの変更先候補をユーザに選択させる候補表示制御手段と、
ユーザに選択された変更先候補に従って前記前方文字部分に対する前記指定文字部分の位置を変更し、前記表示手段の表示内容を更新する更新手段と、
を備えることを特徴とする。
In order to solve the above problems, the invention according to claim 1 is an electronic device.
Display means having a touch panel;
Recognizing a mathematical expression input by handwriting on the touch panel, and displaying the recognized mathematical expression on the display means;
Position change instruction means for receiving a character position change instruction from the user for any of the character parts in the mathematical expression displayed on the display means;
Among the character parts in the mathematical expression displayed on the display means, a designated character part designated by the position change instruction means and a forward character part located before the designated character part are detected, and Candidate display control means for causing the display means to display a plurality of change destination candidates whose positional relationship of the designated character portion with respect to the front character portion is different from each other, and for allowing the user to select any change destination candidate;
Updating means for changing the position of the designated character portion relative to the forward character portion according to the change destination candidate selected by the user, and updating the display content of the display means;
It is characterized by providing.

また、請求項2記載の発明は、請求項1記載の電子機器において、
前記手書き数式認識手段は、
認識された数式を自然表示形式で前記表示手段に表示させるための表示用データ形式と、認識された数式を演算するための演算用データ形式とのそれぞれの数式データを生成するデータ生成手段を有し、
前記候補表示制御手段は、
前記表示用データ形式の数式データに基づいて、前記複数の変更先候補を生成することを特徴とする。
The invention according to claim 2 is the electronic device according to claim 1,
The handwritten mathematical expression recognition means includes:
Data generation means for generating respective formula data in a display data format for displaying the recognized formula on the display means in a natural display format and a calculation data format for calculating the recognized formula is provided. And
The candidate display control means includes
The plurality of change destination candidates are generated based on mathematical expression data in the display data format.

また、請求項3記載の発明は、請求項2記載の電子機器において、
前記候補表示制御手段は、少なくとも、
前記前方文字部分と前記指定文字部分とを同じ大きさでこの順に並べた変更先候補と、
前記指定文字部分を前記前方文字部分の指数とした変更先候補とを生成することを特徴とする。
The invention described in claim 3 is the electronic device according to claim 2,
The candidate display control means is at least
A change destination candidate in which the front character portion and the designated character portion are arranged in this order with the same size;
A change destination candidate having the designated character portion as an index of the forward character portion is generated.

また、請求項記載の発明は、プログラムにおいて、
タッチパネルを有する表示手段を備えた電子機器のコンピュータを、
前記タッチパネルに手書き入力された数式を認識し、当該認識された数式を前記表示手段に表示させる手書き数式認識手段と、
前記表示手段に表示された数式中の各文字部分の何れかについて、文字位置の変更指示をユーザから受ける位置変更指示手段と、
前記表示手段に表示された数式中の各文字部分のうち、前記位置変更指示手段によって指定された指定文字部分と、この指定文字部分よりも前に位置する前方文字部分とを検出するとともに、前記前方文字部分に対する前記指定文字部分の位置関係が互いに異なる複数の変更先候補を前記表示手段に表示させて、何れかの変更先候補をユーザに選択させる候補表示制御手段と、
ユーザに選択された変更先候補に従って前記前方文字部分に対する前記指定文字部分の位置を変更し、前記表示手段の表示内容を更新する更新手段と、
として機能させることを特徴とする。
According to a fourth aspect of the present invention, in the program,
A computer of an electronic device provided with display means having a touch panel,
Recognizing a mathematical expression input by handwriting on the touch panel, and displaying the recognized mathematical expression on the display means;
Position change instruction means for receiving a character position change instruction from the user for any of the character parts in the mathematical expression displayed on the display means;
Among the character parts in the mathematical expression displayed on the display means, a designated character part designated by the position change instruction means and a forward character part located before the designated character part are detected, and Candidate display control means for causing the display means to display a plurality of change destination candidates whose positional relationship of the designated character portion with respect to the front character portion is different from each other, and for selecting any of the change destination candidates,
Updating means for changing the position of the designated character portion relative to the forward character portion according to the change destination candidate selected by the user, and updating the display content of the display means;
It is made to function as.

請求項1,記載の発明によれば、表示された数式中の各文字部分の何れかについて、文字位置の変更指示をユーザが行うと、表示された数式中の各文字部分のうち、指定された指定文字部分と、この指定文字部分よりも前に位置する前方文字部分とが検出され、前方文字部分に対する指定文字部分の位置関係が互いに異なる複数の変更先候補が表示され、何れかの変更先候補をユーザが選択すると、選択された変更先候補に従って前方文字部分に対する指定文字部分の位置が変更され、表示内容が更新されるので、認識した文字自体が合っていて数式内での認識位置がズレている場合であっても、文字位置の変更指示を行って変更先候補を選択するだけで、数式中での文字位置を修正することができる。従って、数式を再入力する場合と比較して、手書き入力された数式中での文字位置を容易に修正することができる。 According to the first and fourth aspects of the invention, when the user gives an instruction to change the character position for any of the character parts in the displayed mathematical expression, the designation is made among the character parts in the displayed mathematical expression. The designated character part and the front character part located before the designated character part are detected, and a plurality of change destination candidates having different positional relationships of the designated character part with respect to the front character part are displayed. When the user selects a change destination candidate, the position of the designated character portion relative to the forward character portion is changed according to the selected change destination candidate, and the display content is updated, so that the recognized character matches and is recognized in the formula. Even if the position is misaligned, the character position in the mathematical formula can be corrected by simply instructing the character position change and selecting the change destination candidate. Therefore, the character position in the mathematical expression input by handwriting can be easily corrected as compared with the case of re-inputting the mathematical expression.

関数電卓の概略構成を示す平面図である。It is a top view which shows schematic structure of a scientific calculator. 関数電卓の機能構成を示すブロック図である。It is a block diagram which shows the function structure of a scientific calculator. 数式表示データのデータ構造を示す図である。It is a figure which shows the data structure of numerical formula display data. 数式テキストデータのデータ構造を示す図である。It is a figure which shows the data structure of numerical formula text data. 数式テキストデータのデータ構造を示す図である。It is a figure which shows the data structure of numerical formula text data. 手書き入力処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a handwriting input process. 認識・表示処理の流れを示すフローチャートである。It is a flowchart which shows the flow of recognition and a display process. 手書き入力処理を説明するための図である。It is a figure for demonstrating handwriting input processing. 手書き入力処理を説明するための図である。It is a figure for demonstrating handwriting input processing. 関数部品バッファの構造を示す図である。It is a figure which shows the structure of a function component buffer. 関数部品バッファの構造を示す図である。It is a figure which shows the structure of a function component buffer. 自動訂正処理の流れを示すフローチャートである。It is a flowchart which shows the flow of an automatic correction process. 手書き入力処理を説明するための図である。It is a figure for demonstrating handwriting input processing.

以下、添付図面を参照して本発明に係る実施の形態の一例を詳細に説明する。ただし、発明の範囲は、図示例に限定されない。   Hereinafter, an example of an embodiment according to the present invention will be described in detail with reference to the accompanying drawings. However, the scope of the invention is not limited to the illustrated examples.

(第1の実施形態)
先ず、図1〜図9を参照して、本発明に係る第1の実施形態を説明する。
[1.1 外観構成]
図1は、本発明に係る電子機器を適用した関数電卓1の概略構成を示す平面図である。
この図に示すように、関数電卓1は、各種キー群を有する入力キー群2と、ディスプレイ3と、を備えている。
(First embodiment)
First, a first embodiment according to the present invention will be described with reference to FIGS.
[1.1 External configuration]
FIG. 1 is a plan view showing a schematic configuration of a scientific calculator 1 to which an electronic apparatus according to the present invention is applied.
As shown in the figure, the scientific calculator 1 includes an input key group 2 having various key groups and a display 3.

入力キー群2は、ユーザから数値や演算記号等(以下、これらを包括して「文字」とも称する)の数式構成要素の入力操作を受けたり、各種処理の指示操作を受けたりするためのキー群であり、それぞれ固有の機能を割り当てられた複数のキーを備えている。本実施の形態においては、入力キー群2は、数式の演算を指示するためのEXEキー20や、数式内容の訂正を指示するための訂正キー21などを有している。   The input key group 2 is a key for receiving an input operation of a mathematical expression component such as a numerical value, an operation symbol, etc. (hereinafter collectively referred to as “character”) or an instruction operation of various processes from the user. A group is provided with a plurality of keys each assigned a unique function. In the present embodiment, the input key group 2 has an EXE key 20 for instructing calculation of a mathematical expression, a correction key 21 for instructing correction of the contents of the mathematical expression, and the like.

ディスプレイ3は、LCD(Liquid Crystal Display)やELD(Electronic Luminescent Display)等により構成されており、入力キー群2などの操作に応じた文字や符号、数式、演算結果などの他、関数電卓1を使用するために必要な各種データを表示するようになっている。このディスプレイ3には、本発明における位置変更指示手段としてのタッチパネル30(図2参照)が表示画面全面に亘って一体的に設けられている。   The display 3 is composed of an LCD (Liquid Crystal Display), an ELD (Electronic Luminescent Display), etc. In addition to characters, symbols, mathematical formulas, calculation results, etc. according to the operation of the input key group 2, the scientific calculator 1 Various data necessary for use is displayed. The display 3 is integrally provided with a touch panel 30 (see FIG. 2) as position change instruction means in the present invention over the entire display screen.

タッチパネル30は、ディスプレイ3の表示画面に対する入力ペン(図示省略)の接触位置を検出するようになっている。具体的には、タッチパネル30は、例えば、表示画面の全域、或いは表示画面よりも内側に設けられ、電磁誘導方式、磁気歪式、感圧式等の方式により、表示画面上における接触位置のXY座標を検出する。   The touch panel 30 detects a contact position of an input pen (not shown) with respect to the display screen of the display 3. Specifically, the touch panel 30 is provided, for example, on the entire display screen or on the inner side of the display screen, and the XY coordinates of the contact position on the display screen by an electromagnetic induction method, a magnetostriction method, a pressure sensitive method, or the like. Is detected.

[1.2 機能構成]
続いて、関数電卓1の機能構成を説明する。
図2は、関数電卓1の概略的な機能構成を示すブロック図である。
[1.2 Functional configuration]
Next, the functional configuration of the scientific calculator 1 will be described.
FIG. 2 is a block diagram illustrating a schematic functional configuration of the scientific calculator 1.

この図に示すように、関数電卓1は、キー入力部14と、本発明における表示手段としての表示部15と、RAM(Random Access Memory)12と、記憶部13と、本発明における手書き数式認識手段、候補表示制御手段、更新手段及びデータ生成手段としてのCPU(Central Processing Unit)11と、を備えて構成されている。   As shown in this figure, the scientific calculator 1 includes a key input unit 14, a display unit 15 as display means in the present invention, a RAM (Random Access Memory) 12, a storage unit 13, and handwritten mathematical expression recognition in the present invention. A CPU (Central Processing Unit) 11 as means, candidate display control means, update means, and data generation means.

キー入力部14は、上述の入力キー群2を備えており、押下されたキーに対応する操作信号をCPU11に出力するようになっている。   The key input unit 14 includes the input key group 2 described above, and outputs an operation signal corresponding to the pressed key to the CPU 11.

表示部15は、上述のディスプレイ3を備えており、CPU11からの表示信号に従って各種情報をディスプレイ3に表示するようになっている。また、この表示部15は、ディスプレイ3と一体的に設けられたタッチパネル30を備えており、表示画面に対する入力ペンの接触位置情報をCPU11に出力するようになっている。   The display unit 15 includes the display 3 described above, and displays various types of information on the display 3 in accordance with display signals from the CPU 11. Further, the display unit 15 includes a touch panel 30 provided integrally with the display 3, and outputs contact position information of the input pen with respect to the display screen to the CPU 11.

RAM12は、情報を一時的に格納する揮発性のメモリであり、実行される各種プログラムやこれら各種プログラムに係るデータ等を格納する複数のワークエリアを有する。具体的には、本実施の形態におけるRAM12には、表示ビットマップデータ120と、入力座標データ121と、入力イメージデータ122と、数式表示データ123と、数式テキストデータ124とが格納されるようになっている。   The RAM 12 is a volatile memory that temporarily stores information, and has a plurality of work areas that store various programs to be executed and data related to these various programs. Specifically, the display bitmap data 120, the input coordinate data 121, the input image data 122, the formula display data 123, and the formula text data 124 are stored in the RAM 12 in the present embodiment. It has become.

このうち、表示ビットマップデータ120は、ディスプレイ3に表示される画像のビットマップデータである。
入力座標データ121は、タッチパネル30に対してペンタッチ入力(手書き入力)された座標位置(ペンタッチ入力された時点での座標位置)を示すデータである。
入力イメージデータ122は、タッチパネル30に対してペンタッチ入力されたデータの座標列を示すデータである。
Among these, the display bitmap data 120 is bitmap data of an image displayed on the display 3.
The input coordinate data 121 is data indicating a coordinate position (coordinate position at the time of pen touch input) that has been pen touch input (handwritten input) to the touch panel 30.
The input image data 122 is data indicating a coordinate sequence of data input by pen touch on the touch panel 30.

数式表示データ123は、認識された数式を自然表示形式でディスプレイ3に表示させるためのデータであり、表示用のデータ形式で表されている。より具体的には、図3に一例を示すように、数式表示データ123は、表示の位置及び大きさを示すコードCと、コードCによる表示対象の文字との組で構成されている。なお、図3では、後述の図8(c)に図示される積分関数の数式についての数式表示データ123を示しており、各コードCの内容を簡略化して図示している。この図に示すように、コードC1〜C7は、積分記号「∫」,積分変数の上限値「2」,下限値「1」,被積分関数の文字「x」,「2」,被積分関数の終了記号「d」,積分変数「x」について、表示の位置及び大きさをそれぞれ示している。   The mathematical expression display data 123 is data for displaying the recognized mathematical expression on the display 3 in a natural display format, and is expressed in a display data format. More specifically, as shown in an example in FIG. 3, the mathematical expression display data 123 is configured by a set of a code C indicating a display position and size and a character to be displayed by the code C. FIG. 3 shows formula display data 123 for the formula of the integral function shown in FIG. 8C described later, and the contents of each code C are shown in a simplified manner. As shown in this figure, codes C1 to C7 include an integral symbol “∫”, an integral variable upper limit value “2”, a lower limit value “1”, an integrand character “x”, “2”, and an integrand. For the end symbol “d” and the integral variable “x”, the position and size of the display are shown.

数式テキストデータ124は、認識された数式を演算するためのデータであり、演算用のデータ形式で表されている。より具体的には、図4,図5に一例を示すように、数式テキストデータ124は、いわゆる一行表示形式で記述されている。   The mathematical formula text data 124 is data for computing the recognized mathematical formula, and is expressed in a data format for computation. More specifically, as shown in FIG. 4 and FIG. 5, the formula text data 124 is described in a so-called one-line display format.

記憶部13は、ROM(Read Only Memory)等により構成される不揮発性のメモリであり、各種プログラム及び各種データを記憶している。具体的には、記憶部13は、本発明に係るプログラムとしての手書き入力プログラム130を記憶している。
この手書き入力プログラム130は、後述の手書き入力処理(図6〜図7参照)をCPU11に実行させるためのプログラムである。
The storage unit 13 is a non-volatile memory composed of a ROM (Read Only Memory) or the like, and stores various programs and various data. Specifically, the storage unit 13 stores a handwriting input program 130 as a program according to the present invention.
The handwriting input program 130 is a program for causing the CPU 11 to execute handwriting input processing (see FIGS. 6 to 7) described later.

CPU11は、関数電卓1の各部を中央制御する。具体的には、CPU11は、記憶部13に記憶されているシステムプログラム及び各種アプリケーションプログラムの中から指定されたプログラムをRAM12に展開し、RAM12に展開されたプログラムとの協働で、各種処理を実行する。   The CPU 11 centrally controls each part of the scientific calculator 1. Specifically, the CPU 11 expands a program specified from the system program and various application programs stored in the storage unit 13 in the RAM 12 and performs various processes in cooperation with the program expanded in the RAM 12. Run.

[1.3 関数電卓の動作]
続いて、関数電卓1の動作を説明する。
図6〜図7は、手書き入力処理の動作を説明するためのフローチャートである。なお、この手書き入力処理は、ユーザによりタッチパネル30やキー入力部14を介して手書き入力処理の実行指示が入力されると、記憶部13から手書き入力プログラムが読み出されてRAM12に適宜展開される結果、当該手書き入力プログラム130とCPU11との協働によって実行される。なお、処理の開始時には、数式はペンタッチ入力されておらず、ディスプレイ3には何も表示されていないものとする。
[1.3 Operation of scientific calculator]
Next, the operation of the scientific calculator 1 will be described.
6 to 7 are flowcharts for explaining the operation of the handwriting input process. In the handwriting input process, when a user inputs an instruction to execute the handwriting input process via the touch panel 30 or the key input unit 14, a handwriting input program is read from the storage unit 13 and appropriately expanded in the RAM 12. As a result, the handwriting input program 130 and the CPU 11 are executed in cooperation. At the start of the process, it is assumed that the mathematical formula is not input by pen touch and nothing is displayed on the display 3.

この手書き入力処理においては、まず、図6に示すように、CPU11は訂正キー21が操作されるか否かを判定し(ステップS1)、操作されないと判定した場合(ステップS1;No)には、タッチパネル30に対するペンタッチ操作がされるか否かを判定する(ステップS2)。具体的には、ペンタッチ入力されたことを示す信号をタッチパネル30からCPU11が受信したか否かに基づいて、ステップS2の判別が行われる。   In this handwriting input process, first, as shown in FIG. 6, the CPU 11 determines whether or not the correction key 21 is operated (step S1), and when it is determined that the correction key 21 is not operated (step S1; No). Then, it is determined whether or not a pen touch operation is performed on the touch panel 30 (step S2). Specifically, the determination in step S <b> 2 is performed based on whether the CPU 11 has received a signal indicating that a pen touch input has been performed from the touch panel 30.

このステップS2においてペンタッチ操作がされないと判定した場合(ステップS2;No)には、CPU11は、上述のステップS1に移行し、ペンタッチ操作がされたと判定した場合(ステップS2;Yes)には、タッチパネル30に対する数式の手書き入力を受け付け、入力された内容をディスプレイ3に表示させる(ステップS3)。具体的には、ペンタッチ入力された座標位置を示す入力座標データ121がタッチパネル30からCPU11に送信されると、CPU11は、この入力座標データ121をRAM12に記憶させる。また、CPU11は、入力座標データ121に応じた入力イメージデータ122を生成してRAM12に記憶させるとともに、ペンタッチの軌跡として表示部15に表示させる。   If it is determined in step S2 that the pen touch operation is not performed (step S2; No), the CPU 11 proceeds to step S1 described above, and if it is determined that the pen touch operation is performed (step S2; Yes), the touch panel. A mathematical expression handwritten input for 30 is received, and the input content is displayed on the display 3 (step S3). Specifically, when input coordinate data 121 indicating a coordinate position input by pen touch is transmitted from the touch panel 30 to the CPU 11, the CPU 11 stores the input coordinate data 121 in the RAM 12. In addition, the CPU 11 generates input image data 122 corresponding to the input coordinate data 121 and stores the input image data 122 in the RAM 12, and displays the input image data 122 on the display unit 15 as a pen touch locus.

次に、CPU11は、タッチパネル30からペンが離れるか否かを判定し(ステップS4)、離れていないと判定した場合(ステップS4;No)には、上述のステップS3に移行する。具体的には、このステップS4では、CPU11は、ペン離れから所定の時間が経過しているか否かを判定する。つまり、複数のストロークで構成される文字の入力や、複数の文字の入力において、入力途中のペン離れにより認識処理が開始されることを防止する必要があるために、所定の時間が経過しているか否かの判別が行われる。なお、所定の時間は、予めユーザにより設定された時間であり、記憶部13等に記憶されているものとする。   Next, the CPU 11 determines whether or not the pen is separated from the touch panel 30 (step S4). When it is determined that the pen is not separated (step S4; No), the CPU 11 proceeds to the above step S3. Specifically, in this step S4, the CPU 11 determines whether or not a predetermined time has passed since the pen separation. In other words, it is necessary to prevent the recognition process from being started due to the separation of the pen in the middle of the input of characters composed of a plurality of strokes or the input of a plurality of characters. It is determined whether or not there is. The predetermined time is a time set in advance by the user and is stored in the storage unit 13 or the like.

一方、ステップS4において所定の時間だけタッチパネル30からペンが離れたと判定した場合(ステップS4;Yes)には、CPU11は、入力イメージデータ122に基づいて数式を認識できるか否かを判定する(ステップS5)。   On the other hand, when it is determined in step S4 that the pen has been removed from the touch panel 30 for a predetermined time (step S4; Yes), the CPU 11 determines whether the mathematical expression can be recognized based on the input image data 122 (step S4). S5).

このステップS5において、認識できないと判定した場合(ステップS5;No)には、CPU11は、後述のステップS7を経由してステップS1に戻り、次のペン入力を待機する。   If it is determined in step S5 that it cannot be recognized (step S5; No), the CPU 11 returns to step S1 via step S7 described later and waits for the next pen input.

一方、ステップS5において、認識できると判定した場合(ステップS5;Yes)には、CPU11は、認識・表示処理を行う(ステップS6)。   On the other hand, if it is determined in step S5 that recognition is possible (step S5; Yes), the CPU 11 performs recognition / display processing (step S6).

具体的には、図7に示すように、まずCPU11は、入力イメージデータ122に基づいて入力形状を認識するとともに(ステップT1)、その大きさ及び位置を認識する(ステップT2)。   Specifically, as shown in FIG. 7, first, the CPU 11 recognizes the input shape based on the input image data 122 (step T1), and recognizes its size and position (step T2).

次に、CPU11は、ステップT1〜T2での認識結果に基づいて、手書き入力された数式を認識するとともに、数式表示データ123及び数式テキストデータ124を生成し、RAM12に記憶させる(ステップT3、T4)。   Next, the CPU 11 recognizes the mathematical formula input by handwriting based on the recognition results in steps T1 and T2, and generates mathematical formula display data 123 and mathematical formula text data 124, and stores them in the RAM 12 (steps T3 and T4). ).

そして、CPU11は、数式表示データ123に基づいて、認識された数式を自然表示形式のテキストとしてディスプレイ3に表示させ(ステップT5)、認識・表示処理を終了する。なお、このステップT5においては、CPU11は、入力イメージデータ122に基づいて、手書き入力された数式のビットマップもディスプレイ3に表示させるようになっている。   Then, the CPU 11 displays the recognized mathematical expression on the display 3 as natural display text based on the mathematical expression display data 123 (step T5), and ends the recognition / display processing. In step T <b> 5, the CPU 11 displays the bitmap of the mathematical formula input by handwriting on the display 3 based on the input image data 122.

以上の認識・表示処理が終了したら、図6に示すように、CPU11は、ユーザによりEXEキー20が操作されるか否かを判定し(ステップS7)、操作されないと判定した場合(ステップS7;No)には、上述のステップS1に移行する。   When the above recognition / display processing is completed, as shown in FIG. 6, the CPU 11 determines whether or not the EXE key 20 is operated by the user (step S7), and determines that it is not operated (step S7; No) shifts to the above-mentioned step S1.

一方、ステップS7においてEXEキー20が操作されたと判定した場合(ステップS7;Yes)には、CPU11は、数式テキストデータ124に基づいて、認識された数式の演算を実行し、演算結果をディスプレイ3に表示させ(ステップS8)、手書き入力処理を終了する。   On the other hand, if it is determined in step S7 that the EXE key 20 has been operated (step S7; Yes), the CPU 11 executes the calculation of the recognized mathematical expression based on the mathematical expression text data 124, and displays the calculation result on the display 3. (Step S8), and the handwriting input process is terminated.

また、上述のステップS1において訂正キー21が操作されたと判定した場合(ステップS1;Yes)には、CPU11は、ディスプレイ3に表示されている数式のテキスト部分がペンタッチされるか否かを判定する(ステップS11)。   If it is determined in step S1 that the correction key 21 has been operated (step S1; Yes), the CPU 11 determines whether the text portion of the mathematical expression displayed on the display 3 is touched with a pen. (Step S11).

このステップS11においてテキスト部分がペンタッチされないと判定した場合(ステップS11;No)には、CPU11は他の処理へ移行する。   If it is determined in step S11 that the text portion is not touched with a pen (step S11; No), the CPU 11 proceeds to another process.

一方、ステップS11においてテキスト部分がペンタッチされたと判定した場合(ステップS11;Yes)には、CPU11は、数式表示データ123に基づいて、ペンタッチにより指定された文字部分(以下、指定文字部分とする)と、この指定文字部分よりも前(左側)に位置する前方文字部分とを検出し、前方文字部分に対する指定文字部分の位置関係が互いに異なる複数の変更先候補を生成する(ステップS12)。より詳細には、このステップS12において、CPU11は、前方文字部分と指定文字部分とを同じ大きさでこの順に並べた変更先候補と、指定文字部分を前方文字部分の指数とした変更先候補との少なくとも2つの候補を生成するようになっている。   On the other hand, if it is determined in step S11 that the text part has been touched with a pen (step S11; Yes), the CPU 11 designates a character part designated by pen touch based on the mathematical expression display data 123 (hereinafter referred to as a designated character part). Then, the front character portion positioned before (on the left side of) the designated character portion is detected, and a plurality of change destination candidates having different positional relationships of the designated character portion with respect to the front character portion are generated (step S12). More specifically, in this step S12, the CPU 11 determines a change destination candidate in which the forward character portion and the designated character portion are arranged in this order in the same size, a change destination candidate having the designated character portion as an index of the forward character portion, At least two candidates are generated.

次に、CPU11は、生成した変換先候補をディスプレイ3に一覧表示させ(ステップS13)、何れかの変換先候補がユーザに選択されるか否かを判定する(ステップS14)。   Next, the CPU 11 displays a list of the generated conversion destination candidates on the display 3 (step S13), and determines whether any conversion destination candidate is selected by the user (step S14).

このステップS14において変換先候補が選択されないと判定した場合(ステップS14;No)には、CPU11は、選択が行われるまでステップS14の処理を繰り返す。   If it is determined in step S14 that no conversion destination candidate is selected (step S14; No), the CPU 11 repeats the process of step S14 until selection is performed.

一方、ステップS14において何れかの変換先候補が選択されたと判定した場合(ステップS14;Yes)には、選択された変換先候補に従って前方文字部分に対する指定文字部分の位置を変更し、数式表示データ123及び数式テキストデータ124の内容と、ディスプレイ3の表示内容とを更新した後(ステップS15)、上述のステップS7に移行する。   On the other hand, if it is determined in step S14 that any conversion destination candidate has been selected (step S14; Yes), the position of the designated character portion with respect to the forward character portion is changed according to the selected conversion destination candidate, and the mathematical expression display data 123 and the contents of the formula text data 124 and the display contents of the display 3 are updated (step S15), and then the process proceeds to the above-described step S7.

[1.4 動作例]
続いて、上記の手書き入力処理のうち、特にステップS11〜S15の処理について、具体的に説明する。
[1.4 Operation example]
Next, among the above handwriting input processes, the processes of steps S11 to S15 will be specifically described.

(動作例1)
まず、図8(a)の中央部に示すような数式をユーザが手書き入力すると(ステップS3)、図中の左上部に示すような数式が認識され、自然表示形式のテキストとして表示される(ステップS6)。なお、ここで認識された数式では、ユーザが積分変数として手書き入力した文字「x」について、数式内での認識位置がズレている。
(Operation example 1)
First, when the user manually inputs a mathematical expression as shown in the center of FIG. 8A (step S3), the mathematical expression as shown in the upper left part of the figure is recognized and displayed as text in a natural display format ( Step S6). In the mathematical formula recognized here, the recognition position in the mathematical formula is shifted with respect to the character “x” input by handwriting as an integration variable by the user.

次に、ユーザが訂正キー21を操作し(ステップS1;Yes)、認識位置のズレている文字「x」の部分をペンタッチにより指定すると(ステップS11;Yes)、図8(b)に示すように、指定文字部分「x」と、その直前の前方文字部分「d」とが検出され、指定文字部分「x」を前方文字部分「d」の指数とした1番目の変換先候補「1:dx」と、前方文字部部分「d」と指定文字部分「x」とが同じ大きさで並べられた2番目の変換先候補「2:dx」と、指定文字部分「x」を前方文字部分「d」の下付き文字とした3番目の変換先候補「3:dx」とが表示される(ステップS13)。 Next, when the user operates the correction key 21 (step S1; Yes) and designates the portion of the character “x” whose recognition position is shifted by the pen touch (step S11; Yes), as shown in FIG. 8B. Then, the designated character part “x” and the immediately preceding character part “d” are detected, and the first conversion destination candidate “1:” with the designated character part “x” as an index of the forward character part “d” is detected. d x ”, the second conversion destination candidate“ 2: dx ”in which the front character portion“ d ”and the designated character portion“ x ”are arranged in the same size, and the designated character portion“ x ” The third conversion destination candidate “3: d x ” as a subscript of the part “d” is displayed (step S13).

そして、ユーザが2番目の変換先候補「2:dx」を選択すると(ステップS14;Yes)、図8(c)や図4に示すように、この変換先候補に従って前方文字部分「d」に対する指定文字部分「x」の位置が変更され、数式表示データ123及び数式テキストデータ124の内容と、ディスプレイ3の表示内容とが更新される(ステップS15)。   When the user selects the second conversion destination candidate “2: dx” (step S14; Yes), as shown in FIG. 8C and FIG. 4, the forward character portion “d” is selected according to the conversion destination candidate. The position of the designated character part “x” is changed, and the contents of the mathematical expression display data 123 and mathematical expression text data 124 and the display contents of the display 3 are updated (step S15).

(動作例2)
まず、図9(a)の中央部に示すような数式をユーザが手書き入力すると(ステップS3)、図中の左上部に示すような数式が認識され、自然表示形式のテキストとして表示される(ステップS6)。なお、ここで認識された数式では、ユーザが「x」の指数として手書き入力した文字「2」について、数式内での認識位置がズレている。
(Operation example 2)
First, when the user inputs a mathematical expression as shown in the center of FIG. 9A by handwriting (step S3), the mathematical expression as shown in the upper left part of the figure is recognized and displayed as text in a natural display format ( Step S6). In the mathematical expression recognized here, the recognition position in the mathematical expression is shifted with respect to the character “2” handwritten and input by the user as the index of “x”.

次に、ユーザが訂正キー21を操作し(ステップS1;Yes)、認識位置のズレている文字「2」の部分をペンタッチにより指定すると(ステップS11;Yes)、図9(b)に示すように、指定文字部分「2」と、その直前の前方文字部分「x」とが検出され、指定文字部分「2」を前方文字部分「x」の指数とした1番目の変換先候補「1:x2」と、前方文字部部分「x」と指定文字部分「2」とが同じ大きさで並べられた2番目の変換先候補「2:x2」とが表示される(ステップS13)。 Next, when the user operates the correction key 21 (step S1; Yes) and designates the portion of the character “2” whose recognition position is shifted by the pen touch (step S11; Yes), as shown in FIG. 9B. Then, the designated character part “2” and the immediately preceding character part “x” are detected, and the first conversion destination candidate “1:” with the designated character part “2” as an index of the forward character part “x” is detected. x 2 ”and the second conversion destination candidate“ 2: x2 ”in which the front character portion“ x ”and the designated character portion“ 2 ”are arranged in the same size are displayed (step S13).

そして、ユーザが1番目の変換先候補「1:x2」を選択すると(ステップS14;Yes)、図9(c)や図5に示すように、この変換先候補に従って前方文字部分「x」に対する指定文字部分「2」の位置が変更され、数式表示データ123及び数式テキストデータ124の内容と、ディスプレイ3の表示内容とが更新される(ステップS15)。 When the user selects the first conversion destination candidate “1: x 2 ” (step S14; Yes), as shown in FIG. 9C and FIG. 5, the forward character portion “x” is displayed according to the conversion destination candidate. The position of the designated character part “2” with respect to is changed, and the contents of the mathematical expression display data 123 and mathematical expression text data 124 and the display contents of the display 3 are updated (step S15).

以上、本実施の形態によれば、図6のステップS11〜S15や、図8,図9等に示したように、表示された数式中の各文字部分の何れかについて、文字位置の変更指示をユーザが行うと、数式中の各文字部分のうち、指定された指定文字部分と、この指定文字部分よりも前に位置する前方文字部分とが検出された後、前方文字部分に対する指定文字部分の位置関係が互いに異なる複数の変更先候補が表示され、何れかの変更先候補をユーザが選択すると、選択された変更先候補に従って前方文字部分に対する指定文字部分の位置が変更され、表示内容が更新されるので、認識した文字自体が合っていて数式内での認識位置がズレている場合であっても、文字位置の変更指示を行って変更先候補を選択するだけで、数式中での文字位置を修正することができる。従って、数式を再入力する場合と比較して、手書き入力された数式中での文字位置を容易に修正することができる。   As described above, according to the present embodiment, as shown in steps S11 to S15 of FIG. 6, FIG. 8, FIG. When the user performs, after the designated character portion designated and the forward character portion positioned before the designated character portion are detected, the designated character portion for the forward character portion is detected. A plurality of change destination candidates having different positional relationships are displayed, and when the user selects one of the change destination candidates, the position of the designated character portion with respect to the front character portion is changed according to the selected change destination candidate, and the display content is Since it is updated, even if the recognized character is correct and the recognition position in the equation is misaligned, just change the character position and select the change destination candidate. Correct character position Rukoto can. Therefore, the character position in the mathematical expression input by handwriting can be easily corrected as compared with the case of re-inputting the mathematical expression.

(第2の実施形態)
続いて、本発明に係る電子機器の第2の実施形態について説明する。なお、上記第1の実施形態との間で互いに対応する部分が同様に構成されている場合には、同一の符号を付して、その説明を省略する。
(Second Embodiment)
Subsequently, a second embodiment of the electronic apparatus according to the invention will be described. In addition, when the part corresponding mutually with the said 1st Embodiment is comprised similarly, the same code | symbol is attached | subjected and the description is abbreviate | omitted.

[2.1 構成]
本実施の形態における関数電卓1Aの記憶部13Aは、図2に示すように、手書き入力プログラム130Aを備えている。
この手書き入力プログラム130Aは、後述の手書き入力処理(図6,図12参照)をCPU11に実行させるためのプログラムである。
[2.1 Configuration]
The storage unit 13A of the scientific calculator 1A according to the present embodiment includes a handwriting input program 130A as shown in FIG.
This handwriting input program 130A is a program for causing the CPU 11 to execute handwriting input processing (see FIGS. 6 and 12) described later.

また、関数電卓1AのRAM12Aは、図10,図11に示すように、関数部品バッファ125を有している。なお、図2では、図示の便宜上、関数部品バッファ125の図示を省略している。   Further, the RAM 12A of the scientific calculator 1A has a functional component buffer 125 as shown in FIGS. In FIG. 2, the functional component buffer 125 is not shown for convenience of illustration.

この関数部品バッファ125には、上述の認識・表示処理において認識される関数の種類に基づいて、当該関数の構成要素の種類ごとにバッファBが形成され、各構成要素の内容(表示対象)が格納されるようになっている。   In the function component buffer 125, a buffer B is formed for each type of component of the function based on the type of function recognized in the above recognition / display processing, and the contents (display target) of each component are stored. It is to be stored.

例えば、認識される関数が積分関数の場合には、図10に示すように、関数部品バッファ125には、積分記号を格納するバッファB1と、被積分関数を格納するバッファB2と、積分変数の上限値,下限値を格納するバッファB3,B4と、被積分関数の終了記号を格納するバッファB5と、積分変数を格納するバッファB6とが形成され、各バッファB1〜B6には、その構成要素についての表示対象が格納される。なお、この図では、各バッファBに格納される構成要素の種類を図中の左側欄に示し、各構成要素についての表示対象を図中の右側欄に示している。   For example, when the recognized function is an integral function, as shown in FIG. 10, the function component buffer 125 includes a buffer B1 for storing an integral symbol, a buffer B2 for storing an integrand, Buffers B3 and B4 for storing the upper limit value and the lower limit value, a buffer B5 for storing the end symbol of the integrand, and a buffer B6 for storing the integration variable are formed. Each of the buffers B1 to B6 includes its constituent elements. The display target for is stored. In this figure, the type of the component stored in each buffer B is shown in the left column in the figure, and the display target for each component is shown in the right column in the drawing.

また、認識される関数が微分関数の場合には、図11の左側欄に示すように、関数部品バッファ125には、微分記号を格納するバッファB1と、微分変数を格納するバッファB2と、微分式を格納するバッファB3と、微分点を格納するバッファB4とが形成され、各バッファB1〜B4には、その構成要素についての表示対象が格納される。   When the recognized function is a differential function, the function component buffer 125 includes a buffer B1 for storing a differential symbol, a buffer B2 for storing a differential variable, and a differential as shown in the left column of FIG. A buffer B3 for storing the equation and a buffer B4 for storing the differential point are formed, and each buffer B1 to B4 stores a display target for the component.

また、認識される関数が総和関数の場合には、図11の右側欄に示すように、関数部品バッファ125には、総和記号を格納するバッファB1と、変数を格納するバッファB2と、変数の始点,終点を格納するバッファB3,B4と、被総和関数(一般項)を格納するバッファB5とが形成され、各バッファB1〜B5には、その構成要素についての表示対象が格納される。   If the recognized function is a summation function, as shown in the right column of FIG. 11, the function component buffer 125 includes a buffer B1 for storing a summation symbol, a buffer B2 for storing a variable, Buffers B3 and B4 for storing the start point and end point and a buffer B5 for storing the function to be summed (general term) are formed. In each of the buffers B1 to B5, display objects for the constituent elements are stored.

[2.2 関数電卓の動作]
続いて、関数電卓1Aの動作について説明する。なお、本第2の実施形態における関数電卓1Aでは、上記第1の実施形態の手書き入力処理におけるステップS11〜S15(図6参照)に代えて、以下の自動訂正処理を行うようになっている。
[2.2 Operation of scientific calculator]
Next, the operation of the scientific calculator 1A will be described. In the scientific calculator 1A according to the second embodiment, the following automatic correction process is performed instead of steps S11 to S15 (see FIG. 6) in the handwriting input process according to the first embodiment. .

図12は、CPU11が記憶部13から手書き入力プログラム130Aを読み出して実行する手書き入力処理のうち、自動訂正処理の動作を説明するためのフローチャートである。   FIG. 12 is a flowchart for explaining the operation of the automatic correction process in the handwriting input process that the CPU 11 reads out and executes the handwriting input program 130 </ b> A from the storage unit 13.

この図に示すように、上記第1の実施形態における手書き入力処理のステップS1(図6参照)で訂正キー21が操作されたと判定した場合(ステップS1;Yes)には、CPU11は、RAM12から数式表示データ123を読み取った後(ステップU1)、この数式表示データ123に基づいて、手書き入力された数式が所定の関数を有するか否かを判定する(ステップU2)。なお、本実施の形態においては、所定の関数として、積分関数や微分係数、総和関数などが用いられている。   As shown in this figure, when it is determined that the correction key 21 is operated in step S1 (see FIG. 6) of the handwriting input process in the first embodiment (step S1; Yes), the CPU 11 starts from the RAM 12. After reading the mathematical expression display data 123 (step U1), it is determined based on the mathematical expression display data 123 whether or not the mathematical expression inputted by hand has a predetermined function (step U2). In the present embodiment, an integral function, a differential coefficient, a summation function, or the like is used as the predetermined function.

このステップU2において数式が所定の関数を有しないと判定した場合(ステップU2;No)には、CPU11は、数式の自動訂正が不可能である旨のメッセージをディスプレイ3に表示させる(ステップU10)。   When it is determined in step U2 that the mathematical expression does not have a predetermined function (step U2; No), the CPU 11 displays a message on the display 3 that automatic correction of the mathematical expression is impossible (step U10). .

次に、CPU11は、ディスプレイ3の表示内容をステップU1の段階まで戻して、ユーザによるマニュアル操作によって数式の訂正を行った後(ステップU9)、自動訂正処理を終了して、上述のステップS7(図6参照)に移行する。なお、マニュアル操作によって数式の訂正を行うとは、具体的には、上記第1の実施形態の手書き入力処理におけるステップS11〜S15の処理によって数式の訂正を行うことを意味する。   Next, the CPU 11 returns the display content of the display 3 to the stage of step U1, corrects the mathematical expression by a manual operation by the user (step U9), ends the automatic correction process, and performs the above-described step S7 ( (See FIG. 6). Note that the correction of the mathematical expression by manual operation specifically means that the mathematical expression is corrected by the processes of steps S11 to S15 in the handwriting input process of the first embodiment.

一方、上述のステップU2において数式が所定の関数を有すると判定した場合(ステップU2;Yes)には、CPU11は、当該関数の種類と数式表示データ123の内容(特に表示位置の情報など)とに基づいて、この関数の構成要素の種類ごとのバッファBを関数部品バッファ125に形成した後、各構成要素についての表示対象を、対応するバッファBに格納させる(ステップU3)。   On the other hand, when it is determined in the above-described step U2 that the mathematical expression has a predetermined function (step U2; Yes), the CPU 11 determines the type of the function and the content of the mathematical expression display data 123 (particularly, information on the display position). Based on the above, after the buffer B for each type of component of this function is formed in the function component buffer 125, the display target for each component is stored in the corresponding buffer B (step U3).

次に、CPU11は、情報の格納されていないバッファBが関数部品バッファ125にあるか否かを判定し(ステップU4)、ないと判定した場合(ステップU4;No)には、上述のステップU10に移行する。   Next, the CPU 11 determines whether or not the buffer B in which information is not stored is present in the function component buffer 125 (step U4). If it is determined that the buffer B is not stored (step U4; No), the above-described step U10 is performed. Migrate to

一方、ステップU4において情報の格納されていないバッファBがあると判定した場合(ステップU4;Yes)、つまり関数内の何れかの構成要素について表示対象が未認識であると判定した場合には、CPU11は、数式表示データ123における文字のうち、表示対象が未認識となっている構成要素の表示位置近傍に表示されており、かつ、未だ何れの構成要素の表示対象にもされていない文字を検出し、情報の格納されていないバッファBに入力する(ステップU5)。これにより、情報の格納されていないバッファBの内容、つまり未認識の構成要素についての表示対象が、未だ何れの構成要素の表示対象にもされていない文字とされる。   On the other hand, if it is determined in step U4 that there is a buffer B in which no information is stored (step U4; Yes), that is, if it is determined that the display target is unrecognized for any component in the function, The CPU 11 displays characters that are displayed in the vicinity of the display position of the component whose display target is unrecognized among the characters in the mathematical expression display data 123 and are not yet displayed as any component. Detected and input to the buffer B where no information is stored (step U5). As a result, the contents of the buffer B in which no information is stored, that is, the display target for the unrecognized component is set as a character that has not yet been set as the display target of any component.

なお、このステップU5において情報の格納されていないバッファBが複数ある場合、つまり関数内の複数の構成要素の表示対象が未認識である場合には、CPU11は、情報の格納されていない何れか1つのバッファBを選択して、このバッファB(以下、選択バッファBとする)に対応する構成要素の種類をディスプレイ3に表示させるとともに、数式表示データ123における文字のうち、未だ何れの構成要素の表示対象にもされていない文字を検出し、入力候補としてディスプレイ3に一覧表示させた後、この中からユーザに選択された文字を、選択バッファBに入力するようになっている。そして、CPU11は、表示対象が未認識となっている各構成要素について、このような処理を繰り返すようになっている。但し、この処理を繰り返すことで、表示対象が未認識となっている構成要素が1つだけになった場合には、通常のステップU5の場合と同様に、数式表示データ123における文字のうち、表示対象が未認識となっている構成要素の表示位置近傍に表示されており、かつ、未だ何れの構成要素の表示対象にもされていない文字を検出し、情報の格納されていないバッファBに自動で入力することとしても良い。   If there are a plurality of buffers B in which no information is stored in step U5, that is, if the display targets of a plurality of components in the function are unrecognized, the CPU 11 does not store any information. One buffer B is selected and the type of the component corresponding to this buffer B (hereinafter referred to as selection buffer B) is displayed on the display 3, and any component among the characters in the mathematical expression display data 123 is not yet displayed. Are detected and displayed as a list on the display 3 as input candidates, and the character selected by the user is input to the selection buffer B. And CPU11 repeats such a process about each component with which the display object is unrecognized. However, by repeating this process, when there is only one component whose display target is unrecognized, as in the normal step U5, among the characters in the mathematical expression display data 123, A character which is displayed in the vicinity of the display position of a component whose display target is unrecognized and which is not yet displayed as a display target of any component is detected and stored in a buffer B in which no information is stored. It is good also as inputting automatically.

次に、CPU11は、関数部品バッファ125の内容に基づいて、数式表示データ123及び数式テキストデータ124の内容と、ディスプレイ3の表示内容とを更新する(ステップU7)。   Next, the CPU 11 updates the contents of the formula display data 123 and the formula text data 124 and the display contents of the display 3 based on the contents of the function component buffer 125 (step U7).

次に、CPU11は、更新後の数式の内容が正しいか間違っているかをユーザに選択させ(ステップU8)、間違っていると選択された場合(ステップU8;No)には上述のステップU9に移行し、正しいと選択された場合(ステップU8;Yes)には、自動訂正処理を終了して、上述のステップS7(図6参照)に移行する。   Next, the CPU 11 causes the user to select whether the content of the updated mathematical expression is correct or incorrect (step U8), and if it is selected as incorrect (step U8; No), the process proceeds to the above-described step U9. If it is selected as correct (step U8; Yes), the automatic correction process is terminated, and the process proceeds to the above-described step S7 (see FIG. 6).

[2.3 動作例]
続いて、上記の自動訂正処理について、図13を参照しながら具体的に説明する。なお、この図13では、ユーザにより手書き入力された数式の図示を省略している。
[2.3 Example of operation]
Next, the automatic correction process will be specifically described with reference to FIG. In FIG. 13, the mathematical formula input by handwriting by the user is not shown.

まず、ユーザにより数式が手書き入力されて(ステップS3)、図13(a)の左上部に示すような積分関数の数式が認識されると(ステップT1,T2)、この数式が自然表示形式のテキストとして表示される(ステップS6)。なお、ここで認識された数式では、ユーザが被積分関数として手書き入力した文字「x2」と,積分変数として手書き入力した文字「x」とについて、数式内での認識位置がズレている。 First, when a mathematical formula is input by handwriting by the user (step S3) and a mathematical formula of an integral function as shown in the upper left part of FIG. 13A is recognized (step T1, T2), this mathematical formula is in a natural display format. It is displayed as text (step S6). In the mathematical expression recognized here, the recognition position in the mathematical expression is shifted between the character “x 2 ” input by handwriting as an integrand and the character “x” input by handwriting as an integration variable.

この状態から訂正キー21が操作されると(ステップS1;Yes)、数式表示データ123で表される数式内に積分関数が含まれると判定され(ステップU2;Yes)、関数部品バッファ125には、積分記号を格納するバッファB1と、被積分関数を格納するバッファB2と、積分変数の上限値,下限値を格納するバッファB3,B4と、被積分関数の終了記号を格納するバッファB5と、積分変数を格納するバッファB6とが形成され、各バッファB1〜B6に対し、図中の右部に示すような内容が格納される(ステップU3)。なお、この時点では、被積分関数,積分変数を格納するバッファB2,B4には、情報が格納されておらず、表示対象が未認識な状態となっている。   When the correction key 21 is operated from this state (step S1; Yes), it is determined that the integration function is included in the equation represented by the equation display data 123 (step U2; Yes). A buffer B1 for storing integration symbols, a buffer B2 for storing integrands, buffers B3 and B4 for storing upper and lower limits of integration variables, and a buffer B5 for storing termination symbols for integrands; A buffer B6 for storing integration variables is formed, and the contents shown in the right part of the figure are stored in the buffers B1 to B6 (step U3). At this time, no information is stored in the buffers B2 and B4 that store the integrand and the integration variable, and the display target is unrecognized.

次に、図13(b)に示すように、情報の格納されていない複数のバッファB2,B4が関数部品バッファ125にあると判定された後(ステップU4;Yes)、バッファB2に対応する構成要素の種類「被積分関数」が表示されるとともに、数式表示データ123における文字のうち、未だ何れの構成要素の表示対象にもされていない文字「x2」,「x」がディスプレイ3に一覧表示される。そして、ユーザによって文字「x2」が選択されると、当該文字「x2」がバッファB2に入力される。 Next, as shown in FIG. 13B, after it is determined that a plurality of buffers B2 and B4 in which no information is stored are in the function component buffer 125 (step U4; Yes), a configuration corresponding to the buffer B2 The element type “integrated function” is displayed, and among the characters in the mathematical expression display data 123, the characters “x 2 ” and “x” that have not yet been displayed as any constituent elements are listed on the display 3. Is displayed. Then, when the character "x 2" by the user is selected, the character "x 2" is input to the buffer B2.

また、図13(c)に示すように、情報の格納されていないバッファB4に対応する構成要素の種類「積分変数」が表示されるとともに、数式表示データ123における文字のうち、未だ何れの構成要素の表示対象にもされていない文字「x」がディスプレイ3に一覧表示される。そして、ユーザによって文字「x」が選択されると、当該文字「x」がバッファB4に入力される。   Further, as shown in FIG. 13C, the component type “integration variable” corresponding to the buffer B4 in which no information is stored is displayed, and any of the characters in the formula display data 123 is not yet configured. Characters “x” that are not displayed as elements are listed on the display 3. When the character “x” is selected by the user, the character “x” is input to the buffer B4.

そして、関数部品バッファ125の内容に基づいて、数式表示データ123及び数式テキストデータ124の内容と、ディスプレイ3の表示内容とが更新される(ステップU7)。   Based on the contents of the function component buffer 125, the contents of the formula display data 123 and the formula text data 124 and the display contents of the display 3 are updated (step U7).

以上、本実施の形態によれば、図12のステップU1〜U7や、図13等に示したように、手書き入力された数式が所定の関数を有しており、かつ、当該所定の関数における複数の構成要素のうち、何れかの構成要素について表示対象が未認識の場合に、この構成要素についての表示対象を、手書き入力された数式中の文字のうち、未だ何れの構成要素の表示対象にもされていない文字として表示内容が更新されるので、認識した文字自体が合っていて数式内での位置が認識されていない場合であっても、数式中での文字位置が修正されることとなる。従って、数式を再入力する場合と比較して、手書き入力された数式中での文字位置を容易に修正することができる。   As described above, according to the present embodiment, as shown in steps U1 to U7 of FIG. 12, FIG. 13 and the like, the mathematical expression inputted by hand has a predetermined function, and in the predetermined function If the display target is unrecognized for any of the multiple components, the display target for this component is still the display target for any component of the characters in the mathematical expression entered by handwriting The display content is updated as a character that has not been changed, so even if the recognized character is correct and the position in the formula is not recognized, the character position in the formula can be corrected It becomes. Therefore, the character position in the mathematical expression input by handwriting can be easily corrected as compared with the case of re-inputting the mathematical expression.

なお、上記の実施の形態における関数電卓1,1Aの各構成要素の細部構成及び細部動作に関しては、本発明の趣旨を逸脱しない範囲で適宜変更可能であることは勿論である。   In addition, it is needless to say that the detailed configuration and detailed operation of each component of the scientific calculator 1, 1A in the above embodiment can be appropriately changed without departing from the gist of the present invention.

例えば、上記では関数電卓の動作として説明しているが、タッチパネル付き表示部を有する電子機器に、上記の実施形態で説明した動作を行わせるプログラムをインストールして、当該電子機器のコンピュータにより本発明を実現させるようにしても良い。   For example, although described above as an operation of a scientific calculator, a program for performing the operation described in the above embodiment is installed in an electronic device having a display unit with a touch panel, and the present invention is executed by a computer of the electronic device. May be realized.

1,1A 関数電卓
2 入力キー群
3 ディスプレイ
11 CPU
12 RAM
13,13A 記憶部
14 キー入力部
15 表示部
30 タッチパネル
130,130A 手書き入力プログラム
1, 1A Scientific calculator 2 Input key group 3 Display 11 CPU
12 RAM
13, 13A Storage unit 14 Key input unit 15 Display unit 30 Touch panel 130, 130A Handwritten input program

Claims (4)

タッチパネルを有する表示手段と、
前記タッチパネルに手書き入力された数式を認識し、当該認識された数式を前記表示手段に表示させる手書き数式認識手段と、
前記表示手段に表示された数式中の各文字部分の何れかについて、文字位置の変更指示をユーザから受ける位置変更指示手段と、
前記表示手段に表示された数式中の各文字部分のうち、前記位置変更指示手段によって指定された指定文字部分と、この指定文字部分よりも前に位置する前方文字部分とを検出するとともに、前記前方文字部分に対する前記指定文字部分の位置関係が互いに異なる複数の変更先候補を前記表示手段に表示させて、何れかの変更先候補をユーザに選択させる候補表示制御手段と、
ユーザに選択された変更先候補に従って前記前方文字部分に対する前記指定文字部分の位置を変更し、前記表示手段の表示内容を更新する更新手段と、
を備えることを特徴とする電子機器。
Display means having a touch panel;
Recognizing a mathematical expression input by handwriting on the touch panel, and displaying the recognized mathematical expression on the display means;
Position change instruction means for receiving a character position change instruction from the user for any of the character parts in the mathematical expression displayed on the display means;
Among the character parts in the mathematical expression displayed on the display means, a designated character part designated by the position change instruction means and a forward character part located before the designated character part are detected, and Candidate display control means for causing the display means to display a plurality of change destination candidates whose positional relationship of the designated character portion with respect to the front character portion is different from each other, and for allowing the user to select any change destination candidate;
Updating means for changing the position of the designated character portion relative to the forward character portion according to the change destination candidate selected by the user, and updating the display content of the display means;
An electronic device comprising:
前記手書き数式認識手段は、
認識された数式を自然表示形式で前記表示手段に表示させるための表示用データ形式と、認識された数式を演算するための演算用データ形式とのそれぞれの数式データを生成するデータ生成手段を有し、
前記候補表示制御手段は、
前記表示用データ形式の数式データに基づいて、前記複数の変更先候補を生成することを特徴とする請求項1記載の電子機器。
The handwritten mathematical expression recognition means includes:
Data generation means for generating respective formula data in a display data format for displaying the recognized formula on the display means in a natural display format and a calculation data format for calculating the recognized formula is provided. And
The candidate display control means includes
2. The electronic apparatus according to claim 1, wherein the plurality of change destination candidates are generated based on mathematical expression data in the display data format.
前記候補表示制御手段は、少なくとも、
前記前方文字部分と前記指定文字部分とを同じ大きさでこの順に並べた変更先候補と、
前記指定文字部分を前記前方文字部分の指数とした変更先候補とを生成することを特徴とする請求項2記載の電子機器。
The candidate display control means is at least
A change destination candidate in which the front character portion and the designated character portion are arranged in this order with the same size;
The electronic device according to claim 2, wherein a change destination candidate is generated using the designated character portion as an index of the forward character portion.
タッチパネルを有する表示手段を備えた電子機器のコンピュータを、
前記タッチパネルに手書き入力された数式を認識し、当該認識された数式を前記表示手段に表示させる手書き数式認識手段と、
前記表示手段に表示された数式中の各文字部分の何れかについて、文字位置の変更指示をユーザから受ける位置変更指示手段と、
前記表示手段に表示された数式中の各文字部分のうち、前記位置変更指示手段によって指定された指定文字部分と、この指定文字部分よりも前に位置する前方文字部分とを検出するとともに、前記前方文字部分に対する前記指定文字部分の位置関係が互いに異なる複数の変更先候補を前記表示手段に表示させて、何れかの変更先候補をユーザに選択させる候補表示制御手段と、
ユーザに選択された変更先候補に従って前記前方文字部分に対する前記指定文字部分の位置を変更し、前記表示手段の表示内容を更新する更新手段と、
として機能させることを特徴とするプログラム。
A computer of an electronic device provided with display means having a touch panel,
Recognizing a mathematical expression input by handwriting on the touch panel, and displaying the recognized mathematical expression on the display means;
Position change instruction means for receiving a character position change instruction from the user for any of the character parts in the mathematical expression displayed on the display means;
Among the character parts in the mathematical expression displayed on the display means, a designated character part designated by the position change instruction means and a forward character part located before the designated character part are detected, and Candidate display control means for causing the display means to display a plurality of change destination candidates whose positional relationship of the designated character portion with respect to the front character portion is different from each other, and for selecting any of the change destination candidates,
Updating means for changing the position of the designated character portion relative to the forward character portion according to the change destination candidate selected by the user, and updating the display content of the display means;
A program characterized by functioning as
JP2009178685A 2009-07-31 2009-07-31 Electronic device and program Active JP5471126B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009178685A JP5471126B2 (en) 2009-07-31 2009-07-31 Electronic device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009178685A JP5471126B2 (en) 2009-07-31 2009-07-31 Electronic device and program

Publications (2)

Publication Number Publication Date
JP2011034263A JP2011034263A (en) 2011-02-17
JP5471126B2 true JP5471126B2 (en) 2014-04-16

Family

ID=43763287

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009178685A Active JP5471126B2 (en) 2009-07-31 2009-07-31 Electronic device and program

Country Status (1)

Country Link
JP (1) JP5471126B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257810B (en) * 2012-02-17 2016-03-02 汉王科技股份有限公司 Hand-written method for identifying mathematical formula and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3068895B2 (en) * 1991-06-28 2000-07-24 株式会社リコー Character recognition result correction method
JP4181310B2 (en) * 2001-03-07 2008-11-12 昌和 鈴木 Formula recognition apparatus and formula recognition method
JP4181328B2 (en) * 2002-03-06 2008-11-12 株式会社東芝 Formula recognition apparatus and formula recognition method

Also Published As

Publication number Publication date
JP2011034263A (en) 2011-02-17

Similar Documents

Publication Publication Date Title
JP4775462B2 (en) Computer and program
JP5790070B2 (en) Display control apparatus and program
JP5892094B2 (en) Graph display control device, graph display control method, and graph display control program
JP4961792B2 (en) Formula editing apparatus and formula editing program
JP5471126B2 (en) Electronic device and program
US10185698B2 (en) Electronic device, computational processing method and storage medium
JP5786671B2 (en) Formula input device and program
JP6504128B2 (en) Electronic device, data processing method and program
JP2007026349A (en) Character input device and character input program
JP7087679B2 (en) Graph display method, graph generation method, electronic devices and programs
JP6315139B2 (en) Graphic display device and graphic display program
JP6163704B2 (en) Graphic display device and graphic display program
US9921999B2 (en) Electronic device, display method at time of execution of verification with electronic device, and storage medium
JP5786542B2 (en) Formula input device and program
JP5849487B2 (en) Display control apparatus and program
JP2011043917A (en) Mathematical expression display arithmetic unit and program
JP6155565B2 (en) Learning support device, learning support program, and learning support method
JP5381520B2 (en) Mathematical expression display device and program
JP4000338B1 (en) Calculation function display method and electronic small computer
JP5353152B2 (en) Formula arithmetic processing apparatus and formula arithmetic processing program
US10977769B2 (en) Electronic device, movement path recording method, and computer-readable storage medium
JP2011070249A (en) Calculator and program
JP2022124871A (en) Information processing apparatus and information processing program
JP2014067390A (en) Numerical expression display device, numerical expression display program and numerical expression display method
JP5532890B2 (en) Display device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120723

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20120723

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130917

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131113

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140120

R150 Certificate of patent or registration of utility model

Ref document number: 5471126

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150