CN102662558A - Method, device and electronic equipment of character selecting - Google Patents

Method, device and electronic equipment of character selecting Download PDF

Info

Publication number
CN102662558A
CN102662558A CN 201210064751 CN201210064751A CN102662558A CN 102662558 A CN102662558 A CN 102662558A CN 201210064751 CN201210064751 CN 201210064751 CN 201210064751 A CN201210064751 A CN 201210064751A CN 102662558 A CN102662558 A CN 102662558A
Authority
CN
China
Prior art keywords
selected
text
operation
character
according
Prior art date
Application number
CN 201210064751
Other languages
Chinese (zh)
Other versions
CN102662558B (en
Inventor
吴启军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to CN201210064751.0A priority Critical patent/CN102662558B/en
Publication of CN102662558A publication Critical patent/CN102662558A/en
Application granted granted Critical
Publication of CN102662558B publication Critical patent/CN102662558B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The invention discloses a method, a device and electronic equipment of character selecting, which solve the problem of character selecting before the electronic equipment carries out batch operation on characters. The character selecting method comprises: acquiring touching operation of an operator in an edit box, wherein the touching operation is detected by a touch sensing unit and comprises at least sliding operation; obtaining an initial coordinate and a destination coordinate of the sliding operation; calculating a selected area of the sliding operation according to the initial coordinate and the destination coordinate; and determining selected characters of the sliding operation according to the selected area. The method, the device and the electronic equipment of character selecting provided in the invention simplify the operation processes of character selecting, make the electronic equipment more intelligent in batch operation of characters, and improve user experience.

Description

文字选中方法与装置及电子设备 Select Text method and apparatus and an electronic device

技术领域 FIELD

[0001] 本发明涉及电子设备应用领域,涉及ー种文字选中方法,更具体的涉及ー种文字选中方法与装置及电子设备。 [0001] The present invention relates to an electronic device applications, it relates to a method selected ー languages, and more particularly relates ー languages ​​selected method and apparatus and an electronic device.

背景技术 Background technique

[0002] 随着通讯技术的发展,智能手机及电子设备已经开始普及。 [0002] With the development of communication technology, smart phones and electronic equipment has begun to spread. 伴随着智能时代的到来,简单、方便成为智能終端追求的主题,因此,智能化和操作简单化的終端会更能吸引用户的眼球。 With the advent of the era of smart, simple, easy to become intelligent terminal pursuit of the theme, therefore, intelligence and operational simplicity of the terminal will be more attractive to the user's eye.

[0003]目前几乎所有的智能終端都支持长按编辑框,从弹出的菜单中选中所要想选中的文字或者通过双击编辑框选中所需要选中的文字,然而这些操作方法对智能设备而言,操作都比较复杂,用户操作都极其不便。 [0003] Currently, almost all intelligent terminals support long press the edit box, in order to select the selected text from the pop-up menu, or by double-clicking the edit box is checked need to select the text, but these methods of operation for smart devices, operating are more complex, user operations are extremely inconvenient.

[0004] 因此,现有技术中存在电子设备对文字选中的操作不简便的问题,而对于该问题,目前尚未提出理想的解决方案。 [0004] Thus, the prior art electronic equipment operating on the selected text is not a simple problem, and for the issue, has not yet put forward the ideal solution.

发明内容 SUMMARY

[0005] 本发明公开ー种文字选中方法与装置及电子设备,用于解决现有技术中存在的电子设备对文字选中的操作不简便的问题。 [0005] Publication ー languages ​​selected method and apparatus and an electronic apparatus for solving the prior art electronic devices are not easy to operate the selected text by the present invention.

[0006] 为实现上述目的,根据本发明的ー个方面,提供ー种文字选中方法,并采用以下技术方案: [0006] To achieve the above object, according to the present invention ー aspect, there is provided a method selected ー languages, and the following technical scheme:

[0007] 文字选中方法,应用于电子设备,所述电子设备包括触摸感应单元,所述触摸感应単元用于检测操作体的触摸操作,所述文字选中方法包括:获取所述触摸感应单元检测操作体在编辑框内的触摸操作,所述触摸操作至少包括滑动操作;获取所述滑动操作的起始坐标和终点坐标;根据所述起始坐标和所述终点坐标计算所述滑动操作所选中的区域;以及根据所述选中的区域确定所述滑动操作所选中的文字。 [0007] The text selected method, applied to an electronic device, the electronic device includes a touch sensing unit, the touch sensing element for radiolabeling touch operation detection operation member, the character selected method comprising: obtaining the touch sensing unit detecting operation operating body touching the edit box, the touch operation includes at least a sliding operation; to obtain the starting point and end point of the slide operation; selected according to the start coordinates and the end point of the slide operation coordinate calculation region; and the selected region is determined according to the sliding operation of the selected text.

[0008] 进ー步地,在所述获取所述滑动操作的起始坐标和終点坐标之前,所述文字选中方法还包括:判断所述触摸操作是否为所述滑动操作,并得到第一判断结果;在所述第一判断结果为所述触摸操作为所述滑动操作时,执行所述获取所述滑动操作的起始坐标和终点坐标。 [0008] The intake ー step, prior to the obtaining start coordinate and end point of the slide operation, the selected character further comprises: determining whether the touch operation to the sliding operation, and a first determined to give result; when the first determination result to the touch operation to the sliding operation, performing the obtaining start coordinate and end point of the slide operation.

[0009] 进ー步地,所述获取所述滑动操作的起始坐标和終点坐标包括:记录所述操作体执行所述滑动操作的所述起始坐标与起始时间;在所述起始时间后每隔预设时间均查询所述操作体在所述编辑框上的坐标;以及将所述操作体离开所述编辑框时在所述编辑框上的坐标记录为所述终点坐标。 [0009] Step ー feed, the obtaining start coordinate and end point of the slide operation comprises: performing said recording operation slide member operation starting time of the start coordinate; in the starting after the predetermined time intervals each time the operating body coordinate query on the edit box; and when the operating member away from the edit box coordinates recorded in the edit box as the end point coordinate.

[0010] 进ー步地,所述根据所述起始坐标和所述终点坐标计算所述滑动操作所选中的区域包括:根据所述起始坐标和所述终点坐标计算所述滑动操作所滑过的水平宽度和垂直高度;根据所述水平宽度和所述垂直高度确定所述滑动操作所选中的区域。 [0010] ー synchronously into the calculation of the sliding region including the selected operation according to the start coordinates and the end point coordinate: calculated according to the slide and the start coordinate of the end point coordinate operation slip through the horizontal width and vertical height; according to the horizontal width and the vertical height of the sliding operation determined by the selected area.

[0011] 进ー步地,所述根据所述选中的区域确定所述滑动操作所选中的文字包括:获取、所述编辑框的第一參数,所述第一參数包括所述编辑框的宽度;获取所述文字的第二參数,所述第二參数包括每行文字的行高,所述编辑框内文字的行数以及字符的宽度;获取所述选中的区域的第三參数,所述第三參数包括所述选中的区域的长度和宽度;根据所述第一參数、所述第二參数以及所述第三參数计算所述选中的区域所对应的所述选中的文字。 [0011] Step ー feed, the determining of the sliding operation according to the selected text of the selected area comprising: obtaining a first parameter edit boxes, the first parameter comprises the edit box third acquisition of the selected region; width; obtaining the second character parameter, the second parameter comprises a row height of each line of text, the number of lines of the width of the edit box and text characters parameter, the third parameter comprises the length and width of the selected region; corresponding to the first parameter, the second parameter and the third parameter calculating region of the selected the selected text.

[0012] 进ー步地,在所述触摸感应单元检测操作体在编辑框内的触摸操作之后,所述文字选中方法还包括:判断所述编辑框内的文字是否有文字已经处于选中状态,并得到第二判断結果;在所述第二判断结果为所述编辑框内的有文字已经处于选中状态时,则取消所述文字的选中状态。 [0012] ー into synchronism, a touch operation after the touch sensing unit detecting operation in the edit box member, the method further check character comprises: determining whether the text box with the text editing has been selected, and obtain a second determination result; in the second determination result is that the text when editing box has been selected, then the character is deselected.

[0013] 进ー步地,在所述判断所述编辑框内的文字是否有文字已经处于选中状态之前,所述文字选中方法还包括:判断所述编辑框是否处于聚焦状态,并得到第三判断结果;在所述第三判断结果为所述编辑框处于所述聚焦状态时,执行所述判断所述编辑框内的文字是否有文字已经处于选中状态。 [0013] ー into synchronism, prior to said determining whether the text box with the text editing has been selected, the selected character further comprises: determining whether the edit box is in focus, and to obtain a third determination result; when the third determination result is that the focus state is in the editing box, the edit box to perform the determination whether a text character has been selected.

[0014] 进ー步地,在所述根据所述选中的区域确定所述滑动操作选中的文字之后,所述文字选中方法还包括:将所述选中的文字的状态变量设置为选中,并且将所述选中的文字用闻売显不。 [0014] ー into synchronism, after the determining of the sliding operation according to the selected text of the selected region, said method further comprising selected character: the state of the selected variable is set to the selected text, and the selected text with no noticeable smell bai.

[0015] 根据本发明的另外ー个方面,提供ー种文字选中装置,并采用以下技术方案: [0015] The present invention further ー aspect, there is provided ー languages ​​selection means, and in accordance with the following technical solutions:

[0016] 文字选中装置,应用于电子设备,所述电子设备包括触摸感应单元,所述触摸感应単元用于检测操作体的触摸操作,所述文字选中装置包括:第一获取模块,用于获取所述触摸感应单元检测操作体在编辑框内的触摸操作,所述触摸操作至少包括滑动操作;获取模块,用于获取所述滑动操作的起始坐标和終点坐标;计算模块,用于根据所述起始坐标和所述终点坐标计算所述滑动操作所选中的区域;以及确定模块,用于根据所述选中的区域确定所述滑动操作所选中的文字。 [0016] The text selection means, applied to an electronic device, the electronic device includes a touch sensing unit, the touch sensing element for radiolabeling touch operation detection operation member, the character selection means comprises: a first acquiring module, for acquiring the touch sensing unit detects operation of the operating body touching the edit box, the touch operation includes at least a sliding operation; obtaining module, configured to obtain the sliding operation starting point and end point; calculating module, according to the said start coordinate and the end point coordinate calculating the sliding operation of the selected area; and determining means for determining the sliding operation according to the selected text of the selected region.

[0017] 进ー步地,文字选中装置还包括:第一判断模块,用于判断所述触摸操作是否为所述滑动操作,并得到第一判断结果;执行模块,用于在所述第一判断结果为所述触摸操作为所述滑动操作时,执行所述获取所述滑动操作的起始坐标和終点坐标。 [0017] Step ー feed, the character selection means further comprises: a first determining module, configured to judge whether the touch operation to the sliding operation, and to obtain a first judgment result; execution module, for the first judges that the touch operation to the sliding operation, the sliding operation performed obtaining the starting point and end point.

[0018] 进ー步地,文字选中装置还包括:第二判断模块,用于判断所述编辑框内的文字是否有文字已经处于选中状态,并得到第二判断結果;取消模块,用于在所述第二判断结果为所述编辑框内的有文字已经处于选中状态时,则取消所述文字的选中状态。 [0018] Step ー feed, the character selection means further comprising: determining whether a second module, configured to determine the text box with the text editing has been selected, and to obtain a second determination result; canceling module, for when the second determination result has been the editing text box is selected, then canceling the selected character.

[0019] 进ー步地,文字选中装置还包括:设置模块,用于将所述选中的文字的状态变量设置为选中,并且将所述选中的文字用高亮显示。 [0019] Step ー feed, the character selection means further comprising: a setting module, for converting the selected text is set to the selected state variable, and the display of the selected text is highlighted.

[0020] 根据本发明的又ー个方面,提供ー种电子设备,并采用以下技术方案: [0020] According to the present invention ー further aspect, there is provided ー electronic equipment, and the following technical scheme:

[0021] 电子设备包括上述的文字选中装置。 [0021] electronic device comprising the above-described character selection means.

[0022] 本发明通过检测操作体的滑动操作,将滑动操作对应区域的文字选中,简化了文字选中的操作,而且,克服了以前只能选中特定个数的文字的缺陷,让用户随心所欲的选中任意个数的文字,然后进行批量的文字操作,如删除,复制等等,提高了用户的用户体验。 [0022] The present invention, by detecting the slide operation of the operation member, the sliding operation corresponding to the character area is selected, the selected character is simplified operation, but also to overcome the previously selected text only a specific number of defects, allowing users to select arbitrary text operate any number of characters, then the batch, such as deleting, copying, etc., to improve the user experience for the user.

[0023] 除了上面所描述的目的、特征和优点之外,本发明还有其它的目的、特征和优点。 [0023] In addition to the above-described objects, features and advantages of the present invention as well as other objects, features and advantages. 下面将參照图,对本发明作进ー步详细的说明。 Below with reference to FIG ー The invention further into detail.

附图说明[0024] 附图用来提供对本发明的进ー步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。 BRIEF DESCRIPTION [0024] The drawings provide a further understanding of the intake ー present invention, constitute a part of this application, exemplary embodiments of the present invention are used to explain the present invention without unduly limiting the present invention. 在附图中: In the drawings:

[0025] 图I表示本发明实施例一所述的文字选中方法的流程图; [0025] Figure I a flowchart illustrating a method of writing a selected embodiment of the present invention;

[0026] 图2表示本发明实施例ニ所述的文字选中方法的流程图; [0027] 图3表示本发明实施例所述的文字选中方法具体流程图;以及 [0026] FIG. 2 shows a flowchart of a method according to the selected character ni embodiment of the present invention; [0027] FIG. 3 shows a method of text selected in the embodiment of the present invention, a detailed flowchart; and

[0028] 图4表示本发明实施例所述的文字选中装置主要结构示意图。 [0028] FIG 4 shows a main configuration diagram illustrating an apparatus embodiment described in the text of the present invention is selected.

具体实施方式 Detailed ways

[0029] 以下结合附图对本发明的实施例进行详细说明,但是本发明可以由权利要求限定和覆盖的多种不同方式实施。 [0029] The following embodiments in conjunction with the accompanying drawings of embodiments of the present invention will be described in detail, but the present invention can be defined by the claims, and many different embodiments of cover.

[0030] 图I表示本发明实施例一所述的文字选中方法的主要流程图。 [0030] FIG selected character I denotes a main flowchart of a method according to embodiments of the invention.

[0031] 參见图I所示,文字选中方法主要包括: [0031] Referring to FIG I, the text selected method comprises:

[0032] SlOl :获取所述触摸感应单元检测操作体在编辑框内的触摸操作,所述触摸操作至少包括滑动操作; [0032] SlOl: obtaining the touch sensing unit detects operation of the operating body touching the edit box, the touch operation includes at least a sliding operation;

[0033] S103 :获取所述滑动操作的起始坐标和終点坐标; [0033] S103: acquiring the slide operation starting point and end point;

[0034] S105 :根据所述起始坐标和所述终点坐标计算所述滑动操作所选中的区域;以及 [0034] S105: calculating the area of ​​the selected slide operation according to the start coordinates and the end coordinates; and

[0035] S107 :根据所述选中的区域确定所述滑动操作所选中的文字。 [0035] S107: determining the slide operation according to the selected text of the selected region.

[0036] 上述实施例的技术方案以手机触摸屏为例,在原有文本框的软件接ロ的基础上进行修改,增加滑动选中的方法,去掉在编辑框中长按弹出的menu菜单中的选择文字和全选的菜单,去掉双击选择文字的功能,保留双击选中所有文字的功能,并增加对按键事件的处理,在用户需要对手机屏幕上的文字进行批量操作时,用户可以在触摸屏上用手指滑过需要选中的文字,手机的触摸感应单元在检测到用户在编辑框内的上述操作后,获取用户滑动操作的起始坐标和終点坐标,根据传入的起始坐标和終点坐标,计算选中的区域,再根据编辑框的高度、宽度,文字的宽度和行高,计算出应该选中哪些文字如果终点坐标超过最后一个字符的坐标,则选中起始坐标到最后ー个字符之间的所有文字;如果终点坐标小于编辑框的起始坐标,则选中传入的起始位置到编 [0036] The technical solution of the embodiment described above the touch screen to the mobile phone as an example, be modified in the original text box on the software interface ro, a method of increasing the selected slide, removing long edit box pop-up menu by the menu selection in the text and select All menu, remove the double-click the selected text function to retain double-click to select all the text features and adds handling of key events, when the user needs to text on the phone screen batch operation, the user can use a finger on the touch screen slides need to select text, phone touch sensing unit upon detecting that the user of the operation in the edit box, to obtain the starting point and end coordinates of the user's slide operation according to the incoming starting point and end point, select calculated area, then edit box according to the height, width, line height and character width is calculated which text should be selected if the coordinates of the end point coordinates than the last character, the start coordinate to select all text between the last ー characters ; If the end point coordinate is less than the start coordinates of the edit box, the starting location to the selected incoming ed 框的起始坐标中的所有文字。 All the text box in the starting coordinates.

[0037] 图2表示本发明实施例ニ所述的文字选中方法的流程图。 [0037] FIG. 2 shows a flowchart of a method according to the selected character ni embodiment of the present invention.

[0038] 与实施ー的不同的是,在本实施给出了文字选中方法内部实现与屏幕界面的对应关系图,本实施例同样以手机触摸屏为例。 [0038] ー the embodiment is different from that given in the present embodiment to achieve an internal character corresponding to the selected method diagram screen interface, a touch screen embodiment similar to the mobile phone as an example of the present embodiment.

[0039] 參见图2所示,文字选中方法包括: [0039] Referring to FIG., The method 2 is selected text comprising:

[0040] 截获滑动的触摸事件; [0040] intercepted by a sliding touch event;

[0041] 计算应选中的文字宽度; [0041] The character width is calculated to be selected;

[0042] 高亮选中的区域。 [0042] highlight of the area.

[0043] 在截获滑动的触摸事件的步骤中,手机触摸屏处于编辑界面,用户在手机触摸屏上滑动的触摸事件被截获后,即获取滑动的起始坐标和終点坐标,根据滑动的起始坐标和終点坐标计算应选中的文字宽度,这个过程进行时,手机触摸屏给出的是逻辑处理界面,例如给出ー个逻辑处理的标识,告知用户稍作等待,在确定选中的文字之后,高亮选中的区域,这时手机显示屏的界面进行更新。 [0043] In the step of intercepting touch event sliding, the mobile phone touch screen in the editing interface, the user slides on the mobile phone touch screen touch event is intercepted, i.e., obtaining the slide starting point and end point, depending on the starting coordinates slidable and end point coordinate calculation should be selected character width, when the process, mobile phone touch screen interface logic is given, for example, processing logic identifies ー given to inform the user to wait a little, after determining the selected text, highlight the area of ​​the display when the phone interface is updated.

[0044] 通过本实施例的上述技术方案,可以看出,对于用户来说,滑动选中文字操作简单,界面给出ー个逻辑处理过程即可更新,提高了用户的用户体验。 [0044] Through the above technical solution of the present embodiment, it can be seen, for the user to select the text slide simple, given ー interface logic process to update and improve the user experience of the user.

[0045] 图3表示本发明实施例所述的文字选中方法具体流程图。 [0045] FIG. 3 shows a method of text selected in the embodiment of the present invention, a detailed flowchart.

[0046] 參见图3所示,文字选中方法具体包括: [0046] Referring to FIG., The method 3 is selected text comprises:

[0047] 步骤301 :去掉menu菜单选中文字的功能; [0047] Step 301: remove the selected menu text menu function;

[0048] 本步骤是在原有的文字选中的基础上做修改,将通过长按按钮从编辑框中弹出的菜单中,去掉双击选择文字的功能,保留双击选中所有文字的功能,并且增加对按键事件的处理。 [0048] The present step is to make changes in the original text of the selected, by pressing the button from the edit box pop-up menu, select the text to remove the double-click function, select all text retains double-click function key and increased handling events.

[0049] 步骤302 :截获按键事件; [0050] 步骤303 :判断是否为滑动触摸事件,若是,执行步骤304,若否,返回执行步骤302 ; [0049] Step 302: intercepting key event; [0050] Step 303: determining whether the sliding touch event, if yes, perform step 304, if not, returns to step 302;

[0051] 滑动触摸事件为智能終端可以识别的事件,判断是否为滑动触摸事件属于本领域的常用手段,此处不做多余的阐述。 [0051] The sliding touch event as a smart terminal may identify the event, it determines whether a touch event belongs slidably common means in the art, the excess is not described here.

[0052] 步骤304 :记录起始坐标,姆隔特定时间(如100ms)查询一次终点坐标,并启动滑动选中算法。 [0052] Step 304: the recording start coordinates, Farm a specific time interval (e.g. 100ms) queries the end point coordinates, and start sliding check algorithm.

[0053] 在本步骤中,记录滑动操作的起始坐标与終点坐标,用于确定滑动操作所滑过的区域。 [0053] In this step, the recording start coordinates and end coordinates of the sliding operation, the sliding operation for determining the area of ​​the slides.

[0054] 步骤305 :判断当前編辑框是否有文字已处于选中状态,若是,去除选中状态,重新执行步骤305,若否执行步骤306 ; [0054] Step 305: determining whether the current text editing box has been selected, and if so, remove the selected state, step 305 is executed again, and if not step 306 is performed;

[0055] 在文字选中方法中,先判断当前编辑框是否处于聚焦状态和编辑状态,如果不是,则直接返回,否则,则判断当前的编辑框的文字是否已经处于选中状态,如果是,则去除选中,重新执行步骤305,否则,执行选中的方法,进入步骤306。 [0055] In the text selected method, first determine the current edit box is in focus and the edit mode, and if not, return directly, otherwise, it is determined whether the current edit box text has been selected, and if so, remove select again to step 305, otherwise, select the method of execution, the process proceeds to step 306.

[0056] 具体而言,判断当前编辑框的文字是不是已经有文字处于选中状态,是用ー个状态变量进行记录的,处于选中状态,该值为true,否则为false,如果当前的编辑框已有文字处于被选中的状态,则去除选中,将标志是否选中的状态变量置为false,将选中的高亮区域去除闻売。 [0056] Specifically, whether the current text edit box is not already have text is selected, the recording is performed with ー state variable, is selected, the value is true, otherwise false, if the current edit box existing text in the selected state, then remove the check, the check mark whether the state variable is set to false, highlight the selected area to remove the smell bai.

[0057] 步骤306 :根据编辑框的宽度,文字的宽度,行高,滑动的起始坐标和終点坐标,计算应选中的文字的宽度。 [0057] Step 306: The width, line height, starting point and end point of the edit box sliding width, the text, the selected text to be calculated width.

[0058] 根据步骤304传过来的按键的起始坐标和終点坐标,计算滑动的水平宽度和垂直高度,计算滑过的字符个数和行数,如果滑动的水平宽度超过字符宽度的N. 5倍,小于N+1倍,则认为选中字符的宽度是N+1个字符的宽度;如果大于N倍,小于N. 5,则认为选中字符的宽度是N。 [0058] According to the starting point and end point in step 304 pass over the keys, the calculation of a sliding horizontal width and vertical height, count the number of characters and lines of the slides, the slide if the horizontal width than the width of the character N. 5 times less than N + 1 times, the selected character width that is the width of the N + 1 characters; if more than N times, is less than N.. 5, the width of the selected character that is N. (其中N为正整数),如果滑动的終点坐标大于当前框文字结束位置的坐标,则以当前框文字结束位置的坐标当做滑动的终点坐标,接下来将选中文字的宽度和行数传给刷新界面的方法,进入步骤307,刷新当前的界面。 (Where N is a positive integer), the coordinates of the end point if the slide is greater than the current position coordinates of the end character frame, places the coordinates of the current block of text as the end point coordinates of the end position of the slide, and the number of the selected width of the line of text passed to the next refresh interface method proceeds to step 307, to refresh the current interface.

[0059] 步骤307 :高亮选中文字,刷新界面。 [0059] Step 307: highlight text, refresh the screen.

[0060] 根据步骤306传过来的选中文字的宽度和行数刷新界面,高亮被选中的区域。 [0060] The refresh of the screen, highlighting the selected area in accordance with step 306 the number of transmission over the selected text and line width.

[0061] 将标志文字是否选中的状态变量置true,同时,将选中的区域高亮。 [0061] will mark the text that you selected state variable is set true, at the same time, the selected area is highlighted.

[0062] 图4表示本发明实施例所述的文字选中装置主要结构示意图。 [0062] FIG 4 shows a main configuration diagram illustrating an apparatus embodiment described in the text of the present invention is selected.

[0063] 文字选中装置,应用于电子设备,所述电子设备包括触摸感应单元,所述触摸感应単元用于检测操作体的触摸操作,所述文字选中装置包括:第一获取模块40,用于获取所述触摸感应单元检测操作体在编辑框内的触摸操作,所述触摸操作至少包括滑动操作;第ニ获取模块42,用于获取所述滑动操作的起始坐标和終点坐标;计算模块44,用于根据所述起始坐标和所述终点坐标计算所述滑动操作所选中的区域;以及确定模块46,用于根据所述选中的区域确定所述滑动操作所选中的文字。 [0063] The text selection means, applied to an electronic device, the electronic device includes a touch sensing unit, the touch sensing radiolabeling element for detecting a touch operation of the operation member, the character selection means includes: a first acquisition module 40, for obtaining a touch operation of the touch sensing unit detecting operation in the edit box body, the touch operation includes at least a sliding operation; ni first acquisition module 42, configured to obtain the starting point and end point of the slide operation; calculating module 44 , the sliding operation for calculating the selected area according to the start coordinates and the end coordinates; and a determination module 46 for determining the sliding operation according to the selected text of the selected region.

[0064] 可选地,文字选中装置还包括:第一判断模块(图中未示),用于判断所述触摸操作是否为所述滑动操作,并得到第一判断結果;执行模块,用于在所述第一判断结果为所述触摸操作为所述滑动操作时,执行所述获取所述滑动操作的起始坐标和终点坐标。 [0064] Alternatively, the text selection means further comprises: a first determining module (not shown), for determining whether the touch operation to the sliding operation, and to obtain a first judgment result; execution module, for in the first determination result to the touch operation when the slide operation is performed obtaining the starting point and end point of the slide operation.

[0065] 可选地,文字选中装置还包括:第二判断模块(图中未示),用于判断所述编辑框内的文字是否有文字已经处于选中状态,并得到第二判断结果;取消模块,用于在所述第二判断结果为所述编辑框内的有文字已经处于选中状态时,则取消所述文字的选中状态。 [0065] Alternatively, the text selection means further comprises: a second determining module (not shown), for determining whether the text edit box with the text has been selected, and to obtain a second determination result; Cancel means for the second determination result when the text editing box has been selected, then canceling the selected character.

[0066] 可选地,文字选中装置还包括:设置模块(图中未示),用于将所述选中的文字的状态变量设置为选中,并且将所述选中的文字用高亮显示。 [0066] Alternatively, the text selection means further comprises: a setting module (not shown), for the state variables of the selected character set is selected, and the selected text is highlighted display.

[0067] 电子设备包括上述的文字选中装置。 [0067] electronic device comprising the above-described character selection means.

[0068] 本发明通过检测操作体的滑动操作,将滑动操作对应区域的文字选中,简化了文字选中的操作,而且,让用户随心所欲的选中任意个数的文字,然后进行批量的文字操作, 如删除,复制等等,提闻了用户的用户体验。 [0068] The present invention, by detecting the slide operation of the operation member, the sliding operation corresponding to the character area is selected, the selected operation is simplified text, and the text by any number of arbitrary selected by the user, then the text batch operations, such as delete, copy, etc., to mention smell the user's user experience.

Claims (13)

1. ー种文字选中方法,应用于电子设备,所述电子设备包括触摸感应单元,所述触摸感应单元用于检测操作体的触摸操作,其特征在于,所述文字选中方法包括: 获取所述触摸感应单元检测操作体在编辑框内的触摸操作,所述触摸操作至少包括滑动操作; 获取所述滑动操作的起始坐标和终点坐标; 根据所述起始坐标和所述终点坐标计算所述滑动操作所选中的区域;以及根据所述选中的区域确定所述滑动操作所选中的文字。 1. ー languages ​​selected method, applied to an electronic device, the electronic device includes a touch sensing unit, the touch sensing unit for detecting a touch operation of the operation member, wherein said character selected method comprising: obtaining the the touch sensing unit detects operation of the touch operation member in the edit box, the touch operation includes at least a sliding operation; to obtain the starting point and end point of the slide operation; calculated according to the start coordinates and the coordinates of the end point the sliding operation of the selected area; and the selected region is determined according to the sliding operation of the selected text.
2.如权利要求I所述的文字选中方法,其特征在于,在所述获取所述滑动操作的起始坐标和终点坐标之前,所述文字选中方法还包括: 判断所述触摸操作是否为所述滑动操作,并得到第一判断结果; 在所述第一判断结果为所述触摸操作为所述滑动操作时,执行所述获取所述滑动操作的起始坐标和终点坐标。 2. The method selected text according to claim I, wherein, before obtaining the starting point and end point of the slide operation, the selected character further comprises: determining whether the touch operation of the said sliding operation, and to obtain a first judgment result; when the touch operation to the sliding operation, performing the obtaining start coordinate and end point of the slide operation in the first determination result.
3.如权利要求2或3所述的文字选中方法,其特征在于,所述获取所述滑动操作的起始坐标和终点坐标包括: 记录所述操作体执行所述滑动操作的所述起始坐标与起始时间; 在所述起始时间后每隔预设时间均查询所述操作体在所述编辑框上的坐标;以及将所述操作体离开所述编辑框时在所述编辑框上的坐标记录为所述終点坐标。 3. Select Text 2 or claim 3, characterized in that, the obtaining start coordinate and end point of the slide operation comprises: recording the operating body performing the sliding operation of the starting coordinates and starting time; start time after said predetermined time intervals are coordinate query on the body frame of the editing operation; and away from the operating body when the edit box at the edit box recording the coordinates of the end point coordinates.
4.如权利要求I所述的文字选中方法,其特征在于,所述根据所述起始坐标和所述终点坐标计算所述滑动操作所选中的区域包括: 根据所述起始坐标和所述终点坐标计算所述滑动操作所滑过的水平宽度和垂直高度; 根据所述水平宽度和所述垂直高度确定所述滑动操作所选中的区域。 4. The method selected text according to claim I, wherein said calculating the sliding operation includes the selected region according to the start coordinates and the end point coordinates: The coordinates of the starting and the the end point coordinate calculation horizontal width and vertical height of the sliding operation of the slip; determining the height of the slide operation according to the selected region of the vertical and the horizontal width.
5.如权利要求4所述的文字选中方法,其特征在于,所述根据所述选中的区域确定所述滑动操作所选中的文字包括: 获取所述编辑框的第一參数,所述第一參数包括所述编辑框的宽度; 获取所述文字的第二參数,所述第二參数包括每行文字的行高,所述编辑框内文字的行数以及字符的宽度; 获取所述选中的区域的第三參数,所述第三參数包括所述选中的区域的长度和宽度;根据所述第一參数、所述第二參数以及所述第三參数计算所述选中的区域所对应的所述选中的文字。 5. The text of the selected method of claim 4, wherein the determining of the sliding operation according to the selected text of the selected area comprising: acquiring a first parameter in the edit box, the second parameters including a width of the frame of the editing; the second parameter acquisition character, the second parameter comprises a high line of text in each line, the width of the text edit box and the number of lines of characters; Get a third region of the selected parameter, the third parameter comprises the length and width of the selected region; the first parameter, the second parameter and the third parameter calculating corresponding to the selected region of the selected text.
6.如权利要求I所述的文字选中方法,其特征在于,在所述触摸感应单元检测操作体在编辑框内的触摸操作之后,所述文字选中方法还包括: 判断所述编辑框内的文字是否有文字已经处于选中状态,并得到第二判断结果; 在所述第二判断结果为所述编辑框内的有文字已经处于选中状态时,则取消所述文字的选中状态。 6. The method selected text according to claim I, wherein, in the touch sensing unit detects operation of the operation member after the touch edit box, the text selected method further comprises: determining whether the edit box whether there is text character has been selected, and to obtain a second determination result; edit box when the determination result in the second character has been selected, then the character is deselected.
7.如权利要求6所述的文字选中方法,其特征在干,在所述判断所述编辑框内的文字是否有文字已经处于选中状态之前,所述文字选中方法还包括: 判断所述编辑框是否处于聚焦状态,并得到第三判断结果; 在所述第三判断结果为所述编辑框处于所述聚焦状态时,执行所述判断所述编辑框内的文字是否有文字已经处于选中状态。 7. The method according to the selected text as claimed in claim 6, characterized in that dry, prior to said determining whether the text box with the text editing has been selected, the selected character further comprises: determining whether the editing block is in a focused state, and to obtain a third determination result; when the third determination result to the edit box is in the focus state, determining whether the execution of the text with the text edit box is checked already .
8.如权利要求I所述的文字选中方法,其特征在于,在所述根据所述选中的区域确定所述滑动操作选中的文字之后,所述文字选中方法还包括: 将所述选中的文字的状态变量设置为选中,并且将所述选中的文字用高亮显示。 8. The method selected text according to claim I, wherein the determining based on the selected region after the sliding operation of the selected text, the selected character further comprises: the selected text variable is set to the selected state, and displaying the selected text is highlighted.
9. ー种文字选中装置,应用于电子设备,所述电子设备包括触摸感应单元,所述触摸感应单元用于检测操作体的触摸操作,其特征在于,所述文字选中装置包括: 第一获取模块,用于获取所述触摸感应单元检测操作体在编辑框内的触摸操作,所述触摸操作至少包括滑动操作; 第二获取模块,用于获取所述滑动操作的起始坐标和終点坐标; 计算模块,用于根据所述起始坐标和所述终点坐标计算所述滑动操作所选中的区域;以及确定模块,用于根据所述选中的区域确定所述滑动操作所选中的文字。 9. ー languages ​​selection means, applied to an electronic device, the electronic device includes a touch sensing unit, the touch sensing unit for detecting a touch operation of the operation member, characterized in that said character selection means includes: a first acquiring means for obtaining the touch sensing unit detects operation of the operating body touching the edit box, the touch operation includes at least a sliding operation; and a second acquiring module, for acquiring the starting point and end point of the slide operation; calculating means for calculating the area of ​​the selected slide operation according to the start coordinates and the end coordinates; and determining means for determining the sliding operation according to the selected text of the selected region.
10.如权利要求9所述的文字选中装置,其特征在于,还包括: 第一判断模块,用于判断所述触摸操作是否为所述滑动操作,并得到第一判断結果; 执行模块,用于在所述第一判断结果为所述触摸操作为所述滑动操作时,执行所述获取所述滑动操作的起始坐标和终点坐标。 Execution module, with; a first judging module, configured to judge whether the touch operation to the sliding operation, and the first determination result obtained: 10. The text selection means according to claim 9, characterized in that, further comprising in the first determination result on the touch operation to the sliding operation is performed obtaining the starting point and end point of the slide operation.
11.如权利要求9所述的文字选中装置,其特征在于,还包括: 第二判断模块,用于判断所述编辑框内的文字是否有文字已经处于选中状态,并得到第二判断结果; 取消模块,用于在所述第二判断结果为所述编辑框内的有文字已经处于选中状态时,则取消所述文字的选中状态。 11. The text of the selected apparatus according to claim 9, characterized by further comprising: a second determining module configured to determine whether the text box with the text editing has been selected, and to obtain a second determination result; cancellation module for editing the frame in the second determination result when the character has been selected, then canceling the selected character.
12.如权利要求9所述的文字选中装置,其特征在于,还包括: 设置模块,用于将所述选中的文字的状态变量设置为选中,并且将所述选中的文字用闻売显不O 12. The text of the selected apparatus according to claim 9, characterized in that, further comprising: a setting module, for converting the selected text is set to the selected state variable, and the selected text with no noticeable smell bai O
13. ー种电子设备,其特征在于,包括权利要求9至12中任一项所述的文字选中装置。 13. ー electronic apparatus, characterized in that it comprises 9 to 12 characters of any one of claims selection means.
CN201210064751.0A 2012-03-13 2012-03-13 Word chooses method and apparatus and electronic equipment CN102662558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210064751.0A CN102662558B (en) 2012-03-13 2012-03-13 Word chooses method and apparatus and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210064751.0A CN102662558B (en) 2012-03-13 2012-03-13 Word chooses method and apparatus and electronic equipment
PCT/CN2012/076776 WO2013135010A1 (en) 2012-03-13 2012-06-12 Character selecting method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN102662558A true CN102662558A (en) 2012-09-12
CN102662558B CN102662558B (en) 2018-02-13

Family

ID=46772061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210064751.0A CN102662558B (en) 2012-03-13 2012-03-13 Word chooses method and apparatus and electronic equipment

Country Status (2)

Country Link
CN (1) CN102662558B (en)
WO (1) WO2013135010A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929524A (en) * 2012-09-20 2013-02-13 东莞宇龙通信科技有限公司 Page content selecting method and device
CN103309612A (en) * 2013-05-30 2013-09-18 北京小米科技有限责任公司 Method, device and equipment for processing information of graphic interface text field of mobile equipment
CN103699311A (en) * 2013-12-26 2014-04-02 厦门美图之家科技有限公司 Path-based method of selecting batches of photos in album
CN103713819A (en) * 2013-12-26 2014-04-09 厦门美图之家科技有限公司 Method for rapidly selecting photos in batches from photo album based on sequence
CN103853476A (en) * 2012-12-04 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
CN103885677A (en) * 2014-03-10 2014-06-25 小米科技有限责任公司 Input processing method, input processing device and terminal equipment
CN105068982A (en) * 2015-08-26 2015-11-18 百度在线网络技术(北京)有限公司 Input content modification method and apparatus
CN105094564A (en) * 2015-08-11 2015-11-25 广州视睿电子科技有限公司 Handwriting editing method and system based on touch operation
CN105739859A (en) * 2016-01-25 2016-07-06 广东欧珀移动通信有限公司 Reading marking method and terminal device
CN106354378A (en) * 2015-07-13 2017-01-25 阿里巴巴集团控股有限公司 Method and device for quickly selecting multiple targets
WO2017041588A1 (en) * 2015-09-07 2017-03-16 广州视睿电子科技有限公司 Eraser box range determination method and system
CN108055399A (en) * 2017-12-19 2018-05-18 维沃移动通信有限公司 A kind of text clone method and mobile terminal
CN108055399B (en) * 2017-12-19 2020-01-14 维沃移动通信有限公司 Text copying method and mobile terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006244048A (en) * 2005-03-02 2006-09-14 Nintendo Co Ltd Display mode alteration program and display control device
CN1979399A (en) * 2005-12-09 2007-06-13 英业达股份有限公司 Display processing system and method
CN101266534A (en) * 2008-03-26 2008-09-17 宇龙计算机通信科技(深圳)有限公司 Mobile terminal screen word-selecting method, system and mobile terminal
CN101504585A (en) * 2009-03-09 2009-08-12 广东威创视讯科技股份有限公司 Sliding type input method of touch screen
CN101763217A (en) * 2009-12-15 2010-06-30 中兴通讯股份有限公司 Mobile terminal having moving Chinese input candidate box and implementation method thereof
US20100321319A1 (en) * 2009-06-17 2010-12-23 Hefti Thierry Method for displaying and updating a view of a graphical scene in response to commands via a touch-sensitive device
CN102331907A (en) * 2011-09-13 2012-01-25 中兴通讯股份有限公司 Character deleting method and device for terminal having touch screen, and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006244048A (en) * 2005-03-02 2006-09-14 Nintendo Co Ltd Display mode alteration program and display control device
CN1979399A (en) * 2005-12-09 2007-06-13 英业达股份有限公司 Display processing system and method
CN101266534A (en) * 2008-03-26 2008-09-17 宇龙计算机通信科技(深圳)有限公司 Mobile terminal screen word-selecting method, system and mobile terminal
CN101504585A (en) * 2009-03-09 2009-08-12 广东威创视讯科技股份有限公司 Sliding type input method of touch screen
US20100321319A1 (en) * 2009-06-17 2010-12-23 Hefti Thierry Method for displaying and updating a view of a graphical scene in response to commands via a touch-sensitive device
CN101763217A (en) * 2009-12-15 2010-06-30 中兴通讯股份有限公司 Mobile terminal having moving Chinese input candidate box and implementation method thereof
CN102331907A (en) * 2011-09-13 2012-01-25 中兴通讯股份有限公司 Character deleting method and device for terminal having touch screen, and terminal

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929524B (en) * 2012-09-20 2016-05-04 东莞宇龙通信科技有限公司 A kind of choosing method of content of pages and device
CN102929524A (en) * 2012-09-20 2013-02-13 东莞宇龙通信科技有限公司 Page content selecting method and device
CN103853476A (en) * 2012-12-04 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
CN103309612A (en) * 2013-05-30 2013-09-18 北京小米科技有限责任公司 Method, device and equipment for processing information of graphic interface text field of mobile equipment
CN103713819A (en) * 2013-12-26 2014-04-09 厦门美图之家科技有限公司 Method for rapidly selecting photos in batches from photo album based on sequence
CN103699311A (en) * 2013-12-26 2014-04-02 厦门美图之家科技有限公司 Path-based method of selecting batches of photos in album
CN103885677A (en) * 2014-03-10 2014-06-25 小米科技有限责任公司 Input processing method, input processing device and terminal equipment
CN103885677B (en) * 2014-03-10 2017-03-15 小米科技有限责任公司 input processing method, device and terminal device
CN106354378B (en) * 2015-07-13 2019-11-15 阿里巴巴集团控股有限公司 A kind of method and apparatus for quickly choosing multiple targets
CN106354378A (en) * 2015-07-13 2017-01-25 阿里巴巴集团控股有限公司 Method and device for quickly selecting multiple targets
CN105094564A (en) * 2015-08-11 2015-11-25 广州视睿电子科技有限公司 Handwriting editing method and system based on touch operation
WO2017024929A1 (en) * 2015-08-11 2017-02-16 广州视睿电子科技有限公司 Handwriting editing method and system based on touch operation
CN105068982A (en) * 2015-08-26 2015-11-18 百度在线网络技术(北京)有限公司 Input content modification method and apparatus
WO2017041588A1 (en) * 2015-09-07 2017-03-16 广州视睿电子科技有限公司 Eraser box range determination method and system
CN105739859A (en) * 2016-01-25 2016-07-06 广东欧珀移动通信有限公司 Reading marking method and terminal device
CN108055399A (en) * 2017-12-19 2018-05-18 维沃移动通信有限公司 A kind of text clone method and mobile terminal
CN108055399B (en) * 2017-12-19 2020-01-14 维沃移动通信有限公司 Text copying method and mobile terminal

Also Published As

Publication number Publication date
CN102662558B (en) 2018-02-13
WO2013135010A1 (en) 2013-09-19

Similar Documents

Publication Publication Date Title
EP2680257B1 (en) Mobile terminal and method for recognizing voice thereof
EP2854380B1 (en) Method for quickly operating file of smart phone and smart phone
US9811349B2 (en) Displaying operations performed by multiple users
US9626094B2 (en) Communication device and electronic device
KR20090066368A (en) Portable terminal having touch screen and method for performing function thereof
CN104063164B (en) The method and device of screen control
US20160202834A1 (en) Unlocking method and terminal device using the same
WO2013159431A1 (en) Method and device for operating touchscreen
CN102955671A (en) Terminal and method for executing application using touchscreen
CN103809888A (en) Mobile terminal and manipulation method thereof
CN102129311A (en) Nformation processing device, operation input method and operation input program
WO2014032431A1 (en) Terminal device and method for quickly starting program
US9696767B2 (en) Command recognition method including determining a hold gesture and electronic device using the method
CN102306080A (en) Touch electronic device and icon moving method
CN101907974A (en) Operation management method of touch screen and touch screen terminal
CN102043587A (en) Touch screen unlocking method and mobile terminal
WO2014119967A1 (en) Page search method and electronic device supporting the same
KR20150022003A (en) Terminal and interface operation management method
CN103279295A (en) Method and device for terminal desktop icon switching
US9007314B2 (en) Method for touch processing and mobile terminal
CN102221957B (en) Electronic equipment and operation control method thereof
US10146407B2 (en) Physical object detection and touchscreen interaction
EP2407972B1 (en) Method for photo editing and mobile terminal using this method
KR20140094384A (en) Mobile terminal and control method thereof
EP2854372A1 (en) Method and device for displaying pushed information

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant