JP2010152500A - Text range selection processing program, method, and device - Google Patents

Text range selection processing program, method, and device Download PDF

Info

Publication number
JP2010152500A
JP2010152500A JP2008327776A JP2008327776A JP2010152500A JP 2010152500 A JP2010152500 A JP 2010152500A JP 2008327776 A JP2008327776 A JP 2008327776A JP 2008327776 A JP2008327776 A JP 2008327776A JP 2010152500 A JP2010152500 A JP 2010152500A
Authority
JP
Japan
Prior art keywords
text
line
range
cursor
display frame
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.)
Granted
Application number
JP2008327776A
Other languages
Japanese (ja)
Other versions
JP5077221B2 (en
Inventor
Katsuhiko Akiyama
勝彦 秋山
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2008327776A priority Critical patent/JP5077221B2/en
Publication of JP2010152500A publication Critical patent/JP2010152500A/en
Application granted granted Critical
Publication of JP5077221B2 publication Critical patent/JP5077221B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To select a range of character strings in several lines by a natural selecting operation. <P>SOLUTION: The text range selection processing method for selecting the range of a text by a drag operation using a pointing device includes: a process for specifying either the beginning or the end of a line to which the cursor of a pointing device belongs, which is closer from the position of the cursor, as a nearest line end according to the number of characters or distance from the position of the cursor of the pointing device during selecting the range of the text in a first display frame in which the text is displayed; a process for extracting a character string with a predetermined length from the beginning or the end of the line on the side opposite to the nearest line end, that is, the beginning of the line subsequent to the line to which the cursor belongs or the end of the line preceding to the line to which the cursor belongs as a predicted selection text; and a process for displaying a second display frame for displaying the predicted selection text in the neighborhood of the nearest line end so that the range can be selected by a drag operation for the predicted selection text. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本技術は、テキストの範囲選択を行うための技術に関し、より詳しくはポインティングデバイスのドラッグ操作による範囲選択を支援するための技術に関する。   The present technology relates to a technology for selecting a range of text, and more particularly to a technology for supporting range selection by a drag operation of a pointing device.

従来、ユーザが計算機上でテキストの編集を行う際、例えばマウスやペンなどのポインティングデバイスのドラッグ操作によってテキストの範囲選択を行う場合がある。具体的には、例えばマウスの場合には、選択始点で左ボタンを押し、左ボタンを押したままの状態でカーソルを移動させ、選択終点で左ボタンを離すことにより、テキストの範囲選択を行う。   Conventionally, when a user edits text on a computer, for example, a text range may be selected by a drag operation of a pointing device such as a mouse or a pen. Specifically, in the case of a mouse, for example, a text range is selected by pressing the left button at the selection start point, moving the cursor while holding down the left button, and releasing the left button at the selection end point. .

また、例えば図12(a)に示すような複数行に跨る範囲選択を行う場合、一般的には、図12(b)に示すように、ポインティングデバイスを選択始点から選択終点に向けて移動させて範囲選択を行っている。
特開平9−101953号公報
For example, when performing range selection over a plurality of rows as shown in FIG. 12A, generally, the pointing device is moved from the selection start point to the selection end point as shown in FIG. 12B. Range selection.
Japanese Patent Laid-Open No. 9-101953

しかしながら、上記のような操作では、一方の行端(図12(b)では行末)付近から反対側の行端(図12(b)では行頭)付近までポインティングデバイスを移動させなければならず、移動距離が選択範囲の幅よりも大幅に長くなる場合がある。そのため、選択範囲が1行に収まっている場合に比べ、選択操作が不自然になるという問題があった。   However, in the above operation, the pointing device must be moved from the vicinity of one line end (the end of the line in FIG. 12B) to the vicinity of the opposite line end (the beginning of the line in FIG. 12B), The movement distance may be significantly longer than the width of the selection range. Therefore, there has been a problem that the selection operation becomes unnatural compared to the case where the selection range is within one line.

従って、本技術の目的は、範囲選択すべき文字列が複数行に跨っている場合においても、自然な選択操作によって範囲選択を行うことができるようにするための技術を提供することである。   Therefore, an object of the present technology is to provide a technology for enabling range selection by natural selection operation even when a character string to be range-selected extends over a plurality of lines.

本テキスト範囲選択処理方法は、表示部に表示されたテキストに対して、ポインティングデバイスによるドラッグ操作によって、当該テキストの範囲選択を行う場合におけるテキスト範囲選択処理方法であって、テキストを表示する第1表示枠内において当該テキストの範囲選択中に、ポインティングデバイスのカーソルの位置からの文字数又は距離に従って、当該カーソルの属する行における行頭及び行末のうち当該カーソルの位置から近い方を最寄り行端として特定するステップと、最寄り行端とは反対側の行頭又は行末であって、カーソルの属する行の後方の行における行頭又は前方の行における行末から所定長の文字列を選択予測テキストとして抽出するステップと、選択予測テキストを表示する第2表示枠を、当該選択予測テキストについてドラッグ操作による範囲選択が可能な態様で最寄り行端の近傍に表示させるステップとを含む。   This text range selection processing method is a text range selection processing method in the case of selecting a range of the text by dragging with a pointing device with respect to the text displayed on the display unit. While selecting the range of the text in the display frame, according to the number of characters or the distance from the cursor position of the pointing device, the closest line end to the cursor position is specified as the nearest line end of the line to which the cursor belongs. A step of extracting a character string of a predetermined length from the head of the line opposite to the end of the nearest line or the end of the line, the line at the back of the line to which the cursor belongs, or the end of the line at the front of the line as the selected prediction text; The second display frame for displaying the selected predicted text is displayed in the selected predicted text. For comprises a step of displaying in the vicinity of the nearest row end range selection possible embodiments by the drag operation.

範囲選択すべき文字列が複数行に跨っている場合でも、自然な選択操作によって範囲選択を行うことが可能になる。   Even when the character string to be range-selected extends over a plurality of lines, the range can be selected by a natural selection operation.

まず、図1及び図2を用いて、本技術の実施の形態の概要を説明する。本技術の実施の形態では、ポインティングデバイスのドラッグ操作による範囲選択中に、ポインティングデバイスのカーソルの属する行における行頭及び行末のうち当該カーソルの位置から近い方を最寄り行端として特定する。そして、行頭が最寄り行端として特定された場合には、前方の行における行末から所定長の文字列を選択予測テキストとして抽出し、行末が最寄り行端として特定された場合には、後方の行における行頭から所定長の文字列を選択予測テキストとして抽出する。そして、選択予測テキストについても範囲選択が可能な態様で選択予測テキスト表示枠を最寄り行端の近傍に表示する。   First, an outline of an embodiment of the present technology will be described with reference to FIGS. 1 and 2. In the embodiment of the present technology, during the range selection by the drag operation of the pointing device, the closest to the end of the line is specified as the nearest line end from the beginning and end of the line to which the cursor of the pointing device belongs. When the head of the line is specified as the nearest line end, a character string of a predetermined length is extracted as the selected prediction text from the end of the line in the front line, and when the end of the line is specified as the nearest line end, A character string of a predetermined length is extracted from the beginning of the line as the selected prediction text. The selected predicted text display frame is displayed in the vicinity of the nearest line end in such a manner that the range can be selected for the selected predicted text.

図1に、行末が最寄り行端として特定された場合の一例を示す。図1の例では、メインテキスト表示枠101の右側に選択予測テキスト表示枠102が表示されている。また、図1の例では、選択予測テキスト表示枠102には、カーソルの属する行の1つ下の行における行頭から抽出された文字列が選択予測テキストとして表示されている。   FIG. 1 shows an example when the end of a line is specified as the nearest line end. In the example of FIG. 1, a selected predicted text display frame 102 is displayed on the right side of the main text display frame 101. In the example of FIG. 1, the selected predicted text display frame 102 displays a character string extracted from the beginning of the line immediately below the line to which the cursor belongs as the selected predicted text.

また、図2に、行頭が最寄り行端として特定された場合の一例を示す。図2の例では、メインテキスト表示枠201の左側に選択予測テキスト表示枠202が表示されている。また、図2の例では、選択予測テキスト表示枠202には、カーソルの属する行の1つ上の行における行末から抽出された文字列が選択予測テキストとして表示されている。   FIG. 2 shows an example when the head of a line is specified as the nearest line end. In the example of FIG. 2, a selected predicted text display frame 202 is displayed on the left side of the main text display frame 201. In the example of FIG. 2, the selected predicted text display frame 202 displays a character string extracted from the end of the line immediately above the line to which the cursor belongs as the selected predicted text.

そして、本技術の実施の形態では、例えば「コンピュータ」という文字列を範囲選択する場合には、図1に示すように、メインテキスト表示枠101内の選択始点1011から選択予測テキスト表示枠102内の選択終点1021までドラッグするという操作を行う。これにより、ポインティングデバイスの移動距離が選択範囲の幅より大幅に長くなるようなことはなく、自然な選択操作によって範囲選択が可能になる。以下、本技術の一実施の形態に係るテキスト範囲選択処理装置の処理について説明する。   In the embodiment of the present technology, for example, when a range of a character string “computer” is selected, as shown in FIG. 1, the selection start point 1011 in the main text display frame 101 is selected in the selected predicted text display frame 102. An operation of dragging to the selection end point 1021 is performed. Thereby, the moving distance of the pointing device is not significantly longer than the width of the selection range, and the range can be selected by a natural selection operation. Hereinafter, processing of the text range selection processing device according to the embodiment of the present technology will be described.

図3に本技術の一実施の形態に係るテキスト範囲選択処理装置の機能ブロック図を示す。テキスト範囲選択処理装置は、オペレーティング・システム(OS:Operating System)1と、当該OS1上で実行されるアプリケーション・プログラム3とを含む。なお、図示していないが、OS1は、ポインティングデバイスに関するイベント(例えば、マウスクリック、カーソルの移動、ドラッグ開始又は終了など)を検出し、当該イベントを通知するためのメッセージをテキストアプリケーション・プログラム3に出力する等の機能を備えている。当該機能については、従来と変わらないため、これ以上述べない。   FIG. 3 shows a functional block diagram of a text range selection processing device according to an embodiment of the present technology. The text range selection processing device includes an operating system (OS) 1 and an application program 3 executed on the OS 1. Although not shown, the OS 1 detects an event related to the pointing device (for example, mouse click, cursor movement, drag start or end, etc.) and sends a message for notifying the event to the text application program 3. It has functions such as output. Since this function is the same as the conventional function, it will not be described further.

OS1は、テキストの範囲選択に関する基本的な処理を実施するテキスト範囲選択モジュール11を含む。具体的には、テキスト範囲選択モジュール11は、ドラッグ開始位置を範囲選択に係る選択始点として記憶したり、カーソルの移動に応じて現在のカーソルの位置を範囲選択に係る選択終点として記憶したり、選択始点から選択終点までの文字列を反転表示したりする等の処理を実施する。なお、テキストの範囲選択に関する処理は、従来の処理と変わらないため、これ以上述べない。   The OS 1 includes a text range selection module 11 that performs basic processing related to text range selection. Specifically, the text range selection module 11 stores the drag start position as a selection start point related to range selection, stores the current cursor position as a selection end point related to range selection according to the movement of the cursor, Processing such as highlighting the character string from the selection start point to the selection end point is performed. Note that the processing related to text range selection is not different from the conventional processing and will not be described further.

アプリケーション・プログラム3は、選択予測テキスト生成部31と、選択予測テキスト表示部33と、位置特定部35と、位置変換部37と、選択終点設定部39とを含む。選択予測テキスト生成部31は、OS1からポインティングデバイスに関するイベントのメッセージを受信し、現在のカーソルの属する行における行頭又は行末を最寄り行端として特定したり、メインテキスト(すなわち、メインテキスト表示枠内に表示されているテキスト)から所定長の文字列を選択予測テキストとして抽出したり、現在のカーソルが選択予測テキスト表示枠内にある場合にはその旨を位置特定部35に通知したりする等の処理を実施する。選択予測テキスト表示部33は、選択予測テキスト生成部31により抽出された選択予測テキストを含む選択予測テキスト表示枠を最寄り行端の近傍に表示する。位置特定部35は、選択予測テキスト生成部31からの通知に応じて、選択予測テキスト中における、現在のカーソルの指す位置を特定する。位置変換部37は、位置特定部35により特定された位置に対応する、メインテキスト中の文字位置を算出する。選択終点設定部39は、位置変換部37により算出された文字位置を範囲選択に係る選択終点として設定する。   The application program 3 includes a selection prediction text generation unit 31, a selection prediction text display unit 33, a position specification unit 35, a position conversion unit 37, and a selection end point setting unit 39. The selection prediction text generation unit 31 receives a message of an event related to the pointing device from the OS 1 and specifies the beginning or end of the line to which the current cursor belongs as the nearest line end, or the main text (that is, in the main text display frame). A character string of a predetermined length from the displayed text) is extracted as the selected predicted text, or when the current cursor is in the selected predicted text display frame, the fact is notified to the position specifying unit 35. Perform the process. The selected predicted text display unit 33 displays a selected predicted text display frame including the selected predicted text extracted by the selected predicted text generation unit 31 in the vicinity of the nearest line end. In response to the notification from the selected predicted text generating unit 31, the position specifying unit 35 specifies the position indicated by the current cursor in the selected predicted text. The position conversion unit 37 calculates a character position in the main text corresponding to the position specified by the position specifying unit 35. The selection end point setting unit 39 sets the character position calculated by the position conversion unit 37 as the selection end point related to the range selection.

次に、図4乃至図10を用いて、図3に示したテキスト範囲選択処理装置の処理内容を説明する。まず、OS1が、ドラッグ操作に関するイベント(例えば、ドラッグの開始やカーソルの移動、ドラッグの終了など)を検出する(図4:ステップS1)。そして、OS1は、現在のカーソルの位置を取得し、一旦記憶装置に格納する(ステップS3)。そして、OS1は、検出したイベントを通知するためのメッセージ(現在のカーソルの位置情報を含む)をアプリケーション・プログラム3に出力する。   Next, processing contents of the text range selection processing apparatus shown in FIG. 3 will be described with reference to FIGS. First, the OS 1 detects an event related to a drag operation (for example, drag start, cursor movement, drag end, etc.) (FIG. 4: Step S1). Then, the OS 1 acquires the current cursor position and temporarily stores it in the storage device (step S3). Then, the OS 1 outputs a message (including current cursor position information) for notifying the detected event to the application program 3.

そして、アプリケーション・プログラム3の選択予測テキスト生成部31は、OS1から、現在のカーソルの位置情報を含むメッセージを受信し、現在のカーソルがメインテキスト表示枠内にあるか否か判断する(ステップS5)。例えば、OS1の提供するライブラリなどを利用すれば、メインテキスト表示枠の座標を取得することができる。現在のカーソルがメインテキスト表示枠内になければ(ステップS5:Noルート)、端子Cを介してステップS29(図9)の処理に移行する。   Then, the selected predicted text generation unit 31 of the application program 3 receives a message including the current cursor position information from the OS 1 and determines whether or not the current cursor is within the main text display frame (step S5). ). For example, if a library provided by the OS 1 is used, the coordinates of the main text display frame can be acquired. If the current cursor is not in the main text display frame (step S5: No route), the process proceeds to step S29 (FIG. 9) via the terminal C.

一方、現在のカーソルがメインテキスト表示枠内にあると判断された場合(ステップS5:Yesルート)、選択予測テキスト生成部31は、現在のカーソルの属する行における行頭及び行末のうち、現在のカーソルの位置から近い方を最寄り行端として特定する(ステップS7)。例えば、文字数が少ない方を最寄り行端として特定してもよいし、距離が近い方を最寄り行端として特定してもよい。なお、フォントや文字サイズによって、各文字の文字幅がすべて同一とは限らないため、文字数より距離を判断基準とする方が好ましい。また、例えばメインテキスト中に改行コードが挿入されている場合には、メインテキスト表示枠の右端が行末となるのではなく、改行コードの位置が行末となる。   On the other hand, when it is determined that the current cursor is within the main text display frame (step S5: Yes route), the selected predicted text generation unit 31 selects the current cursor from the beginning and end of the line to which the current cursor belongs. The one closer to the position of is identified as the nearest line end (step S7). For example, a character having a smaller number of characters may be specified as the nearest line end, and a character having a shorter distance may be specified as the nearest line end. In addition, since the character width of each character is not necessarily the same depending on the font and character size, it is preferable to use the distance as a determination criterion rather than the number of characters. For example, when a line feed code is inserted in the main text, the right end of the main text display frame is not the end of the line, but the position of the line feed code is the end of the line.

そして、選択予測テキスト生成部31は、選択予測テキスト表示枠が既に表示されているか判断する(ステップS9)。選択予測テキスト表示枠が既に表示されている場合(ステップS9:Yesルート)、端子Bを介してステップS21(図5)の処理に移行する。一方、選択予測テキスト表示枠が表示されていなければ(ステップS9:Noルート)、端子Aを介してステップS11(図5)の処理に移行する。   And the selection prediction text production | generation part 31 judges whether the selection prediction text display frame is already displayed (step S9). When the selection prediction text display frame is already displayed (step S9: Yes route), the process proceeds to step S21 (FIG. 5) via the terminal B. On the other hand, if the selected prediction text display frame is not displayed (step S9: No route), the process proceeds to step S11 (FIG. 5) via the terminal A.

図5の説明に移行して、端子Aの後、選択予測テキスト生成部31は、選択予測テキスト表示枠の表示開始条件を満たしたか判断する(図5:ステップS11)。例えば、現在のカーソル位置が最寄り行端に、ある程度近づいたときに選択予測テキスト表示枠を表示させたいという場合には、現在のカーソルの位置から最寄り行端までの文字数又は距離が表示開始判断閾値以下であることという条件を表示開始条件として設定しておけばよい。この場合、図6及び図7に示すように、最寄り行端までの文字数又は距離が表示開始判断閾値を上回っている場合(図6)は、選択予測テキスト表示枠の表示を開始せず、最寄り行端までの文字数又は距離が表示開始判断閾値以下になった場合(図7)に、選択予測テキスト表示枠の表示を開始する。なお、ドラッグ操作中は常に選択予測テキスト表示枠を表示させたい場合には、ステップS1において検出したイベントがドラッグ開始であることという条件を表示開始条件として設定しておけばよい。また、その他の条件を表示開始条件として設定してもよい。   Shifting to the description of FIG. 5, after the terminal A, the selected predicted text generation unit 31 determines whether the display start condition of the selected predicted text display frame is satisfied (FIG. 5: step S <b> 11). For example, if you want to display the selected predicted text display frame when the current cursor position approaches the nearest line end to some extent, the number of characters or the distance from the current cursor position to the nearest line end is the display start judgment threshold. The following condition may be set as the display start condition. In this case, as shown in FIGS. 6 and 7, when the number of characters or distance to the end of the nearest line exceeds the display start determination threshold (FIG. 6), the display of the selected prediction text display frame is not started and the nearest When the number of characters or the distance to the end of the line is equal to or less than the display start determination threshold (FIG. 7), the display of the selected predicted text display frame is started. Note that if it is desired to always display the selected predicted text display frame during the drag operation, the condition that the event detected in step S1 is the drag start may be set as the display start condition. Further, other conditions may be set as display start conditions.

選択予測テキスト表示枠の表示開始条件を満たしていないと判断された場合(ステップS11:Noルート)、以下で説明するステップS13及びステップS15の処理をスキップし、ステップS17の処理に移行する。   When it is determined that the display start condition of the selected predicted text display frame is not satisfied (step S11: No route), the processes of steps S13 and S15 described below are skipped, and the process proceeds to step S17.

一方、選択予測テキスト表示枠の表示開始条件を満たしたと判断された場合(ステップS11:Yesルート)、選択予測テキスト生成部31は、最寄り行端とは反対側の行頭又は行末であって、現在のカーソルの属する行の1つ下の行における行頭又は1つ上の行における行末から一定文字数の文字列を選択予測テキストとして抽出する(ステップS13)。具体的には、行末が最寄り行端として特定されている場合には、現在のカーソルの属する行の1つ下の行における行頭から一定文字数の文字列を選択予測テキストとして抽出する。一方、行頭が最寄り行端として特定されている場合には、現在のカーソルの属する行の1つ上の行における行末から一定文字数の文字列を選択予測テキストとして抽出する。なお、一定文字数とは、予め決められた文字数でもよいし、1行の長さの一定割合の文字数でもよい。また、選択予測テキスト表示枠に収まる文字数でもよい。さらに、場合に応じていずれかを選択するようにしてもよい。そして、選択予測テキスト生成部31は、抽出した選択予測テキストを含む表示開始指示を選択予測テキスト表示部33に出力する。   On the other hand, when it is determined that the display start condition of the selected predicted text display frame is satisfied (step S11: Yes route), the selected predicted text generation unit 31 is at the beginning or end of the line opposite to the nearest line end, A character string having a certain number of characters is extracted as a selected predicted text from the beginning of the line one line below the line to which the cursor belongs or the end of the line one line above (step S13). Specifically, when the end of the line is specified as the nearest end of the line, a character string having a certain number of characters is extracted as the selected predicted text from the beginning of the line immediately below the line to which the current cursor belongs. On the other hand, when the head of the line is specified as the nearest line end, a character string having a certain number of characters from the end of the line on the line immediately above the line to which the current cursor belongs is extracted as the selected predicted text. The fixed number of characters may be a predetermined number of characters or a fixed number of characters of one line length. Alternatively, the number of characters that can fit in the selection predicted text display frame may be used. Furthermore, any one may be selected according to the case. Then, the selected predicted text generation unit 31 outputs a display start instruction including the extracted selected predicted text to the selected predicted text display unit 33.

そして、選択予測テキスト表示部33は、選択予測テキスト生成部31からの表示開始指示を受信し、最寄り行端の近傍に選択予測テキスト表示枠を表示する(ステップS15)。例えば、OS1の提供するライブラリなどを利用して選択予測テキスト表示枠を表示する。なお、選択予測テキストの長さが選択予測テキスト表示枠の幅より長い場合には、選択予測テキスト表示枠の幅で折り返して、選択予測テキストを複数行で表示する。また、例えば選択予測テキスト中に改行コードが含まれていたとしても、当該改行コードの位置で改行する必要はなく、改行位置に改行マークを表示すればよい。選択予測テキスト表示部33は、選択予測テキスト表示枠がいずれの行端に対応して表示されたものであるかを特定するための情報として、最寄り行端の位置を記憶装置に格納しておく。   Then, the selected predicted text display unit 33 receives the display start instruction from the selected predicted text generation unit 31, and displays the selected predicted text display frame in the vicinity of the nearest line end (step S15). For example, the selection prediction text display frame is displayed using a library provided by the OS 1. When the length of the selected predicted text is longer than the width of the selected predicted text display frame, the selected predicted text is displayed in multiple lines by folding back at the width of the selected predicted text display frame. For example, even if a line feed code is included in the selected predicted text, it is not necessary to make a line break at the position of the line feed code, and a line feed mark may be displayed at the line feed position. The selected predicted text display unit 33 stores the position of the nearest line end in the storage device as information for specifying which line end the selected predicted text display frame is displayed corresponding to. .

なお、範囲選択中にカーソルがメインテキスト表示枠から選択予測テキスト表示枠に移ってきた場合には、選択予測テキスト表示枠がアクティブ状態となり、選択予測テキスト表示枠において選択予測テキストの範囲選択が可能となる。このような技術については、通常のウィンドウの技術を用いることで実現可能である。   If the cursor moves from the main text display frame to the selected predicted text display frame during range selection, the selected predicted text display frame becomes active, and the selected predicted text range can be selected in the selected predicted text display frame. It becomes. Such a technique can be realized by using a normal window technique.

その後、OS1のテキスト範囲選択モジュール11は、記憶装置に格納されているカーソルの位置を選択終点として設定する(ステップS17)。そして、テキスト範囲選択モジュール11は、メインテキスト表示枠について、上で述べたような範囲選択に関する処理を実施する(ステップS19)。例えば、メインテキスト表示枠について、範囲選択されている文字列を反転表示するなどの処理を実施する。そして、処理を終了する。   Thereafter, the text range selection module 11 of OS1 sets the position of the cursor stored in the storage device as the selection end point (step S17). Then, the text range selection module 11 performs the processing related to range selection as described above for the main text display frame (step S19). For example, the main text display frame is subjected to processing such as reverse-displaying the character string selected in the range. Then, the process ends.

次に、ステップS9(図4)において選択予測テキスト表示枠が既に表示されていると判断され、端子Bを介して図5に移行してきた場合の処理を説明する。図5において、端子Bの後、選択予測テキスト生成部31は、選択予測テキスト表示枠の表示終了条件を満たしたか判断する(ステップS21)。例えば、カーソルの位置が最寄り行端から遠ざかったら選択予測テキスト表示枠を非表示にしたいという場合には、現在のカーソルの位置から最寄り行端までの文字数又は距離が表示終了判断閾値以上であることという条件を表示終了条件として設定しておけばよい。なお、表示終了判断閾値は、表示開始判断閾値と同じ値でもよいし、表示開始判断閾値とは異なる値でもよい。また、ドラッグ終了時に選択予測テキスト表示枠を非表示にしたいという場合には、ステップS1において検出したイベントがドラッグ終了であることという条件を表示終了条件として設定しておけばよい。   Next, a process when it is determined in step S9 (FIG. 4) that the selected prediction text display frame has already been displayed and the process proceeds to FIG. In FIG. 5, after the terminal B, the selected predicted text generation unit 31 determines whether the display end condition of the selected predicted text display frame is satisfied (step S21). For example, if you want to hide the selected prediction text display frame when the cursor position is far from the end of the nearest line, the number of characters or distance from the current cursor position to the end of the nearest line must be greater than the display end judgment threshold. Is set as the display end condition. The display end determination threshold value may be the same value as the display start determination threshold value, or may be a value different from the display start determination threshold value. If it is desired to hide the selected predicted text display frame at the end of the drag, a condition that the event detected in step S1 is the end of the drag may be set as the display end condition.

選択予測テキスト表示枠の表示終了条件を満たしたと判断された場合(ステップS21:Yesルート)、選択予測テキスト生成部31は、表示終了指示を選択予測テキスト表示部33に出力する。そして、選択予測テキスト表示部33は、選択予測テキスト生成部31からの表示終了指示を受信すると、選択予測テキスト表示枠を消去する(ステップS23)。そして、ステップS17の処理に移行してステップS17及びステップS19の処理を実施し、その後、処理を終了する。   When it is determined that the display end condition of the selected predicted text display frame is satisfied (step S21: Yes route), the selected predicted text generation unit 31 outputs a display end instruction to the selected predicted text display unit 33. And the selection prediction text display part 33 will erase | eliminate a selection prediction text display frame, if the display completion instruction | indication from the selection prediction text production | generation part 31 is received (step S23). And it transfers to the process of step S17, the process of step S17 and step S19 is implemented, and a process is complete | finished after that.

一方、選択予測テキスト表示枠の表示終了条件を満たしていないと判断された場合(ステップS21:Noルート)、選択予測テキスト生成部31は、ステップS7(図4)において特定された最寄り行端が、現在表示中の選択予測テキスト表示枠を表示した時点における最寄り行端と同一であるか判断する(ステップS25)。特定された最寄り行端が、現在表示中の選択予測テキスト表示枠を表示した時点における最寄り行端と同一であると判断された場合(ステップS25:Yesルート)、ステップS17の処理に移行してステップS17及びステップS19の処理を実施し、その後、処理を終了する。   On the other hand, when it is determined that the display end condition of the selected predicted text display frame is not satisfied (step S21: No route), the selected predicted text generation unit 31 determines that the nearest line end specified in step S7 (FIG. 4) is Then, it is determined whether it is the same as the nearest line end at the time of displaying the selected predicted text display frame currently being displayed (step S25). When it is determined that the identified nearest line end is the same as the nearest line end when the selected predicted text display frame currently displayed is displayed (step S25: Yes route), the process proceeds to step S17. Steps S17 and S19 are performed, and then the process ends.

一方、特定された最寄り行端が、現在表示中の選択予測テキスト表示枠を表示した時点における最寄り行端と同一ではないと判断された場合(ステップS25:Noルート)、選択予測テキスト生成部31は、表示終了指示を選択予測テキスト表示部33に出力する。そして、選択予測テキスト表示部33は、選択予測テキスト生成部31からの表示終了指示を受信すると、選択予測テキスト表示枠を一旦消去する(ステップS27)。そして、ステップS13の処理に移行してステップS13乃至ステップS19の処理を実施し、その後、処理を終了する。   On the other hand, when it is determined that the identified nearest line end is not the same as the nearest line end at the time of displaying the currently selected selected predicted text display frame (step S25: No route), the selected predicted text generation unit 31. Outputs a display end instruction to the selected predicted text display unit 33. And the selection prediction text display part 33 will erase | eliminate a selection prediction text display frame once, if the display completion instruction | indication from the selection prediction text production | generation part 31 is received (step S27). And it transfers to the process of step S13, the process of step S13 thru | or step S19 is implemented, and a process is complete | finished after that.

例えば、範囲選択中にカーソルの位置が図7に示した位置から図8に示す位置まで移動すると、移動前と移動後とで最寄り行端の位置が変わってくる。このように最寄り行端の位置が変わった場合には、ステップS27、ステップS13及びステップS15の処理を実施することにより、移動前に表示されていた選択予測テキスト表示枠を一旦消去し、新たな選択予測テキスト表示枠を移動後の最寄り行端の近傍に表示することができる。   For example, if the position of the cursor moves from the position shown in FIG. 7 to the position shown in FIG. 8 during range selection, the position of the nearest line end changes before and after the movement. When the position of the nearest line end changes in this way, the selected predicted text display frame displayed before the movement is temporarily deleted by executing the processes of step S27, step S13, and step S15, and a new one is displayed. The selected prediction text display frame can be displayed near the end of the nearest line after moving.

図9の説明に移行して、端子Cの後、選択予測テキスト生成部31は、現在のカーソルが選択予測テキスト表示枠内にあるか判断する(図9:ステップS29)。現在のカーソルが選択予測テキスト表示枠内になければ(ステップS29:Noルート)、端子Dを介してステップS17の処理に移行してステップS17及びステップS19の処理を実施し、その後、処理を終了する。   Shifting to the description of FIG. 9, after the terminal C, the selected predicted text generation unit 31 determines whether the current cursor is within the selected predicted text display frame (FIG. 9: step S29). If the current cursor is not within the selected predicted text display frame (step S29: No route), the process proceeds to step S17 via the terminal D, and the processes of step S17 and step S19 are performed. Thereafter, the process ends. To do.

一方、現在のカーソルが選択予測テキスト表示枠内にあると判断された場合(ステップS29:Yesルート)、選択予測テキスト生成部31は、現在のカーソルの位置情報を位置特定部35に出力する。   On the other hand, when it is determined that the current cursor is within the selected predicted text display frame (step S29: Yes route), the selected predicted text generating unit 31 outputs the current cursor position information to the position specifying unit 35.

そして、位置特定部35は、選択予測テキスト生成部31から現在のカーソルの位置情報を受信し、現在のカーソルの位置情報に基づき、選択予測テキストの選択範囲における終端位置を特定する(ステップS31)。具体的には、行末が最寄り行端の場合には、現在のカーソルが選択予測テキストの先頭から何文字目の文字を指しているのか特定し、行頭が最寄り行端の場合には、現在のカーソルが選択予測テキストの末尾から何文字目の文字を指しているのか特定する。例えばカーソルの位置が図10に示す位置にある場合には、先頭から2文字目の位置が終端位置として特定される。そして、位置特定部35は、終端位置の情報を位置変換部37に出力する。ここでは、s文字目の位置が終端位置として特定されたものとして以下説明する。   Then, the position specifying unit 35 receives the current cursor position information from the selected predicted text generating unit 31, and specifies the end position in the selection range of the selected predicted text based on the current cursor position information (step S31). . Specifically, if the end of the line is the end of the nearest line, specify the number of the current cursor from the beginning of the selected prediction text, and if the end of the line is the end of the nearest line, Specify what character the cursor is pointing to from the end of the selected prediction text. For example, when the cursor is at the position shown in FIG. 10, the position of the second character from the beginning is specified as the end position. Then, the position specifying unit 35 outputs the end position information to the position converting unit 37. Here, the following description will be given assuming that the position of the s-th character is specified as the end position.

そして、位置変換部37は、位置特定部35から終端位置の情報を受信し、最寄り行端の位置と終端位置とに基づき、当該終端位置に対応する、メインテキスト中の文字位置uを算出する(ステップS33)。具体的には、行末が最寄り行端の場合、当該行末の文字をメインテキスト中の(t−1)文字目の文字とし、選択予測テキストの先頭の文字をメインテキスト中のt文字目の文字とすると、u=t+s−1で文字位置uを算出することができる。一方、行頭が最寄り行端の場合、行頭の文字をメインテキスト中の(t+1)文字目の文字とし、選択予測テキストの末尾の文字をメインテキスト中のt文字目の文字とすると、u=t−s+1で文字位置uを算出することができる。そして、位置変換部37は、算出した文字位置uを選択終点設定部39に出力する。   Then, the position conversion unit 37 receives the end position information from the position specifying unit 35, and calculates the character position u in the main text corresponding to the end position based on the position of the nearest line end and the end position. (Step S33). Specifically, if the end of the line is the end of the nearest line, the character at the end of the line is the (t-1) th character in the main text, and the first character of the selected prediction text is the tth character in the main text. Then, the character position u can be calculated by u = t + s−1. On the other hand, when the beginning of the line is the nearest line end, if the character at the beginning of the line is the (t + 1) -th character in the main text and the last character of the selected prediction text is the t-th character in the main text, u = t The character position u can be calculated by -s + 1. Then, the position conversion unit 37 outputs the calculated character position u to the selection end point setting unit 39.

そして、選択終点設定部39は、位置変換部37から文字位置uを受信し、当該文字位置uを選択終点に設定する(ステップS35)。そして、端子Eを介してステップS19の処理に移行してステップS19の処理を実施し、その後、処理を終了する。   The selection end point setting unit 39 receives the character position u from the position conversion unit 37, and sets the character position u as the selection end point (step S35). And it transfers to the process of step S19 via the terminal E, the process of step S19 is implemented, and a process is complete | finished after that.

以上のような処理を実施することにより、範囲選択すべき文字列が複数行に跨っている場合であっても、図1に示したようなドラッグ操作によって範囲選択を行うことが可能になる。すなわち、ポインティングデバイスの移動距離が選択範囲の幅より大幅に長くなるようなことはなく、自然な選択操作によって範囲選択を行うことが可能になる。   By performing the processing as described above, it is possible to perform range selection by a drag operation as shown in FIG. 1 even when a character string to be range-selected extends over a plurality of lines. That is, the moving distance of the pointing device does not become much longer than the width of the selection range, and the range can be selected by a natural selection operation.

以上本技術の一実施の形態を説明したが、本技術はこれに限定されるものではない。例えば、上で説明したテキスト範囲選択処理装置の機能ブロック図は必ずしも実際のプログラムモジュール構成に対応するものではない。例えば、上で説明した選択予測テキスト生成部31と選択予測テキスト表示部33と位置特定部35と位置変換部37と選択終点設定部39との処理をOS1の機能として実装することも可能である。   Although one embodiment of the present technology has been described above, the present technology is not limited to this. For example, the functional block diagram of the text range selection processing device described above does not necessarily correspond to the actual program module configuration. For example, the processes of the selected predicted text generation unit 31, the selected predicted text display unit 33, the position specification unit 35, the position conversion unit 37, and the selection end point setting unit 39 described above can be implemented as functions of the OS1. .

また、上では、行末方向へのドラッグ操作を例に説明したが、行頭方向へのドラッグ操作の場合にも適用可能である。   In the above description, the drag operation toward the end of the line has been described as an example, but the present invention can also be applied to a drag operation toward the start of the line.

また、上では、テキストが横書きの場合を例に説明したが、テキストが縦書きの場合にも適用可能である。なお、テキストが縦書きの場合には、選択予測テキスト表示枠をメインテキスト表示枠の上方又は下方に表示するようにすればよい。   In the above description, the case where the text is written horizontally is described as an example, but the present invention can also be applied to the case where the text is written vertically. If the text is written vertically, the selected predicted text display frame may be displayed above or below the main text display frame.

また、例えば図1では、選択予測テキスト表示枠102をメインテキスト表示枠101と連結して表示するようになっているが、必ずしも連結して表示しなければならないわけではない。例えば図11に示すようにメインテキスト表示枠1101から一定間隔離して選択予測テキスト表示枠1102を表示するようにしてもよい。例えば、メインテキストについて複数行に渡って範囲選択する際、メインテキスト表示枠1011の枠沿いを縦方向にドラッグするような操作を行う場合がある。メインテキスト表示枠1101と選択予測テキスト表示枠1102とを一定間隔離しておけば、上記のような操作と、選択予測テキストを範囲選択する操作とを区別できるようになる。   Further, for example, in FIG. 1, the selected predicted text display frame 102 is displayed connected to the main text display frame 101, but it is not always necessary to display the selected predicted text display frame 102. For example, as shown in FIG. 11, the selected predicted text display frame 1102 may be displayed separated from the main text display frame 1101 by a certain distance. For example, when the range of the main text is selected over a plurality of lines, an operation of dragging along the main text display frame 1011 in the vertical direction may be performed. If the main text display frame 1101 and the selected predicted text display frame 1102 are separated from each other for a certain period, the above operation can be distinguished from the operation for selecting a range of the selected predicted text.

また、上では、現在のカーソルの位置から最寄り行端までの文字数又は距離に応じて、選択予測テキスト表示枠の表示/非表示を行う例を説明したが、ドラッグ操作とは別に、なんらかのボタンを押下することにより、選択予測テキスト表示枠の表示/非表示を切り替えるような仕組みを採用することも可能である。なお、選択予測テキスト表示枠を最寄り行端の近傍に常に表示しておいてもよい。   In the above example, the selection prediction text display frame is displayed / hidden according to the number of characters or the distance from the current cursor position to the end of the nearest line. However, apart from the drag operation, some buttons are used. It is also possible to adopt a mechanism that switches between display / non-display of the selected predicted text display frame by pressing the button. Note that the selection prediction text display frame may be always displayed near the end of the nearest line.

また、上では、ドラッグ操作の方向については考慮していなかったが、ドラッグ操作の方向を考慮して選択予測テキストを表示するか否かを判断するようにしてもよい。例えば、行末方向へのドラッグ操作については、行末が最寄り行端として特定された場合のみ、選択予測テキスト表示枠を表示するような構成を採用することも可能である。   In the above, the direction of the drag operation is not taken into consideration, but it may be determined whether or not to display the selection prediction text in consideration of the direction of the drag operation. For example, for the drag operation toward the end of the line, it is possible to adopt a configuration in which the selected prediction text display frame is displayed only when the end of the line is specified as the nearest line end.

以上本実施の形態をまとめると以下のようになる。   The present embodiment can be summarized as follows.

本テキスト範囲選択処理方法は、表示部に表示されたテキストに対して、ポインティングデバイスによるドラッグ操作によって、当該テキストの範囲選択を行う場合におけるテキスト範囲選択処理方法であって、テキストを表示する第1表示枠内において当該テキストの範囲選択中に、ポインティングデバイスのカーソルの位置からの文字数又は距離に従って、当該カーソルの属する行における行頭及び行末のうち当該カーソルの位置から近い方を最寄り行端として特定する行端特定ステップと、最寄り行端とは反対側の行頭又は行末であって、カーソルの属する行の後方の行における行頭又は前方の行における行末から所定長の文字列を選択予測テキストとして抽出する選択予測テキスト抽出ステップと、選択予測テキストを表示する第2表示枠を、当該選択予測テキストについてドラッグ操作による範囲選択が可能な態様で最寄り行端の近傍に表示させる選択予測テキスト表示ステップとを含む。   This text range selection processing method is a text range selection processing method in the case of selecting a range of the text by dragging with a pointing device with respect to the text displayed on the display unit. While selecting the range of the text in the display frame, according to the number of characters or the distance from the cursor position of the pointing device, the closest line end to the cursor position is specified as the nearest line end of the line to which the cursor belongs. A character string of a predetermined length is extracted as a selected prediction text from the line end specifying step and the beginning or end of the line opposite to the nearest end of the line, starting from the beginning or end of the line after the line to which the cursor belongs. A selection prediction text extraction step and a second display of the selection prediction text The 示枠, and a selection predictive text displaying step of displaying in the vicinity of the nearest row end range selection possible embodiments according to the drag operation for the selected predictive text.

このようにすれば、例えば最寄り行端とは反対側の行端付近に選択終点があったとしても、当該反対側の行端付近における文字列が選択予測テキストとして最寄り行端の近傍に範囲選択可能な態様で表示されるので、ポインティングデバイスを反対側の行端付近まで移動させなくとも範囲選択できるようになる。すなわち、ポインティングデバイスの移動距離が選択範囲の幅より大幅に長くなるようなことはなく、自然な選択操作によって範囲選択を行うことが可能になる。   In this way, for example, even if there is a selection end point near the end of the line opposite to the nearest line end, the character string near the end of the opposite line is selected as the selection prediction text and the range is selected near the end of the nearest line. Since it is displayed in a possible manner, the range can be selected without moving the pointing device to the vicinity of the row end on the opposite side. That is, the moving distance of the pointing device does not become much longer than the width of the selection range, and the range can be selected by a natural selection operation.

また、第1表示枠内において最寄り行端まで範囲選択がなされ且つ第2表示枠内において選択予測テキストの少なくとも一部について範囲選択がなされた場合、選択予測テキストの選択範囲における末尾位置を特定するステップと、特定した末尾位置と最寄り行端の位置とから当該末尾位置に対応する、テキスト中の文字位置を算出するステップと、算出した文字位置を、テキストの範囲選択に係る選択終点として設定するステップとをさらに含むようにしてもよい。このようにすれば、第2表示枠内において範囲選択された部分を、第1表示枠に反映できる。   In addition, when the range selection is made to the end of the nearest line in the first display frame and the range selection is made for at least a part of the selected prediction text in the second display frame, the end position in the selection range of the selection prediction text is specified. Calculating a character position in the text corresponding to the end position from the step, the specified end position and the position of the nearest line end, and setting the calculated character position as a selection end point for text range selection A step may be further included. In this way, the part selected in the second display frame can be reflected in the first display frame.

さらに、上で述べた行端特定ステップの後に、カーソルの位置から最寄り行端までの文字数又は距離が予め定められた表示開始判断閾値以下であるか判断するステップをさらに含むようにしてもよい。そして、カーソルの位置から最寄り行端までの文字数又は距離が表示開始判断閾値以下であると判断された場合に、上で述べた選択予測テキスト抽出ステップ以降の処理を実施するようにしてもよい。また、第2表示枠を表示した後、カーソルから最寄り行端までの文字数又は距離が予め定められた表示終了判断閾値以上になったか判断するステップと、カーソルから最寄り行端までの文字数又は距離が表示終了判断閾値以上になったと判断された場合、第2表示枠を消去するステップとをさらに含むようにしてもよい。このようにすれば、例えばカーソルの位置が最寄り行端に近づいた場合には第2表示枠を表示し、カーソルの位置が最寄り行端から離れた場合には第2表示枠を非表示とすることができる。   Furthermore, after the line end specifying step described above, a step of determining whether the number of characters or the distance from the cursor position to the nearest line end is equal to or less than a predetermined display start determination threshold value may be further included. Then, when it is determined that the number of characters or the distance from the cursor position to the end of the nearest line is equal to or less than the display start determination threshold value, the processing after the selection predicted text extraction step described above may be performed. Further, after displaying the second display frame, a step of determining whether the number of characters or distance from the cursor to the nearest line end is equal to or greater than a predetermined display end judgment threshold, and the number of characters or distance from the cursor to the nearest line end is A step of deleting the second display frame may be further included when it is determined that the display end determination threshold is exceeded. In this way, for example, the second display frame is displayed when the cursor position approaches the nearest line end, and the second display frame is hidden when the cursor position moves away from the nearest line end. be able to.

さらに、上で述べた選択予測テキスト表示ステップにおいて、第1表示枠から一定間隔離して第2表示枠を表示させるようにしてもよい。このように第1表示枠から一定間隔離して第2表示枠を表示することで、第1表示枠に対する所定の操作と、第2表示枠に対するドラッグ操作とを適切に区別でき、第1表示枠に対する操作性を損なうことはない。   Furthermore, in the selection prediction text display step described above, the second display frame may be displayed while being separated from the first display frame by a certain distance. In this way, by displaying the second display frame while being separated from the first display frame by a certain distance, it is possible to appropriately distinguish a predetermined operation on the first display frame and a drag operation on the second display frame. There is no loss of operability.

なお、テキスト範囲選択処理装置をハードウェアと共に実現するためのプログラムを作成することができ、当該プログラムは、例えばフレキシブルディスク、CD−ROM、光磁気ディスク、半導体メモリ、ハードディスク等の記憶媒体又は記憶装置に格納される。尚、中間的な処理結果はメインメモリ等の記憶装置に一時保管される。   A program for realizing the text range selection processing device together with hardware can be created. The program can be a storage medium or storage device such as a flexible disk, a CD-ROM, a magneto-optical disk, a semiconductor memory, or a hard disk. Stored in The intermediate processing result is temporarily stored in a storage device such as a main memory.

なお、テキスト範囲選択処理装置は、図13に示すように、メモリ2501(記憶部)とCPU2503(処理部)とハードディスク・ドライブ(HDD)2505と表示装置2509に接続される表示制御部2507とリムーバブル・ディスク2511用のドライブ装置2513と入力装置2515とネットワークに接続するための通信制御部2517とがバス2519で接続されている。OS及びWebブラウザを含むアプリケーション・プログラムは、HDD2505に格納されており、CPU2503により実行される際にはHDD2505からメモリ2501に読み出される。必要に応じてCPU2503は、表示制御部2507、通信制御部2517、ドライブ装置2513を制御して、必要な動作を行わせる。また、処理途中のデータについては、メモリ2501に格納され、必要があればHDD2505に格納される。このようなコンピュータは、上で述べたCPU2503、メモリ2501などのハードウエアとOS及び必要なアプリケーション・プログラムとが有機的に協働することにより、上で述べたような各種機能を実現する。   As shown in FIG. 13, the text range selection processing device includes a memory 2501 (storage unit), a CPU 2503 (processing unit), a hard disk drive (HDD) 2505, a display control unit 2507 connected to the display device 2509, and a removable device. A drive device 2513 for the disk 2511, an input device 2515, and a communication control unit 2517 for connecting to a network are connected by a bus 2519. Application programs including the OS and the Web browser are stored in the HDD 2505, and are read from the HDD 2505 to the memory 2501 when executed by the CPU 2503. If necessary, the CPU 2503 controls the display control unit 2507, the communication control unit 2517, and the drive device 2513 to perform necessary operations. Further, data in the middle of processing is stored in the memory 2501 and stored in the HDD 2505 if necessary. Such a computer realizes various functions as described above by organically cooperating hardware such as the CPU 2503 and the memory 2501 described above with the OS and necessary application programs.

以上の実施例を含む実施形態に関し、さらに以下の付記を開示する。   The following supplementary notes are further disclosed with respect to the embodiments including the above examples.

(付記1)
表示部に表示されたテキストに対して、ポインティングデバイスによるドラッグ操作によって、当該テキストの範囲選択を行うためのプログラムであって、
前記テキストを表示する第1表示枠内において当該テキストの範囲選択中に、前記ポインティングデバイスのカーソルの位置からの文字数又は距離に従って、当該カーソルの属する行における行頭及び行末のうち当該カーソルの位置から近い方を最寄り行端として特定する行端特定ステップと、
前記最寄り行端とは反対側の行頭又は行末であって、前記カーソルの属する行の後方の行における行頭又は前方の行における行末から所定長の文字列を選択予測テキストとして抽出する選択予測テキスト抽出ステップと、
前記選択予測テキストを表示する第2表示枠を、当該選択予測テキストについて前記ドラッグ操作による範囲選択が可能な態様で前記最寄り行端の近傍に表示させる選択予測テキスト表示ステップと、
をコンピュータに実行させるためのプログラム。
(Appendix 1)
A program for selecting a range of text by dragging a pointing device with respect to the text displayed on the display unit,
While selecting the range of the text in the first display frame for displaying the text, according to the number of characters or the distance from the cursor position of the pointing device, it is close to the position of the cursor among the head and end of the line to which the cursor belongs. The end-of-line identifying step that identifies the end as the nearest line end,
Selection prediction text extraction that extracts a character string of a predetermined length from the beginning or end of the line on the opposite side of the nearest line end and from the beginning or end of the line behind the line to which the cursor belongs Steps,
A selected predicted text display step of displaying a second display frame for displaying the selected predicted text in the vicinity of the end of the nearest line in a manner capable of selecting a range for the selected predicted text by the drag operation;
A program that causes a computer to execute.

(付記2)
前記第1表示枠内において前記最寄り行端まで範囲選択がなされ且つ前記第2表示枠内において前記選択予測テキストの少なくとも一部について範囲選択がなされた場合、前記選択予測テキストの選択範囲における終端位置を特定するステップと、
特定した前記終端位置と前記最寄り行端の位置とから当該終端位置に対応する、前記テキスト中の文字位置を算出するステップと、
算出した前記文字位置を、前記テキストの範囲選択に係る選択終点として設定するステップと、
をさらに実行させる付記1記載のプログラム。
(Appendix 2)
The end position of the selected predicted text in the selected range when the range is selected up to the nearest line end in the first display frame and the range is selected for at least a part of the selected predicted text in the second display frame. Identifying steps,
Calculating a character position in the text corresponding to the end position from the specified end position and the position of the nearest line end;
Setting the calculated character position as a selection end point for the range selection of the text;
The program according to supplementary note 1, wherein the program is further executed.

(付記3)
前記行端特定ステップの後に、前記カーソルの位置から前記最寄り行端までの文字数又は距離が予め定められた表示開始判断閾値以下であるか判断するステップ
をさらに実行させ、
前記カーソルの位置から前記最寄り行端までの文字数又は距離が前記表示開始判断閾値以下であると判断された場合に、前記選択予測テキスト抽出ステップ以降の処理を実施する
ことを特徴とする付記1又は2記載のプログラム。
(Appendix 3)
After the line end specifying step, further comprising the step of determining whether the number of characters or the distance from the cursor position to the nearest line end is equal to or less than a predetermined display start determination threshold,
The supplementary note 1 or 6, wherein the processing after the selection predicted text extraction step is performed when it is determined that the number of characters or the distance from the cursor position to the nearest line end is equal to or less than the display start determination threshold value. 2. The program according to 2.

(付記4)
前記第2表示枠を表示した後、前記カーソルから前記最寄り行端までの文字数又は距離が予め定められた表示終了判断閾値以上になったか判断するステップと、
前記カーソルから前記最寄り行端までの文字数又は距離が前記表示終了判断閾値以上になったと判断された場合、前記第2表示枠を消去するステップと、
をさらに実行させる付記1乃至3のいずれか1つ記載のプログラム。
(Appendix 4)
After displaying the second display frame, determining whether the number of characters or the distance from the cursor to the nearest line end is equal to or greater than a predetermined display end determination threshold;
Erasing the second display frame when it is determined that the number of characters or the distance from the cursor to the nearest line end is equal to or greater than the display end determination threshold;
4. The program according to any one of appendices 1 to 3, further executing:

(付記5)
前記選択予測テキスト表示ステップにおいて、前記第1表示枠から一定間隔離して前記第2表示枠を表示させる
ことを特徴とする付記1乃至4のいずれか1つ記載のプログラム。
(Appendix 5)
The program according to any one of appendices 1 to 4, wherein, in the selected predicted text display step, the second display frame is displayed while being separated from the first display frame by a certain distance.

(付記6)
表示部に表示されたテキストに対して、ポインティングデバイスによるドラッグ操作によって、当該テキストの範囲選択を行う場合におけるテキスト範囲選択処理方法であって、
前記テキストを表示する第1表示枠内において当該テキストの範囲選択中に、前記ポインティングデバイスのカーソルの位置からの文字数又は距離に従って、当該カーソルの属する行における行頭及び行末のうち当該カーソルの位置から近い方を最寄り行端として特定するステップと、
前記最寄り行端とは反対側の行頭又は行末であって、前記カーソルの属する行の後方の行における行頭又は前方の行における行末から所定長の文字列を選択予測テキストとして抽出するステップと、
前記選択予測テキストを表示する第2表示枠を、当該選択予測テキストについて前記ドラッグ操作による範囲選択が可能な態様で前記最寄り行端の近傍に表示させるステップと、
を含み、コンピュータにより実行されるテキスト範囲選択処理方法。
(Appendix 6)
A text range selection processing method in a case where a range of a text is selected by dragging a pointing device with respect to text displayed on a display unit,
While selecting the range of the text in the first display frame for displaying the text, according to the number of characters or the distance from the cursor position of the pointing device, it is close to the position of the cursor among the head and end of the line to which the cursor belongs. Step to identify the nearest line end,
Extracting a character string of a predetermined length from the beginning or end of the line on the opposite side to the end of the nearest line, from the beginning of the line behind the line to which the cursor belongs, or from the end of the line in the front line, as selected prediction text;
Displaying a second display frame for displaying the selected predicted text in the vicinity of the end of the nearest line in a manner capable of selecting a range by the drag operation for the selected predicted text;
A text range selection processing method executed by a computer.

(付記7)
表示部に表示されたテキストに対して、ポインティングデバイスによるドラッグ操作によって、当該テキストの範囲選択を行うテキスト範囲選択処理装置であって、
前記テキストを表示する第1表示枠内において当該テキストの範囲選択中に、前記ポインティングデバイスのカーソルの位置からの文字数又は距離に従って、当該カーソルの属する行における行頭及び行末のうち当該カーソルの位置から近い方を最寄り行端として特定する手段と、
前記最寄り行端とは反対側の行頭又は行末であって、前記カーソルの属する行の後方の行における行頭又は前方の行における行末から所定長の文字列を選択予測テキストとして抽出する手段と、
前記選択予測テキストを表示する第2表示枠を、当該選択予測テキストについて前記ドラッグ操作による範囲選択が可能な態様で前記最寄り行端の近傍に表示させる手段と、
を有するテキスト範囲選択処理装置。
(Appendix 7)
A text range selection processing device that selects a range of text by dragging a pointing device with respect to the text displayed on the display unit,
While selecting the range of the text in the first display frame for displaying the text, according to the number of characters or the distance from the cursor position of the pointing device, it is close to the position of the cursor among the head and end of the line to which the cursor belongs. Means to identify the closest line end,
Means for extracting a character string of a predetermined length from the beginning or end of the line on the opposite side of the nearest end of the line, from the beginning of the line behind the line to which the cursor belongs, or from the end of the line in the front line, as selected prediction text;
Means for displaying a second display frame for displaying the selected predicted text in the vicinity of the end of the nearest line in a manner capable of selecting a range for the selected predicted text by the drag operation;
A text range selection processing device.

選択予測テキスト表示枠の表示例を示す図である。It is a figure which shows the example of a display of a selection prediction text display frame. 選択予測テキスト表示枠の表示例を示す図である。It is a figure which shows the example of a display of a selection prediction text display frame. テキスト範囲選択処理装置の機能ブロック図である。It is a functional block diagram of a text range selection processing device. テキスト範囲選択処理装置の処理フロー(第1の部分)を示す図である。It is a figure which shows the processing flow (1st part) of a text range selection processing apparatus. テキスト範囲選択処理装置の処理フロー(第2の部分)を示す図である。It is a figure which shows the processing flow (2nd part) of a text range selection processing apparatus. 最寄り行端までの文字数又は距離が表示開始判断閾値を上回っている場合の表示例を示す図である。It is a figure which shows the example of a display when the number of characters or distance to the nearest line end exceeds the display start judgment threshold value. 最寄り行端までの文字数又は距離が表示開始判断閾値以下になった場合の表示例を示す図である。It is a figure which shows the example of a display when the number of characters or distance to the nearest line end becomes below a display start judgment threshold value. 最寄り行端の位置が変わった場合の表示例を示す図である。It is a figure which shows the example of a display when the position of the nearest line end changes. テキスト範囲選択処理装置の処理フロー(第3の部分)を示す図である。It is a figure which shows the processing flow (3rd part) of a text range selection processing apparatus. 選択予測テキストについて範囲選択がなされた場合の表示例を示す図である。It is a figure which shows the example of a display when range selection is made about selection prediction text. 選択予測テキスト表示枠の表示例を示す図である。It is a figure which shows the example of a display of a selection prediction text display frame. (a)及び(b)は、従来の範囲選択を示す図である。(A) And (b) is a figure which shows the conventional range selection. コンピュータの機能ブロック図である。It is a functional block diagram of a computer.

符号の説明Explanation of symbols

1 オペレーティング・システム 3 アプリケーション・プログラム
11 テキスト範囲選択モジュール 31 選択予測テキスト生成部
33 選択予測テキスト表示部 35 位置特定部
37 位置変換部 39 選択終点設定部
DESCRIPTION OF SYMBOLS 1 Operating system 3 Application program 11 Text range selection module 31 Selection prediction text production | generation part 33 Selection prediction text display part 35 Location specification part 37 Position conversion part 39 Selection end point setting part

Claims (6)

表示部に表示されたテキストに対して、ポインティングデバイスによるドラッグ操作によって、当該テキストの範囲選択を行うためのプログラムであって、
前記テキストを表示する第1表示枠内において当該テキストの範囲選択中に、前記ポインティングデバイスのカーソルの位置からの文字数又は距離に従って、当該カーソルの属する行における行頭及び行末のうち当該カーソルの位置から近い方を最寄り行端として特定する行端特定ステップと、
前記最寄り行端とは反対側の行頭又は行末であって、前記カーソルの属する行の後方の行における行頭又は前方の行における行末から所定長の文字列を選択予測テキストとして抽出する選択予測テキスト抽出ステップと、
前記選択予測テキストを表示する第2表示枠を、当該選択予測テキストについて前記ドラッグ操作による範囲選択が可能な態様で前記最寄り行端の近傍に表示させる選択予測テキスト表示ステップと、
をコンピュータに実行させるためのプログラム。
A program for selecting a range of text by dragging a pointing device with respect to the text displayed on the display unit,
While selecting the range of the text in the first display frame for displaying the text, according to the number of characters or the distance from the cursor position of the pointing device, it is close to the position of the cursor among the head and end of the line to which the cursor belongs. The end-of-line identifying step that identifies the end as the nearest line end,
Selection prediction text extraction that extracts a character string of a predetermined length from the beginning or end of the line on the opposite side of the nearest line end and from the beginning or end of the line behind the line to which the cursor belongs Steps,
A selected predicted text display step of displaying a second display frame for displaying the selected predicted text in the vicinity of the end of the nearest line in a manner capable of selecting a range for the selected predicted text by the drag operation;
A program that causes a computer to execute.
前記第1表示枠内において前記最寄り行端まで範囲選択がなされ且つ前記第2表示枠内において前記選択予測テキストの少なくとも一部について範囲選択がなされた場合、前記選択予測テキストの選択範囲における終端位置を特定するステップと、
特定した前記終端位置と前記最寄り行端の位置とから当該終端位置に対応する、前記テキスト中の文字位置を算出するステップと、
算出した前記文字位置を、前記テキストの範囲選択に係る選択終点として設定するステップと、
をさらに実行させる請求項1記載のプログラム。
The end position of the selected predicted text in the selected range when the range is selected up to the nearest line end in the first display frame and the range is selected for at least a part of the selected predicted text in the second display frame. Identifying steps,
Calculating a character position in the text corresponding to the end position from the specified end position and the position of the nearest line end;
Setting the calculated character position as a selection end point for the range selection of the text;
The program according to claim 1, further executing:
前記行端特定ステップの後に、前記カーソルの位置から前記最寄り行端までの文字数又は距離が予め定められた表示開始判断閾値以下であるか判断するステップ
をさらに実行させ、
前記カーソルの位置から前記最寄り行端までの文字数又は距離が前記表示開始判断閾値以下であると判断された場合に、前記選択予測テキスト抽出ステップ以降の処理を実施する
ことを特徴とする請求項1又は2記載のプログラム。
After the line end specifying step, further comprising the step of determining whether the number of characters or the distance from the cursor position to the nearest line end is equal to or less than a predetermined display start determination threshold,
The process after the selection prediction text extraction step is performed when it is determined that the number of characters or the distance from the cursor position to the nearest line end is equal to or less than the display start determination threshold value. Or the program according to 2.
前記第2表示枠を表示した後、前記カーソルから前記最寄り行端までの文字数又は距離が予め定められた表示終了判断閾値以上になったか判断するステップと、
前記カーソルから前記最寄り行端までの文字数又は距離が前記表示終了判断閾値以上になったと判断された場合、前記第2表示枠を消去するステップと、
をさらに実行させる請求項1乃至3のいずれか1つ記載のプログラム。
After displaying the second display frame, determining whether the number of characters or the distance from the cursor to the nearest line end is equal to or greater than a predetermined display end determination threshold;
Erasing the second display frame when it is determined that the number of characters or the distance from the cursor to the nearest line end is equal to or greater than the display end determination threshold;
The program according to any one of claims 1 to 3, wherein the program is further executed.
表示部に表示されたテキストに対して、ポインティングデバイスによるドラッグ操作によって、当該テキストの範囲選択を行う場合におけるテキスト範囲選択処理方法であって、
前記テキストを表示する第1表示枠内において当該テキストの範囲選択中に、前記ポインティングデバイスのカーソルの位置からの文字数又は距離に従って、当該カーソルの属する行における行頭及び行末のうち当該カーソルの位置から近い方を最寄り行端として特定するステップと、
前記最寄り行端とは反対側の行頭又は行末であって、前記カーソルの属する行の後方の行における行頭又は前方の行における行末から所定長の文字列を選択予測テキストとして抽出するステップと、
前記選択予測テキストを表示する第2表示枠を、当該選択予測テキストについて前記ドラッグ操作による範囲選択が可能な態様で前記最寄り行端の近傍に表示させるステップと、
を含み、コンピュータにより実行されるテキスト範囲選択処理方法。
A text range selection processing method in a case where a range of a text is selected by dragging a pointing device with respect to text displayed on a display unit,
While selecting the range of the text in the first display frame for displaying the text, according to the number of characters or the distance from the cursor position of the pointing device, it is close to the position of the cursor among the head and end of the line to which the cursor belongs. Step to identify the nearest line end,
Extracting a character string of a predetermined length from the beginning or end of the line on the opposite side to the end of the nearest line, from the beginning of the line behind the line to which the cursor belongs, or from the end of the line in the front line, as selected prediction text;
Displaying a second display frame for displaying the selected predicted text in the vicinity of the end of the nearest line in a manner capable of selecting a range by the drag operation for the selected predicted text;
A text range selection processing method executed by a computer.
表示部に表示されたテキストに対して、ポインティングデバイスによるドラッグ操作によって、当該テキストの範囲選択を行うテキスト範囲選択処理装置であって、
前記テキストを表示する第1表示枠内において当該テキストの範囲選択中に、前記ポインティングデバイスのカーソルの位置からの文字数又は距離に従って、当該カーソルの属する行における行頭及び行末のうち当該カーソルの位置から近い方を最寄り行端として特定する手段と、
前記最寄り行端とは反対側の行頭又は行末であって、前記カーソルの属する行の後方の行における行頭又は前方の行における行末から所定長の文字列を選択予測テキストとして抽出する手段と、
前記選択予測テキストを表示する第2表示枠を、当該選択予測テキストについて前記ドラッグ操作による範囲選択が可能な態様で前記最寄り行端の近傍に表示させる手段と、
を有するテキスト範囲選択処理装置。
A text range selection processing device that selects a range of text by dragging a pointing device with respect to the text displayed on the display unit,
While selecting the range of the text in the first display frame for displaying the text, according to the number of characters or the distance from the cursor position of the pointing device, it is close to the position of the cursor among the beginning and end of the line to which the cursor belongs. Means to identify the closest line end,
Means for extracting a character string of a predetermined length from the beginning or end of the line on the opposite side of the nearest end of the line, from the beginning of the line behind the line to which the cursor belongs, or from the end of the line in the front line, as selected prediction text;
Means for displaying a second display frame for displaying the selected predicted text in the vicinity of the end of the nearest line in a manner capable of selecting a range for the selected predicted text by the drag operation;
A text range selection processing device.
JP2008327776A 2008-12-24 2008-12-24 Text range selection processing program, method and apparatus Expired - Fee Related JP5077221B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008327776A JP5077221B2 (en) 2008-12-24 2008-12-24 Text range selection processing program, method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008327776A JP5077221B2 (en) 2008-12-24 2008-12-24 Text range selection processing program, method and apparatus

Publications (2)

Publication Number Publication Date
JP2010152500A true JP2010152500A (en) 2010-07-08
JP5077221B2 JP5077221B2 (en) 2012-11-21

Family

ID=42571548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008327776A Expired - Fee Related JP5077221B2 (en) 2008-12-24 2008-12-24 Text range selection processing program, method and apparatus

Country Status (1)

Country Link
JP (1) JP5077221B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078077A (en) * 2018-10-02 2020-04-28 卡西欧计算机株式会社 Electronic device, text processing method, and recording medium having program recorded thereon
CN112434495A (en) * 2020-12-14 2021-03-02 万兴科技(湖南)有限公司 Selection method, selection device, computer equipment and storage medium
US11157089B2 (en) * 2019-12-27 2021-10-26 Hypori Llc Character editing on a physical device via interaction with a virtual device user interface
US11610070B2 (en) 2018-10-02 2023-03-21 Casio Computer Co., Ltd. Electronic device for determining a character type in a character combination and processes capable of execution therewith, and control method for and storage medium storing program for same

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001022748A (en) * 1999-07-07 2001-01-26 Just Syst Corp Device and method for document processing and computer- readable recording medium where program allowing computer to implement the method is recorded

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001022748A (en) * 1999-07-07 2001-01-26 Just Syst Corp Device and method for document processing and computer- readable recording medium where program allowing computer to implement the method is recorded

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078077A (en) * 2018-10-02 2020-04-28 卡西欧计算机株式会社 Electronic device, text processing method, and recording medium having program recorded thereon
US11610070B2 (en) 2018-10-02 2023-03-21 Casio Computer Co., Ltd. Electronic device for determining a character type in a character combination and processes capable of execution therewith, and control method for and storage medium storing program for same
CN111078077B (en) * 2018-10-02 2024-02-02 卡西欧计算机株式会社 Electronic device, text processing method, and recording medium having program recorded thereon
US11157089B2 (en) * 2019-12-27 2021-10-26 Hypori Llc Character editing on a physical device via interaction with a virtual device user interface
US20220121293A1 (en) * 2019-12-27 2022-04-21 Hypori, LLC Character editing on a physical device via interaction with a virtual device user interface
CN112434495A (en) * 2020-12-14 2021-03-02 万兴科技(湖南)有限公司 Selection method, selection device, computer equipment and storage medium

Also Published As

Publication number Publication date
JP5077221B2 (en) 2012-11-21

Similar Documents

Publication Publication Date Title
EP2386941B1 (en) Information processing apparatus and method, and program
US10031900B2 (en) Range adjustment for text editing
CN111770288B (en) Video editing method, device, terminal and storage medium
JP6192104B2 (en) Text editing apparatus and program
CN104520843A (en) Providing note based annotation of content in e-reader
KR20140018377A (en) Devices, methods, and graphical user interfaces for document manipulation
JP2008158765A (en) Information processing device, information processing method, and program for executing it by computer
JP5077221B2 (en) Text range selection processing program, method and apparatus
JP2008071279A (en) Information processor and control method therefor
CN102460421B (en) Slip variable content path
EP3008620B1 (en) Tethered selection handle
JP7289661B2 (en) Information processing device, control method, and its program
US20130271383A1 (en) Korean character input apparatus and method using touch screen
US9940914B2 (en) Score displaying method and storage medium
KR20220088944A (en) Command display control method, command display control program, and apparatus therefor
JP4441966B2 (en) Handwritten character input device and recording medium recording program for realizing the same
JP5861686B2 (en) Information processing terminal, control method thereof, and program
JP2014071755A (en) Editing device and method for controlling editing device
JP5925096B2 (en) Editing device and editing device control method
JP4963633B2 (en) Information processing apparatus and information processing method
JP2005190220A (en) Display deletion device, control method of computer, and program
JP5294797B2 (en) Display device, computer control method, and program
JP5900551B2 (en) Information processing terminal, control method thereof, and program
US20170060390A1 (en) Control method and control device
CN114415887A (en) Document content processing method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110907

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120726

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: 20120731

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120813

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150907

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees