A method, device and medium for processing custom content
By monitoring the user's cut and paste operations and providing relevant prompt information, the problem of low efficiency in setting custom content of the input method is solved, the efficient addition of custom content is realized, and the user experience is improved.
Patent Information
- Application Number
- CN202010080056.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-04
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-04-28
AI Technical Summary
Existing input methods require frequent interface switching when customizing phrase settings, which is cumbersome and inefficient, resulting in low efficiency in setting custom content.
By monitoring the user's cutting and pasting operations, it obtains and displays prompt information related to the cut and pasted content, prompts the user to add customized content, and simplifies the process of adding customized content.
It improves the convenience and efficiency of adding custom content, reduces the steps of interface switching, and improves the user's input experience.
Smart Images

Figure CN113220468B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method for processing custom content, a device for processing custom content, a device for processing custom content, and a machine-readable medium. Background Art
[0002] Input method refers to the encoding method used to input various texts into devices (such as computers, mobile phones, tablets, etc.), which can facilitate users to input information in various scenarios.
[0003] Currently, input methods support users to set custom phrases. Specifically, a mapping relationship between an input string and a custom phrase can be set. In this way, when the user's input string hits the above mapping relationship, the custom phrase in the mapping relationship can be provided, thereby improving the user's input efficiency and improving the user's input experience.
[0004] The inventors found in the process of implementing the embodiments of the present invention that in order to set a custom phrase, it is usually necessary to first switch from the input interface to the setting interface to perform operations such as adding, deleting, and modifying the custom phrase, and then switch back to the input interface to view the editing effect of the custom phrase. The above setting process requires switching between the two interfaces, which is cumbersome and makes the setting efficiency of the custom content low. Summary of the invention
[0005] The embodiments of the present invention provide a method for processing custom content, a device for processing custom content, a device for processing custom content, and a machine-readable medium, which can improve the efficiency of adding custom content.
[0006] In order to solve the above problem, an embodiment of the present invention discloses a method for processing customized content, including:
[0007] Monitor users' cut and paste operations;
[0008] Obtain and display prompt information related to the clipping content; the prompt information is used to prompt the user to add customized content to the clipping content.
[0009] On the other hand, an embodiment of the present invention discloses a device for processing customized content, including:
[0010] A monitoring module, used to monitor the user's cut and paste operations;
[0011] The prompt module is used to obtain and display prompt information related to the clipping content; the prompt information is used to prompt the user to add customized content to the clipping content.
[0012] In another aspect, an embodiment of the present invention discloses a device for processing custom content, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0013] Monitor users' cut and paste operations;
[0014] Obtain and display prompt information related to the clipping content; the prompt information is used to prompt the user to add customized content to the clipping content.
[0015] On the other hand, an embodiment of the present invention discloses one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable a device to execute one or more of the aforementioned methods for processing custom content.
[0016] The embodiments of the present invention include the following advantages:
[0017] After detecting the user's clipping operation, the embodiment of the present invention provides the user with prompt information related to the clipping content. The prompt information can prompt the user to add custom content to the clipping content, thereby improving the convenience of adding custom content and further improving the efficiency of adding custom content. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0019] Figure 1 It is a flowchart of the steps of Embodiment 1 of a method for processing customized content of the present invention;
[0020] Figure 2 It is a flowchart of the steps of Embodiment 2 of a method for processing customized content of the present invention;
[0021] Figure 3 is a schematic diagram of a recommendation window in an embodiment of the present invention;
[0022] Figure 4 is a schematic diagram of a recommendation window in an embodiment of the present invention;
[0023] Figure 5 is a schematic diagram of a recommendation window in an embodiment of the present invention;
[0024] Figure 6is a structural block diagram of an embodiment of a processing device for customized content of the present invention;
[0025] Figure 7 is a block diagram of an apparatus 900 for processing customized content according to the present invention; and
[0026] Figure 8 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] In response to the technical problem of the efficiency of setting custom content in the related art, an embodiment of the present invention provides a data processing solution, which may specifically include: monitoring the user's cutting and pasting operations; obtaining and displaying prompt information related to the clipping content; the above prompt information is used to prompt the addition of custom content for the above clipping content.
[0029] After detecting the user's clipping operation, the embodiment of the present invention provides the user with prompt information related to the clipping content. The prompt information can prompt the user to add custom content to the clipping content, thereby improving the convenience of adding custom content and further improving the efficiency of adding custom content.
[0030] The method for processing customized content provided by the embodiment of the present invention can be applied to an application environment corresponding to a client and a server. The client and the server are located in a wired or wireless network, and the client and the server perform data interaction through the wired or wireless network.
[0031] Optionally, the client can be run on a terminal, which specifically includes but is not limited to: a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop computer, a car computer, a desktop computer, a set-top box, a smart TV, a wearable device, etc. The operating system installed in the above terminal may include: IOS, Android, Windows, Linux, etc. It can be understood that the embodiment of the present invention does not limit the specific operating system installed in the terminal.
[0032] Optionally, the terminal may be a PC (Personal Computer). Of course, the terminal may be a mobile terminal, and the embodiment of the present invention does not limit the specific terminal.
[0033] The above-mentioned client can correspond to any application program, such as an input method program, an instant messaging program, a recommendation program, etc.
[0034] The embodiment of the present invention can be applied to input method programs of input methods such as keyboard symbol input, handwriting input, and voice input. For the convenience of description, the embodiment of the present invention refers to the encoded string input by the user in the above input methods as an input string. In the field of input methods, for input method programs such as Chinese, Japanese, Korean, or other languages, the input string input by the user can usually be converted into a candidate of the corresponding language. The following mainly uses Chinese as an example to illustrate the input process of the embodiment of the present invention, and other languages can be referenced. It can be understood that the above-mentioned Chinese input method may include but is not limited to full spelling, simplified spelling, strokes, Wubi, etc., and the embodiment of the present invention does not limit the specific input method program corresponding to a certain language.
[0035] According to some embodiments, the input string may include, but is not limited to, a key symbol or a combination of multiple key symbols input by the user through keys. The key symbol may specifically include pinyin, strokes, kana, and the like.
[0036] Method Example 1
[0037] Reference Figure 1 , shows a flowchart of the steps of a first embodiment of a method for processing customized content of the present invention, which may specifically include:
[0038] Step 101, monitoring the user's cut and paste operation;
[0039] Step 102: Obtain and display prompt information related to the clipping content; the prompt information is used to prompt the user to add customized content to the clipping content.
[0040] Figure 1 The first embodiment of the method shown can be executed by a client. It can be understood that the embodiment of the present invention does not limit the specific execution subject of the steps included in the method.
[0041] In step 101, the cut and paste operation may include operations such as cut, copy, and paste. The cut and paste content may refer to the content selected by the user through the cut, copy, and paste operations.
[0042] In the embodiment of the present invention, the user's clipping operation can be monitored by monitoring the triggering event of the input device, and the input device may include: a keyboard, a mouse or a touch screen, etc. Alternatively, the user's clipping operation can be monitored by monitoring the information of the clipboard. For example, when the clipboard information is monitored to change, it is considered that the user's clipping operation is monitored.
[0043] The clipboard is an area in the memory and a plug-in in the preset program. Through the clipboard, users can transfer and share selected information between various applications through actions such as cutting, copying, and pasting. The clipboard uses the terminal's internal resource memory or virtual memory to temporarily save cut or copied information.
[0044] In step 102, prompt information related to the clipping content is displayed, and the user may be prompted to add customized content to the clipping content.
[0045] Optionally, the prompt information may include: prompt text and adding controls. For example, the prompt text may be "Do you want to add a shortcut phrase, which can be quickly input after adding", and the adding control may be used to trigger the adding process of the custom content corresponding to the clipped content.
[0046] Optionally, the embodiment of the present invention may also display the clipping content, so that the user's demand for the clipping content can be clarified, and further the user can be helped to determine whether to add customized content to the clipping content.
[0047] In summary, the method for processing custom content in an embodiment of the present invention, after monitoring the user's clipping operation, will provide the user with prompt information related to the clipping content. The above prompt information can prompt the user to add custom content to the above clipping content, thereby improving the convenience of adding custom content and further improving the efficiency of adding custom content.
[0048] Method Example 2
[0049] Reference Figure 2, shows a flowchart of the steps of Embodiment 2 of a method for processing customized content of the present invention, which may specifically include:
[0050] Step 201, monitoring the user's cut and paste operation;
[0051] Step 202: Obtain and display prompt information related to the clipping content; the prompt information is used to prompt adding customized content to the clipping content;
[0052] Relative to Figure 1 The method of the first embodiment shown in the figure may further include:
[0053] Step 203: In response to the user's feedback operation on the prompt information, determining the custom content and trigger content corresponding to the clipped content;
[0054] Step 204: display the custom content and trigger content corresponding to the clipped content;
[0055] Step 205: In response to the user's completion operation, the custom content and trigger content corresponding to the clipped content are saved.
[0056] The user's feedback operation on the above prompt information may indicate that the user confirms to add the custom content to the clipped content, and thus the process of adding the custom content corresponding to the clipped content may be executed.
[0057] In the process of adding custom content corresponding to the clipped content in the embodiment of the present invention, the custom content and trigger content corresponding to the clipped content can be automatically determined, wherein the trigger content is used to trigger the display of the custom content. For example, when the user's input content matches the trigger content, the custom content corresponding to the input content is displayed, thereby realizing quick input of custom content.
[0058] In the embodiment of the present invention, the clipping content can be directly used as the custom content. Alternatively, the clipping content can be preprocessed and the preprocessed clipping content can be used as the custom content.
[0059] Optionally, preprocessing can remove incomplete content. Human factors in the clipping process may cause the clipping content to be incomplete, and the above preprocessing can improve the integrity of the clipping content. For example, the user's original intention is to copy a sentence A, but at the same time, part A before sentence A and part B after sentence A are also copied. Part A and part B are both incomplete sentences, so the embodiment of the present invention can remove part A and part B through preprocessing to improve the integrity of the clipping content.
[0060] In an optional embodiment of the present invention, the above-mentioned determination of the custom content and the trigger content corresponding to the above-mentioned clipping content may specifically include:
[0061] Extracting a character string of a preset length from the custom content corresponding to the clipped content in order from front to back as the trigger content; or
[0062] The custom content corresponding to the clipped content is subjected to natural language processing, and trigger content is extracted from the custom content corresponding to the clipped content according to the natural language processing result.
[0063] The embodiment of the present invention can extract a character string of a preset length from the beginning of the clipping content as the trigger content. The preset length can be determined by those skilled in the art according to actual application requirements, for example, the preset length can be 5, or 4, etc.
[0064] The embodiment of the present invention can perform natural language processing on the custom content corresponding to the clipping content. For example, keywords can be extracted from the custom content corresponding to the clipping content as trigger content.
[0065] The natural language processing method of the embodiment of the present invention may include: syntactic analysis method, deep learning method, TF-IDF (term frequency, inverse document frequency, term frequency-inverse document frequency), etc. It can be understood that the embodiment of the present application does not limit the specific natural language processing method.
[0066] The custom content and trigger content displayed in step 204 can be confirmed by the user. If the user confirms, the completion operation of step 205 can be triggered. Therefore, the custom content and trigger content corresponding to the above-mentioned clipped content can be saved, that is, the mapping relationship between the custom content and the trigger content can be saved.
[0067] In an optional embodiment of the present invention, the method may further include: displaying an adding interface corresponding to the trigger content.
[0068] In the embodiment of the present invention, one custom content may correspond to at least one trigger content. Therefore, the embodiment of the present invention may support adding other trigger contents based on the displayed trigger contents, and may specifically add other trigger contents through an adding interface.
[0069] Optionally, the above-mentioned adding interface package may include: an input box; the above-mentioned method may also include: in response to the user's enter operation on the above-mentioned input box, using the content in the above-mentioned input box as trigger content.
[0070] In an embodiment of the present invention, it is optional to support a deletion operation for displayed trigger content. For example, the trigger content can be displayed in an input box, and a corresponding deletion control can be provided in the input box. When a trigger operation for the deletion control is received, the corresponding trigger content in the input box can be deleted.
[0071] In the embodiment of the present invention, relevant content in the process of processing the customized content may be displayed in the recommendation window.
[0072] In the embodiment of the present invention, a window refers to a basic unit set in a graphical user interface by an application program for using data. The embodiment of the present invention can take advantage of the large screen of a PC to display rich content in a recommendation window.
[0073] The recommendation window can be independent of the current application. For example, the recommendation window can be provided by the input method program, and the current application can be an application hosted by the input method program, such as an instant messaging application, etc. Then the recommendation window can be independent of the communication window of the instant messaging application, thereby overcoming the problem of the limited window size of the current application and reducing the impact on the window of the current application. The current application can refer to the application that is currently in the foreground.
[0074] Of course, the recommendation window may belong to the current application, that is, the recommendation window is provided by the current application, and the embodiment of the present invention does not limit the specific relationship between the recommendation window and the current application.
[0075] Optionally, in the case where the recommendation window is provided by an input method program, the recommendation window may be different from the input window of the input method program. Specifically, the input window is used for inputting input content, while the recommendation window is used for recommending second content.
[0076] For example, the input window includes: an input string area and a candidate area, the input string area is used to display the input string input by the user, such as "zan", and the candidate area is used to display the candidate items corresponding to the input string. The recommendation window can be used to display at least one category of second content.
[0077] Those skilled in the art can determine the position and size of the recommendation window according to actual application requirements. For example, the recommendation window can be located on the right side of the screen. Of course, the position of the recommendation window can be determined according to the browsing habits of the users. For example, if user A is accustomed to browsing the content on the left, the recommendation window can be located on the left, and if user B is accustomed to browsing the content on the right, the recommendation window can be located on the right.
[0078] Optionally, the size of the recommendation window in the vertical direction may be smaller than the size of the screen in the vertical direction, the size of the recommendation window in the vertical direction may be smaller than half of the size of the screen in the horizontal direction, and so on.
[0079] Of course, the recommendation window can be located at the upper side or the lower side, etc. For example, some users habitually use office windows located at the upper side or the lower side, so the recommendation window can be set at the opposite side of the office window. For example, if the office window is located at the upper side, the recommendation window is located at the lower side; or, if the office window is located at the lower side, the recommendation window is located at the upper side, etc.
[0080] Therefore, in an optional embodiment of the present invention, the position of the recommendation window may be determined according to the position of the current active window. The position of the recommendation window may be relative to the position of the current active window.
[0081] In an optional embodiment of the present invention, the size of the recommendation window may be determined according to the size of the current active window. The sum of the sizes of the current active window and the recommendation window in a certain direction may be smaller than the size of the screen in this direction.
[0082] It can be understood that the embodiment of the present invention does not limit the specific position and size of the recommendation window.
[0083] It is understandable that the position of the recommendation window can be updated according to a position update operation, for example, the position update operation can be a window drag operation, etc. It is understandable that the size of the recommendation window can be updated according to a size adjustment operation.
[0084] In the embodiment of the present invention, optionally, the display of the recommendation window may be triggered in the following manner: in response to a triggering operation on a floating control or a shortcut icon, the recommendation window is displayed.
[0085] An embodiment of the present invention may provide a floating control, and when a trigger operation for the floating control is received, the floating control may be stopped from being displayed, and a recommendation window may be displayed. It is understood that a close control or a minimize control may be displayed on the recommendation window, and when a trigger operation for the close control or the minimize control is received, the display of the recommendation window may be stopped, and the floating control may be redisplayed.
[0086] Therefore, the state of the recommendation window in the embodiment of the present invention may include: a display state and a non-display state. The embodiment of the present invention may switch between the display state and the non-display state through a floating control.
[0087] Another embodiment of the present invention may provide a shortcut icon to trigger the display of the recommendation window. It is understood that a close control or a minimize control may be displayed on the recommendation window, and if a trigger operation for the close control is received, the recommendation window may be closed; if a trigger operation for the minimize control is received, the recommendation window may be switched to the taskbar.
[0088] In the embodiment of the present invention, the function of the recommendation window may be provided via the role of a recommendation assistant or an input assistant.
[0089] The icon of the recommendation assistant may be an icon of an object, and the object may include: a person, a virtual person, an animal, a virtual animal, a plant, a virtual plant, etc. For example, the object may be a virtual animal such as a virtual cat or a virtual dog. The icon of the recommendation assistant is an object such as a virtual animal, which may increase the attractiveness and engagement of the recommendation assistant to the user.
[0090] Reference Figure 3 , shows a schematic diagram of a recommendation window according to an embodiment of the present invention, and the recommendation window may include: an input box 301 and a display area 302.
[0091] The input box 301 may be used to display the clipping content. If the clipping content is long in characters, the clipping content may be omitted for display. Figure 3 A search trigger control is provided on the right side of the input box 301 to trigger a search of the content in the input box 301 .
[0092] The display area 302 is used to obtain and display prompt information related to the clipping content.
[0093] The display area 302 may include: clipping content 321 , prompt text 322 , and adding control 323 .
[0094] According to another embodiment, step 204 may display the custom content and trigger content corresponding to the clipped content in the recommendation window.
[0095] According to an embodiment, step 202 may obtain and display prompt information related to the clipped content in the recommendation window.
[0096] Reference Figure 4 , shows a schematic diagram of a recommendation window of an embodiment of the present invention, and the recommendation window may include: an input box 401 and a display area 402. If a trigger operation for adding a control 323 is received, it can jump to Figure 4 The recommendation window.
[0097] Figure 4 The input box 401 in Figure 3 The input box 301 in is similar and will not be described in detail here.
[0098] Figure 4 In the example, the display area 402 may include: a trigger content area 421 , a custom content area 422 , a cancel control 423 , and a completion control 424 .
[0099] The custom content area 422 may display custom content corresponding to the clipped content.
[0100] The trigger content area 421 can display the trigger word corresponding to the custom content. The trigger content area 4211 can be used to display the automatically determined trigger word 1. The trigger content area 4212 can be used to input the desired trigger word 2, and optionally, the character length of the trigger word 2 is within 5. It can be understood that after the user inputs the desired trigger word 2 in the trigger content area 4212, the trigger content area 4213 can be provided to facilitate the user to input the desired trigger word 3.
[0101] In the embodiment of the present invention, the addition of the custom content can be completed in response to the trigger operation of the completion control 424, that is, the mapping relationship between the custom content and the triggering content can be saved. Alternatively, the addition of the custom content can be canceled in response to the trigger operation of the cancel control 423.
[0102] In an optional embodiment of the present invention, the above method may further include: providing a corresponding deletion interface and / or modification interface for the saved custom content and trigger content.
[0103] Optionally, at least one custom content and a deletion interface and / or modification interface corresponding to each custom content may be displayed in the area corresponding to the custom content. The deletion interface may be used to delete the custom content, and the modification interface may be used to modify the custom content and / or the trigger content.
[0104] The area corresponding to the custom content can correspond to the custom content label in the display area of the recommendation window. The corresponding content in the aforementioned custom content adding process can correspond to the recommendation assistant label in the display area of the recommendation window. Users can switch between different tabs.
[0105] In an optional embodiment of the present invention, the method may further include: if the user input content matches the saved trigger content, displaying all the custom content corresponding to the saved trigger content.
[0106] In the related art, the input method program can display custom content in the candidate area, but due to the size limit of the candidate area, when the custom content is long, the custom content is usually omitted. For example, "Room 01, 9th Floor, Sohu Network Building, Building 9, Yard 1, Zhongguancun East Road, Haidian District, Beijing" is omitted as "Sohu..., Building 9, Yard 1, Zhongguancun East Road, Haidian District, Beijing..." The omitted custom content is likely to affect the user's judgment speed and input speed. That is, when faced with the omitted custom content, the user usually cannot know whether the content is the required content.
[0107] The recommendation window of the embodiment of the present invention can be a window different from the input window, so it is not limited by the size of the candidate area and can display customized content, thereby improving the judgment speed and input speed of the user. In particular, when applied to a PC, the embodiment of the present invention can take advantage of the large screen of the PC to display rich customized content in the recommendation window.
[0108] In other embodiments of the present invention, other recommended content may be displayed in the recommendation window. Specifically, the first content triggered by the user may be monitored; the first content may include: input content or word-marking content; and the second content corresponding to the first content may be displayed in the recommendation window.
[0109] The embodiment of the present invention displays the second content corresponding to the first content in the recommendation window according to the first content triggered by the user in real time; the second content can be used as the recommendation result of the first content. Since the embodiment of the present invention can intelligently recommend the corresponding second content according to the first content triggered by the user in real time, so that the user can quickly obtain the information corresponding to the first content from the second content, the user's information acquisition efficiency can be improved.
[0110] In the case of application in a PC environment, the word-marking content may refer to the content selected by sliding on the text content when the mouse is pressed. In practical applications, the mouse press event and the mouse lift event may be monitored to obtain the word-marking content. Specifically, the content between the mouse press event and the mouse lift event may be used as the word-marking content. It is understood that the embodiments of the present invention do not limit the specific method for determining the word-marking content.
[0111] Those skilled in the art may determine the category corresponding to the second content according to actual application requirements. For example, the category corresponding to the second content may specifically include at least one of the following categories: beautification replacement category, expression category, custom category, translation category, encyclopedia category, and association category.
[0112] Among them, the second content of the beautification replacement category can be obtained by beautifying the first content, which can optimize the expression of the first content and improve the expression result. For example, if the first content is "like", the second content can include: "My likes for you are like a surging river, endless", "This must be praised, and I will feel guilty if I don't praise it", etc. For another example, if the first content is "so sad", the corresponding second content can include: "So sad, I feel I will never love again", "The baby is suffering, the baby wants to say", "The baby is a little sad and sentimental", "I feel so uncomfortable and blocked in my heart", "My eyes are dry and I feel like crying", etc.
[0113] The second content of the expression category may be an expression corresponding to the first content.
[0114] Optionally, the first content may be matched with keywords corresponding to the emoticon image to obtain an emoticon image matching the content in the input box as the second content. The keywords corresponding to the emoticon image may be obtained by annotation.
[0115] In actual application, one or more emoticon images corresponding to the first content can be displayed for user selection. If a user selection operation for an emoticon image is received, the emoticon image selected by the user can be displayed on the screen, that is, the emoticon image selected by the user can be output to the screen.
[0116] In the related art, if the user needs to input an emoticon picture, the user needs to trigger the emoticon entrance in the input window to open the emoticon page and select the desired emoticon picture from the emoticon page. Since the embodiment of the present invention can recommend corresponding emoticons according to the first content triggered by the user, the input efficiency of emoticons can be improved.
[0117] For example, when the first content is “Like”, at least one emoticon image corresponding to the keyword “Like” may be recommended for the user to select.
[0118] The second content of the custom category, referred to as custom content, can be user-defined content. The embodiment of the present invention can support users to set the mapping relationship between trigger content and custom content to achieve fast input of custom content. For example, the trigger content is "gsdizhi" or "company address" or "address", and the custom content is "Room 01, 9th Floor, Sohu Network Building, Building 9, Yard 1, Zhongguancun East Road, Haidian District, Beijing", etc. The embodiment of the present invention can provide custom content corresponding to the first content when the first content hits the trigger content in the mapping relationship. The embodiment of the present invention can utilize the feature that the size of the recommendation window is not limited to display all characters of the custom content. For example, when the character length of the custom content exceeds 100, all characters of the custom content can still be displayed to increase the richness of the displayed content and enhance the user experience.
[0119] The second content of the translation category may represent the content obtained by translating the first content. The first content may be the original text, and the second content may be the translation. Assuming that the first content corresponds to the first language and the second content corresponds to the second language, the second language may be obtained according to the user's settings, or the second language may be determined according to the user's historical usage data of the language. For example, the user's usage frequency of the language may be determined, and the language with the highest usage frequency and different from the first language may be selected from the languages used by the user as the second language.
[0120] Optionally, the second language may be determined based on input environment characteristics.
[0121] In the embodiment of the present invention, the input environment feature can be used to characterize the environment information of the terminal when the user inputs. In the embodiment of the present invention, the input environment feature is used in the second language determination process, which can improve the accuracy of the second language.
[0122] In practical applications, the input environment features may include various types of features. Optionally, the input environment features may include at least one of time environment features, location environment features, climate environment features, application environment features, and page environment features.
[0123] Even for the same terminal, the environment information is likely to change, and the time environment feature is a typical example. Therefore, the input environment feature of the embodiment of the present invention can be real-time, and the input environment feature corresponding to the input string can be obtained in real time during the input process.
[0124] For an input string, its receiving time can be used as the corresponding time environment feature.
[0125] The location information obtained according to its IP (Internet Protocol) address, the GPS (Global Positioning System) of the terminal or the mobile communication network can be used as the corresponding location environment feature.
[0126] By obtaining the identification features of the current object being served by the input method program, the corresponding application environment features can be determined. For example, when the input method program is running, calling GetModuleFilename finds the program path name "C:\ProgramFiles\MicrosoftOffice\OFFICE11\WINWORD.EXE", it can be determined that the corresponding application environment features are "WinWord.exe", that is, the input string is entered in the word application.
[0127] The page environment characteristics can be used to characterize the page environment provided by an application or website. Optionally, the above-mentioned page environment may include but is not limited to: instant messaging IM page environment, document page environment, email page environment, password input page environment, game page environment, search page environment, travel page environment, shopping page environment, social page environment, film and television page environment, reading page environment, etc.
[0128] Of course, in addition to time environment features, location environment features, application environment features and page environment features, the input environment features of the embodiment of the present invention may also include other environment features, for example, physical environment features such as air pressure, altitude, temperature, humidity, etc. It can be understood that the embodiment of the present invention does not limit the specific input environment features.
[0129] For example, the second language can be determined based on the location environment characteristics of the user. For example, according to the country where the user is located, a translation result in the language of the corresponding country can be provided.
[0130] Alternatively, the second language can be determined based on the page environment characteristics of the user. For example, if the page includes English, the second language is English; or if the page includes Japanese, the second language is Japanese, etc. Or, if the user is accustomed to using English in the first page environment characteristics, the second language is English, etc.
[0131] Optionally, the number of the second languages can be 1, or the number of the second languages can be greater than 1. For example, when the first language is Chinese, a translation text in English or Japanese can be provided.
[0132] The second content of the encyclopedia category can represent the encyclopedic knowledge corresponding to the first content. For example, when the first content is a word, the encyclopedic knowledge can include information such as the pronunciation and definition of the word.
[0133] In the related art, when a user browses a page and encounters some unfamiliar characters, such as "曱甴", the user usually selects, copies, opens a browser, opens a search engine, and pastes for query. In the embodiments of the present invention, the word segmentation content "曱甴" of the user can be automatically monitored, and corresponding information such as pronunciation and definition can be given in the recommendation window.
[0134] The second content of the association category can be obtained by predicting and associating with the first content. The second content of the association category can reduce the number of times the user actively inputs and the number of key presses, so as to improve the input efficiency. For example, when the first content is "漫天", the second content of the association category can include: "大雪", "卷地", "飞舞", etc., for the user to select. Another example is that when the first content is a part of a poem, the second content is another part of the poem. It can be understood that in addition to predicting and associating with poems, the embodiments of the present invention can also predict and associate with lyrics and famous quotes.
[0135] In an alternative embodiment of the present invention, the second content of the association category can be interesting. For example, when the first content is "锄禾日当午", in one case, the second content can include: "锄禾日当午,汗滴禾下土,谁知盘中餐,粒粒皆辛苦"; in another case, the second content can include: "锄禾日当午,啥都不靠谱,闲了没事做,不如斗地主". The interesting second content can enhance the fun of chatting.
[0136] It is understandable that those skilled in the art may adopt one or more of the beautification replacement category, expression category, custom category, translation category, encyclopedia category and association category according to actual application requirements, and may provide one or more corresponding second contents for one category.
[0137] In the embodiment of the present invention, optionally, when displaying multiple categories of second content, the multiple categories of second content can be displayed in a vertical direction or a horizontal direction. For example, when displayed in a vertical direction, the second content of different categories can be arranged up and down; and when displayed in a horizontal direction, the second content of different categories can be arranged left and right.
[0138] In an optional embodiment of the present invention, for a category of second content, multiple second contents corresponding to the category may be displayed in a folded manner. Specifically, part of the second content corresponding to the category and an expansion control may be displayed, and more second contents corresponding to the category may be displayed according to a trigger operation on the expansion control. Optionally, when a trigger operation on the expansion control is received, the size of the recommendation window in the target direction may be increased to display more second contents.
[0139] The target direction may be a vertical direction or a horizontal direction. For example, when the second contents of different categories are arranged vertically, the target direction may be a vertical direction. For another example, when the second contents of different categories are arranged horizontally, the target direction may be a horizontal direction.
[0140] In the embodiment of the present invention, it is optional to support the user to set the number of second contents displayed for a category. For example, for the beautification replacement category, custom category, translation category, encyclopedia category and association category, it is possible to support setting the number of second contents displayed; for the expression category, it is possible to support setting the number of rows of second contents displayed, such as 1 row, 2 rows, etc.
[0141] In an embodiment of the present invention, it is optional to support users to set a trigger mode corresponding to a category of second content, and the trigger mode may include: a word-marking content trigger mode and / or an input content trigger mode. Users can choose any one or a combination of the two trigger modes according to their needs.
[0142] In an embodiment of the present invention, the method may further include: in response to a triggering operation on the second content, displaying the second content on the screen, or sending the second content to a communication peer.
[0143] By putting the second content on the screen, the second content can be quickly input. For example, in the scenario of instant messaging, by putting the second content on the screen, the second content can be output to the input box of the instant messaging.
[0144] In an embodiment of the present invention, it is optional to detect the repetition between the second content and the first content. If the repetition meets the preset conditions, the second content can be used to replace the first content, so as to achieve the effect of putting the second content on the screen and deleting the first content, thereby reducing the redundancy of information. For example, the first content includes "Ploughing the field at noon", and the second content includes "Ploughing the field at noon, nothing is reliable, I have nothing to do when I am free, so I might as well play Landlord". There is a repeated content "Ploughing the field at noon" between the two, so the second content can be used to replace the first content. Alternatively, in the case where the first content is "Like" and the second content is the emoticon picture corresponding to "Like", the second content can also be used to replace the first content.
[0145] By sending the second content to the communication peer, the second content can be quickly sent in the communication scenario.
[0146] The embodiment of the present invention can support the user to set the processing mode corresponding to a category of second content. The processing mode may include: sending mode, on-screen non-deletion mode, on-screen and deletion mode, etc. Among them, the sending mode can send the above-mentioned second content to the communication peer, the on-screen non-deletion mode can put the second content on the screen but not delete the first content, and the on-screen deletion mode can put the second content on the screen and delete the first content.
[0147] In the embodiment of the present invention, in addition to providing the real-time second content, the embodiment of the present invention can also provide static content corresponding to at least one category for the user to select, for example, static content of a custom category, static content of an expression category, and static content of a quotation category, etc. can be provided.
[0148] Quotations can refer to a person's speech record, generally used in formal writing, usually to illustrate a person's utterances and language features over a period of time. Quotations can also refer to celebrity quotes, netizens' comments, and new entries generated by social events that are resonant, thought-provoking, and have a certain degree of spread.
[0149] Reference Figure 5 , shows a schematic diagram of a recommendation window according to an embodiment of the present invention, and the recommendation window may include: an input box 501 and a display area 502.
[0150] A search trigger control is provided on the right side of the input box 501 to facilitate triggering a search for the content in the input box 501 .
[0151] The display area 502 may provide multiple tags for the user to select, and the multiple tags specifically include: a recommendation assistant tag, a custom content tag, an expression tag, and a quotation tag. Among them, the recommendation assistant tag is used to provide the corresponding first content in real time according to the first content triggered by the user. The custom content tag, the expression tag, and the quotation tag can provide static content.
[0152] When a tag is selected, detailed content corresponding to the tag can be provided.
[0153] like Figure 5 According to an embodiment, when the recommendation assistant tag is selected, the display area 502 can display multiple categories of second content, and the multiple categories can be arranged up and down, such as the multiple categories from top to bottom are: beautification replacement category, expression category, custom category, translation category, encyclopedia category and association category, etc. For a category, one or more corresponding second contents can be displayed. It can be understood that the embodiment of the present invention does not limit the specific arrangement order of the multiple categories.
[0154] According to another embodiment, when the recommendation assistant tag is selected, if clipping content is detected, the display area 502 can obtain and display prompt information related to the clipping content. Figure 3 , I will not go into details here.
[0155] If you receive Figure 3 If a trigger operation of adding a control is added, the display area 502 can display the custom content and trigger content corresponding to the above clipping content, for details, refer to Figure 4 , I will not go into details here.
[0156] When the custom content tag is selected, the custom content set by the user and its corresponding setting interface may be provided. The setting interface may include: a modification interface, a deletion interface, an addition interface, etc.
[0157] When the emoticon tag is selected, an emoticon picture corresponding to at least one emoticon category may be provided. The emoticon categories may include: favorites category, battle picture category, emoticon category, etc.
[0158] When the Quotes tab is selected, at least one quote corresponding to a quote category may be provided. The quote categories may include: favorites category, celebrity quotes, self-created quotes, etc.
[0159] It can be understood that the embodiment of the present invention does not limit the specific category of static content, and the category of static content may also include: hot spot category, hot word category, etc.
[0160] In an optional embodiment of the present invention, the method may further include: in response to an operation of dragging a picture into the input box, triggering a picture search corresponding to the picture.
[0161] In response to the operation of dragging a picture into an input box, an embodiment of the present invention triggers an image search corresponding to the picture to quickly implement the image search function corresponding to the picture, that is, searching for pictures that match the picture, for example, pictures that are similar or related to the picture.
[0162] In the embodiment of the present invention, the dragged picture can be any picture, which can be from any page. For example, user A is chatting with user B, and is interested in picture A sent by user B, so he can drag picture A from the chat window corresponding to user A and user B to the input box of the recommendation window and drop it, and then the embodiment of the present invention can trigger the picture search corresponding to picture A. For another example, if user A is interested in picture B on the webpage, he can also drag picture B to the input box of the recommendation window and drop it.
[0163] In an embodiment of the present invention, optionally, corresponding image search prompt information may be displayed in the input box to prompt the user to drag the image to the input box. For example, the image search prompt information may be “Drag the image here to search” or the like.
[0164] In an optional embodiment of the present invention, the above method may further include: displaying image search results corresponding to the above image in the above display area. For example, similar images, related images or images of the same category corresponding to the above image may be displayed in the above display area.
[0165] In an optional embodiment of the present invention, the above method may further include: monitoring the first content triggered by the user; the above first content includes: input content, or word-marking content; and displaying the second content corresponding to the above first content in the above recommendation window.
[0166] In an optional embodiment of the present invention, the above method may further include: displaying the above-mentioned word-marking content in the above-mentioned input box.
[0167] In an optional embodiment of the present invention, the method may further include: in response to the operation of dragging the picture to the display area, collecting the picture. In the embodiment of the present invention, in response to the operation of dragging the picture to the display area, collecting the picture. For example, the picture may be collected into the user's picture collection folder, so that the user can access the collected pictures in the picture collection folder.
[0168] It should be noted that, for the method embodiments, for the sake of simplicity of description, they are all described as a series of motion action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the described motion actions, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the motion actions involved are not necessarily required by the embodiments of the present invention.
[0169] Device Embodiment
[0170] Reference Figure 6 , shows a structural block diagram of an embodiment of a processing device for customized content of the present invention, which may specifically include:
[0171] Monitoring module 601, used to monitor the user's cut and paste operations;
[0172] The prompt module 602 is used to obtain and display prompt information related to the clipping content; the prompt information is used to prompt the user to add customized content to the clipping content.
[0173] Optionally, the above device may further include:
[0174] A determination module, configured to determine the custom content and trigger content corresponding to the clipped content in response to a user's feedback operation on the prompt information;
[0175] A content display module, used to display the custom content and trigger content corresponding to the above clipping content;
[0176] The saving module is used to save the custom content and trigger content corresponding to the clipped content in response to the user's completion operation.
[0177] Optionally, the above-mentioned determination module may include:
[0178] A first determining module is used to extract a character string of a preset length from the custom content corresponding to the clipped content in a front-to-back order as the trigger content; or
[0179] The second determination module is used to perform natural language processing on the custom content corresponding to the clipped content, and extract trigger content from the custom content corresponding to the clipped content according to the natural language processing result.
[0180] Optionally, the above device may further include:
[0181] The interface display module is used to display the added interface corresponding to the above trigger content.
[0182] Optionally, the above-mentioned adding interface may include: an input box;
[0183] The above device may also include:
[0184] The trigger content determination module is used to respond to the user's enter operation on the input box and use the content in the input box as the trigger content.
[0185] Optionally, the above device may further include:
[0186] The interface providing module is used to provide corresponding deletion interface and / or modification interface for the saved custom content and trigger content.
[0187] Optionally, the above device may further include:
[0188] The custom content display module is used to display all the custom content corresponding to the saved trigger content if the user's input content matches the saved trigger content.
[0189] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0190] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0191] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0192] An embodiment of the present invention also provides a device for processing custom content, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: monitoring the user's clipping operation; obtaining and displaying prompt information related to the clipped content; the prompt information is used to prompt the addition of custom content to the clipped content.
[0193] Figure 7 1 is a structural block diagram of a device 900 for processing customized content as a terminal according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0194] Reference Figure 7, the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0195] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0196] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0197] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
[0198] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0199] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0200] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0201] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0202] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0203] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0204] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0205] Figure 8 1 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.
[0206] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0207] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (terminal or server), enables the device to execute a method for processing custom content, the method comprising: monitoring a user's clipping operation; acquiring and displaying prompt information related to the clipped content; the prompt information is used to prompt the user to add custom content to the clipped content.
[0208] The embodiment of the present invention discloses A1, a method for processing customized content, including:
[0209] Monitor users' cut and paste operations;
[0210] Obtain and display prompt information related to the clipping content; the prompt information is used to prompt the user to add customized content to the clipping content.
[0211] A2. The method according to A1, further comprising:
[0212] In response to a user's feedback operation on the prompt information, determining the custom content and trigger content corresponding to the clipped content;
[0213] Displaying the custom content and trigger content corresponding to the clipped content;
[0214] In response to the user's completion operation, the custom content and trigger content corresponding to the clipped content are saved.
[0215] A3. According to the method described in A2, determining the custom content and trigger content corresponding to the clipped content includes:
[0216] Extracting a character string of a preset length from the custom content corresponding to the clipped content in order from front to back as the trigger content; or
[0217] Natural language processing is performed on the custom content corresponding to the clipping content, and trigger content is extracted from the custom content corresponding to the clipping content according to the natural language processing result.
[0218] A4. The method according to A2, further comprising:
[0219] Display the adding interface corresponding to the trigger content.
[0220] A5. The method according to A4, wherein the adding interface comprises: an input box;
[0221] The method further includes: in response to a user's enter operation on the input box, using the content in the input box as trigger content.
[0222] A6. The method according to A2, further comprising:
[0223] For the saved custom content and trigger content, corresponding deletion interface and / or modification interface are provided.
[0224] A7. The method according to A2, further comprising:
[0225] If the user's input content matches the saved trigger content, the entire content of the custom content corresponding to the saved trigger content is displayed.
[0226] The embodiment of the present invention discloses B8, a device for processing customized content, the device comprising:
[0227] A monitoring module, used to monitor the user's cut and paste operations;
[0228] The prompt module is used to obtain and display prompt information related to the clipping content; the prompt information is used to prompt the user to add customized content to the clipping content.
[0229] B9. The device according to B8, further comprising:
[0230] A determination module, configured to determine the custom content and trigger content corresponding to the clipped content in response to a user's feedback operation on the prompt information;
[0231] A content display module, used to display the custom content and trigger content corresponding to the clipped content;
[0232] The saving module is used to save the custom content and trigger content corresponding to the clipped content in response to the user's completion operation.
[0233] B10. According to the apparatus described in B9, the determining module includes:
[0234] A first determining module is used to extract a character string of a preset length from the custom content corresponding to the clipping content in a front-to-back order as the trigger content; or
[0235] The second determination module is used to perform natural language processing on the custom content corresponding to the clipped content, and extract trigger content from the custom content corresponding to the clipped content according to the natural language processing result.
[0236] B11. The device according to B9, further comprising:
[0237] The interface display module is used to display the adding interface corresponding to the trigger content.
[0238] B12. The device according to B11, wherein the adding interface comprises: an input box;
[0239] The device also includes:
[0240] The trigger content determination module is used to respond to the user's enter operation on the input box and use the content in the input box as the trigger content.
[0241] B13. The device according to B9, further comprising:
[0242] The interface providing module is used to provide corresponding deletion interface and / or modification interface for the saved custom content and trigger content.
[0243] B14. The device according to B9, further comprising:
[0244] The custom content display module is used to display the entire content of the custom content corresponding to the saved trigger content if the user's input content matches the saved trigger content.
[0245] The embodiment of the present invention discloses C15, a device for processing custom content, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0246] Monitor users' cut and paste operations;
[0247] Obtain and display prompt information related to the clipping content; the prompt information is used to prompt the user to add customized content to the clipping content.
[0248] C16. The device according to C15, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0249] In response to a user's feedback operation on the prompt information, determining the custom content and trigger content corresponding to the clipped content;
[0250] Displaying the custom content and trigger content corresponding to the clipped content;
[0251] In response to the user's completion operation, the custom content and trigger content corresponding to the clipped content are saved.
[0252] C17. According to the apparatus of C16, the determining the custom content and the trigger content corresponding to the clipped content comprises:
[0253] Extracting a character string of a preset length from the custom content corresponding to the clipped content in order from front to back as the trigger content; or
[0254] Natural language processing is performed on the custom content corresponding to the clipping content, and trigger content is extracted from the custom content corresponding to the clipping content according to the natural language processing result.
[0255] C18. The device according to C16, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0256] Display the adding interface corresponding to the trigger content.
[0257] C19. The device according to C18, wherein the adding interface comprises: an input box;
[0258] The device further comprises: in response to a user's enter operation on the input box, using the content in the input box as trigger content.
[0259] C20. The device according to C16, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0260] For the saved custom content and trigger content, corresponding deletion interface and / or modification interface are provided.
[0261] C21. The device according to C16, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:
[0262] If the user's input content matches the saved trigger content, the entire content of the custom content corresponding to the saved trigger content is displayed.
[0263] The embodiment of the present invention discloses D22, one or more machine-readable media, on which instructions are stored, which, when executed by one or more processors, enable the device to execute the method for processing customized content as described in one or more of A1 to A7.
[0264] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0265] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
[0266] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
[0267] The above is a detailed introduction to a method for processing custom content, a device for processing custom content, a device for processing custom content, and a machine-readable medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for processing custom content, characterized in that: The method comprises: Monitoring the user's clipping operation, and when monitoring the clipboard information to change, considering that the user's clipping operation is monitored; Acquire and display prompt information related to the clipping content; the prompt information is used to prompt the user to add custom content to the clipping content; the prompt information includes prompt text and an adding control; the custom content is the clipping content, or the clipping content with incomplete content removed; The method further comprises: In response to a user's feedback operation on the prompt information, determining the custom content and trigger content corresponding to the clipped content; Displaying the custom content and trigger content corresponding to the clipped content; In response to the user's completion operation, saving the custom content and trigger content corresponding to the clipped content; The determining of the custom content and the trigger content corresponding to the clipped content includes: In order from front to back, a character string of preset length is extracted from the custom content corresponding to the clipping content as the trigger content; or natural language processing is performed on the custom content corresponding to the clipping content, and the trigger content is extracted from the custom content corresponding to the clipping content according to the natural language processing result.
2. The method according to claim 1, characterized in that: The method further comprises: Display the adding interface corresponding to the trigger content.
3. The method according to claim 2, characterized in that The adding interface includes: an input box; The method further includes: in response to a user's enter operation on the input box, using the content in the input box as trigger content.
4. The method according to claim 1, characterized in that: The method further comprises: For the saved custom content and trigger content, corresponding deletion interface and / or modification interface are provided.
5. The method according to claim 1, characterized in that: The method further comprises: If the user's input content matches the saved trigger content, the entire content of the custom content corresponding to the saved trigger content is displayed.
6. A device for processing customized content, characterized in that: The device comprises: A monitoring module, used for monitoring the user's cut and paste operation, and when it is detected that the clipboard information changes, it is considered that the user's cut and paste operation is monitored; A prompt module, used to obtain and display prompt information related to the clipping content; the prompt information is used to prompt the user to add custom content to the clipping content; the prompt information includes a prompt text and an adding control; the custom content is the clipping content, or the clipping content with incomplete content removed; The device also includes: A determination module, configured to determine the custom content and trigger content corresponding to the clipped content in response to a user's feedback operation on the prompt information; A content display module, used to display the custom content and trigger content corresponding to the clipped content; A saving module, configured to save the custom content and trigger content corresponding to the clipped content in response to a completion operation by the user; The determination module comprises: A first determination module is used to extract a character string of preset length from the custom content corresponding to the clipped content in a front-to-back order as trigger content; or a second determination module is used to perform natural language processing on the custom content corresponding to the clipped content, and extract trigger content from the custom content corresponding to the clipped content based on the natural language processing result.
7. The device according to claim 6, characterized in that The device also includes: The interface display module is used to display the adding interface corresponding to the trigger content.
8. The device according to claim 7, characterized in that The adding interface includes: an input box; The device also includes: The trigger content determination module is used to respond to the user's enter operation on the input box and use the content in the input box as the trigger content.
9. The device according to claim 6, characterized in that The device also includes: The interface providing module is used to provide corresponding deletion interface and / or modification interface for the saved custom content and trigger content.
10. The device according to claim 6, characterized in that The device also includes: The custom content display module is used to display the entire content of the custom content corresponding to the saved trigger content if the user's input content matches the saved trigger content.
11. A device for processing custom content, characterized in that: The invention comprises a memory and one or more programs, wherein the one or more programs are stored in the memory, and when the programs are executed by one or more processors, the steps of the method described in any one of claims 1 to 5 are implemented.
12. One or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable a device to execute the method for processing customized content as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Method for adding self-defined word in input method word library and word input device
CN101149679A
Method and device for acquiring self-created words
CN102375817A
Method and device for adding vocabulary entry into input method word library
CN102855291A
Method and apparatus for updating word stock of input method
CN105117420A
Data operating method and apparatus based on clipboard and electronic device
CN105354097A
