Text processing method, device and electronic device
By introducing the second display area in the input method, the problem of insufficient display range of information to be displayed on the screen is solved, and more convenient editing processing is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202111174180.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2041-09-30
AI Technical Summary
When the existing input method processes information to be uploaded, the display range is limited, which makes it inconvenient for user editing and processing.
When the first display area cannot fully display the information to be uploaded, the second display area is used to display the information to be uploaded, and editing is performed in the area, supporting multi-line display and scroll viewing.
It improves the editing convenience of information to be uploaded. By expanding the display range and supporting multi-line display and scroll viewing, users' browsing and modifying information to be uploaded.
Smart Images

Figure CN113867547B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of text processing technology, and specifically relates to a text processing method, device and electronic device. Background Art
[0002] With the continuous development of electronic devices, the input methods used by electronic devices are becoming more and more diverse. Input method refers to the encoding method used to input various symbols into computers or other devices (such as mobile phones). It is also the final result of writing tools overcoming the limitations of ink. It is a writing tool with unlimited ink and a product of the development of text productivity to a certain stage.
[0003] In the current input method, the display area for displaying the information to be displayed on the upper screen has a limited display range, which is not conducive to the user to edit the information to be displayed on the upper screen. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a text processing method, device and electronic device, which can solve the problem of poor convenience in editing the information to be on the screen in the related art.
[0005] In a first aspect, an embodiment of the present application provides a text processing method, the method comprising:
[0006] When the content of the information to be displayed on the screen exceeds the display range of the first display area, the information to be displayed on the screen is displayed in the second display area, and the information to be displayed on the screen is determined according to the coded character string input by the user;
[0007] The information to be displayed on the screen is edited in the second display area to obtain a target text.
[0008] In a second aspect, an embodiment of the present application provides a text processing device, the device comprising:
[0009] A first display module, configured to display the information to be displayed in a second display area when the content of the information to be displayed exceeds the display range of the first display area, wherein the information to be displayed is determined according to a coded character string input by a user;
[0010] A processing module is used to edit the information to be displayed on the screen in the second display area to obtain a target text.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0012] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0013] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0014] In an embodiment of the present application, when the content of the information to be displayed on the screen determined based on the encoded character string exceeds the display range of the first display area, the information to be displayed on the screen can be displayed in the second display area. When the content of the information to be displayed on the screen is large, the information to be displayed on the screen can be displayed in the second display area with a larger display range than the first display area, which is convenient for users to browse the information to be displayed on the screen displayed in the second display area. In addition, the second display area supports editing of the information to be displayed on the screen, and users can edit the displayed information to be displayed in the second display area, thereby improving the convenience of editing the information to be displayed on the screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1A It is one of the schematic diagrams of an input method interface in the prior art;
[0016] Figure 1B This is the second schematic diagram of an input method interface in the prior art;
[0017] Figure 2 It is a schematic diagram of an interface of a text processing method according to an embodiment of the present application;
[0018] Figure 3A This is one of the interface schematic diagrams of the text processing method of another embodiment of the present application;
[0019] Figure 3B This is a second interface schematic diagram of a text processing method according to another embodiment of the present application;
[0020] Figure 3C This is a third interface diagram of a text processing method according to another embodiment of the present application;
[0021] Figure 4 is a flowchart of a text processing method according to an embodiment of the present application;
[0022] Figure 5 is a block diagram of a text processing device according to an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application;
[0024] Figure 7 It is a schematic diagram of the hardware structure of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0027] The text processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0028] Reference Figure 4 , which shows a flowchart of a text processing method according to an embodiment of the present application.
[0029] Optionally, the method can be implemented as a part of the input method program. Exemplarily, the method can be implemented as a specific implementation method of a new function of an independent input method, or as a specific implementation method of a program that supplements a new function of an input method in traditional technology.
[0030] The method may specifically include the following steps:
[0031] Step 101, when the content of the information to be displayed on the screen exceeds the display range of the first display area, the information to be displayed on the screen is displayed in the second display area, and the information to be displayed on the screen is determined according to the coded character string input by the user;
[0032] Exemplarily, the first display area can be a display area for displaying information to be displayed on the screen in a traditional input method, and the display range of the display area is limited. Exemplarily, the first display area can only display the content in a single line, and the length is limited. Therefore, when the input information to be displayed on the screen is too much, the user can only slide the content of the first display area to view the part of the information to be displayed that is not displayed.
[0033] In this embodiment, the second display area is a new display area provided by the method of the embodiment of the present application. The function of the second display area can be distinguished from that of the first display area. Moreover, as described in step 102, the second display area also supports editing of the information to be displayed on the screen, while the first display area in the traditional technology does not support editing of the displayed information to be displayed on the screen.
[0034] For the encoded string, for example, in the Chinese input method, the encoded string can be a string of pinyin, strokes, etc.; in the English input method, the encoded string can be English letters; in the input methods of other languages, the encoded string can be a string of the corresponding language. This application does not limit the specific content of the encoded string.
[0035] To facilitate the reader's understanding, the following text uses the Chinese input method and the encoding string as pinyin as an example for explanation.
[0036] The information to be displayed on the screen can be the content to be displayed in the text input area. For example, in the memo software, the text input area is the text input area in the memo; for example, when using the input method in the text box, or using the text processing method of the embodiment of the present application, the text input area is the text box.
[0037] Since the input method can generate candidate items according to the coded string, when the user does not select text from the candidate items for any coded string, the information to be displayed on the screen can be the same as the coded string.
[0038] For example, Figure 1A and Figure 1B In the interface of the input method of the conventional technology shown, the to-be-screened area 201 is the first display area, and the to-be-screened area 201 can only display the to-be-screened information in a single line, and the content of the displayed to-be-screened information is limited, and it is necessary to slide in the length direction of the to-be-screened area 201 to display the to-be-screened information that is not displayed. The candidate area 205 is used to display the candidate items corresponding to the coded character string in the to-be-screened area 201.
[0039] The user can select a candidate from the candidate area 205 to replace the coded string in the to-be-screened area 201 with the selected candidate. Figure 1AIn the example, the information to be displayed in the to-be-displayed area 201 is the coded character string input by the user.
[0040] In the case where the user selects text from the candidate items for at least one coded string in the to-be-screened area 201, but does not select corresponding text for all coded strings, the to-be-screened information may include part of the coded string and part of the text, for example Figure 1B The to-be-screened information displayed in the to-be-screened area 201.
[0041] When the user selects text from the candidate items for all the coded character strings in the to-be-screened area 201, the to-be-screened information is text, for example Figure 2 The information to be displayed in the to-be-displayed area 201 is the text "We went to the forest park today".
[0042] A specific explanation for the information to be displayed on the screen exceeding the display range of the first display area may be that the number of characters in the information to be displayed on the screen exceeds the maximum number of characters that can be displayed in the first display area. The maximum number of characters may be the number of characters completely displayed in the first display area, and characters that are switched from a non-displayed state to a displayed state by sliding in the length direction of the first display area are not included in the above-mentioned maximum number of characters.
[0043] For example, Figure 1A As shown, the area 201 to be displayed can only display a maximum of 5 characters of pinyin "jin'tian'wo'men'qu". If the user continues to enter pinyin after entering "qu", the content of the area 201 to be displayed exceeds the display range of the area 201 to be displayed, and the information to be displayed will be displayed in the second display area.
[0044] Of course, since the pinyin of each word is different, the maximum number of characters that can be displayed in the area to be displayed on the screen may vary depending on the pinyin displayed.
[0045] Similarly, when the information to be displayed on the screen includes not only pinyin but also text, the maximum number of characters is also determined based on the specific content of the information to be displayed on the screen, for example, Figure 1B As shown, the display range of the waiting screen area 201 can display at most "Today we go to sen'lin'gong".
[0046] What is certain is that the area 201 to be displayed on the screen is a fixed length and width area that can only display characters in a single line, and its display range is relatively small.
[0047] For example, the first display area can display up to 10 Chinese characters, or 20 characters, for example, 2 characters occupy the same space as one Chinese character. Then, if the input information to be displayed is within 20 characters, or within 10 Chinese characters, or within 10 characters or 5 Chinese characters, the information to be displayed only needs to be displayed in Figure 1A and Figure 1B The to-be-screened area 201 shown is displayed.
[0048] For example, Figure 2 As shown in FIG. 1 , for example, the information to be displayed on the screen input by the user is 10 Chinese characters "Today we went to the forest park", which can be displayed in FIG. Figure 2 The area to be displayed on the screen 201 (i.e., the first display area) in the Figure 2 The waiting screen area 201 and Figure 1A and Figure 1B The function of the to-be-on-screen area 201 in the embodiment is the same, that is, it is used to display the to-be-on-screen information, and the to-be-on-screen information can be displayed by horizontal scrolling. Figure 2 In the case where the number of characters included in the information to be displayed on the screen exceeds 10 Chinese characters, the information to be displayed on the screen is switched to the second display area 202 for display.
[0049] In an embodiment of the present application, the second display area is used to display the information to be displayed on the screen when the content of the information to be displayed exceeds the display range of the first display area, and when the content of the information to be displayed on the screen does not exceed the display range of the first display area, it is still displayed in the traditional area 201 to be displayed according to the traditional method.
[0050] Due to the differences in the interfaces of different types of input methods, Figure 2 In the input method interface shown, area 204 is used to display the encoded string input by the user, and candidate area 205 is used to display candidate items; Figure 1A and Figure 1B It is another input method interface. Figure 3A to Figure 3C is right Figure 1A and Figure 1B The improvements made to this input method are shown.
[0051] for Figure 3A to Figure 3C In the input method corresponding to the interface shown in FIG. 1 , when the content of the information to be displayed on the screen does not exceed the display range of the first display area, the information to be displayed on the screen is displayed as follows: Figure 1A and the to-be-screened area 201 (i.e., the first display area) shown in FIG. 1B; Figure 3A to Figure 3C In the example shown, the content of the information to be displayed on the screen exceeds the display range of the first display area, and therefore, it is not displayed in the first display area. Figure 3A3C shows the first display area, while 200 shows the second display area 202 .
[0052] That is to say, Figure 2 The interface of an input method improved by an embodiment of the present application is shown. Figure 3A to Figure 3C It shows that the embodiment of the present application is improved as follows Figure 1A and Figure 1B The interface of this input method is shown. Figure 2 and Figure 3A They are respectively schematic diagrams of interfaces of input methods after improvements are made to different existing input methods using the method of the embodiments of the present application.
[0053] Therefore, in Figure 1A , Figure 1B , Figure 2 , Figure 3A , Figure 3B , Figure 3C In the figures, the same reference numerals represent the same objects, and the same explanations and descriptions will not be given to the mentioned objects hereinafter, and they can be referred to each other.
[0054] like Figure 1B As shown, in the traditional input method, the upper screen area 201 can only display limited content. For the undisplayed content, the user needs to slide the upper screen area 201 left and right (i.e., slide in the length direction of the upper screen area 201) to switch the content displayed in the upper screen area 201.
[0055] However, in the present application embodiment, Figure 2 As shown, when the content of the information to be displayed on the screen does not exceed the display range of the area 201 to be displayed on the screen, the information to be displayed on the screen can be directly displayed in the area 201 to be displayed on the screen. However, when the content of the information to be displayed on the screen exceeds the display range of the area 201 to be displayed on the screen, the information to be displayed on the screen can be switched to the second display area 202 for display.
[0056] Similarly, refer to Figure 3A In the input method interface shown in FIG. 1 , the user has not yet selected a candidate for the input coded string (i.e., pinyin), so the information to be displayed on the screen is substantially the same as the original coded string input. Since the content of the information to be displayed on the screen exceeds the display range of the first display area, the information to be displayed on the screen is directly displayed to the first display area. Figure 3A The second display area 202 in the display area.
[0057] Since the length of the first display area, i.e., the area to be displayed on the screen, is limited in the interface of the traditional input method, and the information to be displayed on the screen is displayed in a single line, the content displayed in the area to be displayed on the screen is limited in the number of characters. In the method of the embodiment of the present application, when the content of the information to be displayed on the screen is large, the information to be displayed on the screen can be directly displayed in the second display area. Compared with the traditional area to be displayed on the screen, the second display area has a larger display range and can display more content, which is convenient for users to browse the information to be displayed on the screen through the second display area.
[0058] Step 102: Edit the information to be displayed on the screen in the second display area to obtain a target text.
[0059] The second display area supports editing of the information to be displayed on the screen, and the user can edit the information to be displayed on the screen in the second display area.
[0060] In an embodiment of the present application, when the content of the information to be displayed on the screen determined based on the encoded character string exceeds the display range of the first display area, the information to be displayed on the screen can be displayed in the second display area. When the content of the information to be displayed on the screen is large, the information to be displayed on the screen can be displayed in the second display area with a larger display range than the first display area, which is convenient for users to browse the information to be displayed on the screen displayed in the second display area. In addition, the second display area supports editing of the information to be displayed on the screen, and users can edit the displayed information to be displayed on the screen in the second display area, thereby improving the convenience of editing the information to be displayed on the screen.
[0061] Optionally, when executing the step of displaying the information to be displayed on the screen in the second display area in step 101, a first control can be displayed when the content of the information to be displayed on the screen exceeds the display range of the second display area; a first input from a user to the first control is received; and first information is displayed in response to the first input, wherein the first information is partial content of the information to be displayed on the screen.
[0062] Exemplarily, the first input may include, but is not limited to: a user's click input, or a voice command input by the user, or a specific gesture input by the user; the specific input can be determined based on actual usage requirements, and the embodiments of the present application are not limited to this. The principles of the specific implementation methods of the second input, the third input, and the fourth input below are similar to those of the first input, and will not be repeated hereafter.
[0063] Among them, the specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.
[0064] For example, Figure 3B and Figure 2 The height h shown is the height of the second display area 202. Since the size of the characters displayed in the second display area 202 is preset, when the length and height of the second display area 202 are fixed, the number of characters that can be displayed in each row is fixed, and the number of rows of characters that can be displayed is also fixed. In other words, the maximum number of characters that can be displayed in the second display area 202 is also fixed.
[0065] Then, when the content of the information to be displayed on the second display area 202 exceeds the display range of the second display area 202, for example, the number of characters displayed in the second display area 202 reaches the maximum number of characters in a single line, or the length of the information to be displayed on the second display area 202 is close to Figure 2 and Figure 3B When the length a of the second display area 202 is as shown (the length a may be the screen width), the upper screen information may be automatically wrapped and displayed in the second display area 202, such as Figure 3A , Figure 3B and Figure 3C shown.
[0066] Therefore, the second display area of this embodiment supports displaying the information to be displayed on the screen in the form of multiple lines of characters.
[0067] like Figure 1A and Figure 1B In the input method interface shown, the information to be displayed on the screen cannot support line wrap display in the area 201 to be displayed on the screen, and can only be scrolled horizontally within a line. Since the display content of the area 201 to be displayed on the screen is limited, when the user searches for the input coded string or the selected candidate item, the user needs to continuously slide the information to be displayed on the screen in the area 201 to be displayed on the screen horizontally, which is very inconvenient to search, for example, it is not convenient to find the wrong input position of the text. In the embodiment of the present application, when the content of the information to be displayed on the screen exceeds the single-line display range of the second display area, the information to be displayed on the screen can be displayed in a line wrap in the second display area. Since the content is displayed in multiple lines, it is very convenient for the user to search for the information to be displayed on the screen, such as searching for wrong content.
[0068] In addition, the second display area also supports scrolling display of the information to be displayed on the screen.
[0069] As described above, since the height h of the second display area is fixed, Figure 3BThe content display range of the second display area 202 is also fixed. For example, there is a maximum number of characters to be displayed, such as 200 characters. If the height of the information to be displayed on the screen in the second display area 202 exceeds Figure 2 or Figure 3B When the maximum height h is shown, or the number of characters of the information to be displayed on the screen exceeds 200, the first control can be displayed. For example, the first control can be a scroll bar for scrolling the text up and down, and the scroll bar can be displayed in the height direction of the second display area 202. It should be noted that the present application does not limit the first control and its display position. Then, the user can input the scroll bar to view the part of the content that exceeds the display range when the content of the information to be displayed on the screen exceeds the display range of the second display area 202.
[0070] For example, considering certain editing scenarios of work documents, users may need to input a relatively long coded string at one time. Therefore, the number of characters generated for the information to be displayed on the screen is relatively large. In this case, when the second display area supports scrolling viewing of the information to be displayed on the screen, the information to be displayed on the screen can be scrolled in the second display area when the content of the information to be displayed on the screen exceeds the display range of the second display area.
[0071] In an embodiment of the present application, when the content of the information to be displayed on the screen exceeds the display range of the second display area, the first control can be displayed. By executing the first input on the first control, part of the content of the information to be displayed on the screen that is not displayed in the second display area can be displayed, and the information to be displayed with more content can be scrolled and viewed in the second display area.
[0072] Optionally, the method according to the embodiment of the present application can also automatically display the information to be displayed on the screen when the content of the information to be displayed on the screen exceeds the display range of the second display area (for example, Figure 3C In the example, the on-screen display means that the information to be put on the screen is displayed in the text display area where the cursor 401 of the memo is located, so that the second display area only displays the information to be put on the screen within its display range.
[0073] Optionally, when the information to be displayed on the screen is edited in the second display area, the first position can be determined according to a first condition, wherein the first condition includes at least one of the following: the interval time for the user to input the encoded character string, the semantics of the information to be displayed on the screen, the part of speech of the information to be displayed on the screen, and preset keywords; and the first symbol is displayed at the first position.
[0074] Optionally, the first symbol can be determined based on the semantics of the information to be displayed on the screen; optionally, the first symbol can be determined based on preset keywords; optionally, the first symbol can be determined based on the semantics, part of speech and preset keywords of the information to be displayed on the screen.
[0075] Exemplarily, the method of the embodiment of the present application can be applied to a scenario where the user inputs a longer text, such as more than 10 Chinese characters.
[0076] Exemplarily, the first position of the symbol to be added in the information to be displayed on the screen can be determined based on the input duration between different coded character strings input by the user, and the first symbol matching the first position can be determined based on preset parameters of the information to be displayed on the screen.
[0077] The preset parameters include at least one of the following: part of speech, semantics, and preset keywords;
[0078] Specifically, the first position where a symbol needs to be added in the information to be displayed on the screen corresponding to the input pinyin can be identified according to the pause duration of the user on the input pinyin; wherein, since each word can have a pinyin, that is, a coded string, the input duration described in this step represents the input duration between the coded strings of adjacent words. For example, when inputting the text "Hello everyone, my name is XX", the input duration between different coded strings here represents the input duration between the two adjacent coded strings of pinyin "hao" and "wo".
[0079] The types of symbols added may include but are not limited to at least one of the following: punctuation marks, numerical serial numbers, mathematical symbols, unit symbols, etc.
[0080] In this embodiment, taking punctuation marks as an example, when a user inputs a paragraph of text, based on the input thinking habits of most users, such as inputting "Hello everyone, my name is XXX, I am very happy to come to X Company, and hope that everyone will take good care of me in the future!", the user's input habits are decomposed. The user generally inputs the full pinyin of "Hello everyone" first, and then pauses; then inputs the full pinyin of "My name is XXX", and then pauses; then inputs the full pinyin of "I am very happy to come to X Company", and then pauses; finally inputs the full pinyin of "I hope that everyone will take good care of me in the future".
[0081] According to the duration of the pause in the input of pinyin, it is determined whether the duration exceeds the preset duration threshold. If so, it is determined that punctuation marks need to be added to the position of the pause, and the text to be added with punctuation marks is essentially information to be displayed on the screen. Therefore, the first position to be determined is the position of the pause corresponding to the corresponding position in the information to be displayed on the screen. For example, if the duration of the pause in the monitored input exceeds the threshold of 2s, it is determined that punctuation marks need to be added to the position.
[0082] Of course, different users have different input habits for coded character strings. Some users type faster, so the corresponding pause duration is shorter; some users type slower, so the corresponding pause duration is longer. Therefore, a preset duration threshold corresponding to the user can be generated according to the user's input habit for coded character strings. For example, the average of multiple recorded pause durations is taken as the preset duration threshold.
[0083] Then, for the first symbol added to each first position, the first symbol matching the first position, that is, the specific symbol to be added to the first position, can be determined based on the preset parameters of the information to be displayed on the screen; wherein the preset parameters are as described above and will not be repeated here.
[0084] The above-mentioned preset parameters may be preset parameters of each word in the information to be displayed on the screen, where each word here refers to the words included in the text in the information to be displayed on the screen, rather than the encoded string in the information to be displayed on the screen that has not been replaced by the selected candidate word. The text here refers to the text content in the information to be displayed on the screen, rather than the encoded string.
[0085] For example Figure 1B The information to be displayed in the display area 201 includes the text "Today we go", and part of the coded string "sen'lin'gong'yuan'le'tai'kai'xin'la" is not replaced by the text. It should be noted that the "yuan'le'tai'kai'xin'la" in the coded string "sen'lin'gong'yuan'le'tai'kai'xin'la" is not replaced by the text. Figure 1B The reason is that, in Figure 1A and Figure 1B In the input method of the conventional technology shown in FIG. 1 , the display area length of the to-be-screened area 201 is limited, and the to-be-screened information displayed in the to-be-screened area 201 can only be scrolled in the horizontal direction. Figure 1B In the waiting-to-be-screened area 201, only part of the waiting-to-be-screened information, namely, "Today we go to sen'lin'gong", is shown, rather than all of the waiting-to-be-screened information "Today we go to sen'lin'gong'yuan'le'tai'kai'xin'la".
[0086] In the scenario where the input text is in Chinese characters, the parts of speech unique to everyday Chinese characters (directional words, place names, abstract words, etc.) and some words that are suitable for specific scenarios of the public can be used to automatically fuzzy match the common punctuation marks that need to be filled in.
[0087] For example, a comma is filled between multiple words with the same part of speech, and the parts of speech can be, for example, locative words, place names, abstract words, etc. A comma is also filled between multiple words with similar semantics. If it is the end position of the information to be displayed on the screen, a punctuation mark indicating the end, such as a period, is filled.
[0088] Common Chinese punctuation marks can include a period, a comma, a semicolon, a colon, a question mark, an exclamation point, and so on.
[0089] Optionally, when determining the first symbol that matches the first position according to the preset parameters of the information to be displayed on the screen, the first symbol that matches the first position can be determined according to the preset parameters of the target text in the information to be displayed on the screen that matches the first position.
[0090] Among them, the target text includes at least one of the following: the first text in the information to be displayed on the screen before the first position, and the second text in the information to be displayed on the screen after the first position.
[0091] In other words, when determining the first symbol to be filled at the first position, the preset parameters of the text adjacent to the first position can be referred to.
[0092] In one example, when determining the first symbol according to the preset keywords of the target text, the symbol that matches it can be determined according to specific characters. For example, the relationship between the preset keywords and punctuation marks; when the character adjacent to the first position before is "ma", a question mark can be filled automatically; when the character adjacent to the first position before is "ba", an exclamation point can be filled automatically.
[0093] In one example, when determining the first symbol according to the part of speech of the target text, if the parts of speech of the two words before and after the first position are the same, it means that the two words are in parallel, and a semicolon can be introduced between the two words.
[0094] For example, when nouns with the part of speech of place names are recognized, such as when the user inputs Changsha, Wuhan, Shenzhen, etc., a semicolon is filled between these place names; when the user inputs abstract words such as thought, quality, morality, friendship, etc., a semicolon is filled between each of these words with the part of speech of abstract words; when the user inputs locative words such as up, down, left, right, front, back, middle, east, west, south, north, etc., these locative words can be separated by a semicolon.
[0095] In one example, when determining the first symbol based on the semantics of the target text, when it is recognized that the semantics of the paragraph of text before the first position is an exclamatory sentence, an exclamation mark may be filled in the first position; when it is recognized that the semantics of the paragraph of text before the first position is an interrogative sentence, a question mark may be filled in the first position; when it is recognized that the semantics of the paragraph of text before the first position is a declarative sentence, a comma or a period may be filled in the first position in combination with the specific semantic content of the declarative sentence and the specific semantics of the paragraph of text after the first position.
[0096] In addition, the technical solution of the present application is described above using punctuation marks as an example. In other embodiments, the symbols automatically filled in may also be other types of symbols listed above or not listed above in addition to punctuation marks.
[0097] For example, if the text input before the first position is "RMB", the symbol "¥" representing RMB can be automatically filled in the first position according to the part of speech of the target text.
[0098] In addition, in other examples, the symbol that should be filled in the first position can be determined by combining the part of speech, semantics, and preset keywords of the target text corresponding to the first position, thereby increasing the accuracy of the symbol filled in. Specific examples refer to the above examples, and each example is combined for understanding, which will not be repeated here.
[0099] In an embodiment of the present application, the second display area can automatically fill in symbols for the information to be displayed on the screen. When filling in the symbols, the first position can be determined according to a first condition, and the first condition includes at least one of the following: the interval time for the user to input the encoded string, the semantics of the information to be displayed on the screen, the part of speech of the information to be displayed on the screen, and a preset keyword. The first symbol is displayed at the first position, and the user does not need to manually switch the keyboard mode of the input method between the text mode and the symbol mode multiple times to input text and symbols. Instead, the user only needs to input the encoded string and the information to be displayed that matches the encoded string in the text mode. Then, the method of the embodiment of the present application can automatically add symbols to the positions in the text where symbols need to be added after the user enters the text. This not only reduces the switching rate of the input method between different modes, but also shortens the text input time and improves the text input efficiency, simplifies the user's input of the information to be displayed on the screen, and can improve the accuracy of the filled symbols and reduce the probability of the user modifying the symbols automatically filled in by the system.
[0100] For example, referring to FIG. 3A to FIG. 3B, by selecting candidates from the candidate area 205, a part of the encoded string in the information to be displayed on the screen in the first display area is replaced with text. After the user selects the candidates "We went to the forest park today" and "too" from the candidate area 205, since there is a long pause after the user enters the full spelling of "We went to the forest park today", and then enters the full spelling of "so happy", the first position is the position between the pinyin "le" and "tai". Through the above method, it can be determined that the first character filled in this first position is a comma. Therefore, after the user selects the candidates "We went to the forest park today" and "too" from the candidate area 205, in Figure 3B the second display area 202, a comma "," 301 is automatically filled between "le" and "tai";
[0101] Similarly, referring to Figure 3B to Figure 3C , after the user selects the candidate "so happy" from the Figure 3B candidate area 205, "kai’xin’la" is automatically replaced with "so happy" in the Figure 3C second display area 202, and an exclamation mark "!" 302 is automatically filled after "so happy".
[0102] In the embodiment of the present application, when the number of texts (such as Chinese characters) to be input is too large and the number of symbols is too large, the user does not need to manually switch the keyboard mode of the input method between the text mode and the symbol mode multiple times to input text and symbols. Instead, the user only needs to input the encoded string of the text and the information to be displayed on the screen that matches the encoded string in the text mode. Then, the method of the embodiment of the present application can determine the first position where a symbol needs to be added in the information to be displayed on the screen based on the input interval duration between different encoded strings; and determine the first symbol to be filled in the first position according to the part of speech and / or semantics of the information to be displayed on the screen; finally, fill the first symbol into the first position in the information to be displayed on the screen, which can automatically add symbols to the positions where symbols need to be added in the text during the user's text input process, not only reducing the switching rate of the input method between different modes, but also shortening the text input duration and improving the text input efficiency, enhancing the text input experience, and effectively solving and reducing the user's aversion to the use of the input method.
[0103] Optionally, when editing the information to be displayed on the screen in the second display area, the third input of the user can also be received, where the third input includes: an input for modifying the first symbol to a second symbol. Specifically, the user can modify the first symbol, for example, modify it to a second symbol.
[0104] Taking punctuation as an example, when the punctuation automatically filled in by the system is incorrect, the second display area allows the user to change and correct the automatically entered punctuation. Through the user's change and correction operations, the user's input habits for symbols can be recorded.
[0105] For example, the user enters "our home", and the system automatically enters a comma after the text "our home" based on the first condition mentioned above. The user corrects it and changes the comma to a semicolon, and the system records this modification, and the record information includes the context text information of the modified symbol, and the information of the two symbols before and after the correction; the user enters "our home" again, and the system automatically enters a comma after the text based on the first condition mentioned above. The user changes the comma to a semicolon, and the system records this modification again; then after at least two times of recording the same symbol correction information for the same text, the user's input habit information can be generated, and the input habit information includes: "our home", a semicolon is automatically entered after the text; then when the user enters the text "our home" for the third time, the system automatically enters a semicolon after the text "our home" according to the user's input habits.
[0106] In an embodiment of the present application, after the system determines and automatically fills in the first symbol based on the preset parameters of the target text that matches the first position of the symbol to be filled in, if the user finds that the first symbol automatically filled in by the system is wrong, the first symbol can be corrected. Then the method of the embodiment of the present application can generate the user's input habit information based on the user's correction record of the automatically input symbols, so that similar erroneously input first symbols in the information to be displayed on the screen can be uniformly corrected according to the input habit information, and the erroneous symbols generated by the input can be quickly corrected; and based on the user's corrected input of the symbol, the user's input habit information is generated, so that the input habit information can be used to adjust the symbol automatically input next time.
[0107] Optionally, when the information to be displayed on the screen is edited in the second display area, a second input of the user on the second information in the information to be displayed on the screen may also be received; in response to the second input, at least one candidate information is displayed in the third display area, and each of the at least one candidate information includes the second information. The second information may be a character or a word of the information to be displayed on the screen, etc. Each of the at least one candidate information may include the second information.
[0108] Exemplarily, the candidate information may include idioms, poems, sentences, etc. with the second information as the first character or word; exemplary, the candidate information may also include idioms, poems, sentences, etc. with the second information as the last character or word.
[0109] In other words, this application does not limit the position of the second information among the candidate information.
[0110] Exemplarily, the third display area may be located at a preset position around the second display area. However, this application does not limit the position of the third display area.
[0111] Exemplarily, the third display area here may be Figure 2 and Figure 3C the third display area 203 in
[0112] In this embodiment, the second display area supports fuzzy matching of some information (such as a single character or a word, etc.) in the information to be input onto the screen that has already been input. The candidate information may be words, idioms, poems, etc.
[0113] In this embodiment, taking the fuzzy matching of a single character with an idiom as an example for illustration:
[0114] When the user performs a long - press operation on a certain character in the second display area, the method of this embodiment of the application can use the built - in local idiom thesaurus of the input method to query idioms starting with this character. Since the local idiom thesaurus is used for querying, the query speed can be improved. For example, when the user inputs "百", the matching idiom thesaurus can obtain "百折不挠,百战百胜,百无聊赖,百步穿杨,百感交集,百废俱兴". The matched idioms can be displayed in Figure 3C the third display area 203.
[0115] Among them, when the third display area 203 displays at least one candidate information, since the display range of the third display area 203 is limited, the third display area 203 can support the function of sliding in the length direction of the third display area to switch and display the displayed candidate information. Optionally, a space can be interposed between each idiom displayed in the third display area 203 to distinguish different idioms.
[0116] Another example is that when the user outputs "一" to the second display area and long - presses "一" in the second display area, the most commonly used idioms such as "一心一意", "一字千金", etc., up to 6 idioms at most (the maximum number is not limited to 6) can be automatically recognized. When the content in the third display area exceeds the display range of the third display area, horizontal scrolling for viewing is supported.
[0117] Exemplarily, when obtaining at least one candidate information to be displayed in the third display area, 6 candidate words with a higher usage frequency including this second information, or 6 candidate words with a higher popularity, or 6 candidate words including this second information can be determined based on the semantics of the context text of this second information.
[0118] In an embodiment of the present application, when the information to be displayed on the screen is displayed in the second display area, the user can perform a second input on the second information in the information to be displayed on the screen in the second display area to display at least one candidate information in the third display area, where each candidate information in the at least one candidate information includes the second information, so that the user can achieve fuzzy matching of the candidate information including the second information without inputting some texts, improving the efficiency of text input.
[0119] Optionally, when editing the information to be displayed on the screen in the second display area, if the information to be displayed on the screen includes third information, the third information can be replaced with preset information.
[0120] The third information may be a character, a word, a sentence or other information.
[0121] In an embodiment of the present application, the second display area supports batch updating of some information of the information to be displayed on the screen. Specifically, if the information to be displayed on the screen in the second display area includes third information, automatic replacement of the third information can be realized, and it is automatically replaced with preset information. For example, if there is an input error in the third information, batch correction of the information can be realized, reducing the user's individual correction operations.
[0122] Optionally, when editing the information to be displayed on the screen in the second display area, the fourth input of the user can be received, where the fourth input includes: an editing input for the information to be displayed on the screen; in response to the fourth input, the information to be displayed on the screen is updated.
[0123] Among them, in Figure 2 and Figure 3A 、 Figure 3B as well as Figure 3C The second display area 202 supports editing and modification of the information to be displayed on the screen. The user can click on any position in the second display area 202 to edit the text displayed in the second display area 202.
[0124] For example, when the user inputs "I'm very happy today", the cursor can be positioned at any position of the text to add or delete text accordingly. For example, when the cursor is positioned in front of "今 (jīn)", the user can input "你 (nǐ)" and it will become "你今天好开心 (nǐ jīn tiān hǎo kāi xīn)"; when the cursor is positioned behind "好 (hǎo)", the user can delete and correct "好 (hǎo)", and it will become "你今天开心 (nǐ jīn tiān kāi xīn)".
[0125] In the embodiment of the present application, the second display area for displaying the information to be put on the screen supports editing of the information to be put on the screen, and the text content in the information to be put on the screen is modified and adjusted through the editing input, or the coded string in the information to be put on the screen is modified and adjusted. In the traditional input method, after selecting a candidate word for the coded string, if you want to modify the candidate word, you need to delete all the content after the candidate word before you can modify the candidate word again, which will cause repeated input of the coded string. The method of the embodiment of the present application can save the user's time in modifying the text.
[0126] It should be noted that the text processing method provided in the embodiment of the present application can be executed by a text processing device or a control module in the text processing device for executing the text processing method. In the embodiment of the present application, the text processing device provided in the embodiment of the present application is described by taking the text processing method executed by the text processing device as an example.
[0127] Reference Figure 5 , shows a block diagram of a text processing device according to an embodiment of the present application. The text processing device includes:
[0128] A first display module 11 is used to display the information to be displayed in a second display area when the content of the information to be displayed exceeds the display range of the first display area, and the information to be displayed is determined according to the coded character string input by the user;
[0129] The processing module 12 is used to edit the information to be displayed on the screen in the second display area to obtain a target text.
[0130] In an embodiment of the present application, when the content of the information to be displayed on the screen determined based on the encoded character string exceeds the display range of the first display area, the information to be displayed on the screen can be displayed in the second display area. When the content of the information to be displayed on the screen is large, the information to be displayed on the screen can be displayed in the second display area with a larger display range than the first display area, which is convenient for users to browse the information to be displayed on the second display area. In addition, the second display area supports editing of the information to be displayed on the screen, and users can edit the displayed information to be displayed on the screen in the second display area, thereby improving the convenience of editing the information to be displayed on the screen.
[0131] Optionally, the processing module 12 includes:
[0132] A determination submodule, configured to determine a first position according to a first condition, wherein the first condition includes at least one of the following: an interval time during which a user inputs the coded character string, the semantics of the information to be displayed on the screen, the part of speech of the information to be displayed on the screen, and a preset keyword;
[0133] The first display submodule is used to display a first symbol at the first position.
[0134] In an embodiment of the present application, the second display area can automatically fill in symbols for the displayed information to be displayed on the screen. When filling in the symbols, the first position can be determined according to a first condition, and the first condition includes at least one of the following: the interval time for the user to input the encoded string, the semantics of the information to be displayed on the screen, the part of speech of the information to be displayed on the screen, and a preset keyword. The first symbol is displayed at the first position, and the user does not need to manually switch the keyboard mode of the input method between the text mode and the symbol mode multiple times to input text and symbols. Instead, the user only needs to input the encoded string and the information to be displayed on the screen that matches the encoded string in the text mode. Then, the method of the embodiment of the present application can realize the automatic addition of symbols to the positions where symbols need to be added in the text during the process of the user inputting text, which not only reduces the switching rate of the input method between different modes, but also shortens the text input time and improves the text input efficiency, simplifies the user's input of the information to be displayed on the screen, and can improve the accuracy of the filled symbols and reduce the probability of the user modifying the symbols automatically filled in by the system.
[0135] Optionally, the first display module 11 includes:
[0136] A second display submodule, configured to display the first control when the content of the information to be displayed on the screen exceeds the display range of the second display area;
[0137] A first receiving submodule, configured to receive a first input of the user to the first control;
[0138] The third display submodule is used to display first information in response to the first input, where the first information is part of the information to be displayed on the screen.
[0139] In an embodiment of the present application, when the content of the information to be displayed on the screen exceeds the display range of the second display area, the first control can be displayed. By executing the first input on the first control, part of the content of the information to be displayed on the screen that is not displayed in the second display area can be displayed, and the information to be displayed with more content can be scrolled and viewed in the second display area.
[0140] Optionally, the processing module 12 includes:
[0141] A second receiving submodule, used for receiving a second input of a user on the second information in the information to be displayed on the screen;
[0142] The fourth display submodule is used to display at least one candidate information in a third display area in response to the second input, each of the at least one candidate information includes the second information.
[0143] In an embodiment of the present application, when the information to be displayed on the screen is displayed in the second display area, the user can perform a second input on the second information in the information to be displayed on the screen in the second display area, and display at least one candidate information in the third display area, wherein each candidate information in the at least one candidate information includes the second information, so that the user does not need to input certain texts to achieve fuzzy matching of the candidate information including the second information, thereby improving the efficiency of text input.
[0144] Optionally, the processing module 12 includes:
[0145] The replacement submodule is used to replace the third information with preset information when the information to be displayed on the screen includes third information.
[0146] In an embodiment of the present application, the second display area supports batch updates of certain information of the information to be displayed on the screen. Specifically, if the information to be displayed on the screen displayed in the second display area includes third information, the third information can be automatically replaced with preset information. For example, if there is an input error in the third information, batch correction of the information can be achieved, reducing user operations.
[0147] The text processing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0148] The text processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0149] The text processing device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0150] Alternatively, if Figure 6As shown, an embodiment of the present application also provides an electronic device 2000, including a processor 2002, a memory 2001, and a program or instruction stored in the memory 2001 and executable on the processor 2002. When the program or instruction is executed by the processor 2002, the various processes of the above-mentioned text processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0151] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0152] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0153] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0154] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0155] The display unit 1006 is used to display the information to be displayed in the second display area when the content of the information to be displayed exceeds the display range of the first display area, and the information to be displayed is determined according to the coded character string input by the user;
[0156] The processor 1010 is used to edit the information to be displayed on the screen in the second display area to obtain a target text.
[0157] In an embodiment of the present application, when the content of the information to be displayed on the screen determined based on the encoded character string exceeds the display range of the first display area, the information to be displayed on the screen can be displayed in the second display area. When the content of the information to be displayed on the screen is large, the information to be displayed on the screen can be displayed in the second display area with a larger display range than the first display area, which is convenient for users to browse the information to be displayed on the screen displayed in the second display area. In addition, the second display area supports editing of the information to be displayed on the screen, and users can edit the displayed information to be displayed on the screen in the second display area, thereby improving the convenience of editing the information to be displayed on the screen.
[0158] Optionally, the processor 1010 is further used to determine the first position based on a first condition, wherein the first condition includes at least one of the following: the interval time for the user to input the encoded character string, the semantics of the information to be displayed on the screen, the part of speech of the information to be displayed on the screen, and a preset keyword; the display unit 1006 is also used to display a first symbol at the first position.
[0159] In an embodiment of the present application, the second display area can automatically fill in symbols for the displayed information to be displayed on the screen. When filling in the symbols, the first position can be determined according to a first condition, and the first condition includes at least one of the following: the interval time for the user to input the encoded string, the semantics of the information to be displayed on the screen, the part of speech of the information to be displayed on the screen, and a preset keyword. The first symbol is displayed at the first position, and the user does not need to manually switch the keyboard mode of the input method between the text mode and the symbol mode multiple times to input text and symbols. Instead, the user only needs to input the encoded string and the information to be displayed on the screen that matches the encoded string in the text mode. Then, the method of the embodiment of the present application can realize the automatic addition of symbols to the positions where symbols need to be added in the text during the process of the user inputting text, which not only reduces the switching rate of the input method between different modes, but also shortens the text input time and improves the text input efficiency, simplifies the user's input of the information to be displayed on the screen, and can improve the accuracy of the filled symbols and reduce the probability of the user modifying the symbols automatically filled in by the system.
[0160] Optionally, the display unit 1006 is used to display a first control when the content of the information to be displayed on the screen exceeds the display range of the second display area; the user input unit 1007 is used to receive a first input from a user to the first control; the display unit 1006 is also used to display first information in response to the first input, wherein the first information is part of the content of the information to be displayed on the screen.
[0161] In an embodiment of the present application, when the content of the information to be displayed on the screen exceeds the display range of the second display area, the first control can be displayed. By executing the first input on the first control, part of the content of the information to be displayed on the screen that is not displayed in the second display area can be displayed, and the information to be displayed with more content can be scrolled and viewed in the second display area.
[0162] Optionally, the user input unit 1007 is used to receive a second input of the user on the second information in the information to be displayed on the screen;
[0163] The display unit 1006 is configured to display at least one candidate information in a third display area in response to the second input, each of the at least one candidate information including the second information.
[0164] In an embodiment of the present application, when the information to be displayed on the screen is displayed in the second display area, the user can display at least one candidate information in the third display area by performing a second input on the second information in the information to be displayed in the second display area, wherein each candidate information in the at least one candidate information includes the second information, so that the user does not need to input certain texts to achieve fuzzy matching of the candidate information including the second information, thereby improving the efficiency of text input.
[0165] Optionally, the processor 1010 is further configured to replace the third information with preset information when the information to be displayed on the screen includes third information.
[0166] In an embodiment of the present application, the second display area supports batch updates of certain information of the information to be displayed on the screen. Specifically, if the information to be displayed on the screen displayed in the second display area includes third information, the third information can be automatically replaced with preset information. For example, if there is an input error in the third information, batch correction of the information can be achieved, reducing user operations.
[0167] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.
[0168] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned text processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0169] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0170] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned text processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0171] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0172] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0173] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0174] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A text processing method, characterized in that: The method comprises: When the content of the information to be displayed on the screen exceeds the display range of the first display area, the information to be displayed on the screen is displayed in the second display area, and the information to be displayed on the screen is determined according to the coded character string input by the user; Edit the information to be displayed on the screen in the second display area to obtain a target text; The editing process of the information to be displayed on the screen in the second display area includes: receiving a second input from a user regarding second information in the information to be displayed on the screen; In response to the second input, at least one candidate information is displayed in a third display area, each of the at least one candidate information including the second information.
2. The method according to claim 1, characterized in that The editing process of the information to be displayed on the screen in the second display area includes: Determine the first position according to a first condition, wherein the first condition includes at least one of the following: an interval time during which the user inputs the coded character string, the semantics of the information to be displayed on the screen, the part of speech of the information to be displayed on the screen, and a preset keyword; A first symbol is displayed at the first position.
3. The method according to claim 1, characterized in that The displaying the information to be displayed on the screen in the second display area includes: When the content of the information to be displayed on the screen exceeds the display range of the second display area, displaying the first control; Receiving a first input from a user to the first control; In response to the first input, first information is displayed, where the first information is part of the information to be displayed on the screen.
4. The method according to claim 1, characterized in that: The editing process of the information to be displayed on the screen in the second display area includes: In the case where the information to be displayed on the screen includes third information, the third information is replaced by preset information.
5. A text processing device, characterized in that: The device comprises: A first display module, configured to display the information to be displayed in a second display area when the content of the information to be displayed exceeds the display range of the first display area, wherein the information to be displayed is determined according to a coded character string input by a user; A processing module, used for editing the information to be displayed on the screen in the second display area to obtain a target text; Wherein, the processing module includes: A second receiving submodule, used for receiving a second input of a user on the second information in the information to be displayed on the screen; The fourth display submodule is used to display at least one candidate information in a third display area in response to the second input, each of the at least one candidate information includes the second information.
6. The device according to claim 5, characterized in that The processing module comprises: A determination submodule, configured to determine a first position according to a first condition, wherein the first condition includes at least one of the following: an interval time for a user to input the coded character string, the semantics of the information to be displayed on the screen, the part of speech of the information to be displayed on the screen, and a preset keyword; The first display submodule is used to display a first symbol at the first position.
7. The device according to claim 5, characterized in that The first display module comprises: A second display submodule, configured to display the first control when the content of the information to be displayed on the screen exceeds the display range of the second display area; A first receiving submodule, configured to receive a first input of the user to the first control; The third display submodule is used to display first information in response to the first input, where the first information is part of the information to be displayed on the screen.
8. An electronic device, characterized in that: It comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the text processing method as claimed in any one of claims 1 to 4.
