Movatterモバイル変換


[0]ホーム

URL:


CN105117159B - A kind of character processing method and terminal - Google Patents

A kind of character processing method and terminal
Download PDF

Info

Publication number
CN105117159B
CN105117159BCN201510542490.2ACN201510542490ACN105117159BCN 105117159 BCN105117159 BCN 105117159BCN 201510542490 ACN201510542490 ACN 201510542490ACN 105117159 BCN105117159 BCN 105117159B
Authority
CN
China
Prior art keywords
displayed
screen
area
pressing operation
editing
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.)
Expired - Fee Related
Application number
CN201510542490.2A
Other languages
Chinese (zh)
Other versions
CN105117159A (en
Inventor
王作鹏
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510542490.2ApriorityCriticalpatent/CN105117159B/en
Publication of CN105117159ApublicationCriticalpatent/CN105117159A/en
Application grantedgrantedCritical
Publication of CN105117159BpublicationCriticalpatent/CN105117159B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种字符处理方法及终端,其中的方法包括:接收针对待上屏编辑区域输入的按压操作,所述待上屏编辑区域中显示有待上屏字符;检测所述按压操作的压力值,判断所述按压操作的压力值是否大于预设压力阈值;若是,检测针对所述待上屏编辑区域输入的滑动操作,检测所述滑动操作的目标滑动轨迹;根据预置的滑动轨迹与字符编辑指令的对应关系,查找所述目标滑动轨迹所对应的目标字符编辑指令;针对所述待上屏编辑区域中显示的所述待上屏字符执行查找到的所述目标字符编辑指令。采用本发明,提高了终端对待上屏字符的处理效率。

The embodiment of the present invention discloses a character processing method and a terminal, wherein the method includes: receiving a press operation inputted for an editing area to be uploaded, wherein characters to be screened are displayed in the edit area to be screened; detecting the press operation to determine whether the pressure value of the pressing operation is greater than the preset pressure threshold; if so, detect the sliding operation input for the editing area to be uploaded, and detect the target sliding track of the sliding operation; according to the preset sliding The corresponding relationship between the trajectory and the character editing instruction, searching for the target character editing instruction corresponding to the target sliding track; executing the searched target character editing instruction for the character to be displayed on the screen to be displayed in the screen editing area . By adopting the present invention, the processing efficiency of the terminal to treat characters on the screen is improved.

Description

Translated fromChinese
一种字符处理方法及终端A character processing method and terminal

技术领域technical field

本发明涉及信息处理领域,尤其涉及一种字符处理方法及终端。The invention relates to the field of information processing, in particular to a character processing method and a terminal.

背景技术Background technique

随着电子技术的发展,输入法功能已逐渐成为电子设备的常见功能之一。用户可以使用输入法输入字符内容,在输入长句时,可以将输入的字符添加至输入法显示界面中的待上屏编辑区域,若用户需要对待上屏编辑区域中的字符进行处理时,需要先通过长按压的操作触发编辑模式的启动,然后通过选框选中待上屏的字符,再点击选择需要执行的字符编辑指令,导致用户的选择操作较繁琐,降低了终端对待上屏字符的处理效率。With the development of electronic technology, the input method function has gradually become one of the common functions of electronic equipment. The user can use the input method to input character content. When entering a long sentence, the input characters can be added to the editing area on the input method display interface. If the user needs to process the characters in the editing area on the upper screen, the user needs to First trigger the start of the editing mode through a long press operation, then select the character to be screened through the check box, and then click to select the character editing command to be executed, which makes the user's selection operation more cumbersome and reduces the terminal's processing of the character on the screen efficiency.

发明内容Contents of the invention

本发明实施例所要解决的技术问题在于,提供一种文字处理方法及终端,提高了终端对待上屏字符的处理效率。The technical problem to be solved by the embodiments of the present invention is to provide a word processing method and a terminal, which improve the processing efficiency of the terminal for characters on the screen.

第一方面,本发明实施例提供了一种字符处理方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a character processing method, the method comprising:

接收针对待上屏编辑区域输入的按压操作,所述待上屏编辑区域中显示有待上屏字符;receiving a press operation inputted for the editing area to be screened, the character to be screened is displayed in the editing area to be screened;

检测所述按压操作的压力值,判断所述按压操作的压力值是否大于预设压力阈值;Detecting the pressure value of the pressing operation, and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold;

若是,检测针对所述待上屏编辑区域输入的滑动操作,检测所述滑动操作的目标滑动轨迹;If so, detect the sliding operation inputted for the editing area to be uploaded, and detect the target sliding track of the sliding operation;

根据预置的滑动轨迹与字符编辑指令的对应关系,查找所述目标滑动轨迹所对应的目标字符编辑指令;Searching for a target character editing command corresponding to the target sliding track according to the preset correspondence between the sliding track and the character editing command;

针对所述待上屏编辑区域中显示的所述待上屏字符执行查找到的所述目标字符编辑指令。Executing the found editing instruction of the target character for the character to be displayed in the editing area to be displayed.

结合第一方面,在第一方面的第一种可能的实现方式中,所述目标字符编辑指令为删除指令、复制指令、剪切指令、发送指令或信息展示指令,所述针对所述待上屏编辑区域中显示的所述待上屏字符执行查找到的所述目标字符编辑指令,包括:With reference to the first aspect, in the first possible implementation manner of the first aspect, the target character editing instruction is a delete instruction, copy instruction, cut instruction, send instruction or information display instruction, and the The character to be displayed on the screen to be displayed in the screen editing area executes the edit instruction of the target character found, including:

将所述待上屏编辑区域中显示的所述待上屏字符从所述待上屏编辑区域中进行删除;或者,Deleting the characters to be displayed in the screen-to-be edited area from the screen-to-be edited area; or,

将所述待上屏编辑区域中显示的所述待上屏字符进行复制;或者,Copying the characters to be displayed in the screen-to-be edited area; or,

将所述待上屏编辑区域中显示的所述待上屏字符进行剪切;或者,Cutting the characters to be displayed in the screen-to-be edited area; or,

将所述待上屏编辑区域中显示的所述待上屏字符进行发送;或者,Sending the characters to be displayed in the screen-to-be edited area; or,

将所述待上屏编辑区域中显示的所述待上屏字符关联的预设信息进行展示。Displaying preset information associated with the characters to be screened displayed in the screen-to-be-screened editing area.

结合第一方面,在第一方面的第二种可能的实现方式中,所述接收针对待上屏编辑区域输入的按压操作,包括:With reference to the first aspect, in the second possible implementation manner of the first aspect, the receiving the press operation for the input of the editing area on the screen includes:

接收在所述待上屏编辑区域中所述待上屏字符的显示区域输入的按压操作;或者,receiving a press operation input in the display area of the characters to be screened in the editing area to be screened; or,

接收在所述待上屏编辑区域中的空白显示区域输入的按压操作。receiving a press operation input in a blank display area in the editing area to be uploaded.

结合第一方面,在第一方面的第三种可能的实现方式中,所述检测所述按压操作的压力值,判断所述按压操作的压力值是否大于预设压力阈值之后,检测针对所述待上屏编辑区域输入的滑动操作,检测所述滑动操作的目标滑动轨迹之前,所述方法还包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, after detecting the pressure value of the pressing operation and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold, detecting the Before the sliding operation input in the editing area of the upper screen is detected, the method further includes:

若判断出所述按压操作的压力值大于所述预设压力阈值,则判断所述按压操作的操作时长是否大于预设时长阈值;If it is determined that the pressure value of the pressing operation is greater than the preset pressure threshold, it is determined whether the operation duration of the pressing operation is greater than the preset duration threshold;

若是,则执行所述检测针对所述待上屏编辑区域输入的滑动操作,检测所述滑动操作的目标滑动轨迹的步骤。If yes, the steps of detecting a sliding operation inputted on the editing area to be uploaded and detecting a target sliding track of the sliding operation are performed.

结合第一方面,在第一方面的第四种可能的实现方式中,所述检测所述按压操作的压力值,包括:With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the detecting the pressure value of the pressing operation includes:

检测所述按压操作的压力值,并在所述待上屏编辑区域中显示所述压力值。Detecting the pressure value of the pressing operation, and displaying the pressure value in the editing area of the screen to be uploaded.

第二方面,本发明实施例提供了一种终端,所述终端包括:In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes:

接收模块,用于接收针对待上屏编辑区域输入的按压操作,所述待上屏编辑区域中显示有待上屏字符;A receiving module, configured to receive a press operation inputted for an editing area to be screened, wherein characters to be screened are displayed in the editing area to be screened;

第一判断模块,用于检测所述按压操作的压力值,判断所述按压操作的压力值是否大于预设压力阈值;A first judging module, configured to detect the pressure value of the pressing operation, and judge whether the pressure value of the pressing operation is greater than a preset pressure threshold;

检测模块,用于若所述第一判断模块判断出所述按压操作的压力值大于所述预设压力阈值,检测针对所述待上屏编辑区域输入的滑动操作,检测所述滑动操作的目标滑动轨迹;A detection module, configured to detect the sliding operation input for the screen editing area to be uploaded, and detect the target of the sliding operation if the first judging module judges that the pressure value of the pressing operation is greater than the preset pressure threshold sliding track;

查找模块,用于根据预置的滑动轨迹与字符编辑指令的对应关系,查找所述目标滑动轨迹所对应的目标字符编辑指令;A search module, configured to search for the target character editing instruction corresponding to the target sliding track according to the preset correspondence between the sliding track and the character editing command;

执行模块,用于针对所述待上屏编辑区域中显示的所述待上屏字符执行查找到的所述目标字符编辑指令。An execution module, configured to execute the found editing instruction of the target character for the character to be displayed in the editing area to be displayed.

结合第二方面,在第二方面的第一种可能的实现方式中,所述目标字符编辑指令为删除指令、复制指令、剪切指令、发送指令或信息展示指令;所述执行模块具体用于将所述待上屏编辑区域中显示的所述待上屏字符从所述待上屏编辑区域中进行删除;或者,With reference to the second aspect, in the first possible implementation of the second aspect, the target character editing instruction is a delete instruction, copy instruction, cut instruction, send instruction or information display instruction; the execution module is specifically used to Deleting the characters to be displayed in the screen-to-be edited area from the screen-to-be edited area; or,

将所述待上屏编辑区域中显示的所述待上屏字符进行复制;或者,Copying the characters to be displayed in the screen-to-be edited area; or,

将所述待上屏编辑区域中显示的所述待上屏字符进行剪切;或者,Cutting the characters to be displayed in the screen-to-be edited area; or,

将所述待上屏编辑区域中显示的所述待上屏字符进行发送;或者,Sending the characters to be displayed in the screen-to-be edited area; or,

将所述待上屏编辑区域中显示的所述待上屏字符关联的预设信息进行展示。Displaying preset information associated with the characters to be screened displayed in the screen-to-be-screened editing area.

结合第二方面,在第二方面的第二种可能的实现方式中,所述接收模块具体用于接收在所述待上屏编辑区域中所述待上屏字符的显示区域输入的按压操作;或者,With reference to the second aspect, in a second possible implementation manner of the second aspect, the receiving module is specifically configured to receive a press operation input in the display area of the character to be uploaded in the edit area to be uploaded; or,

接收在所述待上屏编辑区域中的空白显示区域输入的按压操作。receiving a press operation input in a blank display area in the editing area to be uploaded.

结合第二方面,在第二方面的第三种可能的实现方式中,所述终端还包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, the terminal further includes:

第二判断模块,用于若所述第一判断模块判断出所述按压操作的压力值大于所述预设压力阈值,则判断所述按压操作的操作时长是否大于预设时长阈值;The second judging module is configured to judge whether the operation duration of the pressing operation is greater than a preset duration threshold if the first judging module judges that the pressure value of the pressing operation is greater than the preset pressure threshold;

所述检测模块具体用于若所述第二判断模块判断出所述按压操作的操作时长大于所述预设时长阈值,则检测针对所述待上屏编辑区域输入的滑动操作,检测所述滑动操作的目标滑动轨迹。The detection module is specifically configured to detect, if the second judging module judges that the operation duration of the pressing operation is longer than the preset duration threshold, a sliding operation input for the editing area to be uploaded, and detect the sliding operation. The target swipe trajectory for the operation.

结合第二方面,在第二方面的第四种可能的实现方式中,所述第一判断模块具体用于检测所述按压操作的压力值,在所述待上屏编辑区域中显示所述压力值,并判断所述按压操作的压力值是否大于预设压力阈值。With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the first judging module is specifically configured to detect the pressure value of the pressing operation, and display the pressure value in the editing area of the screen to be uploaded. value, and determine whether the pressure value of the pressing operation is greater than a preset pressure threshold.

通过实施本发明实施例,终端接收针对待上屏编辑区域输入的按压操作,检测该按压操作的压力值,判断该按压操作的压力值是否大于预设压力阈值,若是,则终端检测针对待上屏编辑区域输入的滑动操作,检测该滑动操作的目标滑动轨迹,并根据预置的滑动轨迹与字符编辑指令的对应关系,查找目标滑动轨迹所对应的目标字符编辑指令,进而快捷地针对待上屏编辑区域中显示的待上屏字符执行目标字符编辑指令,该目标字符编辑指令可以为删除指令、复制指令、剪切指令、发送指令或信息展示指令,提升了用户的使用体验,提高了终端对待上屏字符的处理效率。By implementing the embodiment of the present invention, the terminal receives a press operation inputted for the editing area of the screen to be uploaded, detects the pressure value of the press operation, and judges whether the pressure value of the press operation is greater than the preset pressure threshold, and if so, the terminal detects the input for the edit area to be uploaded. The sliding operation input in the screen editing area detects the target sliding track of the sliding operation, and according to the preset corresponding relationship between the sliding track and the character editing command, finds the target character editing command corresponding to the target sliding track, and then quickly targets the The characters to be displayed in the screen editing area execute the target character editing command. The target character editing command can be a delete command, a copy command, a cut command, a send command or an information display command, which improves the user experience and improves the terminal The processing efficiency of characters on the screen.

进一步地,当终端检测到按压操作的压力值后,且判断出该按压操作的压力值大于预设压力阈值时,终端进一步判断该按压操作的操作时长是否大于预设时长阈值,若是,终端才检测针对待上屏编辑区域输入的滑动操作,从而根据该滑动操作的滑动轨迹查找目标字符编辑指令,避免了用户误碰操作,提高了终端检测的准确性。Furthermore, when the terminal detects the pressure value of the pressing operation and determines that the pressure value of the pressing operation is greater than the preset pressure threshold, the terminal further judges whether the operation duration of the pressing operation is greater than the preset duration threshold, and if so, the terminal Detect the sliding operation input to the editing area on the screen, so as to find the target character editing instruction according to the sliding track of the sliding operation, avoiding the user's accidental touch operation, and improving the accuracy of terminal detection.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明实施例提供的字符处理方法的第一实施例的流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a character processing method provided by an embodiment of the present invention;

图2是本发明实施例提供的一种待上屏编辑区域的显示界面图;Fig. 2 is a display interface diagram of an editing area to be uploaded provided by an embodiment of the present invention;

图3是本发明实施例提供的字符处理方法的第二实施例的流程示意图;FIG. 3 is a schematic flowchart of a second embodiment of a character processing method provided by an embodiment of the present invention;

图4是本发明实施例提供的终端的第一实施例的结构示意图;FIG. 4 is a schematic structural diagram of a first embodiment of a terminal provided by an embodiment of the present invention;

图5是本发明实施例提供的终端的第二实施例的结构示意图;FIG. 5 is a schematic structural diagram of a second embodiment of a terminal provided by an embodiment of the present invention;

图6是本发明实施例提供的终端的第三实施例的结构示意图。FIG. 6 is a schematic structural diagram of a third embodiment of a terminal provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相绑定的列出项目的任何或所有可能组合。It should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a", "said" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

本发明实施例提供了一种字符处理方法及终端,提高了终端对待上屏字符的处理效率。为了便于理解本发明实施例,下面先对本发明实施例的字符处理方法进行描述。Embodiments of the present invention provide a character processing method and a terminal, which improve the processing efficiency of the terminal for characters on the screen. In order to facilitate the understanding of the embodiment of the present invention, the character processing method of the embodiment of the present invention is firstly described below.

请参见图1,是本发明实施例提供的字符处理方法的第一实施例的流程示意图,该方法可以包括但不限于以下步骤。Please refer to FIG. 1 , which is a schematic flowchart of the first embodiment of the character processing method provided by the embodiment of the present invention. The method may include but not limited to the following steps.

S101,接收针对待上屏编辑区域输入的按压操作,待上屏编辑区域中显示有待上屏字符。S101, receiving a press operation for inputting an input in the editing area to be screened, and displaying characters to be screened in the editing area to be screened.

在本发明实施例中,待上屏编辑区域为用户编辑好的待发送字符的所在区域,用户通过在输入法界面中输入编码字符串,输入法系统根据用户当前输入的编码字符串,将其转换为所输入字符的字词候选项,提供给用户选择,其中,编码字符串是输入法系统直接接收的用户输入内容,用户可以采用任意的输入手段进行编码字符串的输入,如键盘、触摸、音频等;用户也可以采用任意的输入方式,如拼音、五笔、笔画、语音、手写等,本发明实施例不作具体限定。终端接收用户对部分字词候选项的选择,从而可以将已选定的字符构成待上屏字符内容显示在待上屏编辑区域,具体地,可参见图2,是本发明实施例提供的一种待上屏编辑区域的显示界面图,其中,A为该待上屏编辑区域,B为待上屏编辑区域显示的待上屏字符,待上屏字符为用户编辑好的文字“输入法是一种编码方法”,C为待上屏编辑区域中待上屏字符的显示区域,D为待上屏编辑区域的其他空白显示区域,E为待上屏编辑区域的段尾显示区域。终端接收用户在A区域输入的按压操作。该终端可以包括但不限于:智能手机(如Android手机、iOS手机等)、移动互联网设备(MID,Mobile Internet Devices)或穿戴式智能设备等具备字符输入功能的互联网设备。按压操作的操作体可以为用户手指或者电容笔等。In the embodiment of the present invention, the editing area to be uploaded to the screen is the area where the characters to be sent edited by the user are located. The user enters a coded character string in the input method interface, and the input method system converts the coded character string according to the coded character string currently input by the user. Word candidates converted into the input characters are provided for the user to choose. Among them, the coded string is the user input content directly received by the input method system. The user can use any input means to input the coded string, such as keyboard, touch , audio, etc.; the user can also use any input method, such as Pinyin, Wubi, strokes, voice, handwriting, etc., which are not specifically limited in the embodiment of the present invention. The terminal receives the user's selection of part of the word candidates, so that the selected characters can be displayed in the editing area of the screen to be screened by the selected characters. Specifically, refer to FIG. A display interface diagram of an editing area to be uploaded, wherein, A is the editing area to be screened, B is a character to be displayed in the editing area to be screened, and the character to be screened is the text edited by the user "input method is A coding method", C is the display area of characters to be screened in the screen editing area to be screened, D is other blank display areas of the screen editing area to be screened, and E is the segment tail display area of the screen editing area to be screened. The terminal receives the pressing operation input by the user in area A. The terminal may include, but is not limited to: smart phones (such as Android phones, iOS phones, etc.), mobile Internet devices (MID, Mobile Internet Devices) or wearable smart devices and other Internet devices with character input functions. The operating body for the pressing operation may be a user's finger or a capacitive pen or the like.

具体地,该按压操作可以在待上屏编辑区域中待上屏字符的显示区域进行触发,也可以在待上屏编辑区域中其他的空白显示区域进行触发,也可以在待上屏编辑区域中显示的待上屏字符的段尾显示区域进行触发,本发明实施例不作具体限定。可参见图2,该按压操作可以在C处进行输入,也可以在D处进行输入,还可以在E处进行输入。本发明实施例以在D处进行输入为例。Specifically, the pressing operation can be triggered in the display area of characters to be screened in the screen-to-be-edited area, or can be triggered in other blank display areas in the screen-to-be-edited area, or can be triggered in the screen-to-be-edited area. The display area of the end of the displayed character to be displayed on the screen is triggered, which is not specifically limited in this embodiment of the present invention. Referring to FIG. 2 , the pressing operation can be input at C, D, or E. In this embodiment of the present invention, the input at D is taken as an example.

S103,检测按压操作的压力值,判断按压操作的压力值是否大于预设压力阈值。S103, detecting the pressure value of the pressing operation, and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold.

在本发明实施例中,终端检测该按压操作的压力值,终端中可设置有压力传感器,终端通过该压力传感器检测用户按压终端的触摸屏时产生的压力值,该触摸屏可以为压敏触摸屏。终端检测到按压操作的压力值后,判断该按压操作的压力值是否大于预设压力阈值,若是,执行步骤S105,若否,终端不响应该按压操作,或者结束本流程,本发明实施例以结束本流程为例。其中,该预设压力阈值可以由终端用户自主设定,也可以由终端系统默认设定,本发明实施例不作具体限定。例如,预设压力阈值为1牛顿,终端检测到按压操作的压力值为2牛顿,则终端判断出该按压操作的压力值大于预设压力阈值。In the embodiment of the present invention, the terminal detects the pressure value of the pressing operation. The terminal may be provided with a pressure sensor, and the terminal detects the pressure value generated when the user presses the touch screen of the terminal through the pressure sensor. The touch screen may be a pressure-sensitive touch screen. After the terminal detects the pressure value of the pressing operation, it judges whether the pressure value of the pressing operation is greater than the preset pressure threshold. If yes, execute step S105; End this process as an example. Wherein, the preset pressure threshold may be set independently by the terminal user, or may be set by default by the terminal system, which is not specifically limited in the embodiment of the present invention. For example, if the preset pressure threshold is 1 Newton, and the terminal detects that the pressure value of the pressing operation is 2 Newtons, then the terminal determines that the pressure value of the pressing operation is greater than the preset pressure threshold.

需要说明的是,当终端检测出按压操作的压力值后,还可以将按压操作的压力值显示在待上屏编辑区域中,以使用户知晓输入的按压操作的压力值,从而使用户在按压时更准确地对按压操作的压力值进行调控,方便用户使用,使得用户在按压时更有针对性。且压力值在待上屏编辑区域中的显示区域可以为终端检测到的按压操作的触控区域,还可以为待上屏编辑区域的其他空白显示区域,本发明实施例不作具体限定。压力值在待上屏编辑区域中的显示时间可以预先设置,例如压力值的显示时间为1秒钟。It should be noted that after the terminal detects the pressure value of the pressing operation, it can also display the pressure value of the pressing operation in the editing area of the screen to be uploaded, so that the user knows the pressure value of the input pressing operation, so that the user can press the The pressure value of the pressing operation is more accurately regulated at the same time, which is convenient for the user and makes the user more targeted when pressing. And the display area of the pressure value in the editing area to be uploaded may be the touch area of the press operation detected by the terminal, or other blank display area of the editing area to be uploaded, which is not specifically limited in the embodiment of the present invention. The display time of the pressure value in the editing area of the screen to be uploaded can be preset, for example, the display time of the pressure value is 1 second.

S105,检测针对待上屏编辑区域输入的滑动操作,检测滑动操作的目标滑动轨迹。S105. Detecting a sliding operation input to the editing area to be uploaded, and detecting a target sliding track of the sliding operation.

在本发明实施例中,终端判断出按压操作的压力值大于预设压力阈值后,终端检测针对待上屏编辑区域输入的滑动操作,并检测该滑动操作的目标滑动轨迹,其中,目标滑动轨迹可以包括但不限于:S型轨迹、F型轨迹、J型轨迹、O型轨迹、D型轨迹等,目标滑动轨迹还可以包括为沿终端触摸屏水平向左滑动的轨迹、沿终端触摸屏水平向右滑动的轨迹、沿终端触摸屏竖直向上滑动的轨迹、沿终端触摸屏竖直向下滑动的轨迹、沿终端触摸屏左上角方向滑动的轨迹、沿终端触摸屏左下角方向滑动的轨迹、沿终端触摸屏右上角方向滑动的轨迹、沿终端触摸屏右下角方向滑动的轨迹等。可参见图3,该滑动操作可以在C处进行输入,也可以在D处进行输入,还可以在E处进行输入。本发明实施例以滑动操作在D处进行输入为例。本发明实施例以滑动操作的目标滑动轨迹为S型为例,且该滑动操作同样在D处进行输入。In the embodiment of the present invention, after the terminal determines that the pressure value of the pressing operation is greater than the preset pressure threshold, the terminal detects the sliding operation input for the editing area on the screen to be uploaded, and detects the target sliding track of the sliding operation, wherein the target sliding track It can include but not limited to: S-shaped trajectory, F-shaped trajectory, J-shaped trajectory, O-shaped trajectory, D-shaped trajectory, etc. The target sliding trajectory can also include a trajectory that slides horizontally to the left along the touch screen of the terminal, and slides horizontally to the right along the touch screen of the terminal. Sliding trajectory, vertical upward sliding trajectory along the terminal touch screen, vertical downward sliding trajectory along the terminal touch screen, sliding trajectory along the upper left corner of the terminal touch screen, sliding trajectory along the lower left corner of the terminal touch screen, The trajectory of sliding in the direction, the trajectory of sliding in the direction of the lower right corner of the terminal touch screen, etc. Referring to FIG. 3 , the sliding operation can be input at C, D, or E. In this embodiment of the present invention, an input at D is taken as an example through a sliding operation. In the embodiment of the present invention, the target sliding trajectory of the sliding operation is S-shaped as an example, and the sliding operation is also input at D.

上述按压操作与滑动操作可以为相互连续的操作,也可以为相互独立的操作,即用户在待上屏编辑区域进行按压操作之后,用户的手指可以不脱离终端的待上屏编辑区域直接进行滑动操作,或者,用户在待上屏编辑区域进行按压操作之后,用户的手指脱离终端的待上屏编辑区域,重新进行滑动操作。The above-mentioned pressing operation and sliding operation can be mutually continuous operations, and can also be mutually independent operations, that is, after the user performs a pressing operation in the editing area of the screen to be uploaded, the user's finger can directly slide without leaving the editing area of the screen to be uploaded Alternatively, after the user performs a pressing operation in the editing area on the screen to be uploaded, the user's finger leaves the editing area on the screen to be uploaded on the terminal, and performs a sliding operation again.

S107,根据预置的滑动轨迹与字符编辑指令的对应关系,查找目标滑动轨迹所对应的目标字符编辑指令。S107. Search for a target character editing instruction corresponding to the target sliding track according to the preset correspondence between the sliding track and the character editing command.

在本发明实施例中,终端可以预置并存储的滑动轨迹与字符编辑指令的对应关系,具体实现中,可例如:终端将滑动轨迹为S型轨迹对应删除指令,将滑动轨迹为F型轨迹对应发送指令,将滑动轨迹为J型轨迹对应剪切指令,将滑动轨迹为O型轨迹对应发送指令,将滑动轨迹为D型轨迹对应信息展示指令;或者,终端将滑动轨迹为沿终端触摸屏水平向左滑动的轨迹对应删除指令,将滑动轨迹为沿终端触摸屏水平向右滑动的轨迹对应复制指令,将滑动轨迹为沿终端触摸屏竖直向上滑动的轨迹对应剪切指令,将滑动轨迹为沿终端触摸屏竖直向下滑动的轨迹对应发送指令,将滑动轨迹为沿终端触摸屏左上角方向滑动的轨迹对应信息展示指令。则当终端检测到滑动操作的目标滑动轨迹后,可以根据上述预置的滑动轨迹与字符编辑指令的对应关系,查找目标滑动轨迹所对应的目标字符编辑指令。例如,终端检测到滑动操作的目标滑动轨迹为S型轨迹,则查找到S型轨迹所对应的目标字符编辑指令为删除指令。In the embodiment of the present invention, the terminal can preset and store the corresponding relationship between the sliding track and the character editing instruction. In specific implementation, for example: the terminal sets the sliding track as an S-shaped track corresponding to the deletion command, and sets the sliding track as an F-shaped track Corresponding to the sending command, the sliding track is a J-shaped track corresponding to a cutting command, the sliding track is an O-shaped track corresponding to a sending command, and the sliding track is a D-shaped track corresponding to an information display command; The track that slides to the left corresponds to the delete command, the track that slides horizontally along the touch screen of the terminal to the right corresponds to the copy command, the track that slides vertically upwards along the touch screen of the terminal corresponds to the cut command, and the track that slides along the terminal touch screen corresponds to the cut command The vertically downward sliding track of the touch screen corresponds to sending an instruction, and the sliding track is changed to slide along the upper left corner of the terminal touch screen corresponding to an information display instruction. Then, when the terminal detects the target sliding track of the sliding operation, it can search for the target character editing command corresponding to the target sliding track according to the above-mentioned preset correspondence between the sliding track and the character editing command. For example, when the terminal detects that the target sliding track of the sliding operation is an S-shaped track, it finds that the target character editing command corresponding to the S-shaped track is a delete command.

S109,针对待上屏编辑区域中显示的待上屏字符执行查找到的目标字符编辑指令。S109. Execute the searched target character editing instruction for the characters to be displayed in the editing area to be displayed on the screen.

在本发明实施例中,终端针对待上屏编辑区域中显示的待上屏字符执行查找出的目标字符编辑指令。具体地,若目标字符编辑指令为删除指令,则终端将待上屏字符从待上屏编辑区域中进行删除;或者,若目标字符编辑指令为复制指令,则终端将待上屏字符进行复制;或者,若目标字符编辑指令为剪切指令,则终端将待上屏字符进行剪切;或者,若目标字符编辑指令为发送指令,则终端将待上屏字符进行发送;或者,若目标字符编辑指令为信息展示指令,则终端将待上屏字符关联的预设信息进行展示。其中,与待上屏字符关联的预设信息可以为待上屏字符对应的概念、定义或者根据该待上屏字符匹配到的相关内容。例如,可参见图2,若终端查找出的目标字符编辑指令为删除指令,则终端将待上屏字符“输入法是一种编码方法”从待上屏编辑区域中进行删除,从而实现快捷删除待上屏字符。In the embodiment of the present invention, the terminal executes the searched target character editing instruction for the characters to be displayed in the editing area to be displayed on the screen. Specifically, if the target character editing instruction is a delete instruction, the terminal deletes the characters to be screened from the editing area to be screened; or, if the target character editing command is a copy command, the terminal copies the characters to be screened; Or, if the target character editing command is a cutting command, the terminal will cut the characters on the screen; or, if the target character editing command is a sending command, the terminal will send the characters on the screen; or, if the target character editing If the command is an information display command, the terminal will display the preset information associated with the characters to be displayed on the screen. Wherein, the preset information associated with the character to be screened may be a concept, a definition corresponding to the character to be screened, or related content matched according to the character to be screened. For example, as shown in Figure 2, if the target character editing command found by the terminal is a delete command, the terminal will delete the character "input method is a coding method" to be displayed from the editing area to be displayed, so as to realize quick deletion Characters to be displayed on the screen.

在图1的发明实施例中,终端根据在待上屏编辑区域接收到的按压操作,检测该按压操作的压力值,判断该按压操作的压力值是否大于预设压力阈值,若是,则终端检测针对待上屏编辑区域输入的滑动操作,检测该滑动操作的目标滑动轨迹,从而查找该目标滑动轨迹所对应的目标字符编辑指令,进而针对待上屏编辑区域中显示的待上屏字符执行该目标字符编辑指令,提高了终端对待上屏字符的处理效率。In the embodiment of the invention in Figure 1, the terminal detects the pressure value of the pressing operation according to the pressing operation received in the editing area of the screen to be uploaded, and judges whether the pressure value of the pressing operation is greater than the preset pressure threshold, and if so, the terminal detects For the sliding operation input in the editing area to be uploaded, the target sliding track of the sliding operation is detected, so as to find the target character editing instruction corresponding to the target sliding track, and then execute the command for the characters to be displayed in the editing area to be screened. The target character editing command improves the processing efficiency of the terminal for characters on the screen.

进一步地,请参见图3,是本发明实施例提供的字符处理方法的第二实施例的流程示意图,该方法可以包括但不限于以下步骤。Further, please refer to FIG. 3 , which is a schematic flowchart of the second embodiment of the character processing method provided by the embodiment of the present invention. The method may include but not limited to the following steps.

S301,接收针对待上屏编辑区域输入的按压操作,待上屏编辑区域中显示有待上屏字符。S301. Receive a press operation for inputting an input in an editing area to be screened, and display characters to be screened in the editing area to be screened.

本发明实施例中的S301可参见图1所示实施例的S101,此处不再赘述。For S301 in the embodiment of the present invention, reference may be made to S101 in the embodiment shown in FIG. 1 , and details are not repeated here.

S303,检测按压操作的压力值,判断按压操作的压力值是否大于预设压力阈值。S303. Detect the pressure value of the pressing operation, and determine whether the pressure value of the pressing operation is greater than a preset pressure threshold.

在本发明实施例中,终端检测该按压操作的压力值,终端中可设置有压力传感器,终端通过该压力传感器检测用户按压终端的触摸屏时产生的压力值,该触摸屏可以为压敏触摸屏。终端检测到按压操作的压力值后,判断该按压操作的压力值是否大于预设压力阈值,若是,执行步骤S305,若否,终端不响应该按压操作,或者结束本流程,本发明实施例以结束本流程为例。其中,该预设压力阈值可以由终端用户自主设定,也可以由终端系统默认设定,本发明实施例不作具体限定。例如,预设压力阈值为1牛顿,终端检测到按压操作的压力值为2牛顿,则终端判断出该按压操作的压力值大于预设压力阈值。In the embodiment of the present invention, the terminal detects the pressure value of the pressing operation. The terminal may be provided with a pressure sensor, and the terminal detects the pressure value generated when the user presses the touch screen of the terminal through the pressure sensor. The touch screen may be a pressure-sensitive touch screen. After the terminal detects the pressure value of the pressing operation, it judges whether the pressure value of the pressing operation is greater than the preset pressure threshold. If yes, execute step S305; End this process as an example. Wherein, the preset pressure threshold may be set independently by the terminal user, or may be set by default by the terminal system, which is not specifically limited in the embodiment of the present invention. For example, if the preset pressure threshold is 1 Newton, and the terminal detects that the pressure value of the pressing operation is 2 Newtons, then the terminal determines that the pressure value of the pressing operation is greater than the preset pressure threshold.

需要说明的是,当终端检测出按压操作的压力值后,还可以将按压操作的压力值显示在待上屏编辑区域中,以使用户知晓输入的按压操作的压力值,从而使用户在按压时更准确地对按压操作的压力值进行调控,方便用户使用,使得用户在按压时更有针对性。且压力值在待上屏编辑区域中的显示区域可以为终端检测到的按压操作的触控区域,还可以为待上屏编辑区域的其他空白显示区域,本发明实施例不作具体限定。压力值在待上屏编辑区域中的显示时间可以预先设置,例如压力值的显示时间为1秒钟。It should be noted that after the terminal detects the pressure value of the pressing operation, it can also display the pressure value of the pressing operation in the editing area of the screen to be uploaded, so that the user knows the pressure value of the input pressing operation, so that the user can press the The pressure value of the pressing operation is more accurately regulated at the same time, which is convenient for the user and makes the user more targeted when pressing. And the display area of the pressure value in the editing area to be uploaded may be the touch area of the press operation detected by the terminal, or other blank display area of the editing area to be uploaded, which is not specifically limited in the embodiment of the present invention. The display time of the pressure value in the editing area of the screen to be uploaded can be preset, for example, the display time of the pressure value is 1 second.

S305,判断按压操作的操作时长是否大于预设时长阈值。S305. Determine whether the operation duration of the pressing operation is greater than a preset duration threshold.

在本发明实施例中,终端判断出按压操作的压力值大于预设压力阈值后,终端进一步判断该按压操作的操作时长是否大于预设时长阈值,若是,执行步骤S307,若否,则终端不响应该按压操作,避免用户的误碰操作,从而提高终端检测的准确性,或者结束本流程,本发明实施例以结束本流程为例。其中,该预设时长阈值可以由终端用户自主设定,也可以由终端系统默认设定,本发明实施例不作具体限定。例如,预设时长阈值为2秒钟,终端检测到按压操作的操作时长为3秒钟,则终端判断出该按压操作的操作时长大于预设时长阈值。In the embodiment of the present invention, after the terminal determines that the pressure value of the pressing operation is greater than the preset pressure threshold, the terminal further determines whether the operation duration of the pressing operation is greater than the preset duration threshold, if yes, execute step S307, if not, the terminal does not In response to the pressing operation, the user's mistaken touch operation is avoided, thereby improving the accuracy of terminal detection, or ending this process. The embodiment of the present invention takes the end of this process as an example. Wherein, the preset duration threshold may be set independently by the terminal user, or may be set by default by the terminal system, which is not specifically limited in this embodiment of the present invention. For example, the preset duration threshold is 2 seconds, and the terminal detects that the operation duration of the pressing operation is 3 seconds, then the terminal determines that the operation duration of the pressing operation is greater than the preset duration threshold.

S307,检测针对待上屏编辑区域输入的滑动操作,检测滑动操作的目标滑动轨迹。S307. Detect a sliding operation input to the editing area to be uploaded, and detect a target sliding track of the sliding operation.

在本发明实施例中,若终端判断出按压操作的操作时长大于预设时长阈值,则终端检测针对待上屏编辑区域输入的滑动操作,并检测该滑动操作的目标滑动轨迹,其中,目标滑动轨迹可以包括但不限于:S型轨迹、F型轨迹、J型轨迹、O型轨迹、D型轨迹等,目标滑动轨迹还可以包括为沿终端触摸屏水平向左滑动的轨迹、沿终端触摸屏水平向右滑动的轨迹、沿终端触摸屏竖直向上滑动的轨迹、沿终端触摸屏竖直向下滑动的轨迹、沿终端触摸屏左上角方向滑动的轨迹、沿终端触摸屏左下角方向滑动的轨迹、沿终端触摸屏右上角方向滑动的轨迹、沿终端触摸屏右下角方向滑动的轨迹等。In the embodiment of the present invention, if the terminal determines that the operation duration of the pressing operation is longer than the preset duration threshold, the terminal detects the sliding operation input for the editing area on the screen to be uploaded, and detects the target sliding track of the sliding operation, wherein the target sliding Tracks can include but not limited to: S-shaped track, F-shaped track, J-shaped track, O-shaped track, D-shaped track, etc. The target sliding track can also include a track that slides horizontally to the left along the touch screen of the terminal, and a track that slides horizontally along the touch screen of the terminal. The trajectory of sliding right, the trajectory of sliding vertically upward along the terminal touch screen, the trajectory of vertically sliding downward along the terminal touch screen, the trajectory of sliding along the upper left corner of the terminal touch screen, the trajectory of sliding along the lower left corner of the terminal touch screen, The trajectory of sliding in the corner direction, the trajectory of sliding in the direction of the lower right corner of the terminal touch screen, etc.

上述按压操作与滑动操作可以为相互连续的操作,也可以为相互独立的操作,即用户在待上屏编辑区域进行按压操作之后,用户的手指可以不脱离终端的待上屏编辑区域直接进行滑动操作,或者,用户在待上屏编辑区域进行按压操作之后,用户的手指脱离终端的待上屏编辑区域,重新进行滑动操作。The above-mentioned pressing operation and sliding operation can be mutually continuous operations, and can also be mutually independent operations, that is, after the user performs a pressing operation in the editing area of the screen to be uploaded, the user's finger can directly slide without leaving the editing area of the screen to be uploaded Alternatively, after the user performs a pressing operation in the editing area on the screen to be uploaded, the user's finger leaves the editing area on the screen to be uploaded on the terminal, and performs a sliding operation again.

S309,根据预置的滑动轨迹与字符编辑指令的对应关系,查找目标滑动轨迹所对应的目标字符编辑指令。S309. Search for a target character editing instruction corresponding to the target sliding track according to the preset correspondence between the sliding track and the character editing command.

S311,针对待上屏编辑区域中显示的待上屏字符执行查找到的目标字符编辑指令。S311. Execute the searched target character editing instruction for the characters to be displayed in the editing area to be displayed on the screen.

本发明实施例中的S309和S311可参见图1所示实施例的S107和S109,此处不再赘述。For S309 and S311 in the embodiment of the present invention, reference may be made to S107 and S109 in the embodiment shown in FIG. 1 , and details are not repeated here.

在图3的发明实施例中,终端根据在待上屏编辑区域接收到的按压操作,检测该按压操作的压力值,判断该按压操作的压力值是否大于预设压力阈值,若是,则终端检测针对待上屏编辑区域输入的滑动操作,检测该滑动操作的目标滑动轨迹,从而查找该目标滑动轨迹所对应的目标字符编辑指令,进而针对待上屏编辑区域中显示的待上屏字符执行该目标字符编辑指令,提高了终端对待上屏字符的处理效率。进一步地,当终端检测到按压操作的压力值,且判断出该按压操作的压力值大于预设压力阈值时,终端进一步判断该按压操作的操作时长是否大于预设时长阈值,若是,终端才检测针对待上屏编辑区域输入的滑动操作,避免了用户的误碰操作,提高了终端检测的准确性。In the embodiment of the invention in Fig. 3, the terminal detects the pressure value of the pressing operation according to the pressing operation received in the editing area of the screen to be uploaded, and judges whether the pressure value of the pressing operation is greater than the preset pressure threshold, and if so, the terminal detects For the sliding operation input in the editing area to be uploaded, the target sliding track of the sliding operation is detected, so as to find the target character editing instruction corresponding to the target sliding track, and then execute the command for the characters to be displayed in the editing area to be screened. The target character editing command improves the processing efficiency of the terminal for characters on the screen. Further, when the terminal detects the pressure value of the pressing operation and determines that the pressure value of the pressing operation is greater than the preset pressure threshold, the terminal further judges whether the operation duration of the pressing operation is greater than the preset duration threshold, and if so, the terminal detects For the sliding operation input in the editing area on the screen, the user's mistaken touch operation is avoided, and the accuracy of terminal detection is improved.

上述详细阐述了本发明实施例的方法,下面为了便于更好地实施本发明实施例的上述方案,相应地,下面还提供用于配合实施上述方案的相关终端。The method of the embodiment of the present invention has been described in detail above. In order to facilitate better implementation of the above-mentioned solution of the embodiment of the present invention, correspondingly, the following also provides related terminals for cooperating with implementing the above-mentioned solution.

请参见图4,是本发明实施例提供的终端的第一实施例的结构示意图,终端40包括:接收模块401、第一判断模块403、检测模块405、查找模块407和执行模块409,其中,Please refer to FIG. 4, which is a schematic structural diagram of the first embodiment of the terminal provided by the embodiment of the present invention. The terminal 40 includes: a receiving module 401, a first judgment module 403, a detection module 405, a search module 407 and an execution module 409, wherein,

接收模块401,用于接收针对待上屏编辑区域输入的按压操作,待上屏编辑区域中显示有待上屏字符;The receiving module 401 is used to receive the pressing operation inputted for the edit area to be uploaded, and the characters to be screened are displayed in the edit area to be screened;

具体地,接收模块401具体用于接收在待上屏编辑区域中待上屏字符的显示区域输入的按压操作;或者,Specifically, the receiving module 401 is specifically configured to receive a press operation input in the display area of the character to be uploaded in the editing area to be uploaded; or,

接收在待上屏编辑区域中的空白显示区域输入的按压操作。A press operation inputted in a blank display area in the editing area of the screen to be uploaded is received.

第一判断模块403,用于检测按压操作的压力值,判断按压操作的压力值是否大于预设压力阈值;The first judging module 403 is configured to detect the pressure value of the pressing operation, and judge whether the pressure value of the pressing operation is greater than a preset pressure threshold;

具体地,第一判断模块403具体用于检测按压操作的压力值,在待上屏编辑区域中显示压力值,并判断按压操作的压力值是否大于预设压力阈值。Specifically, the first judging module 403 is specifically configured to detect the pressure value of the pressing operation, display the pressure value in the editing area on the screen to be uploaded, and judge whether the pressure value of the pressing operation is greater than a preset pressure threshold.

检测模块405,用于若第一判断模块判断出按压操作的压力值大于预设压力阈值,检测针对待上屏编辑区域输入的滑动操作,检测滑动操作的目标滑动轨迹;The detection module 405 is used to detect the sliding operation input for the editing area to be screened, and detect the target sliding track of the sliding operation if the first judging module judges that the pressure value of the pressing operation is greater than the preset pressure threshold;

查找模块407,用于根据预置的滑动轨迹与字符编辑指令的对应关系,查找目标滑动轨迹所对应的目标字符编辑指令;The search module 407 is used to search for the target character editing instruction corresponding to the target sliding track according to the preset correspondence between the sliding track and the character editing command;

执行模块409,用于针对待上屏编辑区域中显示的待上屏字符执行查找到的目标字符编辑指令。The executing module 409 is configured to execute the searched target character editing instruction for the characters to be displayed in the editing area to be displayed on the screen.

具体地,目标字符编辑指令为删除指令、复制指令、剪切指令、发送指令或信息展示指令;执行模块409具体用于将待上屏编辑区域中显示的待上屏字符从待上屏编辑区域中进行删除;或者,Specifically, the target character editing instruction is a delete instruction, a copy instruction, a cut instruction, a sending instruction, or an information display instruction; delete in ; or,

将待上屏编辑区域中显示的待上屏字符进行复制;或者,Copy the characters to be displayed in the screen-to-be edited area; or,

将待上屏编辑区域中显示的待上屏字符进行剪切;或者,Cut the characters to be displayed in the screen-to-be edited area; or,

将待上屏编辑区域中显示的待上屏字符进行发送;或者,Send the characters to be screened displayed in the editing area to be screened; or,

将待上屏编辑区域中显示的待上屏字符关联的预设信息进行展示。Display the preset information associated with the characters to be screened displayed in the screen-to-be-screened editing area.

可理解的是,本实施例的终端40的各功能模块的功能可根据上述图1方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of the functional modules of the terminal 40 in this embodiment can be specifically implemented according to the method in the above-mentioned method embodiment in FIG. 1 , which will not be repeated here.

在图4的发明实施例中,终端根据在待上屏编辑区域接收到的按压操作,检测该按压操作的压力值,判断该按压操作的压力值是否大于预设压力阈值,若是,则终端检测针对待上屏编辑区域输入的滑动操作,检测该滑动操作的目标滑动轨迹,从而查找该目标滑动轨迹所对应的目标字符编辑指令,进而针对待上屏编辑区域中显示的待上屏字符执行该目标字符编辑指令,提高了终端对待上屏字符的处理效率。In the embodiment of the invention in Figure 4, the terminal detects the pressure value of the pressing operation according to the pressing operation received in the editing area of the screen to be uploaded, and judges whether the pressure value of the pressing operation is greater than the preset pressure threshold, and if so, the terminal detects For the sliding operation input in the editing area to be uploaded, the target sliding track of the sliding operation is detected, so as to find the target character editing instruction corresponding to the target sliding track, and then execute the command for the characters to be displayed in the editing area to be screened. The target character editing command improves the processing efficiency of the terminal for characters on the screen.

进一步地,请参见图5,是本发明实施例提供的终端的第二实施例的结构示意图,进一步描述终端40的结构和功能。该终端40包括:接收模块401、第一判断模块403、检测模块405、查找模块407和执行模块409外,还包括:第二判断模块411,其中,Further, please refer to FIG. 5 , which is a schematic structural diagram of a second embodiment of a terminal provided by an embodiment of the present invention, further describing the structure and functions of the terminal 40 . The terminal 40 includes: a receiving module 401, a first judging module 403, a detecting module 405, a searching module 407 and an executing module 409, and also includes: a second judging module 411, wherein,

第二判断模块411,用于若第一判断模块403判断出按压操作的压力值大于预设压力阈值,则判断按压操作的操作时长是否大于预设时长阈值。The second judging module 411 is configured to judge whether the operation duration of the pressing operation is greater than the preset duration threshold if the first judging module 403 judges that the pressure value of the pressing operation is greater than the preset pressure threshold.

检测模块405具体用于若第二判断模块411判断出按压操作的操作时长大于预设时长阈值,则检测针对待上屏编辑区域输入的滑动操作,检测滑动操作的目标滑动轨迹。The detection module 405 is specifically configured to detect the sliding operation inputted for the screen editing area and detect the target sliding track of the sliding operation if the second judging module 411 judges that the operation duration of the pressing operation is longer than the preset duration threshold.

可理解的是,本实施例的终端40的各功能模块的功能可根据上述图3方法实施例的方法具体实现,此处不再赘述。It can be understood that the functions of the functional modules of the terminal 40 in this embodiment can be specifically implemented according to the method in the method embodiment in FIG. 3 , which will not be repeated here.

在图5的发明实施例中,终端根据在待上屏编辑区域接收到的按压操作,检测该按压操作的压力值,判断该按压操作的压力值是否大于预设压力阈值,若是,则终端检测针对待上屏编辑区域输入的滑动操作,检测该滑动操作的目标滑动轨迹,从而查找该目标滑动轨迹所对应的目标字符编辑指令,进而针对待上屏编辑区域中显示的待上屏字符执行该目标字符编辑指令,提高了终端对待上屏字符的处理效率。进一步地,当终端检测到按压操作的压力值,且判断出该按压操作的压力值大于预设压力阈值时,终端进一步判断该按压操作的操作时长是否大于预设时长阈值,若是,终端才检测针对待上屏编辑区域输入的滑动操作,避免了用户的误碰操作,提高了终端检测的准确性。In the embodiment of the invention in Figure 5, the terminal detects the pressure value of the pressing operation according to the pressing operation received in the editing area of the screen to be uploaded, and judges whether the pressure value of the pressing operation is greater than the preset pressure threshold, and if so, the terminal detects For the sliding operation input in the editing area to be uploaded, the target sliding track of the sliding operation is detected, so as to find the target character editing instruction corresponding to the target sliding track, and then execute the command for the characters to be displayed in the editing area to be screened. The target character editing command improves the processing efficiency of the terminal for characters on the screen. Further, when the terminal detects the pressure value of the pressing operation and determines that the pressure value of the pressing operation is greater than the preset pressure threshold, the terminal further judges whether the operation duration of the pressing operation is greater than the preset duration threshold, and if so, the terminal detects For the sliding operation input in the editing area on the screen, the user's mistaken touch operation is avoided, and the accuracy of terminal detection is improved.

请参见图6,是本发明提供的终端的第三实施例的结构示意图。其中,如图6所示,终端60可以包括:至少一个处理器601,例如CPU,至少一个总线602,至少一个输入装置603和至少一个输出装置604,存储器605。其中,总线602用于实现这些组件之间的通信连接;输入装置603具体可为终端的触控面板,包括触摸屏和触控屏,用于检测终端触控面板上的操作指令;输出装置604可以包括终端的显示屏(Display),用于输出、显示图像或者数据;存储器605可以是高速RAM显示器,也可以是非不稳定的显示器(non-volatile memory),例如至少一个磁盘显示器,存储器605可选的还可以是至少一个位于远离前述处理器601的显示装置。如图6所示,作为一种计算机显示介质的存储器605中可以包括操作系统、网络通信模块、用户接口模块以及字符处理程序。Please refer to FIG. 6 , which is a schematic structural diagram of a third embodiment of a terminal provided by the present invention. Wherein, as shown in FIG. 6 , the terminal 60 may include: at least one processor 601 , such as a CPU, at least one bus 602 , at least one input device 603 and at least one output device 604 , and a memory 605 . Among them, the bus 602 is used to realize the communication connection between these components; the input device 603 can specifically be a touch panel of the terminal, including a touch screen and a touch screen, and is used to detect operation instructions on the touch panel of the terminal; the output device 604 can The display screen (Display) including the terminal is used to output and display images or data; the memory 605 can be a high-speed RAM display, or a non-volatile memory, such as at least one disk display, and the memory 605 is optional There may also be at least one display device located away from the aforementioned processor 601. As shown in FIG. 6 , the memory 605 as a computer display medium may include an operating system, a network communication module, a user interface module, and a character processing program.

在图6所示的终端60中,处理器601可以用于运行存储器605中存储的字符处理程序,并执行以下操作:In the terminal 60 shown in FIG. 6, the processor 601 can be used to run the character processing program stored in the memory 605, and perform the following operations:

通过输入装置603接收针对待上屏编辑区域输入的按压操作,待上屏编辑区域中显示有待上屏字符;The input device 603 is used to receive the pressing operation for the input of the editing area to be screened, and the characters to be screened are displayed in the editing area to be screened;

检测按压操作的压力值,判断按压操作的压力值是否大于预设压力阈值;Detecting the pressure value of the pressing operation, and judging whether the pressure value of the pressing operation is greater than a preset pressure threshold;

若是,检测针对待上屏编辑区域输入的滑动操作,检测滑动操作的目标滑动轨迹;If so, detect the sliding operation input for the editing area to be uploaded, and detect the target sliding track of the sliding operation;

根据预置的滑动轨迹与字符编辑指令的对应关系,查找目标滑动轨迹所对应的目标字符编辑指令;Searching for the target character editing command corresponding to the target sliding track according to the preset corresponding relationship between the sliding track and the character editing command;

针对待上屏编辑区域中显示的待上屏字符执行查找到的目标字符编辑指令。Execute the searched target character editing instruction for the characters to be displayed in the editing area to be displayed on the screen.

进一步地,目标字符编辑指令为删除指令、复制指令、剪切指令、发送指令或信息展示指令,处理器601执行针对待上屏编辑区域中显示的待上屏字符执行查找到的目标字符编辑指令的步骤可具体为:Further, the target character editing instruction is a delete instruction, a copy instruction, a cutting instruction, a sending instruction or an information display instruction, and the processor 601 executes the searched target character editing instruction for the characters to be displayed in the editing area to be displayed on the screen. The steps can be specifically:

将待上屏编辑区域中显示的待上屏字符从待上屏编辑区域中进行删除;或者,Delete the characters to be screened displayed in the screen-to-be-up editing area from the screen-to-be-up editing area; or,

将待上屏编辑区域中显示的待上屏字符进行复制;或者,Copy the characters to be displayed in the screen-to-be edited area; or,

将待上屏编辑区域中显示的待上屏字符进行剪切;或者,Cut the characters to be displayed in the screen-to-be edited area; or,

将待上屏编辑区域中显示的待上屏字符进行发送;或者,Send the characters to be screened displayed in the editing area to be screened; or,

将待上屏编辑区域中显示的待上屏字符关联的预设信息进行展示。Display the preset information associated with the characters to be screened displayed in the screen-to-be-screened editing area.

更进一步地,处理器601通过输入装置603执行接收针对待上屏编辑区域输入的按压操作的步骤可具体为:Furthermore, the step of the processor 601 performing, through the input device 603, the step of receiving a press operation inputted on the editing area to be uploaded may specifically be:

接收在待上屏编辑区域中待上屏字符的显示区域输入的按压操作;或者,Receive a press operation input in the display area of the characters to be screened in the editing area to be screened; or,

接收在待上屏编辑区域中的空白显示区域输入的按压操作。A press operation inputted in a blank display area in the editing area of the screen to be uploaded is received.

更进一步地,处理器601执行检测按压操作的压力值,判断按压操作的压力值是否大于预设压力阈值的步骤之后,执行检测针对待上屏编辑区域输入的滑动操作,检测滑动操作的目标滑动轨迹的步骤之前,处理器601还用于:Furthermore, after the processor 601 executes the step of detecting the pressure value of the pressing operation and judging whether the pressure value of the pressing operation is greater than the preset pressure threshold, it executes detecting the sliding operation input for the editing area on the screen to detect the target sliding of the sliding operation. Before the steps of the trajectory, the processor 601 is also used to:

若判断出按压操作的压力值大于预设压力阈值,则判断按压操作的操作时长是否大于预设时长阈值;If it is determined that the pressure value of the pressing operation is greater than the preset pressure threshold, it is determined whether the operation duration of the pressing operation is greater than the preset duration threshold;

若是,则处理器601执行检测针对待上屏编辑区域输入的滑动操作,检测滑动操作的目标滑动轨迹的步骤If so, the processor 601 executes the step of detecting the sliding operation inputted for the editing area to be screened, and detecting the target sliding track of the sliding operation

更进一步地,处理器601执行检测按压操作的压力值的步骤可具体为:Furthermore, the step of detecting the pressure value of the pressing operation by the processor 601 may specifically be:

检测按压操作的压力值,并在待上屏编辑区域中显示压力值。Detect the pressure value of the pressing operation, and display the pressure value in the editing area of the screen to be uploaded.

可理解的是,处理器601的执行步骤具体可参见图1或图3实施例的内容,这里不再赘述。It can be understood that, for the execution steps of the processor 601, reference may be made to the content of the embodiment in FIG. 1 or FIG. 3 , and details are not repeated here.

需要说明的是,上述终端可以包括但不限于:智能手机(如Android手机、iOS手机等)、移动互联网设备(MID,Mobile Internet Devices)或穿戴式智能设备等具备字符输入功能的互联网设备。It should be noted that the above-mentioned terminals may include, but are not limited to: smart phones (such as Android phones, iOS phones, etc.), mobile Internet devices (MID, Mobile Internet Devices) or wearable smart devices and other Internet devices with character input functions.

综上所述,通过实施本发明实施例,终端接收针对待上屏编辑区域输入的按压操作,检测该按压操作的压力值,判断该按压操作的压力值是否大于预设压力阈值,若是,则终端检测针对待上屏编辑区域输入的滑动操作,检测该滑动操作的目标滑动轨迹,并根据预置的滑动轨迹与字符编辑指令的对应关系,查找目标滑动轨迹所对应的目标字符编辑指令,进而快捷地针对待上屏编辑区域中显示的待上屏字符执行目标字符编辑指令,该目标字符编辑指令可以为删除指令、复制指令、剪切指令、发送指令或信息展示指令,提升了用户的使用体验,提高了终端对待上屏字符的处理效率。To sum up, by implementing the embodiment of the present invention, the terminal receives a press operation inputted on the screen editing area to be uploaded, detects the pressure value of the press operation, and judges whether the pressure value of the press operation is greater than the preset pressure threshold, and if so, then The terminal detects the sliding operation to be input in the screen editing area, detects the target sliding track of the sliding operation, and searches for the target character editing instruction corresponding to the target sliding track according to the preset correspondence between the sliding track and the character editing command, and then Quickly execute the target character editing command for the characters to be displayed on the screen to be displayed in the screen editing area. The target character editing command can be a delete command, a copy command, a cut command, a send command or an information display command, which improves the user's use experience, which improves the processing efficiency of the terminal for characters on the screen.

进一步地,当终端检测到按压操作的压力值后,且判断出该按压操作的压力值大于预设压力阈值时,终端进一步判断该按压操作的操作时长是否大于预设时长阈值,若是,终端才检测针对待上屏编辑区域输入的滑动操作,从而根据该滑动操作的滑动轨迹查找目标字符编辑指令,避免了用户的误碰操作,提高了终端检测的准确性。Furthermore, when the terminal detects the pressure value of the pressing operation and determines that the pressure value of the pressing operation is greater than the preset pressure threshold, the terminal further judges whether the operation duration of the pressing operation is greater than the preset duration threshold, and if so, the terminal Detect the sliding operation input to the editing area on the screen, so as to find the target character editing instruction according to the sliding track of the sliding operation, avoid the user's mistaken touch operation, and improve the accuracy of terminal detection.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only a preferred embodiment of the present invention, and of course it cannot limit the scope of rights of the present invention. Those of ordinary skill in the art can understand all or part of the process for realizing the above embodiments, and according to the rights of the present invention The equivalent changes required still belong to the scope covered by the invention.

Claims (10)

CN201510542490.2A2015-08-272015-08-27A kind of character processing method and terminalExpired - Fee RelatedCN105117159B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510542490.2ACN105117159B (en)2015-08-272015-08-27A kind of character processing method and terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510542490.2ACN105117159B (en)2015-08-272015-08-27A kind of character processing method and terminal

Publications (2)

Publication NumberPublication Date
CN105117159A CN105117159A (en)2015-12-02
CN105117159Btrue CN105117159B (en)2017-11-24

Family

ID=54665164

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510542490.2AExpired - Fee RelatedCN105117159B (en)2015-08-272015-08-27A kind of character processing method and terminal

Country Status (1)

CountryLink
CN (1)CN105117159B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106020679A (en)*2016-04-292016-10-12深圳市金立通信设备有限公司Input control method and terminal
CN107526449B (en)*2016-06-202020-11-10国基电子(上海)有限公司Character input method
CN106354337A (en)*2016-10-212017-01-25珠海市魅族科技有限公司Character deletion method and character deletion device
CN108062168B (en)*2016-11-092021-10-15北京搜狗科技发展有限公司Candidate word screen-on method and device and candidate word screen-on device
CN107219933A (en)*2017-05-102017-09-29北京百度网讯科技有限公司The operation processing method and device of input method, computer equipment and computer-readable recording medium
CN107885443B (en)*2017-09-222021-02-19创新先进技术有限公司Information processing method and device
CN113867547B (en)*2021-09-302024-12-06维沃移动通信有限公司 Text processing method, device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103197859A (en)*2012-01-092013-07-10深圳富泰宏精密工业有限公司System and method for unlocking screen of electronic device
CN103970460A (en)*2013-01-302014-08-06三星电子(中国)研发中心Touch screen-based operation method and terminal equipment using same
CN104007914A (en)*2013-02-262014-08-27北京三星通信技术研究有限公司Method and device for operating input characters
CN104063164A (en)*2013-03-222014-09-24腾讯科技(深圳)有限公司Method and device for screen control
CN104572602A (en)*2014-12-082015-04-29广州三星通信技术研究有限公司Method and device for displaying message

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR101691478B1 (en)*2011-02-092016-12-30삼성전자주식회사Operation Method based on multiple input And Portable device supporting the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103197859A (en)*2012-01-092013-07-10深圳富泰宏精密工业有限公司System and method for unlocking screen of electronic device
CN103970460A (en)*2013-01-302014-08-06三星电子(中国)研发中心Touch screen-based operation method and terminal equipment using same
CN104007914A (en)*2013-02-262014-08-27北京三星通信技术研究有限公司Method and device for operating input characters
CN104063164A (en)*2013-03-222014-09-24腾讯科技(深圳)有限公司Method and device for screen control
CN104572602A (en)*2014-12-082015-04-29广州三星通信技术研究有限公司Method and device for displaying message

Also Published As

Publication numberPublication date
CN105117159A (en)2015-12-02

Similar Documents

PublicationPublication DateTitle
CN105117159B (en)A kind of character processing method and terminal
US11042290B2 (en)Touch screen track recognition method and apparatus
CN105183184A (en)Character processing method and terminal
CN103677618B (en) Text recognition device and method for terminal
US10248635B2 (en)Method for inserting characters in a character string and the corresponding digital service
CN102937864B (en)A kind of method and apparatus for determining selected text on touch terminal
US20120102401A1 (en)Method and apparatus for providing text selection
US20110054837A1 (en)Information processing apparatus, information processing method, and program
CN106201177B (en) An operation execution method and mobile terminal
CN103092343B (en)A kind of control method based on photographic head and mobile terminal
WO2016095689A1 (en)Recognition and searching method and system based on repeated touch-control operations on terminal interface
US10416868B2 (en)Method and system for character insertion in a character string
KR101474856B1 (en)Apparatus and method for generateg an event by voice recognition
CN103324674B (en)Web page contents choosing method and device
CN104020948A (en) Method and device for determining cursor position in touch screen
CN103365446A (en)Handwriting input method and device
EP3029567A1 (en)Method and device for updating input method system, computer storage medium, and device
CN105159567A (en)Character processing method and terminal
CN105302786A (en)Editing method and device for data
CN103605476A (en)Method and device for selecting objects in display interface
TWI617971B (en)System and method for turning pages of an object through gestures
KR101447879B1 (en)Apparatus and method for selecting a control object by voice recognition
US20140180698A1 (en)Information processing apparatus, information processing method and storage medium
CN107015754B (en) A reading control method, device and mobile terminal based on fingerprint recognition
CN105205137A (en)Searching method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP01Change in the name or title of a patent holder
CP01Change in the name or title of a patent holder

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20171124


[8]ページ先頭

©2009-2025 Movatter.jp