CN105487799A - Content conversion method and device - Google Patents

Content conversion method and device Download PDF

Info

Publication number
CN105487799A
CN105487799A CN201510847174.6A CN201510847174A CN105487799A CN 105487799 A CN105487799 A CN 105487799A CN 201510847174 A CN201510847174 A CN 201510847174A CN 105487799 A CN105487799 A CN 105487799A
Authority
CN
China
Prior art keywords
conversion
input
input content
character style
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510847174.6A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510847174.6A priority Critical patent/CN105487799A/en
Publication of CN105487799A publication Critical patent/CN105487799A/en
Pending 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The invention discloses a content conversion method and a content conversion device, and belongs to the technical field of computers. The method comprises the steps of receiving current input content, wherein the input content belongs to a first character form; detecting that whether a conversion signal is received; and if the conversion signal is received, converting the input content into a second character form from the first character form. Therefore, when a user forgets to switch an input method, the input content of the first character form can be directly converted into the input content of the second character form, and thereby the problem that a modification process is complex when the character form of the input content is mistaken due to the fact that the mistaken input content needs to be deleted manually and the content needs to be input again after switching the input method is solved, and the effect of saving the input time is achieved.

Description

Content conversion method and device
Technical field
The disclosure relates to field of computer technology, particularly a kind of content conversion method and device.
Background technology
Usually the situation of the vocabulary of various characters form can be mingled with, such as: " we are for a moment in pub set " in the text message of user's input.Wherein, pub is English character form, and residue vocabulary is simplified Chinese character character style.
In input process, user often forgets and will carry out character style conversion to input method, continues to use original form, causes input error.Such as: user is when inputting pub, and continue to use Chinese character coding input method, then the vocabulary inputted is " generally ".
Summary of the invention
For solving the problem in correlation technique, present disclose provides a kind of content conversion method and device.
According to the first aspect of disclosure embodiment, provide a kind of content conversion method, the method comprises:
Receive this input content, this input content belongs to the first character style;
Detect and whether receive switching signal;
If the switching signal of receiving, then input content is converted to the second character style by the first character style.
Optionally, detect whether receive switching signal, comprising:
Detect the trigger action whether existing and act on conversion control, conversion control is arranged in interface of input method;
Act on the trigger action on conversion control if exist, then determine to receive switching signal.
Optionally, detect whether receive switching signal, also comprise:
Detect and whether there is the conversion gesture acting on interface of input method;
If there is the conversion gesture acting on interface of input method, then determine to receive switching signal.
Optionally, input content is converted to the second character style by the first character style, comprises:
When there is at least two kinds of conversion gestures, obtain the conversion instruction corresponding to conversion gesture according to default corresponding relation, this default corresponding relation is for storing the relation between different conversion gestures and different conversion instructions;
According to conversion instruction, input content is converted to the second character style by the first character style.
Optionally, receive this input content, comprising:
The character that continuous reception is defeated, and when receiving the confirmation signal, stop receiving character;
At least one character this received carries out record as input content.
Optionally, the method, also comprises:
After input content is converted to the second character style by the first character style, delete the input content of this record.
Optionally, the method, also comprises:
If the switching signal of not receiving, then, when receiving the confirmation signal of input next time, delete the input content of this record.
According to the second aspect of disclosure embodiment, provide a kind of context switching mechanism, this device comprises:
Receiver module, is configured to the input content receiving this, and input content belongs to the first character style;
Detection module, is configured to detect whether receive switching signal;
Modular converter, when being configured to the testing result that obtains at detection module for receiving switching signal, is converted to the second character style by input content by the first character style.
Optionally, this detection module, comprising:
First detection sub-module, be configured to detect the trigger action whether existing and act on conversion control, this conversion control is arranged in interface of input method;
First determines submodule, and the testing result being configured to obtain in the first detection sub-module is, when there is the trigger action acted on conversion control, determine to receive switching signal.
Optionally, this detection module, also comprises:
Second detection sub-module, is configured to detect the conversion gesture whether existing and act on interface of input method;
Second determines submodule, be configured to the second detection sub-module detect the result obtained be exist act on the conversion gesture of interface of input method time, determine to receive switching signal.
Optionally, this modular converter, comprising:
Instruction obtains submodule, and be configured to when there is at least two kinds of conversion gestures, obtain the conversion instruction corresponding to conversion gesture according to default corresponding relation, this default corresponding relation is for storing the relation between different conversion gestures and different conversion instructions;
Formal transformation submodule, is configured to the conversion instruction obtaining submodule acquisition according to instruction, input content is converted to the second character style by the first character style.
Optionally, this receiver module, comprising:
Receive character submodule, is configured to the character of continuous reception input, and when receiving the confirmation signal, stops receiving character;
Content record submodule, at least one character being configured to this receive character submodule to receive carries out record as input content.
Optionally, this device, also comprises:
First removing module, is configured to after input content is converted to the second character style by the first character style by modular converter, deletes the input content of this record.
Optionally, this device, also comprises:
Second removing module, the testing result being configured to obtain at detection module is when not receiving switching signal, if receive the confirmation signal of input next time, then deletes the input content of this record.
According to the third aspect of disclosure embodiment, provide a kind of context switching mechanism, this device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, processor is configured to:
Receive this input content, input content belongs to the first character style;
Detect and whether receive switching signal;
If the switching signal of receiving, then input content is converted to the second character style by the first character style.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
By receiving this input content; Detect and whether receive switching signal; If the switching signal of receiving, then input content is converted to the second character style by the first character style, make user can forget switch input method time, directly the input content of the first character style is converted to the input content of the second character style, solve when the character style of input content is made mistakes, need the input content of mistake manually to delete, then input method is re-entered, thus the problem of the modification process complexity caused, reach the effect of saving input time.
In addition, the content conversion method that the disclosure provides, by obtaining according to presetting corresponding relation the conversion instruction changed corresponding to gesture; According to conversion instruction, input content is converted to the second character style by the first character style, user is made not need to select the conversion regime of character style, simplify retouching operation further, solve user when selecting character style conversion regime, the problem of complex operation, reaches the effect of saving modification time further.
In addition, the content conversion method that the disclosure provides, by deleting the input content of this record, make input method in use, only need to take a fraction of spatial cache, solve input method and take too much storage resources, thus the problem causing terminal card to pause, reach and save terminal storage resource, improve the effect of input efficiency.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form a part for present disclosure specification, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of a kind of content conversion method according to an exemplary embodiment.
The process flow diagram of a kind of content conversion method of Fig. 2 A according to another exemplary embodiment.
The scene graph of a kind of content conversion method of Fig. 2 B according to an exemplary embodiment.
The scene graph of a kind of content conversion method of Fig. 2 C according to an exemplary embodiment.
The scene graph of a kind of content conversion method of Fig. 2 D according to an exemplary embodiment.
Fig. 3 is the block diagram of a kind of context switching mechanism according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of context switching mechanism according to an exemplary embodiment.
Fig. 5 is the block diagram of a kind of device for Content Transformation according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Terminal alleged by the disclosure is arbitrary electronic equipment that can use input method, as: PC, mobile phone, palm PC etc., the disclosure does not limit terminal.
Fig. 1 is the process flow diagram of a kind of content conversion method according to an exemplary embodiment, and this content conversion method is applied in terminal, and as shown in Figure 1, this content conversion method comprises the following steps.
In a step 101, receive this input content, this input content belongs to the first character style.
In a step 102, detect whether receive switching signal.
In step 103, if the switching signal of receiving, then input content is converted to the second character style by the first character style.
In sum, the content conversion method that the disclosure provides, by receiving this input content; Detect and whether receive switching signal; If the switching signal of receiving, then input content is converted to the second character style by the first character style, make user can forget switch input method time, directly the input content of the first character style is converted to the input content of the second character style, solve when the character style of input content is made mistakes, need the input content of mistake manually to delete, then input method is re-entered, thus the problem of the modification process complexity caused, reach the effect of saving input time.
Fig. 2 A is the process flow diagram of a kind of content conversion method according to another exemplary embodiment, and this content conversion method is applied in terminal, and as shown in Figure 2 A, this content conversion method comprises the steps.
In step 201, receive this input content, this input content belongs to the first character style.
The input method input character of user by installing in terminal.Because user may need the character inputting various characters form, therefore, input method needs the input mode providing various characters form.Usually, be provided with the control of character style conversion in interface of input method, user can realize character style conversion by triggering this character style conversion control.Wherein, the character style that input method provides comprises Chinese, English, Japanese, German, arabic numeral etc., and the present embodiment is not construed as limiting.In the present embodiment, the language except country variant belongs to except kinds of characters form, and the different written forms of the same national languages such as the capitalization of English alphabet and the simplified and traditional font of small letter, Chinese, the Chinese character of Chinese and phonetic also belong to different character styles.
In the present embodiment, the method receiving this input content comprises: the character of terminal continuous reception user input, and when receiving the confirmation signal, stops receiving character; At least one character that this receives by terminal carries out record as input content.Wherein, the character style belonging to this input content received of terminal is called the first character style, and this first character style can be arbitrary character style such as Chinese, English, arabic numeral, and the present embodiment does not limit.
In step 202., detect whether receive switching signal.
When the content of user's input comprises various characters form, and when user forgets switching character style, easily cause the character style of input content to make mistakes, now, user needs to change the character style of the input content of makeing mistakes.Therefore, terminal needs to detect the switching signal whether receiving user and trigger, if the switching signal of not receiving, then performs step 203; If the switching signal of receiving, then perform step 204.
Present embodiments provide two kinds and detect the implementation whether receiving switching signal, respectively these two kinds of implementations are introduced below.
In the embodiment that the first is possible, terminal detects the trigger action whether existing and act on conversion control, and this conversion control is arranged in interface of input method; Act on the trigger action on conversion control if exist, then determine to receive switching signal.
Wherein, trigger action can for acting on the single-click operation, double click operation etc. on conversion control, and the present embodiment is not construed as limiting.Wherein, conversion control can be a button in interface of input method, and also can be the combination of the multiple buttons in interface of input method, the present embodiment be not construed as limiting.
Such as: please refer to Fig. 2 B, user clicks the conversion control 5 on the interface of input method 4 in terminal 2, and this clicking operation is trigger action, and now, terminal 2 confirms to receive switching signal.
Optionally, change control can also be positioned at outside interface of input method.Now, terminal sets up the incidence relation between conversion control and interface of input method.That is, when current interface comprises interface of input method, show this conversion control, when current interface does not comprise interface of input method, do not show this conversion control.Wherein, this conversion control can be positioned at any position outside inputting interface, such as: the upper right corner of current interface, the upper left corner etc. of current interface, the present embodiment is not construed as limiting.
In the embodiment that the second is possible, terminal detects whether there is the conversion gesture acting on interface of input method; If there is the conversion gesture acting on interface of input method, then determine to receive switching signal.
Wherein, conversion gesture performs predetermined action by user and obtains in interface of input method, and the shape of conversion gesture can be arranged voluntarily by user and revise.Such as, user describes a circle at interface of input method, obtains changing gesture; Or user draws " Z " type pattern at interface of input method, obtain conversion gesture etc.
Such as: please refer to Fig. 2 C, the interface of input method 4 upper drawing circle circle 6 of user in terminal 2, now, terminal 2 confirms to receive switching signal.
Optionally, change gesture can also act on outside interface of input method.Now, when current interface comprises interface of input method, whether terminal direct-detection current interface exists conversion gesture; When detecting that current interface exists conversion gesture, terminal check receives switching signal.
In step 203, if the switching signal of not receiving, when receiving the confirmation signal of input next time, delete the input content of this record.
If terminal does not receive switching signal, then illustrate that the content of user's input is correct, terminal, when receiving the confirmation signal of input next time, deletes the input content of this record.
Wherein, if the last input content of user, then terminal can not receive the confirmation signal of input next time, now, time threshold between this confirmation signal receiving input and the confirmation signal receiving input next time can be set in the terminal, when arriving this time threshold, if terminal does not also receive the confirmation signal of input next time, then delete the input content of this record.
Or terminal can judge whether current page comprises interface of input method, if judged result is current page comprise interface of input method, then delete the input content of this record.
In step 204, if the switching signal of receiving, input content is converted to the second character style by the first character style.
If terminal receives switching signal, then illustrate that the content of user's input is wrong, need to modify to this input content.
When switching signal is the trigger action that acts on conversion control and only there is the character style conversion regime being converted to the second character style by the first character style in terminal, this input content recorded, after receiving this trigger action, is directly converted to the second character style by the first character style by terminal.In the present embodiment, the character style after being changed by input content is called the second character style.
Such as: in terminal, only there is a kind of character style conversion regime Chinese being converted to English, then terminal receives the trigger action acted on conversion control, directly converts input content to English by Chinese, now, first character style is Chinese, and the second character style is English.
Or, when switching signal be act on conversion control on trigger action and there is various characters formal transformation mode in terminal time, terminal is after receiving this trigger action, generate a character style transition interface, this character style transition interface comprises various characters formal transformation mode, user selects a kind of character style conversion regime in this character style transition interface, if this character style conversion regime is the first character style be converted to the second character style, then this input content recorded is converted to the second character style by the first character style.
Wherein, the second character style and the first character style are in implication or there is contact in form.When the second character style and the first character style exist in implication contact time, all there is a corresponding dictionary in each conversion regime.
Such as: the second character style and the first character style exist in form and contact, first character style is simplified Chinese character, second character style is English, when input content is converted to the second character style by the first character style by terminal, directly the character of record is converted to English alphabet by phonetic; Or the first character style is Chinese, and the second character style is phonetic, when input content is converted to the second character style by the first character style by terminal, if user adopts the mode of phonetic to export Chinese, now directly export the input content of record.
Such as: the second character style and the first character style exist contact in implication, first character style is simplified Chinese character, second character style is arabic numeral, when input content is converted to the second character style by the first character style by terminal, semantics recognition is carried out to the input content of record, is converted in the dictionary of arabic numeral the input content searching the second identical character style of implication at simplified Chinese character; Or, first character style is simplified Chinese character, and the second character style is traditional Chinese, when input content is converted to the second character style by the first character style by terminal, be converted in the dictionary of traditional Chinese at simplified Chinese character, search the input content of second character style corresponding with this input content.
Apparently, by triggering conversion control, input content is converted to the second character style by the first character style, make user can forget switch input method time, directly the input content of the first character style is converted to the input content of the second character style, solve when the character style of input content is made mistakes, need the input content of mistake manually to delete, then input method is re-entered, thus the problem of the modification process complexity caused, reach the effect of saving input time.
Optionally, only there is a kind of conversion gesture in the terminal, and this conversion gesture only corresponding a kind of conversion instruction time, this input content recorded, after receiving conversion gesture, is directly converted to the second character style by the first character style by terminal.Or,
When there is at least two kinds of conversion gestures in terminal, after terminal receives conversion gesture, searching the preset relation of storage, obtaining the conversion instruction corresponding to this conversion gesture according to default corresponding relation.If this conversion instruction is for be converted to the second character style by the first character style, then terminal is according to conversion instruction, and input content is converted to the second character style by the first character style.
Wherein, corresponding relation is preset for storing the relation between different conversion gestures and different conversion instructions.This default corresponding relation can by user's sets itself.
Such as: the conversion instruction of conversion gesture " o " correspondence is for be converted to English by simplified Chinese character; The conversion instruction of conversion gesture " s " correspondence is for be converted to simplified Chinese character by English; The conversion instruction of conversion gesture " L " correspondence is for be converted to traditional Chinese etc. by simplified Chinese character, the present embodiment does not limit the preset relation between conversion gesture and conversion instruction, and the quantity of conversion gesture corresponding to conversion instruction is not limited, also namely, user can arrange the corresponding conversion instruction of multiple conversion gesture.
Multiple conversion gesture and multiple conversion instruction to the time in of corresponding occur for preventing user remembering deviation, when the content of input is converted to the second character style by the first character style according to conversion instruction by terminal, conversion instruction can be shown, the conversion instruction that this conversion gesture of prompting user is corresponding in interface of input method.
Such as: user is input character " pub " in the terminal, now, the first character style is simplified Chinese character, then the alternating content shown is " generally ".After user makes conversion gesture " o " in interface of input method, terminal searches the default corresponding relation of storage, corresponding conversion instruction is obtained for simplified Chinese character is converted to English according to default corresponding relation, namely, now the second character style is English, in interface of input method, then demonstrate the printed words of " simplified Chinese character-> is English ", and the input content that this records by terminal " pub " is converted to English " pub " by simplified Chinese character " generally ".
Such as: user needs to input " we yihui gathers at pub ", and when input content is " yihui ", the first character style is simplified Chinese character, and the alternating content of display is " for a moment ".After user performs conversion gesture " p " in interface of input method, terminal searches the default corresponding relation of storage, corresponding conversion instruction is obtained for simplified Chinese character is converted to phonetic according to default corresponding relation, namely, now the second character style is phonetic, in interface of input method, then demonstrate the printed words of " simplified Chinese character-> phonetic ", and the input content that this records by terminal " yihui " is converted to phonetic " yihui " by simplified Chinese character " for a moment ".
Apparently, by making conversion gesture in interface of input method, according to conversion gesture, input content is converted to the second character style by the first character style, make user can forget switch input method time, directly the input content of the first character style is converted to the input content of the second character style, solve when the character style of input content is made mistakes, the input content of mistake is needed manually to delete, then input method is re-entered, thus the problem of the modification process complexity caused, reach the effect of saving input time.
In step 205, the input content of this record is deleted.
Terminal, after input content is converted to the second character style by the first character style, replaces the input content of the first character style with the input content of the second character style.Also namely, the input content of original first character style is deleted by terminal, then inserts the input content of the second character style.After terminal modifications input content, this input content recorded is deleted.
Such as: please refer to Fig. 2 D, the input content of user in terminal 2 " we are for a moment general ", after input " generally ", user makes conversion gesture " o " on interface of input method, simplified Chinese character " generally " is converted to English " pub " by terminal, and with " pub " replacement " generally ".
It should be noted that, after the input content that this records by terminal is deleted, if user proceeds input operation, the input content that terminal receives, is still the first character style.
In sum, the content conversion method that the disclosure provides, by receiving this input content; Detect and whether receive switching signal; If the switching signal of receiving, then input content is converted to the second character style by the first character style, make user can forget switch input method time, directly the input content of the first character style is converted to the input content of the second character style, solve when the character style of input content is made mistakes, need the input content of mistake manually to delete, then input method is re-entered, thus the problem of the modification process complexity caused, reach the effect of saving input time.
In addition, the content conversion method that the disclosure provides, by obtaining according to presetting corresponding relation the conversion instruction changed corresponding to gesture; According to conversion instruction, input content is converted to the second character style by the first character style, user is made not need to select the conversion regime of character style, save the step of retouching operation further, solve user when selecting character style conversion regime, the problem of losing time, reaches the effect of saving input time further.
In addition, the content conversion method that the disclosure provides, by deleting the input content of this record, make input method in use, only need to take a fraction of spatial cache, solve input method and take excessive terminal storage resource, thus the problem that the terminal card caused pauses, reach and save terminal storage resource, improve the effect of input efficiency.
Fig. 3 is the block diagram of a kind of context switching mechanism according to an exemplary embodiment, and this context switching mechanism is applied in terminal, and as shown in Figure 3, this context switching mechanism comprises: receiver module 310, detection module 320, modular converter 330.
This receiver module 310, is configured to the input content receiving this, and input content belongs to the first character style;
This detection module 320, is configured to detect whether receive switching signal;
This modular converter 330, when being configured to the testing result that obtains at detection module 320 for receiving switching signal, is converted to the second character style by input content by the first character style.
In sum, the context switching mechanism that the disclosure provides, by receiving this input content; Detect and whether receive switching signal; If the switching signal of receiving, then input content is converted to the second character style by the first character style, make user can forget switch input method time, directly the input content of the first character style is converted to the input content of the second character style, solve when the character style of input content is made mistakes, need the input content of mistake manually to delete, then input method is re-entered, thus the problem of the modification process complexity caused, reach the effect of saving input time.
Fig. 4 is the block diagram of a kind of context switching mechanism according to an exemplary embodiment, and this context switching mechanism is applied in terminal, and as shown in Figure 4, this context switching mechanism comprises: receiver module 410, detection module 420, modular converter 430.
This receiver module 410, is configured to the input content receiving this, and input content belongs to the first character style;
This detection module 420, is configured to detect whether receive switching signal;
This modular converter 430, when being configured to the testing result that obtains at detection module 420 for receiving switching signal, is converted to the second character style by input content by the first character style.
Optionally, this detection module 420, comprising: the first detection sub-module 421, first determines submodule 422.
This first detection sub-module 421, be configured to detect the trigger action whether existing and act on conversion control, this conversion control is arranged in interface of input method;
This first determines submodule 422, and the testing result being configured to obtain in the first detection sub-module 421 is, when there is the trigger action acted on conversion control, determine to receive switching signal.
Optionally, this detection module 420, also comprises: the second detection sub-module 423, second determines submodule 424.
This second detection sub-module 423, is configured to detect the conversion gesture whether existing and act on interface of input method;
This second determines submodule 424, and the testing result being configured to obtain in the second detection sub-module 423 is exist when acting on the conversion gesture of interface of input method, determines to receive switching signal.
Optionally, this modular converter 430, comprising: instruction obtains submodule 431, character style transform subblock 432.
This instruction obtains submodule 431, be configured to when there is at least two kinds of conversion gestures, obtain the conversion instruction corresponding to conversion gesture according to default corresponding relation, this default corresponding relation is for storing the relation between different conversion gestures and different conversion instructions;
This formal transformation submodule 432, is configured to the conversion instruction obtaining submodule 431 acquisition according to instruction, input content is converted to the second character style by the first character style.
Optionally, this receiver module 410, comprising: receive character submodule 411, content record submodule 412.
Receive character submodule 411, is configured to the character of continuous reception input, and when receiving the confirmation signal, stops receiving character;
Content record submodule 412, at least one character being configured to this receive character submodule 411 to receive carries out record as input content.
Optionally, this device, also comprises: the first removing module 440.
This first removing module 440, is configured to after input content is converted to the second character style by the first character style by modular converter 430, deletes the input content of this record.
Optionally, this device, also comprises: the second removing module 450.
This second removing module 450, the testing result being configured to obtain at detection module 420 is when not receiving switching signal, if receive the confirmation signal of input next time, then deletes the input content of this record.
In sum, the context switching mechanism that the disclosure provides, by receiving this input content; Detect and whether receive switching signal; If the switching signal of receiving, then input content is converted to the second character style by the first character style, make user can forget switch input method time, directly the input content of the first character style is converted to the input content of the second character style, solve when the character style of input content is made mistakes, need the input content of mistake manually to delete, then input method is re-entered, thus the problem of the modification process complexity caused, reach the effect of saving input time.
In addition, the content conversion method that the disclosure provides, by obtaining according to presetting corresponding relation the conversion instruction changed corresponding to gesture; According to conversion instruction, input content is converted to the second character style by the first character style, user is made not need to select the conversion regime of character style, save the step of retouching operation further, solve user when selecting character style conversion regime, the problem of losing time, reaches the effect of saving input time further.
In addition, the content conversion method that the disclosure provides, by deleting the input content of this record, make input method in use, only need to take a fraction of spatial cache, solve input method and take excessive terminal storage resource, thus the problem that the terminal card caused pauses, reach and save terminal storage resource, improve the effect of input efficiency.
Device is as shown in Figure 3 and Figure 4 for realizing above-mentioned method flow as shown in Fig. 1 to Fig. 2 D, and related content has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
The disclosure one exemplary embodiment provides a kind of context switching mechanism, can realize the content conversion method that the disclosure provides, and this context switching mechanism comprises: processor, storer for storage of processor executable instruction;
Wherein, processor is configured to:
Receive this input content, input content belongs to the first character style;
Detect and whether receive switching signal;
If the switching signal of receiving, then input content is converted to the second character style by the first character style.
Fig. 5 is the block diagram of a kind of device 500 for Content Transformation according to an exemplary embodiment.Such as, device 500 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 5, device 500 can comprise following one or more assembly: processing components 502, storer 504, power supply module 506, multimedia groupware 508, audio-frequency assembly 510, the interface 512 of I/O (I/O), sensor module 514, and communications component 516.
The integrated operation of the usual control device 500 of processing components 502, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 502 can comprise one or more processor 518 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 502 can comprise one or more module, and what be convenient between processing components 502 and other assemblies is mutual.Such as, processing components 502 can comprise multi-media module, mutual with what facilitate between multimedia groupware 508 and processing components 502.
Storer 504 is configured to store various types of data to be supported in the operation of device 500.The example of these data comprises the instruction of any application program for operating on device 500 or method, contact data, telephone book data, message, picture, video etc.Storer 504 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 506 is device 500 provide electric power.Power supply module 506 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 500 and be associated.
Multimedia groupware 508 is included in the screen providing an output interface between described device 500 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 508 comprises a front-facing camera and/or post-positioned pick-up head.When device 500 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 510 is configured to export and/or input audio signal.Such as, audio-frequency assembly 510 comprises a microphone (MIC), and when device 500 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 504 further or be sent via communications component 516.In certain embodiments, audio-frequency assembly 510 also comprises a loudspeaker, for output audio signal.
I/O interface 512 is for providing interface between processing components 502 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 514 comprises one or more sensor, for providing the state estimation of various aspects for device 500.Such as, sensor module 514 can detect the opening/closing state of device 500, the relative positioning of assembly, such as described assembly is display and the keypad of device 500, the position of all right pick-up unit 500 of sensor module 514 or device 500 1 assemblies changes, the presence or absence that user contacts with device 500, the temperature variation of device 500 orientation or acceleration/deceleration and device 500.Sensor module 514 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 514 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 514 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 516 is configured to the communication being convenient to wired or wireless mode between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 516 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 516 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 500 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 504 of instruction, above-mentioned instruction can perform said method by the processor 518 of device 500.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Those skilled in the art, at consideration instructions and after putting into practice disclosure herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (15)

1. a content conversion method, is characterized in that, described method comprises:
Receive this input content, described input content belongs to the first character style;
Detect and whether receive switching signal;
If receive described switching signal, then described input content is converted to the second character style by described first character style.
2. described method according to claim 1, it is characterized in that, whether described detection receives switching signal, comprising:
Detect the trigger action whether existing and act on conversion control, described conversion control is arranged in interface of input method;
If there is the described trigger action acted on described conversion control, then determine to receive described switching signal.
3. described method according to claim 1, it is characterized in that, whether described detection receives switching signal, also comprises:
Detect and whether there is the conversion gesture acting on interface of input method;
If there is the described conversion gesture acting on described interface of input method, then determine to receive described switching signal.
4. method according to claim 3, is characterized in that, described described input content is converted to the second character style by described first character style, comprising:
When there is at least two kinds of conversion gestures, obtain the conversion instruction corresponding to described conversion gesture according to default corresponding relation, described default corresponding relation is for storing the relation between different conversion gestures and different conversion instructions;
According to described conversion instruction, described input content is converted to described second character style by described first character style.
5. according to the arbitrary described method of Claims 1-4, it is characterized in that, this input content of described reception, comprising:
The character of continuous reception input, and when receiving the confirmation signal, stop receiving character;
At least one character this received carries out record as described input content.
6. method according to claim 5, is characterized in that, described method, also comprises:
After described input content is converted to the second character style by described first character style, delete the described input content of this record.
7. method according to claim 5, is characterized in that, described method, also comprises:
If do not receive described switching signal, then, when receiving the confirmation signal of input next time, delete the described input content of this record.
8. a context switching mechanism, is characterized in that, described device comprises:
Receiver module, is configured to the input content receiving this, and described input content belongs to the first character style;
Detection module, is configured to detect whether receive switching signal;
Modular converter, when being configured to the testing result that obtains at described detection module for receiving described switching signal, is converted to the second character style by described input content by described first character style.
9. described device according to claim 8, it is characterized in that, described detection module, comprising:
First detection sub-module, be configured to detect the trigger action whether existing and act on conversion control, described conversion control is arranged in interface of input method;
First determines submodule, and the testing result being configured to obtain in described first detection sub-module is, when there is the described trigger action acted on described conversion control, determine to receive described switching signal.
10. described device according to claim 8, it is characterized in that, described detection module, also comprises:
Second detection sub-module, is configured to detect the conversion gesture whether existing and act on interface of input method;
Second determines submodule, and the testing result being configured to obtain in described second detection sub-module is exist when acting on the described conversion gesture of described interface of input method, determines to receive described switching signal.
11. devices according to claim 10, is characterized in that, described modular converter, comprising:
Instruction obtains submodule, be configured to when there is at least two kinds of conversion gestures, obtain the conversion instruction corresponding to described conversion gesture according to default corresponding relation, described default corresponding relation is for storing the relation between different conversion gestures and different conversion instructions;
Formal transformation submodule, is configured to the described conversion instruction obtaining submodule acquisition according to described instruction, described input content is converted to described second character style by described first character style.
Device described in 12. according to Claim 8 to 11 are arbitrary, it is characterized in that, described receiver module, comprising:
Receive character submodule, is configured to the character of continuous reception input, and when receiving the confirmation signal, stops receiving character;
Content record submodule, at least one character being configured to receive character submodule described in this to receive carries out record as described input content.
13. devices according to claim 12, is characterized in that, described device, also comprises:
First removing module, is configured to after described input content is converted to the second character style by described first character style by described modular converter, deletes the described input content of this record.
14. devices according to claim 12, is characterized in that, described device, also comprises:
Second removing module, the testing result being configured to obtain at described detection module is when not receiving described switching signal, if receive the confirmation signal of input next time, then deletes the described input content of this record.
15. 1 kinds of context switching mechanism, is characterized in that, described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive this input content, described input content belongs to the first character style;
Detect and whether receive switching signal;
If receive described switching signal, then described input content is converted to the second character style by described first character style.
CN201510847174.6A 2015-11-27 2015-11-27 Content conversion method and device Pending CN105487799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510847174.6A CN105487799A (en) 2015-11-27 2015-11-27 Content conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510847174.6A CN105487799A (en) 2015-11-27 2015-11-27 Content conversion method and device

Publications (1)

Publication Number Publication Date
CN105487799A true CN105487799A (en) 2016-04-13

Family

ID=55674806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510847174.6A Pending CN105487799A (en) 2015-11-27 2015-11-27 Content conversion method and device

Country Status (1)

Country Link
CN (1) CN105487799A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020679A (en) * 2016-04-29 2016-10-12 深圳市金立通信设备有限公司 Input control method and terminal
CN106201018A (en) * 2016-08-15 2016-12-07 北京小米移动软件有限公司 Method and apparatus for character input
CN109361814A (en) * 2018-09-25 2019-02-19 联想(北京)有限公司 A kind of control method and electronic equipment
CN110456919A (en) * 2018-05-07 2019-11-15 北京搜狗科技发展有限公司 Data processing method, device and the device for data processing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593079A (en) * 2008-05-27 2009-12-02 株式会社Ntt都科摩 Character entry apparatus and characters input method
CN102117150A (en) * 2011-03-30 2011-07-06 汉王科技股份有限公司 Character post-processing method and system
CN102135808A (en) * 2010-01-22 2011-07-27 腾讯科技(深圳)有限公司 Input mode switching method and device
WO2013157157A1 (en) * 2012-04-20 2013-10-24 シャープ株式会社 Input character string conversion device, electronic device, input character string conversion method and character string conversion program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593079A (en) * 2008-05-27 2009-12-02 株式会社Ntt都科摩 Character entry apparatus and characters input method
CN102135808A (en) * 2010-01-22 2011-07-27 腾讯科技(深圳)有限公司 Input mode switching method and device
CN102117150A (en) * 2011-03-30 2011-07-06 汉王科技股份有限公司 Character post-processing method and system
WO2013157157A1 (en) * 2012-04-20 2013-10-24 シャープ株式会社 Input character string conversion device, electronic device, input character string conversion method and character string conversion program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020679A (en) * 2016-04-29 2016-10-12 深圳市金立通信设备有限公司 Input control method and terminal
CN106201018A (en) * 2016-08-15 2016-12-07 北京小米移动软件有限公司 Method and apparatus for character input
CN110456919A (en) * 2018-05-07 2019-11-15 北京搜狗科技发展有限公司 Data processing method, device and the device for data processing
CN109361814A (en) * 2018-09-25 2019-02-19 联想(北京)有限公司 A kind of control method and electronic equipment

Similar Documents

Publication Publication Date Title
US10923118B2 (en) Speech recognition based audio input and editing method and terminal device
CN105528606A (en) Region identification method and device
RU2609033C1 (en) Input method and input system
CN105549849A (en) Method and device for processing misoperation instruction
CN107688399B (en) Input method and device and input device
CN104679599A (en) Application program duplicating method and device
CN104834559A (en) Notification message display method and device
CN105260360A (en) Named entity identification method and device
CN105447109A (en) Key word searching method and apparatus
CN103914148A (en) Function interface display method and device and terminal equipment
CN105511777A (en) Session display method and device of touch display screen
CN104461348A (en) Method and device for selecting information
CN104503690A (en) Arrangement method and device for application icons
CN107037888B (en) Input method, input device and input device
CN104571709A (en) Mobile terminal and processing method of virtual keys
CN105487799A (en) Content conversion method and device
CN104598534A (en) Picture folding method and device
CN105094626A (en) Method and device for selecting text contents
CN106774976A (en) input method switching method and device
CN105630749A (en) Extraction method and device of digital information
CN105095170A (en) Text deleting method and device
CN105159472A (en) Input method switching method and device
CN104636064A (en) Gesture generating method and device
CN105426065A (en) Browsing position marking method and device
CN104636320A (en) Data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413