CN104111787A - Method and device for realizing text editing on touch screen interface - Google Patents
Method and device for realizing text editing on touch screen interface Download PDFInfo
- Publication number
- CN104111787A CN104111787A CN201310137128.8A CN201310137128A CN104111787A CN 104111787 A CN104111787 A CN 104111787A CN 201310137128 A CN201310137128 A CN 201310137128A CN 104111787 A CN104111787 A CN 104111787A
- Authority
- CN
- China
- Prior art keywords
- text
- insertable
- touch point
- area
- touch
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明提出一种在触摸屏界面上实现文本编辑的方法和装置,其中方法包括:判断用户在触摸屏上的触摸点是否位于待插入区域并且连续触摸时间大于预先设置的门限值,如果是,则将触摸屏上所述触摸点位置的内容选定为待插入文本,并突出显示所述待插入文本;当所述触摸点在触摸屏上移动时,将所述待插入文本在触摸点移动的轨迹上显示;当触摸点移动至可插入区域时,将触摸点位置的内容选定为可插入文本,并突出显示所述可插入文本;当触摸点从所述可插入区域释放时,将所述待插入文本插入或替代所述可插入文本。本发明能够方便地在触摸屏上实现文本编辑,提高编辑效率。
The present invention proposes a method and device for implementing text editing on a touch screen interface, wherein the method includes: judging whether the user's touch point on the touch screen is located in the area to be inserted and the continuous touch time is greater than a preset threshold value, if yes, then Select the content of the position of the touch point on the touch screen as the text to be inserted, and highlight the text to be inserted; when the touch point moves on the touch screen, place the text to be inserted on the moving track of the touch point display; when the touch point moves to the insertable area, the content at the touch point position is selected as the insertable text, and the insertable text is highlighted; when the touch point is released from the insertable area, the Insert Text inserts or replaces the insertable text. The invention can conveniently realize text editing on the touch screen and improve editing efficiency.
Description
技术领域technical field
本发明涉及文本编辑和人机交互技术领域,尤其涉及一种在触摸屏界面上实现文本编辑的方法和装置。The invention relates to the technical fields of text editing and human-computer interaction, in particular to a method and device for realizing text editing on a touch screen interface.
背景技术Background technique
随着计算机技术及互联网技术的发展,云技术的应用,带有触摸屏的移动终端正逐渐普及到生活、娱乐及办公领域,承载越来越多的文本输入及编辑任务。随着多点触摸屏幕技术的不断成熟,触控操作已经成为主要的操作方式。触摸屏设备可提供屏幕按钮来代替物理鼠标及键盘,屏幕按钮具有可定制性,可为屏幕按钮分配指定功能;用户可以通过触摸、敲击、拖拽实现对屏幕上对象的控制和/或激活来直接操作目标对象。因此,当屏幕上显示众多内容时,触摸屏的触敏性允许用户以直观方式对内容执行操作。With the development of computer technology and Internet technology, and the application of cloud technology, mobile terminals with touch screens are gradually popularizing in the fields of life, entertainment and office, carrying more and more text input and editing tasks. With the continuous maturity of multi-touch screen technology, touch operation has become the main operation mode. Touch screen devices can provide on-screen buttons to replace physical mice and keyboards. The on-screen buttons are customizable and can assign specific functions to the on-screen buttons; users can control and/or activate objects on the screen by touching, tapping, and dragging. Manipulate the target object directly. Therefore, when a lot of content is displayed on the screen, the touch sensitivity of the touch screen allows the user to perform operations on the content in an intuitive manner.
目前,触摸屏终端凭借添加功能按钮、增加按钮密度、弹出选项框,或者菜单系统来对已输入文字进行再编辑,在编辑过程中,光标的移动是必不可少的步骤。但是,由于移动触摸屏设备的屏幕尺寸较小,尤其在文本编辑页面时,文字内容显示较小,对文本的操作多,在较小的空间内通过敲击屏幕按钮的方法来进行操作易致使误敲击引发误操作。At present, touch screen terminals re-edit the input text by adding function buttons, increasing button density, popping up option boxes, or menu systems. During the editing process, the movement of the cursor is an essential step. However, due to the small screen size of the mobile touch screen device, especially in the text editing page, the text content display is small, and there are many operations on the text, and it is easy to cause errors by tapping the screen button in a small space. Tapping causes misoperation.
触屏光标的定位不像鼠标定位之精确。典型的,当用户输入一段文字后,发现中间遗漏内容,首先要移动光标至目标插入点,然后再开始输入遗漏文字。在这一过程中,由于手指对屏幕的遮挡造成光标定位更不精确;用户必须按照系统设定的步骤顺序和菜单层级来激活相应功能,增加用户记忆负担,强制用户操作步骤;并且,插入或移动文字时,触摸屏不向用户提供充足的反馈以提示用户自身的操作行为是否被辨识。上述种种缺点,直接导致现有在触摸屏界面上的文本编辑方法操作不方便,导致文本编辑效率低下。Touch screen cursor positioning is not as precise as mouse positioning. Typically, when the user finds missing content after entering a paragraph of text, the user must first move the cursor to the target insertion point, and then begin to input the missing text. In this process, the cursor positioning is more inaccurate due to the occlusion of the screen by the finger; the user must activate the corresponding function according to the step sequence and menu level set by the system, which increases the user's memory burden and forces the user to operate the steps; and, insert or When moving text, the touch screen does not provide sufficient feedback to the user to prompt whether the user's own operation behavior is recognized. The above-mentioned various shortcomings directly lead to inconvenient operation of the existing text editing method on the touch screen interface, resulting in low efficiency of text editing.
发明内容Contents of the invention
本发明提供了一种在触摸屏界面上实现文本编辑的方法,能够方便地在触摸屏上实现文本编辑,提高编辑效率。The invention provides a method for realizing text editing on the touch screen interface, which can conveniently realize text editing on the touch screen and improve editing efficiency.
本发明还提供了一种在触摸屏界面上实现文本编辑的系统,能够方便地在触摸屏上实现文本编辑,提高编辑效率。The invention also provides a system for realizing text editing on the touch screen interface, which can conveniently realize text editing on the touch screen and improve editing efficiency.
本发明的技术方案是这样实现的:Technical scheme of the present invention is realized like this:
一种在触摸屏界面上实现文本编辑的方法,包括:A method for implementing text editing on a touch screen interface, comprising:
判断用户在触摸屏上的触摸点是否位于待插入区域并且连续触摸时间大于预先设置的门限值,如果是,则将触摸屏上所述触摸点位置的内容选定为待插入文本,并突出显示所述待插入文本;Judging whether the user's touch point on the touch screen is located in the area to be inserted and the continuous touch time is greater than the preset threshold value, if so, select the content of the touch point position on the touch screen as the text to be inserted, and highlight the the text to be inserted;
当所述触摸点在触摸屏上移动时,将所述待插入文本在触摸点移动的轨迹上显示;When the touch point moves on the touch screen, the text to be inserted is displayed on the moving track of the touch point;
当触摸点移动至可插入区域时,将触摸点位置的内容选定为可插入文本,并突出显示所述可插入文本;When the touch point moves to the insertable area, select the content at the position of the touch point as insertable text, and highlight the insertable text;
当触摸点从所述可插入区域释放时,将所述待插入文本插入或替代所述可插入文本。When the touch point is released from the insertable area, the text to be inserted is inserted into or replaced by the insertable text.
一种在触摸屏界面上实现文本编辑的装置,包括:A device for implementing text editing on a touch screen interface, comprising:
定位模块,用于确定触摸点的位置,并将触摸点的位置发送至待插入文本选定模块、待插入文本显示模块和可插入文本选定模块,还用于将触摸点被释放的信息通知编辑模块;The positioning module is used to determine the position of the touch point, and sends the position of the touch point to the text selection module to be inserted, the text display module to be inserted and the text selection module to be inserted, and is also used to notify the touch point of release edit module;
待插入文本选定模块,用于判断触摸点是否位于待插入区域并且连续触摸时间大于预先设置的门限值,如果是,则将触摸屏上所述触摸点位置的内容选定为待插入文本,并突出显示所述待插入文本;The text selection module to be inserted is used to judge whether the touch point is located in the area to be inserted and the continuous touch time is greater than the preset threshold value, if yes, the content of the touch point position on the touch screen is selected as the text to be inserted, and highlight the text to be inserted;
待插入文本显示模块,用于当触摸点在触摸屏上移动时,将所述待插入文本在触摸点移动的轨迹上显示;The text display module to be inserted is used for displaying the text to be inserted on the moving track of the touch point when the touch point moves on the touch screen;
可插入文本选定模块,用于当触摸点从待插入区域移动至可插入区域时,将触摸点位置的内容选定为可插入文本,并突出显示所述可插入文本;The insertable text selection module is used for selecting the content at the position of the touch point as insertable text when the touch point moves from the area to be inserted to the insertable area, and highlighting the insertable text;
编辑模块,用于当触摸点从所述可插入区域释放时,将所述待插入文本插入或替代所述可插入文本。An editing module, configured to insert or replace the text to be inserted into or replace the text to be inserted when the touch point is released from the insertable area.
可见,本发明提出的在触摸屏界面上实现文本编辑的方法和装置,解决了插入文字时对用户操作顺序的限制,用户可先输待插入文字再给其分配位置;并且省去定位光标的困难操作,不需光标定位;在插入过程中将可插入文本突出显示,解决了定位不精确的问题。因此,本发明能够方便地在触摸屏上实现文本编辑,提高编辑效率。It can be seen that the method and device for implementing text editing on the touch screen interface proposed by the present invention solve the restriction on the user's operation sequence when inserting text, and the user can first input the text to be inserted and then assign it a position; and save the difficulty of positioning the cursor The operation does not require cursor positioning; the insertable text is highlighted during the insertion process, which solves the problem of inaccurate positioning. Therefore, the present invention can conveniently implement text editing on the touch screen and improve editing efficiency.
附图说明Description of drawings
图1为本发明提出的在触摸屏界面上实现文本编辑的方法实现流程图;Fig. 1 is the implementation flowchart of the method for realizing text editing on the touch screen interface proposed by the present invention;
图2为本发明实施例一的实现流程图;Fig. 2 is the realization flowchart of embodiment 1 of the present invention;
图3为本发明实施例二的实现流程图;Fig. 3 is the implementation flowchart of Embodiment 2 of the present invention;
图4为本发明实施例三的实现流程图;Fig. 4 is the implementation flowchart of the third embodiment of the present invention;
图5为本发明实施例四的实现流程图;FIG. 5 is an implementation flowchart of Embodiment 4 of the present invention;
图6为本发明实施例五的实现流程图;FIG. 6 is an implementation flow chart of Embodiment 5 of the present invention;
图7为本发明实施例六的实现流程图;Fig. 7 is the implementation flowchart of Embodiment 6 of the present invention;
图8为本发明提出的在触摸屏界面上实现文本编辑的装置结构示意图。FIG. 8 is a schematic structural diagram of a device for implementing text editing on a touch screen interface proposed by the present invention.
具体实施方式Detailed ways
本发明提出一种在触摸屏界面上实现文本编辑的方法,如图1为该方法实现流程图,包括:The present invention proposes a method for realizing text editing on a touch screen interface, as shown in Fig. 1 , which is a flowchart for realizing the method, including:
步骤101:判断用户在触摸屏上的触摸点是否位于待插入区域并且连续触摸时间大于预先设置的门限值,如果是,则将触摸屏上所述触摸点位置的内容选定为待插入文本,并突出显示所述待插入文本;Step 101: Determine whether the user's touch point on the touch screen is located in the area to be inserted and the continuous touch time is greater than the preset threshold value, if yes, select the content of the touch point position on the touch screen as the text to be inserted, and highlight said text to be inserted;
步骤102:当所述触摸点在触摸屏上移动时,将所述待插入文本在触摸点移动的轨迹上显示;Step 102: When the touch point moves on the touch screen, display the text to be inserted on the moving track of the touch point;
步骤103:当触摸点移动至可插入区域时,将触摸点位置的内容选定为可插入文本,并突出显示所述可插入文本;Step 103: When the touch point moves to the insertable area, select the content at the position of the touch point as insertable text, and highlight the insertable text;
步骤104:当触摸点从所述可插入区域释放时,将所述待插入文本插入或替代所述可插入文本。Step 104: When the touch point is released from the insertable area, insert or replace the insertable text with the text to be inserted.
上述步骤101中,待插入区域可以为:输入框候选字区域、虚拟键盘上的区域或者文本中被选中的区域。In the above step 101, the region to be inserted may be: the candidate word region of the input box, the region on the virtual keyboard or the selected region in the text.
上述步骤103中,当触摸点位于可插入区域时,将触摸点位置的内容选定为可插入文本的方式可以为:In the above step 103, when the touch point is located in the insertable area, the method of selecting the content at the touch point position as the insertable text can be as follows:
当触摸点位置位于可插入区域中的两个字符之间时,将所述两个字符选定为可插入文本;When the touch point position is between two characters in the insertable area, selecting the two characters as insertable text;
当触摸点位置位于可插入区域中的一个字符之上时,将所述一个字符选定为可插入文本。When the touch point position is over a character in the insertable area, the one character is selected as the insertable text.
上述步骤101和步骤103中,突出显示的方式可以为:体积增大显示、动态悬浮显示、变化颜色显示或变化字体显示。In the above step 101 and step 103, the way of highlighting may be: volume increase display, dynamic floating display, color change display or font change display.
上述步骤104中,将待插入文本插入或替代可插入文本的方式可以为:当可插入文本为两个字符时,将待插入文本插入所述两个字符之间;当可插入文本为一个字符时,将待插入文本替代所述字符。In the above step 104, the method of inserting the text to be inserted or replacing the insertable text may be: when the insertable text is two characters, inserting the text to be inserted between the two characters; when the insertable text is one character , replace the characters with the text to be inserted.
以下结合附图,举具体的实施例详细介绍:Below in conjunction with accompanying drawing, give specific embodiment and introduce in detail:
由上述介绍可见,本发明提出的方法可以分为三个阶段:第一阶段,根据触摸点的位置选定待插入文本;第二阶段,随着触摸点的移动显示待插入文本,并在触摸点移动轨迹的终点选定可插入文本;第三阶段,触摸点被释放,完成待插入文本插入或替换可插入文本。以下分别采用实施例一、实施例二、实施例三介绍这三个阶段。It can be seen from the above introduction that the method proposed by the present invention can be divided into three stages: the first stage, select the text to be inserted according to the position of the touch point; the second stage, display the text to be inserted along with the movement of the touch point, and touch The end point of the moving track of the point selects the text that can be inserted; in the third stage, the touch point is released, and the text to be inserted is inserted or the text to be inserted is replaced. The following three stages are described by using Embodiment 1, Embodiment 2, and Embodiment 3 respectively.
实施例一:Embodiment one:
如图2为本发明实施例一的实现流程图,介绍触摸点按下事件触发待插入文本的选定过程,包括:Figure 2 is an implementation flow chart of Embodiment 1 of the present invention, which introduces the selection process of the touch point press event triggering the text to be inserted, including:
步骤201:用户按下触摸屏。Step 201: the user presses the touch screen.
步骤202:检测用户在触摸屏上的触摸点是否位于待插入区域,如果是,则继续执行步骤203;Step 202: Detect whether the user's touch point on the touch screen is located in the area to be inserted, and if so, proceed to step 203;
在本步骤中,待插入区域可以是输入框候选字区域、虚拟键盘上的区域或者文本中被选中的区域。In this step, the area to be inserted may be a candidate word area in an input box, an area on a virtual keyboard, or a selected area in a text.
步骤203:判断用户在该触摸点的连续触摸时间是否大于预先设置的门限值,如果是,则执行步骤204。Step 203: Determine whether the user's continuous touch time at the touch point is greater than a preset threshold value, and if so, perform step 204.
步骤204:将触摸点位置的内容选定为待插入文本,并突出显示所述待插入文本,例如将待插入文本体积增大显示、动态悬浮显示、变化颜色显示或变化字体显示等,同时避免手指的覆盖。待插入文本可以是字符或图片等内容。Step 204: Select the content at the touch point as the text to be inserted, and highlight the text to be inserted, such as increasing the volume of the text to be inserted, displaying it dynamically, displaying it in a dynamic manner, displaying a color change, or displaying a font change, etc., while avoiding Covering of fingers. The text to be inserted can be content such as characters or pictures.
实施例二:Embodiment two:
如图3为本发明实施例二的实现流程图,介绍触摸点移动事件触发待插入文本移动显示及可插入文本的选定过程,包括:Figure 3 is the implementation flow chart of Embodiment 2 of the present invention, which introduces the touch point movement event to trigger the movement display of the text to be inserted and the selection process of the text that can be inserted, including:
步骤301:用户移动触摸点。Step 301: the user moves the touch point.
步骤302:随着触摸点在触摸屏上的移动,将待插入文本在触摸点移动的轨迹上显示。Step 302 : As the touch point moves on the touch screen, display the text to be inserted on the moving track of the touch point.
步骤303:检测用户在触摸屏上的触摸点是否位于可插入区域,如果是,则继续执行步骤304。Step 303: Detect whether the user's touch point on the touch screen is located in an insertable area, and if so, continue to execute step 304.
步骤304:将触摸点位置的内容选定为可插入文本,突出显示可插入文本。并调整整个编辑区域,保证有一个合适的间隔可以放置待插入文本。Step 304: Select the content at the touched point as text that can be inserted, and highlight the text that can be inserted. And adjust the entire editing area to ensure that there is a suitable interval for placing the text to be inserted.
具体地,当触摸点触碰已有内容时,相邻上下或左右等周围内容给予突出显示。例如,如果触摸点位于已有内容a和b之间,则选定可插入文本为a和b,将a和b突出显示,表示可以将待插入文本插入a和b之间;如果已有内容a、b和c,当触摸点位于b之上时,则选定可插入文本为b,将b突出显示,表示可以用待插入文本替代b。如果可插入文本为空格字符,则对空格字符给予提示,可以用待插入文本插入该空格字符。Specifically, when the touch point touches the existing content, the surrounding content such as the adjacent top, bottom, left and right will be highlighted. For example, if the touch point is between the existing content a and b, the text that can be inserted is selected as a and b, and a and b are highlighted, indicating that the text to be inserted can be inserted between a and b; if there is already content a, b and c, when the touch point is above b, the text that can be inserted is selected as b, and b is highlighted, indicating that b can be replaced by the text to be inserted. If the insertable text is a space character, a prompt is given for the space character, and the space character can be inserted with the text to be inserted.
突出显示可插入文本的方式可以为:将可插入文本体积增大显示、动态悬浮显示、变化颜色显示或变化字体显示等,同时避免手指的覆盖。The method of highlighting the insertable text may be: increasing the volume of the insertable text, displaying it dynamically, displaying it in a changed color or changing a font, etc., while avoiding the coverage of fingers.
实施例三:Embodiment three:
如图4为本发明实施例三的实现流程图,介绍触摸点释放事件触发待插入文本的插入过程,包括:Figure 4 is the implementation flow chart of Embodiment 3 of the present invention, which introduces the insertion process of the touch point release event triggering the text to be inserted, including:
步骤401:用户释放触摸点。Step 401: The user releases the touch point.
步骤402:判断触摸点是否在可插入区域释放,如果是,则执行步骤403;否则,还原到此可插入区域的初始状态。Step 402: Determine whether the touch point is released in the insertable area, if yes, execute step 403; otherwise, return to the initial state of the insertable area.
步骤403:将待插入文本插入或替代可插入文本。Step 403: Insert or replace the text to be inserted into or replace the text that can be inserted.
具体地,当可插入文本为两个字符时,将待插入文本插入这两个字符之间;当可插入文本为一个字符时,将待插入文本替代这一个字符。Specifically, when the text that can be inserted is two characters, the text to be inserted is inserted between the two characters; when the text that can be inserted is one character, the text to be inserted is replaced by the one character.
实施例四:Embodiment four:
在本实施例中,待插入区域为虚拟键盘上的区域。如图5为实施例四的实现流程图。In this embodiment, the area to be inserted is an area on the virtual keyboard. Fig. 5 is the implementation flowchart of the fourth embodiment.
在本实施例中,用户准备拨打电话“02552265373”,由于输入遗漏,将电话号码输入成了“0252265373”。用户开启触摸屏上的虚拟键盘,准备将遗漏的“5”插入进去。In this embodiment, the user is going to dial "02552265373", but due to an input omission, the user enters the phone number as "0252265373". The user turns on the virtual keyboard on the touch screen and prepares to insert the missing "5".
利用本发明提出的方法,检测到用户在触摸屏上的触摸点位于虚拟键盘的数字“5”区域,并且连续触摸时间大于预先设置的门限值,则将数字“5”的区域转化为激活的待插入区域,并将数字“5”选定为待插入文本,将数字“5”放大显示。Using the method proposed by the present invention, it is detected that the touch point of the user on the touch screen is located in the number "5" area of the virtual keyboard, and the continuous touch time is greater than the preset threshold value, then the number "5" area is converted into an active The area to be inserted, and the number "5" is selected as the text to be inserted, and the number "5" is enlarged for display.
随着触摸点在触摸屏上的移动,选定的数字“5”在触摸点移动的轨迹上显示。As the touch point moves on the touch screen, the selected number "5" is displayed on the moving track of the touch point.
当触摸点移动到触摸屏上的“0252265373”区域(即待插入区域)时,将触摸点位置的内容放大显示。When the touch point moves to the "0252265373" area (that is, the area to be inserted) on the touch screen, the content of the touch point will be enlarged and displayed.
当触摸点移动到“5”和“2”之间时,将“5”和“2”选定为可插入文本,放大显示“5”和“2”,并调整“5”和“2”之间的间隔,以保证二者之间能够插入待插入文本“5”。When the touch point moves between "5" and "2", select "5" and "2" as insertable text, zoom in and display "5" and "2", and adjust "5" and "2" to ensure that the text "5" to be inserted can be inserted between the two.
用户在目标情况提示出现时,释放触摸点,将待插入文本“5”插入可插入文本“5”和“2”之间,文本编辑成功。When the target situation prompt appears, the user releases the touch point, and inserts the text "5" to be inserted between the insertable text "5" and "2", and the text editing is successful.
实施例五:Embodiment five:
在本实施例中,待插入区域为输入框的候选字区域。如图6为实施例五的实现流程图。In this embodiment, the region to be inserted is the candidate word region of the input box. Figure 6 is the implementation flowchart of the fifth embodiment.
在本实施例中,用户已经输入了文本“左左左左左左右右右右右右”,需要在中间插入文本“中间”。用户开启输入框,当前在输入框的候选字区域显示“中间”、“中中中”。In this embodiment, the user has entered the text "Left, Left, Left, Left, Left, Left, Right, Right, Right, Right, Right, Right", and the text "Middle" needs to be inserted in the middle. The user opens the input box, and currently displays "middle" and "中中中" in the candidate word area of the input box.
利用本发明提出的方法,检测到用户在触摸屏上的触摸点位于输入框候选字区域的字符“中间”区域,并且连续触摸时间大于预先设置的门限值,则将字符“中间”的区域转化为激活的待插入区域,并将字符“中间”选定为待插入文本,将字符“中间”放大显示。Using the method proposed by the present invention, it is detected that the user's touch point on the touch screen is located in the character "middle" area of the input box candidate area, and the continuous touch time is greater than the preset threshold value, then the character "middle" area is converted It is the active area to be inserted, and the character "middle" is selected as the text to be inserted, and the character "middle" is enlarged and displayed.
随着触摸点在触摸屏上的移动,选定的字符“中间”在触摸点移动的轨迹上显示。As the touch point moves on the touch screen, the selected character "middle" is displayed on the moving track of the touch point.
当触摸点移动到触摸屏上的“左左左左左左右右右右右右”区域(即待插入区域)时,将触摸点位置的内容放大显示。When the touch point moves to the "left, left, left, left, left, right, left, right, right, right, right" area on the touch screen (that is, the area to be inserted), the content at the touch point will be enlarged and displayed.
当触摸点移动到“左”和“右”之间时,将“左”和“右”选定为可插入文本,放大显示“左”和“右”,并调整“左”和“右”之间的间隔,以保证二者之间能够插入待插入字符“中间”。When the touch point moves between "Left" and "Right", select "Left" and "Right" as text that can be inserted, enlarge the display of "Left" and "Right", and adjust "Left" and "Right" to ensure that the character "middle" to be inserted can be inserted between the two.
用户在目标情况提示出现时,释放触摸点,将待插入文本“中间”插入可插入文本“左”和“右”之间,文本编辑成功。When the target situation prompt appears, the user releases the touch point, inserts the text to be inserted "middle" between the insertable text "left" and "right", and the text editing is successful.
实施例六:Embodiment six:
图7示出了本发明的实施例六提供的利用拖拽操作修改文本的编辑方法的实现流程,详述如下:FIG. 7 shows the implementation process of the editing method for modifying text by dragging and dropping provided by Embodiment 6 of the present invention, which is described in detail as follows:
本实施例情况为,待编辑对象及目标移动位置处于同一可编辑区域内,在以下的描述中所提到的可编辑区域意为界面的文本区域。In this embodiment, the object to be edited and the target moving position are in the same editable area, and the editable area mentioned in the following description means the text area of the interface.
用户触摸触摸屏设备,检测用户的初次触摸点,结合触摸时长判定用户有下一步继续交互意图还是单纯敲击屏幕。当确认用户有下一步交互意图时,如果用户保持接触并开始滑动,则感测用户继续交互的信息,确定初次接触点为选取待插入文本的起点,继续感测触摸点跟随用户手指移动产生的路径。具体的文本编辑过程如下:The user touches the touch screen device, detects the user's first touch point, and determines whether the user has the next step to continue interacting or simply taps the screen based on the touch duration. When it is confirmed that the user has the next interaction intention, if the user keeps in touch and starts to slide, the information of the user's continued interaction is sensed, the initial contact point is determined as the starting point for selecting the text to be inserted, and the touch point is continuously sensed to follow the movement of the user's finger path. The specific text editing process is as follows:
第一步,检测用户手指与触摸屏的接触,判断触摸点的坐标是否位于待插入区域内,如果是,则执行第二步。The first step is to detect the contact between the user's finger and the touch screen, and determine whether the coordinates of the touch point are located in the area to be inserted, and if so, execute the second step.
第二步,检测触摸点的坐标,获取准备插入的文本内容。The second step is to detect the coordinates of the touch point and obtain the text content to be inserted.
第三步,检测与触摸屏的接触时间长,当超过预先设置的门限值时,将触摸点位置的内容确定为待插入文本。The third step is to detect that the contact time with the touch screen is long, and when it exceeds the preset threshold value, determine the content at the position of the touch point as the text to be inserted.
第四步,随着触摸点的移动,拖动所述待插入文本,将待插入文本在触摸点移动的轨迹上显示。在上述过程中,需要区别点击、轻触等交互手势动作。In the fourth step, as the touch point moves, drag the text to be inserted, and display the text to be inserted on the track of the touch point. In the above process, it is necessary to distinguish between interactive gestures such as click and light touch.
第五步,检测触摸点移动轨迹坐标,判断触摸点移动的坐标是否到达可插入区域,如果到达,则执行第六步。The fifth step is to detect the moving track coordinates of the touch point, and judge whether the moving coordinates of the touch point reach the insertable area, and if so, execute the sixth step.
第六步,根据触摸点的移动轨迹及周边信息反馈,确定可插入文本,调整个编辑区域,使有一个适合的间隔放置该待插入文本。The sixth step is to determine the text that can be inserted according to the movement trajectory of the touch point and the surrounding information feedback, and adjust the editing area so that there is a suitable interval for placing the text to be inserted.
第七步,释放触摸点,将待插入文本插入或替代可插入文本。The seventh step is to release the touch point, insert the text to be inserted or replace the text that can be inserted.
本发明还提出一种在触摸屏界面上实现文本编辑的装置,如图8为该装置的结构示意图,包括:The present invention also proposes a device for implementing text editing on a touch screen interface, as shown in Figure 8, which is a schematic structural diagram of the device, including:
定位模块801,用于确定触摸点的位置,并将触摸点的位置发送至待插入文本选定模块802、待插入文本显示模块803和可插入文本选定模块804,还用于将触摸点被释放的信息通知编辑模块805;The positioning module 801 is configured to determine the position of the touch point, and send the position of the touch point to the text to be inserted selection module 802, the text to be inserted display module 803, and the text to be inserted selection module 804, and is also used to select the text to be inserted by the touch point The released information notifies the editing module 805;
待插入文本选定模块802,用于判断触摸点是否位于待插入区域并且连续触摸时间大于预先设置的门限值,如果是,则将触摸屏上所述触摸点位置的内容选定为待插入文本,并突出显示所述待插入文本;To-be-inserted text selection module 802, for judging whether the touch point is located in the area to be inserted and the continuous touch time is greater than the preset threshold value, if yes, the content of the touch point position on the touch screen is selected as the text to be inserted , and highlight the text to be inserted;
待插入文本显示模块803,用于当触摸点在触摸屏上移动时,将所述待插入文本在触摸点移动的轨迹上显示;The text to be inserted display module 803 is used for displaying the text to be inserted on the moving track of the touch point when the touch point moves on the touch screen;
可插入文本选定模块804,用于当触摸点从待插入区域移动至可插入区域时,将触摸点位置的内容选定为可插入文本,并突出显示所述可插入文本;An insertable text selection module 804, configured to select the content at the position of the touch point as insertable text when the touch point moves from the area to be inserted to the insertable area, and highlight the insertable text;
编辑模块805,用于当触摸点从所述可插入区域释放时,将所述待插入文本插入或替代所述可插入文本。The editing module 805 is configured to insert or replace the text to be inserted into or replace the text to be inserted when the touch point is released from the insertable area.
上述装置中,待插入区域可以为:输入框候选字区域、虚拟键盘上的区域或者文本中被选中的区域。In the above device, the area to be inserted may be: the candidate word area of the input box, the area on the virtual keyboard, or the selected area in the text.
可插入文本选定模块804将触摸点位置的内容选定为可插入文本的方式可以为:The insertable text selection module 804 selects the content at the touch point as the insertable text in the following ways:
当触摸点位置位于可插入区域中的两个字符之间时,将所述两个字符选定为可插入文本;当触摸点位置位于可插入区域中的一个字符之上时,将所述一个字符选定为可插入文本。When the touch point position is between two characters in the insertable area, the two characters are selected as insertable text; when the touch point position is above a character in the insertable area, the one is selected The characters are selected as insertable text.
待插入文本选定模块802或可插入文本选定模块804突出显示的方式可以为:体积增大显示、动态悬浮显示、变化颜色显示或变化字体显示。The highlighting manner of the text selection module 802 to be inserted or the text selection module 804 that can be inserted may be: volume increase display, dynamic floating display, color change display or font change display.
编辑模块805将待插入文本插入或替代可插入文本的方式可以为:当所述可插入文本为两个字符时,将所述待插入文本插入所述两个字符之间;当所述可插入文本为一个字符时,将所述待插入文本替代所述字符。The editing module 805 may insert the text to be inserted into or replace the insertable text in the following manner: when the insertable text is two characters, insert the text to be inserted between the two characters; When the text is one character, the character to be inserted is replaced by the text to be inserted.
综上可见,本发明提出的在触摸屏界面上实现文本编辑的方法和装置,解决了插入文字时对用户操作顺序的限制,用户可先输待插入文字再给其分配位置;并且省去定位光标的困难操作,不需光标定位;在插入过程中将可插入文本突出显示,解决了定位不精确的问题。因此,本发明能够方便地在触摸屏上实现文本编辑,提高编辑效率。本发明在增加定位编辑文字位置的准确度的同时减少移动光标的操作,遵循人类用笔书写文字的行为方式,为用户提供更自然的交互方式。In summary, the method and device for implementing text editing on the touch screen interface proposed by the present invention solves the restriction on the user's operation sequence when inserting text, and the user can first input the text to be inserted and then assign it a position; and the positioning cursor is omitted The difficult operation does not require cursor positioning; the insertable text is highlighted during the insertion process, which solves the problem of inaccurate positioning. Therefore, the present invention can conveniently implement text editing on the touch screen and improve editing efficiency. The present invention reduces the operation of moving the cursor while increasing the accuracy of locating the position of the edited text, follows the human behavior of writing text with a pen, and provides users with a more natural interaction mode.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310137128.8A CN104111787B (en) | 2013-04-18 | 2013-04-18 | A kind of method and apparatus for realizing text editing on touch screen interface |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310137128.8A CN104111787B (en) | 2013-04-18 | 2013-04-18 | A kind of method and apparatus for realizing text editing on touch screen interface |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104111787A true CN104111787A (en) | 2014-10-22 |
| CN104111787B CN104111787B (en) | 2018-09-28 |
Family
ID=51708600
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310137128.8A Active CN104111787B (en) | 2013-04-18 | 2013-04-18 | A kind of method and apparatus for realizing text editing on touch screen interface |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104111787B (en) |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104834433A (en) * | 2015-04-24 | 2015-08-12 | 小米科技有限责任公司 | Method and device for editing text and terminal |
| CN105744062A (en) * | 2016-01-29 | 2016-07-06 | 深圳天珑无线科技有限公司 | Method and system for accurately positioning text cursor |
| CN105786295A (en) * | 2014-12-19 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Character input method and device |
| CN105808514A (en) * | 2014-12-30 | 2016-07-27 | 联想(北京)有限公司 | Information processing method and electronic device |
| WO2017041254A1 (en) * | 2015-09-09 | 2017-03-16 | 华为技术有限公司 | Data editing method and device |
| CN106648371A (en) * | 2016-12-29 | 2017-05-10 | 北京小米移动软件有限公司 | Method and device for moving text based on text file |
| CN106681588A (en) * | 2016-12-27 | 2017-05-17 | 努比亚技术有限公司 | Character processing method, character processing device and terminal |
| CN107037970A (en) * | 2017-02-27 | 2017-08-11 | 珠海市魅族科技有限公司 | Data entry device and system |
| CN108008875A (en) * | 2017-11-23 | 2018-05-08 | 维沃移动通信有限公司 | A kind of method and terminal device for controlling cursor movement |
| CN108279964A (en) * | 2018-01-19 | 2018-07-13 | 广州视源电子科技股份有限公司 | Text control for character editing and method and device for realizing overlay rendering |
| CN108351740A (en) * | 2015-10-13 | 2018-07-31 | 摩托罗拉移动有限责任公司 | Cursor position is set in text on the display apparatus |
| CN109815463A (en) * | 2018-12-13 | 2019-05-28 | 深圳壹账通智能科技有限公司 | Text editing selection control method, device, computer equipment and storage medium |
| CN113703597A (en) * | 2020-05-21 | 2021-11-26 | 宏碁股份有限公司 | Touch system and method for adjusting ink object distance |
| CN115048030A (en) * | 2022-08-12 | 2022-09-13 | 广东新空电子科技股份有限公司 | Character merging method and device, electronic equipment and storage medium |
| CN117493023A (en) * | 2023-12-28 | 2024-02-02 | 江西云眼视界科技股份有限公司 | Continuous integrated task processing method, system, computer and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5442742A (en) * | 1990-12-21 | 1995-08-15 | Apple Computer, Inc. | Method and apparatus for the manipulation of text on a computer display screen |
| US20020130837A1 (en) * | 1992-12-21 | 2002-09-19 | Johnston Robert G. | Method and apparatus for providing visual feedback during manipulation of text on a computer screen |
| US20100287486A1 (en) * | 2009-05-07 | 2010-11-11 | Microsoft Corporation | Correction of typographical errors on touch displays |
| CN102981765A (en) * | 2012-11-26 | 2013-03-20 | 中兴通讯股份有限公司 | Text processing method and terminal |
-
2013
- 2013-04-18 CN CN201310137128.8A patent/CN104111787B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5442742A (en) * | 1990-12-21 | 1995-08-15 | Apple Computer, Inc. | Method and apparatus for the manipulation of text on a computer display screen |
| US20020130837A1 (en) * | 1992-12-21 | 2002-09-19 | Johnston Robert G. | Method and apparatus for providing visual feedback during manipulation of text on a computer screen |
| US20100287486A1 (en) * | 2009-05-07 | 2010-11-11 | Microsoft Corporation | Correction of typographical errors on touch displays |
| CN102981765A (en) * | 2012-11-26 | 2013-03-20 | 中兴通讯股份有限公司 | Text processing method and terminal |
Cited By (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105786295A (en) * | 2014-12-19 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Character input method and device |
| CN105808514A (en) * | 2014-12-30 | 2016-07-27 | 联想(北京)有限公司 | Information processing method and electronic device |
| CN104834433A (en) * | 2015-04-24 | 2015-08-12 | 小米科技有限责任公司 | Method and device for editing text and terminal |
| CN104834433B (en) * | 2015-04-24 | 2018-02-02 | 小米科技有限责任公司 | Method for editing text, device and terminal |
| WO2017041254A1 (en) * | 2015-09-09 | 2017-03-16 | 华为技术有限公司 | Data editing method and device |
| US10963143B2 (en) | 2015-09-09 | 2021-03-30 | Huawei Technologies Co., Ltd. | Data editing method and apparatus |
| CN108351740A (en) * | 2015-10-13 | 2018-07-31 | 摩托罗拉移动有限责任公司 | Cursor position is set in text on the display apparatus |
| CN105744062A (en) * | 2016-01-29 | 2016-07-06 | 深圳天珑无线科技有限公司 | Method and system for accurately positioning text cursor |
| CN106681588A (en) * | 2016-12-27 | 2017-05-17 | 努比亚技术有限公司 | Character processing method, character processing device and terminal |
| CN106648371A (en) * | 2016-12-29 | 2017-05-10 | 北京小米移动软件有限公司 | Method and device for moving text based on text file |
| CN107037970A (en) * | 2017-02-27 | 2017-08-11 | 珠海市魅族科技有限公司 | Data entry device and system |
| CN108008875A (en) * | 2017-11-23 | 2018-05-08 | 维沃移动通信有限公司 | A kind of method and terminal device for controlling cursor movement |
| CN108279964A (en) * | 2018-01-19 | 2018-07-13 | 广州视源电子科技股份有限公司 | Text control for character editing and method and device for realizing overlay rendering |
| CN108279964B (en) * | 2018-01-19 | 2021-09-10 | 广州视源电子科技股份有限公司 | Method and device for realizing covering layer rendering, intelligent equipment and storage medium |
| CN109815463A (en) * | 2018-12-13 | 2019-05-28 | 深圳壹账通智能科技有限公司 | Text editing selection control method, device, computer equipment and storage medium |
| CN113703597A (en) * | 2020-05-21 | 2021-11-26 | 宏碁股份有限公司 | Touch system and method for adjusting ink object distance |
| CN115048030A (en) * | 2022-08-12 | 2022-09-13 | 广东新空电子科技股份有限公司 | Character merging method and device, electronic equipment and storage medium |
| CN117493023A (en) * | 2023-12-28 | 2024-02-02 | 江西云眼视界科技股份有限公司 | Continuous integrated task processing method, system, computer and storage medium |
| CN117493023B (en) * | 2023-12-28 | 2024-08-16 | 江西云眼视界科技股份有限公司 | Continuous integrated task processing method, system, computer and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104111787B (en) | 2018-09-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104111787B (en) | A kind of method and apparatus for realizing text editing on touch screen interface | |
| US12093523B2 (en) | Handwriting entry on an electronic device | |
| US20250265409A1 (en) | Device, method, and graphical user interface for annotating text | |
| US11487426B2 (en) | Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area | |
| US9400567B2 (en) | Explicit touch selection and cursor placement | |
| CN104756060B (en) | Cursor control based on gesture | |
| TWI553541B (en) | Method and computing device for semantic zoom | |
| EP2290506B1 (en) | Information processing apparatus, information processing method, and program | |
| US10684751B2 (en) | Display apparatus, display method, and program | |
| KR102089447B1 (en) | Electronic device and method for controlling applications thereof | |
| JP2019220237A (en) | Method and apparatus for providing character input interface | |
| KR101328202B1 (en) | Method and apparatus for running commands performing functions through gestures | |
| CN103970460A (en) | Touch screen-based operation method and terminal equipment using same | |
| KR20110081040A (en) | Method and device for operating contents in portable terminal with transparent display | |
| CN103092343B (en) | A kind of control method based on photographic head and mobile terminal | |
| JP2006236339A (en) | Method for operating graphical user interface and graphical user interface | |
| JP2013117985A (en) | Multi-touch uses, gestures, and implementation | |
| CN104272240A (en) | Systems and methods for modifying virtual keyboards on a user interface | |
| CN104641324A (en) | Gesture-initiated keyboard functions | |
| KR20150083730A (en) | Method for copying contents in a computing device, method for pasting contents in a computing device, and the computing device | |
| CN104007924A (en) | Method and apparatus for operating object in user device | |
| JP2019505024A (en) | Touch-sensitive surface-interaction method and apparatus with gesture control by display | |
| KR101447886B1 (en) | Method and apparatus for selecting contents through a touch-screen display | |
| US20120169621A1 (en) | Multi-Touch Integrated Desktop Environment | |
| JP5977764B2 (en) | Information input system and information input method using extended key |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |