Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows the process flow diagram of literal input implementation method according to an embodiment of the invention, may further comprise the steps:
Step S10, browser receive the coding of input by the input control of webpage;
Step S20, browser is sent to the backstage service module with coding, to be converted to corresponding character;
Step S30, the backstage service module is sent to browser with literal, to accept user's selection.
This literal input implementation method is decoded into literal by coding being delivered to the backstage service module, passes webpage again back, thereby no longer needs the operating system installation character input method.And this input method is by the backstage service module literal of decoding, so webpage only need carry out the transmission of information, and no longer need to install input method procedure, therefore what also solved prior art passes through webpage operation input method procedure, thereby can only realize the defective of words input in the fixing webpage of this website and webpage in the specific input control.Therefore this literal input implementation method can all satisfy the interaction demand of user's browsing page on the operating system of any language.
In addition, install under the input method mode at the webpage of prior art, input method need load whole code table, and the process that loads code table is longer, and input efficiency is low.And this literal input implementation method has been avoided the code table of webpage loading literal, so travelling speed is faster.
Optionally, in above-mentioned literal input implementation method, step S10 specifically comprises: embed script in advance or embed plug-in unit in webpage in described browser, browser is carried out script or is called the coding of plug-in unit with user's input of catching input control and receiving.Like this, browser end can use script such as JavaScript to user's oblatio inputting interface, response user input.
These codes can be provided by the service provider that the backstage service module is provided, and after the website supplier obtains the code of service provider, are embedded in their webpage, and domestic consumer can use online input function when browsing this part webpage like this.
Optionally, step S10 specifically comprises: embed plug-in unit in advance in browser; Plug-in unit is performed to catch the coding of user's input that input control receives.For example, the button that starts plug-in component operation is installed on the menu bar of browser, when the user clicks this button, just can be started the execution of this plug-in unit.This is similar to the button of installing on the IE browser menu bar, can start the execution plug-in unit.In the time of can working as the user in addition and click, start automatically and carry out plug-in unit in the place that needs input characters.
Optionally, provide the website of webpage and backstage service module in same territory, step S20 specifically comprises: browser is carried out script or is called plug-in unit so that coding is sent to the website, will encode and directly send to the backstage service module in the website; Step S30 specifically comprises: the backstage service module directly sends to browser with literal; Browser is carried out script or is called plug-in unit with display text; Browser is carried out script or is called plug-in unit to accept the selection of user to literal.This scheme is applicable to intranet.
Optionally, step S20 specifically comprises: browser is carried out script or is called plug-in unit coding is sent to the website that webpage is provided; The website sends to server or script with coding, is transmitted to the backstage service module by server or script; Step S30 specifically comprises: the backstage service module sends to browser with literal; Browser is carried out script or is called described plug-in unit to show described literal; Browser is carried out script or is called plug-in unit to accept the selection of user to literal.This embodiment not only can be applied to provide the website of webpage and backstage service module in same territory, can also be applied to website and backstage service module in same area not.
Optionally, in above-mentioned literal input implementation method, be converted to corresponding character and specifically comprise: the backstage service module obtains coding; Utilize the character input method program that coding and decoding is obtained corresponding to the literal of encoding.Can set up the backstage service module in advance by service provider, this backstage service module provides service for the input method of browser end.
Optionally, in above-mentioned literal input implementation method, step S30 specifically comprises: literal is sent to webpage; The program that embeds in advance in the webpage is performed with display text; Accept the selection of user to literal.For example, the backstage service module is according to the script request, and corresponding input method data are decoded in the use input method database, and the candidate that obtains after the decoding is sent to script, and script show candidate word is selected for the user.
Fig. 2 shows the process flow diagram of literal input implementation method in accordance with a preferred embodiment of the present invention, may further comprise the steps:
Step S202 sets up distribution in advance at input server (being the backstage service module) and embeds code (for example JavaScript script);
Step S204 embeds input code in the website;
Below be example: the file jie2ime.js that leaves under the catalogue jie2ime, with label<script〉form join the webpage bottom
<script?type=″text/javascript″language=″javascript″
src=″jie2ime/jie2_ime.js″>
</script>
When step S206, browser carry out the webpage of this website, carry out the input code (being the JavaScript script) that embeds, thereby present inputting interface, respond user's input coding, and coding is sent to the website;
Step S208, the website transmission is decoded and is asked, if website and input server are then decoded and asked directly to send to the input server in same territory;
Step S210, server or script are realized cross-domain processing, the request of will decoding is forwarded to the input server;
Step S212, the input server is finished decoding, generates prepare word;
Step S214, the input server returns to browser with prepare word.
Fig. 3 shows according to an embodiment of the invention, and browser specifically comprises: catch the click of user to input control by the screenshot capture of the coding of the input control reception input of webpage; Provide the coding menu to accept the user to coding selection; Selected coding is input in the input control.
Present computer input method for Chinese character is based on all that traditional English Typing keyboard designs, and the operation of internet web page mainly is to use indication formula equipment such as mouse to operate.This has just caused in the Chinese character reciprocal process of webpage, and the user must constantly frequently be switched between mouse, keyboard equipment, inefficient operation, very inconvenience.And the foregoing description only makes mouse-based operation, just can select the input characters coding from the soft keyboard that screen provides, thereby avoid above-mentioned troublesome operation.
Optionally, in above-mentioned literal input implementation method, coding is stroke coding, radical-code, Pinyin coding or root coding.This can realize that multiple mode imports Chinese character, is user-friendly to.
Optionally, shown in the embodiment of Fig. 3, coding is a stroke coding, comprising: " one ", and---------left-falling stroke, " Dian "---point and " second "---are rolled over for perpendicular, " Pie " for horizontal, " Shu ".This helps realizing simple on-screen keyboard, reduces user's encode Chinese characters for computer memory capacitance.
Optionally, literal is Chinese character, Japanese, Korean, German, French, Italian, Spanish, Russian or Arabic.The above embodiment of the present invention obviously is not limited to any specific literal, and those skilled in the art can thought according to the present invention realize combining of network application softwares such as various literal inputs and browser.For example, Japanese input method software is installed on the service module of backstage, just can on English operation system, be realized Japanese input webpage.The website of prior art only provides a kind of fixing input method usually, and the user can't select according to the custom of oneself, uses very inconvenience.And the backstage service module can be installed multilingual input methods, thereby can at random select for the user.
Optionally, in above-mentioned literal input implementation method, server or script are transmitted specifically and are comprised: at server end runtime server end program or script, java script (JavaScript) is called WebService by visiting this server or script then, with to backstage service module refer request, make the script input realize cross-domain operation, when online input of the present invention is used in the website, must use server or script refer request data on this website to arrive backstage of the present invention service module, just can reach the purpose that data are transmitted mutually.
Fig. 4 shows the block scheme of the literal input implement device that is used for webpage according to an embodiment of the invention, comprising:
Receiver module 10, the input control that is used to make browser pass through webpage receives the coding of importing;
Modular converter 20 is used to make described browser that described coding is sent to the backstage service module, to be converted to corresponding character;
Output module 30 is used for described backstage service module described literal is sent to described browser, to accept user's selection.
This literal input implement device is decoded into literal by coding being delivered to the backstage service module, passes webpage again back, thereby no longer needs the operating system installation character input method.And this input method is by the backstage service module literal of decoding, so webpage only need carry out the transmission of information, and no longer need to install input method procedure, therefore what also solved prior art passes through webpage operation input method procedure, thereby can only realize the defective of words input in the fixing webpage of this website and webpage in the specific input control.Therefore this literal input implement device can all satisfy the interaction demand of user's browsing page on the operating system of any language.
In addition, install under the input method mode at the webpage of prior art, input method need load whole code table, and the process that loads code table is longer, and input efficiency is low.And this literal input implement device has been avoided the code table of webpage loading literal, so travelling speed is faster.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, carry out by calculation element thereby they can be stored in the memory storage, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.