CN105487799A - Content conversion method and device - Google Patents
Content conversion method and device Download PDFInfo
- 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
- character form
- input content
- received
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 242
- 238000000034 method Methods 0.000 title claims abstract description 124
- 238000001514 detection method Methods 0.000 claims description 35
- 238000012790 confirmation Methods 0.000 claims description 17
- 230000007704 transition Effects 0.000 claims description 10
- 230000000694 effects Effects 0.000 abstract description 14
- 230000004048 modification Effects 0.000 abstract description 13
- 238000012986 modification Methods 0.000 abstract description 13
- 230000008569 process Effects 0.000 abstract description 12
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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/04883—Interaction 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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The 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
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a content conversion method and apparatus.
Background
The text information input by the user is often mixed with words in various character forms, such as: "We will be in pub collection". Wherein pub is the English character form, and the rest words are the Chinese simplified character form.
In the input process, a user often forgets to perform character form conversion on an input method, and continues to use the original format, so that input errors are caused. For example: when the user continues to use the Chinese input method when inputting pub, the input vocabulary is 'universal'.
Disclosure of Invention
To solve the problems in the related art, the present disclosure provides a content conversion method and apparatus.
According to a first aspect of embodiments of the present disclosure, there is provided a content conversion method, including:
receiving input content of the current time, wherein the input content belongs to a first character form;
detecting whether a conversion signal is received;
if the conversion signal is received, the input content is converted from the first character form to the second character form.
Optionally, detecting whether the converted signal is received includes:
detecting whether a trigger operation acting on a conversion control exists, wherein the conversion control is positioned in an input method interface;
and if the triggering operation acting on the conversion control exists, determining that the conversion signal is received.
Optionally, detecting whether the converted signal is received further includes:
detecting whether a conversion gesture acting on an input method interface exists;
and if the conversion gesture acting on the input method interface exists, determining that the conversion signal is received.
Optionally, converting the input content from the first character form to the second character form includes:
when at least two conversion gestures exist, acquiring a conversion instruction corresponding to the conversion gesture according to a preset corresponding relation, wherein the preset corresponding relation is used for storing the relation between different conversion gestures and different conversion instructions;
and converting the input content from the first character form to the second character form according to the conversion instruction.
Optionally, receiving the input content of this time includes:
continuously receiving the input characters, and stopping receiving the characters when receiving the confirmation signal;
and recording at least one character received this time as input content.
Optionally, the method further includes:
and deleting the input content recorded this time after converting the input content from the first character form to the second character form.
Optionally, the method further includes:
if the conversion signal is not received, deleting the input content recorded this time when receiving the confirmation signal input next time.
According to a second aspect of the embodiments of the present disclosure, there is provided a content conversion apparatus including:
the receiving module is configured to receive input content of the current time, wherein the input content belongs to a first character form;
a detection module configured to detect whether a converted signal is received;
and the conversion module is configured to convert the input content from the first character form to the second character form when the detection result obtained by the detection module is that the conversion signal is received.
Optionally, the detection module includes:
the first detection submodule is configured to detect whether a trigger operation acting on a conversion control exists, and the conversion control is located in the input method interface;
and the first determination sub-module is configured to determine that the conversion signal is received when the detection result obtained by the first detection sub-module is that the trigger operation acting on the conversion control exists.
Optionally, the detection module further includes:
the second detection submodule is configured to detect whether a conversion gesture acting on the input method interface exists or not;
and the second determination submodule is configured to determine that a conversion signal is received when the second detection submodule detects that a conversion gesture acting on the input method interface exists.
Optionally, the conversion module includes:
the instruction acquisition submodule is configured to acquire a conversion instruction corresponding to a conversion gesture according to a preset corresponding relation when at least two conversion gestures exist, wherein the preset corresponding relation is used for storing the relation between different conversion gestures and different conversion instructions;
and the form conversion sub-module is configured to convert the input content from the first character form to the second character form according to the conversion instruction acquired by the instruction acquisition sub-module.
Optionally, the receiving module includes:
a character receiving sub-module configured to continuously receive an input character and stop receiving the character when receiving the confirmation signal;
and the content recording submodule is configured to record at least one character received by the character receiving submodule at this time as input content.
Optionally, the apparatus further includes:
and the first deleting module is configured to delete the input content recorded at this time after the converting module converts the input content from the first character form to the second character form.
Optionally, the apparatus further includes:
and the second deleting module is configured to delete the input content recorded at this time if a confirmation signal input next time is received when the detection result obtained by the detecting module is that the conversion signal is not received.
According to a third aspect of the embodiments of the present disclosure, there is provided a content conversion apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving input content of the current time, wherein the input content belongs to a first character form;
detecting whether a conversion signal is received;
if the conversion signal is received, the input content is converted from the first character form to the second character form.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
receiving the input content of this time; detecting whether a conversion signal is received; if the conversion signal is received, the input content is converted from the first character form to the second character form, so that the user can directly convert the input content in the first character form into the input content in the second character form when forgetting to switch the input method, the problems that when the character form of the input content is wrong, the wrong input content needs to be manually deleted, and then the input method is input again, so that the modification process is complicated are solved, and the effect of saving the input time is achieved.
In addition, the content conversion method provided by the disclosure acquires a conversion instruction corresponding to the conversion gesture according to a preset corresponding relationship; according to the conversion instruction, the input content is converted from the first character form to the second character form, so that a user does not need to select a conversion mode of the character form, the modification operation is further simplified, the problem of complex operation when the user selects the character form conversion mode is solved, and the effect of further saving the modification time is achieved.
In addition, according to the content conversion method provided by the disclosure, the input content recorded this time is deleted, so that the input method only needs to occupy a small part of cache space in the using process, the problem that the input method occupies too much storage resources, and the terminal is blocked is solved, and the effects of saving the storage resources of the terminal and improving the input efficiency are achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of content conversion according to an example embodiment.
Fig. 2A illustrates a flow diagram of a method of content conversion according to another example embodiment.
Fig. 2B is a diagram illustrating a scenario of a content conversion method according to an exemplary embodiment.
Fig. 2C is a diagram illustrating a scenario of a content conversion method according to an example embodiment.
Fig. 2D is a diagram illustrating a scenario of a content conversion method according to an exemplary embodiment.
Fig. 3 is a block diagram illustrating a content conversion apparatus according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a content conversion apparatus according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating an apparatus for content conversion in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminal referred to in this disclosure is any electronic device that can use an input method, such as: PC, cell-phone, palm PC etc. this disclosure does not limit to the terminal.
Fig. 1 is a flowchart illustrating a content conversion method applied to a terminal according to an exemplary embodiment, and the content conversion method includes the following steps, as shown in fig. 1.
In step 101, the input content of this time is received, and the input content belongs to a first character form.
In step 102, it is detected whether a transition signal is received.
In step 103, if the conversion signal is received, the input content is converted from the first character form to the second character form.
In summary, the content conversion method provided by the present disclosure receives the input content of this time; detecting whether a conversion signal is received; if the conversion signal is received, the input content is converted from the first character form to the second character form, so that the user can directly convert the input content in the first character form into the input content in the second character form when forgetting to switch the input method, the problems that when the character form of the input content is wrong, the wrong input content needs to be manually deleted, and then the input method is input again, so that the modification process is complicated are solved, and the effect of saving the input time is achieved.
Fig. 2A is a flowchart illustrating a content conversion method applied to a terminal according to another exemplary embodiment, and the content conversion method includes the following steps, as shown in fig. 2A.
In step 201, the input content of this time is received, and the input content belongs to a first character form.
The user inputs characters through an input method installed in the terminal. Since a user may need to input characters in various character forms, the input method needs to provide input means in various character forms. Generally, a control for character form conversion is arranged in an input method interface, and a user can realize character form conversion by triggering the control for character form conversion. The character forms provided by the input method include chinese, english, japanese, german, arabic, etc., and the embodiment is not limited thereto. In this embodiment, in addition to the languages of different countries belonging to different character forms, different writing forms of a national language such as uppercase and lowercase English letters, simplified Chinese and traditional Chinese, Chinese characters and Pinyin also belong to different character forms.
In this embodiment, the method for receiving the current input content includes: the terminal continuously receives characters input by a user and stops receiving the characters when receiving the confirmation signal; and the terminal records at least one character received this time as input content. The character form to which the input content received by the terminal this time belongs is referred to as a first character form, and the first character form may be any one of a chinese character form, an english character form, an arabic numeral form, and the like.
In step 202, it is detected whether a transition signal is received.
When the content input by the user includes a plurality of character forms and the user forgets to switch the character form, the character form of the input content is easy to be wrong, and at the moment, the user needs to convert the character form of the wrong input content. Therefore, the terminal needs to detect whether a conversion signal triggered by the user is received, and if the conversion signal is not received, step 203 is executed; if the switching signal is received, step 204 is executed.
The present embodiment provides two implementation manners for detecting whether the converted signal is received, and the two implementation manners are described below separately.
In a first possible implementation manner, the terminal detects whether a trigger operation acting on a conversion control exists, wherein the conversion control is located in an input method interface; and if the triggering operation acting on the conversion control exists, determining that the conversion signal is received.
The trigger operation may be a single-click operation, a double-click operation, or the like, which is performed on the conversion control, and this embodiment is not limited. The conversion control may be one key in the input method interface or a combination of multiple keys in the input method interface, which is not limited in this embodiment.
For example: referring to fig. 2B, the user clicks the conversion control 5 on the input method interface 4 in the terminal 2, the clicking operation is the triggering operation, and at this time, the terminal 2 confirms that the conversion signal is received.
Optionally, the conversion control may be located outside the input method interface. At the moment, the terminal establishes an incidence relation between the conversion control and the input method interface. That is, when the current interface contains the input method interface, the conversion control is displayed, and when the current interface does not contain the input method interface, the conversion control is not displayed. Wherein, the conversion control can be located at any position outside the input interface, for example: the upper right corner of the current interface, the upper left corner of the current interface, and the like.
In a second possible implementation manner, the terminal detects whether a conversion gesture acting on the input method interface exists; and if the conversion gesture acting on the input method interface exists, determining that the conversion signal is received.
The conversion gesture is obtained by the user executing a preset action in the input method interface, and the shape of the conversion gesture can be set and modified by the user. For example, a user draws a circle on the input method interface to obtain a conversion gesture; or, the user draws a "Z" type pattern on the input method interface, gets a conversion gesture, and so on.
For example: referring to fig. 2C, the user draws a circle 6 on the input method interface 4 in the terminal 2, at which time the terminal 2 confirms that the switching signal is received.
Optionally, the transition gesture may also act outside of the input method interface. At the moment, when the current interface comprises an input method interface, the terminal directly detects whether a conversion gesture exists in the current interface; and when detecting that the current interface has a conversion gesture, the terminal confirms that the conversion signal is received.
In step 203, if the switching signal is not received, the input content recorded this time is deleted when the confirmation signal of the next input is received.
If the terminal does not receive the conversion signal, the content input by the user is correct, and the terminal deletes the input content recorded at this time when receiving the confirmation signal input next time.
If the user inputs the content last time, the terminal does not receive the confirmation signal input next time, at this time, a time threshold value between the confirmation signal input this time and the confirmation signal input next time can be set in the terminal, and when the time threshold value is reached, if the terminal does not receive the confirmation signal input next time, the input content recorded this time is deleted.
Or, the terminal may determine whether the current page includes an input method interface, and delete the input content recorded this time if the determination result is that the current page includes the input method interface.
In step 204, if the conversion signal is received, the input content is converted from the first character form to the second character form.
If the terminal receives the conversion signal, it indicates that the content input by the user is wrong, and the input content at this time needs to be modified.
When the conversion signal is a trigger operation acting on the conversion control and only a character form conversion mode of converting a first character form into a second character form exists in the terminal, the terminal directly converts the input content recorded at this time from the first character form into the second character form after receiving the trigger operation. In this embodiment, the character form after the input content conversion is referred to as a second character form.
For example: the terminal only has a character form conversion mode for converting Chinese into English, the terminal receives the trigger operation acted on the conversion control and directly converts the input content from Chinese into English, and at the moment, the first character form is Chinese and the second character form is English.
Or, when the conversion signal is a trigger operation acting on the conversion control and multiple character form conversion modes exist in the terminal, the terminal generates a character form conversion interface after receiving the trigger operation, the character form conversion interface comprises the multiple character form conversion modes, a user selects one character form conversion mode in the character form conversion interface, and if the character form conversion mode is that the first character form is converted into the second character form, the input content recorded at this time is converted into the second character form from the first character form.
Wherein the second character form is related to the first character form in meaning or form. When the second character form is related to the first character form in meaning, a corresponding word stock exists in each conversion mode.
For example: the second character form is in form connection with the first character form, the first character form is a Chinese simplified form, the second character form is English, and when the terminal converts the input content from the first character form to the second character form, the recorded characters are directly converted from pinyin to English letters; or, the first character form is Chinese, the second character form is pinyin, when the terminal converts the input content from the first character form to the second character form, if the user outputs Chinese in a pinyin mode, the recorded input content is directly output at the moment.
For example: the second character form is linked with the first character form in meaning, the first character form is a Chinese simplified form, the second character form is Arabic numerals, when the terminal converts the input content from the first character form to the second character form, the terminal carries out semantic recognition on the recorded input content, and searches the input content in the second character form with the same meaning in a word bank in which the Chinese simplified form is converted into the Arabic numerals; or the first character form is a simplified Chinese character form, the second character form is a traditional Chinese character form, and when the terminal converts the input content from the first character form to the second character form, the terminal searches the input content of the second character form corresponding to the input content in the word stock for converting the simplified Chinese character form to the traditional Chinese character form.
Obviously, the input content is converted from the first character form to the second character form by triggering the conversion control, so that a user can directly convert the input content in the first character form into the input content in the second character form when forgetting to switch the input method, the problem that when the character form of the input content is wrong, the wrong input content needs to be manually deleted, and then the input method is input again, so that the modification process is complicated is solved, and the effect of saving the input time is achieved.
Optionally, when only one conversion gesture exists in the terminal and the conversion gesture corresponds to only one conversion instruction, the terminal directly converts the input content recorded this time from the first character form to the second character form after receiving the conversion gesture. Or,
when at least two conversion gestures exist in the terminal, after the terminal receives the conversion gestures, searching the stored preset relationship, and acquiring a conversion instruction corresponding to the conversion gestures according to the preset corresponding relationship. If the conversion instruction is to convert the first character form into the second character form, the terminal converts the input content from the first character form into the second character form according to the conversion instruction.
The preset corresponding relation is used for storing the relation between different conversion gestures and different conversion instructions. The preset corresponding relation can be set by the user.
For example: converting the conversion instruction corresponding to the conversion gesture 'o' into English by converting the Chinese simplified body; converting the conversion instruction corresponding to the gesture's' into a Chinese simplified form; the conversion instruction corresponding to the conversion gesture "L" is to convert a simplified chinese language into a traditional chinese language, and the like, and the present embodiment does not limit the preset relationship between the conversion gesture and the conversion instruction, and does not limit the number of the conversion gestures corresponding to the conversion instruction, that is, the user may set a plurality of conversion gestures corresponding to one conversion instruction.
When the multiple conversion gestures correspond to the multiple conversion instructions, in order to prevent a memory deviation of a user, when the terminal converts the input content from a first character form to a second character form according to the conversion instructions, the conversion instructions can be displayed in the input method interface to prompt the user of the conversion instructions corresponding to the conversion gestures at this time.
For example: the user inputs the character 'pub' in the terminal, at the moment, the first character form is Chinese simplified, and the displayed candidate content is 'universal'. After a user makes a conversion gesture 'o' in an input method interface, the terminal searches for a stored preset corresponding relation, obtains a corresponding conversion instruction according to the preset corresponding relation to convert the Chinese simplified into English, namely, at the moment, the second character is in English, a character pattern 'Chinese simplified- > English' is displayed in the input method interface, and the terminal converts the input content 'pub' recorded at this time from the Chinese simplified 'common' into English 'pub'.
For example: the user needs to input "our yihui is in pub set", and when the input content is "yihui", the first character form is a Chinese simplified body, and the displayed candidate content is "a moment". After a user executes a conversion gesture ' p ' in an input method interface, the terminal searches a stored preset corresponding relation, obtains a corresponding conversion instruction according to the preset corresponding relation to convert the Chinese simplified body into pinyin, namely, the second character form is pinyin, a character pattern of ' Chinese simplified body- > pinyin ' is displayed in the input method interface, and the terminal converts the input content ' yihui ' recorded at this time from the Chinese simplified body ' for a moment into the pinyin ' yihui '.
Obviously, by making a conversion gesture in the input method interface and converting the input content from the first character form to the second character form according to the conversion gesture, the user can directly convert the input content in the first character form to the input content in the second character form when forgetting to switch the input method, so that the problem that the modification process is complicated due to the fact that the input method is input again after the input content needs to be manually deleted when the character form of the input content is wrong is solved, and the effect of saving input time is achieved.
In step 205, the input content recorded this time is deleted.
And after the terminal converts the input content from the first character form to the second character form, replacing the input content in the first character form with the input content in the second character form. That is, the terminal deletes the original input content in the first character form, and then fills the input content in the second character form. And after the terminal modifies the input content, deleting the recorded input content.
For example: referring to fig. 2D, after the user inputs "we are at a common" in the terminal 2 and inputs "common", the user makes a conversion gesture "o" on the input method interface, the terminal converts the chinese simplified "common" into english "pub", and "pub" is replaced with "pub".
After the terminal deletes the input content recorded this time, if the user continues to perform the input operation, the input content received by the terminal remains in the first character form.
In summary, the content conversion method provided by the present disclosure receives the input content of this time; detecting whether a conversion signal is received; if the conversion signal is received, the input content is converted from the first character form to the second character form, so that the user can directly convert the input content in the first character form into the input content in the second character form when forgetting to switch the input method, the problems that when the character form of the input content is wrong, the wrong input content needs to be manually deleted, and then the input method is input again, so that the modification process is complicated are solved, and the effect of saving the input time is achieved.
In addition, the content conversion method provided by the disclosure acquires a conversion instruction corresponding to the conversion gesture according to a preset corresponding relationship; according to the conversion instruction, the input content is converted from the first character form to the second character form, so that a user does not need to select a conversion mode of the character form, the steps of modification operation are further saved, the problem of time waste when the user selects the conversion mode of the character form is solved, and the effect of further saving input time is achieved.
In addition, according to the content conversion method provided by the disclosure, the input content recorded this time is deleted, so that the input method only needs to occupy a small part of cache space in the using process, the problem that the input method occupies too large terminal storage resources, and the terminal is jammed is solved, and the effects of saving the terminal storage resources and improving the input efficiency are achieved.
Fig. 3 is a block diagram illustrating a content conversion apparatus applied to a terminal according to an exemplary embodiment, and as shown in fig. 3, the content conversion apparatus includes: a receiving module 310, a detecting module 320, and a converting module 330.
The receiving module 310 is configured to receive the input content of this time, where the input content belongs to a first character form;
the detection module 320 configured to detect whether a converted signal is received;
the conversion module 330 is configured to convert the input content from the first character form to the second character form when the detection result obtained by the detection module 320 is that the conversion signal is received.
In summary, the content conversion apparatus provided by the present disclosure receives the input content of this time; detecting whether a conversion signal is received; if the conversion signal is received, the input content is converted from the first character form to the second character form, so that the user can directly convert the input content in the first character form into the input content in the second character form when forgetting to switch the input method, the problems that when the character form of the input content is wrong, the wrong input content needs to be manually deleted, and then the input method is input again, so that the modification process is complicated are solved, and the effect of saving the input time is achieved.
Fig. 4 is a block diagram illustrating a content conversion apparatus applied to a terminal according to an exemplary embodiment, as shown in fig. 4, the content conversion apparatus including: a receiving module 410, a detecting module 420 and a converting module 430.
The receiving module 410 is configured to receive the input content of this time, wherein the input content belongs to a first character form;
the detection module 420 configured to detect whether a converted signal is received;
the conversion module 430 is configured to convert the input content from the first character form to the second character form when the detection result obtained by the detection module 420 is that the conversion signal is received.
Optionally, the detecting module 420 includes: a first detection submodule 421 and a first determination submodule 422.
The first detection submodule 421 is configured to detect whether there is a trigger operation acting on a conversion control, where the conversion control is located in the input method interface;
the first determining submodule 422 is configured to determine that a transition signal is received when the detection result obtained by the first detecting submodule 421 indicates that there is a trigger operation acting on the transition control.
Optionally, the detecting module 420 further includes: a second detection submodule 423 and a second determination submodule 424.
The second detection submodule 423 configured to detect whether a transition gesture acting on the input method interface exists;
the second determining submodule 424 is configured to determine that a transition signal is received when the detection result obtained by the second detecting submodule 423 is that a transition gesture acting on the input method interface exists.
Optionally, the converting module 430 includes: an instruction acquisition sub-module 431 and a character form conversion sub-module 432.
The instruction obtaining submodule 431 is configured to, when there are at least two conversion gestures, obtain a conversion instruction corresponding to the conversion gesture according to a preset corresponding relationship, where the preset corresponding relationship is used to store a relationship between different conversion gestures and different conversion instructions;
the format conversion submodule 432 is configured to convert the input content from the first character format to the second character format according to the conversion instruction acquired by the instruction acquisition submodule 431.
Optionally, the receiving module 410 includes: a character receiving sub-module 411 and a content recording sub-module 412.
A character receiving sub-module 411 configured to continuously receive an input character and stop receiving the character when receiving the confirmation signal;
a content recording sub-module 412 configured to record at least one character received by the current character receiving sub-module 411 as an input content.
Optionally, the apparatus further includes: a first deletion module 440.
The first deleting module 440 is configured to delete the input content recorded this time after the converting module 430 converts the input content from the first character form to the second character form.
Optionally, the apparatus further includes: a second deletion module 450.
The second deleting module 450 is configured to delete the input content recorded this time if a confirmation signal of the next input is received when the detection result obtained by the detecting module 420 is that the conversion signal is not received.
In summary, the content conversion apparatus provided by the present disclosure receives the input content of this time; detecting whether a conversion signal is received; if the conversion signal is received, the input content is converted from the first character form to the second character form, so that the user can directly convert the input content in the first character form into the input content in the second character form when forgetting to switch the input method, the problems that when the character form of the input content is wrong, the wrong input content needs to be manually deleted, and then the input method is input again, so that the modification process is complicated are solved, and the effect of saving the input time is achieved.
In addition, the content conversion method provided by the disclosure acquires a conversion instruction corresponding to the conversion gesture according to a preset corresponding relationship; according to the conversion instruction, the input content is converted from the first character form to the second character form, so that a user does not need to select a conversion mode of the character form, the steps of modification operation are further saved, the problem of time waste when the user selects the conversion mode of the character form is solved, and the effect of further saving input time is achieved.
In addition, according to the content conversion method provided by the disclosure, the input content recorded this time is deleted, so that the input method only needs to occupy a small part of cache space in the using process, the problem that the input method occupies too large terminal storage resources, and the terminal is jammed is solved, and the effects of saving the terminal storage resources and improving the input efficiency are achieved.
The apparatus shown in fig. 3 and 4 is used to implement the method flows shown in fig. 1 to 2D, and the related contents have been described in detail in the embodiments related to the method, and will not be elaborated herein.
An exemplary embodiment of the present disclosure provides a content conversion apparatus capable of implementing a content conversion method provided by the present disclosure, the content conversion apparatus including: a processor, a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving input content of the current time, wherein the input content belongs to a first character form;
detecting whether a conversion signal is received;
if the conversion signal is received, the input content is converted from the first character form to the second character form.
Fig. 5 is a block diagram illustrating an apparatus 500 for content conversion according to an example embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 518 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 518 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (15)
1. A method for content conversion, the method comprising:
receiving input content of this time, wherein the input content belongs to a first character form;
detecting whether a conversion signal is received;
and if the conversion signal is received, converting the input content from the first character form to a second character form.
2. The method of claim 1, wherein said detecting whether a transition signal is received comprises:
detecting whether a trigger operation acting on a conversion control exists, wherein the conversion control is positioned in an input method interface;
and if the trigger operation acted on the conversion control exists, determining that the conversion signal is received.
3. The method of claim 1, wherein said detecting whether a transition signal is received further comprises:
detecting whether a conversion gesture acting on an input method interface exists;
and if the conversion gesture acting on the input method interface exists, determining that the conversion signal is received.
4. The method of claim 3, wherein converting the input content from the first character form to a second character form comprises:
when at least two conversion gestures exist, acquiring a conversion instruction corresponding to the conversion gesture according to a preset corresponding relation, wherein the preset corresponding relation is used for storing the relation between different conversion gestures and different conversion instructions;
and converting the input content from the first character form to the second character form according to the conversion instruction.
5. The method according to any one of claims 1 to 4, wherein the receiving of the input content of the current time comprises:
continuously receiving the input characters, and stopping receiving the characters when receiving the confirmation signal;
and recording at least one character received this time as the input content.
6. The method of claim 5, further comprising:
and deleting the input content recorded at this time after converting the input content from the first character form to a second character form.
7. The method of claim 5, further comprising:
and if the conversion signal is not received, deleting the input content recorded at this time when a confirmation signal input next time is received.
8. A content conversion apparatus, characterized in that the apparatus comprises:
the receiving module is configured to receive input content of the current time, wherein the input content belongs to a first character form;
a detection module configured to detect whether a converted signal is received;
the conversion module is configured to convert the input content from the first character form to a second character form when the detection result obtained by the detection module is that the conversion signal is received.
9. The apparatus of claim 8, wherein the detection module comprises:
the first detection submodule is configured to detect whether a trigger operation acting on a conversion control exists, and the conversion control is located in an input method interface;
a first determining sub-module configured to determine that the switching signal is received when a detection result obtained by the first detecting sub-module is that the trigger operation acting on the switching control exists.
10. The apparatus of claim 8, wherein the detection module further comprises:
the second detection submodule is configured to detect whether a conversion gesture acting on the input method interface exists or not;
the second determination submodule is configured to determine that the conversion signal is received when the detection result obtained by the second detection submodule is that the conversion gesture acting on the input method interface exists.
11. The apparatus of claim 10, wherein the conversion module comprises:
the instruction acquisition sub-module is configured to acquire a conversion instruction corresponding to the conversion gesture according to a preset corresponding relation when at least two conversion gestures exist, wherein the preset corresponding relation is used for storing the relation between different conversion gestures and different conversion instructions;
and the form conversion sub-module is configured to convert the input content from the first character form to the second character form according to the conversion instruction acquired by the instruction acquisition sub-module.
12. The apparatus according to any one of claims 8 to 11, wherein the receiving module comprises:
a character receiving sub-module configured to continuously receive an input character and stop receiving the character when receiving the confirmation signal;
and the content recording sub-module is configured to record at least one character received by the character receiving sub-module at this time as the input content.
13. The apparatus of claim 12, further comprising:
the first deleting module is configured to delete the input content recorded this time after the converting module converts the input content from the first character form to the second character form.
14. The apparatus of claim 12, further comprising:
and the second deleting module is configured to delete the input content recorded this time if a confirmation signal input next time is received when the detection result obtained by the detecting module is that the conversion signal is not received.
15. A content conversion apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving input content of this time, wherein the input content belongs to a first character form;
detecting whether a conversion signal is received;
and if the conversion signal is received, converting the input content from the first character form to a second character form.
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)
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)
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 |
-
2015
- 2015-11-27 CN CN201510847174.6A patent/CN105487799A/en active Pending
Patent Citations (4)
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)
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 |
---|---|---|
CN107688399B (en) | Input method and device and input device | |
EP3331226A1 (en) | Method and device for reading messages | |
JP2020516994A (en) | Text editing method, device and electronic device | |
CN107193393B (en) | Input method switching method and device | |
RU2609033C1 (en) | Input method and input system | |
CN106469054A (en) | notification message control method, device and terminal | |
CN107291260B (en) | Information input method and device for inputting information | |
CN105511777B (en) | Session display method and device on touch display screen | |
CN107037888B (en) | Input method, input device and input device | |
CN105487799A (en) | Content conversion method and device | |
CN106792604B (en) | Method and device for service prompt in communication process | |
US20160349947A1 (en) | Method and device for sending message | |
CN105117115B (en) | A kind of method and apparatus for showing electronic document | |
CN110795014B (en) | Data processing method and device and data processing device | |
CN107179837B (en) | Input method and device | |
CN106339160A (en) | Browsing interactive processing method and device | |
CN112068764B (en) | Language switching method and device for language switching | |
CN108108356B (en) | Character translation method, device and equipment | |
RU2636673C2 (en) | Method and device for line saving | |
CN112486604B (en) | Toolbar setting method and device for setting toolbar | |
CN110399045B (en) | Input method and device | |
CN113805707A (en) | Input method, input device and input device | |
CN112068793B (en) | Voice input method and device | |
CN108037875B (en) | Method, device and storage medium for switching input modes | |
CN109388328B (en) | Input method, device and medium |
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 |