CN110597400A - Candidate item display method and device - Google Patents
Candidate item display method and device Download PDFInfo
- Publication number
- CN110597400A CN110597400A CN201810609622.2A CN201810609622A CN110597400A CN 110597400 A CN110597400 A CN 110597400A CN 201810609622 A CN201810609622 A CN 201810609622A CN 110597400 A CN110597400 A CN 110597400A
- Authority
- CN
- China
- Prior art keywords
- candidate
- display
- strategy
- candidates
- candidate item
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements 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/0233—Character input methods
- G06F3/0236—Character input methods using selection techniques to select from displayed items
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application discloses a candidate item display method, which comprises the following steps: determining a plurality of corresponding candidate items according to the acquired character strings; when a preset condition is met, switching the display strategy from a first display strategy to a second display strategy; the number of the candidate items displayed on the candidate item display front page according to the second display strategy is larger than that of the candidate items displayed on the candidate item display front page according to the first display strategy; and displaying the candidate items according to the second display strategy. Therefore, according to the technical scheme provided by the application, more candidate items can be displayed on the candidate item display home page according to the second display strategy relative to the first display strategy, so that the possibility that a user can see the required candidate items on the screen at the first time is improved, the input cost of the user is reduced, and the input experience of the user is improved.
Description
Technical Field
The present application relates to the field of input methods, and in particular, to a candidate item display method and apparatus.
Background
When the user uses the input method through the terminal, the input method can convert the character strings input by the user into corresponding candidate items for displaying, and the candidate items selected by the user can be displayed on a screen to realize input.
However, since the terminal display area is limited, all the candidates corresponding to the character string cannot be displayed at one time. When there are many candidates, the input method may present the candidates in pages, and each time, only present the candidates in one candidate presentation page.
The conventional candidate item display mode has a small number of displayed candidate items in a candidate item display page, so that the candidate items which are actually displayed on a screen by a user may not be displayed to the user at the first time, that is, the candidate items may not appear in a candidate item display home page, and the candidate items can be found only by performing page turning operation on the candidate item display page by the user, so that the input cost of the user is increased, and the input experience of the user is reduced.
Disclosure of Invention
In order to solve the technical problem, the application provides a candidate item display method, so that the possibility that a user can see a required candidate item on a screen at the first time is expected to be improved, the input cost of the user is reduced, and the input experience of the user is improved.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a candidate item display method, where the method includes:
determining a plurality of corresponding candidate items according to the acquired character strings;
when a preset condition is met, switching the display strategy from a first display strategy to a second display strategy; the number of the candidate items displayed on the candidate item display front page according to the second display strategy is larger than that of the candidate items displayed on the candidate item display front page according to the first display strategy;
and displaying the candidate items according to the second display strategy.
Optionally, the preset condition includes that a display policy of the candidate items is set as the second display policy.
Optionally, the preset condition includes any one or more of the following combinations:
the number of candidates of the plurality of candidates is greater than a first threshold;
the number of the candidate items displayed on the candidate item display home page is smaller than a second threshold value according to the first display strategy;
and N candidates in the candidates displayed on the candidate display home page have a common part according to the first display strategy, wherein N is a positive integer greater than 1.
Optionally, the second display strategy includes any one or more of the following combinations:
displaying the candidate items in the candidate item display home page by using the target word size; the target word size is smaller than the word size of the candidate item displayed on the home page of the candidate item display under the first display strategy;
taking the target display area as a display area of the candidate item display home page to display the candidate item; the range of the target display area is larger than the range of the display area of the candidate item display home page under the first display strategy;
and determining a common part of the N candidates shown on the candidate showing top page according to the first showing strategy, and showing one common part and non-common parts of the M candidates with the common part in the candidate showing top page, wherein M is larger than or equal to N.
Optionally, if the preset condition includes that N candidates among the candidates shown in the candidate showing top page have a common part, the second showing policy includes showing one common part and non-common parts of each of the M candidates having the common part in the candidate showing top page.
Optionally, in the candidate item presentation top page, a specific symbol is set in a non-public part of each of the M candidate items; the specific symbol set by the non-public part of one candidate item is used for identifying the position relation of the public part and the non-public part in the candidate item.
Optionally, the number of the candidates of the plurality of candidates is greater than the number of candidates shown on the top page of the candidate display according to the first display policy.
In a second aspect, an embodiment of the present application provides a candidate item display apparatus, where the apparatus includes: the device comprises a determining unit, a switching unit and a display unit;
the determining unit is used for determining a plurality of corresponding candidate items according to the acquired character strings;
the switching unit is used for switching the display strategy from a first display strategy to a second display strategy when a preset condition is met; the number of the candidate items displayed on the candidate item display front page according to the second display strategy is larger than that of the candidate items displayed on the candidate item display front page according to the first display strategy;
the display unit is used for displaying the candidate items according to the second display strategy.
Optionally, the preset condition includes that a display policy of the candidate items is set as the second display policy.
Optionally, the preset condition includes any one or more of the following combinations:
the number of candidates of the plurality of candidates is greater than a first threshold;
the number of the candidate items displayed on the candidate item display home page is smaller than a second threshold value according to the first display strategy;
and N candidates in the candidates displayed on the candidate display home page have a common part according to the first display strategy, wherein N is a positive integer greater than 1.
Optionally, the second display strategy includes any one or more of the following combinations:
displaying the candidate items in the candidate item display home page by using the target word size; the target word size is smaller than the word size of the candidate item displayed on the home page of the candidate item display under the first display strategy;
taking the target display area as a display area of the candidate item display home page to display the candidate item; the range of the target display area is larger than the range of the display area of the candidate item display home page under the first display strategy;
and determining a common part of the N candidates shown on the candidate showing top page according to the first showing strategy, and showing one common part and non-common parts of the M candidates with the common part in the candidate showing top page, wherein M is larger than or equal to N.
Optionally, if the preset condition includes that N candidates among the candidates shown in the candidate showing top page have a common part, the second showing policy includes showing one common part and non-common parts of each of the M candidates having the common part in the candidate showing top page.
Optionally, in the candidate item presentation top page, a specific symbol is set in a non-public part of each of the M candidate items; the specific symbol set by the non-public part of one candidate item is used for identifying the position relation of the public part and the non-public part in the candidate item.
Optionally, the number of the candidates of the plurality of candidates is greater than the number of candidates shown on the top page of the candidate display according to the first display policy.
In a third aspect, an embodiment of the present application provides a candidate item presentation apparatus, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors includes a computer program for executing the candidate item presentation method according to any one of the first aspect.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the candidate item presentation method according to any one of the first aspect.
According to the technical scheme, the candidate items corresponding to the character string are determined according to the acquired character string, when the preset condition is met, more candidate items can be clearly displayed on the candidate item display home page, so that the display strategy for displaying the candidate items can be switched from the first display strategy to the second display strategy, more candidate items can be displayed on the candidate item display home page relative to the first display strategy according to the second display strategy, the possibility that a user can see the required candidate items on the screen at the first time is improved, the input cost of the user is reduced, and the input experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a framework of an exemplary application scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of a method for displaying candidate items according to an embodiment of the present disclosure;
fig. 3 is a schematic view of an interface of a candidate item display home page according to an embodiment of the present disclosure;
fig. 4 is a schematic interface diagram of a candidate item display home page according to an embodiment of the present disclosure;
fig. 5 is a schematic view of an interface of a candidate item display home page according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a candidate display apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a candidate item display apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the accompanying drawings.
When the user uses the input method, the input method can convert the character strings input by the user into corresponding candidate items for displaying, and the candidate items selected by the user can be displayed on a screen to realize input. However, since the terminal display area is limited, all the candidates corresponding to the character string cannot be displayed at one time. When there are many candidates, the input method may present the candidates in pages, and each time, only present the candidates in one candidate presentation page.
The conventional candidate item display mode has a small number of displayed candidate items in a candidate item display page, so that the candidate items which a user actually wants to be displayed on a screen cannot be displayed to the user at the first time by inputting a character string, namely the candidate items may not appear in a candidate item display first page and can be found by turning the page of the candidate item display page, so that the input cost of the user is increased, and the input experience of the user is reduced.
Therefore, the candidate item display method is provided in the embodiment of the application, so that more candidate items can be displayed on the candidate item display home page, the possibility that a user can see the required candidate items on the screen at the first time is improved, the input cost of the user is reduced, and the input experience of the user is improved.
As an example, the candidate item presentation method provided in the embodiment of the present application may be applied to a scenario shown in fig. 1, where the scenario may include the terminal 102. The terminal 102 may be a device installed with an input method, for example, a mobile phone, a notebook computer, a desktop computer, a tablet computer, an e-book reader, a motion Picture Experts Group Audio Layer IV (MP 4) player, a wearable device (such as a smart watch), a laptop, and the like.
The input method mentioned in the embodiment of the present application may be an encoding method adopted for inputting various symbols into the terminal 102, and the user 101 may conveniently use the input method to screen candidate items corresponding to input character strings onto an interface of the terminal 102 or an opened document. It should be noted that, in the embodiment of the present application, besides the common chinese input method (such as pinyin input method, wubi input method, zhuyin input method, etc.), the input method may also include other languages (such as japanese hiragana input method, korean input method, etc.).
Specifically, when the user 101 inputs a character string through an input method in the terminal 102, the terminal 102 may acquire the character string, and the terminal 102 may determine a plurality of candidates corresponding to the character string according to the character string.
The character string may be a string of characters corresponding to the content that the user 101 wants to input into the terminal 102, and the character string may include characters, letters, numbers, symbols, and the like. It is understood that the composition form of the character string may be determined according to the input manner of the character string. For example, when the input mode of the character string is voice input or input through a handwriting keyboard, the composition form of one character string may be a character or a character combination, for example, when the user 101 wants to input a word "tomorrow" by using the voice input function in the input method, the user 101 may input voice information corresponding to the word "tomorrow" through the voice input key in the input method, and then the input method may determine that the input character string is the word "tomorrow" according to the voice information. For another example, when the input mode of the character string is input through a pinyin keyboard or a stroke keyboard in the input method, the composition form of a character string may be a syllable or a syllable combination corresponding to the content to be input, or a stroke sequence corresponding to the content to be input, or a specific identifier corresponding to the content to be input, for example, when the user 101 wants to input a word, such as a word "eat", by using the pinyin keyboard in the input method, the character string input by the user 101 may be a syllable combination "chi' fan" corresponding to "eat"; when the user 101 wants to input a word using the stroke keyboard of the input method, such as "happy" word, the character string input by the user 101 is "happy" with the corresponding stroke sequence "rqw". It should be noted that, besides the above possible manners, the composition form of a character string may also have other different composition forms according to the actual situation, and details are not described here.
The candidate item may be a content such as a word or a symbol displayed by the input method according to the character string input by the user 101, for example, when the input method is a pinyin input method, the candidate item may be a chinese character; when the input method is a hiragana input method, the candidate items can be Japanese Chinese characters; when the input method is a Korean input method, the candidate item can be a Korean character. It should be noted here that the language category of the candidate may be other different language categories besides the above possible manners, and the language category of the candidate is not limited herein.
For convenience of description, in the following embodiments, the input method of the character string is mainly input through a pinyin keyboard in the input method, and the character combination in the character string is taken as an example to be described as a syllable or a syllable combination corresponding to the content to be input.
After the terminal 102 determines the corresponding candidate items according to the acquired character string, the terminal may determine whether a preset condition is satisfied, and if so, it may be explicitly required to display more candidate items on a candidate item display home page, so that the display policy may be switched from a first display policy to a second display policy, and the terminal 102 may display the candidate items according to the second display policy. The presentation policy may be understood as a presentation manner of the candidate item in the candidate item presentation page, and may include, for example, a word size of the candidate item in the candidate item presentation page, a range size of a presentation area of the candidate item presentation page, presentation content of the candidate item in the candidate item presentation page, and the like. It is to be understood that the candidate item presentation page may be a region for presenting candidate items, wherein the candidate item presentation top page may be the first page in the candidate item presentation page.
It should be noted that the second presentation policy may be a presentation policy different from the first presentation policy, for example, a presentation manner of the candidate items in the top page presented by the candidate items under the second presentation policy is different from a presentation manner of the candidate items in the top page presented by the candidate items under the first presentation policy. Therefore, the number of the candidate items displayed on the candidate item display home page according to the second display strategy is larger than that of the candidate items displayed on the candidate item display home page according to the first display strategy, that is, more candidate items can be displayed on the candidate item display home page relative to the first display strategy according to the second display strategy, so that the possibility that a user can see the required candidate items on the screen at the first time is improved, the input cost of the user is reduced, and the input experience of the user is improved. In one possible implementation manner, the first display policy may be understood as a default display policy of the input method.
Various non-limiting embodiments of the present application are described in detail below with reference to the accompanying drawings.
Next, a candidate item presentation method provided by the present application will be described by taking an input method in which the candidate item presentation method provided by the present application is applied to a terminal as an example. Referring to fig. 2, a flowchart of a candidate item display method according to an embodiment of the present disclosure is shown. As shown in fig. 2, the following steps may be included:
s201: and determining a plurality of corresponding candidate items according to the acquired character strings.
After the character string is obtained, a plurality of candidate items corresponding to the character string and a display order of the candidate items may be determined according to the character string, for example, the input method may query in a related lexicon according to the obtained character string to determine the candidate items corresponding to the character string and the display order of the candidate items.
For example, assuming that the user wishes to input five chinese characters, i.e., "happy birthday" into the terminal, the user may first input the pinyin string "shengrikuaile" (i.e., character string) through the keyboard in the input method. Then, the input method may query in the related lexicon according to the pinyin string "shengrikuaile", and determine that three candidate items corresponding to the pinyin string "shengrikuaile" are "happy birthday", "happy birthday o", and "happy birthday haar", respectively, and display orders of the three candidate items.
For another example, assuming that the user wishes to input five characters, namely "happy birthday" into the terminal, the user can input four characters, namely "happy birthday" (i.e. character strings) through the handwriting keyboard in the input method. Then, the input method may query in the related lexicon according to the four Chinese characters "happy birthday", and determine that three candidate items corresponding to the four Chinese characters "happy birthday" are "happy birthday", "happy birthday" and "happy birthday haar", respectively, and display orders of the three candidate items.
S202: and when a preset condition is met, switching the display strategy from the first display strategy to the second display strategy.
S203: and displaying the candidate items according to the second display strategy.
It can be understood that, after determining the corresponding candidate items according to the acquired character string, if the number of the candidate items corresponding to the character string is greater than the number of the candidate items displayed on the candidate item display top page according to the first display policy, that is, the candidate item display top page under the first display policy cannot display all the candidate items corresponding to the character string, it indicates that the candidate item that the user actually wants to go to the screen may not appear in the candidate item display top page, and the user needs to turn the page of the candidate item display page to find the candidate item.
Therefore, in this embodiment, after determining the corresponding candidate items according to the acquired character string, it may be determined whether a preset condition is met, and if the preset condition is met, it may be determined that more candidate items need to be displayed on the candidate item display home page. Therefore, the display strategy for displaying the candidate items can be switched from the first display strategy to the second display strategy, and the candidate items corresponding to the character strings can be displayed according to the second display strategy, so that more candidate items can be displayed on the candidate item display first page relative to the first display strategy according to the second display strategy. It should be noted that the preset condition and the second display strategy in the present embodiment will be described in detail later.
According to the technical scheme, the candidate items corresponding to the character string are determined according to the acquired character string, when the preset condition is met, more candidate items can be clearly displayed on the candidate item display home page, so that the display strategy for displaying the candidate items can be switched from the first display strategy to the second display strategy, more candidate items can be displayed on the candidate item display home page relative to the first display strategy according to the second display strategy, the possibility that a user can see the required candidate items on the screen at the first time is improved, the input cost of the user is reduced, and the input experience of the user is improved.
In the following, the preset condition and the second presentation strategy will be described in detail.
First, the preset conditions in the embodiments of the present application will be described in detail. It should be noted that, in this embodiment, the preset condition may include multiple situations, for example, the display policy for displaying the candidate items is preset by the user, or multiple candidate items corresponding to the character string meet the requirement that more candidate items need to be displayed. The following will be specifically described for the two cases:
in the first case: the showing strategy of the candidate item showing is preset by the user.
In this embodiment, the preset condition may include that the presentation policy of the candidate presentation is preset by the user as the second presentation policy. Specifically, after determining the multiple candidate items corresponding to the character string, it may be determined whether the user sets the display policy displayed by the multiple candidate items as a second display policy in advance; if yes, it is determined that the preset condition is met, that is, it is clear that the user wants to be able to display more candidates in the candidate display home page. Therefore, the display strategy of the candidate item display can be switched from the first display strategy to the second display strategy, and the candidate items corresponding to the character string are displayed according to the second display strategy.
Continuing with the example of the pinyin string "shengrikuaile" in S201. After determining that the three corresponding candidate items are 'happy birthday', 'happy birthday' and 'happy birthday Ha' respectively according to the pinyin string 'shengrikuaile'. If it is determined that the display strategy displayed by the candidate item by the user through the input method is set as the second display strategy in advance, it may be determined that the preset condition is satisfied, the display strategy displayed by the candidate item may be switched from the first display strategy to the second display strategy, and the three candidate items corresponding to the pinyin string "shengrikuaile" are displayed according to the second display strategy, so as to display the three candidate items "happy birthday", "happy birthday" and "happy birthday" corresponding to the pinyin string "shengrikuaile" in the candidate item display top page according to the second display strategy.
In the second case: the multiple candidate items corresponding to the character string meet the requirement that more candidate items need to be displayed.
In the embodiment, after determining the multiple candidate items corresponding to the character string, the input method may automatically determine whether the multiple candidate items meet the requirement of showing more candidate items; if yes, the preset condition can be determined to be met, that is, more candidate items can be clearly displayed in the candidate item display home page, so that the input requirement of the user can be met.
It can be understood that, under the condition that the user does not preset a presentation strategy for presenting the candidate items, the input method can autonomously and dynamically set a presentation strategy for presenting the candidate items according to the candidate items corresponding to the real-time input character string; for example, when a plurality of candidate items corresponding to the character string meet the requirement that more candidate items need to be displayed, that is, when a preset condition is met, the display policy for displaying the candidate items may be switched from the first display policy to the second display policy, so that more candidate items can be displayed on the candidate item display home page relative to the first display policy according to the second display policy; for another example, when the candidate items corresponding to the character string do not meet the requirement that more candidate items need to be presented, the presentation policy for presenting the candidate items may be switched back to the first presentation policy. Therefore, in the process of using the input method by the user, the input method can determine the input requirement of the user according to the input condition of the user, and can autonomously and dynamically switch the display strategy for displaying the candidate items according to the input requirement of the user, so that the input requirement of the user is met, and the input experience of the user is improved.
Specifically, in a case that a plurality of candidate items corresponding to the character string meet a requirement that more candidate items need to be displayed, the preset condition may include any one or more of the following combinations:
the first mode is as follows: the number of candidates of the plurality of candidates is greater than a first threshold.
The first threshold may be determined according to the number of candidates shown in the candidate showing top page, for example, the first threshold may be greater than the number of candidates shown in the candidate showing top page.
It should be noted that, if the number of the candidate items corresponding to the character string input by the user is greater than the first threshold, it is indicated that the number of the candidate items corresponding to the character string is greater than the number of the candidate items displayed on the first display policy, which is far greater than the number of the candidate items displayed on the first display policy, so that the possibility that the candidate items actually desired to be displayed on the screen by the user appear on the first display policy is greatly reduced, and the candidate items actually desired to be displayed on the screen by the user can be found by turning the page of the candidate item display page.
Specifically, after determining a plurality of candidate items corresponding to the character string, the number of the candidate items may be determined, and whether the number of the candidate items is greater than a first threshold value is determined; if so, it may be determined that the condition is satisfied, that is, it may be determined that more candidates can be displayed in the candidate display home page. Therefore, the display strategy of the candidate item display can be switched from the first display strategy to the second display strategy, and the candidate items corresponding to the character string are displayed according to the second display strategy.
For example, assume that the first threshold is 30, and the character string input by the user is the pinyin string "bushi", which corresponds to 64 candidates. After determining that the number of candidate items corresponding to the pinyin string "bushi" is 64, it may be determined whether the number of candidate items corresponding to the pinyin string "bushi" is greater than a first threshold. Because the number 64 of the candidate items corresponding to the pinyin string "bushi" is greater than the first threshold value 30, it may be determined that the preset condition is satisfied, the presentation policy for candidate item presentation may be switched from the first presentation policy to the second presentation policy, and a plurality of candidate items corresponding to the pinyin string "bushi" may be presented according to the second presentation policy, so that the number of candidate items corresponding to the character string "bushi" presented on the first page of candidate item presentation under the second presentation policy is more than that presented by the first presentation policy.
The second mode is as follows: and the number of the candidate items displayed on the candidate item display home page is smaller than a second threshold value according to the first display strategy.
It should be noted that, when multiple candidate items corresponding to an input character string are displayed according to a first display policy, if the number of the multiple candidate items is greater than the number of the candidate items displayed on the candidate item display top page, and the number of the candidate items displayed on the candidate item display top page is less than a second threshold, it is indicated that the number of the candidate items displayed on the candidate item display top page according to the first display policy is too small, so that the possibility that the candidate items actually wanted to be on screen by a user appear on the display top page is greatly reduced, and the candidate items actually wanted to be on screen by the user can be found by turning pages of the candidate item display page. It should be noted that the second threshold may be the same as or different from the first threshold, and is not limited herein.
Therefore, in this embodiment, after determining the candidate items corresponding to the character string, the number of the candidate items displayed on the first page of the candidate item display may be determined first when the candidate items are displayed according to the first display policy. If the number of the candidate items is greater than the number of the candidate items shown on the candidate item showing home page, whether the number of the candidate items shown on the candidate item showing home page is less than a second threshold value or not can be judged; if so, it may be determined that the condition is satisfied, that is, it may be determined that more candidates may be displayed in the candidate display home page. Therefore, the display strategy of the candidate item display can be switched from the first display strategy to the second display strategy, and the candidate items corresponding to the character string are displayed according to the second display strategy.
For example, assume that the first threshold is 3, and the character string input by the user is a pinyin string "shengrikuaile", and the number of candidate items corresponding to the pinyin string "shengrikuaile" is 3. Since the candidate words displayed on the candidate display top page may be determined to be "happy birthday" and "happy birthday o" according to the first display policy, that is, the number of the candidate items displayed on the candidate display top page under the first display policy is 2. That is, the number of candidate items corresponding to the pinyin string "shengrikuaile" is greater than the number of candidate items displayed on the candidate item display top page according to the first display policy, so that it can be determined whether the number of candidate items displayed on the candidate item display top page is less than the second threshold. Because the number 2 of the candidate items displayed on the candidate item display home page is smaller than the first threshold value 3, it can be determined that the preset condition is satisfied, the display strategy displayed by the candidate items can be switched from the first display strategy to the second display strategy, and the three candidate items corresponding to the pinyin string "shengrikuaile" are displayed according to the second display strategy, so that the number of the candidate items corresponding to the character string "shengrikuaile" displayed on the candidate item display home page under the second display strategy is more than that of the candidate items displayed on the first display strategy.
The third mode is as follows: and N candidate items in the candidate item presentation first page have a public part according to the first presentation strategy.
It should be noted that, when multiple candidate items corresponding to the input character string are displayed according to the first display policy, if N candidate items displayed in the candidate item display top page have a common part (N is a positive integer greater than 1), it is described that the candidate items displayed in the candidate item display top page have repeated contents. The common part of the candidates may be understood as the same character or character string that at least two candidates have, for example, the common part of the candidate "no eat" and the candidate "no pubic" is the character "no". Because a plurality of public parts in the candidate item display home page under the first display strategy repeatedly occupy the display area of the candidate item display home page, the number of the candidate items displayed by the candidate item display home page is reduced, the possibility that the candidate items which a user actually wants to go to the screen appear in the candidate item display home page is greatly reduced, and the user needs to turn the page of the candidate item display page to find the candidate items which the user actually wants to go to the screen.
In this embodiment, after determining the candidate items corresponding to the character string, it may be determined that the candidate items are displayed on the first page when the candidate items are displayed according to the first display policy. Then, it may be determined whether the candidate item presented on the candidate item presentation home page has a common part; if, for example, all the candidates in the candidate item presentation page have a common part, or at least two candidates in the candidate item presentation page have a common part, it may be determined that a condition is satisfied, that is, it may be explicitly required that more candidates can be presented in the candidate item presentation top page. Therefore, the display strategy of the candidate item display can be switched from the first display strategy to the second display strategy, and the candidate items corresponding to the character string are displayed according to the second display strategy.
For example, it is assumed that the character string input by the user is the pinyin string "nislashi", and when a plurality of candidates corresponding to the pinyin string "nislashi" are displayed according to the first display policy, the candidates displayed on the candidate display top page include "when you are", "when you are back". When determining that a plurality of candidate items corresponding to the pinyin string "nisshashi" are displayed according to the first display policy, after the candidate items are displayed on the top page, it may be determined whether the candidate items displayed on the top page of the candidate item display have a public portion. Because this candidate item demonstrates the candidate item "when you were demonstrated" and "when you were back" have public part "when you were", consequently, can confirm to satisfy the preset condition to can show the show strategy that the candidate item demonstrates from first show strategy switch to this second show strategy, and show a plurality of candidate items that this pinyin string "nisshashi" corresponds according to this second show strategy, show more for first show strategy with the candidate item quantity that the character string "nisshashi" that the candidate item demonstrates the first page of this second show strategy corresponds.
After the preset conditions in the embodiment of the present application are introduced, how to present more candidates in the candidate presenting top page will be described next.
The embodiment of the application provides various ways of presenting more candidates in the candidate presenting home page (i.e. providing various second presenting strategies), for example, the word size of the candidate in the candidate presenting page can be reduced, the range of the presenting area of the candidate presenting page can be expanded, only one common part of the candidate can be presented in the candidate presenting page, and the like. The following will be described in detail with respect to several implementations thereof:
the first mode is as follows: and displaying the candidate items by using the target word size in the candidate item display home page.
For convenience of description, the word size of the candidate item displayed on the candidate item display top page under the second display policy may be referred to as a target word size, and the target word size may be smaller than the word size of the candidate item displayed on the candidate item display top page under the first display policy.
Next, an example will be described with reference to fig. 3. It is assumed that the character string input by the user is a pinyin string "shengrikuaile", and the second presentation strategy is to present the candidate items with the target font size as the number five in the candidate item presentation top page. As shown in fig. 3(a), the candidates shown in the first showing strategy top page include "happy birthday" and "happy birthday", and the word sizes of the two candidates are four. When a preset condition is met, the presentation policy is switched from the first presentation policy to a second presentation policy, as shown in fig. 3(b), the candidate items presented on the candidate item presentation top page under the second presentation policy may include "happy birthday", "happy birthday o", and "fast birthday hah", and the word numbers of the three candidate items are target word numbers, that is, number five. As can be seen, the number of candidate items corresponding to the character string "shengrikuaile" displayed on the first page of the candidate item display under the second display policy is more than that of the candidate items displayed under the first display policy.
In addition, after the user turns the page of the candidate item display home page, the candidate items can be displayed with the target word size or with the default word size in the candidate item display page after the page is turned, wherein the default word size can be understood as the word size of the candidate items displayed in the candidate item display page under the first display policy. It should be noted that, in this embodiment, no limitation is made on the word size of the candidate displayed on the candidate display page after page turning.
The second mode is as follows: and taking the target display area as a display area of the candidate item display home page to display the candidate items.
For convenience of description, the presentation area of the candidate presentation top page under the second presentation policy may be referred to as a target presentation area. Moreover, the range of the target presentation area may be larger than the range of the presentation area of the candidate presentation top page under the first presentation policy, for example, the presentation area of the candidate presentation top page under the first presentation policy is a line of candidate presentation areas, and the target presentation area may be a plurality of lines of candidate presentation areas.
Next, an example will be described with reference to fig. 4. It is assumed that the character string input by the user is a pinyin string "bushi", and the second presentation strategy is to present the candidate items by taking a target presentation area as a presentation area of the candidate item presentation top page, wherein the target presentation area is two lines of candidate item presentation areas. As shown in fig. 4(a), the presentation area of the candidate presentation top page under the first presentation strategy is a line of candidate presentation areas, wherein the candidates presented on the candidate presentation top page include "not", "uncomfortable", "not trying", "from time to time" and "unknown". When a preset condition is met, switching the presentation strategy from the first presentation strategy to a second presentation strategy, as shown in fig. 4(b), the target presentation area of the candidate presentation top page under the second presentation strategy is two rows of candidate presentation areas, wherein the candidates presented by the candidate presentation top page may include "not", "not comfortable", "not trying", "sometimes", "not knowing", "not losing", "not wetting", "not making", "distributing", and "not real". As can be seen, the number of candidate items corresponding to the character string "bushi" displayed on the first page of the candidate item display under the second display policy is more than that of the candidate items displayed under the first display policy.
In addition, after the user turns the page of the candidate item display home page, in the turned candidate item display page, the target display area may be used as the display area of the turned candidate item display page to display the candidate item, or the display area of the candidate item display page under the first display policy may be used as the display area of the turned candidate item display page to display the candidate item. It should be noted that, in this embodiment, no limitation is made on the display area of the candidate display page after page turning.
The third mode is as follows: and determining a common part of the N candidates shown on the candidate showing top page according to the first showing strategy, and showing one common part and non-common parts of the M candidates with the common part in the candidate showing top page.
Wherein M is greater than or equal to N. It should be noted that, for convenience of description, a character string other than the common part in the candidates having the common part may be referred to as a non-common part. For example, the common part of the candidate "not eat" and the candidate "not pubic" is the character "not", the non-common part of the candidate "not eat" is the character "eat", and the non-common part of the candidate "not pubic" is the character "pubic".
As an example, in the candidate item presentation top page under the second presentation strategy, a non-common part of each of a plurality of candidate items having a common part may be provided with a specific symbol, wherein for any one of the plurality of candidate items, the specific symbol provided by the non-common part of one candidate item may be used to identify a positional relationship between the common part and the non-common part in the candidate item. It should be noted that, in a possible implementation manner, the position relationship between the specific symbol and the non-common part of the candidate may embody the position relationship between the common part of the candidate and the non-common part of the candidate. For example, when the common part is a prefix of a candidate, i.e. the common part of the candidate precedes the non-common part of the candidate, then in the top page of the presentation of the candidate under the second presentation strategy, the candidate may be represented by presenting a specific symbol before the non-common part of the candidate; for another example, when the common part is a suffix of a candidate, i.e. the common part of the candidate is behind the non-common part of the candidate, then in the first page of presentation of candidates under the second presentation strategy, the candidate may be represented by presenting a specific symbol behind the non-common part of the candidate; for another example, when the common part is the middle part of a candidate, i.e. the common part of the candidate is among the non-common parts of the candidate, then in the top page of the presentation of candidates under the second presentation strategy, the candidate may be represented by presenting a specific symbol among the non-common parts of the candidate. Wherein, in one possible implementation, the number of characters of the specific symbol may be smaller than the number of characters of the common portion.
Next, an example will be described with reference to fig. 5. Assuming that the character string input by the user is a pinyin string "nisshash", and the second presentation strategy is for the pinyin string "nisshash", determining a common part of N candidates presented on the candidate presentation top page according to the first presentation strategy, and presenting one common part and respective non-common parts of M candidates having the common part in the candidate presentation top page, wherein the respective non-common parts of the M candidates are each set with a specific symbol "". As shown in fig. 5(a), the candidates displayed on the first display strategy top page include "what time" and "what time back". When a preset condition is satisfied, the exhibition policy may be switched from the first exhibition policy to a second exhibition policy, specifically, as shown in fig. 5(b), under the second exhibition policy, a common part "what time" may be included in the candidate exhibition first page, and a plurality of candidates (i.e., "come back", "cometo and" comehome ") composed of a specific symbol" it "and a non-common part of each candidate, respectively. As can be seen, the number of candidate items corresponding to the character string "nissharh" displayed on the top page of the candidate item display under the second display policy is more than that of the candidate item display under the first display policy. It should be noted that, after the user selects any one candidate item consisting of the specific symbol "and the non-public part for screen-up, the form shown by the candidate item after screen-up in the terminal may be formed by the public part corresponding to the specific symbol" and the non-public part corresponding to the candidate item; suppose that the user selects a candidate "wonder" on-screen, then this candidate "wonder" can be shown as "what you are when" after on-screen in the terminal.
It should be noted that the above three second display strategies may be executed independently, or may be executed in combination with any of the above manners.
It is emphasized that in one implementation, if the preset condition includes that N candidates among the candidates shown in the candidate showing top page have a common part, the second showing strategy includes showing one common part and non-common parts of each of the M candidates having the common part in the candidate showing top page.
In addition, after the user turns the page of the candidate item presentation home page, if N candidate items presented on the turned candidate item presentation page have a common part, one common part and non-common parts of M candidate items having the common part may be presented on the turned candidate item presentation page, where M is greater than or equal to N. For a specific implementation manner, reference may be made to the third manner for displaying more candidates in the candidate displaying home page, which is not described herein again.
Referring to fig. 6, a candidate item presentation apparatus in an embodiment of the present application is shown, the apparatus including: a determining unit 601, a switching unit 602 and a presenting unit 603;
the determining unit 601 is configured to determine a plurality of corresponding candidates according to the acquired character string;
the switching unit 602 is configured to switch the display policy from a first display policy to a second display policy when a preset condition is met; the number of the candidate items displayed on the candidate item display front page according to the second display strategy is larger than that of the candidate items displayed on the candidate item display front page according to the first display strategy;
the presenting unit 603 is configured to present the plurality of candidate items according to the second presentation policy.
Optionally, the preset condition includes that a display policy of the candidate items is set as the second display policy.
Optionally, the preset condition includes any one or more of the following combinations:
the number of candidates of the plurality of candidates is greater than a first threshold;
the number of the candidate items displayed on the candidate item display home page is smaller than a second threshold value according to the first display strategy;
and N candidates in the candidates displayed on the candidate display home page have a common part according to the first display strategy, wherein N is a positive integer greater than 1.
Optionally, the second display strategy includes any one or more of the following combinations:
displaying the candidate items in the candidate item display home page by using the target word size; the target word size is smaller than the word size of the candidate item displayed on the home page of the candidate item display under the first display strategy;
taking the target display area as a display area of the candidate item display home page to display the candidate item; the range of the target display area is larger than the range of the display area of the candidate item display home page under the first display strategy;
and determining a common part of the N candidates shown on the candidate showing top page according to the first showing strategy, and showing one common part and non-common parts of the M candidates with the common part in the candidate showing top page, wherein M is larger than or equal to N.
Optionally, if the preset condition includes that N candidates among the candidates shown in the candidate showing top page have a common part, the second showing policy includes showing one common part and non-common parts of each of the M candidates having the common part in the candidate showing top page.
Optionally, in the candidate item presentation top page, a specific symbol is set in a non-public part of each of the M candidate items; the specific symbol set by the non-public part of one candidate item is used for identifying the position relation of the public part and the non-public part in the candidate item.
Optionally, the number of the candidates of the plurality of candidates is greater than the number of candidates shown on the top page of the candidate display according to the first display policy.
Referring to fig. 7, the candidate presentation apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 706, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 can include a multimedia module to facilitate interaction between the multimedia component 706 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the device 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 706 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 706 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of apparatus 700, sensor assembly 714 may also detect a change in position of apparatus 700 or a component of apparatus 700, the presence or absence of user contact with apparatus 700, orientation or acceleration/deceleration of apparatus 700, and a change in temperature of apparatus 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
The embodiment of the application provides candidate item display equipment. The apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
determining a plurality of corresponding candidate items according to the acquired character strings;
when a preset condition is met, switching the display strategy from a first display strategy to a second display strategy; the number of the candidate items displayed on the candidate item display front page according to the second display strategy is larger than that of the candidate items displayed on the candidate item display front page according to the first display strategy;
and displaying the candidate items according to the second display strategy.
Optionally, the preset condition includes that a display policy of the candidate items is set as the second display policy.
Optionally, the preset condition includes any one or more of the following combinations:
the number of candidates of the plurality of candidates is greater than a first threshold;
the number of the candidate items displayed on the candidate item display home page is smaller than a second threshold value according to the first display strategy;
and N candidates in the candidates displayed on the candidate display home page have a common part according to the first display strategy, wherein N is a positive integer greater than 1.
Optionally, the second display strategy includes any one or more of the following combinations:
displaying the candidate items in the candidate item display home page by using the target word size; the target word size is smaller than the word size of the candidate item displayed on the home page of the candidate item display under the first display strategy;
taking the target display area as a display area of the candidate item display home page to display the candidate item; the range of the target display area is larger than the range of the display area of the candidate item display home page under the first display strategy;
and determining a common part of the N candidates shown on the candidate showing top page according to the first showing strategy, and showing one common part and non-common parts of the M candidates with the common part in the candidate showing top page, wherein M is larger than or equal to N.
Optionally, if the preset condition includes that N candidates among the candidates shown in the candidate showing top page have a common part, the second showing policy includes showing one common part and non-common parts of each of the M candidates having the common part in the candidate showing top page.
Optionally, in the candidate item presentation top page, a specific symbol is set in a non-public part of each of the M candidate items; the specific symbol set by the non-public part of one candidate item is used for identifying the position relation of the public part and the non-public part in the candidate item.
Optionally, the number of the candidates of the plurality of candidates is greater than the number of candidates shown on the top page of the candidate display according to the first display policy.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, such as the memory 704 including instructions executable by the processor 720 of the device 700 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of candidate presentation, the method comprising:
determining a plurality of corresponding candidate items according to the acquired character strings;
when a preset condition is met, switching the display strategy from a first display strategy to a second display strategy; the number of the candidate items displayed on the candidate item display front page according to the second display strategy is larger than that of the candidate items displayed on the candidate item display front page according to the first display strategy;
and displaying the candidate items according to the second display strategy.
Optionally, the preset condition includes that a display policy of the candidate items is set as the second display policy.
Optionally, the preset condition includes any one or more of the following combinations:
the number of candidates of the plurality of candidates is greater than a first threshold;
the number of the candidate items displayed on the candidate item display home page is smaller than a second threshold value according to the first display strategy;
and N candidates in the candidates displayed on the candidate display home page have a common part according to the first display strategy, wherein N is a positive integer greater than 1.
Optionally, the second display strategy includes any one or more of the following combinations:
displaying the candidate items in the candidate item display home page by using the target word size; the target word size is smaller than the word size of the candidate item displayed on the home page of the candidate item display under the first display strategy;
taking the target display area as a display area of the candidate item display home page to display the candidate item; the range of the target display area is larger than the range of the display area of the candidate item display home page under the first display strategy;
and determining a common part of the N candidates shown on the candidate showing top page according to the first showing strategy, and showing one common part and non-common parts of the M candidates with the common part in the candidate showing top page, wherein M is larger than or equal to N.
Optionally, if the preset condition includes that N candidates among the candidates shown in the candidate showing top page have a common part, the second showing policy includes showing one common part and non-common parts of each of the M candidates having the common part in the candidate showing top page.
Optionally, in the candidate item presentation top page, a specific symbol is set in a non-public part of each of the M candidate items; the specific symbol set by the non-public part of one candidate item is used for identifying the position relation of the public part and the non-public part in the candidate item.
Optionally, the number of the candidates of the plurality of candidates is greater than the number of candidates shown on the top page of the candidate display according to the first display policy.
Fig. 8 is a schematic structural diagram of a server in the embodiment of the present application. The server 800, which may vary significantly depending on configuration or performance, may include one or more Central Processing Units (CPUs) 822 (e.g., one or more processors) and memory 832, one or more storage media 830 (e.g., one or more mass storage devices) storing applications 842 or data 844. Memory 832 and storage medium 830 may be, among other things, transient or persistent storage. The program stored in the storage medium 830 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, a central processor 822 may be provided in communication with the storage medium 830 for executing a series of instruction operations in the storage medium 830 on the server 800.
The server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input-output interfaces 858, one or more keyboards 856, and/or one or more operating systems 841, such as Windows Server, Mac OS XTM, UnixTM, Linux, FreeBSDTM, etc.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium may be at least one of the following media: various media that can store program codes, such as read-only memory (ROM), RAM, magnetic disk, or optical disk.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A candidate item presentation method, the method comprising:
determining a plurality of corresponding candidate items according to the acquired character strings;
when a preset condition is met, switching the display strategy from a first display strategy to a second display strategy; the number of the candidate items displayed on the candidate item display front page according to the second display strategy is larger than that of the candidate items displayed on the candidate item display front page according to the first display strategy;
and displaying the candidate items according to the second display strategy.
2. The method of claim 1, wherein the preset condition comprises setting a presentation strategy for candidate presentation as the second presentation strategy.
3. The method according to claim 1, wherein the preset condition comprises any one or more of the following combinations:
the number of candidates of the plurality of candidates is greater than a first threshold;
the number of the candidate items displayed on the candidate item display home page is smaller than a second threshold value according to the first display strategy;
and N candidates in the candidates displayed on the candidate display home page have a common part according to the first display strategy, wherein N is a positive integer greater than 1.
4. The method according to any one of claims 1 to 3, wherein the second presentation strategy comprises any one or more of the following:
displaying the candidate items in the candidate item display home page by using the target word size; the target word size is smaller than the word size of the candidate item displayed on the home page of the candidate item display under the first display strategy;
taking the target display area as a display area of the candidate item display home page to display the candidate item; the range of the target display area is larger than the range of the display area of the candidate item display home page under the first display strategy;
and determining a common part of the N candidates shown on the candidate showing top page according to the first showing strategy, and showing one common part and non-common parts of the M candidates with the common part in the candidate showing top page, wherein M is larger than or equal to N.
5. The method of claim 4, wherein if said predetermined condition includes that N candidates among the candidates shown in said candidate showing top page have a common part, said second showing strategy includes showing one said common part and non-common parts of each of the M candidates having said common part in said candidate showing top page.
6. The method of claim 4, wherein in said candidate presentation top page, a non-common portion of each of said M candidates is provided with a specific symbol; the specific symbol set by the non-public part of one candidate item is used for identifying the position relation of the public part and the non-public part in the candidate item.
7. The method of any of claims 1 to 3, wherein the number of candidates of said plurality of candidates is larger than the number of candidates presented on a candidate presentation top page according to said first presentation strategy.
8. A candidate presentation apparatus, the apparatus comprising: the device comprises a determining unit, a switching unit and a display unit;
the determining unit is used for determining a plurality of corresponding candidate items according to the acquired character strings;
the switching unit is used for switching the display strategy from a first display strategy to a second display strategy when a preset condition is met; the number of the candidate items displayed on the candidate item display front page according to the second display strategy is larger than that of the candidate items displayed on the candidate item display front page according to the first display strategy;
the display unit is used for displaying the candidate items according to the second display strategy.
9. A candidate item presentation apparatus comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs being configured to be executed by the one or more processors comprises means for performing the candidate item presentation method of any one of claims 1 to 7.
10. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the candidate presentation method of any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810609622.2A CN110597400A (en) | 2018-06-13 | 2018-06-13 | Candidate item display method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810609622.2A CN110597400A (en) | 2018-06-13 | 2018-06-13 | Candidate item display method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110597400A true CN110597400A (en) | 2019-12-20 |
Family
ID=68849138
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810609622.2A Pending CN110597400A (en) | 2018-06-13 | 2018-06-13 | Candidate item display method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110597400A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101071338A (en) * | 2007-02-07 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Word input method and system |
| CN101345949A (en) * | 2007-07-09 | 2009-01-14 | 精工爱普生株式会社 | Character input device and its display control method, with printing device |
| CN102708774A (en) * | 2012-04-19 | 2012-10-03 | 广东威创视讯科技股份有限公司 | Display method of character strings and system thereof |
| CN103995881A (en) * | 2014-05-28 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Method and device for showing search results |
| CN104951099A (en) * | 2015-06-16 | 2015-09-30 | 北京奇虎科技有限公司 | Method and device for showing candidate items based on input method |
-
2018
- 2018-06-13 CN CN201810609622.2A patent/CN110597400A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101071338A (en) * | 2007-02-07 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Word input method and system |
| CN101345949A (en) * | 2007-07-09 | 2009-01-14 | 精工爱普生株式会社 | Character input device and its display control method, with printing device |
| CN102708774A (en) * | 2012-04-19 | 2012-10-03 | 广东威创视讯科技股份有限公司 | Display method of character strings and system thereof |
| CN103995881A (en) * | 2014-05-28 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Method and device for showing search results |
| CN104951099A (en) * | 2015-06-16 | 2015-09-30 | 北京奇虎科技有限公司 | Method and device for showing candidate items based on input method |
Non-Patent Citations (1)
| Title |
|---|
| EXCEL HOME: "单元格里的文字换行", pages 1 - 3, Retrieved from the Internet <URL:https://www.excelhome.net/130.html> * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10976887B2 (en) | Method and apparatus for split-window display | |
| US10296201B2 (en) | Method and apparatus for text selection | |
| US11119651B2 (en) | Method for displaying multi-task management interface, device, terminal and storage medium | |
| CN107688399B (en) | Input method and device and input device | |
| US20180039403A1 (en) | Terminal control method, terminal, and storage medium | |
| US9959487B2 (en) | Method and device for adding font | |
| US20220129151A1 (en) | Interface display method, device and storage medium | |
| CN108536653B (en) | Input method, input device and input device | |
| CN107977089B (en) | Input method and device and input device | |
| CN107943317B (en) | Input method and device | |
| CN112068764B (en) | Language switching method and device for language switching | |
| CN111596832B (en) | Page switching method and device | |
| CN108628461B (en) | Input method and device and method and device for updating word stock | |
| CN111092971A (en) | Display method and device for displaying | |
| CN112486362A (en) | Font setting method and device for setting fonts | |
| CN113641253B (en) | Method, device and medium for screening candidate items | |
| CN109144287B (en) | Method and device for setting input method interface | |
| CN110780749A (en) | Character string error correction method and device | |
| CN110580126B (en) | Virtual keyboard and input method based on virtual keyboard | |
| CN109388328B (en) | Input method, device and medium | |
| CN110597400A (en) | Candidate item display method and device | |
| CN112948422A (en) | Contact person searching method and device and electronic equipment | |
| CN108958504B (en) | Candidate word screen-on method and device and candidate word screen-on device | |
| CN112148132A (en) | Information setting method and device and electronic equipment | |
| CN111258691A (en) | Input method interface processing method, device and medium |
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 |