WO2017012585A1 - 一种短语输入方法及终端设备 - Google Patents

一种短语输入方法及终端设备 Download PDF

Info

Publication number
WO2017012585A1
WO2017012585A1 PCT/CN2016/091007 CN2016091007W WO2017012585A1 WO 2017012585 A1 WO2017012585 A1 WO 2017012585A1 CN 2016091007 W CN2016091007 W CN 2016091007W WO 2017012585 A1 WO2017012585 A1 WO 2017012585A1
Authority
WO
WIPO (PCT)
Prior art keywords
phrase
library
user
preset
character editing
Prior art date
Application number
PCT/CN2016/091007
Other languages
English (en)
French (fr)
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 北京锤子数码科技有限公司
Publication of WO2017012585A1 publication Critical patent/WO2017012585A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Definitions

  • the present invention relates to the field of information processing technologies, and in particular, to a phrase input method and a terminal device.
  • Phrases are the language units commonly used by users in daily communication and writing editing. With the popularity of mobile devices, tablet computers, laptops, etc., when users use terminal devices for communication and writing, it is normal to input phrases in terminal devices. If the user reports to the family when he goes to work every day, he will often send a short message such as “I am to the unit” to the family when he arrives at the unit.
  • the manner in which the user inputs a phrase in the terminal device is mainly as follows: the user invokes the input method, and inputs characters such as Chinese and English in the terminal device through the input method, thereby forming a phrase through the input characters to implement input of the phrase in the terminal device.
  • the inventor of the present invention found in the research process that the manner in which an existing user inputs a phrase in the terminal device has the following problem: since the user often uses a frequently used phrase when using a phrase; if the existing input method is used, Characters, the way in which the phrase is entered, will cause the user to repeatedly edit the common phrase. In the long run, the workload of the user inputting the phrase will be very large.
  • an embodiment of the present invention provides a phrase input method and a terminal device, so as to implement a shortcut input of a common phrase in a terminal device, and reduce the workload of the user inputting a phrase.
  • the embodiment of the present invention provides the following technical solutions:
  • a phrase input method comprising:
  • the target phrase is input into the character editing area by a link of the phrase library and the character editing area.
  • the character editing area implements character editing by calling an editing function by an editable text control, and the editable text control has a link interface with the phrase library;
  • the detecting whether the user operation corresponds to the operation of the set call preset phrase library comprises:
  • the link interface is invoked to link the character editing area and the phrase library.
  • the detecting whether the user operation corresponds to the set operation of activating the link interface includes:
  • Detecting whether a user operation corresponds to a set shortcut operation the shortcut operation being configured to activate the link interface
  • the link interface is activated.
  • the process of storing the preset phrase in the phrase library includes:
  • the phrase whose frequency of occurrence reaches a threshold is entered into the phrase library.
  • the displaying, by the pop-up window, the preset phrase in the phrase library includes:
  • the preset phrases are displayed in the pop-up window in order according to the order of frequency of use.
  • the determining, by the user, the target phrase selected from the displayed preset phrases includes:
  • the marked candidate phrase is determined as the target phrase.
  • the number of preset phrases in the phrase library is limited to a set limit; the method further includes:
  • the newly added phrase is entered into the phrase library, and the user-selected phrase to be deleted is deleted from the phrase library, or the phrase with the lowest frequency of use in the phrase library is deleted from the phrase library.
  • the embodiment of the invention further provides a terminal device, including:
  • An area display module for displaying a character editing area
  • An operation detecting module configured to detect whether the user operation corresponds to the operation of the set call preset phrase library, wherein the phrase library stores at least one preset phrase;
  • a link module configured to link the character editing area and the phrase library if the user operation corresponds to the operation of the set call preset phrase library
  • a pop-up window module configured to display a preset phrase in the phrase library in a pop-up window
  • a target phrase determining module configured to determine a target phrase selected by the user from the displayed preset phrases
  • a phrase input module configured to input the target phrase into the character editing area by using a link of the phrase library and the character editing area.
  • the character editing area implements character editing by calling an editing function by an editable text control, and the editable text control has a link interface with the phrase library;
  • the operation detection module includes:
  • an operation detecting unit configured to detect whether a user operation corresponds to the set operation of activating the link interface
  • the link module includes:
  • a calling unit configured to invoke the link interface to link the character editing area and the phrase library if the user operation corresponds to the set operation of activating the link interface.
  • the activation operation detecting unit includes:
  • a shortcut operation detecting subunit configured to detect whether a user operation corresponds to the set shortcut operation, the shortcut operation being configured to activate the link interface
  • an icon operation detecting subunit configured to detect whether the user operation corresponds to the set operation of calling the first icon, the first icon being configured to trigger activation of the link interface; if the user operation is detected and Corresponding to the operation of retrieving the first icon, the first interface is invoked; detecting whether the user operation corresponds to the operation of clicking the first icon, and the link interface is activated when the first icon is clicked.
  • the embodiment of the present invention can detect that the user operation meets the setting after the terminal device displays the character editing area by presetting a phrase library that stores at least one preset phrase and can be linked with the character editing area.
  • a phrase library that stores at least one preset phrase and can be linked with the character editing area.
  • the terminal device can use the phrase library and the phrase library A link of the character editing area, the target phrase is input into the character editing area, and the user inputs the shortcut of the phrase without using the input method.
  • the embodiment of the invention can realize the shortcut input of the phrase, reduce the operation of the user to edit the phrase by the input method, and reduce the workload of the user inputting the phrase.
  • FIG. 1 is a flowchart of a phrase input method according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for detecting whether a user operation corresponds to a set operation according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of displaying a first icon in a character input box scenario according to an embodiment of the present invention. intention;
  • FIG. 5 is a flowchart of a method for storing a preset phrase in a phrase library according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a method for displaying a preset phrase in a pop-up window according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a phrase mark provided by an embodiment of the present invention.
  • FIG. 8 is a structural block diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of an operation detecting module according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of a link module according to an embodiment of the present invention.
  • FIG. 11 is a structural block diagram of an activation operation detecting unit according to an embodiment of the present invention.
  • FIG. 12 is another structural block diagram of an activation operation detecting unit according to an embodiment of the present invention.
  • FIG. 13 is a block diagram of another structure of a terminal device according to an embodiment of the present invention.
  • FIG. 14 is a block diagram showing still another structure of a terminal device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for inputting a phrase according to an embodiment of the present invention.
  • the method is applicable to a terminal device. Referring to FIG. 1, the method may include:
  • Step S100 displaying a character editing area
  • the character editing area can be regarded as an area for the user to edit characters displayed in the content editing interface after the terminal device opens the loaded application and enters the content editing interface of the application;
  • the character editing area may be a character input box;
  • the character input box is a text box, an input box provided by the instant messaging application for the user to input characters, and an input box such as a browser search box for the user to input characters;
  • the character editing area may also be a body content editing area of editable text such as word or text.
  • Step S110 detecting whether the user operation corresponds to the operation of the set call preset phrase library, wherein the phrase library stores at least one preset phrase;
  • the terminal device is preset with a phrase library, and the phrase library is preset with at least one common phrase;
  • the preset phrase in the phrase library may be a phrase of a phrase library pre-recorded by the manufacturer when the terminal device leaves the factory; the preset phrase in the phrase library may also be edited into the phrase library during the process of using the terminal device by the user.
  • Common phrases may be a phrase of a phrase library pre-recorded by the manufacturer when the terminal device leaves the factory; the preset phrase in the phrase library may also be edited into the phrase library during the process of using the terminal device by the user.
  • the embodiment of the present invention can also support the terminal device to automatically learn the phrase commonly used by the user, and then input the learned phrase into the phrase library; for example, the terminal device can analyze the character input by the user history, and analyze the character input from the history.
  • the user uses a phrase with a higher frequency to record the phrase that is frequently used by the user into the phrase library;
  • the terminal device After the terminal device displays the character editing area, the terminal device can monitor the user operation (the user operation can be performed in the character editing area, or can be performed in other areas of the interface where the character editing area is located, specifically according to the actual situation), and judge Whether the monitored user operation corresponds to the operation of the set call preset phrase library;
  • the specific form of the operation of the set preset phrase library can be set according to actual conditions.
  • Step S120 If the user operation corresponds to the operation of calling the preset preset phrase library, linking the character editing area and the phrase library;
  • the interface of the character editing area for inputting characters can receive the phrase in the phrase library, so that the phrase in the phrase library can input characters through the link of the phrase library and the character editing area. In the editing area.
  • Step S130 Display a preset phrase in the phrase library in a pop-up window form
  • Displaying the preset phrase in the phrase library through the pop-up window allows the user to select the phrase that currently needs to input the character editing area.
  • Step S140 determining a target phrase selected by the user from the displayed preset phrases
  • the number of target phrases can be one or more.
  • Step S150 Input the target phrase into the character editing area by using a link between the phrase library and the character editing area.
  • the embodiment of the present invention can detect that the user operation meets the set call after the terminal device displays the character editing area by presetting a phrase library that stores at least one preset phrase and can be linked with the character editing area.
  • a phrase library that stores at least one preset phrase and can be linked with the character editing area.
  • the terminal device can pass the phrase library and the character Edit the link of the area, input the target phrase into the character editing area, Realize the user's quick input of the phrase without using the input method.
  • the embodiment of the invention can realize the shortcut input of the phrase, reduce the operation of the user to edit the phrase by the input method, and reduce the workload of the user inputting the phrase.
  • the character editing area generally corresponds to an application that is opened by the terminal device. Therefore, in the embodiment of the present invention, the phrase library may also correspond to the application. Specifically, the embodiment of the present invention may set a phrase library corresponding to an application. , so that when the application is enabled to display the character editing area of the application, the character editing area of the application and the phrase library of the application are linked by the set operation of calling the preset phrase library, and the character editing area of the application is implemented. Quickly enter phrases in the phrase library;
  • the inventor of the present invention finds that the shortcut input method of the phrase has the following problems in the process of implementing the phrase shortcut input by using the phrase library corresponding to the application:
  • a plurality of applications are often loaded in the terminal device, and the phrase library and the application are corresponding to each other, and the shortcut input mode of the phrase is implemented, so that the application of the phrase fast input in the terminal device needs to separately set the corresponding phrase library; that is, how many are needed To realize the application of phrase shortcut input, how many phrase libraries need to be set, one application corresponds to one phrase library; this will result in a large number of phrase libraries in the terminal device, increasing the data storage burden of the terminal device.
  • an embodiment of the present invention provides a preferred solution, so that multiple applications loaded in the terminal device can share a single phrase library; the core of the preferred solution is to add a link to the phrase library in the editable text control provided by the system. Interface; an editable text control is provided for the system of the terminal device by calling an editing function to implement character editing in the character editing area; if an editable text control is used, an editing function such as copying, pasting, input method setting, etc. can be realized. Called to implement character editing in the character editing area;
  • FIG. 2 shows another flowchart of the phrase input method provided by the embodiment of the present invention.
  • the method may include:
  • Step S200 Display a character editing area, where the character editing area implements character editing by calling an editing function, where the editable text control has a link interface with the phrase library;
  • a list of editable functions that can be called when the character is edited can be set; if the character can be edited in the list, an edit function such as a copy function, a paste, or the like; in the embodiment of the present invention, the list is A link interface with the phrase library may be added;
  • the editable text control can be an EditText control
  • the form of the editable text control may be different.
  • the editable text control in the IOS system may not be represented by the EditText control, but this does not hinder the embodiment of the present invention for the editable text control. Confirmed.
  • Step S210 detecting whether the user operation corresponds to the set operation of activating the link interface, wherein the phrase library stores at least one preset phrase;
  • Step S220 If the user operation corresponds to the set operation of activating the link interface, calling the link interface, linking the character editing area and the phrase library;
  • Step S230 displaying a preset phrase in the phrase library in a pop-up window form
  • Step S240 determining a target phrase selected by the user from the displayed preset phrases
  • Step S250 Input the target phrase into the character editing area by using a link between the phrase library and the character editing area.
  • the embodiment of the present invention can implement the call of the same phrase library by multiple applications.
  • the user can operate the link to edit the character editing area and the application.
  • the same phrase library realizes quick input of the phrase in the character editing area; the terminal device only needs to preset a phrase library, and can realize the shortcut input of the phrase in the character editing area of the multi-application, thereby greatly reducing the data storage burden of the terminal device.
  • the user may use a shortcut operation in the character editing area to activate the link interface to link the character editing area and the phrase library;
  • the embodiment of the present invention can monitor user operations and detect whether the user operation corresponds to the set shortcut operation, and the shortcut operation is configured to activate the link interface; thereby, when the user operation corresponds to the set shortcut operation, Activating the link interface to link the character editing area and the phrase library;
  • the shortcut operation may be an operation of double-clicking a character editing area, such as double-clicking a character input box; or other custom shortcut operations.
  • the display architecture of the character editing area is finalized when the application development is completed.
  • the embodiment of the present invention can be used to trigger the activation by calling the display in the character editing area. Determining the activation of the link interface by the first icon of the link interface, and then clicking the first icon by the user;
  • FIG. 3 illustrates detecting whether a user operation and a set activation are provided by an embodiment of the present invention.
  • Step S300 detecting whether the user operation corresponds to the set operation of calling the first icon, the first icon being configured to trigger activation of the link interface;
  • the set operation of calling the first icon may also be a custom setting.
  • Step S310 if it is detected that the user operation corresponds to the operation of calling the first icon, the first icon is displayed and displayed;
  • Step S320 detecting whether the user operation corresponds to an operation of clicking the first icon, and when the first icon is clicked, the link interface is activated.
  • FIG. 4 is a schematic diagram showing the first icon displayed in the character input box scene; referring to FIG. 4, after the character input box is displayed, if the user presses the screen in the display interface of the character input box, the terminal device will Retrieving the first icon (as shown in the "Quick Phrase” icon in Figure 4), and displaying the first icon in the character input box, as shown in the left part of Figure 4; when the user clicks on the first icon, the link interface is activated
  • the character editing area is linked with the phrase library, and at the same time, the preset phrase in the phrase library is displayed in a pop-up window on the display interface, as shown in the right part of FIG.
  • FIG. 5 is a flowchart of a method for storing a preset phrase in the phrase library provided by the embodiment of the present invention. Referring to FIG. 5, the method may be include:
  • Step S400 determining that the user inputs the historical character of the terminal device by using an input method
  • the terminal device can periodically learn the phrase commonly used by the user, and the terminal device can determine, in the time range from the current time to the current time, the user inputs the historical character of the terminal device by using an input method; 1 day, 7 days, etc., can be customized settings;
  • the user equipment may be triggered by the user to learn a phrase commonly used by the user.
  • the terminal device may determine that the user inputs the history of the terminal device by using an input method within a predetermined time period. character;
  • Step S410 extracting at least one phrase from each historical character according to the set phrase extraction rule
  • phrase extraction rules there are a variety of phrase extraction rules in the prior art, and which phrase extraction rules are specifically selected.
  • the embodiments of the present invention can be selected according to actual conditions.
  • Step S420 determining whether there is a phrase in the extracted phrase that the frequency of occurrence reaches a threshold
  • Step S430 if yes, enter the phrase whose appearance frequency reaches the threshold into the phrase library.
  • the embodiment of the present invention can automatically input a phrase with a high frequency of use by the user into the phrase library, so as to realize automatic learning of the common phrase of the user by the terminal device.
  • the embodiment of the present invention may use each preset phrase in a pop-up window.
  • the phrase with high frequency is prioritized and displayed, thereby increasing the possibility of the user hitting the target phrase from the preset phrases displayed in the front row, and reducing the time for the user to browse the preset phrase;
  • FIG. 6 is a flowchart of a method for displaying a preset phrase in a pop-up window according to an embodiment of the present invention.
  • the method may include:
  • Step S500 determining a frequency of use of each preset phrase in the phrase library
  • the embodiment of the present invention may set a usage frequency record table for recording the frequency of use of each preset phrase; when the preset phrase in the phrase library is input into the character editing area once, the embodiment of the present invention may be Recording the frequency of use of the preset phrase by using the frequency record table to increase the frequency of use of each preset phrase;
  • the embodiment of the present invention can adjust the usage frequency record table to determine the frequency of use of each preset phrase.
  • Step S510 Display each preset phrase in a pop-up window in order according to the frequency of use from high to low.
  • the single-page pop-up window may not completely display each preset phrase in the phrase library, and the embodiment of the present invention may display a predetermined number of preset phrases on one page, and display the phrase library in a multi-page pop-up window.
  • Each preset phrase; a page turning option can be set in the pop-up window, and the number of pages currently displayed by the pop-up window can be triggered by the user's page turning operation.
  • the embodiment of the present invention may select at least one target phrase at a time; the embodiment of the present invention may mark the phrase initially selected by the user, and determine the phrase in the marked state as the target phrase when the user ends the phrase selection;
  • the terminal device may mark the phrase selected by the user to obtain at least one candidate phrase that is marked; thereby determining the marked candidate phrase as the target phrase when the user determines to end the phrase selection;
  • FIG. 7 shows a schematic diagram of a phrase mark, and a multi-selection option can be set in the pop-up window, when the user triggers the multiple selection
  • the embodiment of the present invention may mark the phrase selected by the user; or the pop-up window directly marks the phrase selected by the user in the form of a mark, without setting a multi-selection option; when the user clicks “Add” as shown in FIG. 7
  • the end phrase selection is determined, and the marked phrase "Is there, something to find you” and "Old place to see” are determined as the target phrase and input into the character editing area.
  • the embodiment of the present invention may also limit the number of preset phrases in the phrase library; when the number of preset phrases in the phrase library reaches a set limit, there is a phrase newly added to the phrase library (which may be edited by the user)
  • the phrase to be added to the phrase library may also be a new phrase automatically learned by the terminal device; the embodiment of the present invention may input the newly added phrase into the phrase library, and simultaneously delete the phrase to be deleted selected by the user from the phrase library.
  • the embodiment of the present invention may also delete the phrase with the lowest frequency of use in the phrase library from the phrase library when the newly added phrase is entered into the phrase library.
  • the user can pre-enter the phrase "I am in the unit” in the phrase library of the mobile phone;
  • the mobile phone When the user arrives at the unit, the mobile phone can be used to open the short message editing interface, and the recipient of the short message is set to be a family member who needs to report the security;
  • the user can press and hold the mobile phone screen, and the mobile phone displays the icon of “quick phrase” in the short message input box;
  • the mobile phone imports the phrase “I am in the unit” in the phrase library into the short message input box;
  • the invention can realize the shortcut input of the phrase without using the input method by the user, reduces the operation of the user to edit the phrase by the input method, and reduces the workload of the user inputting the phrase.
  • the terminal device provided by the embodiment of the present invention is described below.
  • the following description may refer to the phrase input method described above.
  • FIG. 8 is a structural block diagram of a terminal device according to an embodiment of the present invention, and FIG. 8 may be configured on The structure of the phrase input device for implementing the phrase input method in the terminal device.
  • the terminal device may include:
  • the area display module 100 is configured to display a character editing area
  • the operation detecting module 200 is configured to detect whether the user operation corresponds to the operation of the set preset preset phrase library, wherein the phrase library stores at least one preset phrase;
  • the link module 300 is configured to link the character editing area and the phrase library if the user operation corresponds to the operation of the set call preset phrase library;
  • a pop-up window module 400 configured to display a preset phrase in the phrase library in a pop-up window form
  • a target phrase determining module 500 configured to determine a target phrase selected by the user from the displayed preset phrases
  • the phrase input module 600 is configured to input the target phrase into the character editing area by using a link between the phrase library and the character editing area.
  • FIG. 9 illustrates an embodiment of the present invention.
  • An optional structure of the operation detection module 200 is provided. Referring to FIG. 9, the operation detection module 200 may include:
  • the activation operation detecting unit 210 is configured to detect whether the user operation corresponds to the set operation of activating the link interface.
  • FIG. 10 shows an optional structure of the link module 300 according to the embodiment of the present invention.
  • the link module 300 may include:
  • the calling unit 310 is configured to invoke the link interface to link the character editing area and the phrase library if the user operation corresponds to the set operation of activating the link interface.
  • FIG. 11 shows an optional structure of the activation operation detecting unit 210 according to the embodiment of the present invention.
  • the activation operation detecting unit 210 may include:
  • the shortcut operation detecting sub-unit 2101 is configured to detect whether the user operation corresponds to the set shortcut operation, and the shortcut operation is configured to activate the link interface.
  • FIG. 12 illustrates another optional structure of the activation operation detecting unit 210 according to the embodiment of the present invention.
  • the activation operation detecting unit 210 may include:
  • the icon operation detecting subunit 2111 is configured to detect whether the user operation and the set call the first icon Correspondingly, the first icon is configured to trigger activation of the link interface; if it is detected that the user operation corresponds to the operation of calling the first icon, the first icon is displayed; and the user operation is detected The operation of clicking the first icon corresponds, and when the first icon is clicked, the link interface is activated.
  • FIG. 13 is a block diagram showing another structure of the terminal device according to the embodiment of the present invention.
  • the terminal device may include:
  • the historical character determining module 700 is configured to determine that the user inputs the historical character of the terminal device by using an input method
  • the extracting module 800 is configured to extract at least one phrase from each historical character according to the set phrase extraction rule;
  • the frequency determining module 900 is configured to determine whether there is a phrase in the extracted phrase that the frequency of occurrence reaches a threshold;
  • the entry module 1000 is configured to, if present, enter a phrase whose appearance frequency reaches a threshold into the phrase library.
  • the pop-up window module 400 can sequentially display each preset phrase in the pop-up window according to the frequency of use of the phrase.
  • the pop-up window module 400 is specifically configured to determine the frequency of use of each preset phrase in the phrase library. According to the order of frequency of use, the preset phrases are displayed in the pop-up window in order.
  • the target phrase determining module 500 may mark the phrase selected by the user to implement the determination of the at least one target phrase.
  • the target phrase determining module 500 may be specifically configured to mark the phrase selected by the user to obtain a At least one candidate phrase marked; when the user determines to end the phrase selection, the marked candidate phrase is determined as the target phrase.
  • the embodiment of the present invention may limit the number of preset phrases in the phrase library to a set limit; correspondingly, FIG. 14 shows another structural block diagram of the terminal device provided by the embodiment of the present invention, and FIG. 8 As shown in FIG. 14, the terminal device may include:
  • a new phrase adding module 1100 configured to: if the number of preset phrases in the phrase library reaches a set limit, there is a phrase newly added to the phrase library;
  • a phrase deleting module 1200 configured to enter a newly added phrase into the phrase library, and delete a user-selected phrase to be deleted from the phrase library, or use a phrase with the lowest frequency of use in the phrase library Deleted in the phrase library.
  • the terminal device provided by the embodiment of the invention can implement the shortcut input of the phrase without using the input method, and reduces the operation of the user to edit the phrase by the input method, thereby reducing the workload of the user inputting the phrase.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种短语输入方法及终端设备,其中方法包括:显示字符编辑区域(S100);检测用户操作是否与设定的调用预置短语库的操作相应,其中,所述短语库存储有至少一个预设短语(S110);若用户操作与设定的调用预置短语库的操作相应,链接所述字符编辑区域和所述短语库(S120);将所述短语库中的预设短语以弹窗形式显示(S130);确定用户从所显示的预设短语中选定的目标短语(S140);将所述目标短语通过所述短语库与所述字符编辑区域的链接,输入所述字符编辑区域中(S150)。该方法可实现短语的快捷输入,减少用户通过输入法编辑短语的操作,减轻用户输入短语的工作量。

Description

一种短语输入方法及终端设备
本申请要求于2015年7月22日提交中国专利局、申请号为201510433900.X、发明名称为“一种短语输入方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及信息处理技术领域,具体涉及一种短语输入方法及终端设备。
背景技术
短语是用户在日常沟通、写作编辑中常用的语言单位,随着手机、平板电脑、笔记本电脑等终端设备的普及,用户在使用终端设备进行沟通、写作时,在终端设备中输入短语已成为常态;如用户每天到单位上班时,为向家人报平安,常会在到单位时,编辑如“我到单位了”的短信息发送给家人。
目前用户在终端设备中输入短语的方式主要为:用户调用输入法,通过输入法在终端设备中输入中文、英文等字符,从而通过输入的字符组成短语,实现短语在终端设备中的输入。
本发明的发明人在研究过程中发现,现有用户在终端设备中输入短语的方式存在如下问题:由于用户在使用短语时,常会存在使用较为频繁的常用短语;若以现有通过输入法输入字符,实现短语输入的方式,将使得用户存在重复编辑常用短语的情况,长此以往,用户输入短语的工作量将非常大。
因此,如何在终端设备中,实现常用短语的快捷输入,以减轻用户输入短语的工作量,成为本领域技术人员需要考虑的问题。
发明内容
有鉴于此,本发明实施例提供一种短语输入方法及终端设备,以在终端设备中实现常用短语的快捷输入,减轻用户输入短语的工作量。
为实现上述目的,本发明实施例提供如下技术方案:
一种短语输入方法,包括:
显示字符编辑区域;
检测用户操作是否与设定的调用预置短语库的操作相应,其中,所述短语库存储有至少一个预设短语;
若用户操作与设定的调用预置短语库的操作相应,链接所述字符编辑区域和所述短语库;
将所述短语库中的预设短语以弹窗形式显示;
确定用户从所显示的预设短语中选定的目标短语;
将所述目标短语通过所述短语库与所述字符编辑区域的链接,输入所述字符编辑区域中。
其中,所述字符编辑区域通过可编辑文本控件调用编辑函数实现字符编辑,所述可编辑文本控件内置有与所述短语库的链接接口;
所述检测用户操作是否与设定的调用预置短语库的操作相应包括:
检测用户操作是否与设定的激活所述链接接口的操作对应;
所述链接所述字符编辑区域和所述短语库包括:
调用所述链接接口,链接所述字符编辑区域和所述短语库。
其中,所述检测用户操作是否与设定的激活所述链接接口的操作对应包括:
检测用户操作是否与设定的快捷操作相应,所述快捷操作被配置为激活所述链接接口;
或,检测用户操作是否与设定的调取第一图标的操作相应,所述第一图标被配置为触发激活所述链接接口;若检测到用户操作与所述调取第一图标的操作相应,调取显示所述第一图标;检测用户操作是否与点击所述第一图标的操作相应,所述第一图标被点击时,所述链接接口被激活。
其中,所述短语库存储预设短语的过程包括:
确定用户通过输入法,输入所述终端设备的历史字符;
按照设定短语提取规则,从各历史字符中提取出至少一个短语;
判断提取出的短语中是否存在出现频率达到阈值的短语;
若存在,将所述出现频率达到阈值的短语录入所述短语库。
其中,所述将所述短语库中的预设短语以弹窗形式显示包括:
确定所述短语库中各预设短语的使用频率;
依据使用频率由高至低的顺序,依序在弹窗中显示各预设短语。
其中,所述确定用户从所显示的预设短语中选定的目标短语包括:
对用户选定的短语进行标记,得到被标记的至少一个候选短语;
在用户确定结束短语选择时,将被标记的候选短语确定为目标短语。
其中,所述短语库中预设短语的数量限制为设定限值;所述方法还包括:
若所述短语库中预设短语的数量达到设定限值时,存在新加入所述短语库的短语;
将新加入的短语录入所述短语库,并将用户选定的待删除短语从所述短语库中删除,或者,将所述短语库中使用频率最低的短语从所述短语库中删除。
本发明实施例还提供一种终端设备,包括:
区域显示模块,用于显示字符编辑区域;
操作检测模块,用于检测用户操作是否与设定的调用预置短语库的操作相应,其中,所述短语库存储有至少一个预设短语;
链接模块,用于若用户操作与设定的调用预置短语库的操作相应,链接所述字符编辑区域和所述短语库;
弹窗模块,用于将所述短语库中的预设短语以弹窗形式显示;
目标短语确定模块,用于确定用户从所显示的预设短语中选定的目标短语;
短语输入模块,用于将所述目标短语通过所述短语库与所述字符编辑区域的链接,输入所述字符编辑区域中。
其中,所述字符编辑区域通过可编辑文本控件调用编辑函数实现字符编辑,所述可编辑文本控件内置有与所述短语库的链接接口;
所述操作检测模块包括:
激活操作检测单元,用于检测用户操作是否与设定的激活所述链接接口的操作对应;
所述链接模块包括:
调用单元,用于若用户操作与设定的激活所述链接接口的操作对应,则调用所述链接接口,链接所述字符编辑区域和所述短语库。
其中,所述激活操作检测单元包括:
快捷操作检测子单元,用于检测用户操作是否与设定的快捷操作相应,所述快捷操作被配置为激活所述链接接口;
或,图标操作检测子单元,用于检测用户操作是否与设定的调取第一图标的操作相应,所述第一图标被配置为触发激活所述链接接口;若检测到用户操作与所述调取第一图标的操作相应,调取显示所述第一图标;检测用户操作是否与点击所述第一图标的操作相应,所述第一图标被点击时,所述链接接口被激活。
基于上述技术方案,本发明实施例通过预置存储有至少一个预设短语,且可与字符编辑区域相链接的短语库,可在终端设备显示字符编辑区域后,检测到用户操作符合设定的调用预置短语库的操作时,链接所述字符编辑区域和所述短语库;使得用户在以弹窗显示的预设短语中选定目标短语后,终端设备可通过所述短语库与所述字符编辑区域的链接,将目标短语输入所述字符编辑区域中,实现用户在不采用输入法的情况下,短语的快捷输入。本发明实施例可实现短语的快捷输入,减少用户通过输入法编辑短语的操作,减轻用户输入短语的工作量。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的短语输入方法的流程图;
图2为本发明实施例提供的短语输入方法的另一流程图;
图3为本发明实施例提供的检测用户操作是否与设定的操作对应的方法流程图;
图4为本发明实施例提供的在字符输入框场景下,调取显示第一图标的示 意图;
图5为本发明实施例提供的短语库存储预设短语的方法流程图;
图6为本发明实施例提供的将预设短语以弹窗形式显示的方法流程图;
图7为本发明实施例提供的短语标记示意图;
图8为本发明实施例提供的终端设备的结构框图;
图9为本发明实施例提供的操作检测模块的结构框图;
图10为本发明实施例提供的链接模块的结构框图;
图11为本发明实施例提供的激活操作检测单元的结构框图;
图12为本发明实施例提供的激活操作检测单元的另一结构框图;
图13为本发明实施例提供的终端设备的另一结构框图;
图14为本发明实施例提供的终端设备的再一结构框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为本发明实施例提供的短语输入方法的流程图,该方法可应用于终端设备,参照图1,该方法可以包括:
步骤S100、显示字符编辑区域;
字符编辑区域可以认为是终端设备在开启所装载的某一应用,进入该应用的内容编辑界面后,内容编辑界面中所展示的供用户编辑字符的区域;
字符编辑区域可以是字符输入框;字符输入框如短信、即时通讯应用所提供的供用户输入字符的输入框,又如浏览器的搜索框等可供用户输入字符的输入框;
字符编辑区域也可以是word、text等可编辑文本的正文内容编辑区域。
步骤S110、检测用户操作是否与设定的调用预置短语库的操作相应,其中,所述短语库存储有至少一个预设短语;
终端设备本地预置有短语库,该短语库预先设置有至少一个常用短语;
可选的,短语库中的预设短语可以为终端设备出厂时,厂商预先录入的短语库的短语;短语库中的预设短语也可以是用户在使用终端设备的过程中,编辑入短语库的常用短语;
可选的,本发明实施例也可支持终端设备自动学习用户常用的短语,而后将学习到的短语录入短语库中;如终端设备可分析用户历史输入的字符,从历史输入的字符中分析出用户使用频率较高的短语,将该用户使用频率较高的短语录入短语库中;
当终端设备显示字符编辑区域后,终端设备可监控用户操作(用户操作可在字符编辑区域中进行,也可在字符编辑区域所在界面的其他区域进行,具体可视实际情况设定),并判断所监控的用户操作是否与设定的调用预置短语库的操作相应;
可选的,设定的调用预置短语库的操作的具体形式,可根据实际情况设定。
步骤S120、若用户操作与设定的调用预置短语库的操作相应,链接所述字符编辑区域和所述短语库;
链接所述字符编辑区域和所述短语库表示,字符编辑区域用于录入字符的接口可接收短语库中的短语,从而使得短语库中的短语可通过短语库与字符编辑区域的链接,输入字符编辑区域中。
步骤S130、将所述短语库中的预设短语以弹窗形式显示;
通过弹窗形式显示短语库中的预设短语,可方便用户选择当前需要输入字符编辑区域的短语。
步骤S140、确定用户从所显示的预设短语中选定的目标短语;
目标短语的数量可以为1个,也可以为多个。
步骤S150、将所述目标短语通过所述短语库与所述字符编辑区域的链接,输入所述字符编辑区域中。
可以看出,本发明实施例通过预置存储有至少一个预设短语,且可与字符编辑区域相链接的短语库,可在终端设备显示字符编辑区域后,检测到用户操作符合设定的调用预置短语库的操作时,链接所述字符编辑区域和所述短语库;使得用户在以弹窗显示的预设短语中选定目标短语后,终端设备可通过所述短语库与所述字符编辑区域的链接,将目标短语输入所述字符编辑区域中, 实现用户在不采用输入法的情况下,短语的快捷输入。本发明实施例可实现短语的快捷输入,减少用户通过输入法编辑短语的操作,减轻用户输入短语的工作量。
可选的,字符编辑区域一般对应于终端设备所开启的应用,因此本发明实施例中,短语库也可以与应用对应;具体的,本发明实施例可通过设置与某一应用对应的短语库,从而在该应用启用,显示该应用的字符编辑区域时,通过设定的调用预置短语库的操作,链接该应用的字符编辑区域和该应用的短语库,实现在该应用的字符编辑区域中快捷的录入短语库中的短语;
然而,本发明的发明人在采用短语库与应用对应,进行短语快捷输入的实现过程中,发现这种短语快捷输入的方式存在如下问题:
终端设备中往往装载有多个应用,以短语库与应用对应,实现短语快捷输入的方式,将使得终端设备中需要进行短语快捷输入的应用均需分别设置对应的短语库;即有多少个需实现短语快捷输入的应用,就需设置多少个短语库,一个应用对应一个短语库;这将导致终端设备中存在大量的短语库,增大终端设备的数据存储负担。
基于此,本发明实施例提供一种优选方案,使得终端设备内装载的多个应用可共用一个短语库;该优选方案的核心在于,在系统提供的可编辑文本控件中添加与短语库的链接接口;可编辑文本控件为终端设备的系统提供的通过调用编辑函数,在字符编辑区域中实现字符编辑的控件;如采用可编辑文本控件,可实现复制、黏贴、输入法设置等编辑函数的调用,从而在字符编辑区域中实现字符编辑;
对应的,图2示出了本发明实施例提供的短语输入方法的另一流程图,参照图2,该方法可以包括:
步骤S200、显示字符编辑区域,所述字符编辑区域通过可编辑文本控件调用编辑函数实现字符编辑,所述可编辑文本控件内置有与所述短语库的链接接口;
可选的,可编辑文本控件中可设置有字符编辑时,可调用的编辑函数的列表;如列表中可对应字符编辑时,复制函数、黏贴等编辑函数;在本发明实施例中该列表可添加与所述短语库的链接接口;
可选的,以安卓系统为例,可编辑文本控件可以为EditText控件;
显然,在不同的操作系统中,可编辑文本控件的形式可能不同,如IOS系统中可编辑文本控件可能不是以EditText控件的方式表现,但这并不妨碍本发明实施例对于可编辑文本控件的认定。
步骤S210、检测用户操作是否与设定的激活所述链接接口的操作对应,其中,所述短语库存储有至少一个预设短语;
步骤S220、若用户操作与设定的激活所述链接接口的操作对应,调用所述链接接口,链接所述字符编辑区域和所述短语库;
步骤S230、将所述短语库中的预设短语以弹窗形式显示;
步骤S240、确定用户从所显示的预设短语中选定的目标短语;
步骤S250、将所述目标短语通过所述短语库与所述字符编辑区域的链接,输入所述字符编辑区域中。
采用图2所示方法,本发明实施例可实现多应用对于同一短语库的调用,当用户在任一应用的字符编辑区域进行字符编辑时,均可通过用户操作,链接应用的字符编辑区域和该同一短语库,实现在字符编辑区域中快捷输入短语;终端设备仅需预置一个短语库,即可在多应用的字符编辑区域中实现短语的快捷输入,大幅减轻了终端设备的数据存储负担。
可选的,用户可在字符编辑区域中采用快捷操作,激活所述链接接口,以链接所述字符编辑区域和所述短语库;
本发明实施例可监控用户操作,并检测用户操作是否与设定的快捷操作相应,所述快捷操作被配置为激活所述链接接口;从而在用户操作与所述设定的快捷操作相应时,激活所述链接接口,以链接所述字符编辑区域和所述短语库;
可选的,快捷操作可以是双击字符编辑区域的操作,如双击字符输入框;也可以是其他自定义的快捷操作。
可选的,由于应用开发完成时,字符编辑区域的显示架构已定型;为兼容现有的字符编辑区域的显示架构,本发明实施例可通过在字符编辑区域中调取显示用于触发激活所述链接接口的第一图标,而后由用户点击第一图标的方式,实现所述链接接口的激活;
对应的,图3示出了本发明实施例提供的检测用户操作是否与设定的激活 所述链接接口的操作对应的方法流程图,参照图3,该方法可以包括:
步骤S300、检测用户操作是否与设定的调取第一图标的操作相应,所述第一图标被配置为触发激活所述链接接口;
设定的调取第一图标的操作如长按屏幕,在屏幕上滑动预定轨迹等,也可以是自定义设定的。
步骤S310、若检测到用户操作与所述调取第一图标的操作相应,调取显示所述第一图标;
步骤S320、检测用户操作是否与点击所述第一图标的操作相应,所述第一图标被点击时,所述链接接口被激活。
图4示出了在字符输入框场景下,调取显示第一图标的示意图;参照图4,在显示字符输入框后,若用户在字符输入框的显示界面中长按屏幕,则终端设备将调取第一图标(如图4所示“快捷短语”图标),并将第一图标显示在字符输入框中,如图4左部分;当用户点击第一图标时,所述链接接口被激活,所述字符编辑区域和所述短语库相链接,同时,所述短语库中的预设短语以弹窗形式显示在显示界面,如图4右部分。
可选的,本发明实施例可提供有终端设备自动学习用户常用短语的机制;图5示出了本发明实施例提供的短语库存储预设短语的方法流程图,参照图5,该方法可以包括:
步骤S400、确定用户通过输入法,输入所述终端设备的历史字符;
可选的,终端设备可定时学习用户常用的短语,终端设备可在上一定时时间至当前定时时间的时间范围内,确定用户通过输入法,输入所述终端设备的历史字符;定时时间可以为1天、7天等,具体可自定义设定;
可选的,也可由用户操作触发终端设备学习用户常用的短语,当用户触发终端设备学习用户常用的短语时,终端设备可确定预定时间段内,用户通过输入法,输入所述终端设备的历史字符;
所确定的历史字符可能有多条,本发明实施例可汇总该多条历史字符。
步骤S410、按照设定短语提取规则,从各历史字符中提取出至少一个短语;
现有技术中存在多种短语提取规则,具体选用哪种短语提取规则,本发明实施例可根据实际情况选定。
步骤S420、判断提取出的短语中是否存在出现频率达到阈值的短语;
步骤S430、若存在,将所述出现频率达到阈值的短语录入所述短语库。
通过图5所示方法,本发明实施例可将用户使用频率较高的短语自动录入短语库中,实现终端设备对于用户常用短语的自动学习。
可选的,由于短语库中可能有多条预设短语,为使得用户能够更快的从短语库中命中目标短语;本发明实施例可在以弹窗形式显示各预设短语时,将使用频率高的短语优先排序展示,从而提高用户从前排展示的预设短语中命中目标短语的可能性,减少用户浏览预设短语的时间;
对应的,图6示出了本发明实施例提供的将预设短语以弹窗形式显示的方法流程图,参照图6,该方法可以包括:
步骤S500、确定所述短语库中各预设短语的使用频率;
可选的,本发明实施例可设置使用频率记录表,用于记录各预设短语的使用频率;当短语库中的预设短语被输入到字符编辑区域中一次时,本发明实施例可在使用频率记录表中记录该预设短语的使用频率加一,从而实现各预设短语的使用频率的记录;
当需以弹窗形式显示短语库中的各预设短语时,本发明实施例可调取该使用频率记录表,确定各预设短语的使用频率。
步骤S510、依据使用频率由高至低的顺序,依序在弹窗中显示各预设短语。
可选的,由于单页弹窗可能没法完全显示短语库中的各预设短语,本发明实施例可以一页显示预定数量的预设短语,采用多页弹窗的方式显示短语库中的各预设短语;弹窗中可设置翻页选项,弹窗当前显示的页数可由用户的翻页操作触发。
可选的,本发明实施例可一次选择至少一个目标短语;本发明实施例可对用户初步选定的短语进行标记,并在用户结束短语选择时,将处于标记状态的短语确定为目标短语;
具体的,在确定目标短语时,终端设备可对用户选定的短语进行标记,得到被标记的至少一个候选短语;从而在用户确定结束短语选择时,将被标记的候选短语确定为目标短语;
图7示出了短语标记示意图,弹窗中可设置多选选项,当用户触发该多选 选项时,本发明实施例可对用户选定的短语进行标记;也可以是弹窗直接以标记形式标记用户选定的短语,不需设置多选选项;当用户点击图7所示“添加”选项时,确定结束短语选择,将被标记的短语“在吗,有事找你”、“老地方见”确定为目标短语,并输入到字符编辑区域中。
可选的,本发明实施例也可限制短语库中预设短语的数量;当短语库中预设短语的数量达到设定限值时,又存在新加入短语库的短语(可以是用户编辑的需加入短语库的短语,也可以是终端设备自动学习的新短语);本发明实施例可将新加入的短语录入所述短语库,同时,将用户选定的待删除短语从所述短语库中删除;可选的,本发明实施例也可在将新加入的短语录入所述短语库时,将所述短语库中使用频率最低的短语从所述短语库中删除。
下面对本发明提供的短语输入方法的一个应用例进行介绍:
用户可预先在手机的短语库中录入“我到单位了”的短语;
当用户到单位后,可使用手机打开短信编辑界面,并设置短信的接收方为需要报平安的家人;
手机显示短信编辑界面后,用户可长按手机屏幕,手机在短信输入框显示“快捷短语”的图标;
用户点击“快捷短语”的图标,使得短信输入框与短语库相链接;同时,手机将短语库中的短语以弹窗形式显示;
用户从所显示的短语中选中“我到单位了”的短语后,手机将短语库中的“我到单位了”的短语导入短信输入框中;
用户点击短信的发送选项,手机将包含“我到单位了”的短信息发送给用户的家人。
本发明可在用户不采用输入法的情况下,实现短语的快捷输入,减少了用户通过输入法编辑短语的操作,减轻了用户输入短语的工作量。
下面对本发明实施例提供的终端设备进行介绍,下文主要描述的是设置于终端设备内的实现短语输入方法的功能模块架构,下文描述内容可与上文描述的短语输入方法相互对应参照。
图8为本发明实施例提供的终端设备的结构框图,图8所示的可以是设置于 终端设备内的用于实现短语输入方法的短语输入装置的结构,参照图8,该终端设备可以包括:
区域显示模块100,用于显示字符编辑区域;
操作检测模块200,用于检测用户操作是否与设定的调用预置短语库的操作相应,其中,所述短语库存储有至少一个预设短语;
链接模块300,用于若用户操作与设定的调用预置短语库的操作相应,链接所述字符编辑区域和所述短语库;
弹窗模块400,用于将所述短语库中的预设短语以弹窗形式显示;
目标短语确定模块500,用于确定用户从所显示的预设短语中选定的目标短语;
短语输入模块600,用于将所述目标短语通过所述短语库与所述字符编辑区域的链接,输入所述字符编辑区域中。
可选的,所述字符编辑区域通过可编辑文本控件调用编辑函数实现字符编辑,所述可编辑文本控件内置有与所述短语库的链接接口;基于此,图9示出了本发明实施例提供的操作检测模块200的一种可选结构,参照图9,操作检测模块200可以包括:
激活操作检测单元210,用于检测用户操作是否与设定的激活所述链接接口的操作对应。
对应的,图10示出了本发明实施例提供的链接模块300的一种可选结构,参照图10,链接模块300可以包括:
调用单元310,用于若用户操作与设定的激活所述链接接口的操作对应,则调用所述链接接口,链接所述字符编辑区域和所述短语库。
可选的,图11示出了本发明实施例提供的激活操作检测单元210的一种可选结构,参照图11,激活操作检测单元210可以包括:
快捷操作检测子单元2101,用于检测用户操作是否与设定的快捷操作相应,所述快捷操作被配置为激活所述链接接口。
可选的,图12示出了本发明实施例提供的激活操作检测单元210的另一种可选结构,参照图12,激活操作检测单元210可以包括:
图标操作检测子单元2111,用于检测用户操作是否与设定的调取第一图标 的操作相应,所述第一图标被配置为触发激活所述链接接口;若检测到用户操作与所述调取第一图标的操作相应,调取显示所述第一图标;检测用户操作是否与点击所述第一图标的操作相应,所述第一图标被点击时,所述链接接口被激活。
可选的,图13示出了本发明实施例提供的终端设备的另一结构框图,结合图8和图13所示,该终端设备可以包括:
历史字符确定模块700,用于确定用户通过输入法,输入所述终端设备的历史字符;
提取模块800,用于按照设定短语提取规则,从各历史字符中提取出至少一个短语;
频率判断模块900,用于判断提取出的短语中是否存在出现频率达到阈值的短语;
录入模块1000,用于若存在,将所述出现频率达到阈值的短语录入所述短语库。
可选的,弹窗模块400可按照短语的使用频率在弹窗中依序显示各预设短语;具体的,弹窗模块400具体可用于,确定所述短语库中各预设短语的使用频率;依据使用频率由高至低的顺序,依序在弹窗中显示各预设短语。
可选的,目标短语确定模块500可对用户选定的短语进行标记,实现至少一个目标短语的确定;具体的,目标短语确定模块500具体可用于,对用户选定的短语进行标记,得到被标记的至少一个候选短语;在用户确定结束短语选择时,将被标记的候选短语确定为目标短语。
可选的,本发明实施例可将短语库中预设短语的数量限制为设定限值;对应的,图14示出了本发明实施例提供的终端设备的再一结构框图,结合图8和图14所示,该终端设备可以包括:
新短语加入模块1100,用于若所述短语库中预设短语的数量达到设定限值时,存在新加入所述短语库的短语;
短语删除模块1200,用于将新加入的短语录入所述短语库,并将用户选定的待删除短语从所述短语库中删除,或者,将所述短语库中使用频率最低的短语从所述短语库中删除。
采用本发明实施例提供的终端设备,可在用户不采用输入法的情况下,实现短语的快捷输入,减少了用户通过输入法编辑短语的操作,减轻了用户输入短语的工作量。
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

  1. 一种短语输入方法,其特征在于,包括:
    显示字符编辑区域;
    检测用户操作是否与设定的调用预置短语库的操作相应,其中,所述短语库存储有至少一个预设短语;
    若用户操作与设定的调用预置短语库的操作相应,链接所述字符编辑区域和所述短语库;
    将所述短语库中的预设短语以弹窗形式显示;
    确定用户从所显示的预设短语中选定的目标短语;
    将所述目标短语通过所述短语库与所述字符编辑区域的链接,输入所述字符编辑区域中。
  2. 根据权利要求1所述的短语输入方法,其特征在于,所述字符编辑区域通过可编辑文本控件调用编辑函数实现字符编辑,所述可编辑文本控件内置有与所述短语库的链接接口;
    所述检测用户操作是否与设定的调用预置短语库的操作相应包括:
    检测用户操作是否与设定的激活所述链接接口的操作对应;
    所述链接所述字符编辑区域和所述短语库包括:
    调用所述链接接口,链接所述字符编辑区域和所述短语库。
  3. 根据权利要求2所述的短语输入方法,其特征在于,所述检测用户操作是否与设定的激活所述链接接口的操作对应包括:
    检测用户操作是否与设定的快捷操作相应,所述快捷操作被配置为激活所述链接接口;
    或,检测用户操作是否与设定的调取第一图标的操作相应,所述第一图标被配置为触发激活所述链接接口;若检测到用户操作与所述调取第一图标的操作相应,调取显示所述第一图标;检测用户操作是否与点击所述第一图标的操作相应,所述第一图标被点击时,所述链接接口被激活。
  4. 根据权利要求1-3任一项所述的短语输入方法,其特征在于,所述短语库存储预设短语的过程包括:
    确定用户通过输入法,输入所述终端设备的历史字符;
    按照设定短语提取规则,从各历史字符中提取出至少一个短语;
    判断提取出的短语中是否存在出现频率达到阈值的短语;
    若存在,将所述出现频率达到阈值的短语录入所述短语库。
  5. 根据权利要求1-3任一项所述的短语输入方法,其特征在于,所述将所述短语库中的预设短语以弹窗形式显示包括:
    确定所述短语库中各预设短语的使用频率;
    依据使用频率由高至低的顺序,依序在弹窗中显示各预设短语。
  6. 根据权利要求1-3任一项所述的短语输入方法,其特征在于,所述确定用户从所显示的预设短语中选定的目标短语包括:
    对用户选定的短语进行标记,得到被标记的至少一个候选短语;
    在用户确定结束短语选择时,将被标记的候选短语确定为目标短语。
  7. 根据权利要求1-3任一项所述的短语输入方法,其特征在于,所述短语库中预设短语的数量限制为设定限值;所述方法还包括:
    若所述短语库中预设短语的数量达到设定限值时,存在新加入所述短语库的短语;
    将新加入的短语录入所述短语库,并将用户选定的待删除短语从所述短语库中删除,或者,将所述短语库中使用频率最低的短语从所述短语库中删除。
  8. 一种终端设备,其特征在于,包括:
    区域显示模块,用于显示字符编辑区域;
    操作检测模块,用于检测用户操作是否与设定的调用预置短语库的操作相应,其中,所述短语库存储有至少一个预设短语;
    链接模块,用于若用户操作与设定的调用预置短语库的操作相应,链接所述字符编辑区域和所述短语库;
    弹窗模块,用于将所述短语库中的预设短语以弹窗形式显示;
    目标短语确定模块,用于确定用户从所显示的预设短语中选定的目标短语;
    短语输入模块,用于将所述目标短语通过所述短语库与所述字符编辑区域的链接,输入所述字符编辑区域中。
  9. 根据权利要求8所述的终端设备,其特征在于,所述字符编辑区域通 过可编辑文本控件调用编辑函数实现字符编辑,所述可编辑文本控件内置有与所述短语库的链接接口;
    所述操作检测模块包括:
    激活操作检测单元,用于检测用户操作是否与设定的激活所述链接接口的操作对应;
    所述链接模块包括:
    调用单元,用于若用户操作与设定的激活所述链接接口的操作对应,则调用所述链接接口,链接所述字符编辑区域和所述短语库。
  10. 根据权利要求8所述的终端设备,其特征在于,所述激活操作检测单元包括:
    快捷操作检测子单元,用于检测用户操作是否与设定的快捷操作相应,所述快捷操作被配置为激活所述链接接口;
    或,图标操作检测子单元,用于检测用户操作是否与设定的调取第一图标的操作相应,所述第一图标被配置为触发激活所述链接接口;若检测到用户操作与所述调取第一图标的操作相应,调取显示所述第一图标;检测用户操作是否与点击所述第一图标的操作相应,所述第一图标被点击时,所述链接接口被激活。
PCT/CN2016/091007 2015-07-22 2016-07-22 一种短语输入方法及终端设备 WO2017012585A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510433900.X 2015-07-22
CN201510433900.XA CN105094367A (zh) 2015-07-22 2015-07-22 一种短语输入方法及终端设备

Publications (1)

Publication Number Publication Date
WO2017012585A1 true WO2017012585A1 (zh) 2017-01-26

Family

ID=54575000

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/091007 WO2017012585A1 (zh) 2015-07-22 2016-07-22 一种短语输入方法及终端设备

Country Status (2)

Country Link
CN (1) CN105094367A (zh)
WO (1) WO2017012585A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094367A (zh) * 2015-07-22 2015-11-25 北京锤子数码科技有限公司 一种短语输入方法及终端设备
CN105892908A (zh) * 2016-03-25 2016-08-24 乐视控股(北京)有限公司 一种文本输入的方法和终端
CN106249912B (zh) * 2016-07-27 2020-06-02 维沃移动通信有限公司 一种移动终端信息输入方法及移动终端
CN112817462A (zh) * 2019-11-18 2021-05-18 北京搜狗科技发展有限公司 一种数据处理的方法及相关装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6393416B1 (en) * 1998-12-16 2002-05-21 International Business Machines Corporation Method for entering bidirectional and DBCS languages in tier-0 devices
KR20060034559A (ko) * 2004-10-19 2006-04-24 엘지전자 주식회사 이동 통신 단말기의 상용구 입력 장치 및 방법
CN101470732A (zh) * 2007-12-26 2009-07-01 北京搜狗科技发展有限公司 一种辅助词库的生成方法和装置
CN101833547A (zh) * 2009-03-09 2010-09-15 三星电子(中国)研发中心 基于个人语料库进行短语级预测输入的方法
CN103034407A (zh) * 2012-12-07 2013-04-10 东莞宇龙通信科技有限公司 终端和快速输入常用短语的方法
CN104020950A (zh) * 2013-03-01 2014-09-03 腾讯科技(深圳)有限公司 基于触摸屏的输入方法和包含触摸屏的输入装置
CN105094367A (zh) * 2015-07-22 2015-11-25 北京锤子数码科技有限公司 一种短语输入方法及终端设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789317B (zh) * 2011-05-20 2016-05-25 腾讯科技(深圳)有限公司 一种加快文本输入的方法和装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6393416B1 (en) * 1998-12-16 2002-05-21 International Business Machines Corporation Method for entering bidirectional and DBCS languages in tier-0 devices
KR20060034559A (ko) * 2004-10-19 2006-04-24 엘지전자 주식회사 이동 통신 단말기의 상용구 입력 장치 및 방법
CN101470732A (zh) * 2007-12-26 2009-07-01 北京搜狗科技发展有限公司 一种辅助词库的生成方法和装置
CN101833547A (zh) * 2009-03-09 2010-09-15 三星电子(中国)研发中心 基于个人语料库进行短语级预测输入的方法
CN103034407A (zh) * 2012-12-07 2013-04-10 东莞宇龙通信科技有限公司 终端和快速输入常用短语的方法
CN104020950A (zh) * 2013-03-01 2014-09-03 腾讯科技(深圳)有限公司 基于触摸屏的输入方法和包含触摸屏的输入装置
CN105094367A (zh) * 2015-07-22 2015-11-25 北京锤子数码科技有限公司 一种短语输入方法及终端设备

Also Published As

Publication number Publication date
CN105094367A (zh) 2015-11-25

Similar Documents

Publication Publication Date Title
US8020101B2 (en) User specified transfer of data between applications
WO2017012585A1 (zh) 一种短语输入方法及终端设备
CN110286978B (zh) 窗口层级切换的方法、装置、设备和存储介质
US20120131520A1 (en) Gesture-based Text Identification and Selection in Images
US7454414B2 (en) Automatic data retrieval system based on context-traversal history
CA2967405A1 (en) Message correction and updating system and method, and associated user interface operation
US20170242832A1 (en) Character editing method and device for screen display device
KR101962407B1 (ko) 인공지능을 이용한 전자결재 문서 작성 지원 시스템 및 그 방법
US20160196251A1 (en) Method and apparatus for annotating an electronic document
CN106970758B (zh) 电子文档操作处理方法、装置和电子设备
CN109491570B (zh) 速记方法、移动终端及存储介质
CN104182479B (zh) 一种处理信息的方法及装置
US12061766B2 (en) Computing device identifier retrieval
WO2023202579A1 (zh) 信息显示方法、装置及电子设备
CN112329409B (zh) 一种单元格颜色转换方法、装置及电子设备
WO2019242167A1 (zh) 一种需求管理方法及计算机设备
CN103500090B (zh) 一种移动设备、显示电子文件页面的方法及装置
WO2020114343A1 (zh) 提示方法及装置
WO2018121487A1 (zh) 界面过滤的方法及系统
CN112783395B (zh) 一种显示表单域的方法、装置、电子设备及介质
KR102156193B1 (ko) 모바일 단말의 입력 편집 장치 및 편집 방법
CN103733160A (zh) 控制来自源的通信和内容的方法和用户界面
CN107483711A (zh) 一种信息保存方法及其移动终端和存储介质
WO2020037520A1 (zh) 一种文字速记方法、终端及计算机存储介质
CN113010061A (zh) 终端的桌面显示控制方法及装置、存储介质、终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16827276

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16827276

Country of ref document: EP

Kind code of ref document: A1