JP2013186720A - Character string selection device - Google Patents

Character string selection device Download PDF

Info

Publication number
JP2013186720A
JP2013186720A JP2012051638A JP2012051638A JP2013186720A JP 2013186720 A JP2013186720 A JP 2013186720A JP 2012051638 A JP2012051638 A JP 2012051638A JP 2012051638 A JP2012051638 A JP 2012051638A JP 2013186720 A JP2013186720 A JP 2013186720A
Authority
JP
Japan
Prior art keywords
character string
unit
data
display surface
stroke
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
JP2012051638A
Other languages
Japanese (ja)
Inventor
Kazuhiro Shiomi
和浩 汐見
Koji Kusuda
晃嗣 楠田
Yoichi Takami
陽一 高実
Atsushi Ono
淳 小野
Yoshiyasu Konishi
良保 小西
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 JP2012051638A priority Critical patent/JP2013186720A/en
Publication of JP2013186720A publication Critical patent/JP2013186720A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a character string selection device that allows selection of a desired character string through a simple user operation.SOLUTION: A character string selection device includes an operation reception unit for receiving operation for specifying an area of a display surface on the display surface, and a character string detection unit (241) for detecting character string data corresponding to the area specified by the operation received by the operation reception unit from document data displayed on the display surface. When the character string data indicates a character string included in a unit character string composing the document data, the character string detection unit extracts the unit character string from the document data.

Description

この発明は文字列選択装置に関し、特に、表示された文字列から指定範囲の文字列を選択する文字列選択装置に関する。   The present invention relates to a character string selection device, and more particularly to a character string selection device that selects a character string in a specified range from a displayed character string.

タブレット端末や多機能携帯電話(いわゆるスマートフォン)では、画面表示される文字列を選択し、選択した文字列をコピーするなどの操作を、ユーザの指操作で感覚的に実現でき便利である。   In a tablet terminal or a multi-function mobile phone (so-called smart phone), an operation such as selecting a character string displayed on the screen and copying the selected character string can be conveniently realized by a user's finger operation.

文字列を選択してコピーするには、選択したい文字列の表示位置をしばらく指・ペンで押圧すると、文字列の一部が選択される。また、ユーザは選択部分を所望の文字列の部分まで含むように拡張操作したり、狭めたりの操作をすることで、選択したい文字列を指定できる。指定された文字列に対して、その後、コピー操作を施すことができる。   To select and copy a character string, press the display position of the character string you want to select with your finger or pen for a while to select a part of the character string. In addition, the user can designate a character string to be selected by performing an expansion operation or a narrowing operation so as to include the selected portion up to a desired character string portion. Thereafter, a copy operation can be performed on the designated character string.

特許文献1(特開2004−78509号公報)では、タッチパネルにおいて、表示された文字列とストロークとの位置関係(文字列行の上部、中部、下部)から操作対象文字を特定し、文字操作の種類を特定する技術が記載される。   In Patent Document 1 (Japanese Patent Laid-Open No. 2004-78509), an operation target character is specified from a positional relationship (upper, middle, and lower part of a character string line) between a displayed character string and a stroke on a touch panel, and character operation is performed. A technique for identifying the type is described.

特許文献2(特開2008−269456号公報)では、指をドラッグする方向を気にすることなく、かつ正確に文字入力を行なうことができる文字入力装置が提供される。また特許文献3(特開2002−259043号公報)では、ペンの傾きによる位置座標の誤差を補正し、さらにペンの傾き角度を検出してアプリケーションのデータとして利用するタブレット装置を用いたデータ処理装置が示される。   Patent Document 2 (Japanese Patent Laid-Open No. 2008-269456) provides a character input device that can accurately input characters without worrying about the direction of dragging a finger. Japanese Patent Laid-Open No. 2002-259043 discloses a data processing device using a tablet device that corrects an error in position coordinates due to the tilt of the pen, detects the tilt angle of the pen, and uses it as application data. Is shown.

特許文献4(特開平9−91281号公報)では、表示画面に表示される文字列等に対する処理を容易かつスムーズに行なう情報処理装置が示される。上述の特許文献2と3では、ペンによる文字範囲の選択またはペンによる文字入力ではないけれども、特許文献4では、ペンにより範囲選択を行なうことができる。特許文献4では、文字列などの表示位置上から画面に接触したまま、所定の方向に連続移動したか否かを判定し、連続的な移動の開始位置近傍の文字列についての処理に留まっている。   Patent Document 4 (Japanese Patent Laid-Open No. 9-91281) discloses an information processing apparatus that easily and smoothly performs processing on a character string or the like displayed on a display screen. In Patent Documents 2 and 3 described above, selection of a character range using a pen or character input using a pen is not used. However, in Patent Document 4, a range can be selected using a pen. In Patent Document 4, it is determined whether or not the character string or the like has been continuously moved in a predetermined direction while being in contact with the screen from the display position, and the processing on the character string in the vicinity of the continuous movement start position is not limited. Yes.

特許文献5(特開2010−134679号公報)では、ユーザにより選択された文字列に基づいて情報検索を行なう携帯型情報処理装置が示される。この装置では、ユーザが所望する文字列を容易かつ的確に選択することができる支援機能が提供される。具体的には、ユーザが本当に選択したかった文字列を複数予想して提示する。   Japanese Patent Laid-Open No. 2010-134679 discloses a portable information processing apparatus that performs information retrieval based on a character string selected by a user. This device provides a support function that allows a user to select a desired character string easily and accurately. Specifically, a plurality of character strings that the user really wanted to select are predicted and presented.

特許文献6(特開2010−102666号公報)では、範囲指定する対象がテキスト文字列と画像のいずれであっても適用可能なテキストまたは画像の範囲指定方法が提供される。   Patent Document 6 (Japanese Patent Application Laid-Open No. 2010-102666) provides a text or image range designation method that can be applied regardless of whether the range designation target is a text character string or an image.

特許文献7(特開2005−92644号公報)では、画像の選択方法が記載される。具体的には、画像のうちの任意の範囲を選択し、選択された画像を取込むようにしている。   Patent Document 7 (Japanese Patent Laid-Open No. 2005-92644) describes an image selection method. Specifically, an arbitrary range in the image is selected and the selected image is captured.

特開2004−78509号公報JP 2004-78509 A 特開2008−269456号公報JP 2008-269456 A 特開2002−259043号公報JP 2002-259043 A 特開平9−91281号公報JP-A-9-91281 特開2010−134679号公報JP 2010-134679 A 特開2010−102666号公報JP 2010-102666 A 特開2005−92644号公報JP 2005-92644 A

特許文献1では、所望文字列の行の上部、中部、下部にストロークを入力する必要があり、ユーザに対して比較的厳密な操作を要求する。これに対して、特許文献6では、文字列の中から所望範囲の文字列を選択するために、タッチパネルの特性を活用したテキストまたは画像の範囲を指定するだけでよいから、特許文献1に比べると指定方法は緩やかである。   In Patent Document 1, it is necessary to input strokes at the upper part, middle part, and lower part of a line of a desired character string, which requires a relatively strict operation from the user. On the other hand, in Patent Document 6, it is only necessary to specify a text or image range utilizing the characteristics of the touch panel in order to select a desired character string from the character string. The designation method is loose.

しかし、特許文献6では画面上に特別な半透明のシートを表示させることによって選択範囲の指定を可能としているから、半透明のシートの表示が特別に必要とされ、簡易な操作とは言えない。   However, in Patent Document 6, since the selection range can be specified by displaying a special translucent sheet on the screen, display of the translucent sheet is specially required, and it cannot be said to be a simple operation. .

また、他のいずれの特許文献においても、ユーザによる範囲指定の操作から特定した文字列を選択する方法は記載されていない。   In any other patent document, there is no description of a method for selecting a character string specified by a range designation operation by a user.

それゆえに、この発明の目的は、簡単なユーザ操作により所望文字列を選択することのできる文字列選択装置を提供することである。   Therefore, an object of the present invention is to provide a character string selection device that can select a desired character string by a simple user operation.

この発明のある局面に従う文字列選択装置は、表示面上のエリアを、当該表示面上で指定するための操作を受付ける操作受付部と、表示面に表示される文書データのうちから、操作受付部が受付けた操作により指定されたエリアに該当する文字列データを検出する文字列検出部と、を備え、文字列検出部は、文字列データが、文書データを構成する単位文字列に包含される文字列を示すとき、当該単位文字列を文書データから抽出する。   A character string selection device according to an aspect of the present invention includes an operation reception unit that receives an operation for designating an area on a display surface on the display surface, and operation reception from document data displayed on the display surface. A character string detection unit that detects character string data corresponding to an area designated by an operation accepted by the unit, wherein the character string detection unit includes character string data included in a unit character string constituting document data. The unit character string is extracted from the document data.

好ましくは、文字列検出部は、表示面に表示される文書データのうちから、操作受付部が受付けた操作により指定されたエリア内の予め定めたサイズを有した部分エリアに該当する文字列データを検出する。   Preferably, the character string detection unit includes character string data corresponding to a partial area having a predetermined size in an area designated by an operation received by the operation reception unit from among the document data displayed on the display surface. Is detected.

好ましくは、文字列検出部は、単位文字列の総文字数に対する文字列データの文字数の比率と、閾値とを比較する比較部を、含み、比較の結果に基づき、文字列データが単位文字列に包含される文字列であるか否かを判定する。   Preferably, the character string detection unit includes a comparison unit that compares a ratio of the number of characters of the character string data with respect to the total number of characters of the unit character string and a threshold value, and the character string data is converted into the unit character string based on the comparison result. It is determined whether or not the character string is included.

好ましくは、操作受付部は、表示面上の1つ以上の点入力操作を受け付けるように構成された入力装置を含み、入力装置によって入力操作が受け付けられた点の座標値を含む座標データを取得するように構成された座標データ取得部と、座標データ取得部によって取得された複数の座標データに基づいて、入力装置に対する入力の始点から終点までを示すストロークの座標値をストロークデータとして算出するように構成されたストローク抽出部と、を含み、算出されたストロークデータからエリアを検出する。   Preferably, the operation receiving unit includes an input device configured to receive one or more point input operations on the display surface, and obtains coordinate data including the coordinate value of the point at which the input operation is received by the input device. And a coordinate data acquisition unit configured to perform, and based on a plurality of coordinate data acquired by the coordinate data acquisition unit, a coordinate value of a stroke indicating a start point to an end point of input to the input device is calculated as stroke data And an area is detected from the calculated stroke data.

好ましくは、単位文字列は段落の文字列、段落を構成する文の文字列、文節の文字列、または単語の文字列を示す。   Preferably, the unit character string indicates a character string of a paragraph, a character string of a sentence constituting the paragraph, a character string of a clause, or a character string of a word.

この発明の他の局面に従う文字列選択方法は、表示面上のエリアを、当該表示面上で指定するための操作を受付けるステップと、表示面に表示される文書データのうちから、受付けるステップにおいて受付けた操作により指定されるエリアに該当する文字列データを検出するステップと、を備え、検出するステップでは、文字列データが、文書データを構成する単位文字列に包含される文字列を示すとき、当該単位文字列を文書データから抽出する。   A character string selection method according to another aspect of the present invention includes a step of accepting an operation for designating an area on a display surface on the display surface, and a step of accepting from document data displayed on the display surface. Detecting the character string data corresponding to the area specified by the accepted operation, and in the detecting step, the character string data indicates a character string included in the unit character string constituting the document data. The unit character string is extracted from the document data.

この発明のさらに他の局面に従う、コンピュータを文字列選択装置として機能させるためのプログラムは、コンピュータに、表示面上のエリアを、当該表示面上で指定するための操作を受付けるステップと、表示面に表示される文書データのうちから、受付けるステップにおいて受付けた操作により指定されるエリアに該当する文字列データを検出するステップと、を実行させ、検出するステップでは、文字列データが、文書データを構成する単位文字列に包含される文字列を示すとき、当該単位文字列を文書データから抽出させる。   According to still another aspect of the present invention, there is provided a program for causing a computer to function as a character string selection device. The computer receives an operation for designating an area on the display surface on the display surface, and the display surface. Detecting the character string data corresponding to the area specified by the operation accepted in the accepting step from the document data displayed in the accepting step. In the detecting step, the character string data When a character string included in a unit character string to be configured is indicated, the unit character string is extracted from document data.

この発明のさらに他の局面では、上記のプログラムを記録した機械読み取り可能な記録媒体が提供される。   In still another aspect of the present invention, a machine-readable recording medium recording the above program is provided.

発明によれば、表示面上のエリアを、当該表示面上で指定するための操作という簡単なユーザ操作により所望文字列を選択が可能となる。   According to the invention, it is possible to select a desired character string by a simple user operation such as an operation for designating an area on the display surface on the display surface.

本実施の形態に係る携帯型情報処理端末の外観図である。It is an external view of a portable information processing terminal according to the present embodiment. 本発明の実施の形態に係る携帯型情報端末のハードウェア構成図である。It is a hardware block diagram of the portable information terminal which concerns on embodiment of this invention. 本発明の実施の形態に係る文字列選択のための機能構成図である。It is a functional block diagram for the character string selection which concerns on embodiment of this invention. 本発明の実施の形態に係る文字列選択のための参照される閾値の格納例を示す図である。It is a figure which shows the example of storing the threshold value referred for the character string selection which concerns on embodiment of this invention. 本発明の実施の形態に係る文章データの一例を示す図である。It is a figure which shows an example of the text data concerning embodiment of this invention. 本発明の実施の形態に係るテキストデータの一例を示す図である。It is a figure which shows an example of the text data which concerns on embodiment of this invention. 本発明の実施の形態に係る行列位置データの一例を示す図である。It is a figure which shows an example of the matrix position data which concerns on embodiment of this invention. 本発明の実施の形態に係るマップデータの一例を示す図である。It is a figure which shows an example of the map data which concern on embodiment of this invention. 本発明の実施の形態に係る第1の方法を説明するための文章データを示す図である。It is a figure which shows the text data for demonstrating the 1st method which concerns on embodiment of this invention. 本発明の実施の形態に係る第1の方法による選択文字列の一例を示す図である。It is a figure which shows an example of the selection character string by the 1st method which concerns on embodiment of this invention. 本発明の実施の形態に係る第2の方法を説明するための文章データを示す図である。It is a figure which shows the text data for demonstrating the 2nd method which concerns on embodiment of this invention. 本発明の実施の形態に係る第2の方法による選択文字列の一例を示す図である。It is a figure which shows an example of the selection character string by the 2nd method which concerns on embodiment of this invention. 本発明の実施の形態に係る第3の方法を説明するための文章データを示す図である。It is a figure which shows the text data for demonstrating the 3rd method which concerns on embodiment of this invention. 本発明の実施の形態に係る第3の方法による選択文字列の一例を示す図である。It is a figure which shows an example of the selection character string by the 3rd method which concerns on embodiment of this invention. 本発明の実施の形態に係る第3の方法による選択文字列の他の例を示す図である。It is a figure which shows the other example of the selection character string by the 3rd method which concerns on embodiment of this invention. 本発明の実施の形態に係る第3の方法による文字列選択が不可能な例を示す図である。It is a figure which shows the example in which the character string selection by the 3rd method which concerns on embodiment of this invention is impossible. 本発明の実施の形態に係る第3の方法のための処理のフローチャートである。It is a flowchart of the process for the 3rd method which concerns on embodiment of this invention.

以下、この発明の実施の形態について図面を参照して説明する。図中の同一符号は同一または相当部分を示し、説明を繰返さない。   Embodiments of the present invention will be described below with reference to the drawings. The same reference numerals in the drawings indicate the same or corresponding parts, and description thereof will not be repeated.

本実施の形態では、文字列は1または複数の文字からなる。ここでは、文字はアルファベット、数字、記号、空白文字などを含む。また、「文章」は複数の単位文字列からなる。単位文字列は、段落、文、文節および単語を含む。「文章」は1または複数の段落を含み、「段落」は改行直後から次の改行直前までの文字列であって1または複数の文を含み、「文」は改行/句点の直後から次の改行/句点までの文字列を示す。「文」は1または複数の文節を含み、「文節」は1または複数の単語を含む。   In the present embodiment, the character string is composed of one or more characters. Here, the characters include alphabets, numbers, symbols, blank characters, and the like. The “sentence” is composed of a plurality of unit character strings. The unit character string includes a paragraph, a sentence, a clause, and a word. “Sentence” includes one or more paragraphs, “Paragraph” is a character string from immediately after a new line to immediately before the next new line and includes one or more sentences, and “Sentence” is immediately after a new line / punctuation. Indicates a character string up to a line feed / punctuation mark. The “sentence” includes one or more phrases, and the “sentence” includes one or more words.

<ハードウェア構成>
図1および図2を参照して、本実施の形態に係る携帯型情報処理端末(以下、単に端末という)100の構成について説明する。図1は、端末100の外観を表わす図である。端末100は、筐体110、アンテナ120、スピーカ130、周知の抵抗膜方式のタッチパネル140、ボタン150、マイク160、LED(Light Emitting Diode)170、およびペン101を備える。ここでは、タッチパネル140は抵抗膜方式を採用したが、この方式に限定されず、たとえば周知の静電容量方式であってもよい。
<Hardware configuration>
With reference to FIG. 1 and FIG. 2, the configuration of a portable information processing terminal (hereinafter simply referred to as a terminal) 100 according to the present embodiment will be described. FIG. 1 is a diagram illustrating the appearance of the terminal 100. The terminal 100 includes a housing 110, an antenna 120, a speaker 130, a known resistive film type touch panel 140, a button 150, a microphone 160, an LED (Light Emitting Diode) 170, and a pen 101. Here, the touch panel 140 employs a resistive film system, but is not limited to this system, and may be a known electrostatic capacity system, for example.

端末100には、カード状の記録媒体であるメモリカード152が外部から着脱自在に装着される。   A memory card 152 that is a card-like recording medium is detachably attached to the terminal 100 from the outside.

ある局面において、端末100は、タッチパネル140を備える情報処理端末、たとえばノートブック型パーソナルコンピュータ、携帯電話、PDA(Personal Digital Assistant)その他の携帯型の情報処理端末、あるいは、ATM(Automated Teller Machine)、クレジットカードの認証装置その他の商業施設に配置される情報処理装置としても実現される。   In one aspect, the terminal 100 is an information processing terminal including a touch panel 140, such as a notebook personal computer, a mobile phone, a PDA (Personal Digital Assistant) or other portable information processing terminal, or an ATM (Automated Teller Machine), It is also realized as an information processing device arranged in a credit card authentication device or other commercial facilities.

図2は端末100のハードウェア構成を表わすブロック図である。端末100は、図1に示される構成に加えて、表示部210、プロセッサ230、表示ドライバ214、フラッシュメモリ250、RAM(Random Access Memory)252、グラフィックメモリ254、ROM(Read Only Memory)256、通信回路260、信号処理回路270、バイブレータ280および装着されたメモリカード152をプロセッサ230の制御のもとにアクセスするためのメモリドライバ151を備える。   FIG. 2 is a block diagram showing the hardware configuration of terminal 100. In addition to the configuration shown in FIG. 1, the terminal 100 includes a display unit 210, a processor 230, a display driver 214, a flash memory 250, a RAM (Random Access Memory) 252, a graphic memory 254, a ROM (Read Only Memory) 256, a communication A circuit 260, a signal processing circuit 270, a vibrator 280, and a memory driver 151 for accessing the attached memory card 152 under the control of the processor 230 are provided.

表示部210は、タッチパネル140と表示装置212とを一体的に含む。表示部210はLCD(Liquid Crystal Display)パネルであって、表示面上にはタッチパネル140が載置される。したがって、ユーザはLCDパネルによる表示画像を透明部材からなるタッチパネル140を介して外部から視認することができる。   Display unit 210 integrally includes touch panel 140 and display device 212. The display unit 210 is an LCD (Liquid Crystal Display) panel, and a touch panel 140 is placed on the display surface. Therefore, the user can visually recognize the display image on the LCD panel from the outside through the touch panel 140 made of a transparent member.

タッチパネル140は、表面上を指または専用のペン101により操作されると、操作位置に応じた電気信号を出力することにより操作位置を検出する。簡単に説明すると、タッチパネル140は、透明のガラス板およびフィルムを含み、両者は透明な電極格子を挟むようにして配置される。電極格子は、複数の電極が格子状に配列された2次元配列面を表す。電極格子はLCDパネルの表示領域のサイズに整合したサイズを有する。   When the touch panel 140 is operated on the surface with a finger or the dedicated pen 101, the touch panel 140 detects an operation position by outputting an electric signal corresponding to the operation position. Briefly, the touch panel 140 includes a transparent glass plate and a film, and both are disposed so as to sandwich a transparent electrode grid. The electrode grid represents a two-dimensional array surface in which a plurality of electrodes are arranged in a grid pattern. The electrode grid has a size that matches the size of the display area of the LCD panel.

タッチパネル140上を指またはペン101でフィルムの点をタッチ(押圧)すると、圧力によりフィルムがたわみ、ガラス面側の電極と接触し、接触した電極を介して電気信号が出力される。プロセッサ230は、出力される電気信号に基づきガラス面およびフィルム面それぞれの透明電極の抵抗による分圧比を測定することで、電極格子におけるタッチ(押圧)位置を2次元座標値(x0,y0)として検出する。したがって、タッチパネル140は、ユーザ操作による入力を受け付けるための操作受付部の一部を構成する。とりわけ、フィルム上の1つ以上の点入力を受け付けるように構成された入力装置に対応する。   When the point of the film is touched (pressed) on the touch panel 140 with a finger or the pen 101, the film bends due to the pressure and comes into contact with the electrode on the glass surface side, and an electrical signal is output through the contacted electrode. The processor 230 measures the voltage division ratio due to the resistance of the transparent electrodes on the glass surface and the film surface based on the output electric signal, thereby setting the touch (pressing) position on the electrode grid as a two-dimensional coordinate value (x0, y0). To detect. Therefore, the touch panel 140 constitutes a part of an operation receiving unit for receiving an input by a user operation. In particular, it corresponds to an input device configured to accept one or more point inputs on the film.

また、LCDパネルは、複数の電極素子が2次元配列されて構成される。したがって、各電極素子を2次元座標値(x1,y1)により特定することができる。グラフィックメモリ254には、プロセッサ230により表示部210に表示される画像データが格納される。画像データは、LCDパネルの表示領域のサイズに整合するサイズを有した2次元配列のビットマップデータを表す。表示ドライバ214は当該画像データの各ビット値に基づく電気信号を生成し、生成した電気信号をLCDパネルの当該ビットの座標値に対応した座標値(x1,y1)の電極素子に印加する。これにより、表示装置212には、グラフィックメモリ254の画像データに従う画像が表示される。   The LCD panel is configured by two-dimensionally arranging a plurality of electrode elements. Therefore, each electrode element can be specified by the two-dimensional coordinate value (x1, y1). The graphic memory 254 stores image data displayed on the display unit 210 by the processor 230. The image data represents two-dimensional bitmap data having a size that matches the size of the display area of the LCD panel. The display driver 214 generates an electrical signal based on each bit value of the image data, and applies the generated electrical signal to the electrode elements having coordinate values (x1, y1) corresponding to the coordinate values of the bits of the LCD panel. As a result, an image according to the image data in the graphic memory 254 is displayed on the display device 212.

プロセッサ230は端末100の動作を制御する。プロセッサ230はタッチパネル140と協同して操作入力受付部の機能を有する。   The processor 230 controls the operation of the terminal 100. The processor 230 has a function of an operation input receiving unit in cooperation with the touch panel 140.

具体的には、プロセッサ230操作入力受付部の機能は、タッチパネル14からの電気信号に基づき、電極格子上のタッチされた電極の位置を検出し、検出した電極位置をタッチパネル140上の対応する点の座標値に変換し座標データを取得する座標データ取得部を有する。また、プロセッサ230は、時系列に入力する電気信号に基づく時系列状の座標データに基づき、タッチパネル140における始点から終点までのストロークの軌跡を表す複数の連続した座標値であるストロークデータを算出するストローク抽出部を有する。   Specifically, the function of the processor 230 operation input reception unit detects the position of the touched electrode on the electrode grid based on the electrical signal from the touch panel 14, and the detected electrode position corresponds to the corresponding point on the touch panel 140. A coordinate data acquisition unit that converts the coordinate value into the coordinate value and acquires the coordinate data. In addition, the processor 230 calculates stroke data that is a plurality of continuous coordinate values representing a stroke locus from the start point to the end point on the touch panel 140 based on time-series coordinate data based on electric signals input in time series. A stroke extraction unit is included.

プロセッサ230は、算出したストロークデータをビットマップデータに展開しグラフィックメモリ254に格納する。したがって、表示装置212には、表示画像に重畳してストロークの画像が表示される。   The processor 230 expands the calculated stroke data into bitmap data and stores it in the graphic memory 254. Accordingly, the display device 212 displays a stroke image superimposed on the display image.

また、プロセッサ230は、上述の算出したストロークデータに基づいて当該ストロークの形状を判定する。この判定では、プロセッサ230はフラッシュメモリ250に格納された予め定めた形状を示すストロークデータのテンプレートと、この算出されたストロークパターンデータとを照合(パターンマッチング)し、照合結果が示す類似度から、ストローク形状が予め定めた形状であるか否かを判定する。   Further, the processor 230 determines the shape of the stroke based on the calculated stroke data. In this determination, the processor 230 collates (pattern matching) the stroke data template indicating the predetermined shape stored in the flash memory 250 with the calculated stroke pattern data, and from the similarity indicated by the collation result, It is determined whether or not the stroke shape is a predetermined shape.

フラッシュメモリ250は、上述のテンプレートを格納するとともに、端末100に対して与えられたデータあるいはプロセッサ230によって生成されたデータを不揮発的に保持する。   The flash memory 250 stores the above-described template and holds data given to the terminal 100 or data generated by the processor 230 in a nonvolatile manner.

RAM252は、プロセッサ230によって生成されたデータを一時的に保持する。
グラフィックメモリ254は、表示装置212において画像を表示するためのデータを保持する。なお、他の局面において、RAM252とグラフィックメモリ254とが一体として構成されていてもよい。
The RAM 252 temporarily holds data generated by the processor 230.
The graphic memory 254 holds data for displaying an image on the display device 212. In another aspect, the RAM 252 and the graphic memory 254 may be configured as a single unit.

ROM256は端末100を作動させるためのファームウェア、上述の操作入力受付のためのプログラムその他の各種プログラムと、端末100に固有の動作を実行させるために設定値として予め入力されたデータとを保持している。   The ROM 256 holds firmware for operating the terminal 100, the above-described program for accepting operation input and other various programs, and data preliminarily input as setting values for causing the terminal 100 to perform operations specific to the ROM 256. Yes.

表示ドライバ214は、グラフィックメモリ254に格納されているデータに基づく描画動作を表示装置212に対して実行する。表示装置212は、その動作に従って画像を表示する。   The display driver 214 performs a drawing operation based on data stored in the graphic memory 254 on the display device 212. The display device 212 displays an image according to the operation.

通信回路260は、アンテナ120によって受信された信号を変換し、変換後の信号をプロセッサ230に送出する。また他の局面において、通信回路260は、プロセッサ230から送られた信号を送信用の信号に変換し、変換後の信号をアンテナ120に送出する。   The communication circuit 260 converts the signal received by the antenna 120 and sends the converted signal to the processor 230. In another aspect, communication circuit 260 converts the signal sent from processor 230 into a signal for transmission, and sends the converted signal to antenna 120.

信号処理回路270は、マイク160から送られる電気信号を変換し変換後の信号をプロセッサ230に送出する。また、端末100が音声を出力する場合には、信号処理回路270は、プロセッサ230から送られた信号を音声出力用の信号に変換し、その変換後の信号をスピーカ130に送出する。スピーカ130は、その信号に基づき音声を出力する。   The signal processing circuit 270 converts the electrical signal sent from the microphone 160 and sends the converted signal to the processor 230. When terminal 100 outputs audio, signal processing circuit 270 converts the signal sent from processor 230 into a signal for audio output, and sends the converted signal to speaker 130. The speaker 130 outputs sound based on the signal.

バイブレータ280は、プロセッサ230から送られる信号に基づいて予め規定された振動パターンで発振する。   Vibrator 280 oscillates with a predetermined vibration pattern based on a signal sent from processor 230.

なお、プロセッサ230の操作入力受付により受付ける操作は、タッチパネル140を介したユーザ操作に限定されず、ボタン150からの操作も含む。   Note that the operation received by receiving the operation input of the processor 230 is not limited to a user operation via the touch panel 140, and includes an operation from the button 150.

<機能構成>
タッチパネル140の操作に基づいた文字列選択のための機能について説明する。
<Functional configuration>
A function for selecting a character string based on the operation of the touch panel 140 will be described.

図3は、本発明の実施の形態に係る文字列選択のための機能構成図である。図3の各部の機能は、プログラムとして予めROM256に格納されており、プロセッサ230がROM256からプログラムを読出し、実行することにより各機能が実現される。図3では、これら機能と情報の入出力を行なうための周辺部が示される。周辺部として、ここではタッチパネル140とグラフィックメモリ254を示すが、これらに限定されるものではない。なお、図3の各機能は、プログラムのみに限定されず、プログラムと回路の組合せにより実現されるようにしてもよい。   FIG. 3 is a functional configuration diagram for character string selection according to the embodiment of the present invention. 3 is stored in advance in the ROM 256 as a program, and each function is realized by the processor 230 reading and executing the program from the ROM 256. FIG. 3 shows a peripheral portion for inputting / outputting these functions and information. Here, the touch panel 140 and the graphic memory 254 are shown as peripheral parts, but the peripheral part is not limited thereto. Each function of FIG. 3 is not limited to a program, and may be realized by a combination of a program and a circuit.

図3を参照して、プロセッサ230は、タッチパネル140におけるユーザの操作に基づきイベントを検出するためのイベント検出部231、イベント検出後にユーザ操作によるストロークデータを算出するためのストローク検出部232、ストロークデータから指定されたエリアを検出するためのエリア検出部233、解析処理部234、および選択結果出力部235を含む。   Referring to FIG. 3, processor 230 includes an event detection unit 231 for detecting an event based on a user operation on touch panel 140, a stroke detection unit 232 for calculating stroke data by a user operation after event detection, and stroke data An area detection unit 233, an analysis processing unit 234, and a selection result output unit 235 for detecting an area designated from the above are included.

エリア検出部233は、算出されたストロークデータから、LCDパネルの2次元座標領域における当該ストロークデータが示す座標範囲(エリア)を検出する。   The area detection unit 233 detects a coordinate range (area) indicated by the stroke data in the two-dimensional coordinate area of the LCD panel from the calculated stroke data.

解析処理部234は、表示部210に表示中の文章データを構文解析をすることにより段落、文、文節および単語に分割する機能と、解析後の文章データの文字列から部分文字列を選択的に抽出するための文字列検出部241を含む。   The analysis processing unit 234 selectively parses the partial character string from the character string of the analyzed sentence data and the function of dividing the sentence data being displayed on the display unit 210 into a paragraph, sentence, clause, and word by syntactic analysis. Includes a character string detection unit 241 for extraction.

文字列検出部241は、段落、文、文節および単語の単位で文字数をカウントする文字数カウント部242、カウント結果の文字数の比率と予め定められた閾値とを比較するための文字数比較部243、および選択部244を含む。選択部244は、文字数の比較結果から検出された部分文字列を元の文章から選択的に抽出し、選択結果出力部235に出力する。   The character string detection unit 241 includes a character number counting unit 242 that counts the number of characters in units of paragraphs, sentences, clauses, and words, a character number comparison unit 243 for comparing the ratio of the number of characters of the count result with a predetermined threshold value, and A selection unit 244 is included. The selection unit 244 selectively extracts a partial character string detected from the comparison result of the number of characters from the original sentence and outputs it to the selection result output unit 235.

選択結果出力部235は、選択部244からの選択部分文字列に基づく情報をグラフィックメモリ254に格納する。したがって、表示部210では、ユーザ操作により選択された部分文字列を表示することができる。この表示態様は、特に限定されるものではないがユーザの確認を容易とするために部分文字列の反転表示などである。   The selection result output unit 235 stores information based on the selected partial character string from the selection unit 244 in the graphic memory 254. Therefore, the display unit 210 can display a partial character string selected by a user operation. This display mode is not particularly limited, and may be a partial character string reverse display or the like for easy confirmation by the user.

図4には、文字列選択のための参照される閾値の格納例が示される。図4を参照して、ROM256には、段落の文字列を選択するための基準である第1閾値1TH、文の文字列を選択するための基準である第2閾値2TH、文節の文字列を選択するための基準である第3閾値3TH、単語の文字列を選択するための基準である第4閾値4TH、および範囲閾値THが格納される。範囲閾値THは、ストロークデータで囲まれた範囲を判定するために参照される基準であって、詳細は後述する。   FIG. 4 shows an example of storing a threshold value to be referenced for character string selection. Referring to FIG. 4, ROM 256 stores a first threshold value 1TH that is a criterion for selecting a character string of a paragraph, a second threshold value 2TH that is a criterion for selecting a character string of a sentence, and a character string of a phrase. A third threshold 3TH that is a reference for selection, a fourth threshold 4TH that is a reference for selecting a character string of a word, and a range threshold TH are stored. The range threshold TH is a reference that is referred to for determining a range surrounded by stroke data, and will be described in detail later.

<表示される文章の構成>
プロセッサ230は、文章データを入力すると、入力した文章データから表示用フォーマットに従うテキストデータ253を生成し、RAM252に格納する。文章データは、予め端末100内の記憶領域に格納されたデータ、またはアンテナ120により受信したデータ、またはメモリドライバ151を介して外部から入力したデータなどである。
<Composition of displayed text>
When the text data is input, the processor 230 generates text data 253 according to the display format from the input text data, and stores the text data 253 in the RAM 252. The text data is data stored in advance in a storage area in the terminal 100, data received by the antenna 120, data input from the outside via the memory driver 151, or the like.

テキストデータ253を表示する際には、プロセッサ230はテキストデータ253からビットマップデータを生成して、グラフィックメモリ254に格納する。   When displaying the text data 253, the processor 230 generates bitmap data from the text data 253 and stores it in the graphic memory 254.

上述の表示用フォーマットは、文章データを表示部210に表示するための画素(ドット)単位の文字サイズ、ならびに文字間隔、行間隔および余白などのサイズを示す。   The display format described above indicates a character size in units of pixels (dots) for displaying text data on the display unit 210, and sizes such as character spacing, line spacing, and margins.

図5は文章データの一部を示す図である。図6は図5の文章データから生成されるテキストデータ253の一例を示す図である。図7はテキストデータ253から取得される行列位置データ353の一例を示す図である。図8はマップデータ453の一例を示す図である。   FIG. 5 is a diagram showing a part of text data. FIG. 6 is a diagram showing an example of text data 253 generated from the text data of FIG. FIG. 7 is a diagram illustrating an example of the matrix position data 353 acquired from the text data 253. FIG. 8 is a diagram illustrating an example of the map data 453.

たとえば、フォーマットデータの文字サイズが縦横幅が等幅であるサイズを示す場合、プロセッサ230は、図5の文章データを表示用フォーマットに従って、図6のテキストデータ253に変換し、RAM252に格納する。テキストデータ253は、文章データの文字を2次元の行列に配置したものである。この行列における文字の位置(以下、行列位置という)は、当該文字のLCDパネルにおける電極素子の座標位置(x1,y1)に対応し、タッチパネル140における電極の座標位置(x0,y0)に対応する。なお、プロセッサ230は、予め定めた変換手順に従うことで、文字の行列位置、座標位置(x1,y1)および座標位置(x0,y0)を相互に対応付けるための換算が可能である。   For example, when the character size of the format data indicates a size in which the width and width are equal, the processor 230 converts the text data in FIG. 5 into the text data 253 in FIG. 6 according to the display format, and stores the text data 253 in the RAM 252. Text data 253 is obtained by arranging text data characters in a two-dimensional matrix. The position of the character in this matrix (hereinafter referred to as the matrix position) corresponds to the coordinate position (x1, y1) of the electrode element on the LCD panel of the character, and corresponds to the coordinate position (x0, y0) of the electrode on the touch panel 140. . The processor 230 can perform conversion for associating the matrix position, the coordinate position (x1, y1), and the coordinate position (x0, y0) with each other by following a predetermined conversion procedure.

プロセッサ230は、テキストデータ253から行列位置データ353を生成し、RAM252に格納する。解析処理部234は構文解析によって、図6のテキストデータ253から、2つの段落を抽出し、各段落から1つ以上の文を抽出し、各文から1つ以上の文節を抽出し、各文節から1つ以上の単語を抽出する。   The processor 230 generates matrix position data 353 from the text data 253 and stores it in the RAM 252. The analysis processing unit 234 extracts two paragraphs from the text data 253 in FIG. 6 by syntactic analysis, extracts one or more sentences from each paragraph, extracts one or more phrases from each sentence, Extract one or more words from.

プロセッサ230は、図6のテキストデータ253の構文解析結果から図7の行列位置データ353を生成する。具体的には、図7を参照して、図6の1つ目の段落の段落番号N1(=1)と当該段落の開始文字と終了文字の行列位置N2((1,1),(2,32))の組と、当該段落の各文について文番号N3と当該文の開始および終了文字の行列位置N4((1,1),(2,32))の組と、当該文の各文節について文節番号N5と当該文節の開始および終了文字の行列位置N6の組と、各文節の各単語について単語番号N7と当該単語の開始および終了文字の行列位置N8の組とを生成する。また、各単語の単語番号N7と行列位置N8の組に、テキストデータ253の対応する単語WDをポインタ等により関連付けする。   The processor 230 generates the matrix position data 353 in FIG. 7 from the syntax analysis result of the text data 253 in FIG. 6. Specifically, referring to FIG. 7, the paragraph number N1 (= 1) of the first paragraph of FIG. 6 and the matrix position N2 ((1, 1), (2) of the start character and end character of the paragraph. , 32)), a sentence number N3 for each sentence in the paragraph and a matrix position N4 ((1, 1), (2, 32)) of the sentence start and end characters, and each sentence of the sentence A set of a phrase number N5 and a matrix position N6 of the start and end characters of the phrase and a set of a word number N7 and a matrix position N8 of the start and end characters of the word are generated for each phrase. Further, the word WD corresponding to the text data 253 is associated with the set of the word number N7 and the matrix position N8 of each word by a pointer or the like.

同様にして、図7を参照して、図6の2つ目の段落の段落番号N1(=2)と当該段落の開始文字と終了文字の行列位置N2((4,1),(7,18))の組と、当該段落の各文について文番号N3と当該文の開始および終了文字の行列位置N4の組、図示しないが当該文の各文節について文節番号と当該文節の開始および終了文字の行列位置の組と、各文節の各単語について単語番号と当該単語の開始および終了文字の行列位置の組とを生成する。   Similarly, referring to FIG. 7, the paragraph number N1 (= 2) of the second paragraph in FIG. 6 and the matrix position N2 ((4,1), (7, 18)), the sentence number N3 for each sentence in the paragraph, and the matrix position N4 of the sentence start and end characters, although not shown, the phrase number and the sentence start and end characters for each sentence of the sentence And for each word in each clause, a word number and a set of matrix positions of the start and end characters of the word are generated.

このようにテキストデータ253から、文章を構成する段落を抽出し、各段落から文/文節/単語を抽出し、それらを一意に識別する識別子(番号N1,N3、N5、N7の値の組合せ)と、行列位置(N2、N4、N6、N8)と、単語WDとを関連付けることにより、リスト形式の行列位置データ353を生成する。   In this way, the paragraphs constituting the sentence are extracted from the text data 253, the sentence / sentence / word is extracted from each paragraph, and the identifiers for uniquely identifying them (combinations of values of numbers N1, N3, N5, N7) And the matrix position (N2, N4, N6, N8) and the word WD are associated with each other, thereby generating the matrix position data 353 in a list format.

プロセッサ230は、上述した変換手順に従うことで、文字の行列位置、座標位置(x1,y1)および座標位置(x0,y0)を相互に対応付けるための換算をするが、当該換算を容易にするために、行列位置データ353からマップデータ453を生成し、RAM252に格納する。   The processor 230 performs conversion for associating the character matrix position, the coordinate position (x1, y1), and the coordinate position (x0, y0) with each other by following the above-described conversion procedure. Then, map data 453 is generated from the matrix position data 353 and stored in the RAM 252.

具体的には、図6と同じサイズの行列テーブルを準備し、各文字について対応の行列位置に位置データ500を格納する。位置データ500は、対応の文字について、行列位置データ353のデータをリスト状に辿ることで取得される当該文字の行列位置を示す。   Specifically, a matrix table having the same size as that in FIG. 6 is prepared, and the position data 500 is stored in the corresponding matrix position for each character. The position data 500 indicates the matrix position of the character acquired by tracing the data of the matrix position data 353 in a list for the corresponding character.

図8のマップデータ453では、一部の位置データ500が示される。位置データ500は、各行列のマス毎(文字または空白など)にどの段落、文、文節、単語を生成する文字であるかを4ケタの数値の組合せで表したものである。たとえば、1行1列の「1100」は1段落目の1文目で文節、単語が無い、すなわち空白文字である表している。1行14列目の「1134」の文字は1段落目、1文目、3文節目、4単語目の文字であることを表している。   In the map data 453 of FIG. 8, a part of the position data 500 is shown. The position data 500 represents a paragraph, sentence, clause, or word that generates a character for each square (character or space) of each matrix by a combination of numerical values of 4 digits. For example, “1100” in the first row and the first column represents the first sentence in the first paragraph that has no clauses or words, that is, a blank character. The character “1134” in the first row and the 14th column represents the character in the first paragraph, the first sentence, the third sentence, and the fourth word.

<エリア検出>
本実施の形態に係るエリア検出部233は、上述したようにストロークデータから、LCDパネルの2次元座標領域における当該ストロークデータが示す座標範囲(エリア)を特定する。
<Area detection>
As described above, the area detection unit 233 according to the present embodiment specifies the coordinate range (area) indicated by the stroke data in the two-dimensional coordinate area of the LCD panel from the stroke data.

ストロークデータは、ユーザの指・ペン101が所望エリアを囲むように連続して移動した場合の始点(タッチ開始)から終点(タッチ終了)までの円弧上の軌跡を示す。つまり、ストロークは始点と終点が同一箇所となる閉曲線であることが望ましいが、閉曲線を形成しない場合には、本実施の形態に係るエリア検出部233はストロークデータから、始点と終点とを結ぶ円弧状の軌跡を補完することにより、始点と終点を一致させた閉曲線のストロークデータを取得する。   The stroke data indicates a locus on an arc from the start point (touch start) to the end point (touch end) when the user's finger / pen 101 continuously moves so as to surround the desired area. That is, it is desirable that the stroke is a closed curve where the start point and the end point are the same place. However, when the closed curve is not formed, the area detection unit 233 according to the present embodiment uses a circle connecting the start point and the end point from the stroke data. By complementing the arc-shaped trajectory, the stroke data of the closed curve in which the start point and the end point are matched is acquired.

なお、表示部210には、実際の操作軌跡すなわち閉曲線に補完される前のストロークデータ、または補完後のストロークデータ従う軌跡が、表示中の文章に重畳して表示されるようにしてもよい。ストロークデータによる部分文字列の選択終了後は、プロセッサ230は軌跡の表示を消去してもよい。   Note that the display unit 210 may display the actual operation locus, that is, the stroke data before being supplemented with the closed curve, or the locus according to the stroke data after complementation, superimposed on the displayed text. After the selection of the partial character string based on the stroke data, the processor 230 may delete the display of the locus.

<部分文字列の選択>
エリア検出部233が検出したエリアの情報から部分文字列を選択的に抽出する方法として、たとえば、以下の3つの方法のいずれかを適用する。適用する方法はユーザからの操作入力により可変に変更できると想定する。
<Selection of substring>
For example, one of the following three methods is applied as a method for selectively extracting a partial character string from information on an area detected by the area detection unit 233. It is assumed that the applied method can be variably changed by an operation input from the user.

(第1の方法)
まず、取得したストロークデータが示す閉曲線内に該当する段落、文、文節、単語の全て(100%)選択するような第1の方法を説明する。ここで、「閉曲線内に該当する段落」とは、当該段落を構成する文字が閉曲線内に存在することを示し、「閉曲線内に該当する文」とは、当該文を構成する文字が閉曲線内に存在することを示す。「閉曲線内に該当する文節」および「閉曲線内に該当する単語」についても同様の意味を示す。
(First method)
First, a first method will be described in which all (100%) of paragraphs, sentences, clauses, and words that fall within the closed curve indicated by the acquired stroke data are selected. Here, “a paragraph that falls within a closed curve” indicates that the characters that make up the paragraph exist within the closed curve, and “a sentence that falls within the closed curve” means that the characters that make up the sentence are within the closed curve. Is present. “Sentences that fall within a closed curve” and “words that fall within a closed curve” have the same meaning.

図9は文章データの表示例を示す図であり、図10は選択された文字列を示す図である。図9の文章データを表示中にユーザがタッチパネル140上を指・ペン101をタッチ操作し、ストローク501を入力した場合には、図10の部分文字列502が選択されて表示される。参考までに、図6ではストローク501の閉曲線内で表示されている文字が斜線で塗られて示される。   FIG. 9 is a diagram showing a display example of text data, and FIG. 10 is a diagram showing a selected character string. When the user touches the touch panel 140 with the finger / pen 101 and inputs the stroke 501 while the text data in FIG. 9 is displayed, the partial character string 502 in FIG. 10 is selected and displayed. For reference, in FIG. 6, characters displayed in the closed curve of the stroke 501 are shown with hatching.

第1の方法では、文字列検出部241は、エリア検出部233からのストロークデータが示す各座標値を、上述の予め定めた変換手順に従うことで、文字の行列位置すなわちマップデータ453の行列位置に変換する。変換により取得した各行列位置に基づきマップデータ453を検索し、位置データ500を読出す。   In the first method, the character string detection unit 241 follows the above-described predetermined conversion procedure for each coordinate value indicated by the stroke data from the area detection unit 233, so that the matrix position of the character, that is, the matrix position of the map data 453 is obtained. Convert to The map data 453 is searched based on each matrix position obtained by the conversion, and the position data 500 is read.

読出された位置データ500の4桁の数値からストロークの閉曲線内に該当する段落、文、文節、単語を検出し、その文字列をテキストデータ253から抽出する。   A paragraph, sentence, clause, or word corresponding to the closed curve of the stroke is detected from the read 4-digit numerical value of the position data 500, and the character string is extracted from the text data 253.

例えば、ストローク501により1行14列から1行17列までを囲む場合を想定する。この場合に、文字列検出部241がマップデータ453から読出す位置データ500の数値は「1134」と「1130」を示す。したがって、これら数値で行列位置データ353を検索する。その結果、N1=1、N3=1、N5=3およびN7=4の組に関連付けされた「放射線量」という単語WDと、それを包含する文節と、当該文節を包含する文と、当該文を包含する1つ目の段落が、ストロークの閉曲線内に該当する段落、文、文節および単語として選択することができる。   For example, it is assumed that the stroke 501 surrounds the first row and the 14th column to the first row and the 17th column. In this case, the numerical values of the position data 500 read from the map data 453 by the character string detection unit 241 indicate “1134” and “1130”. Therefore, the matrix position data 353 is searched with these numerical values. As a result, the word WD of “radiation dose” associated with the set of N1 = 1, N3 = 1, N5 = 3 and N7 = 4, a clause including the word, a sentence including the clause, and the sentence Can be selected as the corresponding paragraph, sentence, clause and word within the closed curve of the stroke.

したがって、テキストデータ253から単語WD「放射線量」の文字列として抽出するには、関連付けされた行列位置N8が示す(1,13)〜(1,16)の文字列をテキストデータ253から選択的に抽出すればよい。   Therefore, in order to extract the character string of the word WD “radiation dose” from the text data 253, the character strings (1, 13) to (1, 16) indicated by the associated matrix position N8 are selectively selected from the text data 253. You can extract it.

同様に、テキストデータ253から単語WD「放射線量」を包含する文節の文字列を抽出するには、関連付けされた行列位置N6が示す(1,11)〜(1,17)の文字列をテキストデータ253から検索し抽出すればよい。   Similarly, in order to extract a character string of a clause including the word WD “radiation dose” from the text data 253, the character strings of (1, 11) to (1, 17) indicated by the associated matrix position N6 are converted into text. What is necessary is just to search and extract from the data 253.

同様に、テキストデータ253から単語WD「放射線量」を包含する文の文字列を抽出するには、関連付けされた行列位置N4が示す(1,1)〜(2,32)の文字列をテキストデータ253から検索し抽出すればよい。   Similarly, in order to extract a character string of a sentence including the word WD “radiation dose” from the text data 253, the character strings of (1, 1) to (2, 32) indicated by the associated matrix position N4 are converted into text. What is necessary is just to search and extract from the data 253.

同様に、テキストデータ253から単語WD「放射線量」を包含する段落の文字列を抽出するには、関連付けされた行列位置N2が示す(1,1)〜(2,32)の文字列をテキストデータ253から検索し抽出すればよい。   Similarly, in order to extract a character string of a paragraph including the word WD “radiation dose” from the text data 253, the character strings of (1, 1) to (2, 32) indicated by the associated matrix position N2 are converted into text. What is necessary is just to search and extract from the data 253.

ここで、第1の方法は、ストロークデータが示す閉曲線内に該当する段落、文、文節、単語の全て(100%)を選択する方法であるから文字列検索部241は、たとえば「1134」に基づき行列位置データ353を検索すれば、「1134」と一致する(N1,N3,N5,N7)の数値の組は、1つ目の段落に含まれると判別できる。したがって、ストローク501により1番目の段落の全ての文字列が選択される。   Here, since the first method is a method of selecting all (100%) of paragraphs, sentences, clauses, and words that fall within the closed curve indicated by the stroke data, the character string search unit 241 sets, for example, “1134”. If the matrix position data 353 is searched based on this, it can be determined that a set of numerical values (N1, N3, N5, N7) that matches “1134” is included in the first paragraph. Accordingly, all character strings in the first paragraph are selected by the stroke 501.

このように、(第1の方法)では、ストロークデータが示す閉曲線内に該当する段落、または文、または文節、または単語の全て(100%)を選択するから、文字列検出部241が検出する文字列にユーザ所望の文字列が含まれる確実性を高めることができる。   In this way, in the (first method), since the corresponding paragraph, sentence, clause, or word (100%) is selected within the closed curve indicated by the stroke data, the character string detection unit 241 detects it. The certainty that the user-desired character string is included in the character string can be improved.

(第2の方法)
上記の第1の方法で、取得したストロークデータが示す閉曲線内に該当する段落、文、文節、単語の全て(100%)を選択したが、第2の方法では、閉曲線内の中心部から60%の範囲に該当する段落、文、文節、単語を選択する。
(Second method)
In the first method, all the paragraphs, sentences, phrases, and words (100%) corresponding to the closed curve indicated by the acquired stroke data are selected. In the second method, 60% from the center in the closed curve is selected. Select paragraphs, sentences, clauses, and words that fall within the% range.

ここでは、説明を簡単にするためにストロークによる軌跡は、楕円であると想定する。
図11は文章データの表示例を示す図であり、図12は選択された文字列を示す図である。表示中の文章データに対し図11のストローク503が入力される場合には、ストローク503の閉曲線内の領域の中心部から60%の範囲に該当する段落、文、文節、単語の文字列505(図12参照)が選択される。
Here, to simplify the explanation, it is assumed that the trajectory by the stroke is an ellipse.
FIG. 11 is a diagram showing a display example of text data, and FIG. 12 is a diagram showing a selected character string. When the stroke 503 in FIG. 11 is input to the text data being displayed, the character string 505 (paragraph, sentence, clause, word corresponding to the range of 60% from the center of the area within the closed curve of the stroke 503 ( 12) is selected.

文字列検出部241は、ストローク503のストロークデータが示す楕円の中心(長軸と短軸の交点)座標を算出し、当該中心座標を同心円にした60%楕円504(図11参照)の領域を算出する。60%楕円とは、長軸および短軸の長さが、元の60%長さの楕円である。   The character string detection unit 241 calculates the center (intersection of the long axis and short axis) coordinates of the ellipse indicated by the stroke data of the stroke 503, and the region of the 60% ellipse 504 (see FIG. 11) with the center coordinates being concentric circles. calculate. The 60% ellipse is an ellipse whose major axis and minor axis are 60% in length.

文字列検出部241は、上述の60%楕円で囲まれた領域の各座標値を、上述の予め定めた変換手順に従うことで、文字の行列位置すなわちマップデータ453の行列位置に変換する。変換により取得した各行列位置に基づきマップデータ453を検索し、位置データ500を読出す。読出された位置データ500の4桁の数値から段落、文、文節、単語のどの単位で囲まれているかを判断し、判断結果に基づき文字列を抽出する。この抽出手順は、上述した(第1の方法)と同じであり説明を繰り返さない。   The character string detection unit 241 converts each coordinate value of the region surrounded by the 60% ellipse to the matrix position of the character, that is, the matrix position of the map data 453 by following the above-described predetermined conversion procedure. The map data 453 is searched based on each matrix position obtained by the conversion, and the position data 500 is read. Based on the four-digit numerical value of the read position data 500, it is determined in which unit of a paragraph, sentence, clause, or word, and a character string is extracted based on the determination result. This extraction procedure is the same as the (first method) described above, and the description will not be repeated.

ここでは、60%楕円としたが、これに限定されず60〜90%範囲の楕円であってもよい。   Here, a 60% ellipse is used, but the present invention is not limited to this, and an ellipse in the range of 60 to 90% may be used.

(第2の方法)では、ユーザ心理として所望する文字列が確実に選択されるように当該文字列を囲む大きめのストロークを入力するということに鑑みて、ストロークデータが示す閉曲線内の中心から60%の範囲に該当する段落、文、文節、単語を選択するようにしている。したがって、文字列検出部241が検出する文字列がユーザ所望の文字列である確実性を高めることができる。   In the (second method), in view of inputting a large stroke that surrounds the character string so that the desired character string is surely selected as user psychology, 60 from the center in the closed curve indicated by the stroke data. Select paragraphs, sentences, clauses, and words that fall within the% range. Therefore, it is possible to improve the certainty that the character string detected by the character string detection unit 241 is a character string desired by the user.

なお、第2の方法で楕円のサイズを可変に決定するために、ユーザ操作により外部からサイズ(60%〜90%など)を入力し、RAM252に一時的に格納するようにしてもよい。または、サイズはROM256に範囲閾値THとして予め格納しておくとしてもよい。   In addition, in order to variably determine the size of the ellipse by the second method, a size (60% to 90%, etc.) may be input from the outside by a user operation and temporarily stored in the RAM 252. Alternatively, the size may be stored in advance in ROM 256 as a range threshold value TH.

(第3の方法)
上述の第1および第2の方法では、ストロークで囲まれた閉曲線内に該当する段落、文、文節、単語の文字列を選択したが、第3の方法では、閉曲線内に該当する段落、文、文節、単語のそれぞれについて、その文字数が予め定めた比率の条件を満たすものを選択する。この比率としてROM256に予め格納された第1〜第4閾値1TH〜4THが参照される。
(Third method)
In the first and second methods described above, paragraphs, sentences, clauses, and word strings corresponding to the closed curve surrounded by the stroke are selected. In the third method, paragraphs and sentences corresponding to the closed curve are selected. For each of the phrases and words, the one whose number of characters satisfies a predetermined ratio is selected. As this ratio, the first to fourth threshold values 1TH to 4TH stored in advance in the ROM 256 are referred to.

ここでは第1〜第4閾値1TH〜4THはROM256に格納される固定値としているが、固定値に限定されない。たとえば、ユーザ操作により可変に変更できるとしてもよい。   Here, the first to fourth threshold values 1TH to 4TH are fixed values stored in the ROM 256, but are not limited to fixed values. For example, it may be variably changed by a user operation.

図13は文章データの表示例を示す図であり、図14と図15は選択された文字列を示す図である。表示中の文章データに対し図13のストローク506を入力した場合には、第3の方法では、ストローク506の閉曲線内に該当する各段落について、閉曲線内に表示される文字数が当該段落の全文字数に対して占める割合(比率)を算出し、その比率が第1閾値1THより大きい段落を選択する。   FIG. 13 is a diagram showing a display example of text data, and FIGS. 14 and 15 are diagrams showing selected character strings. When the stroke 506 in FIG. 13 is input to the text data being displayed, in the third method, the number of characters displayed in the closed curve for each paragraph corresponding to the closed curve in the stroke 506 is the total number of characters in the paragraph. The ratio (ratio) which occupies is calculated, and the paragraph whose ratio is larger than the first threshold 1TH is selected.

同様に、文についても、ストローク506の閉曲線内に該当する各文について、閉曲線内に表示される文字数が当該文の全文字数に対して占める割合(比率)を算出し、その比率が第2閾値2THより大きい文を選択する。同様にストローク506の閉曲線内に該当する各文節について、閉曲線内に表示される文字数が当該文節の全文字数に対して占める割合(比率)を算出し、その比率が第3閾値3THより大きい文節を選択する。同様にストローク506の閉曲線内に該当する各単語について、閉曲線内に表示される文字数が当該単語の全文字数に対して占める割合(比率)を算出し、その比率が第4閾値4THより大きい単語を選択する。これら第1閾値1TH〜第4閾値4THは同じ値であってもよく、また異ならせてもよい。   Similarly, with respect to the sentence, for each sentence corresponding to the closed curve of the stroke 506, the ratio (ratio) that the number of characters displayed in the closed curve occupies with respect to the total number of characters of the sentence is calculated, and the ratio is the second threshold value. Select a sentence greater than 2TH. Similarly, for each clause corresponding to the closed curve of the stroke 506, the ratio (ratio) that the number of characters displayed in the closed curve occupies with respect to the total number of characters of the relevant clause is calculated, and a clause whose ratio is larger than the third threshold 3TH is calculated. select. Similarly, for each word that falls within the closed curve of the stroke 506, the ratio (ratio) that the number of characters displayed in the closed curve occupies with respect to the total number of characters of the word is calculated, and a word whose ratio is larger than the fourth threshold 4TH is calculated. select. These first threshold value 1TH to fourth threshold value 4TH may be the same value or may be different.

図13のストローク506が入力された場合に、第1〜第4閾値1TH〜4THが100%であるときは図14のように文字列507が選択され、60%であるときは図15のように文字列508が選択される。なお、閾値が100%の場合の文字列選択方法は、第1の方法と同じになる。   When the stroke 506 in FIG. 13 is input, the character string 507 is selected as shown in FIG. 14 when the first to fourth threshold values 1TH to 4TH are 100%, and when it is 60%, as shown in FIG. A character string 508 is selected. The character string selection method when the threshold is 100% is the same as the first method.

第3の方法では、第1〜第4閾値1TH〜4THが60%程度のとき、図16のような縦長のストローク600が入力された場合には、ストローク600の閉曲線内に含まれる文字数そのものが少なくなり、その結果、部分文字列の選択が不可能となる。この場合には、エラーメッセージが出力(表示)されて、ストロークの再入力を促すようにしてもよい。   In the third method, when the first to fourth thresholds 1TH to 4TH are about 60%, and a vertically long stroke 600 as shown in FIG. 16 is input, the number of characters included in the closed curve of the stroke 600 itself is calculated. As a result, it becomes impossible to select a partial character string. In this case, an error message may be output (displayed) to prompt the stroke to be input again.

図17は、本実施の形態に係る第3の方法による文字列選択の処理フローチャートである。このフローチャートに従うプログラムはROM256に予め格納されて、プロセッサ230がプログラムを読出し実行することにより処理が実現される。このプログラムの実行に先だって、表示部210に図9の文章データが表示されており、プロセッサ230は表示中の文章についてテキストデータ253、行列位置データ353およびマップデータ453を生成し、RAM252に格納していると想定する。   FIG. 17 is a process flowchart of character string selection by the third method according to the present embodiment. The program according to this flowchart is stored in advance in the ROM 256, and the processing is realized by the processor 230 reading and executing the program. Prior to execution of this program, the text data of FIG. 9 is displayed on the display unit 210, and the processor 230 generates text data 253, matrix position data 353, and map data 453 for the text being displayed, and stores them in the RAM 252. Assuming that

まず、プロセッサ230はタッチパネル140からの電気信号に基づき、タッチパネル140の表面がタッチされたこと(これをタッチパネルイベントともいう)を検出する(ステップS3)。たとえば、ユーザは指・ペン101によりタッチする。   First, based on the electrical signal from the touch panel 140, the processor 230 detects that the surface of the touch panel 140 has been touched (this is also referred to as a touch panel event) (step S3). For example, the user touches with the finger / pen 101.

タッチされたことを検出すると、ストローク検出部232は、タッチパネル140からの電気信号に基づきジェスチャ(動作)であるストロークを検出し、ストロークデータを出力する(ステップS5)。   When it is detected that the touch has been made, the stroke detection unit 232 detects a stroke that is a gesture (operation) based on an electrical signal from the touch panel 140, and outputs stroke data (step S5).

プロセッサ230は、ストロークデータが「囲む」ジェスチャであるか、すなわち閉曲線を構成するか否かを判定する(ステップS7)。たとえばストロークデータの始点と終点の座標値を比較し、比較結果に基づき判定する。「囲む」ジェスチャではないと判定されると(ステップS7で“囲まない”)、処理はステップS3に戻る。   The processor 230 determines whether or not the stroke data is an “enclosing” gesture, that is, whether or not a closed curve is formed (step S7). For example, the coordinate values of the start point and end point of the stroke data are compared, and determination is made based on the comparison result. If it is determined that the gesture is not “enclose” (“not enclose” in step S7), the process returns to step S3.

「囲む」ジェスチャであると判定されると(ステップS7で“囲む”)、文字列検出部241は、閉曲線内に文字があるか否かを判定する(ステップS11)。具体的には、文字列検出部241は、閉曲線内の座標値を検出し、検出した座標値を対応する行列位置に変換し、変換後の行列位置に基づきテキストデータ253を検索し、当該行列位置に文字があるか否かを判定する。文字無と判定されると(ステップS11で“文字無し”)、ステップS3の処理に戻る。   If it is determined that the gesture is “enclose” (“enclose” in step S7), the character string detection unit 241 determines whether there is a character in the closed curve (step S11). Specifically, the character string detection unit 241 detects the coordinate value in the closed curve, converts the detected coordinate value to a corresponding matrix position, searches the text data 253 based on the converted matrix position, It is determined whether or not there is a character at the position. If it is determined that there is no character (“no character” in step S11), the process returns to step S3.

文字有りと判定されると(ステップS11で“文字有り”)、文字列検出部241は閉曲線内に該当する段落、文、文節および単語の全てをテキストデータ253から抽出する。そして、文字数カウント部242は、抽出された各段落、各文、各文節および各単語にについて文字数をカウントする(ステップS13)。カウント値は、文字数比較部243に出力される。   When it is determined that there is a character (“character is present” in step S11), the character string detection unit 241 extracts all the paragraphs, sentences, clauses, and words corresponding to the closed curve from the text data 253. Then, the character count unit 242 counts the number of characters for each extracted paragraph, each sentence, each clause, and each word (step S13). The count value is output to the character number comparison unit 243.

文字数比較部243は、抽出された各段落の文字数と第1閾値1THとを比較する。比較結果に基づき、抽出された段落のうち(文字数>第1閾値1TH)の条件が成立する段落があるか否かを判定する(ステップS15)。ないと判定すると(ステップS15でNO)、ステップS23に移行する。   The number-of-characters comparison unit 243 compares the number of characters in each extracted paragraph with the first threshold value 1TH. Based on the comparison result, it is determined whether or not there is a paragraph that satisfies the condition (number of characters> first threshold value 1TH) among the extracted paragraphs (step S15). If it is determined that there is not (NO in step S15), the process proceeds to step S23.

あると判定すると(ステップS15でYES)、文字列検出部241は、上記の条件が成立する段落は1つであるか否かを判定する(ステップS17)。1つであると判定すると(ステップS17でYES)、選択部244は1つと判定された段落の文字列のみをテキストデータ253から抽出し選択結果出力部235に出力する(ステップS19)。その後、文字列選択処理は終了する。   If it is determined that there is one (YES in step S15), the character string detection unit 241 determines whether there is only one paragraph that satisfies the above condition (step S17). If it is determined that there is one (YES in step S17), the selection unit 244 extracts only the character string of the paragraph determined to be one from the text data 253 and outputs it to the selection result output unit 235 (step S19). Thereafter, the character string selection process ends.

段落は1つではない、すなわち2つ以上と判定されると(ステップS17でNO)、選択部244は2つ以上の段落のうち、閉曲線内に配置される文字数の段落総文字数に占める比率が最も高い段落のみを選択する(ステップS21)。   When it is determined that the number of paragraphs is not one, that is, two or more (NO in step S17), the selection unit 244 determines the ratio of the number of characters arranged in the closed curve to the total number of characters in the two or more paragraphs. Only the highest paragraph is selected (step S21).

具体的には、文字数カウント部242は、各段落について、行列位置データ353から番号N2の値を最上位桁に有した4桁数値を読出し、読出した4桁数値から当該段落の総文字数をカウントする。つづいて、閉曲線内の各座標位置に対応する位置データ500の数値から当該段落の該当文字数をカウントする。文字列検出部241は、カウント結果を用いた(該当文字数/総文字数)の演算により、各段落について上記の比率を算出する。   Specifically, for each paragraph, the character count unit 242 reads a 4-digit value having the value of the number N2 in the most significant digit from the matrix position data 353 and counts the total number of characters of the paragraph from the read 4-digit value. To do. Subsequently, the number of characters in the paragraph is counted from the numerical value of the position data 500 corresponding to each coordinate position in the closed curve. The character string detection unit 241 calculates the above ratio for each paragraph by calculating (number of applicable characters / total number of characters) using the count result.

文字数比較部243は、算出された比率を比較し最大である段落のみを選択し、当該段落の番号N1に対応の値N2を選択部244に出力する。したがって、選択部244は、値N2の行列位置に基づきテキストデータ253を検索し該当する文字列を選択する。その後、文字列選択処理は終了する。たとえば、1つ目の段落が選択された場合には値N2((1,1)〜(2,32))が示す行列位置の文字列が選択される。   The character number comparison unit 243 compares the calculated ratios, selects only the largest paragraph, and outputs a value N2 corresponding to the number N1 of the paragraph to the selection unit 244. Therefore, the selection unit 244 searches the text data 253 based on the matrix position of the value N2 and selects a corresponding character string. Thereafter, the character string selection process ends. For example, when the first paragraph is selected, the character string at the matrix position indicated by the value N2 ((1, 1) to (2, 32)) is selected.

ステップS23では、文字数比較部243は、閉曲線内に該当する各文について文字数をカウントし、カウント文字数と第2閾値2THとを比較する。比較結果に基づき、抽出された文のうち(文字数>第2閾値2TH)の条件が成立する文があるか否かを判定する。ないと判定すると(ステップS23でNO)、ステップS31に移行する。   In step S23, the character number comparison unit 243 counts the number of characters for each sentence that falls within the closed curve, and compares the counted number of characters with the second threshold 2TH. Based on the comparison result, it is determined whether or not there is a sentence that satisfies the condition (number of characters> second threshold 2TH) among the extracted sentences. If it is determined that there is not (NO in step S23), the process proceeds to step S31.

あると判定すると(ステップS23でYES)、文字列検出部241は、上記の条件が成立する文は1つであるか否かを判定する(ステップS25)。1つであると判定すると(ステップS25でYES)、選択部244は1つと判定された文の文字列のみを選択結果出力部235に出力する(ステップS29)。その後、文字列選択処理は終了する。   If it is determined that there is one (YES in step S23), the character string detection unit 241 determines whether there is one sentence that satisfies the above condition (step S25). If it is determined that there is one (YES in step S25), the selection unit 244 outputs only the character string of the sentence determined to be one to the selection result output unit 235 (step S29). Thereafter, the character string selection process ends.

文は1つではない、すなわち2つ以上と判定されると(ステップS25でNO)、選択部244は2つ以上の文のうち、閉曲線内に配置される文字数の文総文字数に占める比率が最も高い文のみを選択する(ステップS27)。   If it is determined that the number of sentences is not one, that is, two or more (NO in step S25), the selection unit 244 determines the ratio of the number of characters arranged in the closed curve to the total number of sentences among the two or more sentences. Only the highest sentence is selected (step S27).

具体的には、文字数カウント部242は、各文について、行列位置データ353から番号N3の値を最上位桁の次位の桁に有した4桁数値を読出し、読出した4桁数値から当該文の総文字数をカウントする。つづいて、閉曲線内の各座標位置に対応する位置データ500の数値から当該文の該当文字数をカウントする。文字列検出部241は、カウント結果を用いた(該当文字数/総文字数)の演算により、各文について比率を算出する。   Specifically, for each sentence, the character number counting unit 242 reads a 4-digit value having the value of the number N3 in the next digit of the most significant digit from the matrix position data 353 and reads the sentence from the read 4-digit value. Count the total number of characters. Subsequently, the number of characters in the sentence is counted from the numerical value of the position data 500 corresponding to each coordinate position in the closed curve. The character string detection unit 241 calculates a ratio for each sentence by calculating (number of characters / total number of characters) using the count result.

文字数比較部243は、算出された比率を比較し最大である文のみを選択し、当該文の番号N3に対応の値N4を選択部244に出力する。したがって、選択部244は、値N4の行列位置に基づきテキストデータ253を検索し該当する文字列を選択する。その後、文字列選択処理は終了する。   The number-of-characters comparison unit 243 compares the calculated ratios, selects only the largest sentence, and outputs a value N4 corresponding to the sentence number N3 to the selection unit 244. Therefore, the selection unit 244 searches the text data 253 based on the matrix position of the value N4 and selects a corresponding character string. Thereafter, the character string selection process ends.

たとえば、1つ目の段落の1番目の文が選択された場合には値N4((1,1)〜(2,32))が示す行列位置の文字列が選択され、また2つ目の段落の1番目の文が選択された場合には値N4((4,1)〜(4,33))が示す行列位置の文字列が選択される。   For example, when the first sentence of the first paragraph is selected, the character string at the matrix position indicated by the value N4 ((1, 1) to (2, 32)) is selected, and the second sentence When the first sentence of the paragraph is selected, the character string at the matrix position indicated by the value N4 ((4, 1) to (4, 33)) is selected.

ステップS31では、文字数比較部243は、閉曲線内に該当する各文節について文字数をカウントし、カウント文字数と第3閾値3THとを比較する。比較結果に基づき、抽出された文節のうち(文字数>第3閾値3TH)の条件が成立する文節があるか否かを判定する。ないと判定すると(ステップS31でNO)、ステップS39に移行する。   In step S31, the character number comparison unit 243 counts the number of characters for each clause corresponding to the closed curve, and compares the counted number of characters with the third threshold 3TH. Based on the comparison result, it is determined whether there is a phrase that satisfies the condition (number of characters> third threshold 3TH) among the extracted phrases. If it is determined that there is not (NO in step S31), the process proceeds to step S39.

あると判定すると(ステップS31でYES)、文字列検出部241は、上記の条件が成立する文節は1つであるか否かを判定する(ステップS33)。1つであると判定すると(ステップS33でYES)、選択部244は1つと判定された文節の文字列のみを選択結果出力部235に出力する(ステップS37)。その後、文字列選択処理は終了する。   If it is determined that there is one (YES in step S31), the character string detection unit 241 determines whether there is one clause that satisfies the above condition (step S33). If it is determined that there is one (YES in step S33), the selection unit 244 outputs only the character string of the phrase determined to be one to the selection result output unit 235 (step S37). Thereafter, the character string selection process ends.

文節は1つではない、すなわち2つ以上と判定されると(ステップS33でNO)、選択部244は2つ以上の文節のうち、閉曲線内に配置される文字数の文節総文字数に占める比率が最も高い文節のみを選択する(ステップS35)。   If it is determined that the number of phrases is not one, that is, two or more (NO in step S33), the selection unit 244 determines the ratio of the number of characters arranged in the closed curve to the total number of characters in the phrase among the two or more phrases. Only the highest phrase is selected (step S35).

具体的には、文字数カウント部242は、各文節について、行列位置データ353から番号N5の値を最上位から3番目の桁に有した4桁数値を読出し、読出した4桁数値から当該文節の総文字数をカウントする。つづいて、閉曲線内の各座標位置に対応する位置データ500の数値から当該文節の該当文字数をカウントする。文字列検出部241は、カウント結果を用いた(該当文字数/総文字数)の演算により、各文節について比率を算出する。   Specifically, the character count unit 242 reads, for each clause, a four-digit value having the value of the number N5 in the third digit from the most significant position from the matrix position data 353, and reads the corresponding clause from the read four-digit value. Count the total number of characters. Subsequently, the number of characters in the clause is counted from the numerical value of the position data 500 corresponding to each coordinate position in the closed curve. The character string detection unit 241 calculates a ratio for each phrase by calculating (number of applicable characters / total number of characters) using the count result.

文字数比較部243は、算出された比率を比較し最大である文節のみを選択し、当該文節の番号N5に対応の値N6を選択部244に出力する。したがって、選択部244は、値N6の行列位置に基づきテキストデータ253を検索し該当する文字列を選択する。その後、文字列選択処理は終了する。   The character number comparison unit 243 compares the calculated ratios, selects only the largest phrase, and outputs the value N6 corresponding to the number N5 of the corresponding phrase to the selection unit 244. Therefore, the selection unit 244 searches the text data 253 based on the matrix position of the value N6 and selects a corresponding character string. Thereafter, the character string selection process ends.

たとえば、1つ目の段落の1番目の文の1番目の文節が選択された場合には値N6((1,2)〜(1,7))が示す行列位置の文字列が選択される。   For example, when the first clause of the first sentence of the first paragraph is selected, the character string at the matrix position indicated by the value N6 ((1,2,) to (1,7)) is selected. .

ステップS39では、文字数比較部243は、閉曲線内に該当する各単語について文字数をカウントし、カウント文字数と第4閾値4THとを比較する。比較結果に基づき、抽出された単語のうち(文字数>第4閾値4TH)の条件が成立する単語があるか否かを判定する。ないと判定すると(ステップS39でNO)、ステップS3に戻る。   In step S39, the character number comparison unit 243 counts the number of characters for each word that falls within the closed curve, and compares the counted number of characters with the fourth threshold value 4TH. Based on the comparison result, it is determined whether or not there is a word that satisfies the condition (number of characters> fourth threshold value 4TH) among the extracted words. If it is determined that there is not (NO in step S39), the process returns to step S3.

あると判定すると(ステップS39でYES)、文字列検出部241は、上記の条件が成立する単語は1つであるか否かを判定する(ステップS41)。1つであると判定すると(ステップS41でYES)、選択部244は1つと判定された単語の文字列のみを選択結果出力部235に出力する(ステップS45)。その後、文字列選択処理は終了する。   If it is determined that there is one (YES in step S39), the character string detection unit 241 determines whether there is one word that satisfies the above condition (step S41). If it is determined that there is one (YES in step S41), the selection unit 244 outputs only the character string of the word determined to be one to the selection result output unit 235 (step S45). Thereafter, the character string selection process ends.

単語は1つではない、すなわち2つ以上と判定されると(ステップS41でNO)、選択部244は2つ以上の単語のうち、閉曲線内に配置される文字数の単語総文字数に占める比率が最も高い単語のみを選択する(ステップS43)。   When it is determined that the number of words is not one, that is, two or more (NO in step S41), the selection unit 244 determines the ratio of the number of characters arranged in the closed curve to the total number of words among the two or more words. Only the highest word is selected (step S43).

具体的には、文字数カウント部242は、各単語について、行列位置データ353から番号N7の値を最下位桁に有した4桁数値を読出し、読出した4桁数値から当該の総文字数をカウントする。つづいて、閉曲線内の各座標位置に対応する位置データ500の数値から当該単語の該当文字数をカウントする。文字列検出部241は、カウント結果を用いた(該当文字数/総文字数)の演算により、各単語について比率を算出する。   Specifically, for each word, the character number counting unit 242 reads a 4-digit numerical value having the value of the number N7 in the least significant digit from the matrix position data 353 and counts the total number of characters from the read 4-digit numerical value. . Subsequently, the number of characters of the word is counted from the numerical value of the position data 500 corresponding to each coordinate position in the closed curve. The character string detection unit 241 calculates a ratio for each word by calculating (number of applicable characters / total number of characters) using the count result.

文字数比較部243は、算出された比率を比較し最大である単語のみを選択し、当該単語の番号N7に対応の値N8を選択部244に出力する。したがって、選択部244は、値N8の行列位置に基づきテキストデータ253を検索し該当する文字列を選択する。その後、文字列選択処理は終了する。   The character number comparison unit 243 compares the calculated ratios, selects only the largest word, and outputs a value N8 corresponding to the number N7 of the word to the selection unit 244. Therefore, the selection unit 244 searches the text data 253 based on the matrix position of the value N8 and selects a corresponding character string. Thereafter, the character string selection process ends.

たとえば、1つ目の段落の1番目の文の1番目の文節の4番目の単語が選択された場合には値N8((1,13)〜(1,16))が示す行列位置の文字列が選択される。   For example, when the fourth word of the first clause of the first sentence of the first paragraph is selected, the character at the matrix position indicated by the value N8 ((1,13) to (1,16)) A column is selected.

このように、タッチパネル140で検出されたストロークの閉曲線内に含まれる文字を包含する段落、文、文節、単語のそれぞれについて構成総文字数に占める、閉曲線内に含まれる段落、文、文節、単語それぞれについての文字数の割合(比率)が予め定めた閾値より高い場合に、その段落、文、文節、単語について『文字列選択』がされる。   As described above, each of the paragraphs, sentences, clauses, and words included in the closed curve occupies the total number of characters for each of the paragraphs, sentences, phrases, and words that include the characters included in the closed curve of the stroke detected by the touch panel 140. When the ratio (ratio) of the number of characters is higher than a predetermined threshold, “character string selection” is performed for the paragraph, sentence, clause, and word.

したがって、文字列のコピー等の操作に先だって所望文字列を選択する場合に、ユーザは表示されている文章のうちから所望文字列(段落、文、文節、単語)の部分が含まれるように、指やペン101で大雑把に囲むという簡単なジェスチャ(ストローク操作)により、所望する『文字列選択』が可能となる。   Therefore, when selecting a desired character string prior to an operation such as copying a character string, the user includes a portion of the desired character string (paragraph, sentence, clause, word) from the displayed sentences. A desired “character string selection” can be performed by a simple gesture (stroke operation) of roughly enclosing with a finger or a pen 101.

上述した実施の形態に係る文字列選択処理のプログラムは端末100の記憶領域に予め格納されており、プロセッサ230が当該プログラムを記憶領域から読出し、プログラムの命令を実行することにより処理が実現される。   The character string selection processing program according to the above-described embodiment is stored in advance in the storage area of the terminal 100, and the processing is realized by the processor 230 reading the program from the storage area and executing the instructions of the program. .

このようなプログラムは、端末100に付属するメモリ媒体であって、プロセッサ230が読取り可能な記録媒体に記録させて、プログラム製品として端末100に提供することもできる。メモリ媒体は、端末100に着脱自在に装着されるカード形状のメモリ152、CD(Compact Disc)−ROM、ROM、RAMなどである。   Such a program is a memory medium attached to the terminal 100 and can be recorded on a recording medium readable by the processor 230 and provided to the terminal 100 as a program product. The memory medium is a card-shaped memory 152 that is detachably attached to the terminal 100, a CD (Compact Disc) -ROM, a ROM, a RAM, or the like.

プロセッサ230は、装着されたメモリ152からメモリドライバ151を介してプログラムを読出しRAMなどに格納する。また、プログラムは、ネットワークを介してアンテナ120により受信されてプロセッサ230が受信したプログラムをRAMの所定記憶領域へ格納する。これらの方法によって、外部から適宜プログラムが提供されるとしてもよい。   The processor 230 reads a program from the attached memory 152 via the memory driver 151 and stores it in a RAM or the like. The program stores the program received by the antenna 120 via the network and received by the processor 230 in a predetermined storage area of the RAM. By these methods, a program may be appropriately provided from the outside.

提供されるプログラム製品は、プログラム自体と、プログラムが記録された記録媒体とを含む。   The provided program product includes the program itself and a recording medium on which the program is recorded.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

100 端末、101 ペン、140 タッチパネル、210 表示部、230 プロセッサ、231 イベント検出部、232 ストローク検出部、233 エリア検出部、234 解析処理部、235 選択結果出力部、241 文字列検出部、242 文字数カウント部、243 文字数比較部、244 選択部、253 テキストデータ、353 行列位置データ、453 マップデータ、500 位置データ、501,503,506,600 ストローク、1TH〜4TH 第1〜第4閾値。 100 terminal, 101 pen, 140 touch panel, 210 display unit, 230 processor, 231 event detection unit, 232 stroke detection unit, 233 area detection unit, 234 analysis processing unit, 235 selection result output unit, 241 character string detection unit, 242 character count Count section, 243 character number comparison section, 244 selection section, 253 text data, 353 matrix position data, 453 map data, 500 position data, 501, 503, 506, 600 stroke, 1TH to 4TH first to fourth threshold values.

Claims (11)

表示面上のエリアを、当該表示面上で指定するための操作を受付ける操作受付部と、
前記表示面に表示される文書データのうちから、前記操作受付部が受付けた操作により指定されたエリアに該当する文字列データを検出する文字列検出部と、を備え、
前記文字列検出部は、
前記文字列データが、前記文書データを構成する単位文字列に包含される文字列を示すとき、当該単位文字列を前記文書データから抽出する、文字列選択装置。
An operation accepting unit for accepting an operation for designating an area on the display surface on the display surface;
A character string detection unit that detects character string data corresponding to an area designated by an operation received by the operation reception unit from among the document data displayed on the display surface;
The character string detection unit
A character string selection device that extracts a unit character string from the document data when the character string data indicates a character string included in the unit character string constituting the document data.
前記文字列検出部は、
前記表示面に表示される文書データのうちから、前記操作受付部が受付けた操作により指定されたエリア内の予め定めたサイズを有した部分エリアに該当する文字列データを検出する、請求項1に記載の文字列選択装置。
The character string detection unit
2. The character string data corresponding to a partial area having a predetermined size in an area designated by an operation accepted by the operation accepting unit is detected from document data displayed on the display surface. The character string selection device described in 1.
前記文字列検出部は、
前記単位文字列の総文字数に対する前記文字列データの文字数の比率と、閾値とを比較する比較部を、含み、
比較の結果に基づき、前記文字列データが前記単位文字列に包含される文字列であるか否かを判定する、請求項1または2のいずれかに記載の文字列選択装置。
The character string detection unit
A comparison unit that compares a ratio of the number of characters of the character string data with respect to the total number of characters of the unit character string and a threshold;
The character string selection device according to claim 1, wherein the character string data is determined based on a result of the comparison as to whether or not the character string data is a character string included in the unit character string.
前記操作受付部は、
前記表示面上の1つ以上の点入力操作を受け付けるように構成された入力装置を含み、
前記入力装置によって入力操作が受け付けられた点の座標値を含む座標データを取得するように構成された座標データ取得部と、
前記座標データ取得部によって取得された複数の前記座標データに基づいて、前記入力装置に対する入力の始点から終点までを示すストロークの座標値をストロークデータとして算出するように構成されたストローク抽出部と、を含み、
算出された前記ストロークデータから前記エリアを検出する、請求項1から3のいずれかに記載の文字列選択装置。
The operation reception unit
An input device configured to accept one or more point input operations on the display surface;
A coordinate data acquisition unit configured to acquire coordinate data including a coordinate value of a point at which an input operation is accepted by the input device;
A stroke extraction unit configured to calculate, as stroke data, a coordinate value of a stroke indicating a start point to an end point of input to the input device based on the plurality of coordinate data acquired by the coordinate data acquisition unit; Including
The character string selection device according to claim 1, wherein the area is detected from the calculated stroke data.
前記単位文字列は段落の文字列を含む、請求項1から4のいずれかに記載の文字列選択装置。   The character string selection device according to claim 1, wherein the unit character string includes a character string of a paragraph. 前記単位文字列は段落を構成する文の文字列を含む、請求項1から5のいずれかに記載の文字列選択装置。   The character string selection device according to claim 1, wherein the unit character string includes a character string of a sentence constituting a paragraph. 前記単位文字列は文節の文字列を含む、請求項1から6のいずれかに記載の文字列選択装置。   The character string selection device according to claim 1, wherein the unit character string includes a character string of a phrase. 前記単位文字列は単語の文字列を含む、請求項1から7のいずれかに記載の文字列選択装置。   The character string selection device according to claim 1, wherein the unit character string includes a character string of a word. 表示面上のエリアを、当該表示面上で指定するための操作を受付けるステップと、
前記表示面に表示される文書データのうちから、前記受付けるステップにおいて受付けた操作により指定されるエリアに該当する文字列データを検出するステップと、を備え、
前記検出するステップでは、
前記文字列データが、前記文書データを構成する単位文字列に包含される文字列を示すとき、当該単位文字列を前記文書データから抽出する、文字列選択方法。
Receiving an operation for designating an area on the display surface on the display surface;
Detecting from the document data displayed on the display surface, character string data corresponding to an area designated by the operation accepted in the accepting step,
In the detecting step,
A character string selection method, wherein when the character string data indicates a character string included in a unit character string constituting the document data, the unit character string is extracted from the document data.
コンピュータを文字列選択装置として機能させるためのプログラムであって、前記プログラムは前記コンピュータに、
表示面上のエリアを、当該表示面上で指定するための操作を受付けるステップと、
前記表示面に表示される文書データのうちから、前記受付けるステップにおいて受付けた操作により指定されるエリアに該当する文字列データを検出するステップと、を実行させ、
前記検出するステップでは、
前記文字列データが、前記文書データを構成する単位文字列に包含される文字列を示すとき、当該単位文字列を前記文書データから抽出させる、プログラム。
A program for causing a computer to function as a character string selection device, wherein the program causes the computer to
Receiving an operation for designating an area on the display surface on the display surface;
Detecting the character string data corresponding to the area designated by the operation accepted in the accepting step from the document data displayed on the display surface; and
In the detecting step,
A program for causing a unit character string to be extracted from the document data when the character string data indicates a character string included in the unit character string constituting the document data.
請求項10に記載のプログラムを記録した機械読み取り可能な記録媒体。   A machine-readable recording medium on which the program according to claim 10 is recorded.
JP2012051638A 2012-03-08 2012-03-08 Character string selection device Pending JP2013186720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012051638A JP2013186720A (en) 2012-03-08 2012-03-08 Character string selection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012051638A JP2013186720A (en) 2012-03-08 2012-03-08 Character string selection device

Publications (1)

Publication Number Publication Date
JP2013186720A true JP2013186720A (en) 2013-09-19

Family

ID=49388082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012051638A Pending JP2013186720A (en) 2012-03-08 2012-03-08 Character string selection device

Country Status (1)

Country Link
JP (1) JP2013186720A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015141318A1 (en) * 2014-03-20 2015-09-24 日本電気株式会社 Method for range selection in display screen, information processing device and control method and control program therefor
WO2015141089A1 (en) * 2014-03-20 2015-09-24 日本電気株式会社 Information processing device, information processing method, and information processing program
US10067921B2 (en) 2014-03-20 2018-09-04 Nec Corporation Information processing apparatus, information processing method, and information processing program
CN111008080A (en) * 2018-10-08 2020-04-14 中兴通讯股份有限公司 Information processing method, device, terminal equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015141318A1 (en) * 2014-03-20 2015-09-24 日本電気株式会社 Method for range selection in display screen, information processing device and control method and control program therefor
WO2015141089A1 (en) * 2014-03-20 2015-09-24 日本電気株式会社 Information processing device, information processing method, and information processing program
CN106104456A (en) * 2014-03-20 2016-11-09 日本电气株式会社 Messaging device, information processing method and message handling program
US10067921B2 (en) 2014-03-20 2018-09-04 Nec Corporation Information processing apparatus, information processing method, and information processing program
CN106104456B (en) * 2014-03-20 2019-07-05 日本电气株式会社 Information processing equipment, information processing method and message handling program
CN111008080A (en) * 2018-10-08 2020-04-14 中兴通讯股份有限公司 Information processing method, device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
US10642933B2 (en) Method and apparatus for word prediction selection
US20100225592A1 (en) Apparatus and method for inputting characters/numerals for communication terminal
EP2837994A2 (en) Methods and devices for providing predicted words for textual input
JP6180888B2 (en) Electronic device, method and program
KR101102725B1 (en) Apparatus and method for inputing characters of terminal
CN105122185A (en) Text suggestion output using past interaction data
JP2014203288A (en) Information processing apparatus, information processing method, and program
KR101927064B1 (en) Apparus and method for generating summary data about e-book
US9170734B2 (en) Multiple-input handwriting recognition system and measure thereof
JP2013186720A (en) Character string selection device
US9183276B2 (en) Electronic device and method for searching handwritten document
US11029824B2 (en) Method and apparatus for moving input field
CN110765735B (en) Mathematical expression input method and device and electronic equipment
JP2016071623A (en) Electronic apparatus, method and program
JP2014203393A (en) Electronic apparatus, handwritten document processing method, and handwritten document processing program
JP6223687B2 (en) Electronic device and handwritten document search method
JP5330576B1 (en) Information processing apparatus and handwriting search method
KR20150024107A (en) Method for aligning input object and an electronic device thereof
JP4814827B2 (en) Electronic device, operation control method, program for executing operation control method, and recording medium for recording the program
CA2846561C (en) Method and apparatus for word prediction selection
US20150347004A1 (en) Indic language keyboard interface
US10395081B2 (en) Encoding document capture bounds with barcodes
KR100673510B1 (en) Apparatus And Method For Inputting A Character
KR101269633B1 (en) Apparatus for inputting hangul using touch input type and method thereof
EP4139771B1 (en) Apparatus and method for entering logograms into an electronic device