CN113867547A - Text processing method and device and electronic equipment - Google Patents

Text processing method and device and electronic equipment Download PDF

Info

Publication number
CN113867547A
CN113867547A CN202111174180.1A CN202111174180A CN113867547A CN 113867547 A CN113867547 A CN 113867547A CN 202111174180 A CN202111174180 A CN 202111174180A CN 113867547 A CN113867547 A CN 113867547A
Authority
CN
China
Prior art keywords
information
displayed
screen
display area
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111174180.1A
Other languages
Chinese (zh)
Inventor
李永照
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111174180.1A priority Critical patent/CN113867547A/en
Publication of CN113867547A publication Critical patent/CN113867547A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

Abstract

The application discloses a text processing method and device and electronic equipment, and belongs to the technical field of text processing. The method comprises the following steps: under the condition that the content of the information to be displayed exceeds the display range of the first display area, displaying the information to be displayed in a second display area, wherein the information to be displayed is determined according to a code character string input by a user; and editing the information to be displayed on the screen in the second display area to obtain a target text.

Description

Text processing method and device and electronic equipment
Technical Field
The application belongs to the technical field of text processing, and particularly relates to a text processing method and device and electronic equipment.
Background
With the continuous development of electronic devices, input methods used by electronic devices are becoming more and more diversified. The input method is a coding method adopted for inputting various symbols into a computer or other equipment (such as a mobile phone), and is a final result that a writing tool overcomes ink limitation, is a writing tool with infinite ink, and is a product of character productivity development to a certain stage.
In the existing input method, a display area for displaying information to be displayed on a screen is limited in display range, which is not beneficial to a user to edit the information to be displayed on the screen.
Disclosure of Invention
The embodiment of the application aims to provide a text processing method and device and electronic equipment, and the problem that convenience in editing information to be displayed on a screen is poor in the related art can be solved.
In a first aspect, an embodiment of the present application provides a text processing method, where the method includes:
under the condition that the content of the information to be displayed exceeds the display range of the first display area, displaying the information to be displayed in a second display area, wherein the information to be displayed is determined according to a code character string input by a user;
and editing the information to be displayed on the screen in the second display area to obtain a target text.
In a second aspect, an embodiment of the present application provides a text processing apparatus, including:
the first display module is used for displaying the information to be displayed on the screen in the second display area under the condition that the content of the information to be displayed on the screen exceeds the display range of the first display area, and the information to be displayed on the screen is determined according to a code character string input by a user;
and the processing module is used for editing the information to be displayed on the screen in the second display area to obtain a target text.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the condition that the content of the information to be displayed on the screen, which is determined based on the code 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, so that under the condition that the content of the information to be displayed on the screen is more, compared with the first display area, the information to be displayed on the screen can be displayed in the second display area with a larger display range, and a user can browse the information to be displayed on the screen, which is displayed in the second display area.
Drawings
FIG. 1A is one of the schematic diagrams of an input method interface in the prior art;
FIG. 1B is a second schematic diagram of an input method interface in the prior art;
FIG. 2 is a schematic interface diagram of a text processing method according to an embodiment of the present application;
FIG. 3A is one of the interface diagrams of a text processing method according to another embodiment of the present application;
FIG. 3B is a second schematic interface diagram of a text processing method according to another embodiment of the present application;
FIG. 3C is a third schematic interface diagram of a text processing method according to another embodiment of the present application;
FIG. 4 is a flow diagram of a text processing method of one embodiment of the present application;
FIG. 5 is a block diagram of a text processing apparatus according to an embodiment of the present application;
FIG. 6 is a diagram of a hardware configuration of an electronic device according to an embodiment of the present application;
fig. 7 is a hardware configuration diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The text processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 4, a flow diagram of a text processing method of one embodiment of the present application is shown.
Alternatively, the method may be performed as a part of a program in an input method program. The method can be taken as a concrete implementation method of a new function of an independent input method, and can also be taken as a concrete implementation method of a program of a new function which is supplemented to the input method in the traditional technology.
The method may specifically comprise the steps of:
step 101, displaying the information to be displayed on the screen in a second display area under the condition that the content of the information to be displayed on the screen exceeds the display range of a first display area, wherein the information to be displayed on the screen is determined according to a code character string input by a user;
for example, the first display area may be a display area for displaying information to be displayed on a screen in a conventional input method, and the display area has a limited display range. For example, the first display area can only display the content in a single row and has a limited length, so that when the content of 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 on the screen, which is not displayed.
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, and as described in step 102, the second display area further supports editing processing on the information to be displayed on the screen, whereas the first display area in the conventional technology does not support editing processing on the displayed information to be displayed on the screen.
For the encoded character string, illustratively, in the input method of Chinese, the encoded character string may be a character string such as pinyin and strokes; in the english input method, the code string may be an english alphabet; in the input method of other languages, the code character string may be a character string of a corresponding language, and the specific content of the code character string is not limited in the present application.
For the convenience of understanding of the reader, the following description will take the Chinese input method and the coded character string as pinyin as an example.
The information to be displayed on the screen can be the content to be displayed in a text input area, for example, in a memo software, the text input area is a text input area in a memo; for example, an input method is used in a text box, or a text processing method of the embodiment of the present application is used, then the text input area is the text box.
Since the input method can generate candidates according to the encoded character strings, the information to be displayed on the screen can be the same as the encoded character strings in the case where the user does not select a text from the candidates for any one of the encoded character strings.
For example, in the interface of the input method of the conventional technology shown in fig. 1A and 1B, the to-be-displayed area 201 is the first display area, the to-be-displayed area 201 can only display the to-be-displayed information in a single row, the content of the displayed to-be-displayed information is limited, and the to-be-displayed information needs to be slid in the length direction of the to-be-displayed area 201 to display the non-displayed to-be-displayed information. The candidate area 205 is used to display candidates corresponding to the encoded character strings in the area 201 to be displayed on the screen.
The user may select a candidate from the candidate region 205 to replace the encoded string in the to-be-screened region 201 with the selected candidate. In fig. 1A, the information to be displayed on the screen in the area 201 to be displayed on the screen is a code character string input by the user.
However, in the case that the user selects a text from the candidate items for at least one encoded character string in the to-be-on-screen area 201, but does not select a corresponding text for all encoded character strings, the to-be-on-screen information may include a part of the encoded character strings and a part of the text, for example, the to-be-on-screen information displayed in the to-be-on-screen area 201 of fig. 1B.
In a case where the user selects a text from the candidate items for all the code strings in the screen waiting area 201, the screen waiting information is a text, for example, the screen waiting information displayed in the screen waiting area 201 of fig. 2 is a text "we have gone to forest park today".
As a specific explanation for the fact that the information to be displayed on the screen exceeds the display range of the first display region, the number of characters of the information to be displayed on the screen exceeds the maximum number of characters displayable in the first display region, the maximum number of characters may be the number of characters displayed completely in the first display region, and the number of characters switched from the non-display state to the display state by sliding in the length direction of the first display region is not included in the maximum number of characters.
For example, as shown in fig. 1A, in the screen waiting area 201, only the pinyin "jin 'tie' wo 'men' qu" of at most 5 words can be displayed, and then in the case that the user continues to input the pinyin after inputting "qu", the content of the screen waiting area 201 exceeds the display range of the screen waiting area 201, and the screen waiting information will be displayed to the second display area.
Of course, since the pinyin of each character is different, the maximum number of characters that can be displayed in the region to be displayed on the screen can be different according to the displayed pinyin.
Similarly, in the case that 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, as shown in fig. 1B, the display range of the area 201 to be displayed on the screen can display at most "we go" lin "gong" today.
It is determined that the area 201 to be screened is only a fixed length and width, and only one area of characters can be displayed in a single line, and the display range is small.
Illustratively, the first display area may display, for example, 10 chinese characters at the most, or 20 characters, for example, 2 characters, occupying the same space as one chinese character. Then, under the condition that the input information to be displayed on the screen is within 20 characters, or within 10 Chinese characters, or within 10 characters, 5 Chinese characters, etc., the information to be displayed on the screen only needs to be displayed in the area 201 to be displayed on the screen, which is shown in fig. 1A and 1B.
Illustratively, as shown in fig. 2, for example, the information to be displayed on screen input by the user is "we go to forest park today" which is 10 chinese characters, and it can be displayed in the area 201 to be displayed on screen (i.e. the first display area) in fig. 2, and the area 201 to be displayed on screen in fig. 2 has the same function as the area 201 to be displayed on screen in fig. 1A and 1B, and is used for displaying the information to be displayed on screen, and can be horizontally scrolled and displayed. However, in fig. 2 of the embodiment of the present application, in the case where the number of characters included in the information to be displayed on the screen exceeds 10 kanji characters, the information to be displayed on the screen is switched to the second display area 202 for display.
In the 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 on the screen exceeds the display range of the first display area, and to display the information to be displayed on the conventional area 201 to be displayed on the screen according to the conventional method when the content of the information to be displayed on the screen does not exceed the display range of the first display area.
Because of the difference in the interfaces of different types of input methods, in the interface of the input method shown in fig. 2, a region 204 is used for displaying a coded character string input by a user, and a candidate region 205 is used for displaying candidates; while fig. 1A and 1B are interfaces of another input method, fig. 3A to 3C are improvements made to the input method shown in fig. 1A and 1B.
In the input method corresponding to the interface shown in fig. 3A to 3C, when the content of the information to be displayed is not beyond the display range of the first display area, the information to be displayed is displayed in the area 201 to be displayed (i.e., the first display area) shown in fig. 1A and 1B; since the content of the information to be displayed on the screen exceeds the display range of the first display region in the example shown in fig. 3A to 3C, the first display region is not shown in fig. 3A to 3C, and the second display region 202 is shown.
That is, fig. 2 shows an interface of an input method improved by an embodiment of the present application, and fig. 3A to 3C show interfaces of the input method shown in fig. 1A and 1B improved by an embodiment of the present application. Fig. 2 and fig. 3A are schematic interface diagrams of an input method modified by the method according to the embodiment of the present application with respect to different existing input methods, respectively.
Therefore, in fig. 1A, 1B, 2, 3A, 3B, and 3C, the same reference numerals denote the same objects, and the same explanation and explanation of the objects will not be given, and the objects may be referred to each other.
As shown in fig. 1B, in the conventional input method, the to-be-displayed area 201 may display only limited content, and for non-displayed content, the user is required to switch the content displayed in the to-be-displayed area 201 by sliding the to-be-displayed area 201 left and right (i.e., sliding the to-be-displayed area 201 in the length direction).
However, in the embodiment of the present application, as shown in fig. 2, in the case that the content of the information to be displayed on the screen does not exceed the display range of the area to be displayed 201, the information to be displayed on the screen may be directly displayed on the area to be displayed 201, but in the case that the content of the information to be displayed on the screen exceeds the display range of the area to be displayed 201, the information to be displayed on the screen may be switched and displayed to the second display area 202.
Similarly, referring to the interface of the input method shown in fig. 3A, the user has not selected a candidate for the input encoded character string (i.e., pinyin), so the information to be displayed on the screen is substantially the same as the input original encoded character string, and since the content of the information to be displayed on the screen exceeds the display range of the first display region, the information to be displayed on the screen is directly displayed on the second display region 202 in fig. 3A.
In the interface of the traditional input method, the length of the first display area, namely the area to be displayed on the screen, is limited, and the information to be displayed on the screen is displayed in a single line, so that the number of characters in the content displayed in the area to be displayed on the screen is limited. In the method of the embodiment of the application, the information to be displayed on the screen can be directly displayed to the second display area under the condition that the content of the information to be displayed on the screen is more. Compared with the traditional screen-on-screen area, the second display area has a larger display range and more displayable contents, and a user can look up and browse the screen-on-screen information conveniently through the second display area.
And 102, editing the information to be displayed on the screen in the second display area to obtain a target text.
The second display area supports the 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.
In the embodiment of the application, under the condition that the content of the information to be displayed on the screen, which is determined based on the code 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, so that under the condition that the content of the information to be displayed on the screen is more, compared with the first display area, the information to be displayed on the screen can be displayed in the second display area with a larger display range, and a user can browse the information to be displayed on the screen, which is displayed in the second display area.
Optionally, when the step of displaying the information to be displayed on the screen in the second display area in step 101 is performed, a first control may be displayed when the content of the information to be displayed on the screen exceeds the display range of the second display area; receiving a first input of a user to the first control; and responding to the first input, and displaying first information, wherein the first information is part of the content of the information to be displayed on the screen.
Illustratively, the first input may include, but is not limited to: the click input of the user is either a voice command input by the user or a specific gesture input by the user; specifically, the determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application, and the following principles of specific implementation manners of the second input, the third input, and the fourth input are similar to those of the first input, and are not described in detail later.
The specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a dragging 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 application can be click input, double-click input, click input of any number of times and the like, and can also be long-time press input or short-time press input.
Illustratively, the height h shown in fig. 3B and fig. 2 is the height of the second display area 202, and since the size of the characters displayed in the second display area 202 is preset, the number of characters that can be displayed per line is fixed and the number of lines of the characters that can be displayed is also fixed in the case where the length and the height of the second display area 202 are both fixed, in other words, the maximum number of characters that can be displayed in the second display area 202 is also fixed.
In the case where the content of the information to be displayed on the screen, which is displayed in the second display region 202, exceeds the display range of the second display region 202, for example, the number of characters displayed in the second display region 202 reaches the maximum value of the number of characters in a single line, or the length of the information to be displayed on the screen, which is displayed in the second display region 202, approaches the length a (the length a may be the screen width) of the second display region 202 shown in fig. 2 and 3B, the information to be displayed on the screen may be automatically line-wrapped in the second display region 202, as shown in fig. 3A, 3B and 3C.
Therefore, the second display area of the present embodiment supports displaying the information to be displayed on the screen in a manner of a plurality of lines of characters.
As shown in fig. 1A and fig. 1B, in the input method interface, the to-be-displayed information may not support line feed display in the to-be-displayed area 201, and may only perform horizontal scrolling in one line, so that it is very inconvenient for a user to search for a entered encoded character string or a selected candidate item by continuously sliding the to-be-displayed information in the to-be-displayed area 201 horizontally when searching for an entered encoded character string or a selected candidate item, for example, it is very inconvenient for the user to search for an entered error position of a text, whereas in the embodiment of the present application, in a case where the content of the to-be-displayed information exceeds a single-line display range of the second display area, the to-be-displayed information may be displayed in a line feed manner in the second display area, and since the content is displayed in multiple lines, it is very beneficial for the user to search for the to-be-displayed information, for example, the search for the error content.
In addition, the second display area also supports scrolling display of the displayed information to be displayed on the screen.
As described above, since the height h of the second display area is fixed, the content display range of the second display area 202 in fig. 3B is also fixed, for example, there is a maximum number of displayed characters, for example, 200 characters, when the height of the information to be displayed on the screen displayed in the second display area 202 exceeds the maximum height h shown in fig. 2 or fig. 3B, or when the number of characters of the information to be displayed on the screen exceeds 200, a first control may be displayed, for example, a scroll bar for scrolling up and down text may be displayed, and the scroll bar may be displayed in the height direction of the second display area 202, and it should be noted that the present application does not limit the first control and the display position thereof. Then the user can view the portion of the content beyond the display range in the case where the content of the information to be displayed is beyond the display range of the second display area 202 by inputting the scroll bar.
For example, in consideration of some editing scenes of a working document, a user may need to input a long encoded character string at one time, and therefore, the number of characters of the generated information to be displayed on the screen is large, and 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 may be scrolled and displayed in the second display area in a case that the content of the information to be displayed on the screen exceeds the display range of the second display area.
In the embodiment of the application, under the condition that 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, and by executing the first input on the first control, part of the content which is not displayed in the second display area in the information to be displayed on the screen can be displayed, so that the information to be displayed on the screen with more content can be scrolled and viewed in the second display area.
Optionally, the method according to the embodiment of the application may further perform on-screen display on the information to be on-screen automatically when the content of the information to be on-screen exceeds the display range of the second display area (for example, in fig. 3C, the on-screen display indicates that the information to be on-screen is displayed to 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 on-screen within the display range thereof.
Optionally, when the second display area performs editing processing on the information to be displayed on the screen, a first position may be determined according to a first condition, where the first condition includes at least one of: inputting the interval time of the coded character string, the semantics of the information to be displayed, the part of speech of the information to be displayed and a preset keyword by a user; displaying a first symbol at the first location.
Optionally, the first symbol may be determined according to the semantics of the information to be displayed on the screen; optionally, the first symbol may also be determined according to a preset keyword; optionally, the first symbol may also be determined according to semantics, part of speech and preset keywords of the information to be displayed on the screen.
For example, the method of the embodiment of the present application may be applied to a scenario in which a user inputs a long text, for example, a scenario in which 10 chinese characters or more are input.
For example, a first position of a symbol to be added in the information to be displayed on the screen may be determined according to an input duration of an interval between different encoding character strings input by a user, and a first symbol matched with the first position may be determined according to a preset parameter of the information to be displayed on the screen.
Wherein the preset parameters include at least one of: part of speech, semantics and preset keywords;
specifically, a first position where a symbol needs to be added in information to be displayed on a screen corresponding to an input pinyin can be identified according to the pause duration of the input pinyin by a user; since each character may have a pinyin, i.e. a code string, the input duration in this step represents the input duration of the interval between the code strings of adjacent characters. For example, when inputting the text of "home-good-me call XX", the input duration of the interval between the different code strings here indicates the input duration of the interval between two adjacent code strings, i.e., "hao" and "wo".
Wherein, the type of the added symbol may include but is not limited to at least one of the following: punctuation marks, numerical serial numbers, mathematical symbols, unit symbols, and the like.
In this embodiment, the punctuation mark is taken as an example, for example, when the user inputs a segment of text, based on the input thinking habit of most users, such as inputting "big family, i call XXX, happy to company X, and hope that later people will have multiple relations! "the input habit of the user is decomposed, the user generally inputs the full spelling pinyin of 'big family' and then pauses; inputting the full spelling pinyin of 'I call XXX', and pausing; then inputting the full spelling pinyin of 'very happy coming to the company X', and pausing; finally, inputting the full spelling of 'hope later, everybody has multiple relations' and the spelling is complete.
Judging whether the duration exceeds a preset duration threshold value or not according to the duration of pinyin input pause, if so, determining that punctuation needs to be added at the pause position, and the text added with the punctuation is the information to be displayed on the screen substantially, so that the first position to be determined is the corresponding position of the pause position corresponding to the information to be displayed on the screen. For example, if the duration of the listening input pause exceeds a threshold of 2s, then it is determined that punctuation needs to be added at that location.
Of course, because different users have different input habits on the code character string, some users can type the code character string more quickly, and therefore, the corresponding pause time is shorter; some users have slow typing speed and long corresponding pause time; therefore, the preset time length threshold corresponding to the user can be generated according to the input habit of the user on the code character string. For example, the average value of the pause durations of the multiple recordings is taken as the preset duration threshold.
For the first symbol added to each first position, the first symbol matched with the first position, that is, the specific symbol to be added to the first position, may be determined according to the preset parameter of the information to be displayed; the preset parameters are as described above, and are not described herein again.
The preset parameter may be a preset parameter of each word in the information to be displayed on the screen, where each word represents a word included in a text in the information to be displayed on the screen, and is not a code character string of the selected candidate word that is not replaced in the information to be displayed on the screen. Text herein refers to the text content in the information to be displayed on the screen, rather than the encoded character string.
For example, the information to be screened in the screen-to-be-screened area 201 in fig. 1B, which includes the text "we go today", and the encoding character string "sen 'lin' gong 'yuan' le 'tai' kai 'xin' la" with part of the text not replaced. It should be noted that the "yuan ' le ' tai ' kai ' xin ' la" in the above-mentioned encoding character string "sen ' lin ' gong ' yuan ' le ' tai ' kai ' xin ' la" is not shown in the interface of fig. 1B because, in the input method in the conventional art as shown in fig. 1A and 1B, the display region length of the on-screen region 201 is limited, and the on-screen information displayed in the on-screen region 201 can be scrolled only in the horizontal direction, so that only a part of the on-screen information, i.e., "we go to sen ' lin ' gong today", is shown in the on-screen region 201 in fig. 1B, but not the entire on-screen information "we go to sen ' lin ' go ' gu ' le ' tai ' kai ' xi ' la" today.
Under the condition that the input text is a Chinese character, the characteristic parts of speech (azimuth words, place names, abstract words and the like) of the daily Chinese characters and words conforming to the specific scenes of the public can be adopted to automatically fuzzy match the common punctuation marks needing to be filled.
For example, a plurality of words with the same part of speech, such as an azimuth word, a place name, an abstract word, etc., are filled with a pause sign. A pause sign is filled among a plurality of words with similar semantics, and if the word is the ending position of the information to be displayed on the screen, a period sign and the like are filled to represent the ending punctuation.
Common punctuation marks for Chinese characters may include periods, commas, pause signs, semicolons, colons, question marks, exclamation marks, and the like.
Optionally, when the first symbol matched with the first position is determined according to the preset parameter of the information to be displayed on the screen, the first symbol matched with the first position may be determined according to the preset parameter of the target text matched with the first position in the information to be displayed on the screen;
wherein the target text comprises at least one of: and the first text is positioned in front of the first position in the information to be subjected to screen loading, and the second text is positioned behind the first position in the information to be subjected to screen loading.
In other words, when determining a first symbol that needs to be filled in at a first position, preset parameters of text adjacent to the first position may be referenced.
In one example, when the first symbol is determined according to a preset keyword of the target text, a symbol matched therewith may be determined according to a specific word. For example, presetting the relationship between keywords and punctuation marks; when the adjacent word before the first position is identified as 'Do', the question mark can be filled in by self; when the adjacent word preceding the first position is identified as a "bar", the exclamation point may be self-designated.
In one example, when determining the first symbol according to the part of speech of the target text, if the parts of speech of two words before and after the first position are the same, the representation is two juxtaposed words, and a pause sign may be introduced between the two words.
For example, it is recognized that the parts of speech are nouns of place names, for example, if a user inputs Changsha, Wuhan, Shenzhen, etc., a pause number is filled between the place names; when a user inputs abstract words such as thought, quality, morality, friendship and the like, filling pause signs among the words of which the parts of speech are the abstract words; when the user inputs the orientation words of up, down, left, right, front, back, middle, east, west, south, north, etc., the orientation words may be separated by a pause sign between them.
In one example, when determining the first symbol according to the semantics of the target text, the exclamation point may be filled in at a first position if the semantics of a piece of text preceding the first position is identified as an exclamation; if the semantic meaning of a text segment before the first position is identified as a question sentence, filling a question mark in the first position; in the case where the semantic meaning of a piece of text preceding the first location is identified as a statement sentence, then the specific semantic content of the statement sentence and the specific semantic meaning of a piece of text following the first location may be combined to fill in a comma or a period at the first location.
In addition, the punctuation mark is taken as an example to explain the technical solution of the present application, and in other embodiments, the automatically filled symbol may be other types of symbols besides the punctuation mark, which may be listed or not listed above.
For example, if the text entered before the first position is "rmb", the symbol "rmb" representing rmb may be automatically filled in the first position according to the part of speech of the target text.
In addition, in other examples, the part of speech, the semantics and the preset keywords of the target text corresponding to the first position may be combined to determine the symbols that the first position should be filled in, so as to increase the accuracy of the filled symbols. Specific examples refer to the above examples, and are understood by combining the examples, which are not described herein again.
In this embodiment, the second display area may automatically fill a symbol in the displayed information to be displayed on the screen, and when filling the symbol, the first position may be determined according to a first condition, where the first condition includes at least one of: the interval time of the coding character string input by the user, the semantics of the information to be displayed, the part of speech of the information to be displayed and preset keywords, displaying the first symbol in the first position without requiring the user 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, only the coded character string and the information to be displayed on the screen matched with the coded character string need to be input in the text mode, the method of the embodiment of the application can automatically add the symbols to the positions needing to be added in the text after the user inputs the text, not only reduces the switching rate of an input method between different modes, but also can shorten the text input duration and improve the text input efficiency, simplifies the input of the information to be displayed on the screen by the user, moreover, the accuracy of the filled symbols can be improved, and the probability that the symbols automatically filled by the system are modified by a user is reduced.
Illustratively, referring to fig. 3A through 3B, by selecting a candidate from the candidate region 205, a portion of the encoded character string within the information to be displayed on the screen in the first display region is replaced with text. Then after the user selects the candidates "today we have gone to forest park" and "too" from the candidate area 205, since the user has a long pause after entering the full pinyin for "today we have gone to forest park" and then enters the full pinyin for "too happy cheer", the first position is the position between the pinyin "le" and "tai", and it can be determined by the above method that the first character to be filled in at this first position is a comma, so after the user selects the candidates "today we have gone to forest park" and "too" from the candidate area 205, in the second display area 202 in fig. 3B, commas and "301" are automatically filled in between "today" and "too";
similarly, referring to fig. 3B through 3C, after the user selects the candidate "cheerful" from the candidate area 205 of fig. 3B, the "kai 'xin' la" is automatically replaced with "cheerful" in the second display area 202 of fig. 3C, and the exclamation mark "!is automatically filled after" cheerful! "302.
In the embodiment of the application, under the condition that the number of texts (such as Chinese characters) to be input is excessive and the number of symbols is excessive, a user does not need to manually switch the keyboard mode of the input method between the text mode and the symbol mode for multiple times to input the texts and the symbols, and only needs to input the coded character strings and the information to be displayed on the screen matched with the coded character strings in the text mode, so that the method of the embodiment of the application can determine the first position of the information to be displayed on the screen, to which the symbols need to be added, based on the input interval duration between different coded character strings; determining a first symbol to be filled in the first position according to the part of speech and/or the semantic meaning of the information to be displayed; finally, the first symbol is filled in the first position of the information to be displayed on the screen, so that the automatic addition of the symbol can be realized at the position where the symbol needs to be added in the text in the process of inputting the text by the user, the switching rate of the input method between different modes is reduced, the text input duration can be shortened, the text input efficiency is improved, the text input experience is improved, and the use counter-sensitivity of the user to the input method is effectively solved and reduced.
Optionally, when the second display area performs editing processing on the information to be displayed on the screen, a third input of the user may be further received, where the third input includes: modifying the first symbol to an input of a second symbol. In particular, the user may modify the first symbol, for example to a second symbol.
Taking the symbol as the punctuation mark as an example, when the punctuation mark automatically filled by the system is wrong, the second display area allows the user to change and correct the punctuation mark automatically input, and the input habit of the user to the symbol can be recorded through the change and correction operation of the user.
For example, the user inputs "our home", the system automatically inputs a comma after the text "our home" based on the first condition, the user corrects the comma, modifies the comma into a ton mark, and the system records the current modification, wherein the recorded information includes context text information of the modified symbol and information of two symbols before and after the correction; the user inputs 'our home' again, the system automatically inputs a comma after the text based on the first condition again, the user modifies the comma into a pause sign, and the system records the modification again; then after at least two times of recording information for making the same symbol correction on the same text, the input habit information of the user can be generated, and the input habit information includes: "our home", this text is followed by automatic entering of a pause; then when the user enters the text "our home" a third time, the system automatically enters a pause sign after the text "our home" according to the user's input habits.
In the embodiment of the application, after the system determines the first symbol according to the preset parameter of the target text matched with the first position of the symbol to be filled and automatically fills the symbol, if the user finds that the automatically filled first symbol is wrong, the first symbol can be corrected, the method of the embodiment of the application can generate input habit information of the user according to the correction record of the automatically input symbol by the user, so that the similar wrongly input first symbol in the information to be displayed can be corrected uniformly according to the input habit information, and the error symbol generated by input can be corrected quickly; and generating input habit information of the user based on the correction input of the user to the symbols, so as to adjust the symbols automatically input next time by using the input habit information.
Optionally, when the second display area edits the information to be displayed on the screen, a second input of a user on second information in the information to be displayed on the screen can be received; in response to the second input, displaying at least one candidate information in a third display area, each of the at least one candidate information including the second information. The second information may be a word or a word of the information to be displayed on the screen. Each of the at least one candidate information may include the second information.
Exemplarily, the candidate information may include idioms, poems, sentences, etc., of which the first character or word is the second information; for example, the candidate information may further include idioms, poems, sentences, etc. with the second information as the last word or phrase.
In other words, the present application is not limited to the position of the second information in the candidate information.
For example, the third display area may be located at a preset position around the second display area, but the application is not limited to the position of the third display area.
The third display area here may be, for example, the third display area 203 in fig. 2 and 3C.
In the embodiment, the second display area supports fuzzy matching of partial information (for example, a word or a word) in the input information to be displayed on the screen, and the candidate information may be a word, a idiom, a poem and the like.
In this embodiment, the following description will be given by taking fuzzy matching of idioms on a single word as an example:
when a user performs long-time pressing operation on a certain character in the second display area, the method of the embodiment of the application can query the idioms beginning with the character by using the local idiom thesaurus carried by the input method, and the query speed can be improved by using the local idiom thesaurus for query. For example, if the user inputs "Bai", the matching idiom library may obtain "Baiyibingbaisheng, bailou, boring to the Bai walking-through-poplar, and intersect Baiyun, and the matching idiom may be displayed in the third display area 203 of fig. 3C.
When the third display area 203 displays at least one candidate message, the third display area 203 may support a function of sliding in a length direction of the third display area to switch and display the displayed candidate message, because a display range of the third display area 203 is limited. Alternatively, each idiom displayed in the third display area 203 may be separated by one space to distinguish different idioms.
If the user outputs 'one' to the second display area and presses 'one' in the second display area for a long time, the most frequently used idioms 'one-thoughts', 'one word thousand gold' and the like can be automatically identified, the most number is not limited to 6, and when the content of the third display area exceeds the display range of the third display area, horizontal scrolling is supported.
For example, when at least one candidate information for display into the third display area is obtained, 6 candidate words including the second information with a higher frequency of use, or 6 candidate words with a higher degree of popularity may be obtained, or 6 candidate words including the second information may be determined based on semantics of context text of the second information.
In the embodiment of the application, in the case that the information to be displayed on the screen is displayed in the second display area, the user can display at least one piece of candidate information in the third display area by performing a second input on second information in the information to be displayed on the screen in the second display area, wherein each piece of candidate information in the at least one piece of candidate information includes the second information, so that the user can implement fuzzy matching on the candidate information including the second information without inputting some texts, and the efficiency of text input is improved.
Optionally, when the second display area edits the information to be displayed on the screen, the third information may be replaced with preset information when the information to be displayed on the screen includes the third information.
The third information may be a word or a word, or a sentence, etc.
In this embodiment of the application, the second display area supports batch update of some information of the displayed information to be displayed on screen, and specifically, if the information to be displayed on screen displayed in the second display area includes third information, automatic replacement of the third information can be achieved, and automatic replacement is performed with preset information, for example, in the case that an input error exists in the third information, batch correction of the information can be achieved, and one-by-one correction operation of a user is reduced.
Optionally, when the second display area performs editing processing on the information to be displayed on the screen, four inputs of the user may be received, where the fourth inputs include: editing and inputting the information to be displayed on the screen; and responding to the fourth input, and updating the information to be displayed on the screen.
In fig. 2 and fig. 3A, fig. 3B, and fig. 3C, the second display area 202 supports editing and modification of the displayed information to be displayed on the screen, and a user can edit the text displayed in the second display area 202 by clicking any position in the second display area 202.
For example, the user enters "happy today", and the cursor may be positioned at any position of the text, and corresponding text addition or text deletion is performed. For example, if the cursor is positioned in front of "today", the user can input "you" to turn into "you are happy today"; the cursor is positioned behind "good" and the user can make a delete correction to "good" as opposed to becoming "your happy today".
In the embodiment of the application, the second display area for displaying the information to be displayed supports editing of the information to be displayed, and through the editing input, the text content in the information to be displayed is modified and adjusted again, or the code character string in the information to be displayed is modified and adjusted. In the conventional input method, after a candidate word is selected for a code character string, if the candidate word is to be modified, the content of the candidate word needs to be deleted completely, and the candidate word can be modified and adjusted again, which may cause repeated input of the code character string.
It should be noted that, in the text processing method provided in the embodiment of the present application, the execution main body may be a text processing apparatus, or a control module in the text processing apparatus for executing the text processing method. In the embodiment of the present application, a text processing apparatus executes a text processing method as an example, and the text processing apparatus provided in the embodiment of the present application is described.
Referring to fig. 5, a block diagram of a text processing apparatus according to an embodiment of the present application is shown. The text processing apparatus includes:
the first display module 11 is configured to display the information to be displayed on the screen in the second display area when the content of the information to be displayed on the screen exceeds the display range of the first display area, where the information to be displayed on the screen is determined according to a code character string input by a user;
and the processing module 12 is configured to edit the information to be displayed on the screen in the second display area to obtain a target text.
In the embodiment of the application, under the condition that the content of the information to be displayed, which is determined based on the code character string, exceeds the display range of the first display area, the information to be displayed can be displayed in the second display area, so that under the condition that the content of the information to be displayed is more, compared with the first display area, the information to be displayed can be displayed in the second display area with a larger display range, the information to be displayed on the screen, which is displayed in the second display area, can be conveniently browsed by a user, in addition, the second display area supports the editing processing of the information to be displayed, the user can edit the displayed information to be displayed on the screen in the second display area, and the convenience of editing the information to be displayed on the screen is improved.
Optionally, the processing module 12 includes:
a determination submodule for determining a first location in accordance with a first condition, the first condition comprising at least one of: inputting the interval time of the coded character string, the semantics of the information to be displayed, the part of speech of the information to be displayed and a preset keyword by a user;
a first display sub-module for displaying a first symbol at the first location.
In this embodiment of the application, the second display area may automatically fill a symbol in the displayed information to be displayed on the screen, and when the symbol is filled, the first position may be determined according to a first condition, where the first condition includes at least one of: the interval time of the coding 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 the preset keywords are input by the user, the first symbol is displayed at the first position, the user does not need to manually switch the keyboard mode of the input method between the text mode and the symbol mode for inputting the text and the symbol for many times, and only needs to input the coding character string and the information to be displayed on the screen matched with the coding character string in the text mode, so that the method of the embodiment of the application can automatically add the symbol to the position of the text where the symbol is needed to be added in the process of inputting the text by the user, not only reduces the switching rate of the input method between different modes, but also can shorten the text input duration and improve the text input efficiency, simplifies the input of the information to be displayed on the screen by the user, and can improve the accuracy of the filled symbol, the probability of a user modifying a symbol automatically filled by the system is reduced.
Optionally, the first display module 11 includes:
the second display sub-module is used for displaying the first control under the condition that the content of the information to be displayed on the screen exceeds the display range of the second display area;
the first receiving submodule is used for receiving first input of a user to the first control;
and the third display submodule is used for responding to the first input and displaying first information, and the first information is part of content of the information to be displayed on the screen.
In the embodiment of the application, under the condition that 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, the part of the content which is not displayed in the second display area in the information to be displayed on the screen can be displayed by executing the first input on the first control, and the information to be displayed on the screen with more content can be scrolled and viewed in the second display area.
Optionally, the processing module 12 includes:
the second receiving submodule is used for receiving second input of a user to second information in the information to be displayed on the screen;
a fourth display sub-module for displaying at least one candidate message in a third display area in response to the second input, each of the at least one candidate message including the second information.
In the embodiment of the application, under the condition that the information to be displayed on the screen is displayed in the second display area, a user can perform second input on second information in the information to be displayed on the screen in the second display area, and at least one piece of candidate information is displayed in the third display area, wherein each piece of candidate information in the at least one piece of candidate information comprises the second information, so that the user can realize fuzzy matching on the candidate information comprising the second information without inputting some texts, and the efficiency of text input is improved.
Optionally, the processing module 12 includes:
and the replacing submodule is used for replacing the third information with preset information under the condition that the information to be displayed on the screen comprises the third information.
In the embodiment of the application, the second display area supports batch update of some information of the displayed information to be displayed on screen, and specifically, if the information to be displayed on screen displayed in the second display area includes third information, automatic replacement of the third information can be achieved, and automatic replacement is performed to preset information, for example, in the case that the third information has an input error, batch correction of the information can be achieved, and user operations are reduced.
The text processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The text processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The text processing device provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 2000 is further provided in this embodiment of the present application, and includes a processor 2002, a memory 2001, and a program or an instruction stored in the memory 2001 and executable on the processor 2002, where the program or the instruction implements the processes of the text processing method embodiment when executed by the processor 2002, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
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.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The display unit 1006 is configured to display the information to be displayed on the screen in the second display area when the content of the information to be displayed on the screen exceeds the display range of the first display area, where the information to be displayed on the screen is determined according to a code character string input by a user;
and the processor 1010 is configured to edit the information to be displayed on the screen in the second display area to obtain a target text.
In the embodiment of the application, under the condition that the content of the information to be displayed on the screen, which is determined based on the code 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, so that under the condition that the content of the information to be displayed on the screen is more, compared with the first display area, the information to be displayed on the screen can be displayed in the second display area with a larger display range, and a user can browse the information to be displayed on the screen, which is displayed in the second display area.
Optionally, the processor 1010 is further configured to determine a first position according to a first condition, the first condition including at least one of: inputting the interval time of the coded character string, the semantics of the information to be displayed, the part of speech of the information to be displayed and a preset keyword by a user; the display unit 1006 is further configured to display a first symbol at the first position.
In this embodiment of the application, the second display area may automatically fill a symbol in the displayed information to be displayed on the screen, and when the symbol is filled, the first position may be determined according to a first condition, where the first condition includes at least one of: the interval time of the coding 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 the preset keywords are input by the user, the first symbol is displayed at the first position, the user does not need to manually switch the keyboard mode of the input method between the text mode and the symbol mode for inputting the text and the symbol for many times, and only needs to input the coding character string and the information to be displayed on the screen matched with the coding character string in the text mode, so that the method of the embodiment of the application can automatically add the symbol to the position of the text where the symbol is needed to be added in the process of inputting the text by the user, not only reduces the switching rate of the input method between different modes, but also can shorten the text input duration and improve the text input efficiency, simplifies the input of the information to be displayed on the screen by the user, and can improve the accuracy of the filled symbol, the probability of a user modifying a symbol automatically filled by the system is reduced.
Optionally, the display unit 1006 is configured to display a first control when the content of the information to be displayed on the screen exceeds a display range of the second display area; a user input unit 1007, configured to receive a first input to the first control by a user; the display unit 1006 is further configured to display, in response to the first input, first information, where the first information is a part of content of the information to be displayed on a screen.
In the embodiment of the application, under the condition that 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, the part of the content which is not displayed in the second display area in the information to be displayed on the screen can be displayed by executing the first input on the first control, and the information to be displayed on the screen with more content can be scrolled and viewed in the second display area.
Optionally, the user input unit 1007 is configured to receive a second input of a second information in the information to be displayed on the screen by the user;
a display unit 1006, configured to display at least one candidate information in a third display area in response to the second input, where each of the at least one candidate information includes the second information.
In the embodiment of the application, under the condition that the information to be displayed on the screen is displayed in the second display area, a user can perform second input on second information in the information to be displayed on the screen in the second display area to display at least one piece of candidate information in the third display area, wherein each piece of candidate information in the at least one piece of candidate information comprises the second information, so that the user can realize fuzzy matching on the candidate information comprising the second information without inputting some texts, and the efficiency of text input is improved.
Optionally, the processor 1010 is further configured to replace the third information with preset information when the to-be-displayed information includes the third information.
In the embodiment of the application, the second display area supports batch update of some information of the displayed information to be displayed on screen, and specifically, if the information to be displayed on screen displayed in the second display area includes third information, automatic replacement of the third information can be achieved, and automatic replacement is performed to preset information, for example, in the case that the third information has an input error, batch correction of the information can be achieved, and user operations are reduced.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing 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, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as 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, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the text processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the text processing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of text processing, the method comprising:
under the condition that the content of the information to be displayed exceeds the display range of the first display area, displaying the information to be displayed in a second display area, wherein the information to be displayed is determined according to a code character string input by a user;
and editing the information to be displayed on the screen in the second display area to obtain a target text.
2. The method according to claim 1, wherein the editing the information to be displayed on the screen in the second display area comprises:
determining a first location according to a first condition, the first condition comprising at least one of: inputting the interval time of the coded character string, the semantics of the information to be displayed, the part of speech of the information to be displayed and a preset keyword by a user;
displaying a first symbol at the first location.
3. The method according to claim 1, wherein the displaying the information to be displayed on the screen in the second display area comprises:
under the condition that the content of the information to be displayed on the screen exceeds the display range of the second display area, displaying a first control;
receiving a first input of a user to the first control;
and responding to the first input, and displaying first information, wherein the first information is part of the content of the information to be displayed on the screen.
4. The method according to claim 1, wherein the editing the information to be displayed on the screen in the second display area comprises:
receiving a second input of a user to second information in the information to be displayed on the screen;
in response to the second input, displaying at least one candidate information in a third display area, each of the at least one candidate information including the second information.
5. The method according to claim 1, wherein the editing the information to be displayed on the screen in the second display area comprises:
and replacing the third information with preset information under the condition that the information to be displayed on the screen comprises the third information.
6. A text processing apparatus, characterized in that the apparatus comprises:
the first display module is used for displaying the information to be displayed on the screen in the second display area under the condition that the content of the information to be displayed on the screen exceeds the display range of the first display area, and the information to be displayed on the screen is determined according to a code character string input by a user;
and the processing module is used for editing the information to be displayed on the screen in the second display area to obtain a target text.
7. The apparatus of claim 6, wherein the processing module comprises:
a determination submodule for determining a first location in accordance with a first condition, the first condition comprising at least one of: inputting the interval time of the coded character string, the semantics of the information to be displayed, the part of speech of the information to be displayed and a preset keyword by a user;
a first display sub-module for displaying a first symbol at the first location.
8. The apparatus of claim 6, wherein the first display module comprises:
the second display sub-module is used for displaying the first control under the condition that the content of the information to be displayed on the screen exceeds the display range of the second display area;
the first receiving submodule is used for receiving first input of a user to the first control;
and the third display submodule is used for responding to the first input and displaying first information, and the first information is part of content of the information to be displayed on the screen.
9. The apparatus of claim 6, wherein the processing module comprises:
the second receiving submodule is used for receiving second input of a user to second information in the information to be displayed on the screen;
a fourth display sub-module for displaying at least one candidate message in a third display area in response to the second input, each of the at least one candidate message including the second information.
10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the text processing method according to any one of claims 1 to 5.
CN202111174180.1A 2021-09-30 2021-09-30 Text processing method and device and electronic equipment Pending CN113867547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111174180.1A CN113867547A (en) 2021-09-30 2021-09-30 Text processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111174180.1A CN113867547A (en) 2021-09-30 2021-09-30 Text processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113867547A true CN113867547A (en) 2021-12-31

Family

ID=79001962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111174180.1A Pending CN113867547A (en) 2021-09-30 2021-09-30 Text processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113867547A (en)

Similar Documents

Publication Publication Date Title
CN100334529C (en) Reduced keyboard disambiguating system
CN101256462B (en) Hand-written input method and apparatus based on complete mixing association storeroom
CN105814519B (en) System and method for inputting image or label to electronic equipment
CN105573503B (en) For receiving the method and system of the text input on touch-sensitive display device
US20150160855A1 (en) Multiple character input with a single selection
US20150169537A1 (en) Using statistical language models to improve text input
TW200305099A (en) Entering text into an electronic communications device
KR20050025147A (en) Entering text into an electronic communications device
CN105308551A (en) Multiple graphical keyboards for continuous gesture input
US20170270092A1 (en) System and method for predictive text entry using n-gram language model
CN112631437A (en) Information recommendation method and device and electronic equipment
CN112181253A (en) Information display method and device and electronic equipment
WO2022247789A1 (en) Candidate word update method and apparatus, and electronic device
US20150082234A1 (en) Electronic device and text-input interface displaying method thereof
CN112558784A (en) Method and device for inputting characters and electronic equipment
CN112764734A (en) Code editing assisting method and device and electronic equipment
CN102591851B (en) A kind of method and apparatus for editing target text based on keyboard
CN111860000A (en) Text translation editing method and device, electronic equipment and storage medium
WO2023045920A1 (en) Text display method and text display apparatus
CN113867547A (en) Text processing method and device and electronic equipment
CN113238686B (en) Document processing method and device and electronic equipment
WO2022143523A1 (en) Vocabulary display method and apparatus, and electronic device
CN112698734A (en) Candidate word display method and device and electronic equipment
CN113010072A (en) Searching method and device, electronic equipment and readable storage medium
CN113157966A (en) Display method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination