WO2019196342A1 - 一种粘贴数据的方法及装置 - Google Patents

一种粘贴数据的方法及装置 Download PDF

Info

Publication number
WO2019196342A1
WO2019196342A1 PCT/CN2018/106667 CN2018106667W WO2019196342A1 WO 2019196342 A1 WO2019196342 A1 WO 2019196342A1 CN 2018106667 W CN2018106667 W CN 2018106667W WO 2019196342 A1 WO2019196342 A1 WO 2019196342A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
characters
electronic device
search
character
Prior art date
Application number
PCT/CN2018/106667
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 WO2019196342A1 publication Critical patent/WO2019196342A1/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Definitions

  • the embodiments of the present invention relate to the field of user interface technologies, and in particular, to a method and an apparatus for pasting data.
  • the embodiment of the present application provides a method and an apparatus for pasting data, which can automatically paste data in a search box of an application, thereby avoiding a user's manual pasting operation.
  • an embodiment of the present invention provides a method for pasting data, including: displaying a first application, displaying at least one character on the first application; and receiving, by the user, one or more of the at least one character.
  • An operation of a character displaying a second application in response to operation of one or more of the at least one of the characters, the second application comprising a search box; the one or more first characters being displayed Within the search box; wherein the semantics of the one or more first characters are associated with the second application.
  • the second application can be automatically opened according to the semantics of the one or more first characters, thereby reducing the user's manual pasting operation.
  • the method further comprises the electronic device displaying a result of the search based on the one or more first characters.
  • the user can obtain a search result based on the one or more first characters by searching.
  • the method before the one or more first characters are displayed in the search box, the method further includes: the electronic device determining that the one or more first characters are in the Whether there is corresponding content in the database of the current application; if the one or more first characters have corresponding content in the database of the current application, the electronic device automatically sets the one or more first The characters are pasted into the search type input area.
  • the electronic device determines that the one or more first characters are in the Whether there is corresponding content in the database of the current application; if the one or more first characters have corresponding content in the database of the current application, the electronic device automatically sets the one or more first The characters are pasted into the search type input area.
  • the semantics of the one or more first characters are associated with the second application, including: the semantics of the one or more first characters are associated with the second application by a person name; or The semantics of the one or more first characters are associated with the second application by a place name.
  • the voice of the one or more first characters and the second application are associated by a person name, or the voice of the one or more first characters and the second application are associated by a place name, and one or more first The semantics of characters are more explicit.
  • the one or more first characters are displayed in the search box, including: The person name is automatically displayed in the search box of the second application.
  • the speech of one or more first characters and the second application are associated by a person name, and the semantics of one or more first characters are more clarified.
  • the one or more first characters are displayed in the search box, including:
  • the place name is automatically displayed in the search box of the second application.
  • the speech of the one or more first characters and the second application are associated by the place name, and the semantics of the one or more first characters are more clarified.
  • the displaying the second application in response to the operation of the one or more first characters of the at least one character, comprises: responsive to one or more of the at least one character a one-character operation of displaying at least two applications including the second application in the prompt menu; receiving the second application selected by the user from the at least two applications; displaying in response to the second application selected by the user Second application.
  • the user is provided with a plurality of application selection spaces by displaying at least two applications including the second application in the prompt menu.
  • an embodiment of the present invention provides an electronic device, including: a display screen for displaying a first application, the first application displaying at least one character; and an input device, configured to receive a user for the at least one character An operation of one or more first characters; a display screen further responsive to operation of one or more of the at least one character, displaying a second application, the second application including searching a block; the one or more first characters are displayed within the search box; wherein the semantics of the one or more first characters are associated with the second application.
  • the second application can be automatically opened according to the semantics of the one or more first characters, thereby reducing the user's manual pasting operation.
  • the display screen is further configured to display a result of searching according to the one or more first characters.
  • the user can obtain a search result based on the one or more first characters by searching.
  • the method before the displaying the one or more first characters in the search box, the method further comprises: the electronic device determining that the one or more first characters are in the current application Corresponding content exists in the database; if the one or more first characters have corresponding content in the current application database, the electronic device automatically pastes the one or more first characters to The search type input area.
  • the electronic device determining that the one or more first characters are in the current application Corresponding content exists in the database; if the one or more first characters have corresponding content in the current application database, the electronic device automatically pastes the one or more first characters to The search type input area.
  • the semantics of the one or more first characters are associated with the second application, including: the semantics of the one or more first characters are associated with the second application by a person name; or The semantics of the one or more first characters are associated with the second application by a place name.
  • the voice of the one or more first characters and the second application are associated by a person name, or the voice of the one or more first characters and the second application are associated by a place name, and one or more first The semantics of characters are more explicit.
  • the one or more first characters are displayed in the search box, including:
  • the display screen automatically displays the name of the person in the search box of the second application.
  • the speech of one or more first characters and the second application are associated by a person name, and the semantics of one or more first characters are more clarified.
  • the one or more first characters are displayed in the search box, including: The display screen automatically displays the place name in the search box of the second application.
  • the speech of the one or more first characters and the second application are associated by the place name, and the semantics of the one or more first characters are more clarified.
  • the displaying the second application in response to the operation of the one or more first characters of the at least one character, comprises: responsive to one or more of the at least one character a one-character operation of displaying at least two applications including the second application in the prompt menu; receiving the second application selected by the user from the at least two applications; displaying in response to the second application selected by the user Second application.
  • the user is provided with a plurality of application selection spaces by displaying at least two applications including the second application in the prompt menu.
  • an embodiment of the present invention provides an electronic device having a function of implementing an electronic device behavior implemented by the foregoing method.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • an embodiment of the present invention provides a computer storage medium for storing computer software instructions for use in the electronic device, including a program designed to perform the above aspects.
  • an embodiment of the present invention provides a computer program product, when the computer program product is run on the electronic device as described above, causing the electronic device to perform a method of pasting data as described above.
  • the electronic device can automatically paste data in the search box of the application, thereby avoiding the operation of the user manually pasting.
  • FIG. 1 is a first flowchart of a method for pasting data according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a method for pasting data according to an embodiment of the present invention
  • FIG. 3 is a third flowchart of a method for pasting data according to an embodiment of the present invention.
  • FIG. 4 is a first schematic diagram of a scenario for pasting data according to an embodiment of the present invention.
  • FIG. 5 is a second schematic diagram of a scenario for pasting data according to an embodiment of the present disclosure.
  • FIG. 6 is a third schematic diagram of a scenario for pasting data according to an embodiment of the present invention.
  • FIG. 7 is a fourth schematic diagram of a scenario for pasting data according to an embodiment of the present invention.
  • FIG. 8 is a fifth schematic diagram of a scenario for pasting data according to an embodiment of the present invention.
  • FIG. 9 is a sixth schematic diagram of a scenario for pasting data according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a first structure of an electronic device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram of a second structure of an electronic device according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic diagram of a third structure of an electronic device according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a processor according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic diagram of a search type input area according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of a search box according to an embodiment of the present invention.
  • FIG. 16 is a seventh schematic diagram of a scenario for pasting data according to an embodiment of the present invention.
  • FIG. 17 is an eighth schematic diagram of a scenario for pasting data according to an embodiment of the present invention.
  • FIG. 18 is a ninth schematic diagram of a scenario for pasting data according to an embodiment of the present invention.
  • first and second are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining “first” and “second” may include one or more of the features either explicitly or implicitly. In the description of the embodiments of the present application, “multiple” means two or more unless otherwise stated.
  • FIG. 1 is a first flowchart of pasting data according to an embodiment of the present invention.
  • the method can be applied to any electronic device provided with a touch screen, such as a mobile phone, a wearable device, and an augmented reality (AR).
  • AR augmented reality
  • /VR virtual reality
  • tablet computer tablet computer
  • notebook computer notebook computer
  • UMPC ultra-mobile personal computer
  • netbook netbook
  • PDA personal digital assistant
  • step 101 the electronic device determines whether there is data in the clipboard.
  • the clipboard is where the data is temporarily stored after the user cuts or copies the data. When copying or cutting a data block, the clipboard will save the data block. When necessary, the data block can be pasted out.
  • the clipboard is equivalent to a temporary memory. If the electronic device determines that there is data in the clipboard, it proceeds to step 102. If the electronic device determines that there is no data in the clipboard, it proceeds to step 104.
  • Step 102 The electronic device determines whether an application interface of the application that needs to paste the data has an input area, such as a text input area, a recipient input area, or a search type input area.
  • the input area can be an application of a short message, a phone book, a browser, etc., or a third party application such as Ctrip, Taobao, WeChat, or a text processing application such as a memo, an email, an office, or the like.
  • a quick search widget placed on the desktop, a negative search tool, or a system default search tool that slides up or down on the desktop.
  • step 101 and step 102 can be exchanged.
  • the application interface of the application to which the data needs to be pasted may be judged according to one of the following three conditions: 1.
  • the input box control type 2. Whether there is a "search” default vocabulary; 3. Whether there is a search button.
  • the search type input area is a search area with a "search” default vocabulary (the word “search” in "search game” in FIG. 14) and a search button. It is also possible to determine whether there is a search type input area by using the input box control type. For details, refer to FIG. 15. When the input box control type satisfies any one or more of FIG. 15, it can be determined that the input box control type belongs to the search type input area.
  • Figure 15 includes both real-time search and non-instant search.
  • the search trigger can be realized by inputting the enter key in the soft keyboard, or the search trigger can be realized by inputting the completion of the character.
  • the trigger of the search is realized by the completion of the input character, and the search result can be popped up in real time every time a word is input.
  • the trigger of the search can be realized by operating the search button on the right side of the search box.
  • the first type is a normal instant search, and the trigger of the search can be realized by pressing the enter key in the input soft keyboard, or the trigger of the search can be realized by the completion of the input.
  • the completion of the input can be the completion of the automatic paste.
  • the search is initiated after automatic pasting; or after a period of automatic pasting or manual input, for example, there is no other operation within two seconds to trigger the search.
  • the second type is a search box with voice search, which can be used to recognize the voice content spoken by the user through the microphone of the electronic device, and convert it into text input into the search box. In this example, you can search by pressing the Enter key on the input soft keyboard, or you can trigger the search by inputting the completion.
  • the completion of the input can be the completion of the automatic paste.
  • the search is initiated after the automatic paste; or after a period of automatic pasting or manual input, for example, there is no other operation within two seconds to trigger the search; or after a certain period of time after the speech recognition is completed, the search is initiated without new voice input, or A voice command is received, such as "end" or "search" to initiate a search.
  • the third type is a search box with a drop-down menu, and the content that the user wants to input can be input into the search box by selecting one or more items from the pull-down menu from the limited search range through the pull-down menu.
  • the search is initiated after automatic pasting; or after a period of automatic pasting or manual input, for example, there is no other operation within two seconds to trigger the search; or an item is clicked in the drop-down menu to initiate a search.
  • the first type is a search box with voice search, and the voice content spoken by the user through the microphone of the electronic device can be recognized by voice to be converted into text input into the search box.
  • the triggering of the search of the non-instant search box needs to be realized by clicking the search button (such as the "Q" type button in FIG. 15).
  • the second type is the normal search box, which triggers the search by pressing the search button.
  • the third type is a search in the search box combined with the geographic location function, and the related search results can be searched according to the search term.
  • the search box is combined with the location feature.
  • the drop-down menu for the location in other apps is placed in the search box. It does not mean that the location is related to the search. Therefore, the search results are not limited in relation to the geographic location in the embodiments of the present invention.
  • the fourth type is a search combined with the two-dimensional code function, and the related search results can be searched according to the search words.
  • the function of combining the two-dimensional code in the search box is that the function of the two-dimensional code in other applications is placed in the search box, and does not mean that the function of the two-dimensional code is related to the search box here.
  • Step 103 The electronic device pastes the data in the clipboard into the search type input area. Pasting into the search input area here is done automatically for the electronic device, without the user's participation. When there are multiple search input areas, they will be pasted in each search type input area. Or, selectively paste according to the user's most commonly used search box. For example, as shown in the right side of Figure 5, there are two search boxes.
  • the search box above is the default search box of the system, or the address bar of the browser.
  • the address bar of the browser can also function as a search box, and the default search engine is used to initiate the search when performing the search.
  • the search box below is to open the search site, such as Baidu, the search box displayed on the Baidu page.
  • the most commonly used user is Baidu's search box.
  • the data can be pasted into the user's most commonly used Baidu search box. Or, selectively paste based on the search box that the user recently used. For example, if the user recently used Baidu's search box, in addition to the default search box at the top of Figure 5, the data can be pasted into the user's most recently used Baidu search box.
  • the electronic device pastes the data in the clipboard into the search type input area. Specifically, it can be pasted according to semantics. For example, "Suci Zhang" in the clipboard is a name, so it will only be pasted into the phone book application, and will not be pasted into Ctrip or where to go.
  • the characters Suci are selected in the memo in the left figure. Since the electronic device judges that the characters should belong to a name, when the user copies or cuts the characters, the current page will jump to the contact interface. And automatically paste the Suci characters in the search box of the contact interface. In this example, since the electronic device determines that Suci is an English name, the electronic device will jump the current memo interface to the contact's interface.
  • Step 104 If there is no data in the clipboard, the display content in the current application of the electronic device does not change.
  • the fact that the content is unchanged here means that no content is pasted into the search input area.
  • the electronic device automatically determines whether the clipboard has data and determines whether the current interface has a search type input area, and the data in the clipboard is automatically pasted into the search type input area, thereby saving interaction between the user and the device. Reduce the power consumption and system overhead of electronic device interaction with users, and improve the user experience while achieving the technical effect of power saving.
  • Step 205 Search according to the content of the search type input area.
  • the content search according to the search type input area is performed by pasting the data in the clipboard into the search type input area and receiving the user's search instruction. Even if the user does not remember the content to be searched, the user can search according to the search term, which improves the user experience.
  • step 303 it can be determined whether the content corresponding to the data in the clipboard is likely to exist in the database corresponding to the current local application.
  • This step means that if the current application is a local application, it is necessary to determine whether the content of the data in the clipboard is likely to exist in the database of the current application.
  • the current application is a phone book application
  • the electronic device may determine that the currently copied content “Suci” is a person name according to semantic analysis, or according to a copying behavior, and paste the “Suci” into the phone book application when the user opens the phone book application. Search the box and display the corresponding search results automatically or after the user clicks the search button.
  • the content corresponding to the data in the clipboard refers to the search result "Suci Zhang".
  • the electronic device pastes the data in the clipboard into the search type input area. Specifically, it can be pasted according to semantics.
  • the electronic device detects that "Suci Zhang” in the clipboard is a person's name, so when the phone book application is opened, the electronic device automatically pastes “Suci Zhang” to the phone book application, and when the user opens “Ctrip” or “Where to go” "Automatic pasting is not performed when traveling applications are used.
  • the semantic analysis may be: the electronic device determines, according to the Chinese and English name databases stored therein, whether the first word in the selected text is a Chinese name stored in the electronic device, or whether the selected text is the last one. The word is the English name stored inside the electronic device. If so, the result of the semantic analysis is that the currently selected text is a person's name.
  • the semantic analysis may be that the electronic device determines, according to the internally stored name database, whether the selected text is a place name stored in the electronic device. If so, the result of the semantic analysis is that the currently selected text is a place name.
  • the database in the embodiment of the present invention may also be stored on a server or another device.
  • FIG. 4 it is a first schematic diagram of a scenario for pasting data provided by an embodiment of the present invention.
  • the leftmost picture is a piece of text in the memo.
  • the user selects some of the characters by operation, such as long press, and performs copying or cutting operations to place the copied or cut text on the clipboard.
  • the electronic device detects that a web application is opened, that is, the application to which the text is pasted is opened.
  • the web application can be a browser.
  • the user can manually exit the memo, open the icon of the browser on the desktop, or open the shortcut button on the current page when the text is selected.
  • the application has only one search box, and the copied or cut text is placed in the search box.
  • the search icon When it is detected that the search icon is clicked, it enters the application interface of the rightmost figure.
  • the "Huawei Hilink” in the search box is displayed in the search box below the search box.
  • "Huawei Hilink” can be displayed in both the upper and lower search boxes.
  • the search results related to "Huawei Hilink” are displayed in the application interface. With the above search results, the user can select the desired search results.
  • FIG. 5 it is a second schematic diagram of a scenario for pasting data provided by an embodiment of the present invention.
  • the leftmost picture is a piece of text in the memo, and the user selects some of the text by long pressing and copies or cuts, and puts the copied or cut text into the clipboard.
  • the electronic device detects that the Baidu search page or the Baidu application is opened.
  • "Huawei Hilink” is automatically entered into the search box of Baidu search. Since "Huawei Hilink" is input to the default search box of the electronic device, and Baidu search is the default search engine, the search result will be displayed in the search result of Baidu search.
  • FIG. 7 it is a fourth schematic diagram of a scene for pasting data provided by an embodiment of the present invention.
  • the leftmost picture is a piece of text in the memo, and the user selects some of the text by long pressing and copy or cut, and puts the copied or cut text into the clipboard.
  • the electronic device detects that the reading program is opened, as shown in the rightmost figure in FIG. 7, the copied or cut text is "Dedication of Suspect X", and the "Suspect X" is automatically pasted in the search box of the reading program.
  • FIG. 8 it is a fifth schematic diagram of a scene for pasting data provided by an embodiment of the present invention.
  • the leftmost picture is a piece of text in the memo, and the user selects some of the text by long pressing and copies or cuts, and puts the copied or cut text into the clipboard. Thereafter, when the user slides up or down on the standby interface of the electronic device, an interface as shown in the rightmost figure of FIG. 8 appears.
  • the search term "Huawei Hilink" is automatically pasted from the clipboard to the search box shown in the rightmost figure of Figure 8, the search result list shown in the rightmost figure of Figure 8 will automatically appear without the user's manual. Click the Paste button.
  • FIG. 9 it is a fifth schematic diagram of a scenario for pasting data provided by an embodiment of the present invention.
  • the leftmost picture is a piece of text in the memo, and the user selects some of the text by long pressing and copies or cuts, and puts the copied or cut text into the clipboard.
  • the search term "Huawei Hilink" is automatically pasted from the clipboard to the search box shown in the middle of FIG. 9, the search result recommendation as shown in the middle of FIG. 9 automatically appears.
  • the search button of the middle view of Fig. 9 is further clicked, the search result list of the rightmost figure of Fig. 9 can appear.
  • the user does not have to manually paste the result of the cut or copy into the search box of the corresponding program, thereby saving the user's steps and time of operating the electronic device.
  • the RF circuit 21 can be used for receiving and transmitting information during the transmission or reception of information or during a call, in particular, after receiving the downlink information of the wireless access device, and processing it to the processor 380; in addition, transmitting the uplink data to the wireless access device.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • the RF circuit 21 can also communicate with the network and other devices through wireless communication.
  • the memory 22 can be used to store software programs and modules, and the processor 380 executes various functional applications and data processing of the electronic device by running software programs and modules stored in the memory 22.
  • the input unit 23 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device.
  • the input unit 23 may include a touch screen 341 and other input devices 342.
  • the display unit 24 can be used to display information input by the user or information provided to the user as well as various menus of the electronic device.
  • the display unit 24 can include a display panel 351.
  • the display panel 351 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the camera 25 can also be used as an input device for converting the acquired analog video or image signal into a digital signal and storing it in the memory 22.
  • the camera 25 may include a front camera, a rear camera, a built-in camera, an external camera, and the like, which are not limited in this embodiment of the present invention.
  • the electronic device may further include a gravity sensor and other sensors, such as a light sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and details are not described herein.
  • a gravity sensor such as a light sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., and details are not described herein.
  • Audio circuitry 26, speaker 371, microphone 372 can provide an audio interface between the user and the electronic device.
  • the audio circuit 26 can transmit the converted electrical data of the received audio data to the speaker 371 for conversion to the sound signal output by the speaker 371; on the other hand, the microphone 372 converts the collected sound signal into an electrical signal by the audio circuit 26 After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 21 for transmission to, for example, another electronic device, or the audio data is output to the memory 22 for further processing.
  • the processor 380 is a control center for the electronic device that connects various portions of the entire electronic device using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 22, and recalling data stored in the memory 22. , performing various functions and processing data of the electronic device to perform overall monitoring of the electronic device.
  • processor 380 can include one or more processing units.
  • the above-mentioned electronic device may further include a power source, a WiFi (Wireless Fidelity) module, a Bluetooth module, and the like, and details are not described herein again.
  • a WiFi Wireless Fidelity
  • Bluetooth Wireless Fidelity
  • the above electronic device or the like includes a hardware structure and/or a software module corresponding to each function.
  • the embodiments of the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.
  • the embodiment of the present invention may perform the division of the function modules on the electronic device or the like according to the above method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 11 is a schematic diagram showing a possible structure of an electronic device involved in the foregoing embodiment.
  • the electronic device includes: a display unit 1101 and an input device 1102, and a determination unit. 1103 and pasting unit 1104.
  • the functions of the display 1101, the input device 1102, the determination unit 1103, and the pasting unit 1104 are the same as those in the method embodiment shown in FIG. 1 to FIG. 3, and are not described herein.
  • FIG. 12 shows a possible structural diagram of the electronic device involved in the above embodiment.
  • the electronic device includes a processing module 1302 and a communication module 1303.
  • the processing module 1302 is configured to control and manage the actions of the electronic device.
  • the communication module 1303 is configured to support communication between the UE and other network entities.
  • the electronic device may further include a storage module 1301 for storing program codes and data of the electronic device.
  • the processing module 1302 may be a processor or a controller, for example, may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application specific integrated circuit (Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out various exemplary logical blocks, modules and circuits described in connection with the disclosure of the embodiments of the invention.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 1303 may be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the storage module 1301 may be a memory.
  • the processing module 1302 is a processor
  • the communication module 1303 is an RF transceiver circuit
  • the storage module 1301 is a memory
  • the electronic device provided by the embodiment of the present invention may be the electronic device shown in FIG.
  • the processing module 1302 is specifically configured to perform the method steps in the foregoing embodiment of the present invention, and details are not described herein again.
  • the processor includes 4 high-speed processing cores and 4 low-speed processing cores.
  • Each of the four high-speed processing cores and a corresponding secondary cache are combined to form a high-speed core processing area.
  • Each of the four low-speed processing cores and a corresponding second-level buffer are combined to form a low-speed core processing area.
  • the high speed processing core may refer to a processing core having a processing frequency of 2.1 GHz (hertz).
  • the low speed processing core may refer to a processing core having a processing frequency of 1.7 GHz (hertz).
  • processing module 1302 All of the steps performed by processing module 1302 are performed by a high speed processing core or a low speed processing core.
  • a modem baseband portion for processing a baseband portion of the radio frequency signal
  • a display subsystem coupled to the display; an image signal processing subsystem coupled to the external CPU; and a single channel DDR controller coupled to the DDR memory ; embedded multimedia card interface with embedded multimedia card; USB interface connected with personal computer; SDIO input and output interface connected with short-distance communication module; UART interface connected with Bluetooth, GPS; I2C interface connected with sensor; Smart card interface of smart card SIM card interface.
  • a video processing subsystem a Sensor Hub subsystem, a low-power microcontroller, a high-resolution video codec, a dual-security engine, an image processor, and an image processing unit formed by a second-level cache.
  • a coherent bus that is placed inside the CPU to connect all the interfaces and processing units in the CPU.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Landscapes

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

Abstract

本申请的实施例提供一种粘贴数据的方法,包括:显示第一应用,所述第一应用上显示至少一个字符;接收用户对所述至少一个字符中的一个或多个第一字符的操作;响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用,所述第二应用包括搜索框;所述一个或多个第一字符显示在所述搜索框内;其中,所述一个或多个第一字符的语义与所述第二应用关联。本发明实施例中的电子设备可以自动的在应用的搜索框中粘贴数据,从而避免用户手动粘贴的操作。

Description

一种粘贴数据的方法及装置 技术领域
本申请实施例涉及用户界面技术领域,尤其涉及一种粘贴数据的方法及装置。
背景技术
智能终端上多应用间的复制/剪切、粘贴功能在手机上使用十分频繁,但是操作相对复杂,首先要长按唤醒复制/剪切功能,然后选择字符串,复制/剪切到剪贴板,接着切换到新的应用,点击唤醒输入窗口,长按出现粘贴选项,再将剪贴板中的字符串进行粘贴。此处的“/”表示或者,即“复制/剪切”可以表示“复制或者剪切”。因此整个粘贴数据的操作流程较为繁琐。
发明内容
本申请的实施例提供一种粘贴数据的方法及装置,可以自动的在应用的搜索框中粘贴数据,从而避免用户手动粘贴的操作。
一方面,本发明实施例提供了一种粘贴数据的方法,包括:显示第一应用,所述第一应用上显示至少一个字符;接收用户对所述至少一个字符中的一个或多个第一字符的操作;响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用,所述第二应用包括搜索框;所述一个或多个第一字符显示在所述搜索框内;其中,所述一个或多个第一字符的语义与所述第二应用关联。本发明实施例中,通过将一个或多个第一字符的语义和第二应用关联,使得第二应用可以根据一个或多个第一字符的语义自动打开,从而减少用户的手动粘贴的操作。
在一个可能的设计中,所述一个或多个第一字符显示在所述搜索框内之后,所述方法还包括:所述电子设备显示根据所述一个或多个第一字符搜索的结果。本例中,用户通过搜索,可以获得根据所述一个或多个第一字符搜索到的结果。
在一个可能的设计中,所述在所述一个或多个第一字符显示在所述搜索框内之前,所述方法还包括:所述电子设备判断所述一个或多个第一字符在所述当前应用的数据库中是否存在对应的内容;如果所述一个或多个第一字符在所述当前应用的数据库中存在对应的内容,则所述电子设备自动将所述一个或多个第一字符粘贴至所述搜索类输入区。本例中,需要根据数据库中的文字判断是否有要粘贴的内容,如果有就将要粘贴的内容粘贴至搜索类输入区。使得用户的粘贴更有针对性。
在一个可能的设计中,所述一个或多个第一字符的语义与所述第二应用关联,包括:所述一个或多个第一字符的语义与所述第二应用通过人名关联;或者,所述一个或多个第一字符的语义与所述第二应用通过地名关联。本例中,将一个或多个第一字符的语音和第二应用通过人名关联起来,或者将一个或多个第一字符的语音和第二应用通过地名关联起来,将一个或多个第一字符的语义更加明确化。
在一个可能的设计中,当所述一个或多个第一字符的语义与所述第二应用通过人名关联时,所述一个或多个第一字符显示在所述搜索框内,包括:所述人名自动显示在所述第二应用的搜索框内。本例中,将一个或多个第一字符的语音和第二应用通过人名关联起来,将一个或多个第一字符的语义更加明确化。
在一个可能的设计中,当所述一个或多个第一字符的语义与所述第二应用通过地名关联时,所述一个或多个第一字符显示在所述搜索框内,包括:所述地名自动显示在所述第二应用的搜索框内。本例中,将一个或多个第一字符的语音和第二应用通过地名关联起来,将一个或多个第一字符的语义更加明确化。
在一个可能的设计中,所述响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用包括:响应于对所述至少一个字符中的一个或多个第一字符的操作,在提示菜单中显示包括所述第二应用的至少两个应用;接收用户从至少两个应用中选择的所述第二应用;响应于用户选择的所述第二应用,显示第二应用。本例中,通过在提示菜单中显示包括所述第二应用的至少两个应用,给用户提供了多种应用选择的空间。
一方面,本发明实施例提供了一种电子设备,包括:显示屏,用于显示第一应用,所述第一应用上显示至少一个字符;输入装置,用于接收用户对所述至少一个字符中的一个或多个第一字符的操作;显示屏,还用于响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用,所述第二应用包括搜索框;所述一个或多个第一字符显示在所述搜索框内;其中,所述一个或多个第一字符的语义与所述第二应用关联。本发明实施例中,通过将一个或多个第一字符的语义和第二应用关联,使得第二应用可以根据一个或多个第一字符的语义自动打开,从而减少用户的手动粘贴的操作。
在一个可能的设计中,所述显示屏还用于:显示根据所述一个或多个第一字符搜索的结果。本例中,用户通过搜索,可以获得根据所述一个或多个第一字符搜索到的结果。
在一个可能的设计中,所述在所述一个或多个第一字符显示在所述搜索框内之前,还包括:所述电子设备判断所述一个或多个第一字符在所述当前应用的数据库中是否存在对应的内容;如果所述一个或多个第一字符在所述当前应用的数据库中存在对应的内容,则所述电子设备自动将所述一个或多个第一字符粘贴至所述搜索类输入区。本例中,需要根据数据库中的文字判断是否有要粘贴的内容,如果有就将要粘贴的内容粘贴至搜索类输入区。使得用户的粘贴更有针对性。
在一个可能的设计中,所述一个或多个第一字符的语义与所述第二应用关联,包括:所述一个或多个第一字符的语义与所述第二应用通过人名关联;或者,所述一个或多个第一字符的语义与所述第二应用通过地名关联。本例中,将一个或多个第一字符的语音和第二应用通过人名关联起来,或者将一个或多个第一字符的语音和第二应用通过地名关联起来,将一个或多个第一字符的语义更加明确化。
在一个可能的设计中,当所述一个或多个第一字符的语义与所述第二应用通过人名关联时,所述一个或多个第一字符显示在所述搜索框内,包括:所述显示屏将所述 人名自动显示在所述第二应用的搜索框内。本例中,将一个或多个第一字符的语音和第二应用通过人名关联起来,将一个或多个第一字符的语义更加明确化。
在一个可能的设计中,当所述一个或多个第一字符的语义与所述第二应用通过地名关联时,所述一个或多个第一字符显示在所述搜索框内,包括:所述显示屏将所述地名自动显示在所述第二应用的搜索框内。本例中,将一个或多个第一字符的语音和第二应用通过地名关联起来,将一个或多个第一字符的语义更加明确化。
在一个可能的设计中,所述响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用包括:响应于对所述至少一个字符中的一个或多个第一字符的操作,在提示菜单中显示包括所述第二应用的至少两个应用;接收用户从至少两个应用中选择的所述第二应用;响应于用户选择的所述第二应用,显示第二应用。本例中,通过在提示菜单中显示包括所述第二应用的至少两个应用,给用户提供了多种应用选择的空间。
另一方面,本发明实施例提供了一种电子设备,该电子设备具有实现上述方法实现的电子设备行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。
再一方面,本发明实施例提供了一种计算机存储介质,用于储存为上述电子设备所用的计算机软件指令,其包含用于执行上述方面所设计的程序。
再一方面,本发明实施例提供了一种计算机程序产品,当所述计算机程序产品在如上电子设备上运行时,使得所述电子设备执行如上所述的粘贴数据的方法。
相较于现有技术,本发明提供的方案中,电子设备可以自动的在应用的搜索框中粘贴数据,从而避免用户手动粘贴的操作。
附图说明
图1为本发明实施例提供的粘贴数据的方法的第一流程图;
图2为本发明实施例提供的粘贴数据的方法的第二流程图;
图3为本发明实施例提供的粘贴数据的方法的第三流程图;
图4为本发明实施例提供的粘贴数据的场景的第一示意图;
图5为本发明实施例提供的粘贴数据的场景的第二示意图;
图6为本发明实施例提供的粘贴数据的场景的第三示意图;
图7为本发明实施例提供的粘贴数据的场景的第四示意图;
图8为本发明实施例提供的粘贴数据的场景的第五示意图;
图9为本发明实施例提供的粘贴数据的场景的第六示意图;
图10为本发明实施例提供的电子设备的第一结构示意图;
图11为本发明实施例提供的电子设备的第二结构示意图;
图12为本发明实施例提供的电子设备的第三结构示意图;
图13为本发明实施例提供的处理器的结构示意图;
图14为本发明实施例提供的搜索类输入区的示意图;
图15为本发明实施例提供的搜索框的举例图;
图16为本发明实施例提供的粘贴数据的场景的第七示意图;
图17为本发明实施例提供的粘贴数据的场景的第八示意图;
图18为本发明实施例提供的粘贴数据的场景的第九示意图。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
以下详细描述参考附图对所公开的系统和方法的各种特征和功能进行了描述。在图中,除非上下文另外指出,否则相似的符号标识相似的组件。本文中所描述的说明性系统和方法实施例并非意图进行限制。可容易理解,所公开的系统和方法的某些方面可以按多种不同的配置进行布置和组合,所有这些都在本文中被设想到。
请参阅图1,图1是本发明实施例提供的粘贴数据的第一流程图,该方法可应用于任意设置有触摸屏的电子设备,例如,手机、可穿戴设备、AR(augmented reality,增强现实)/VR(virtual reality,虚拟现实)设备、平板电脑、笔记本电脑、UMPC(ultra-mobile personal computer,超级移动个人计算机)、上网本、PDA(personal digital assistant,个人数字助理)等,本发明实施例对此不作任何限制。
步骤101,电子设备判断剪贴板中是否有数据。剪贴板是使用者剪切或复制数据后,临时的存放数据的地方。当复制或剪切一个数据块时,剪贴板会把这个数据块保存下来,当需要时,又可以把这个数据块粘贴出来,剪贴板相当于一个临时存储器。如果电子设备判断剪贴板中有数据,进入步骤102。如果电子设备判断剪贴板中没有数据,进入步骤104。
步骤102,电子设备判断需要粘贴数据的应用的应用界面是否有输入区,例如文本输入区,收件人输入区,或者搜索类输入区等。具有输入区的可以是短信、电话本、浏览器等系统的应用,也可以是携程、淘宝、微信等第三方的应用,还可以是备忘录、电子邮件、office等文本处理的应用,还可以是桌面上放置的快速搜索widget,负一屏的搜索工具,或者在桌面上滑或下滑调出的系统默认搜索工具等。当判断有搜索类输入区时,进入步骤103,否则进入步骤104。
其中,步骤101和步骤102的顺序可以交换。
可以根据以下三种条件之一或综合判断需要粘贴数据的应用的应用界面是否有输入区:1、输入框控件类型;2、是否有“搜索”默认词汇;3、是否有搜索按钮。如图14所示,搜索类输入区就是带有“搜索”默认词汇(如图14中“搜索游戏”中的“搜索”一词)和搜索按钮的搜索区域。还可以通过输入框控件类型判断是否有搜索类输入区,具体可参考图15,当输入框控件类型满足图15中任意一个或多个的时候,可以判断输入框控件类型属于搜索类输入区。
图15中包括即时搜索和非即时搜索两种类型。
即时搜索中,可以通过输入软键盘中的回车键实现搜索的触发,也可通过输入字符的完成实现搜索的触发。其中,通过输入字符的完成实现搜索的触发,可以是每输入一个字都实时弹出搜索结果。
非即时搜索中,可以通过操作搜索框右边的搜索按钮实现搜索的触发。
如图15,即时搜索中,第一种类型为普通的即时搜索,可以通过按输入软键盘中的回 车键实现搜索的触发,也可通过输入的完成实现搜索的触发。输入的完成可以是自动粘贴的完成。例如,自动粘贴后即发起搜索;或者自动粘贴后或手动输入后一段时间,例如两秒内无其他操作可实现搜索的触发。即时搜索中,第二种类型为带语音搜索的搜索框,可以通过语音识别用户通过电子设备的麦克风说的语音内容,转换为文字输入到搜索框中。本例中,可以通过按输入软键盘中的回车键实现搜索,也可以通过输入的完成实现搜索的触发。输入的完成可以是自动粘贴的完成。例如,自动粘贴后即发起搜索;或者自动粘贴后或手动输入后一段时间,例如两秒内无其他操作可实现搜索的触发;或者语音识别完成后一段时间没有新的语音输入即发起搜索,或者接收到语音命令,如“结束”或“搜索”发起搜索。即时搜索中,第三种类型为带下拉菜单的搜索框,可以通过下拉菜单从限定的搜索范围中,将用户想输入的内容通过从下拉菜单中选择一个或多个条目输入进搜索框。本例中,可以通过按输入软键盘中的回车键实现搜索的触发,也可以通过输入的完成实现搜索的触发。例如,自动粘贴后即发起搜索;或者自动粘贴后或手动输入后一段时间,例如两秒内无其他操作可实现搜索的触发;或者在下拉菜单中点击了一个条目后发起搜索。
如图15,非即时搜索中,第一种类型为带语音搜索的搜索框,可以通过语音识别用户通过电子设备的麦克风说的语音内容,转换为文字输入到搜索框中。与即时搜索框不同的是,非即时搜索框的搜索的触发需要通过点击搜索按键(如图15中的”Q”型按键)来实现。
非即时搜索中,第二种类型为普通搜索框,通过按搜索按键实现搜索的触发。
非即时搜索中,第三种类型为搜索框中结合地理位置功能的搜索,可以根据搜索词搜索出相关的搜索结果。搜索框中结合地理位置功能,是其他应用中的地理位置的下拉菜单放到搜索框这里,并不代表地理位置与搜索有关。因此,本发明的实施例中不限定搜索结果和地理位置相关。当然,也可以使得地理位置与搜索有关。具体为,搜索的内容和地理位置结合搜索。例如,搜索词中输入“图书馆”,地理位置显示“深圳”,可以搜索深圳市内的图书馆。
非即时搜索中,第四种类型为结合二维码功能的搜索,可以根据搜索词搜索出相关的搜索结果。搜索框中结合二维码功能,是其他应用中的二维码的功能放到搜索框这里,并不代表二维码功能与这里的搜索框有关。当然,也可以使得二维码与搜索有关。具体为使用电子设备的摄像头拍摄二维码,识别出二维码对应的条目,再将条目放到搜索框中搜索。
步骤103,电子设备将剪贴板中的数据粘贴到搜索类输入区内。此处粘贴到搜索类输入区内为电子设备自动完成,不需要使用者的参与。当搜索类输入区有多个的时候,会在每个搜索类输入区中粘贴。或者,根据用户最常用的搜索框进行选择性的粘贴。例如,如图5右侧界面所示,有两个搜索框。上面的搜索框是系统默认的搜索框,或者浏览器的地址栏,浏览器的地址栏也可以兼做搜索框的功能,在执行搜索时使用默认的搜索引擎发起搜索。下面的搜索框是打开搜索网站,例如百度后,百度页面上显示的搜索框。例如用户最常用的是百度的搜索框,那么除了图5中最上方的默认的搜索框外,可以将数据粘贴到用户最常用的百度的搜索框。或者,根据用户最近使用的搜索框进行选择性的粘贴。例如,用户最近使用的是百度的搜索框,那么除了图5中最上方 的默认的搜索框外,可以将数据粘贴到用户最近使用的百度的搜索框。
电子设备将剪贴板中的数据粘贴到搜索类输入区内。具体的,可以根据语义粘贴。例如剪贴板中的“Suci Zhang”是人名,因此只会粘贴到电话本应用,不会粘贴到携程或去哪儿等旅游应用。
如图6所示,在左图中的备忘录中选中Suci这些字符,由于电子设备判断这些字符应属于一个名字,因此当用户复制或剪切这些字符后,当前页面会跳转到联系人的界面,并在联系人界面的搜索框中自动粘贴Suci这些字符。本例中,由于电子设备判断Suci是英文人名,因此电子设备会将当前的备忘录界面跳转到联系人的界面。
上述根据语义粘贴的功能在地名上会有更广泛的应用。下面将通过示例详细说明。
如图16所示,在左图中,当在备忘录中输入地名“北京”,并剪切或复制“北京”后,在输入框的下方靠左的位置出现了提示框,展示给用户其要打开的应用。如左图中,提示框中出现了“艺龙旅行”、“携程旅行”、“去哪儿旅行”等旅游应用。或者,提示框中可以出现“高德地图”或“天气预报”等其他应用的提示,这些提示应用会显得提示更多样化。如果用户选择艺龙旅行,那么当前页面会跳转到艺龙旅行的首页,并在目的地的搜索框中自动粘贴“北京”这个地名,如图16中的101标号中的“北京”所示。当用户希望用这个自动粘贴的地名搜索时,可点击“查找酒店”这个按钮可实现搜索。当用户不希望自动粘贴这个地名时,则可以通过搜索框右边的删除按钮删除本次的输入。
如图17所示,在左图中,当在备忘录中输入地名“北京”,并剪切或复制“北京”后,用户可手动打开第三方应用,例如“艺龙旅行”。当用户选择艺龙旅行后,当前页面会跳转到艺龙旅行的首页,并在目的地的搜索框中自动粘贴“北京”这个地名,如图17中的102标号中的“北京”所示。当用户希望用这个自动粘贴的地名搜索时,可点击“查找酒店”这个按钮可实现搜索。当用户不希望自动粘贴这个地名时,则可以通过搜索框右边的删除按钮删除本次的输入。
如图18所示,在左图中,当在备忘录中输入地名“北京”,并剪切或复制“北京”后,电子设备自动跳转到第三方应用,例如“艺龙旅行”。当用户选择艺龙旅行后,当前页面会跳转到艺龙旅行的首页,并在目的地的搜索框中自动粘贴“北京”这个地名,如图18中的103标号中的“北京”所示。当用户希望用这个自动粘贴的地名搜索时,可点击“查找酒店”这个按钮可实现搜索。当用户不希望自动粘贴这个地名时,则可以通过搜索框右边的删除按钮删除本次的输入。
步骤104,如果剪贴板中没有数据,电子设备当前应用内的展示内容不变。此处展示内容不变是指,不粘贴任何内容到搜索类输入区内。
本发明实施例中,通过电子设备自动判断剪贴板是否有数据和判断当前界面是否有搜索类输入区,实现剪贴板中的数据自动粘贴到搜索类输入区内,节省了用户和设备的交互,减少电子设备与用户交互的功耗以及系统开销,在提升用户体验的同时还能实现省电的技术效果。
如图2所示,该流程图所示的数据粘贴方法和图1所示的数据粘贴方法的区别在于,增加了步骤205。步骤205,根据搜索类输入区的内容搜索。此处,通过将剪贴板中的数据粘贴到搜索类输入区内,并接收用户的搜索指令,执行根据搜索类输入区的内容 搜索。使得用户即使不记得要搜索的内容,也可以根据搜索词进行搜索,提升了用户的体验。
如图3所示,图3和图2所不同的是,在步骤303中可以判断当前本地应用对应的数据库中是否可能有剪贴板中的数据对应的内容。此步骤是指,如果当前应用为本地应用,则需要判断当前应用的数据库中是否可能有剪贴板中的数据对应的内容。具体的,当前应用如果是电话本应用,则判断剪贴板中的数据在电话本中是否存在相应的内容。如果存在,则在搜索类输入区中粘贴数据,即在电话本应用的搜索框中粘贴数据。如图6所示,电子设备可以根据语义分析,或者根据复制行为发生在备忘录,判断当前复制的内容“Suci”是人名,当用户打开电话本应用时,将“Suci”粘贴到电话本应用的搜索框中,并自动或在用户点击搜索按钮后将相应的搜索结果显示出来。在本例中,剪贴板中的数据对应的内容是指搜索结果“Suci Zhang”。本例中,通过判断剪贴板中的内容在电话本中是否存在相应的内容,实现粘贴之前的预判,使得粘贴更有针对性。电子设备将剪贴板中的数据粘贴到搜索类输入区内。具体的,可以根据语义粘贴。例如电子设备检测到剪贴板中的“Suci Zhang”是人名,因此当电话本应用被打开后,电子设备会自动粘贴“Suci Zhang”到电话本应用,而当用户打开“携程”或“去哪儿”等旅游应用时则不执行自动粘贴。
具体的,语义分析可以是,电子设备根据其内部存储的中文以及英文的姓名数据库,判断选择的文字中是否第一个字是电子设备内部存储的中文姓名,或者判断选择的文字中是否最后一个字是电子设备内部存储的英文姓名。如果是,则判断语义分析的结果是当前选中的文字是一个人名。
举例的,语义分析也可以是,电子设备根据其内部存储的地名数据库,判断选择的文字是否是电子设备内部存储的地名。如果是,则判断语义分析的结果是当前选中的文字是一个地名。
本发明实施例中的数据库也可以是存放在服务器或别的设备上的。
下面将对本发明实施例中的数据粘贴方法的应用场景作具体的介绍。
如图4所示,是本发明实施例提供的粘贴数据的场景的第一示意图。图4中,最左图是在备忘录中的一段文字,用户通过操作,例如长按,选定其中部分文字,并进行复制或剪切操作,将复制或剪切的文字放到剪贴板中。之后,电子设备检测到一个网页应用程序被打开,即被粘贴文字的应用被打开。网页应用程序可以是浏览器,用户可以手动退出备忘录,在桌面上找到浏览器的图标后打开,也可以在选定文字时,在当前页面操作快捷按钮打开。如图4中的中间图所示,该应用只有一个搜索框,该复制或剪切的文字被放入搜索框中。当检测到搜索图标被点击后,进入最右图的应用界面。搜索框中的“Huawei Hilink”被显示到搜索框下面的搜索框中。当然,“Huawei Hilink”可以都显示到上下两个搜索框中。接着在应用界面中显示出“Huawei Hilink”相关的搜索结果。有了上述搜索结果后,用户可以从中选择想要的搜索结果。
如图5所示,是本发明实施例提供的粘贴数据的场景的第二示意图。图4中,最左图是在备忘录中的一段文字,用户通过长按选定其中部分文字并复制或剪切,将复制或剪切的文字放到剪贴板中。之后,电子设备检测到百度搜索页面或者百度应用被打开。如图4中最右图所示,“Huawei Hilink”被自动输入到百度搜索的搜索框中。由于 “Huawei Hilink”被输入到该电子设备默认的搜索框中,而百度搜索是默认的搜索引擎,所以将在百度搜索的搜索结果中显示搜索结果。
如图7所示,是本发明实施例提供的粘贴数据的场景的第四示意图。图7中,最左图是在备忘录中的一段文字,用户通过长按选定其中部分文字并复制或剪切,将复制或剪切的文字放到剪贴板中。之后,电子设备检测到阅读程序被打开,如图7中最右图所示,复制或剪切的文字是“嫌疑人X的献身”,则在阅读程序的搜索框中自动粘贴“嫌疑人X的献身”,则搜索界面在搜索框的背景(横幅banner位)出现了“嫌疑人X的献身”的图片背景,并在搜索框的下方(首排推荐位)出现了“嫌疑人X的献身”相关书籍的封面。此时若用户点击搜索按钮,电子设备可以跳转页面或在当前页面显示更详细的搜索结果。
如图8所示,是本发明实施例提供的粘贴数据的场景的第五示意图。图8中,最左图是在备忘录中的一段文字,用户通过长按选定其中部分文字并复制或剪切,将复制或剪切的文字放到剪贴板中。之后,当用户在电子设备的待机界面向上或向下滑动时,会出现如图8最右图所示的界面。当搜索词“Huawei Hilink”从剪贴板被自动粘贴到如图8最右图所示的搜索框中时,会自动出现如图8最右图所示的搜索结果列表,而不需要用户的手动点击粘贴按钮。
如图9所示,是本发明实施例提供的粘贴数据的场景的第五示意图。图8中,最左图是在备忘录中的一段文字,用户通过长按选定其中部分文字并复制或剪切,将复制或剪切的文字放到剪贴板中。之后,当搜索词“Huawei Hilink”从剪贴板被自动粘贴到如图9的中间的图所示的搜索框中时,会自动出现如图9中间的图所示的搜索结果推荐。如果进一步的点击图9的中间图的搜索按钮,就能出现如图9最右边的图的搜索结果列表。从用户完成剪切或复制动作后,用户不用手动将剪切或复制的结果粘贴到相应程序的搜索框中,从而节省了用户的操作电子设备的步骤和时间。
下面将结合图10对电子设备的各个构成部件进行具体的介绍:
RF电路21可用于收发信息或通话过程中,信号的接收和发送,特别地,将无线接入设备的下行信息接收后,给处理器380处理;另外,将上行的数据发送给无线接入设备。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。此外,RF电路21还可以通过无线通信与网络和其他设备通信。
存储器22可用于存储软件程序以及模块,处理器380通过运行存储在存储器22的软件程序以及模块,从而执行电子设备的各种功能应用以及数据处理。
输入单元23可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元23可包括触摸屏341以及其他输入设备342。
显示单元24可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种菜单。显示单元24可包括显示面板351,可选的,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板351。
摄像头25,也可以作为一种输入设备,具体用于将采集到的模拟视频或图像 信号转换成数字信号,进而将其储存在存储器22中。具体的,摄像头25可以包括前置摄像头、后置摄像头、内置摄像头以及外置摄像头等,本发明实施例对此不作任何限制。
电子设备还可以包括重力传感器(gravity sensor)以及其它传感器,比如,光传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
音频电路26、扬声器371、麦克风372可提供用户与电子设备之间的音频接口。音频电路26可将接收到的音频数据转换后的电信号,传输到扬声器371,由扬声器371转换为声音信号输出;另一方面,麦克风372将收集的声音信号转换为电信号,由音频电路26接收后转换为音频数据,再将音频数据输出至RF电路21以发送给比如另一电子设备,或者将音频数据输出至存储器22以便进一步处理。
处理器380是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器22内的软件程序和/或模块,以及调用存储在存储器22内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器380可包括一个或多个处理单元。
尽管未示出,上述电子设备还可以包括电源、WiFi(wireless fidelity,无线保真)模块、蓝牙模块等,在此不再赘述。
可以理解的是,上述电子设备等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。
本发明实施例可以根据上述方法示例对上述电子设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图11示出了上述实施例中所涉及的电子设备的一种可能的结构示意图,该电子设备包括:显示单元1101和输入装置1102,判断单元1103和粘贴单元1104。
上述的显示屏1101、输入装置1102、判断单元1103和粘贴单元1104实现的功能如上述方法实施例中如图1到图3的方法步骤一致,此处不作赘述。
在采用集成的单元的情况下,图12示出了上述实施例中所涉及的电子设备的一种可能的结构示意图。该电子设备包括:处理模块1302和通信模块1303。处理模块1302用于对电子设备的动作进行控制管理。通信模块1303用于支持UE与其他网络实体的通信。该电子设备还可以包括存储模块1301,用于存电子设备的程序代码和数据。
其中,处理模块1302可以是处理器或控制器,例如可以是中央处理器 (Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明实施例公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块1303可以是收发器、收发电路或通信接口等。存储模块1301可以是存储器。
当处理模块1302为处理器,通信模块1303为RF收发电路,存储模块1301为存储器时,本发明实施例所提供的电子设备可以为图10所示的电子设备。
处理模块1302具体用于执行上述本发明实施例中的方法步骤,此处不再赘述。
如图13所示,是一个处理器的内部实现框图。可以从图中看出,处理器中包括4个高速处理核和4个低速处理核。每4个高速处理核和一个相应的二级缓存配合起来,形成一个高速核处理区域。每4个低速处理核和一个相应的二级缓存配合起来,形成一个低速核处理区域。这里高速处理核可以指处理频率为2.1GHz(赫兹)的处理核。这里低速处理核可以指处理频率为1.7GHz(赫兹)的处理核。
而所有处理模块1302执行的步骤都是由高速处理核或低速处理核完成。
除了高速处理核,低速处理核和相应的二级缓存外,还有其他的组成部分。例如,调制解调器基带部分;和射频收发器连接,用于处理射频信号的基带部分;和显示器相连的显示子系统;和CPU外部相连的图像信号处理子系统;和DDR存储相连的单通道DDR控制器;,和嵌入多媒体卡连接的嵌入多媒体卡接口;和个人电脑连接的USB接口;和短距通信模块相连的SDIO输入输出接口;和蓝牙,GPS相连的UART接口;和传感器相连的I2C接口;和智能卡SIM卡接口的智能卡接口。以及CPU内部还包括的影片处理子系统,Sensor Hub子系统,低功耗微控制器,高分辨率视频编解码器,双安全引擎,图像处理器和二级缓存形成的图像处理单元。还有布局于CPU内部的一致性总线,用于连接CPU中的所有接口及处理单元。
在上述实施例中,可以全部或部分的通过软件,硬件,固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式出现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘,硬盘、磁带)、光介质(例如,DVD)或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (18)

  1. 一种粘贴数据的方法,其特征在于,包括:
    显示第一应用,所述第一应用上显示至少一个字符;
    接收用户对所述至少一个字符中的一个或多个第一字符的操作;
    响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用,所述第二应用包括搜索框;所述一个或多个第一字符自动显示在所述搜索框内;
    其中,所述一个或多个第一字符的语义与所述第二应用关联。
  2. 根据权利要求1所述的方法,其特征在于,所述一个或多个第一字符自动显示在所述搜索框内之后,所述方法还包括:
    显示根据所述一个或多个第一字符搜索的结果。
  3. 根据权利要求1或2所述的方法,其特征在于,所述在所述一个或多个一个或多个第一字符自动显示在所述搜索框内之前,还包括:
    判断所述一个或多个第一字符在所述当前应用的数据库中是否存在对应的内容;
    如果所述一个或多个第一字符在所述当前应用的数据库中存在对应的内容,则自动将所述一个或多个第一字符粘贴至所述搜索类输入区。
  4. 根据权利要求1所述的方法,其特征在于,所述一个或多个第一字符的语义包括人名,
    所述一个或多个第一字符的语义与所述第二应用关联包括:所述人名与所述电话本应用关联。
  5. 根据权利要求1所述的方法,其特征在于,所述一个或多个第一字符的语义包括地名,
    所述一个或多个第一字符的语义与所述第二应用关联包括:所述地名与所述地图应用或旅行应用关联。
  6. 根据权利要求1所述的方法,其特征在于,所述响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用包括:
    响应于对所述至少一个字符中的一个或多个第一字符的操作,在提示菜单中显示包括所述第二应用的至少两个应用;
    接收用户从至少两个应用中选择的所述第二应用;
    响应于用户选择的所述第二应用,显示第二应用。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述操作包括复制操作或者剪切操作。
  8. 一种电子设备,其特征在于,包括:
    显示屏,用于显示第一应用,所述第一应用上显示至少一个字符;
    输入装置,用于接收用户对所述至少一个字符中的一个或多个第一字符的操作;
    所述显示屏,还用于响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用,所述第二应用包括搜索框;所述一个或多个第一字符显示在所述搜索框内;
    其中,所述一个或多个第一字符的语义与所述第二应用关联。
  9. 根据权利要求8所述的电子设备,其特征在于,所述显示屏还用于:显示根据所述一个或多个第一字符搜索的结果。
  10. 根据权利要求8-9所述的电子设备,其特征在于,还包括:
    判断单元,用于判断所述一个或多个第一字符在在所述当前应用的数据库中是否存在对应的内容;
    粘贴单元,用于当所述一个或多个第一字符在在所述当前应用的数据库中存在对应的内容时,自动将所述一个或多个第一字符在粘贴至所述搜索类输入区。
  11. 根据权利要求8所述的电子设备,其特征在于,所述一个或多个第一字符的语义包括人名,
    所述一个或多个第一字符的语义与所述第二应用关联包括:所述人名与所述电话本应用关联。
  12. 根据权利要求8所述的电子设备,其特征在于,所述一个或多个第一字符的语义包括地名,
    所述一个或多个第一字符的语义与所述第二应用关联包括:所述地名与所述地图应用或旅行应用关联。
  13. 根据权利要求8所述的电子设备,其特征在于,所述显示屏响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用包括:
    所述显示屏响应于对所述至少一个字符中的一个或多个第一字符的操作,在提示菜单中显示包括所述第二应用的至少两个应用;
    接收用户从至少两个应用中选择的所述第二应用后,所述显示屏响应于用户选择的所述第二应用,显示第二应用。
  14. 根据权利要求8-13任一项所述的电子设备,其特征在于,所述操作包括复制操作或者剪切操作。
  15. 一种电子设备,其特征在于,包括:处理器、存储器、总线和通信接口;
    所述存储器用于存储计算机执行指令,所述处理器与所述存储器通过所述总线连接,当所述电子设备运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述电子设备执行如权利要求1-9中任一项所述的粘贴数据的方法。
  16. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-9中任一项所述的粘贴数据的方法。
  17. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-9中任一项所述的粘贴数据的方法。
  18. 一种图形用户界面GUI,所述GUI存储在电子设备中,所述电子设备包括触摸屏、存储器、一个或多个处理器,所述一个或多个处理器用于执行存储在所述存储器中的一个或多个计算机程序,其特征在于,所述图形用户界面包括:
    显示第一应用的第一GUI,所述第一应用的第一GUI上显示至少一个字符;
    响应于对所述至少一个字符中的一个或多个第一字符的操作,显示第二应用,所述第二应用的第二GUI上包括搜索框;所述一个或多个第一字符自动显示在第二GUI上的所述搜索框内;
    其中,所述一个或多个第一字符的语义与所述第二应用关联。
PCT/CN2018/106667 2018-04-13 2018-09-20 一种粘贴数据的方法及装置 WO2019196342A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018083118 2018-04-13
CNPCT/CN2018/083118 2018-04-13

Publications (1)

Publication Number Publication Date
WO2019196342A1 true WO2019196342A1 (zh) 2019-10-17

Family

ID=68163910

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/106667 WO2019196342A1 (zh) 2018-04-13 2018-09-20 一种粘贴数据的方法及装置

Country Status (1)

Country Link
WO (1) WO2019196342A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246638A (zh) * 2013-05-13 2013-08-14 北京小米科技有限责任公司 一种信息粘贴方法和装置
CN103685626A (zh) * 2012-09-10 2014-03-26 Lg电子株式会社 移动终端及其控制方法
CN105607807A (zh) * 2015-12-22 2016-05-25 惠州Tcl移动通信有限公司 一种基于移动终端的文字处理方法及系统
CN106445697A (zh) * 2016-09-13 2017-02-22 乐视控股(北京)有限公司 一种信息处理方法及装置
CN106528603A (zh) * 2016-09-23 2017-03-22 维沃移动通信有限公司 应用程序搜索方法及移动终端
CN106708632A (zh) * 2016-11-29 2017-05-24 深圳天珑无线科技有限公司 信息编辑方法和信息编辑装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685626A (zh) * 2012-09-10 2014-03-26 Lg电子株式会社 移动终端及其控制方法
CN103246638A (zh) * 2013-05-13 2013-08-14 北京小米科技有限责任公司 一种信息粘贴方法和装置
CN105607807A (zh) * 2015-12-22 2016-05-25 惠州Tcl移动通信有限公司 一种基于移动终端的文字处理方法及系统
CN106445697A (zh) * 2016-09-13 2017-02-22 乐视控股(北京)有限公司 一种信息处理方法及装置
CN106528603A (zh) * 2016-09-23 2017-03-22 维沃移动通信有限公司 应用程序搜索方法及移动终端
CN106708632A (zh) * 2016-11-29 2017-05-24 深圳天珑无线科技有限公司 信息编辑方法和信息编辑装置

Similar Documents

Publication Publication Date Title
JP6974152B2 (ja) 情報処理装置及び情報処理方法
CN108139862B (zh) 多窗口键盘
US11755835B2 (en) Method and apparatus for displaying candidate word, and graphical user interface
CN106874390B (zh) 浏览器历史记录查看方法和终端
EP2630595B1 (en) Searching multiple data sources using a mobile computing device
CN114756782B (zh) 一种显示收藏对象的方法和终端
US9241242B2 (en) Information recommendation method and apparatus
US20170091335A1 (en) Search method, server and client
CN105718500B (zh) 电子设备的基于文本的内容管理方法和装置
CN108364644A (zh) 一种语音交互方法、终端及计算机可读介质
TWI597964B (zh) 訊息儲存方法、裝置及通訊終端
US20150213127A1 (en) Method for providing search result and electronic device using the same
CN108287918B (zh) 基于应用页面的音乐播放方法、装置、存储介质和电子设备
KR20160021637A (ko) 컨텐츠 처리 방법 및 그 전자 장치
WO2015000429A1 (zh) 智能选词的方法和装置
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
WO2021135578A1 (zh) 页面处理方法、装置、存储介质及终端设备
WO2015000430A1 (zh) 智能选词的方法和装置
CN109543014B (zh) 人机对话方法、装置、终端及服务器
US20150154682A1 (en) Enriching product catalog with search keywords
CN108491502B (zh) 一种新闻追踪的方法、终端、服务器及存储介质
TW201447232A (zh) 電子裝置及其根據地址資訊啓動應用程式的方法
WO2016145266A2 (en) Context sensitive phrase identification
US10630619B2 (en) Electronic device and method for extracting and using semantic entity in text message of electronic device
WO2019196342A1 (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: 18914559

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

Country of ref document: EP

Kind code of ref document: A1