CN109683726B - Character input method, character input device, electronic equipment and storage medium - Google Patents

Character input method, character input device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109683726B
CN109683726B CN201811594093.XA CN201811594093A CN109683726B CN 109683726 B CN109683726 B CN 109683726B CN 201811594093 A CN201811594093 A CN 201811594093A CN 109683726 B CN109683726 B CN 109683726B
Authority
CN
China
Prior art keywords
input
characters
character
inputtable
state
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
CN201811594093.XA
Other languages
Chinese (zh)
Other versions
CN109683726A (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.)
Tiktok Technology Co ltd
Original Assignee
Beijing Microlive Vision Technology 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 Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201811594093.XA priority Critical patent/CN109683726B/en
Publication of CN109683726A publication Critical patent/CN109683726A/en
Application granted granted Critical
Publication of CN109683726B publication Critical patent/CN109683726B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure provides a character input method, a character input device, electronic equipment and a storage medium. The method comprises the following steps: calculating the number of the remaining inputtable characters according to the character number limit value of the input box and the number of the characters currently input by the user; determining the inputtable state of an object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, wherein the object to be input is a character occupying at least two minimum unit characters; and according to the inputtable state of the object to be input, providing the object to be input in a distinguishing way. By adopting the technical scheme, the abnormal display condition caused by abnormal input of the emoticon waiting input object is improved, and the use experience of a user is enhanced.

Description

Character input method, character input device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a character input method, a character input device, electronic equipment and a storage medium.
Background
Existing application programs or websites can display information to users through interfaces, and meanwhile, character input boxes can be arranged in the interfaces for users to input information.
When a user inputs information into an interface and publishes the information, various objects to be input which occupy at least two characters are often used. For example, the use of emoticons is used when making comments or articles. However, there is typically a limit to the number of characters in the input box, for example, to 50 characters. And an emoticon may occupy one, two or more characters.
Therefore, the conventional technology may have an abnormal situation that when the user inputs the last character, if the user selects to input the emoticon, the emoticon may not be correctly displayed.
Disclosure of Invention
The embodiment of the disclosure provides a character input method, a character input device, an electronic device and a storage medium, which are used for solving the problem of abnormal display of an input object such as an emoticon.
In a first aspect, an embodiment of the present disclosure provides a character input method, including:
calculating the number of the remaining inputtable characters according to the character number limit value of the input box and the number of the characters currently input by the user;
determining the inputtable state of an object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, wherein the object to be input is a character occupying at least two minimum unit characters;
and according to the input state of the object to be input, providing the object to be input in a distinguishing way for the user to select.
In a second aspect, an embodiment of the present disclosure further provides a character input device, including:
the residual character calculation module is used for calculating the number of residual inputtable characters according to the character number limit value of the input box and the number of characters currently input by the user;
the input state determining module is used for determining the inputtable state of the object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, wherein the object to be input is a character occupying at least two minimum unit characters;
and the object to be input providing module is used for providing the objects to be input in a distinguishing way according to the input state of the objects to be input so as to be selected by the user.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processing devices;
storage means for storing one or more programs;
the one or more programs are executed by the one or more processing devices such that the one or more processing devices implement a character input method as provided in the first aspect.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a character input method as provided in the first aspect.
The method and the device for inputting the characters calculate the number of the remaining inputtable characters according to the character number limit value of the input box and the number of the characters currently input by the user; determining the inputtable state of the object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, wherein the object to be input is a character or a pattern occupying at least two minimum unit characters; and according to the inputtable state of the object to be input, providing the object to be input in a distinguishing way. By adopting the technical scheme, the abnormal display condition caused by abnormal input of the emoticon waiting input object is improved, and the use experience of a user is enhanced.
Drawings
Fig. 1 is a schematic flow chart of a character input method in a first embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a character input method in the second embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a character input device in a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device in a fourth embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 is a schematic flow chart of a character input method in a first embodiment of the present disclosure, where the present embodiment is applicable to a processing situation when inputting characters in an input box with a character number limit, and the method may be executed by a character input device, where the device is implemented by software and/or hardware and is specifically configured in an electronic device, where the electronic device is typically a terminal device, such as a smart phone, a tablet computer, or a PC.
For clarity of the technical solution of the embodiment of the present disclosure, the technical solution of the input box is first explained. The input box is a character input box with character number limitation, can be used for inputting characters, and can also be used for inputting special patterns such as character patterns or emoticons. The character patterns can be common character patterns formed by combining letters, numbers, punctuations and the like, and can also be special character patterns such as emoticons, emoticons and the like.
The character pattern is a unit individual pattern presented to a user, and the character is specific character data representing the character pattern, and is in accordance with a predetermined encoding scheme, for example, ASCII (American Standard Code for Information exchange). In order to enrich the input content of users, character patterns such as emoticons are increasingly introduced into input methods. For the user, a single emoticon may be seen, while for the input method software, one, two or more characters may be used to correspondingly register a certain character pattern. The character that conforms to the set character encoding rule may be referred to as a minimum unit character.
In general, the character pattern is not presented in exactly the same size as the number of characters required for characterization, e.g., a smiley face tag is presented in the input box in the same size as a typical single letter. Then, when there is a set character number limit value in the input box, there will be a case where the number of input characters viewed by the user meets the requirement, and the minimum unit character number required for actual recording exceeds the upper limit value. The character number limit value is set by an input method software developer according to needs, corresponds to the number of the minimum unit characters, and is convenient for storing and processing the data packet when the input content of the input box is transmitted.
The expression package takes the current popular stars, language records, cartoons, movie screenshots, homemade animations and the like as materials, and is matched with a series of matched characters to express the expression package of specific emotions.
For an input box with a character number limit, the input method client can present the contents of all input character patterns and/or expression packages in a preview state of input of the input box, but when the input box needs to be stored or sent, the input characters meeting the numerical requirements can be intercepted according to the character number limit, and the characters exceeding the number limit are discarded. This may cause the user to see the object to be input for input, and in fact, not be correctly input. Embodiments of the present disclosure provide solutions.
The character input method as shown in fig. 1 includes:
and S110, calculating the number of the remaining inputtable characters according to the character number limit value of the input box and the number of the characters currently input by the user.
The number of characters currently input by the user can be recorded statistically along with the input of the user. The number of characters which can be input in the residual can be determined according to the difference value between the character number limit value of the input box and the number of characters input by the user currently.
And S120, determining the inputtable state of the object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, wherein the object to be input is a character pattern occupying at least two minimum unit characters.
The object to be input can be a fixed character pattern and/or an expression package contained in an object to be input list carried by the input box. Wherein, the character pattern comprises a common character pattern and a special character pattern.
The common character pattern may be a character pattern formed by combining a plurality of emoticons, wherein the emoticons include at least one of letters, numbers, and punctuation marks. For example, a custom character "O (" _ n ") O" formed by two "O", one "(", one ")", one "_" and two "#" combined in a set order occupies 7 characters.
The special character pattern may be a small pattern generated by skillfully combining emotion and the small pattern, which is also called an emoticon or emoji expression.
The emotion packets can be emotion packets automatically associated with the input method client or emotion packets input by the user in history.
Wherein the object to be input is a character or a pattern occupying at least two unit characters.
Specifically, acquiring the number of occupied characters of an object to be input, and determining that the inputtable state of the object to be input is an activated state when the number of occupied characters of the object to be input is not more than the number of remaining inputtable characters; and when the number of occupied characters of the object to be input is less than the number of the remaining inputtable characters, determining that the inputtable state of the object to be input is the inactive state. Wherein the activated state indicates that the object to be input can be input, and the deactivated state indicates that the object to be input cannot be input.
For example, the number of occupied characters for acquiring the object to be input may be: and inquiring the number of occupied characters of each object to be input in the list of the objects to be input in the quantity table of the objects to be input.
S130, providing the objects to be input in a distinguishing mode according to the input states of the objects to be input.
Generally, in order to facilitate user selection, the input method client provides an object to be input selection area, and presents various objects to be input for selection input. In the pattern selection area, objects to be input may be provided distinctively according to the inputtable state for selection by the user.
For example, the distinction provision may be a distinction display according to at least one of a character color, a background color, and a character format.
It can be understood that after the object to be input is determined to be in the inactive state, if it is recognized that the user selects to input the object to be input, a warning prompt is performed. Wherein, the warning reminder can be at least one of a sound reminder, a pop-up window reminder and a shake reminder.
According to the inputtable state of the object to be input, the object to be input is provided in a differentiated manner for the user to select, and the method can be as follows: displaying the object to be input in the activated state, and hiding the object to be input in the inactivated state; or the object to be input in the activated state and the object to be input in the deactivated state are displayed in different colors, positions and/or formats in a distinguishing way. The color may be a character color of the object to be input, or a background color of the object to be input.
Specifically, the distinguishing display by location may be: pre-displaying an object to be input in an activated state in an object list to be input, and post-displaying an object to be input in an inactivated state; the objects to be input in the activated state and the objects to be input in the deactivated state can also be displayed in pages or columns.
Specifically, the display differentiated by format may be: highlighting the object to be input in the activated state or the object to be input in the inactivated state. Wherein the highlighting includes at least one of bolding, zooming in, zooming out, highlighting, tilting, underlining, wavy line, and strikethrough.
The method and the device for inputting the characters calculate the number of the remaining inputtable characters according to the character number limit value of the input box and the number of the characters currently input by the user; determining the inputtable state of the object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, wherein the object to be input is a character or a pattern occupying at least two minimum unit characters; according to the input state of the object to be input, the object to be input is provided for the user to select. By adopting the technical scheme, the abnormal display condition caused by abnormal input of the emoticon waiting input object is improved, and the use experience of a user is enhanced.
Example two
Fig. 2 is a schematic flow chart of a character input method in the second embodiment of the present disclosure. The present embodiment is embodied on the basis of various alternatives in the above-described embodiments.
Further, before the operation of determining the inputtable state of the object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, additionally searching the number of occupied characters of the object to be input when the object to be input is input; or calculating the number of the occupied characters of the object to be input according to the coding rule of the object to be input so as to perfect the determination mechanism of the number of the occupied characters of the object to be input, lay a foundation for the distinction of the object to be input and further perfect the input method of the characters comprising the object to be input.
A character input method as shown in fig. 2, comprising:
and S210, calculating the number of the remaining inputtable characters according to the character number limit value of the input box and the number of the characters currently input by the user.
Specifically, when the user uses the input box for inputting, the character number limit value of the input box is obtained, and the input characters are counted from the starting time of using the input box, so that the current input character number of the user is determined. And calculating to obtain the number of the remaining inputtable characters according to the difference value between the character number limit value of the input box and the number of the characters currently input by the user.
S220, when the object to be input is input, the number of the occupied characters of the object to be input is searched, or the number of the occupied characters of the object to be input is calculated according to the encoding rule of the object to be input.
Wherein the object to be input is a character or a pattern occupying at least two minimum unit characters. When a user clicks different set areas of the input method client, lists of objects to be input corresponding to different types of objects to be input can be presented.
The object to be input can be a fixed character pattern and/or an expression package contained in an object to be input list carried by the input box. Wherein, the character pattern comprises a common character pattern and a special character pattern. The common character pattern may be a character pattern formed by combining a plurality of emoticons, wherein the emoticons include at least one of letters, numbers, and punctuation marks. The special character pattern may be a small pattern generated by skillfully combining emotion and the small pattern, which is also called an emoticon or emoji expression. The emotion packets can be emotion packets automatically associated with the input method client or emotion packets input by the user in history.
Specifically, the way of specifically determining the number of occupied characters of the object to be input is different according to different categories of the object to be input.
Optionally, when the object to be input is a common character pattern such as a custom character, the character length corresponding to each object to be input is searched in the pre-stored first character number occupation table, and is used as the number of occupied characters of each object to be input. When the common character pattern is generated by a user in a self-defined way, the character length corresponding to the common character pattern is updated to the first character number occupation table.
Optionally, when the object to be input is an expression package automatically associated with the input method client or input by the user in history, the character length corresponding to each object to be input is summarized and searched in the pre-stored second character number occupation table, and the character length is used as the number of occupied characters of each object to be input. When the expression package automatically associated with the input method client is associated with the expression package, the number of occupied characters corresponding to each expression package is stored in an associated manner to form a second character number occupation table. When the expression package input by the user history is used for the first time by the user, the used expression package is analyzed to obtain the number of occupied characters corresponding to the expression package, and the number of occupied characters is updated to a second character number occupation table.
Optionally, when the object to be input is a special character pattern such as an emoticon, the encoding length of each special character pattern is calculated according to the corresponding encoding rule when the special character pattern is formed, and the encoding length is used as the number of occupied characters of each object to be input. For example, the encoding rule corresponding to the emoticon is Unicode (Unicode) encoding.
And S230, determining the inputtable state of the object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input.
When the number of the remaining inputtable characters is larger than the number of occupied characters of the object to be input, determining that the inputtable state of the object to be input is an activated state; and when the number of the remaining inputtable characters is not more than the number of occupied characters of the object to be input, determining the inputtable state of the object to be input as the inactive state. Wherein, the activated state represents that the object to be input can be input, and the deactivated state represents that the object to be input cannot be input.
And S240, distinguishing and displaying the objects to be input, the input states of which are input or not input, in different colors, positions and/or formats.
The embodiment of the invention adds the step of the number of the occupied characters of the object to be input before determining the inputtable state of the object to be input according to the number of the residual inputtable characters and the number of the occupied characters of the object to be input. Specifically, when the object to be input is input, the number of the occupied characters of the object to be input is searched, or the number of the occupied characters of the object to be input is calculated according to the encoding rule of the object to be input, so that the determination mechanism of the number of the occupied characters of the object to be input is perfected, a foundation is laid for distinguishing the objects to be input, and further the input method of the characters comprising the object to be input is perfected.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a character input device in a third embodiment of the present disclosure, where this embodiment is applicable to a processing situation when inputting characters in an input box with a limited number of characters, and the device is implemented by software and/or hardware and is specifically configured in an electronic device, which is typically a terminal device, such as a smart phone, a tablet computer, or a PC.
The character input apparatus as shown in fig. 3 includes: a remaining character calculation module 310, an input state determination module 320, and an object to be input providing module 330.
The remaining character calculating module 310 is configured to calculate the number of remaining inputtable characters according to the character number limit value of the input box and the number of characters currently input by the user;
an input state determining module 320, configured to determine an inputtable state of an object to be input according to the number of remaining inputtable characters and the number of occupied characters of the object to be input, where the object to be input is a character or a pattern that occupies at least two minimum unit characters;
the to-be-input object providing module 330 is configured to provide the to-be-input objects differently according to the inputtable states of the to-be-input objects.
The method comprises the steps that the number of the characters which can be input in the surplus is calculated through a surplus character calculation module according to the character number limit value of an input box and the number of the characters input by a user currently; determining the inputtable state of an object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input by an input state determining module, wherein the object to be input is a character or a pattern occupying at least two minimum unit characters; and the object to be input is provided by the object to be input providing module according to the inputtable state of the object to be input in a distinguishing way. By adopting the technical scheme, the abnormal display condition caused by abnormal input of the emoticon waiting input object is improved, and the use experience of a user is enhanced.
Further, the to-be-input object providing module 330 is configured to:
the object to be input, the input state of which is capable of being input, is displayed, and the object to be input, the input state of which is incapable of being input, is hidden.
Further, the to-be-input object providing module 330 is configured to:
objects to be input, the input states of which can be input or can not be input, are distinguished and displayed in different colors, positions and/or formats.
Further, the device further comprises a module for determining the number of characters to be input, and the module is specifically configured to:
before determining the inputtable state of the object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, searching the number of occupied characters of the object to be input when the object to be input is input; or, calculating the number of occupied characters of the object to be input according to the encoding rule of the object to be input.
Further, the object to be input is a special character pattern.
Further, the special character patterns are expression characters.
Further, the emoji character occupies two or three minimum unit characters.
The character input device can execute the character input method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the character input method.
Example four
Referring now to FIG. 4, a block diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: calculating the number of the remaining inputtable characters according to the character number limit value of the input box and the number of the characters currently input by the user; determining the inputtable state of an object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, wherein the object to be input is a character or a pattern occupying at least two minimum unit characters; and according to the inputtable state of the object to be input, providing the object to be input in a distinguishing way.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (8)

1. A character input method, comprising:
calculating the number of the remaining inputtable characters according to the character number limit value of the input box and the number of the characters currently input by the user;
determining the inputtable state of an object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, wherein the object to be input is a character or a pattern occupying at least two minimum unit characters;
according to the inputtable state of the object to be input, the object to be input is provided in a distinguishing manner;
the number of the current input characters of the user changes in real time along with the input of the user;
the differentially providing the objects to be input according to the inputtable states of the objects to be input comprises:
the object to be input, the input state of which is capable of being input, is displayed, and the object to be input, the input state of which is incapable of being input, is hidden.
2. The method according to claim 1, wherein the discriminately providing the objects to be input according to the inputtable states of the objects to be input comprises:
the objects to be input, the states of which can be input or can not be input, are distinguished and displayed in different colors, positions and/or formats.
3. The method according to claim 2, before determining the inputtable state of the object to be input according to the number of characters remaining inputtable and the number of occupied characters of the object to be input, further comprising:
when the object to be input is input, searching the number of occupied characters of the object to be input; or
And calculating the number of occupied characters of the object to be input according to the encoding rule of the object to be input.
4. A method according to any one of claims 1-3, wherein the object to be input is a special character pattern.
5. A character input device, comprising:
the residual character calculation module is used for calculating the number of residual inputtable characters according to the character number limit value of the input box and the number of characters currently input by the user;
the input state determining module is used for determining the inputtable state of an object to be input according to the number of the remaining inputtable characters and the number of occupied characters of the object to be input, wherein the object to be input is a character or a pattern occupying at least two minimum unit characters;
the input object providing module is used for providing the input objects in a distinguishing way according to the input state of the input objects;
the number of the current input characters of the user changes in real time along with the input of the user;
the object to be input providing module is configured to:
the object to be input, the input state of which is capable of being input, is displayed, and the object to be input, the input state of which is incapable of being input, is hidden.
6. The apparatus according to claim 5, wherein the to-be-input object providing module is configured to:
the objects to be input, the states of which can be input or can not be input, are distinguished and displayed in different colors, positions and/or formats.
7. An electronic device, comprising:
one or more processing devices;
storage means for storing one or more programs;
the one or more programs are executable by the one or more processing devices to cause the one or more processing devices to implement a character input method as recited in any one of claims 1-4.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a character input method according to any one of claims 1 to 4.
CN201811594093.XA 2018-12-25 2018-12-25 Character input method, character input device, electronic equipment and storage medium Active CN109683726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811594093.XA CN109683726B (en) 2018-12-25 2018-12-25 Character input method, character input device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811594093.XA CN109683726B (en) 2018-12-25 2018-12-25 Character input method, character input device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109683726A CN109683726A (en) 2019-04-26
CN109683726B true CN109683726B (en) 2022-08-05

Family

ID=66189387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811594093.XA Active CN109683726B (en) 2018-12-25 2018-12-25 Character input method, character input device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109683726B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276058A (en) * 2019-06-10 2019-09-24 天翼电子商务有限公司 A kind of method, storage medium and terminal that text exhibition frame length limits
CN110705256B (en) * 2019-08-30 2023-03-21 平安科技(深圳)有限公司 Method, device and equipment for counting number of characters and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1240037A (en) * 1996-10-16 1999-12-29 夏普公司 Character input apparatus and storage medium in which character input program is stored
CN102253929A (en) * 2011-06-03 2011-11-23 北京搜狗科技发展有限公司 Method and device for prompting user to input characters
CN102339277A (en) * 2011-09-16 2012-02-01 广州市动景计算机科技有限公司 Method and system for converting text content into picture content
CN103176969A (en) * 2011-12-20 2013-06-26 腾讯科技(深圳)有限公司 Method and device for sharing microblogging information
JP2015106368A (en) * 2013-12-02 2015-06-08 日本電信電話株式会社 Text summarization method, device, and program
CN105183181A (en) * 2015-08-19 2015-12-23 网易(杭州)网络有限公司 Input interaction control method
CN105426103A (en) * 2015-11-10 2016-03-23 网易(杭州)网络有限公司 Message editing method and device on mobile terminal
CN106257378A (en) * 2016-07-19 2016-12-28 北京新美互通科技有限公司 A kind of emoticon input method and device
CN106371623A (en) * 2016-09-23 2017-02-01 青岛海信电器股份有限公司 Display method and device of alternative characters
CN106372059A (en) * 2016-08-30 2017-02-01 北京百度网讯科技有限公司 Information input method and information input device
CN108710647A (en) * 2018-04-28 2018-10-26 苏宁易购集团股份有限公司 A kind of data processing method and device for chat robots
CN109002238A (en) * 2017-06-06 2018-12-14 腾讯科技(深圳)有限公司 Number of characters display methods, device, terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10057358B2 (en) * 2016-12-09 2018-08-21 Paypal, Inc. Identifying and mapping emojis

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1240037A (en) * 1996-10-16 1999-12-29 夏普公司 Character input apparatus and storage medium in which character input program is stored
CN102253929A (en) * 2011-06-03 2011-11-23 北京搜狗科技发展有限公司 Method and device for prompting user to input characters
CN102339277A (en) * 2011-09-16 2012-02-01 广州市动景计算机科技有限公司 Method and system for converting text content into picture content
CN103176969A (en) * 2011-12-20 2013-06-26 腾讯科技(深圳)有限公司 Method and device for sharing microblogging information
JP2015106368A (en) * 2013-12-02 2015-06-08 日本電信電話株式会社 Text summarization method, device, and program
CN105183181A (en) * 2015-08-19 2015-12-23 网易(杭州)网络有限公司 Input interaction control method
CN105426103A (en) * 2015-11-10 2016-03-23 网易(杭州)网络有限公司 Message editing method and device on mobile terminal
CN106257378A (en) * 2016-07-19 2016-12-28 北京新美互通科技有限公司 A kind of emoticon input method and device
CN106372059A (en) * 2016-08-30 2017-02-01 北京百度网讯科技有限公司 Information input method and information input device
CN106371623A (en) * 2016-09-23 2017-02-01 青岛海信电器股份有限公司 Display method and device of alternative characters
CN109002238A (en) * 2017-06-06 2018-12-14 腾讯科技(深圳)有限公司 Number of characters display methods, device, terminal and computer readable storage medium
CN108710647A (en) * 2018-04-28 2018-10-26 苏宁易购集团股份有限公司 A kind of data processing method and device for chat robots

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Limiting characters on UITextField breaks Emojis,can only add one and not delete";Hobbyist;《https://stackoverflow.com/questions/35546682/limiting-characters-on-uitextfield-breaks-emojis-can-only-add-one-and-not-delet》;20160222;第1-2页 *
"UITextField输入有emoji表情时的字数限定";刀客445;《https://my.oschina.net/u/2607703/blog/610344》;20160127;第1-2页 *

Also Published As

Publication number Publication date
CN109683726A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN109725975B (en) Method and device for prompting read state of message and electronic equipment
CN111190520A (en) Menu item selection method and device, readable medium and electronic equipment
CN110177295B (en) Subtitle out-of-range processing method and device and electronic equipment
CN109815448B (en) Slide generation method and device
US20240079002A1 (en) Minutes of meeting processing method and apparatus, device, and medium
CN105379236A (en) User experience mode transitioning
WO2023040967A1 (en) Method and apparatus for displaying reminding information, and electronic device and storage medium
CN108449255B (en) Comment interaction method and equipment, client device and electronic equipment
CN112380365A (en) Multimedia subtitle interaction method, device, equipment and medium
CN114528816B (en) Collaborative editing information display method and device, electronic equipment and readable medium
CN113377365A (en) Code display method, device, equipment, computer readable storage medium and product
CN109683726B (en) Character input method, character input device, electronic equipment and storage medium
CN116320654A (en) Message display processing method, device, equipment and medium
CN110069547B (en) Online database table data statistics method, device, medium and electronic equipment
US12079575B2 (en) Character display method and apparatus, electronic device, and computer-readable storage medium
CN113238688B (en) Form display method, device, equipment and medium
US9894120B2 (en) Partial likes of social media content
CN113741773A (en) Information display method, device, equipment and medium
CN112492399B (en) Information display method and device and electronic equipment
CN109976857B (en) Display control method and device of terminal interface, storage medium and electronic equipment
EP4207775A1 (en) Method and apparatus for determining object addition mode, electronic device, and medium
CN113220293B (en) Page display method, page display device, electronic equipment and computer readable medium
CN115268890A (en) Information processing method and device and electronic equipment
CN113296771A (en) Page display method, device, equipment and computer readable medium
CN112506596A (en) Object display method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 2nd Floor, Building 4, No. 18 North Third Ring West Road, Haidian District, Beijing, 2022

Patentee after: Tiktok Technology Co.,Ltd.

Country or region after: China

Address before: 100080 408, 4th floor, 51 Zhichun Road, Haidian District, Beijing

Patentee before: BEIJING MICROLIVE VISION TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address