CN108536653B - Input method, input device and input device - Google Patents

Input method, input device and input device Download PDF

Info

Publication number
CN108536653B
CN108536653B CN201710125042.1A CN201710125042A CN108536653B CN 108536653 B CN108536653 B CN 108536653B CN 201710125042 A CN201710125042 A CN 201710125042A CN 108536653 B CN108536653 B CN 108536653B
Authority
CN
China
Prior art keywords
display area
candidate item
size
candidate
font
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.)
Active
Application number
CN201710125042.1A
Other languages
Chinese (zh)
Other versions
CN108536653A (en
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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201710125042.1A priority Critical patent/CN108536653B/en
Publication of CN108536653A publication Critical patent/CN108536653A/en
Application granted granted Critical
Publication of CN108536653B publication Critical patent/CN108536653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography

Abstract

The embodiment of the invention provides an input method, an input device and a device for inputting, wherein the method specifically comprises the following steps: acquiring a candidate item corresponding to an input string input by a user; determining the size of a display area corresponding to the candidate item and/or the size of a font corresponding to the candidate item; the size of the first display area corresponding to the first candidate item is larger than that of the second display area corresponding to the non-first candidate item, the size of the first display area corresponding to the first candidate item is matched with the size of the current screen, and/or the size of the font corresponding to the first candidate item is determined based on the number of characters corresponding to the first candidate item, and/or the size of the font corresponding to the candidate item is determined based on the quality score of the candidate item; and displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item so that the user triggers the corresponding candidate item through the display area. The embodiment of the invention can reduce the misoperation rate of the candidate items and improve the input efficiency.

Description

Input method, device and device for input
Technical Field
The invention relates to the technical field of input methods, in particular to an input method, an input device and a device for inputting.
Background
For users in chinese, japanese, korean, etc., it is generally necessary to interact with a computer through an input method program. For example, a user may type an input string through a keyboard, and then the input string is converted into a candidate item of a corresponding language and displayed by an input method program according to a preset standard mapping rule, so that the candidate item selected by the user is displayed on a screen.
Referring to fig. 1, a schematic diagram of a prior art method for presenting candidate items on a smart terminal is shown, wherein for an input string "NiHao", options of "hello", "dare", "hello", "do", "shout", and "shout" can be presented in a candidate column of an input method program for a user to select. As shown in fig. 1, each candidate item may correspond to a presentation area, and a user may trigger the presentation area corresponding to a desired candidate item to implement screen-on of the corresponding candidate item.
Disclosure of Invention
The embodiment of the invention provides an input method, an input device and a device for inputting, which can reduce the difficulty of selecting a required candidate item from a plurality of candidates by a user, further reduce the misoperation rate of the candidate item and improve the input efficiency.
In order to solve the above problems, the present invention discloses an input method, comprising:
acquiring a candidate item corresponding to an input string input by a user;
determining the size of a display area corresponding to the candidate item and/or the size of a font corresponding to the candidate item; the candidate items comprise first candidate items and non-first candidate items, the size of a first display area corresponding to the first candidate items is larger than the size of a second display area corresponding to the non-first candidate items, the size of the first display area corresponding to the first candidate items is matched with the size of a current screen, and/or the size of a font corresponding to the first candidate items is determined based on the number of characters corresponding to the first candidate items, and/or the size of a font corresponding to the candidate items is determined based on the quality scores of the candidate items;
and displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item so that the user triggers the corresponding candidate item through the display area.
Optionally, the current screen size includes a current screen width, the display area is located in an input interface, the input interface is provided with at least two types of key areas in a width direction, and the method further includes: determining the widths of the at least two types of key areas according to the width proportion of the at least two types of key areas and the current screen width; and determining the width of the first display area according to the width of the key area corresponding to the first display area.
Optionally, the method further comprises: and determining the width of the first display area according to the width ratio of the first display area to the second display area and the current screen width.
Optionally, the method further comprises: receiving a moving operation of a user on the boundary of the first display area; and adjusting the size of the first display area according to the moving operation.
Optionally, the determining a font size corresponding to the candidate item includes: and acquiring the maximum word size from the word size set as the current word size corresponding to the first candidate item.
Optionally, the determining a font size corresponding to the candidate item further includes: and if the number of the characters corresponding to the first candidate item of the current font size exceeds the capacity of the first display area, acquiring the maximum font size smaller than the current font size from the font size set as the current font size corresponding to the first candidate item.
Optionally, the displaying the corresponding candidate item in the presentation area according to the font size corresponding to the candidate item includes: if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area, replacing the front part of the characters included by the first candidate item with a first preset symbol; and/or if the number of characters corresponding to the first candidate item exceeds the capacity of the first display area and a user preset operation is received, replacing the rear part of characters included by the first candidate item with a second preset symbol.
Optionally, the font sizes corresponding to the candidate items are sequentially decreased from high to low according to the quality score.
Optionally, the presentation area is located in an input interface, and the input interface includes: a first interface layer and a second interface layer; the first interface layer is used for bearing the first display area, and the second interface layer is used for bearing the key area and the second display area.
In yet another aspect, the present invention discloses an input device, comprising:
the candidate item acquisition module is used for acquiring a candidate item corresponding to an input string input by a user;
the determining module is used for determining the size of the display area corresponding to the candidate item and/or the font size corresponding to the candidate item; the candidate items comprise first candidate items and non-first candidate items, the size of a first display area corresponding to the first candidate items is larger than the size of a second display area corresponding to the non-first candidate items, the size of the first display area corresponding to the first candidate items is matched with the size of a current screen, and/or the size of a font corresponding to the first candidate items is determined based on the number of characters corresponding to the first candidate items, and/or the size of the font corresponding to the candidate items is determined based on the quality scores of the candidate items; and
and the candidate item display module is used for displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item so as to enable the user to trigger the corresponding candidate item through the display area.
Optionally, the current screen size includes a current screen width, the display area is located in an input interface, the input interface is provided with at least two types of key areas in a width direction, and the apparatus further includes:
a first width determining module, configured to determine widths of the at least two types of key regions according to a width ratio of the at least two types of key regions and the current screen width;
and the second width determining module is used for determining the width of the first display area according to the width of the key area corresponding to the first display area.
Optionally, the apparatus further comprises:
and the third width determining module is used for determining the width of the first display area according to the width proportion of the first display area and the second display area and the current screen width.
Optionally, the apparatus further comprises:
the receiving module is used for receiving the moving operation of a user on the boundary of the first display area;
and the adjusting module is used for adjusting the size of the first display area according to the moving operation.
Optionally, the determining module includes:
and the first word size obtaining submodule is used for obtaining the maximum word size from the word size set as the current word size corresponding to the first candidate item.
Optionally, the determining module further comprises:
and the second font size obtaining sub-module is used for obtaining the maximum font size smaller than the current font size from the font size set when the number of the characters corresponding to the first candidate item of the current font size exceeds the capacity of the first display area, and the maximum font size is used as the current font size corresponding to the first candidate item.
Optionally, the candidate item display module includes:
the first display processing submodule is used for replacing the front part of characters included by the first candidate items with a first preset symbol if the number of the characters corresponding to the first candidate items exceeds the capacity of the first display area; and/or
And the second display processing sub-module is used for replacing the rear part of characters included by the first candidate item with a second preset symbol if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area and a user preset operation is received.
Optionally, the font sizes corresponding to the candidate items are sequentially decreased from high to low according to the quality score.
Optionally, the display area is located in an input interface, and the input interface includes: a first interface layer and a second interface layer; the first interface layer is used for bearing the first display area, and the second interface layer is used for bearing the key area and the second display area.
In yet another aspect, an apparatus for input is disclosed that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to include instructions for:
according to an input string input by a user, acquiring a candidate item corresponding to the input string;
determining the size of a display area corresponding to the candidate item and/or the size of a font corresponding to the candidate item; the candidate items comprise first candidate items and non-first candidate items, the size of a first display area corresponding to the first candidate items is larger than the size of a second display area corresponding to the non-first candidate items, the size of the first display area corresponding to the first candidate items is matched with the size of a current screen, and/or the size of a font corresponding to the first candidate items is determined based on the number of characters corresponding to the first candidate items, and/or the size of the font corresponding to the candidate items is determined based on the quality scores of the candidate items;
and displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item so that the user can trigger the corresponding candidate item through the display area.
The embodiment of the invention has the following advantages:
in the embodiment of the present invention, the size of the first presentation region corresponding to the first candidate item may be larger than the size of the second presentation region corresponding to the non-first candidate item, and the size of the first presentation region corresponding to the first candidate item may be adapted to the size of the current screen; and/or the font size corresponding to the first candidate item can be determined based on the number of characters corresponding to the first candidate item;
firstly, the ranking position of the candidate items is usually determined according to the quality scores of the candidate items, and the quality of the candidate items is often higher than that of the non-preferred items, so that the size of the first showing area corresponding to the candidate items is larger than that of the second showing area corresponding to the non-candidate items, and the candidate items with better quality can be operated by a user more easily, so that the difficulty of the user in selecting the required candidate items from a plurality of candidate items can be reduced, the misoperation rate of the candidate items can be reduced, the input efficiency can be improved, and the input experience of the user can be improved.
Moreover, with the continuous development of electronic technology, various types of intelligent terminals are increasing, and generally, hardware parameters (such as size, resolution, and the like) of screens of different intelligent terminals are different, which causes the first display area to present different display effects on screens of different sizes; in the embodiment of the present invention, the size of the first display area corresponding to the first candidate item may be adapted to the size of the current screen, so that the embodiment of the present invention may enable the first display area to present a good display effect on different screens, and enhance the adaptation between the first display area and the input interface where the first display area is located and the screen.
In addition, in the embodiment of the present invention, the font size corresponding to the first candidate item may be determined based on the number of characters corresponding to the first candidate item, so that the font size corresponding to the first candidate item may be dynamically determined according to the number of characters corresponding to the first candidate item, and therefore, the readability of the first candidate item may be improved, and the recognition degree of the first candidate item may be improved at the same time, so as to further reduce the difficulty of the user in selecting a desired candidate item from a large number of candidates, and further reduce the mishandling rate of the candidate item.
In addition, in the embodiment of the present invention, the font size corresponding to the candidate item may be determined based on the quality score of the candidate item, so that the embodiment of the present invention may improve the recognition degree of the candidate item with a higher quality score, further make the candidate item with a higher quality score easier to be selected by the user, reduce the mishandling rate, and improve the input experience of the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of a prior art method for showing candidates on an intelligent terminal;
FIG. 2 is a flow chart of the steps of one embodiment of an input method of the present invention;
FIG. 3 is a schematic diagram of an input interface of an embodiment of the invention;
FIG. 4 is a schematic view of another input interface of an embodiment of the present invention;
FIG. 5 is a schematic illustration of yet another input interface according to an embodiment of the invention;
FIGS. 6(a) and 6(b) are schematic diagrams of an input interface according to an embodiment of the present invention;
FIG. 7 is a schematic view of an input interface of an embodiment of the present invention;
FIG. 8 is a schematic view of another input interface of an embodiment of the present invention;
FIG. 9 is a schematic illustration of yet another input interface according to an embodiment of the invention;
FIG. 10 is a schematic view of an input interface of an embodiment of the present invention;
FIG. 11 is a schematic view of another input interface of an embodiment of the present invention;
FIG. 12 is a block diagram of an input device according to an embodiment of the present invention;
FIG. 13 is a block diagram of an apparatus 800 for input of the present invention; and
fig. 14 is a schematic diagram of a server in some embodiments of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
As shown in fig. 1, the existing scheme adopts a uniform-size presentation area and a uniform-size font for all candidate items, which increases the difficulty of a user in selecting a desired candidate item from a large number of candidate items, thereby increasing the false selection rate.
The embodiment of the invention provides an input scheme, which can acquire a candidate item corresponding to an input string input by a user according to the input string, determine the size of a display area corresponding to the candidate item and/or the font size corresponding to the candidate item, and further display the corresponding candidate item in the display area according to the font size corresponding to the candidate item so that the user triggers the corresponding candidate item through the display area; the candidate items may include a first candidate item (a candidate item ranked at the top) and a non-first candidate item (a candidate item ranked at the non-top), the size of the first presentation region corresponding to the first candidate item may be larger than the size of the second presentation region corresponding to the non-first candidate item, and the size of the first presentation region corresponding to the first candidate item may be adapted to the size of the current screen; and/or the font size corresponding to the first candidate item can be determined based on the number of characters corresponding to the first candidate item.
Firstly, because the ranking position of the candidate items is usually determined according to the quality scores of the candidate items, and the quality of the first candidate items is often higher than that of the non-first candidate items, the size of the first showing area corresponding to the first candidate items is larger than that of the second showing area corresponding to the non-first candidate items, so that the first candidate items with better quality can be operated by a user more easily, the difficulty of the user in selecting the required candidate items from a plurality of candidate items can be reduced, the misoperation rate of the candidate items can be reduced, and the input efficiency can be improved.
Moreover, with the continuous development of electronic technology, various types of intelligent terminals are increasing, and generally, hardware parameters (such as size, resolution, and the like) of screens of different intelligent terminals are different, which causes different display effects to be presented on different screens of the first presentation area; in the embodiment of the present invention, the size of the first display area corresponding to the first candidate item may be adapted to the size of the current screen, so that the embodiment of the present invention may enable the first display area to present a good display effect on screens of different sizes, and enhance the degree of adaptation between the first display area and the input interface where the first display area is located and the screen.
In addition, in the embodiment of the present invention, the font size corresponding to the first candidate item may be determined based on the number of characters corresponding to the first candidate item, so that the font size corresponding to the first candidate item may be dynamically determined according to the number of characters corresponding to the first candidate item, and therefore, the readability of the first candidate item may be improved, and meanwhile, the recognition degree of the first candidate item may be improved, so as to further reduce the difficulty of the user in selecting a desired candidate item from a plurality of candidates, and further, the mishandling rate of the candidate item may be reduced.
Method embodiment
Referring to fig. 2, a flowchart illustrating steps of an embodiment of an input method according to the present invention is shown, which may specifically include:
step 201, acquiring a candidate item corresponding to an input string input by a user;
step 202, determining the size of the display area corresponding to the candidate item and/or the font size corresponding to the candidate item; the candidate items comprise first candidate items and non-first candidate items, the size of the first display area corresponding to the first candidate items can be larger than the size of the second display area corresponding to the non-first candidate items, the size of the first display area corresponding to the first candidate items can be matched with the size of the current screen, and/or the size of the font corresponding to the first candidate items can be determined based on the number of characters corresponding to the first candidate items, and/or the size of the font corresponding to the candidate items can be determined based on the quality scores of the candidate items;
step 203, displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item, so that the user triggers the corresponding candidate item through the display area.
The embodiment of the invention can be applied to input method programs of various input modes such as keyboard symbols, voice, handwriting and the like, namely, a user can input characters by coding character strings (namely the input strings in the embodiment of the invention). In the field of input methods, for input method programs in, for example, chinese, japanese, korean, or other languages, an input string input by a user may be converted into a candidate in the corresponding language. In the following, the Chinese language is mainly used as an example for explanation, and other languages may be referred to each other. It is to be understood that the chinese input method may include, but is not limited to, a full pinyin, a simple pinyin, a stroke, a five-stroke, etc., and the embodiment of the present invention is not limited to a specific input method program corresponding to a certain language.
The input method program can be run on the intelligent terminal, and the intelligent terminal specifically includes but is not limited to: smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car-mounted computers, desktop computers, set-top boxes, smart televisions, wearable devices, and the like.
In practical applications, for the keyboard symbol input method, a user may input the input string through a physical keyboard or a virtual keyboard. For example, for a smart terminal with a touch screen, a virtual keyboard may be set in an input interface, so as to use input of an input string by triggering virtual keys included in the virtual keyboard. Optionally, examples of the virtual keyboard may include: a 9-key keyboard, a 26-key keyboard, etc. Moreover, it can be understood that, in addition to the virtual keys corresponding to the letters, the input interface may also be provided with symbol keys, numeric keys, and function keys such as a chinese-english switching key, or may also be provided with toolbar keys, and it can be understood that the specific keys included in the input interface are not limited in the embodiments of the present invention.
According to some embodiments, the input string may include, but is not limited to: a key symbol or a combination of a plurality of key symbols input by a user through a key. The key symbol may specifically include: pinyin, strokes, kana, etc.
In embodiments of the present invention, the candidate may be used to represent one or more characters corresponding to the input string to be selected by the user. The candidate items can be characters of languages such as Chinese characters, English characters, Japanese characters and the like, and the candidate entries can also be symbol combinations in the forms of characters, pictures and the like. The color text includes but is not limited to a drawing composed of lines, symbols and words, for example, examples of the color text may include: ": p ",": o ",": etc.
In practical application, the word stock can be searched according to the input string to obtain the corresponding candidate item. For example, the word stock may include: the embodiment of the invention provides a system word stock, a user word stock, a cell word stock, a cloud word stock and the like, and the specific acquisition mode of the candidate items is not limited.
In the embodiment of the present invention, the presentation region may be an operable region used for presenting the candidate items, where the operable region may mean that a user may perform an operation in the presentation region by means of touch, a mouse, and the like, so as to trigger the candidate items corresponding to the presentation region.
The embodiment of the invention enables the size of the first showing area corresponding to the first candidate item to be larger than the size of the second showing area corresponding to the non-first candidate item, and enables the first candidate item with better quality to be easier to be operated by a user, so that the difficulty of the user in selecting the required candidate item from a plurality of candidate items can be reduced, and the misoperation rate of the candidate items can be further reduced. In addition, the size of the first display area corresponding to the first candidate item in the embodiment of the present invention may be adapted to the size of the current screen, so that the embodiment of the present invention may enable the first display area to present a good display effect on screens of different sizes, and enhance the degree of adaptation between the first display area and the input interface where the first display area is located and the screen.
According to some embodiments, the embodiment of the invention may provide an input interface for a user to input an input string and/or select a candidate item corresponding to the input string through the input interface. According to some embodiments, the first presentation area may exist in the input interface when the input string exists and/or the input string does not exist. For example, the input interface may include: the first display area may coincide with a first area of the toolbar area, that is, the first display area and the first area of the toolbar area may correspond to the same area. Therefore, the embodiment of the present invention may acquire the size of the first presentation area in advance in a case where there is no input string. Similarly, the second presentation area and the non-head area of the toolbar area may correspond to the same area, so that the size of the second presentation area may be obtained in advance according to the width ratio of the first presentation area to the second presentation area in the absence of an input string. Thus, the process of determining the size of the presentation area corresponding to the candidate item may include: and establishing the association between the candidate item and the corresponding display area to obtain the size of the display area corresponding to the candidate item. It can be understood that the embodiment of the present invention does not limit the acquisition timing corresponding to the size of the acquisition presentation area.
The embodiment of the invention can provide the following technical scheme for acquiring the size of the display area:
technical solution 1
In technical solution 1, the current screen size may include a current screen width, the display area may be located in an input interface, the input interface may be provided with at least two types of key areas in a width direction, and the process of obtaining the size of the display area may include: determining the widths of the at least two types of key areas according to the width proportion of the at least two types of key areas and the current screen width; and determining the width of the first display area according to the width of the key area corresponding to the first display area.
Referring to fig. 3, a schematic diagram of an input interface according to an embodiment of the present invention is shown, where the input interface may display a first region 301 of a toolbar region in an enlarged manner, and after an input string of a user is obtained, the region 301 may serve as a first display region 301 to display first candidates; the input interface can be provided with at least two types of key areas in the width direction: a key region 302, a key region 303, and a key region 304, wherein the key region 303 may be used to display alphabetic keys and the number of key regions 303 may be 3. As can be seen, the top left vertex of the first presentation area 301 may be the top left vertex of the input interface, and the bottom right vertex of the first presentation area 301 may be the top right vertex of the "GHI" key. Moreover, the "chinese/english" key in fig. 3 can be used to realize the switching between the chinese input mode and the english input mode, and the width of the corresponding display area is large, which can reduce the difficulty for the user to select the "chinese/english" key from a plurality of keys.
The embodiment of the invention can determine the widths of the at least two types of key areas according to the width proportion of the at least two types of key areas and the width of the current screen. Assuming that the widths of the key region 302, the key region 303, and the key region 304 are A, B, C, the current screen width is W, and the interval between adjacent key regions is D, then a +3B + C +4D can be obtained as W, and assuming that the width ratios of the at least two types of key regions are: if a is equal to C and B is equal to 1.35A, then widths A, B and C of the at least two types of key regions may be calculated based on the current screen width W. It is understood that D, the width ratio of the at least two types of key regions can be determined by those skilled in the art according to the actual application requirement, and can also be set by the user.
Further, the width of the first display area may be determined according to the width of the key area corresponding to the first display area. Taking FIG. 3 as an example, the width X of the first display area 301 1 Can be expressed as: x 1 =A+B+D。
It can be understood that the process of determining the size of the display area corresponding to the candidate item based on the input interface shown in fig. 3 is only an example, and a person skilled in the art may determine, according to the actual application requirements, the size of the display area corresponding to the candidate item according to the width ratio of the at least two types of key areas included in the input interface and the current screen width for any input interface.
Technical solution 2
In technical solution 2, the current screen size includes a current screen width, and the process of obtaining the size of the display area may include: and determining the width of the first display area according to the width proportion of the first display area and the second display area and the current screen width.
Referring to fig. 4, a schematic diagram of another input interface according to an embodiment of the present invention is shown, where a candidate bar of the input interface may be provided with a first presentation area 401 and a second presentation area 402, and a person skilled in the art or a user may set a width ratio of the first presentation area to the second presentation area, and determine a width of the first presentation area according to the width ratio of the first presentation area to the second presentation area and the current screen width. Assuming that the width of the first display area is X 2 If the width of the second display area is Y, the current screen width is W, and the number of the second display areas is M, there may be X 2 The width of the first display region X can be obtained by adding M to W 2
It is to be understood that the process of determining the size of the presentation area corresponding to the candidate item based on the input interface shown in fig. 4 is only an example, and a person skilled in the art may determine the size of the presentation area corresponding to the candidate item according to the width ratio of the first presentation area and the second presentation area and the current screen width for any input interface according to the actual application requirements.
Technical solution 3
In claim 3, the process of obtaining the size of the display area may include: receiving a moving operation of a user on the boundary of the first display area; and adjusting the size of the first display area according to the moving operation. In this optional embodiment, the size of the first presentation area may be adjusted by the first presentation area boundary, which may be applicable to all intelligent terminals, and the user may implement the above-mentioned moving operation by using one finger, so that the operation difficulty and the operation amplitude of the size adjustment of the first presentation area may be greatly reduced.
Referring to fig. 5, a schematic diagram of another input interface according to an embodiment of the present invention is shown, where the input interface may include: the first presentation area 501, the first presentation area 501 may include: a first boundary (not shown in the figure) in the upper, lower, left, right, and the like directions, and/or a second boundary corresponding to a vertex, the user may perform extension or contraction in a certain direction with respect to the first presentation area 501 through the first boundary, and/or the user may perform overall zooming with respect to the first presentation area 501 through the second boundary.
It should be noted that, according to some embodiments, a person skilled in the art or a user may also set the height-width ratio of the first display area according to actual application requirements, so that the height of the first display area may be obtained by calculating the length-width ratio according to the width of the first display area, and thus, a first display area adapted to a current screen may be obtained for any current screen, so that the display effect of the first display area and its corresponding first candidate item may be improved.
In some embodiments of the present invention, the font size corresponding to the first candidate item may be determined based on the number of characters corresponding to the first candidate item, so that the font size corresponding to the first candidate item may be dynamically determined according to the number of characters corresponding to the first candidate item, thereby improving readability of the first candidate item and simultaneously improving recognition of the first candidate item, further reducing difficulty of a user in selecting a desired candidate item from a plurality of candidates, and further reducing an operation error rate of the candidate item.
In an optional embodiment of the present invention, the determining a font size corresponding to the candidate item may include: and acquiring the maximum word size from the word size set as the current word size corresponding to the first candidate item. Wherein the word size set can be set by a person skilled in the art or a user, for example, the word sizes in the word size set may include: for example, in the case of obtaining the first candidate item for the first time, the font size 30, the font size 20, the font size 10, the font size 5, the font size 4, and the like may obtain the maximum font size (for example, the font size 30) from the font size set as the current font size corresponding to the first candidate item, thereby increasing the recognition degree of the first candidate item.
In another optional embodiment of the present invention, the determining a font size corresponding to the candidate item may further include: and if the number of the characters corresponding to the first candidate item of the current font size exceeds the capacity of the first display area, acquiring the maximum font size smaller than the current font size from the font size set as the current font size corresponding to the first candidate item.
According to some embodiments, the capacity of the first presentation area may be the number of characters that the first presentation area is capable of carrying. For example, the capacity of the first presentation area may be expressed as: the line number threshold P is the number of characters Q displayed per line. The number of rows threshold P may be determined by those skilled in the art according to practical application requirements, for example, P may be a positive integer greater than 1; the number of characters Q displayed in each line may be determined by the effective area S1 of the first display region, the line number threshold P, and the single character area S2 of the current character size, for example, the effective area of the first display region may be the final area of the first display region minus the left and right inner side distances, Q ═ S1/(P × S2), and it is understood that the specific calculation manner of the number of characters Q displayed in each line in the embodiments of the present invention is not limited.
In the embodiment of the present invention, when the number of characters corresponding to the first candidate item of the current font size exceeds the capacity of the first presentation area, the maximum font size smaller than the current font size can be acquired from the font size set and used as the current font size corresponding to the first candidate item, so that the current font size corresponding to the first candidate item can be adapted to the number of characters corresponding to the first candidate item, and therefore, the optimal font size corresponding to the first candidate item and the capacity of the first presentation area can be realized. It is assumed that the word sizes in the set of word sizes may include: a font number 30, a font number 20, a font number 10, a font number 5, a font number 4, and the like, wherein the font number 20 can be obtained from the font number set as the current font number corresponding to the first candidate item when the number of characters corresponding to the first candidate item with the current font number 30 and the font number 30 exceeds the capacity of the first display area; further, when the current font size is the font size 20, and the number of characters corresponding to the first candidate item of the font size 20 exceeds the capacity of the first display area, the font size 10 may be obtained from the font size set as the current font size corresponding to the first candidate item, and so on until the current font size is the minimum font size in the font size set.
In yet another alternative embodiment of the present invention, the font size corresponding to the candidate item may be determined based on the quality score of the candidate item. The quality score can be used for representing the quality of the candidate item.
According to some embodiments, the font size of the first candidate item may be larger than the font size of the non-first candidate items, which may improve the recognition of the first candidate item. As shown in fig. 3, the font size of the first candidate "hello" is larger than the font size of the non-first candidates "hello", and so on.
According to some embodiments, the font sizes corresponding to the candidate items may be decreased in order from high to low according to the quality score; therefore, the embodiment of the invention can improve the identification degree of the candidate item with higher quality score, so that the candidate item with higher quality score is easier to be selected by the user, the misoperation rate is reduced, and the input experience of the user is improved. Referring to fig. 6(a) and fig. 6(b), schematic diagrams of an input interface according to an embodiment of the present invention are respectively shown, in which font sizes of the first candidate item "hello", the second candidate item "you meet", the third candidate item "you go", and the fourth candidate item "you and" are decreased. For example, the fonts of the first candidate, the second candidate, the third candidate, and the fourth candidate may be: font No. 30, font No. 20, font No. 10, and font No. 5.
According to some embodiments, the quality score may be determined by at least one of the characteristics of the term corresponding to the candidate item, the language model score, the lexicon source, and the like, for example, the higher the term frequency of the term corresponding to the candidate item is, the higher the corresponding quality score is; if the candidate item is higher than the language model score of the corresponding entry, the corresponding quality score is higher; for another example, the quality score corresponding to the entry in the user thesaurus is higher than the quality score corresponding to the entry in the system thesaurus, and the like.
According to some embodiments, the embodiments of the present invention may support a user to set the font size of the first candidate item. For example, a user may trigger a font size adjustment interface of the first candidate item by means of a preset shortcut key, a toolbar, and the like, and perform font size adjustment of the first candidate item through the font size adjustment interface.
In an optional embodiment of the present invention, the displaying manner adopted by displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item may include:
in the display mode 1, if the number of characters corresponding to the first candidate item exceeds the capacity of the first display area, replacing a front part of characters included by the first candidate item with a first preset symbol; and/or
And a display mode 2, if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area and a user preset operation is received, replacing the rear part of the characters included by the first candidate item with a second preset symbol.
The display mode 1 and the display mode 2 can be applied to the case where the first candidates are long or the number of characters is large.
In the display mode 1, when the number of characters corresponding to the first candidate item exceeds the capacity of the first display area, a front part of characters included in the first candidate item may be replaced with a first preset symbol, where the first preset symbol may be an ellipsis, and the like, and may be determined by a person skilled in the art according to actual application requirements. According to some embodiments, display mode 1 may include: and if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area and the current font size corresponding to the first candidate item is a preset minimum font size, replacing the front part of the characters included by the first candidate item with a first preset symbol. In practical application, when the number of characters corresponding to the first candidate item exceeds the capacity of the first display area, the current font size corresponding to the first candidate item may be reduced first until the current font size corresponding to the first candidate item is a preset minimum font size, so as to provide as many characters of the first candidate item to a user to a certain extent, and improve user experience. When the number of characters corresponding to the first candidate item exceeds the capacity of the first display area and the current font size corresponding to the first candidate item is a preset minimum font size, the front part of characters included in the first candidate item can be replaced by a first preset symbol.
In the display mode 2, when the number of characters corresponding to the first candidate item exceeds the capacity of the first display area and a preset operation of a user is received, the rear part of characters included in the first candidate item can be replaced by a second preset symbol; therefore, the display mode 2 may replace the rear part of the characters included in the first candidate item with a second preset symbol, and normally display the front part of the characters included in the first candidate item, where the second preset symbol may be an ellipsis, which may be determined by a person skilled in the art according to actual application requirements.
The user preset operation may include: a screening operation for a matching sequence corresponding to the input string, a browsing and editing operation for a matching sequence corresponding to the input string or the first candidate item (for example, an operation for viewing more characters in the first candidate item by moving left and right in a corresponding candidate area, or an editing operation for editing a matching sequence corresponding to the input string (for example, deleting, re-inputting, and the like)), and the like. These triggering operations may cause the first candidate item to include a change in the preceding character, and it is understood that the embodiment of the present invention is not limited to the specific user presetting operation.
In this embodiment of the present invention, the matching sequence corresponding to the input string may include: syllable sequence, shape code sequence, number sequence and symbol sequence. Specifically, the shape code sequence may include a Chinese wubi input method input sequence, a Korean input method input sequence, and the like; the syllable sequence can comprise an input sequence of a Chinese pinyin input method and an input sequence of a Japanese input method; the numerical sequence may correspond to a numerical language character; the sequence of symbols may correspond to a symbolic language character. According to some embodiments, in most pinyin input methods, the pinyin string is first parsed into pinyin syllables. There are about four hundred more syllables in chinese (without regard to tone). The pinyin strings are analyzed according to a certain rule to obtain a possible pinyin syllable sequence. For example, a user input of "fangan" would be resolved into two different syllable sequences: [ fan ] [ gan ] and [ fang ] [ an ]. However, many full pinyin input strings have only a unique way of parsing. For example, "buguo" may be resolved as [ bu ] [ guo ]. Further, most input methods also support simple spelling input, so that the user can also use the input string "bug" to analyze and obtain the syllable sequences [ bu ] [ guo ], [ bu ] [ gou ], [ bu ] [ gan ], and the like. More complicated cases may also include fuzzy sound, double spelling, etc., and the principle is similar, which is not described herein again.
Referring to fig. 7 and fig. 8, schematic diagrams of an input interface according to an embodiment of the present invention are respectively shown, and as shown in fig. 7, a display rule of a long first candidate may be: gradually reducing the font size according to the number of the characters, supporting folding line display (the longest 2 lines), hiding the excessive front part characters if two lines are exceeded, and printing ellipses on the excessive part; as shown in fig. 8, if syllable selection is performed one by one after a long sentence is input (i.e., "jin" is selected in the left side column in fig. 8), the front part character of the long sentence character string is normally displayed, and the ellipsis is displayed at the rear.
In an optional embodiment of the present invention, the presentation area may be located in an input interface, and the input interface may include: a first interface layer and a second interface layer; the first interface layer can be used for bearing the first display area, and the second interface layer can be used for bearing the key area and the second display area. Since the independent interface layer is arranged for the first display area, the characteristics of the first display area, such as the height-width ratio, can be realized, and the characteristics of the key area and the second display area can be realized.
In another optional embodiment of the present invention, the input interface may further include: a third interface layer, the third interface layer operable to carry a deployment region. For example, when a trigger operation for the third area in fig. 2 is received, the input interface shown in fig. 9 may be jumped to, and the input interface shown in fig. 9 may include: and setting the area so that the user can set the input interface.
It should be noted that the first display area of the embodiment of the present invention may be located in a left side, a right side, or a middle area of the input interface, so as to improve the operation convenience for a user holding a right handset, holding a left handset, or holding a both handset.
Referring to fig. 10 and fig. 11, respectively, schematic diagrams of an input interface according to an embodiment of the present invention are shown, where in the english input mode, the first display area may be placed in a middle area of the input interface (candidate bar); also, in fig. 10, the font of the first candidate item may be enlarged; in fig. 11, the fonts of the second candidate and the third candidate are reduced, and the fonts of the fourth candidate and the fifth candidate are further reduced, relative to the font of the first candidate. The user may set the number of candidates that the candidate bar may display.
In some embodiments of the present invention, when a first preset trigger operation of a user on an alphabetic key is received, a candidate character corresponding to the alphabetic key may be displayed, where the first preset trigger operation may be a trigger operation with a pressing force within a preset pressure range, such as a long-time pressing operation. For example, after receiving a first preset trigger operation for "wxyz" in fig. 2, corresponding candidate keys "W", "X", "Y", "Z", and the like may be displayed for the user to select.
In some embodiments of the present invention, if the contact name can be obtained from the address book of the intelligent terminal, the contact name is used as a first candidate item corresponding to the input string. For example, if the input string is "zhangsan", if "sheet " exists in the address book, the embodiment of the present invention may use "sheet " as the first candidate in the case that the user inputs or does not input "sheet ", so that the requirement of rapidly inputting the uncommon word "" may be met.
Further, after receiving the screen-up operation of the user on the contact name, the contact information corresponding to the contact name may be displayed in a way of associating candidates, including but not limited to: telephone number, mailbox and other information to realize the quick input of the contact information for the user. Or after receiving a second preset trigger operation of the user on the contact name, the contact name can be displayed as a search result corresponding to the search word and an operation interface (such as a sharing interface, a comment interface and the like) corresponding to the search word, so that the search result can be quickly operated.
To sum up, in the input method according to the embodiment of the present invention, the size of the first display area corresponding to the first candidate item may be larger than the size of the second display area corresponding to the non-first candidate item, and the size of the first display area corresponding to the first candidate item may be adapted to the current screen size; and/or the font size corresponding to the first candidate item can be determined based on the number of characters corresponding to the first candidate item.
Firstly, because the ranking position of the candidate items is usually determined according to the quality scores of the candidate items, and the quality of the first candidate items is often higher than that of the non-preferred items, the size of the first display area corresponding to the first candidate items is larger than that of the second display area corresponding to the non-first candidate items, so that the first candidate items with better quality can be operated by a user more easily, the difficulty of the user in selecting the required candidate items from a plurality of candidate items can be reduced, the misoperation rate of the candidate items can be further reduced, and the input efficiency is improved.
Moreover, with the continuous development of electronic technology, various types of intelligent terminals are increasing, and generally, hardware parameters (such as size, resolution, and the like) of screens of different intelligent terminals are different, which causes different display effects to be presented on different screens of the first presentation area; in the embodiment of the present invention, the size of the first display area corresponding to the first candidate item may be adapted to the size of the current screen, so that the embodiment of the present invention may enable different screens in the first display area to present a good display effect, and enhance the adaptation between the first display area and the input interface where the first display area is located and the screen.
In addition, in the embodiment of the present invention, the font size corresponding to the first candidate item may be determined based on the number of characters corresponding to the first candidate item, so that the font size corresponding to the first candidate item may be dynamically determined according to the number of characters corresponding to the first candidate item, and therefore, the readability of the first candidate item may be improved, and meanwhile, the recognition degree of the first candidate item may be improved, so as to further reduce the difficulty of the user in selecting a desired candidate item from a plurality of candidates, and further, the mishandling rate of the candidate item may be reduced.
In addition, in the embodiment of the present invention, the font size corresponding to the candidate item may be determined based on the quality score of the candidate item, so that the embodiment of the present invention may improve the recognition degree of the candidate item with a higher quality score, further make the candidate item with a higher quality score easier to be selected by the user, reduce the mishandling rate, and improve the input experience of the user.
Application example
To enable those skilled in the art to better understand the embodiments of the present invention, an example of an input method according to the embodiments of the present invention is provided herein, the example relates to an input on a smart terminal having a touch screen, and the corresponding input process may include:
step S1, responding to a first trigger operation of a user, and displaying an input interface; the input interface may include: the size of the first display area is matched with the size of the current screen;
for example, the first trigger operation may be a single-click operation of the input box, and the input interface displayed in step S1 may be, for example, the input interface of fig. 2. The size of the first presentation area may be calculated before, at the same time as, or after the first trigger operation is received, and it may be understood that the calculation time of the size of the first presentation area is not limited in the embodiment of the present invention.
Step S2, receiving a movement operation of a user on the boundary of the first display area; adjusting the size of the first display area according to the moving operation;
step S3, according to an input string input by a user, acquiring a candidate item corresponding to the input string; the candidate items may include a first candidate item and a non-first candidate item;
step S4, determining the size of the presentation area corresponding to the candidate item and/or the font size corresponding to the candidate item; the font size corresponding to the first candidate item may be determined based on the number of characters corresponding to the first candidate item, and/or the font size corresponding to the candidate item may be determined based on the quality score of the candidate item;
wherein, the display area may include: a first presentation area and a second presentation area, the size acquisition of which may be completed before step S3, and step S4 may establish an association between each candidate item and the presentation area.
Step S5, displaying the corresponding candidate item in the presentation area according to the font size corresponding to the candidate item, so that the user triggers the corresponding candidate item through the presentation area.
In summary, in the input method of the embodiment of the present invention, the size of the first presentation area corresponding to the first candidate item may be adapted to the size of the current screen, so that the embodiment of the present invention may enable the first presentation area to present a good display effect on different screens, and enhance the adaptation between the first presentation area and the input interface where the first presentation area is located and the screen.
In addition, in the embodiment of the present invention, the font size corresponding to the first candidate item may be determined based on the number of characters corresponding to the first candidate item, so that the font size corresponding to the first candidate item may be dynamically determined according to the number of characters corresponding to the first candidate item, thereby improving the readability of the first candidate item and improving the recognition degree of the first candidate item.
In addition, in the embodiment of the present invention, the font size corresponding to the candidate item may be determined based on the quality score of the candidate item, so that the embodiment of the present invention may improve the recognition degree of the candidate item with a higher quality score, further make the candidate item with a higher quality score easier to be selected by the user, reduce the misoperation rate, and improve the input experience of the user.
Device embodiment
Referring to fig. 12, a block diagram of an embodiment of an input device according to the present invention is shown, which may specifically include:
a candidate item obtaining module 1201, configured to obtain a candidate item corresponding to an input string input by a user;
a determining module 1202, configured to determine a size of a display area corresponding to the candidate item and/or a font size corresponding to the candidate item; the candidate items can include first candidate items and non-first candidate items, the size of the first presentation area corresponding to the first candidate items can be larger than the size of the second presentation area corresponding to the non-first candidate items, the size of the first presentation area corresponding to the first candidate items is matched with the size of the current screen, and/or the size of the font corresponding to the first candidate items can be determined based on the number of characters corresponding to the first candidate items, and/or the size of the font corresponding to the candidate items can be determined based on the quality scores of the candidate items; and
the candidate item display module 1203 is configured to display a corresponding candidate item in the display area according to the font size corresponding to the candidate item, so that the user triggers the corresponding candidate item through the display area.
Optionally, the current screen size may include a current screen width, the presentation area is located in an input interface, the input interface is provided with at least two types of key areas in a width direction, and the apparatus may further include:
a first width determining module, configured to determine widths of the at least two types of key regions according to a width ratio of the at least two types of key regions and the current screen width;
and the second width determining module is used for determining the width of the first display area according to the width of the key area corresponding to the first display area.
Optionally, the apparatus may further include:
and the third width determining module is used for determining the width of the first display area according to the width proportion of the first display area and the second display area and the current screen width.
Optionally, the apparatus may further include:
the receiving module is used for receiving the moving operation of a user on the boundary of the first display area;
and the adjusting module is used for adjusting the size of the first display area according to the moving operation.
Optionally, the determining module 1202 may include:
and the first word size obtaining submodule is used for obtaining the maximum word size from the word size set as the current word size corresponding to the first candidate item.
Optionally, the determining module 1202 may further include:
and the second font size obtaining sub-module is used for obtaining the maximum font size smaller than the current font size from the font size set when the number of the characters corresponding to the first candidate item of the current font size exceeds the capacity of the first display area, and the maximum font size is used as the current font size corresponding to the first candidate item.
Optionally, the candidate item displaying module 1203 may include:
the first display processing submodule is used for replacing the front part of characters which can be included by the first candidate item with a first preset symbol if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area; and/or
And the second display processing sub-module is used for replacing the rear part of characters which can be included in the first candidate item with a second preset symbol if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area and a preset operation of a user is received.
Optionally, the font size corresponding to the candidate item is determined based on the quality score of the candidate item.
Optionally, the font sizes corresponding to the candidates are sequentially decreased from high to low according to the quality scores.
Optionally, the display area is located in an input interface, and the input interface may include: a first interface layer and a second interface layer; the first interface layer is used for bearing the first display area, and the second interface layer is used for bearing the key area and the second display area.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 13 is a block diagram illustrating an apparatus 800 for input according to an exemplary embodiment, where the apparatus 800 may be an intelligent terminal or a server. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 13, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 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.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 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 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 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 810 is configured to output and/or input audio signals. For example, audio component 810 includes a Microphone (MIC) configured to receive external audio signals when apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 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 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices in a wired or wireless manner. The device 800 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 component 816 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 816 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 800 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.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. 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.
Fig. 14 is a schematic diagram of a server in some embodiments of the invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an apparatus (smart terminal or server), enable the apparatus to perform an input method, the method comprising: according to an input string input by a user, acquiring a candidate item corresponding to the input string; determining the size of a display area corresponding to the candidate item and/or the size of a font corresponding to the candidate item; the candidate items comprise first candidate items and non-first candidate items, the size of a first display area corresponding to the first candidate items is larger than that of a second display area corresponding to the non-first candidate items, the size of the first display area corresponding to the first candidate items is matched with the size of a current screen, and/or the size of a font corresponding to the first candidate items is determined based on the number of characters corresponding to the first candidate items; and displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item so that the user triggers the corresponding candidate item through the display area.
Optionally, the current screen size includes a current screen width, the display area is located in an input interface, the input interface is provided with at least two types of key areas in a width direction, and the method further includes: determining the widths of the at least two types of key areas according to the width proportion of the at least two types of key areas and the current screen width; and determining the width of the first display area according to the width of the key area corresponding to the first display area.
Optionally, the method further comprises: and determining the width of the first display area according to the width proportion of the first display area and the second display area and the current screen width.
Optionally, the method further comprises: receiving a moving operation of a user on the boundary of the first display area; and adjusting the size of the first display area according to the moving operation.
Optionally, the determining a font size corresponding to the candidate item includes: and acquiring the maximum word size from the word size set as the current word size corresponding to the first candidate item.
Optionally, the determining a font size corresponding to the candidate item further includes: and if the number of the characters corresponding to the first candidate item of the current font size exceeds the capacity of the first display area, acquiring the maximum font size smaller than the current font size from the font size set as the current font size corresponding to the first candidate item.
Optionally, the displaying the corresponding candidate item in the presentation area according to the font size corresponding to the candidate item includes: if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area, replacing the front part of the characters included by the first candidate item with a first preset symbol; and/or if the number of characters corresponding to the first candidate item exceeds the capacity of the first display area and a user preset operation is received, replacing the rear part of characters included by the first candidate item with a second preset symbol.
Optionally, the font sizes corresponding to the candidates are sequentially decreased from high to low according to the quality scores.
Optionally, the presentation area is located in an input interface, and the input interface includes: a first interface layer and a second interface layer; the first interface layer is used for bearing the first display area, and the second interface layer is used for bearing the key area and the second display area.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The input method, the input device and the device for inputting provided by the invention, as well as the method for updating the lexicon, the device for updating the lexicon and the device for updating the lexicon are described in detail above, and the principle and the implementation mode of the invention are explained by applying specific examples in the text, and the description of the above examples is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (25)

1. An input method, characterized in that the method comprises:
according to an input string input by a user, acquiring a candidate item corresponding to the input string;
determining the size of a display area corresponding to the candidate item and/or the size of a font corresponding to the candidate item; the candidate items comprise first candidate items and non-first candidate items, the size of a first display area corresponding to the first candidate items is larger than the size of a second display area corresponding to the non-first candidate items, the size of the first display area corresponding to the first candidate items is matched with the size of a current screen, and/or the size of a font corresponding to the first candidate items is determined based on the number of characters corresponding to the first candidate items, and/or the size of a font corresponding to the candidate items is determined based on the quality scores of the candidate items;
displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item so that a user can trigger the corresponding candidate item through the display area;
displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item, including:
if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area, replacing the front part of the characters included by the first candidate item with a first preset symbol; and/or
If the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area and a user preset operation is received, replacing front and/or rear partial characters included by the first candidate item with a second preset symbol; the user preset operation comprises the following steps: and screening operation of the matching sequence corresponding to the input string, or browsing and editing operation of the matching sequence or the first candidate item corresponding to the input string.
2. The method of claim 1, wherein the current screen size comprises a current screen width, wherein the presentation area is located in an input interface, and wherein the input interface is provided with at least two types of key areas in a width direction, and wherein the method further comprises:
determining the widths of the at least two types of key areas according to the width proportion of the at least two types of key areas and the current screen width;
and determining the width of the first display area according to the width of the key area corresponding to the first display area.
3. The method of claim 1, further comprising:
and determining the width of the first display area according to the width proportion of the first display area and the second display area and the current screen width.
4. The method of claim 1, further comprising:
receiving a moving operation of a user on the boundary of the first display area;
and adjusting the size of the first display area according to the moving operation.
5. The method of claim 1, wherein said determining the font size corresponding to the candidate comprises:
and acquiring the maximum word size from the word size set as the current word size corresponding to the first candidate item.
6. The method of claim 5, wherein the determining a font size corresponding to the candidate item further comprises:
and if the number of the characters corresponding to the first candidate item of the current font size exceeds the capacity of the first display area, acquiring the maximum font size smaller than the current font size from the font size set as the current font size corresponding to the first candidate item.
7. The method of any of claims 1 to 6, wherein the font sizes corresponding to the candidate items decrease in order from high to low according to the quality score.
8. The method of any of claims 1-6, wherein the presentation area is located in an input interface, the input interface comprising: a first interface layer and a second interface layer; the first interface layer is used for bearing the first display area, and the second interface layer is used for bearing the key area and the second display area.
9. An input device, the device comprising:
the candidate item acquisition module is used for acquiring a candidate item corresponding to an input string input by a user;
the determining module is used for determining the size of the display area corresponding to the candidate item and/or the font size corresponding to the candidate item; the candidate items comprise first candidate items and non-first candidate items, the size of a first display area corresponding to the first candidate items is larger than that of a second display area corresponding to the non-first candidate items, the size of the first display area corresponding to the first candidate items is matched with the size of the current screen, and/or the size of a font corresponding to the first candidate items is determined based on the number of characters corresponding to the first candidate items; and
the candidate item display module is used for displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item so that a user can trigger the corresponding candidate item through the display area;
the candidate item display module comprises:
the first display processing submodule is used for replacing the front part of characters included by the first candidate items with a first preset symbol if the number of the characters corresponding to the first candidate items exceeds the capacity of the first display area; and/or
The second display processing sub-module is used for replacing the rear part of characters included by the first candidate item with a second preset symbol if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area and a user preset operation is received; the user preset operation comprises the following steps: and screening operation of the matching sequence corresponding to the input string, or browsing and editing operation of the matching sequence or the first candidate item corresponding to the input string.
10. The apparatus of claim 9, wherein the current screen size comprises a current screen width, wherein the presentation area is located in an input interface, and wherein the input interface is provided with at least two types of key areas in a width direction, and wherein the apparatus further comprises:
the first width determining module is used for determining the widths of the at least two types of key areas according to the width proportion of the at least two types of key areas and the width of the current screen;
and the second width determining module is used for determining the width of the first display area according to the width of the key area corresponding to the first display area.
11. The apparatus of claim 9, further comprising:
and the third width determining module is used for determining the width of the first display area according to the width proportion of the first display area and the second display area and the current screen width.
12. The apparatus of claim 9, further comprising:
the receiving module is used for receiving the moving operation of a user on the boundary of the first display area;
and the adjusting module is used for adjusting the size of the first display area according to the moving operation.
13. The apparatus of claim 9, wherein the determining module comprises:
and the first word size obtaining submodule is used for obtaining the maximum word size from the word size set as the current word size corresponding to the first candidate item.
14. The apparatus of claim 13, wherein the determining module further comprises:
and the second font size obtaining sub-module is used for obtaining the maximum font size smaller than the current font size from the font size set when the number of the characters corresponding to the first candidate item of the current font size exceeds the capacity of the first display area, and the maximum font size is used as the current font size corresponding to the first candidate item.
15. The apparatus according to any of the claims 9 to 13, wherein the font sizes corresponding to the candidates decrease in order from high to low according to the quality score.
16. The apparatus of any of claims 9 to 13, wherein the presentation area is located in an input interface, the input interface comprising: a first interface layer and a second interface layer; the first interface layer is used for bearing the first display area, and the second interface layer is used for bearing the key area and the second display area.
17. An apparatus for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
acquiring a candidate item corresponding to an input string input by a user;
determining the size of a display area corresponding to the candidate item and/or the size of a font corresponding to the candidate item; the candidate items comprise first candidate items and non-first candidate items, the size of a first display area corresponding to the first candidate items is larger than the size of a second display area corresponding to the non-first candidate items, the size of the first display area corresponding to the first candidate items is matched with the size of a current screen, and/or the size of a font corresponding to the first candidate items is determined based on the number of characters corresponding to the first candidate items, and/or the size of a font corresponding to the candidate items is determined based on the quality scores of the candidate items;
displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item, so that a user can trigger the corresponding candidate item through the display area;
displaying the corresponding candidate item in the display area according to the font size corresponding to the candidate item, including:
if the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area, replacing the front part of the characters included by the first candidate item with a first preset symbol; and/or
If the number of the characters corresponding to the first candidate item exceeds the capacity of the first display area and a user preset operation is received, replacing front and/or rear partial characters included by the first candidate item with a second preset symbol; the user preset operation comprises the following steps: and screening the matching sequence corresponding to the input string, or browsing and editing the matching sequence or the first candidate item corresponding to the input string.
18. The apparatus of claim 17, wherein the current screen size comprises a current screen width, wherein the presentation area is located in an input interface, wherein the input interface is provided with at least two types of key areas in a width direction, and wherein the one or more programs further configured to be executed by the one or more processors include instructions for:
determining the widths of the at least two types of key areas according to the width proportion of the at least two types of key areas and the current screen width;
and determining the width of the first display area according to the width of the key area corresponding to the first display area.
19. The apparatus of claim 17, wherein the apparatus is also configured to execute the one or more programs by one or more processors includes instructions for:
and determining the width of the first display area according to the width ratio of the first display area to the second display area and the current screen width.
20. The device of claim 17, wherein the device is also configured to execute the one or more programs by one or more processors includes instructions for:
receiving a moving operation of a user on the boundary of the first display area;
and adjusting the size of the first display area according to the moving operation.
21. The apparatus of claim 17, wherein said determining the font size corresponding to the candidate comprises:
and acquiring the maximum word size from the word size set as the current word size corresponding to the first candidate item.
22. The apparatus of claim 17, wherein the determining the font size corresponding to the candidate item further comprises:
and if the number of the characters corresponding to the first candidate item of the current font size exceeds the capacity of the first display area, acquiring the maximum font size smaller than the current font size from the font size set as the current font size corresponding to the first candidate item.
23. The apparatus according to any of the claims 17 to 22, wherein the font sizes corresponding to the candidates decrease in order from high to low in the quality score.
24. The apparatus of any of claims 17-22, the presentation area located in an input interface, the input interface comprising: a first interface layer and a second interface layer; the first interface layer is used for bearing the first display area, and the second interface layer is used for bearing the key area and the second display area.
25. One or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform the method recited by one or more of claims 1-8.
CN201710125042.1A 2017-03-03 2017-03-03 Input method, input device and input device Active CN108536653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710125042.1A CN108536653B (en) 2017-03-03 2017-03-03 Input method, input device and input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710125042.1A CN108536653B (en) 2017-03-03 2017-03-03 Input method, input device and input device

Publications (2)

Publication Number Publication Date
CN108536653A CN108536653A (en) 2018-09-14
CN108536653B true CN108536653B (en) 2022-09-30

Family

ID=63488491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710125042.1A Active CN108536653B (en) 2017-03-03 2017-03-03 Input method, input device and input device

Country Status (1)

Country Link
CN (1) CN108536653B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258691B (en) * 2020-01-10 2023-06-20 北京搜狗科技发展有限公司 Input method interface processing method, device and medium
CN111459300A (en) * 2020-03-31 2020-07-28 维沃移动通信有限公司 Character display method and electronic equipment
CN114546192B (en) * 2021-12-31 2023-11-28 北京达佳互联信息技术有限公司 Content display processing method and device and content display method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314284A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method for user to freely adjust input interface and equipment
CN103425424A (en) * 2012-05-22 2013-12-04 北京蒙恬科技有限公司 Handwriting input word selecting system and method
CN104424359A (en) * 2013-08-30 2015-03-18 三星电子株式会社 Electronic device and method for providing content according to field attribute
EP2940557A1 (en) * 2012-12-31 2015-11-04 Baidu Online Network Technology (Beijing) Co., Ltd Method and device used for providing input candidate item corresponding to input character string
CN105446495A (en) * 2015-12-08 2016-03-30 北京搜狗科技发展有限公司 Candidate sorting method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314284A (en) * 2010-06-30 2012-01-11 百度在线网络技术(北京)有限公司 Method for user to freely adjust input interface and equipment
CN103425424A (en) * 2012-05-22 2013-12-04 北京蒙恬科技有限公司 Handwriting input word selecting system and method
EP2940557A1 (en) * 2012-12-31 2015-11-04 Baidu Online Network Technology (Beijing) Co., Ltd Method and device used for providing input candidate item corresponding to input character string
CN104424359A (en) * 2013-08-30 2015-03-18 三星电子株式会社 Electronic device and method for providing content according to field attribute
CN105446495A (en) * 2015-12-08 2016-03-30 北京搜狗科技发展有限公司 Candidate sorting method and apparatus

Also Published As

Publication number Publication date
CN108536653A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
US20090225041A1 (en) Language input interface on a device
CN107918496B (en) Input error correction method and device for input error correction
CN107688399B (en) Input method and device and input device
CN107665046B (en) Input method and device and input device
CN108536653B (en) Input method, input device and input device
CN108628461B (en) Input method and device and method and device for updating word stock
CN110795014B (en) Data processing method and device and data processing device
CN109542244B (en) Input method, device and medium
CN111092971A (en) Display method and device for displaying
CN107340881B (en) Input method and electronic equipment
CN113407099A (en) Input method, device and machine readable medium
CN112764551A (en) Vocabulary display method and device and electronic equipment
CN109426359B (en) Input method, device and machine readable medium
CN108227952B (en) Method and system for generating custom word and device for generating custom word
CN107977089B (en) Input method and device and input device
CN107765884B (en) Sliding input method and device and electronic equipment
CN112068793A (en) Voice input method and device
CN112214154B (en) Interface processing method and device and interface processing device
CN110716653B (en) Method and device for determining association source
CN110780749A (en) Character string error correction method and device
CN109388328B (en) Input method, device and medium
CN111258691B (en) Input method interface processing method, device and medium
CN112987941B (en) Method and device for generating candidate words
KR101255801B1 (en) Mobile terminal capable of inputting hangul and method for displaying keypad thereof
CN110244861B (en) Data processing method and device

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
GR01 Patent grant
GR01 Patent grant