CN107300987A - A kind of input method, terminal and computer-readable recording medium - Google Patents

A kind of input method, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107300987A
CN107300987A CN201710525471.8A CN201710525471A CN107300987A CN 107300987 A CN107300987 A CN 107300987A CN 201710525471 A CN201710525471 A CN 201710525471A CN 107300987 A CN107300987 A CN 107300987A
Authority
CN
China
Prior art keywords
string
user
character string
alternating content
special
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.)
Withdrawn
Application number
CN201710525471.8A
Other languages
Chinese (zh)
Inventor
陈南国
鲁梅
董芬芳
黄柳妃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710525471.8A priority Critical patent/CN107300987A/en
Publication of CN107300987A publication Critical patent/CN107300987A/en
Withdrawn legal-status Critical Current

Links

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/274Converting codes to words; Guess-ahead of partial word inputs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of input method, terminal and computer-readable recording medium, wherein method includes:The special string of user's input is obtained, the special string is between default first spcial character and default second spcial character;According to the special string alternating content is provided to the user;Specified alternating content in the alternating content chosen with the user replaces the special string, first spcial character and second spcial character.The embodiment of the present invention identifies the content that some users are frequently necessary to input by using special string, when detecting user's input special string, alternating content is provided a user according to special string, and the specified alternating content chosen with user replaces special string, so as to realize rapidly inputting for conventional content, the input efficiency of user is improved.

Description

A kind of input method, terminal and computer-readable recording medium
Technical field
The present invention relates to electronic technology field, more particularly to a kind of input method, terminal and computer-readable recording medium.
Background technology
Mobile phone is increasingly becoming instrument essential in people's daily life.In use, people often need Editor's input word on mobile phone.It is limited to the Morphological Features of mobile phone, even if present input method is more and more intelligent, is edited on mobile phone The efficiency for inputting word is not still high, have impact on the usage experience of user.
The content of the invention
The embodiment of the present invention provides a kind of input method, can improve the efficiency that user edits input word.
In a first aspect, the embodiments of the invention provide a kind of input method, this method includes:
Obtain user input special string, the special string be in default first spcial character with it is default Between second spcial character;
According to the special string alternating content is provided to the user;
Specified alternating content in the alternating content chosen with the user replaces the special string, described the One spcial character and second spcial character.
Second aspect, the embodiments of the invention provide a kind of terminal, the terminal includes:
Acquiring unit, the special string for obtaining user's input, it is special that the special string is in default first Very between character and default second spcial character;
Unit is provided, for providing alternating content to the user according to the special string;
Replacement unit, replaces described special for the specified alternating content in the alternating content chosen with the user Character string, first spcial character and second spcial character.
The third aspect, the embodiments of the invention provide another terminal, including processor, input equipment, output equipment and Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein, the memory is used to store branch The application code that terminal performs the above method is held, the processor is arranged to the method for performing above-mentioned first aspect.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storage medium Be stored with computer program, and the computer program includes programmed instruction, and described program instruction makes institute when being executed by a processor The method for stating the above-mentioned first aspect of computing device.
By the technical scheme of the application embodiment of the present invention, some users are identified with special string and are frequently necessary to input Content, when detecting user's input special string, provides a user alternating content, and selected with user according to special string In specified alternating content replace special string, so as to realize rapidly inputting for conventional content, improve the input of user Efficiency.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of input method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram for input method that another embodiment of the present invention is provided;
Fig. 3 is a kind of schematic flow diagram for input method that another embodiment of the present invention is provided;
Fig. 4 is a kind of schematic flow diagram for input method that another embodiment of the present invention is provided;
Fig. 5 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 6 is the schematic block diagram of offer unit in a kind of terminal provided in an embodiment of the present invention;
Fig. 7 is the schematic block diagram of the second determining unit in a kind of terminal provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram of acquiring unit in a kind of terminal provided in an embodiment of the present invention;And
Fig. 9 is a kind of terminal schematic block diagram that another embodiment of the present invention is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use such as touch sensitive surface at least one is public Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
It is a kind of schematic flow diagram of input method provided in an embodiment of the present invention, this method can as shown in the figure referring to Fig. 1 Including:
S101, obtains the special string of user's input.
Wherein, the special string is between default first spcial character and default second spcial character.
In specific implementation, the first spcial character for representing and starting inputting special string is preset, and representative will Terminate the second spcial character of input special string.First spcial character can be with the second spcial character it is identical, can also It is to differ.Such as:First spcial character can for "<", the second spcial character can for ">”;It can also be the first special word Symbol and the second spcial character are all " # ".It should be noted that in the following description, the first spcial character be chosen for "<", the Two spcial characters be chosen for ">”.
Setting rule based on more than, spcial character (including the first spcial character and second spcial character) is treated as identification The mark of special string, and cause user can not normally input spcial character.In the present embodiment, input is needed in user During spcial character, input spcial character can be needed in itself by being represented before spcial character plus one other identification symbol. For example, identifier can be " ", now user's input "<" be representative to input "<”.
S102, alternating content is provided according to the special string to the user.
In specific implementation, the content that user is frequently necessary to input is identified with special string.For example, it may be user Personal information, environmental information (temporal information and spatial information) and application content information (short message, calendar stroke, contact person with And mail etc.) etc..When detecting user's input special string, alternating content is provided a user according to the special string (can be an alternating content or multiple alternating contents).
For example, when user input "<time>" when, special string is time, it is known that user want input it is current when Between, therefore the alternating content for representing current time can be provided a user for user's selection, for example, alternating content can be:13: 00,13:00:00.
Specified alternating content in S103, the alternating content chosen with the user replace the special string, First spcial character and second spcial character.
In specific implementation, the alternating content got is arranged in a list and is presented to client, and chosen with user Alternating content is specified to replace the special string, first spcial character and second spcial character, so as to be lifted The input speed of user.
By the technical scheme of application the present embodiment, identify some users with special string and be frequently necessary in input Hold, when detecting user's input special string, alternating content is provided a user according to special string, and chosen with user Specified alternating content replace special string, so as to realize rapidly inputting for conventional content, improve the input effect of user Rate.
It is a kind of schematic flow diagram for input method that another embodiment of the present invention is provided referring to Fig. 2, the party as shown in the figure Method may include:
S201, obtains the special string of user's input.
Wherein, the special string is between default first spcial character and default second spcial character.
In specific implementation, the first spcial character for representing and starting inputting special string is preset, and representative will Terminate the second spcial character of input special string.First spcial character can be with the second spcial character it is identical, can also It is to differ.Such as:First spcial character can for "<", the second spcial character can for ">”;It can also be the first special word Symbol and the second spcial character are all " # ".
S202, judges whether include default scene name character string in the special string, if including going to S203, Otherwise S209 is gone to.
In specific implementation, scene name character string represents the scene for needing to input, and such as " time " is represented when needing input Between scene, " date " represent need the scene of inputting date, " loc " represent need input location information scene.Scene name Character string is claimed to need to preset storage and inform user.When getting the special string of user's input, judge that this is special Whether scene name character string is included in character string, if so, then illustrating that user needs the input scene name character string institute right Content under the input scene answered.
S203, if judged result, which is the special string, includes the scene name character string, according to default The corresponding relation of information type and the scene name character string determines the information type corresponding to the scene name character string.
Information type under each input scene belonging to corresponding content is differed.Needed for example, " date " is represented The scene of inputting date is wanted, the information type belonging to its corresponding content is temporal information;" bir ", which is represented, to be needed to input the birthday Scene, the information type belonging to its corresponding content represents for the personal information and " msg " of user to be needed to input short message content Scene, information type belonging to its corresponding content is application content information.
In the present embodiment, pre-establish and store belonging to the content of scene name character string and corresponding input scene Information type between corresponding relation, after the scene name character string in obtaining special string, pass through this correspondence close System can determine that the information type corresponding to the scene name character string belonging to the content of input scene.
S204, the first alternating content is determined according to the scene name character string and described information type.
In specific implementation, scene name character string is one-to-one with input scene, for example, scene name character string The scene of " date " uniquely with inputting date is corresponding.Content under each input scene belongs to specific information type.It is different The method of its acquisition of the content of information type is also different, for example, " date ", which is represented, needs the scene of inputting date, its is corresponding interior Information type belonging to holding is temporal information, and temporal information can be obtained at the webserver, can also pass through default meter Algorithm calculating is calculated to obtain;" msg " represents the scene for needing to input short message content, and the information type belonging to its corresponding content is should With content information, application content information needs to obtain at corresponding application, and the scene for inputting short message content then needs Obtained at short message application.
It can be seen that, input scene is determined according to the scene name character string first, then according to the content of the input scene Affiliated information type obtains alternating content using different acquisition methods and selected for user.
S205, judges in the special string whether to include default configuration information character string, if comprising going to S206, Otherwise S207 is gone to.
If going matching candidate content only according to input scene, it may be such that the alternating content got is excessive, influence The selection of user.Therefore, in the present embodiment, the scope of alternating content is further reduced according to configuration information character string.Configuration Information character string, equivalent to parameter, parameter difference can limit the size of input scene.
For example, for special string " loc pre=district ", wherein " loc ", which is represented, needs input position information Scene, its location information matched may include:
(1) it is Chinese, Guangdong Province, Shenzhen, Futian District
(2) it is Chinese, Guangdong Province, Shenzhen, Futian District, Shen Nan 8999, Science and Technology Building
Its demand of different users is probably what is differed, and the need of user can be now determined by configuration information character string Ask.Configuration information character string represents positional information for " pre=district " and needs to be accurate to area in this example, therefore, now (1) required for option is user, only individually (1) option is showed to user in alternating content.
It should be noted that configuration information character string is also to preset and store, configuration information character string is used for pair According to input scene match come alternating content further screened.User can be shown by configuration information character string The input demand of itself.
S206, if judged result, which is the special string, includes the configuration information character string, matches somebody with somebody according to Confidence breath character string filters out the second alternating content in first alternating content, and using second alternating content as to The alternating content that the user provides.
In specific implementation, judging to obtain including and default configuration information character string identical word in special string During symbol string, the first alternating content is screened according to the configuration information character string, and by the second alternating content screened As the alternating content provided to the user, so as to further reduce the quantity of alternating content, facilitate the selection of user.
It should be noted that it can also be multiple that the quantity of configuration information character string, which can be one, if configuration information word Symbol string is multiple, then the first alternating content is screened according to configuration information character string successively.Example is as follows:
For special string " cal d=today t=meetings ", wherein, " cal ", which is represented, needs input calendar application letter The scene of breath, " d=today " and " t=meetings " is all configuration information, representative be the conference journey for inserting today content.
S207, if judged result is not include the configuration information character string in the special string, by described the One alternating content is used as the alternating content provided to the user.
In specific implementation, when not including configuration information character string during judgement obtains special string, then by the first candidate Content is used as the alternating content provided to the user.
Specified alternating content in S208, the alternating content chosen with the user replace the special string, First spcial character and second spcial character.
In specific implementation, the alternating content got is arranged in a list and is presented to client, and chosen with user Alternating content is specified to replace the special string, first spcial character and second spcial character, so as to be lifted The input speed of user.
S209, if judged result is does not include scene name character string in the special string, sends out to the user Send input error warning information.
In specific implementation, if judging to obtain not including scene name character string in the special string, used to described Family sends input error warning information, informs that user checks input error.
The technical scheme of the present embodiment, different input scenes, different input fields are identified using scene name character string Under scape, the information type according to belonging to user needs the content inputted determines the acquisition methods of alternating content, and according to configuration Information character string further reduces the scope of alternating content so that the result of recommendation is more accurate.
It is a kind of schematic flow diagram for input method that another embodiment of the present invention is provided referring to Fig. 3, the party as shown in the figure Method may include:
S301, obtains the special string of user's input.
Wherein, the special string is between default first spcial character and default second spcial character.
In specific implementation, the first spcial character for representing and starting inputting special string is preset, and representative will Terminate the second spcial character of input special string.First spcial character can be with the second spcial character it is identical, can also It is to differ.Such as:First spcial character can for "<", the second spcial character can for ">”;It can also be the first special word Symbol and the second spcial character are all " # ".
S302, judges whether include default scene name character string in the special string, if including going to S303, Otherwise S311 is gone to.
In specific implementation, scene name character string represents the scene for needing to input, and such as " time " is represented when needing input Between scene, " date " represent need the scene of inputting date, " loc " represent need input location information scene.Scene name Character string is claimed to need to preset storage and inform user.When getting the special string of user's input, judge that this is special Whether scene name character string is included in character string, if so, then illustrating that user needs the input scene name character string institute right Content under the input scene answered.
S303, if judged result, which is the special string, includes the scene name character string, according to default The corresponding relation of information type and the scene name character string determines the alternating content corresponding to the scene name character string Information type.
Information type under each input scene belonging to corresponding content is differed.Needed for example, " date " is represented The scene of inputting date is wanted, the information type belonging to its corresponding content is temporal information;" bir ", which is represented, to be needed to input the birthday Scene, the information type belonging to its corresponding content represents for the personal information and " msg " of user to be needed to input short message content Scene, information type belonging to its corresponding content is application content information.
In the present embodiment, pre-establish and store belonging to the content of scene name character string and corresponding input scene Information type between corresponding relation, after the scene name character string in obtaining special string, pass through this correspondence close System can determine that the information type corresponding to the scene name character string belonging to the content of input scene.
S304, it is literary from default data according to the scene name character string if described information type is personal information First alternating content is obtained in part.
Wherein, the data file includes the personal information of the user.
In specific implementation, in advance storage user personal information, personal information be all with the directly related information of user, than The motto of such as user, name, birthday.These information are had previously been stored in a data file, user can increase or Delete.It is literary from above-mentioned data according to the scene name character string when the information type for needing to obtain content is personal information The first alternating content is obtained in part.Example is as follows:
Special string " bir " represents the scene for needing to input the birthday, and the information type belonging to its corresponding content is use The personal information at family, the birthday that user is now obtained from above-mentioned data file selects as alternating content for user.
S305, if described information type be environmental information, according to the scene name character string from the webserver and/ Or first alternating content is obtained by default computational algorithm.
In specific implementation, environmental information contains spatial information and temporal information, such as date, positional information and weather letter Breath etc..When the information type for needing to obtain content is environmental information, according to the scene name character string from the webserver And/or first alternating content is obtained by default computational algorithm.Example is as follows:
Special string " date ", which is represented, needs the scene of inputting date, and its corresponding content is temporal information, time letter Breath can be obtained at the webserver, can also be calculated and obtained by default computational algorithm.
Special string " weather " represents the scene for needing to input weather, and its corresponding content is Weather information, weather Information can be obtained at the webserver.
S306, if described information type is application content information, determines that target should according to the scene name character string With, and acquisition first alternating content at the intended application.
In specific implementation, as long as the application for having text data can provide application content information, such as short message, calendar row Journey, contact person and mail etc. are applied.When the information type for needing to obtain content is application content information, first according to scene Name character string determines intended application, and the first alternating content is then obtained at the intended application.It should be noted that for The acquisition of application content information, (part obtains or all obtained the scope that can be clearly obtained by configuration information character string Take), example is as follows:
Special string " pnum name=Zhang San ", " pnum " is that the representative of scene name character string needs to input phone number The scene of code, it is thus determined that intended application is contact person." name=Zhang San " is configuration information character string, and representative needs to obtain name Word is the telephone number of Zhang San." name " can support asterisk wildcard simultaneously, such as " name=* " of pnum, which are just represented, to be inputted All surname Zhang telephone number.
It should be noted that asterisk wildcard is a kind of special sentence, mainly have asterisk " * " and question mark "", for fuzzy Match somebody with somebody, usually replace one or more real characters using asterisk wildcard, asterisk general proxy is more than or equal to 1 character, question mark generation One character of table.Such as " * ", can represent more than two words, such as Zhang San, or Zhang San three, Zhang San three or three;And "” Two words, such as Zhang San can only be represented.
S307, judges whether include default configuration information character string in the special string, if including going to S308, Otherwise S309 is gone to.
If going matching candidate content only according to input scene, it may be such that the alternating content got is excessive, influence The selection of user.Therefore, in the present embodiment, the scope of alternating content is further reduced according to configuration information character string.Configuration Information character string, equivalent to parameter, parameter difference can limit the size of input scene.
S308, if judged result, which is the special string, includes the configuration information character string, matches somebody with somebody according to Confidence breath character string filters out the second alternating content in first alternating content, and using second alternating content as to The alternating content that the user provides.
In specific implementation, judging to obtain including and default configuration information character string identical word in special string During symbol string, the first alternating content is screened according to the configuration information character string, and by the second alternating content screened As the alternating content provided to the user, so as to further reduce the quantity of alternating content, facilitate the selection of user.
S309, if judged result is not include the configuration information character string in the special string, by described the One alternating content is used as the alternating content provided to the user.
In specific implementation, when not including configuration information character string during judgement obtains special string, then by the first candidate Content is used as the alternating content provided to the user.
Specified alternating content in S310, the alternating content chosen with the user replace the special string, First spcial character and second spcial character.
In specific implementation, the alternating content got is arranged in a list and is presented to client, and chosen with user Alternating content is specified to replace the special string, first spcial character and second spcial character, so as to be lifted The input speed of user.
S311, if judged result is does not include scene name character string in the scene identity character string, is used to described Family sends input error warning information.
In specific implementation, if judging to obtain not including scene name character string in the special string, used to described Family sends input error warning information, informs that user checks input error.
It is a kind of schematic flow diagram for input method that another embodiment of the present invention is provided referring to Fig. 4, the party as shown in the figure Method may include:
S401, if detecting first spcial character, starts to obtain the character of user's input.
In specific implementation, the first spcial character for representing and starting inputting special string is preset, and representative will Terminate the second spcial character of input special string.First spcial character can be with the second spcial character it is identical, can also It is to differ.Such as:First spcial character can for "<", the second spcial character can for ">”;It can also be the first special word Symbol and the second spcial character are all " # ".It should be noted that in the following description, the first spcial character be chosen for "<", the Two spcial characters be chosen for ">”.
The character of detection user input, and judge whether the character that user inputs is that the first spcial character or second are special in real time Different character.If detecting first spcial character, start to obtain the character of user's input.
S402, if detecting second spcial character, terminates the acquisition of character inputted to the user, and will obtain All characters got are as the special string.
S403, alternating content is provided according to the special string to the user.
In specific implementation, the content that user is frequently necessary to input is identified with special string.For example, it may be user Personal information, environmental information (temporal information and spatial information) and application content information (short message, calendar stroke, contact person with And mail etc.) etc..When detecting user's input special string, alternating content is provided a user according to the special string (can be an alternating content or multiple alternating contents).
For example, when user input "<time>" when, special string is time, it is known that user want input it is current when Between, therefore the alternating content for representing current time can be provided a user for user's selection, for example, alternating content can be:13: 00,13:00:25.
Specified alternating content in S404, the alternating content chosen with the user replace the special string, First spcial character and second spcial character.
In specific implementation, the alternating content got is arranged in a list and is presented to client, and chosen with user Alternating content is specified to replace the special string, first spcial character and second spcial character, so as to be lifted The input speed of user.
It is a kind of schematic block diagram of terminal 5 provided in an embodiment of the present invention referring to Fig. 5, the terminal 5 can be wrapped as shown in the figure Include:
Acquiring unit 51, the special string for obtaining user's input.
Wherein, the special string is between default first spcial character and default second spcial character.
Unit 52 is provided, for providing alternating content to the user according to the special string.
Replacement unit 53, the spy is replaced for the specified alternating content in the alternating content chosen with the user Different character string, first spcial character and second spcial character.
Fig. 6 is refer to, in certain embodiments, the offer unit includes the first judging unit 521, the second judging unit 522nd, the first determining unit 523, the second determining unit 524, first provide unit 525, second and provide unit 526, and alarm Unit 527, wherein:
First judging unit 521, for judging whether include default scene title word in the special string Symbol string;
First determining unit 523, if the judged result for first judging unit is the special string Include the scene name character string, determined according to the corresponding relation of default information type and the scene name character string Information type corresponding to the scene name character string;
Second determining unit 524, for determining according to the scene name character string and described information type One alternating content;
Second judging unit 522, for judging whether include default configuration information word in the special string Symbol string;
Described first provides unit 525, if the judged result for second judging unit is the special string Include the configuration information character string, second is filtered out in first alternating content according to the configuration information character string Alternating content, and it regard second alternating content as the alternating content provided to the user;
Described second provides unit 526, if the judged result for second judging unit is the special string In not include the configuration information character string, regard first alternating content as the alternating content provided to the user.
The Alarm Unit 527, if the judged result for first judging unit is the scene identity character string In not include scene name character string, to the user send input error warning information.
Refer to Fig. 7, in certain embodiments, second determining unit 524 include personal information acquiring unit 524a, Nvironment information acquisition unit 524b and application content information acquiring unit 524c, wherein:
The personal information acquiring unit 524a, if being personal information for described information type, according to scene name Character string is claimed to obtain first alternating content from default data file;
The nvironment information acquisition unit 524b, if being environmental information for described information type, according to scene name Character string is claimed to obtain first alternating content from the webserver and/or by default computational algorithm;
The application content information acquiring unit 524c, if being application content information for described information type, according to institute State scene name character string and determine intended application, and acquisition first alternating content at the intended application.
Fig. 8 is refer to, in certain embodiments, the acquiring unit 51 includes starting unit 511 and end unit 512, wherein:
The beginning unit 511, if for detecting first spcial character, starting to obtain the word of user's input Symbol;
The end unit 512, if for detecting second spcial character, terminating the character inputted to the user Acquisition, and regard all characters got as the special string.
It is a kind of terminal schematic block diagram that another embodiment of the present invention is provided referring to Fig. 9.In the present embodiment as depicted Terminal can include:One or more processors 901;One or more input equipments 902, one or more output equipments 903 and memory 904.Above-mentioned processor 901, input equipment 902, output equipment 903 and memory 904 are connected by bus 905 Connect.Memory 902 is used for store instruction, and processor 901 is used for the instruction that run memory 902 is stored, and performs following operation:
Obtain user input special string, the special string be in default first spcial character with it is default Between second spcial character;According to the special string alternating content is provided to the user;The institute chosen with the user State specified alternating content in alternating content and replace the special string, first spcial character and described second special Character.
Further, the processor 901 also performs following operation:
Judge whether include default scene name character string in the special string;If judged result is described special Character string includes the scene name character string, then corresponding with the scene name character string according to default information type Relation determines the information type corresponding to the scene name character string;According to the scene name character string and described information Type determines the first alternating content;Judge whether include default configuration information character string in the special string;If judging As a result the configuration information character string is included for the special string, then according to the configuration information character string described the Filter out the second alternating content in one alternating content, and using second alternating content as in the candidate provided to the user Hold;If judged result is does not include the configuration information character string in the special string, by first alternating content The alternating content provided to the user is provided.
Further, the processor 901 also performs following operation:
If described information type is personal information, obtained according to the scene name character string from default data file First alternating content is taken, the data file includes the personal information of the user;If described information type is believed for environment Breath, then obtain first time according to the scene name character string from the webserver and/or by default computational algorithm Select content;If described information type is application content information, intended application is determined according to the scene name character string, and from First alternating content is obtained at the intended application.
Further, the processor 901 also performs following operation:
If detecting first spcial character, start to obtain the character of user's input;If detecting described second Spcial character, terminates the acquisition of character inputted to the user, and regard all characters got as the special word Symbol string.
Further, the processor 901 also performs following operation:
If judged result is does not include scene name character string in the scene identity character string, sent to the user Input error warning information.
It should be appreciated that in embodiments of the present invention, alleged processor 901 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or the processing Device can also be any conventional processor etc..
Input equipment 902 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), microphone etc., output equipment 903 can include display (LCD etc.), loudspeaker etc..
The memory 904 can include read-only storage and random access memory, and to processor 901 provide instruction and Data.The a part of of memory 904 can also include nonvolatile RAM.For example, memory 904 can also be deposited Store up the information of device type.
In specific implementation, processor 901, input equipment 902, output equipment 903 described in the embodiment of the present invention can The implementation described in a kind of input method provided in an embodiment of the present invention is performed, the embodiment of the present invention is also can perform and is retouched The implementation for the terminal stated, will not be repeated here.
A kind of computer-readable recording medium, the computer-readable storage medium are provided in another embodiment of the invention Matter is stored with computer program, and the computer program is realized when being executed by processor:
Obtain user input special string, the special string be in default first spcial character with it is default Between second spcial character;According to the special string alternating content is provided to the user;The institute chosen with the user State specified alternating content in alternating content and replace the special string, first spcial character and described second special Character.
Further, also realized when the computer program is executed by processor:
Judge whether include default scene name character string in the special string;If judged result is described special Character string includes the scene name character string, then corresponding with the scene name character string according to default information type Relation determines the information type corresponding to the scene name character string;According to the scene name character string and described information Type determines the first alternating content;Judge whether include default configuration information character string in the special string;If judging As a result the configuration information character string is included for the special string, then according to the configuration information character string described the Filter out the second alternating content in one alternating content, and using second alternating content as in the candidate provided to the user Hold;If judged result is does not include the configuration information character string in the special string, by first alternating content The alternating content provided to the user is provided.
Further, also realized when the computer program is executed by processor:
If described information type is personal information, obtained according to the scene name character string from default data file First alternating content is taken, the data file includes the personal information of the user;If described information type is believed for environment Breath, then obtain first time according to the scene name character string from the webserver and/or by default computational algorithm Select content;If described information type is application content information, intended application is determined according to the scene name character string, and from First alternating content is obtained at the intended application.
Further, also realized when the computer program is executed by processor:
If detecting first spcial character, start to obtain the character of user's input;If detecting described second Spcial character, terminates the acquisition of character inputted to the user, and regard all characters got as the special word Symbol string.
Further, also realized when the computer program is executed by processor:
If judged result is does not include scene name character string in the scene identity character string, sent to the user Input error warning information.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, for example The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is used to store described Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily When store the data that has exported or will export.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be by it in several embodiments provided herein, it should be understood that disclosed terminal and method Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, mechanical or other forms are connected.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of input method, it is characterised in that including:
The special string of user's input is obtained, the special string is in default first spcial character and default second Between spcial character;
According to the special string alternating content is provided to the user;
Specified alternating content in the alternating content chosen with the user replaces the special string, first spy Different character and second spcial character.
2. according to the method described in claim 1, it is characterised in that described to be provided according to the special string to the user Alternating content, including:
Judge whether include default scene name character string in the special string;
If judged result, which is the special string, includes the scene name character string, according to default information type and The corresponding relation of the scene name character string determines the information type corresponding to the scene name character string;
First alternating content is determined according to the scene name character string and described information type;
Judge whether include default configuration information character string in the special string;
If judged result, which is the special string, includes the configuration information character string, according to the configuration information character String filters out the second alternating content in first alternating content, and second alternating content is carried as to the user The alternating content of confession;
If judged result is does not include the configuration information character string in the special string, by first alternating content The alternating content provided to the user is provided.
3. method according to claim 2, it is characterised in that described according to the scene name character string and the letter Breath type determines the first alternating content, including:
If described information type is personal information, institute is obtained from default data file according to the scene name character string The first alternating content is stated, the data file includes the personal information of the user;
If described information type is environmental information, according to the scene name character string from the webserver and/or by pre- If computational algorithm obtain first alternating content;
If described information type is application content information, intended application is determined according to the scene name character string, and from institute State and first alternating content is obtained at intended application.
4. according to the method described in claim 1, it is characterised in that the special string for obtaining user's input, including:
If detecting first spcial character, start to obtain the character of user's input;
If detecting second spcial character, terminate the acquisition of character inputted to the user, and by the institute got There is character as the special string.
5. method according to claim 2, it is characterised in that methods described also includes:
If judged result is does not include scene name character string in the scene identity character string, send and input to the user Fault alarm information.
6. a kind of terminal, it is characterised in that including:
Acquiring unit, the special string for obtaining user's input, the special string is in the default first special word Between symbol and default second spcial character;
Unit is provided, for providing alternating content to the user according to the special string;
Replacement unit, the spcial character is replaced for the specified alternating content in the alternating content chosen with the user String, first spcial character and second spcial character.
7. terminal according to claim 6, it is characterised in that the offer unit includes:
First judging unit, for judging whether include default scene name character string in the special string;
First determining unit, if the judged result for first judging unit includes the field for the special string Scape name character string, the scene title is determined according to the corresponding relation of default information type and the scene name character string Information type corresponding to character string;
Second determining unit, for determining the first alternating content according to the scene name character string and described information type;
Second judging unit, for judging whether include default configuration information character string in the special string;
First provides unit, if the judged result for second judging unit includes described match somebody with somebody for the special string Confidence ceases character string, and the second alternating content is filtered out in first alternating content according to the configuration information character string, and It regard second alternating content as the alternating content provided to the user;
Second provides unit, if the judged result for second judging unit is described not include in the special string Configuration information character string, regard first alternating content as the alternating content provided to the user.
Alarm Unit, if for first judging unit judged result be the scene identity character string in not include scene Name character string, input error warning information is sent to the user.
8. terminal according to claim 7, it is characterised in that second determining unit includes:
Personal information acquiring unit, if for described information type be personal information, according to the scene name character string from First alternating content is obtained in default data file, the data file includes the personal information of the user;
Nvironment information acquisition unit, if being environmental information for described information type, according to the scene name character string from net Network server and/or pass through default computational algorithm and obtain first alternating content;
Application content information acquiring unit, if being application content information for described information type, according to the scene title word Symbol string determines intended application, and acquisition first alternating content at the intended application.
It is the processor, defeated 9. a kind of terminal, it is characterised in that including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein, the memory is used to store application code, the processing Device is arranged to call described program code, performs the method as described in claim any one of 1-5.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable storage medium is stored with computer program, The computer program includes programmed instruction, and described program instruction makes the computing device such as right when being executed by a processor It is required that the method described in any one of 1-5.
CN201710525471.8A 2017-06-30 2017-06-30 A kind of input method, terminal and computer-readable recording medium Withdrawn CN107300987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710525471.8A CN107300987A (en) 2017-06-30 2017-06-30 A kind of input method, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710525471.8A CN107300987A (en) 2017-06-30 2017-06-30 A kind of input method, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107300987A true CN107300987A (en) 2017-10-27

Family

ID=60136179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710525471.8A Withdrawn CN107300987A (en) 2017-06-30 2017-06-30 A kind of input method, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107300987A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089723A (en) * 2017-12-21 2018-05-29 北京小米移动软件有限公司 Character input method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462100A (en) * 2013-09-16 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462100A (en) * 2013-09-16 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108089723A (en) * 2017-12-21 2018-05-29 北京小米移动软件有限公司 Character input method and device

Similar Documents

Publication Publication Date Title
CN107315532A (en) Electronic installation and belong to the method for different conditions simultaneous display content in electronic installation
CN107656671A (en) Suspend small window control method and device, terminal installation and computer-readable recording medium
CN106681587B (en) A kind of the footmark processing method and terminal of application icon
CN108108216A (en) A kind of method, terminal and computer readable storage medium for managing message
CN106453904A (en) Information reminding method and terminal
CN107704613A (en) A kind of approaches to IM, terminal and computer-readable recording medium
CN107613091A (en) A kind of method and terminal for establishing communication
CN106375548A (en) Method for processing voice information and terminal
CN107908349A (en) Display interface amplification method, terminal and computer-readable recording medium
CN107465818A (en) The method and terminal of a kind of virtual incoming call
CN107018232A (en) A kind of identifying code rendering method and terminal
CN107038080A (en) A kind of method and terminal for obtaining destination object
CN106254677A (en) A kind of scene mode setting method and terminal
CN106502647A (en) A kind of method of split screen application compatible processing and terminal
CN107515666A (en) A kind of data managing method and terminal
CN107729306A (en) A kind of text handling method, terminal and computer-readable medium
CN108304135A (en) A kind of method of adjustment and terminal of virtual modifier key
CN108520186A (en) Record screen method, mobile terminal and computer readable storage medium
CN107300987A (en) A kind of input method, terminal and computer-readable recording medium
CN108052212A (en) A kind of method, terminal and computer-readable medium for inputting word
CN107424604A (en) The processing method and terminal of digital information in a kind of speech message
CN107819937A (en) A kind of memo information based reminding method and device, terminal and readable storage medium storing program for executing
CN107436836A (en) The processing method and relevant device of a kind of journal file
CN107302617A (en) A kind of data managing method and terminal
CN106355309A (en) Processing method and system for business information alteration

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20171027

WW01 Invention patent application withdrawn after publication