WO2008071099A1 - Method and system for inputting artistic word/diagram into application program - Google Patents

Method and system for inputting artistic word/diagram into application program Download PDF

Info

Publication number
WO2008071099A1
WO2008071099A1 PCT/CN2007/070615 CN2007070615W WO2008071099A1 WO 2008071099 A1 WO2008071099 A1 WO 2008071099A1 CN 2007070615 W CN2007070615 W CN 2007070615W WO 2008071099 A1 WO2008071099 A1 WO 2008071099A1
Authority
WO
WIPO (PCT)
Prior art keywords
word
graphic
style
art
wordart
Prior art date
Application number
PCT/CN2007/070615
Other languages
French (fr)
Chinese (zh)
Inventor
Xin Qi
Lei Yang
Zhankai Ma
Original Assignee
Beijing Sogou Technology Development Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=37778486&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=WO2008071099(A1) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Beijing Sogou Technology Development Co., Ltd. filed Critical Beijing Sogou Technology Development Co., Ltd.
Publication of WO2008071099A1 publication Critical patent/WO2008071099A1/en

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/018Input/output arrangements for oriental characters

Definitions

  • the present invention relates to the field of keyboard information processing, and more particularly to a method and system for inputting art words/graphics in an application window.
  • ASCII Art Word is a special character, text or graphic generated by the development of computers and networks. It can be displayed in a variety of ASCII characters and combinations, unlike the usual font setting properties. In web applications, such as web chat, forums, communities, etc., this type of artistic word that has decorative effects such as decoration is widely used.
  • ASCII Art Words in the application window is: First run the ASCII code art word character editing output software, enter the characters or strings you want to convert into the corresponding art text in the input area of the software, and then select The font to be converted, the software will display the characters of the corresponding artistic font style of these characters or strings in the preview box. If the user confirms that the effect is appropriate, the corresponding artistic text can be converted and stored by copying or storing, and then pasted into Other users need to enter such characters in the window.
  • the application of various ASCII art words software is rich in font display, and also brings inconvenience to the user operation.
  • the user first needs to install and start separate software, and then through the cumbersome process from input to copy to paste, Word art is entered into the display window.
  • an application and an application that is, software that provides ASCII code art words as a computer system-independent application
  • the user needs an ASCII code word art.
  • the software and the program window that needs to input the word of art switch, the operation of the software and the process of copying and pasting occupy system resources, and it takes time and manpower.
  • switching between multiple program windows is prone to erroneous operations and loss of copied content.
  • the technical problem to be solved by the present invention is to provide a method and system for inputting a word/graphic in an application window to solve the problem that the process of inputting a word/graphic to an application under the prior art occupies excessive system resources. .
  • Another object of the present invention is to provide a method and system for inputting WordArt/Graphics to an application to improve the user experience and effect of inputting WordArt.
  • the present invention provides a method for inputting a word/graphic to an application, comprising:
  • mapping relationships include: mapping of keyboard message encoding to text/text strings, mapping of text/text strings to WordArt styles; and/or mapping of keyboard message encodings directly to WordArt styles.
  • the method further includes: when the matching result is a graphic, determining whether the currently activated application supports the corresponding graphic storage format, and if so, triggering the application interface control message to send a match to the currently activated application. result.
  • the method further includes: when the matching result is a graphic, sending the graphic and the text and/or symbol matching the graphic to the application.
  • the method further includes: customizing a mapping relationship between the keyboard message encoding and the artistic word style.
  • the method further includes: determining whether the current state is a WordArt state, and if yes, performing a matching of the WordArt; otherwise, corresponding to the mapping relationship between the keyboard message encoding and the text/text string, performing text/text String match.
  • the method further includes: presetting at least one ASCII code character replacement rule; ASCII code characters confirmed by the user, the character replacement rule, and a pre-stored word style/preset word style algorithm And performing character substitution on the corresponding word style of the keyboard message; triggering an application interface control message, and inputting the character after the character replacement to the currently activated application Word/graphic.
  • the method further includes: presetting at least one ASCII code art graphic replacement rule; and encoding the corresponding picture graphic by the keyboard message according to the ASCII code art graphic replacement rule and the pre-stored picture graphic ASCII art graphic replacement; triggers the application interface control message to enter the replaced ASCII art graphic into the currently active application.
  • the WordArt style includes, but is not limited to, an ASCII art word, an ASCII art graphic, an astigmatism word, a single-line character string, a character matrix, a graphic, a similar or similar text, a symbol, or a combination thereof.
  • the invention also discloses a method for inputting a word/graphic to an application, comprising: establishing a mapping relationship between a keyboard message code-text/text string-art word style; calling an operating system interface function to obtain a keyboard message Coding; corresponding to the mapping relationship between the keyboard message encoding and the text/text string, obtaining the corresponding text string; corresponding to the text string semantics and the pre-stored artistic word style, cutting the corresponding artistic word style; triggering the application interface control message, to the current activation
  • the app enters WordArt/Graphics.
  • the method further includes: when the matching result is a graphic, determining whether the currently activated application supports the corresponding graphic storage format, and if so, triggering the application interface control message to input to the currently activated application. Word/graphics.
  • the method further includes: when the matching result is a graphic, sending the graphic and the text and/or symbol matching the graphic to the application.
  • the method further includes: presetting at least one ASCII code character replacement rule; ASCII code characters confirmed by the user, the character replacement rule, and a pre-stored word style/preset word style algorithm And performing character substitution on the corresponding word-of-word style of the keyboard message; triggering the application interface control message, and inputting the word-changed word/graphic to the currently activated application.
  • the WordArt style includes, but is not limited to, an ASCII art word, an ASCII art graphic, an astigmatism word, a single-line character string, a character matrix, a graphic, a similar or similar text, a symbol, or a combination thereof.
  • the present invention also provides a system for inputting WordArt/Graphics to an application, comprising: a storage unit, configured to pre-store a WordArt style or a preset WordArt style algorithm, and a mapping relationship between a keyboard message code and a WordArt style;
  • a code receiving unit configured to invoke an operating system interface function, to obtain a keyboard message encoding
  • a word matching unit configured to match the mapping relationship table, and match an art word style corresponding to the keyboard message encoding
  • An output unit that triggers an application interface control message to input a word/graphic to the currently active application.
  • the mapping relationship comprises: a mapping relationship between a keyboard message encoding and a text/text string, a mapping relationship between a text/text string and an artistic word style; and/or a mapping relationship between the keyboard message encoding and the artistic word style.
  • the storage unit comprises: a character library, configured to store a text/text string, an astigmatism word, a single-line character string or a character array corresponding to the keyboard message code; an ASCII code art font library, configured to store a correspondence corresponding to the keyboard message code. ASCII code art word or preset art word algorithm; graphics library for storing ASCII code art graphics or picture graphics corresponding to keyboard message encoding.
  • the system further includes: an application determining unit, configured to determine whether the currently activated application supports a corresponding graphic storage format when the matching result is a graphic, and if supported, triggers the output unit.
  • an application determining unit configured to determine whether the currently activated application supports a corresponding graphic storage format when the matching result is a graphic, and if supported, triggers the output unit.
  • the system further includes: a self-editing unit, configured to: user-defined a mapping relationship between the keyboard message encoding and the WordArt style, and save to the storage unit.
  • a self-editing unit configured to: user-defined a mapping relationship between the keyboard message encoding and the WordArt style, and save to the storage unit.
  • the system further includes: a character matching unit, configured to match a text/text string corresponding to the encoding according to a mapping relationship between a keyboard message encoding and a text/text string; and determine a status unit, configured to determine a current Whether the state is a WordArt state, and if so, triggering the WordArt matching unit; otherwise, the character matching unit is triggered.
  • a character matching unit configured to match a text/text string corresponding to the encoding according to a mapping relationship between a keyboard message encoding and a text/text string
  • determine a status unit configured to determine a current Whether the state is a WordArt state, and if so, triggering the WordArt matching unit; otherwise, the character matching unit is triggered.
  • the storage unit further stores at least one ASCII code character replacement rule; the system further includes: a character replacement unit; and the character replacement unit is configured to: according to the ASCII code character confirmed by the user, the character The replacement rule and the pre-stored WordArt style/preset WordArt style algorithm perform character substitution on the corresponding WordArt style of the keyboard message encoding.
  • the storage unit further stores at least one ASCII code art graphics replacement rule; the system further includes a graphics replacement unit; the graphics replacement unit is configured to use the ASCII The code art graphic replacement rule and the pre-stored picture graphic perform ASCII code art graphic replacement on the corresponding picture graphic of the keyboard message encoding.
  • the code receiving unit, the storage unit and the output unit included in the system for inputting the word/graphic to the application are located in the same computing device; or the system code included in the system for inputting the word/graphic to the application
  • the receiving unit and the output unit are located in the first computing device, and the storage unit is located in the second computing device; the system obtains corresponding information from the storage unit located in the second computing device according to the keyboard message input by the user, and outputs the corresponding information in the first computing device.
  • the WordArt style includes, but is not limited to, an ASCII art word, an ASCII art graphic, an astigmatism word, a single-line character string, a character matrix, a graphic, a similar or similar text, a symbol, or a combination thereof.
  • the present invention also provides a system for inputting WordArt/Graphics to an application, comprising: a storage unit for pre-storing a WordArt style or a preset WordArt style algorithm, and a keyboard message encoding-text/text string-art The mapping relationship between the three characters;
  • a code receiving unit configured to invoke an operating system interface function to obtain a keyboard message encoding
  • a text string matching unit configured to correspond to a mapping relationship between the keyboard message encoding and the text/text string, and obtain a corresponding text string
  • a word segmentation unit for corresponding text string semantics and pre-stored artistic word styles, segmenting the text strings; shooting relationships, obtaining corresponding artistic word styles;
  • An output unit that triggers an application interface control message to input a word/graphic to the currently active application.
  • the system further includes: a determining status unit, configured to determine whether the current status is a WordArt state, and if so, connecting a text string matching unit-word segmentation unit-art word matching unit-output unit; otherwise, connecting the text String matching unit - output unit.
  • a determining status unit configured to determine whether the current status is a WordArt state, and if so, connecting a text string matching unit-word segmentation unit-art word matching unit-output unit; otherwise, connecting the text String matching unit - output unit.
  • the storage unit further stores at least one ASCII code character replacement rule; the system further includes: a character replacement unit; and the character replacement unit is configured to: according to the ASCII code character confirmed by the user, the character The replacement rule and the pre-stored WordArt style/preset WordArt style algorithm perform character substitution on the corresponding WordArt style of the keyboard message encoding.
  • the word art style includes but is not limited to: ASCII code art word, ASCII code art Graphics, astigmatism, single-line strings, character arrays, graphics, shapes, or similar words, symbols, or a combination thereof.
  • the present invention has the following advantages:
  • the invention directly matches the acquired keyboard information coding with the artistic word style through the direct combination of the computer operating system and the application program, and directly outputs the matched artistic word or art graphic to the application display window, without opening another
  • An independent WordArt editing software implements the ASCII WordArt function.
  • ASCII code art style you can input directly in each application window without running separate WordArt software, thus avoiding the process of software running and input conversion. , saves system resources and is convenient for users to operate.
  • the present invention provides a rich artistic word style and flexible mapping relationship, and establishes mapping of keyboard message encoding and text/text string, keyboard message encoding or text/text string and ASCII code art word, ASCII code art graphic, astigmatism.
  • the mapping of words, single-line strings, character arrays, various common graphics or graphic animations can quickly match various artistic word styles according to different input and selection of users, and the input is more flexible and richer in content.
  • the present invention can use a word segmentation method that is more loyal to the original semantics, segment the selected text string, and then display the corresponding art word style.
  • the word segmentation and the word matching can also be performed according to the process of the user's word selection; and the user's word segmentation mode can be learned, thereby improving the accuracy of the word segmentation.
  • the word segmentation step can avoid erroneous WordArt output.
  • the word segmentation step can find and output the matching artistic word patterns in the longer Chinese character strings input by the user. Thereby improving the matching efficiency and matching effect of various artistic word styles.
  • Figure la - Figure lh is an example of the ASCII art word, ASCII art graphic, character array
  • FIG. 2 is a flow chart showing the steps of inputting a word/graphic in the application window according to the present invention
  • FIG. 3 is a flow chart showing the steps of inputting a word/graphic according to a preferred embodiment of the present invention
  • 4 is a schematic diagram of a WordArt window in a standard mode for implementing the present invention
  • Figure 5 is a schematic diagram of a WordArt window in a shortcut mode for implementing the present invention.
  • FIG. 6 is a system structural diagram of inputting a word/graphic in an application window according to the present invention
  • FIG. 7 is a system structural diagram of inputting a word/graphic in an application window according to a preferred embodiment of the present invention.
  • the present invention provides a variety of artistic word styles, including ASCII art words, ASCII art graphics, astigmatism words, single-line strings, character arrays, or graphics, etc., which are described in detail below.
  • ASCII art words ASCII art graphics
  • astigmatism words single-line strings
  • character arrays character arrays
  • graphics etc.
  • the input and matching of the word of art according to the present invention does not require a language limitation, but for convenience of explanation, the description of the embodiments will be mainly made in the following.
  • ASCII Art Word is a way to display text in ASCII characters and combinations.
  • ASCII Art Graphic is a way to display graphics in ASCII characters and combinations. You can use the specified characters instead of the characters you want to express. Text or graphics, each alternative is called a WordArt font. Referring to Fig. la - Fig. lh, it is an exemplary diagram of the ASCII code art word, ASCII code art figure, and character array according to the present invention.
  • ASCII art graphics can define a variety of phrases and graphics, such as cakes, candles and other graphics composed of ASCII code. Moreover, a phrase can correspond to multiple graphics, such as "Tiger,” which can correspond to different ASCII codes and multiple styles of tiger graphics.
  • the astigmatism word is a Chinese-only font display method, which displays the Chinese characters split, including the horizontal splitting and vertical splitting of Chinese characters, and the Chinese character splitting of more than three components. For example, the text string “good post, haha”, split into astigmatism string “women's bow, but the mouth of the mouth, mouth and mouth”.
  • a single-line string is a phrase that defines a word or a phrase that is equivalent to a string of characters. Or sentence. For example, defining "injection” is equivalent to "glucose injection”.
  • a character array is similar to the single-line string in that it defines a word or a phrase to make it equivalent to multiple lines of text. As shown in Figure lh, the definition of "day, is equivalent to a poem, and this poem is a character array consisting of four lines of four poems, each line separated by a carriage return. For the single line string and In the character array mode, when the user inputs "injection, or" day, it will output "glucose injection," or the character array as a whole.
  • Graphics include normal graphics, graphic animation in gif format, or graphic animation in other formats, stored and output as images.
  • the WordArt function provided by the present invention can be directly input in the application window.
  • Figure 2 there is shown a flow chart of the steps of inputting a WordArt/Graph in an application window as described in the present invention.
  • Step 201 Establish a mapping relationship between the keyboard message code and the word style, and the word style is obtained by a pre-storage method or by a preset algorithm.
  • the characters include Chinese, English, special symbols, and the like.
  • an artistic word or graphic library is established, and the ASCII code art word, ASCII art graphic, astigmatism word, single-line character string, character array, and graphic with high frequency of use are stored, so that the user can directly call the system storage when using the system.
  • preset the algorithm of the artistic word style according to the relevant parameters, the desired artistic word style can be obtained by the algorithm, and the related parameters can be: unit characters constituting the artistic word, artistic word size, arrangement manner, and the like.
  • Step 202 Acquire a keyboard message code by using an operating system interface function.
  • the system After receiving the key message of the keyboard, the system converts the corresponding key message code into a buffer, and the keyboard message code is the letter, number and special symbol identified on the terminal keyboard.
  • WordArt function of the present invention it is first necessary to obtain the keyboard message code, and then input the message processing, and then output the selected WordArt style.
  • the receiving keyboard message code is executed by a dynamic link library program, and the interface function provided by the system is utilized to realize the combination of the word function module and the system.
  • the method of the present invention is not limited to the Windows system, but can be applied to other operating systems.
  • Step 203 Select a WordArt style to convert the keyboard message code into a matching WordArt or graphic. Since the keyboard message is encoded as a series of letter strings, for the English display, the mapping relationship between the keyboard message code and the ASCII code art word, the ASCII code art graphic, the astigmatism word, the single line character string, the character matrix, or the graphic is directly established; Chinese display, you can create a code string (ie keyboard message code) With the mapping relationship between the text/text string, the text/text string and the word style, the code string is preferably a pinyin string. These mappings are the mapping of Chinese, English, and special symbols to the word style.
  • the art word corresponding to the keyboard message code is matched according to the corresponding mapping relationship. For example, if the user inputs English and selects one of the ASCII art fonts, the corresponding artistic font is matched according to the mapping relationship between the keyboard message encoding and the artistic word style; if the user inputs the encoded string, according to the encoded string (ie, the keyboard) Message coding) With the mapping relationship between text/text string, text/text string and WordArt style, the code string is converted into Chinese characters and then the corresponding art fonts are matched. Due to the various artistic word styles and mapping relationships provided by the present invention, the input is more flexible, the display content is richer, and the input requirements of the user are satisfied.
  • Step 204 Trigger an application interface control message to send a matching result to the currently activated application.
  • the interface control message of the WordArt function module and the application is triggered, and the interface function of the WordArt function module is accessed according to the application program, and the matching result is sent to the currently activated application, and Display the output in the application window.
  • step 204 it is also necessary to determine whether the currently activated application supports the graphic storage format to be input. If yes, go to step 204; if it is not supported, you can directly output the corresponding character or text. There is also a possibility that when the matching result is a graphic, the graphic is sent to the application and the text and/or symbol matching the graphic; at this time, the application determines whether it can support the received image.
  • the graphics storage format if supported, displays the graphics, and if not, displays the text and/or symbols received simultaneously with the graphics.
  • the invention directly matches the acquired keyboard information coding with the artistic word style through the direct combination of the computer operating system and the application program, and directly outputs the matched artistic word or art graphic to the application display window, without opening another independent
  • the word-of-word editing software implements the WordArt function. In the process of web chat, forum speech, etc., if you need to use the word art style, you can input directly in each application window without running separate WordArt software, thus avoiding the process of software running and input conversion, saving System resources are also convenient for users to operate.
  • the above steps solve the problem of directly inputting WordArt in the application window.
  • the commonly used input method is also incorporated into the WordArt function to provide an opportunity for the user to select input.
  • the current input state is first determined. State. If it is currently in the WordArt state, then steps 203 and 204 are continued to implement the WordArt function according to the above method; if it is not the WordArt state, the input method function is executed, and the English, Chinese or special symbols corresponding to the keyboard message encoding are output.
  • the determining step may be performed before receiving the message of the keyboard message, that is, first converting to the state of the word and then typing the character; or performing the receiving of the message of the keyboard message, that is, typing the character first and then selecting the input state.
  • FIG. 3 there is shown a flow chart of the steps of inputting a word/graphic according to a preferred embodiment of the present invention, and the data processing procedure after inputting a character string is explained from the operation and display angle of the user.
  • Step 301 the input method is turned on.
  • Step 302 the user inputs “sougou” or “sogou” on the keyboard, and displays “sougou” or
  • Step 303 switch to the WordArt input mode, that is, open the WordArt preview window.
  • the present invention can perform different processes according to different input states. For example, if it is judged that the current state is a WordArt state, the matching of the WordArt style is performed; if it is determined that the current state is the normal input method state, the normal text is executed. String matching function.
  • Step 304 select the candidate " 1. Sogou", the word art of Sogou will appear in the preview window.
  • the process is based on the user's last choice word in the candidate word list as a pre-output word, and the "sogou" is matched as a matching word in the art vocabulary, and the corresponding art word is searched according to the default setting of the artistic font. And then the overall output in the preview window. Of course, if it is not currently a WordArt state, it will output the "Sogou" normal text.
  • Step 305 setting the artistic font.
  • the above preview is displayed in the case of the default setting of the word library.
  • the user can also adjust the setting of the artistic font.
  • the preview window will change the art form corresponding to the current text in real time.
  • the upper screen refers to an operation of displaying the content output in the preview window to the application window. Of course, the user is also free to choose the default word style.
  • Step 306 the art word is output on the screen. For example, if the user is sure, type Ctrl+Enter or point By inputting the button, the upper screen output of the WordArt is realized.
  • the invention also provides a shortcut method. After inputting the "sougou” pinyin string, the "1. Sogou” item is selected by a combination key method (such as Alt+1), and the "Sougou” art word can also be directly output.
  • the artistic font uses the default setting. At this time, the preview window can be omitted, and the efficiency of the art word input is improved.
  • the present invention also provides the function of ASCII character replacement.
  • ASCII character replacement rule is preset; then, the keyboard message is encoded according to a user-confirmed ASCII code character, the character replacement rule, and a pre-stored WordArt style/preset WordArt style algorithm.
  • the corresponding WordArt style is used for character substitution; finally, the application interface control message is triggered, and the word-substituted word/graphic is input to the currently activated application.
  • the replacement may be: replacement of a solid line with a broken line, replacement of a single line and a double line, replacement of a character word unit character, and the like.
  • the "Zixia Double Line” shown in Figure 1 is a replacement for the "Zixia Standard Body", replacing the single line with a double line.
  • the ASCII character substitution function can expand the pre-stored WordArt style or preset Art Word algorithm, which greatly facilitates user input, provides users with a variety of font display, and saves system storage space.
  • the present invention also provides the function of ASCII art graphic replacement.
  • ASCII art graphic replacement rule is preset; then, according to the ASCII art graphic replacement rule and the pre-stored picture graphic, the ASCII code art graphic is replaced by the corresponding picture graphic of the keyboard message; , triggers the application interface control message, and enters the replaced ASCII art graphic into the currently activated application.
  • the picture graphics of the JPG are converted into ASCII art graphics according to a certain algorithm (the format may be TXT, HTML, etc.), wherein the algorithms involved are well known to those skilled in the art, and will not be described in detail herein. .
  • the present invention preferably, when matching other art word styles other than the ASCII code art word, it is also necessary to perform word segmentation on the character string corresponding to the code string. For example, when selecting an ASCII art graphic or graphic animation, the user enters "fruit cake is done", the automatic word segmentation technology will separate the "fruit” and “cake”, and go to the gallery to match, and match the graphics.
  • the upper screen output shows a graphic of a fruit connected to a cake, and then "does" three words that cannot match the graphic.
  • the character string that needs to be segmented according to the present invention is not limited to Chinese only, and other characters such as Japanese, Korean, etc. are all feasible.
  • word segmentation methods are: word segmentation based on string matching (ie mechanical segmentation), word segmentation based on feature scanning or mark segmentation, word segmentation based on understanding, and segmentation method based on statistics.
  • word segmentation methods there will be problems with participle ambiguity. For example, there are many ways to divide the phrase “Chinese people”. If there are three words “China”, “people,”, “national people” in the thesaurus, "the Chinese people, one possible division is “China”"People,,, another may be distributed as “Chinese,””Chinese,””Min.” This is the participle ambiguity.
  • Ambiguity handling is a very difficult operation, which has not yet been resolved, in the case of ambiguity of participles, Various word segmentation methods can only be combined with practical applications, and try to achieve accurate word segmentation. Word segmentation.
  • the optimal segmentation path method based on the unary model (optimal segmentation path method) can be used. More faithful to the original semantics, as explained below.
  • ambiguities in the word segmentation There are two kinds of ambiguities in the word segmentation.
  • Tsinghua University / Tsinghua University The method of optimal segmentation path method is to extract all the parts and then filter according to specific needs.
  • intersection ambiguity such as the string ABC, ⁇ and BC are the elements in the thesaurus.
  • “Chinese,,,, may be divided into “China / People,” and “Chinese / Chinese.”
  • intersection-type ambiguity the optimal segmentation path method uses a scoring algorithm to perform weight calculations for each possible segmentation method and find the best segmentation path among all possible segments. This process can be quickly implemented through dynamic programming methods.
  • the evaluation function used by the scoring algorithm is determined by the number and frequency of words, as illustrated below.
  • F(x) be the evaluation value of a certain word segmentation scheme of the substring starting from position X, where X represents the above numerical number.
  • F(x) is a combination of the following components:
  • WC(x) The number of Term of the best segmentation scheme for the substring starting from X.
  • the Term represents a participle in the corresponding vocabulary in the phrase, such as taking X as 0 and Term as Chinese/people/station/up/, so
  • WC(x) is 5;
  • FQ(x) The logarithm of the term word frequency of the best segmentation scheme of the substring starting from X.
  • the word frequency refers to the statistical frequency that each Term appears on the Internet;
  • the system can also be based on the user's process of selecting words, combined with the system's participle, "eggs,, and separate, form the egg map + "cake," the output of the word.
  • the system can also The mode of segmentation according to the user's word selection is recorded, so that the user can perform quick matching when inputting again.
  • the execution steps are basically the same as those shown in FIG. 2, the difference being: using the keyboard message encoding-text/text string-art word style
  • the mapping relationship between the first, the keyboard message encoding is first converted into a corresponding text string; then according to the text string semantics and the pre-stored artistic word style, the text string is segmented, and the pre-stored artistic word is used when using the word segmentation technique
  • the style is considered as a participle factor. For example, the stored matchable phrases can be listed.
  • the word segmentation is first considered. Then, according to the mapping relationship between the text/text string and the artistic word style, the phrase after the word segmentation is matched with the artistic word style.
  • the embodiment will be described below.
  • the WordArt function module When the user types a code string of a character string such as a phrase or a sentence, the WordArt function module performs: according to the mapping relationship between the keyboard message encoding (ie, the encoded string) and the text/text string, the options are listed in the candidate word list; After the user selects, according to the text string semantics and the pre-stored artistic word style, the word segmentation method is used to segment the text string; and then according to the segmentation result and the pre-stored text/text string and the word style mapping Relationship, the corresponding WordArt style matching; Finally, the matching result display is output to the application window.
  • the present invention also provides an opportunity for the user to select an output.
  • the preview window displays a matchable phrase in the WordArt style, and the user can select the WordArt style that needs to be output according to the input requirements. For example, in the text string "I am going to see monkeys and tigers today", if the user selects a character to draw a WordArt style, the phrase that can match the ASCII code art characters is "Monkey", "Tiger", and others. Text cannot match characters. "Monkey”, "Tiger,” may correspond to a number of different styles of character painting, the user can select in the preview window to enter the desired character to draw the word art. Of course, other text, such as "I go to see today", The user can enter it by selecting the normal ASCII code art word. This user can select the side of the output effect. Increases the flexibility of user input for a better input experience.
  • the character string is first divided into separate phrases or characters, and then the matching method is performed, so that the user can input the text string once and then display the corresponding artistic word style on the screen.
  • the word segmentation step can avoid the wrong artistic word output.
  • the word segmentation step can find and output the matching artistic word style in the long Chinese character string input by the user, thereby improving various artistic words. Style matching efficiency and matching effect.
  • the present invention also provides a user-defined function, and the user can establish a mapping relationship between a character and a single-line character string, a character matrix, an astigmatism word, a graphic, etc. according to the input requirement, and create a corresponding text or graphic library by itself, and the combined input.
  • the word-of-art function of the law is more scalable and user-participating to meet the individual needs of the user.
  • the WordArt window is the main body of the WordArt function, including: input section (ie editable section), output section (Art Word preview), option setting button.
  • the WordArt window has two modes: Standard mode and Quick mode.
  • FIG. 4 there is shown a schematic diagram of a WordArt window in a standard mode for implementing the present invention.
  • the window in standard mode is full-featured mode, which is a mode that can be set and previewed completely. Includes:
  • the input window 401 is an editable window, can input multiple lines of text, and can perform a carriage return operation.
  • the preview window 402 is an uneditable window that only displays the actual WordArt effect.
  • Up button 403 click this button, or enter the shortcut key ctrl+enter of this button, and output the characters in the preview window to the place where the user originally positioned the cursor.
  • the word spacing 405 is the number of spaces automatically added between the art words to facilitate the user to output a larger spacing of artistic words (for example, in the signature file).
  • Automatic carriage return line feed 406 in the multi-line string, the last line of output must be changed after the line, so that the following words can continue to line feed input. If it is a single-line string, such as a horizontally split astigmatism, you don't have to wrap it. Whether or not to automatically wrap information can also be provided by the font itself.
  • the button 407 is turned off, and when the user clicks the close button, the word mode is exited and the mode is switched to the normal input mode.
  • the input window 408 of the input method is the same as the input window in the normal state.
  • FIG. 5 it is a schematic diagram of a WordArt window in a shortcut mode for implementing the present invention, and the shortcut mode is a preview only function.
  • Quick Mode all feature options are set to the default settings in standard mode, such as fonts. If you need to modify the font of the shortcut mode, etc., you need to open the standard mode change.
  • the shortcut mode the preview window previews the content that is currently in focus, and the focus refers to the selected word.
  • buttons for WordArt on the status bar of the input method, similar to the button for Chinese/English, Full/Half-Angle.
  • the button has three states: the artistic word closed state, the artistic word standard mode, and the artistic word shortcut mode. When clicked, the wheeling of these three states is performed, and the default state is the closed state.
  • the normal input method is done by clicking a button or a shortcut.
  • the status bar appears; Click the WordArt button or the shortcut key to enter the WordArt mode, and pop up the WordArt window and the Input Method window.
  • the WordArt mode can be divided into a standard mode and a shortcut mode, for example, as shown in Figs. 4 and 5.
  • the quick input method is to input the word art directly to the application by inputting the coded shortcut key, mainly for the case of temporarily inputting a plurality of art characters without using a mouse and using only a keyboard operation.
  • the operation flow is: User input letter ⁇ trigger key (') ⁇ go to shortcut mode ⁇ press space or number to enter the art word on the screen (by default font).
  • the quick input mode can not pop up the art word window under the normal input mode, and the art setting can be directly put on the screen by using the default setting.
  • the present invention also provides a system for inputting a word of art in an application window, which is designed to interface with a computer system and an application for inputting a keyboard. The information is displayed directly in the application window.
  • Figure 6 there is shown a system structure diagram for inputting a word/graphic in an application window according to the present invention.
  • the storage unit 601 is configured to pre-store various artistic word styles or preset artistic word style algorithms, and a mapping relationship between the keyboard message encoding and the artistic word style; the artistic word styles include: ASCII code art characters, ASCII code art graphics , astigmatism, single-line strings, character arrays or graphics.
  • the storage unit 601 stores the text/text string, the astigmatism word, the single-line character string, and the character array corresponding to the keyboard message code in the character library 6011 according to different categories of the artistic word style, and the keyboard and the keyboard
  • the ASCII code art word corresponding to the message code or the preset art word style algorithm is stored in
  • the ASCII Art Font Library 6012 stores the ASCII art graphics and graphics corresponding to the keyboard message encoding in the graphics library 6013.
  • the mapping relationship table is separately stored in the storage unit 601, and includes: a mapping relationship between the keyboard message encoding and the text/text string, a mapping relationship between the text/text string and the artistic word style; and a mapping relationship between the keyboard message encoding and the artistic word style directly .
  • the code receiving unit 602 is configured to invoke an operating system interface function, obtain a keyboard message code, and implement an interface function with the computer system.
  • the method of the present invention is not limited to the Windows system, but can be applied to other operating systems.
  • the word matching unit 603 is configured to match the mapping relationship table in the storage unit 601, and match the keyboard message encoding acquired by the encoding receiving unit 602 with the artistic word pattern in the storage unit 601. If the received keyboard message code is an English input, the word matching is directly performed according to the mapping relationship between the keyboard message code and the WordArt style in the mapping relationship table; if the received keyboard message code is the code string input, according to the keyboard message code and the text / mapping relationship of text strings, mapping relationship between text/text strings and artistic word styles, first selecting corresponding Chinese characters in the candidate word list, and then performing matching of artistic words in the storage unit 601.
  • the output unit 604 is configured to trigger an application interface control message, send a matching result to the currently activated application, and implement an interface function with the application. After completing the matching of the artistic word style, the artistic word matching unit 603 will trigger the interface control message of the artistic word system and the application, access the interface function of the artistic word system according to the application program, and send the matching result to the currently activated application.
  • the output can be displayed directly in the application window.
  • the application determining unit 605 if the matching result of the WordArt matching unit 603 is a graphic stored in the picture format, before the trigger output unit 604, the application determining unit 605 is configured to determine whether the currently activated application supports the corresponding graphic storage. Format, if supported, triggers the output unit
  • the self-editing unit 606 is configured to customize a mapping relationship between the keyboard message encoding and the WordArt style, and save the storage unit 601.
  • the user can create a mapping relationship between characters and single-line strings, character arrays, astigmatism words, graphics, etc. according to the input requirements, and create a corresponding text or graphics library.
  • the WordArt function of the French method is more scalable and user-participating, and prepares for the future exchange of the thesaurus and the graphics library.
  • the character matching unit 608 is configured to match a mapping relationship between the keyboard message encoding and the text/character string, and match the text/text string corresponding to the encoding; And determining whether the current state is a WordArt state, and if so, triggering the WordArt matching unit 603; otherwise, triggering the character matching unit 608.
  • the present invention also incorporates commonly used input methods in the WordArt system to provide an opportunity for the user to select inputs. Before the word-of-word matching unit 603 performs the matching of the WordArt style, the judgment state unit 607 first judges the current input state.
  • the WordArt Matching Unit 603 is executed to implement the WordArt function; if it is not a WordArt state, the Character Matching Unit 608 is executed to output an English, Chinese or special symbol corresponding to the keyboard message encoding.
  • the system shown in Fig. 6 further includes a character replacement unit (not shown), and the storage unit further stores at least one ASCII character replacement rule.
  • the character replacement unit is configured to encode a corresponding artistic word style into the keyboard message according to the ASCII code character confirmed by the user, the character replacement rule, and the pre-stored artistic word style/preset artistic word style algorithm. replace.
  • the code receiving unit 602, the storage unit 601, and the output unit 604 may be located in the same computing device.
  • the network input process may also be employed: the system code receiving unit 602 and the output unit 604.
  • the first computing device is located in the first computing device.
  • the storage unit 601 is located in the second computing device.
  • the system shown in FIG. 6 obtains corresponding information from the storage unit located in the second computing device according to the keyboard message input by the user, and outputs the corresponding information in the first computing device.
  • the system shown in FIG. 6 further includes a graphics replacement unit (not shown), wherein the storage unit further stores at least one ASCII art pattern replacement rule; the graphics replacement unit is configured to replace the ASCII code art graphic The rule and the pre-stored picture graphic perform ASCII code art graphic replacement on the corresponding picture graphic of the keyboard message.
  • the present invention also provides a system for inputting WordArt in an application window.
  • FIG. 7 a system structure diagram for inputting a word/graphic in an application window according to a preferred embodiment of the present invention.
  • code receiving unit 702 word matching unit 703, output unit 704, application determining unit 705, self-editing unit 706, and determining status unit 707
  • a character string matching unit 708 and a word segmentation unit 709 are also included. among them,
  • the storage unit 701 has the same function as the storage unit 601, and is used for pre-storing various artistic word styles or preset art word style algorithms, and mapping between keyboard message encoding-text/text string-art word style. table. It also includes character library 7011, ASCII art font 7012 and graphics library 7013.
  • the character string matching unit 708 is configured to correspond to the mapping relationship between the keyboard message encoding and the text/character string in the storage unit 701, and match the text/text string corresponding to the encoding.
  • the text string matching unit 708 will perform a match of the text/text string on the code string.
  • the word segmentation unit 709 if the user-selected art word style is an ASCII art graphic, a single-line character string, a character matrix or a graphic, etc., is used to segment the text string obtained by the character string matching unit 708.
  • the phrase or sentence corresponding to the character string is subjected to word segmentation processing, and then the art word matching unit 703 matches the corresponding art word stored in the storage unit 701, so that the user can input the text string once and then display the corresponding art on the screen.
  • the word style can also improve the matching efficiency and matching effect of various artistic word styles.
  • the present invention can perform word segmentation processing using several word segmentation methods as described above or other methods well known to those skilled in the art.
  • the optimal segmentation path method based on the unary model can be used to be more faithful to the original semantics.
  • the specific description of the optimal segmentation path method is as described above.
  • the word matching unit 703 has the same function as the word matching unit 603, and is used for the mapping result according to the segmentation unit 709 and the mapping relationship between the character/character string and the word style in the storage unit 701 to the storage unit 701. Get the corresponding WordArt style.
  • the judgment status unit 707 is the same as the function of the judgment status unit 607, and is used to determine whether the current status is a WordArt state, and if so, triggers the character string matching unit 708 - word segmentation unit 709 - Word Word matching unit 703 - Output unit 704; , trigger text string matching unit 708 - output unit 704.
  • the system shown in FIG. 7 may further include a character replacement unit, wherein the storage unit 701 further stores at least one ASCII code character replacement rule; the character replacement unit is configured to replace the ASCII code character according to the user, the character replacement Rules and pre-stored WordArt style/preset WordArt style algorithms,
  • the keyboard message is encoded with a corresponding art word style for character replacement.
  • WordArt style may also include words, symbols or combinations thereof having the same or similar meanings, and the above characters may include national languages, punctuation and numbers.
  • “hungry” means “I” on the network, "0” for “I”, “i 40” for “down” (me) and so on.
  • a mapping relationship between a certain keyboard message code and the same or similar character or symbol, or a combination thereof may be established in advance.
  • it is required to output content corresponding to the keyboard message code, in the case of group words, It can be either a fixed output or a random output, or it can be output according to a preset strategy.
  • the text, symbol or combination of the same or similar shape and sound corresponding to the keyboard message code can be output.

Abstract

A method and a system for inputting artistic word/diagram into application program, wherein said method comprises: building a mapping relationship between the keyboard information code and the artistic word pattern; invoking the operation system interface function to obtain the keyboard information code; matching the article word pattern with the code based on the mapping relationship; triggering the control message of the application program interface to send the matched result to the activated application program.

Description

一种向应用程序输入艺术字 /图形的方法及系统  Method and system for inputting word/graphics to an application
本申请要求于 2006 年 9 月 5 日提交中国专利局、 申请号为 200610127154.2、发明名称为 "一种向应用程序输入艺术字 /图形的方法及系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 200610127154.2, entitled "A Method and System for Entering Word Words/Graphics to an Application", filed on September 5, 2006, the entire contents of which are filed. This is incorporated herein by reference.
技术领域 Technical field
本发明涉及键盘信息处理领域,特别是涉及一种在应用程序窗口中输入艺 术字 /图形的方法及系统。  The present invention relates to the field of keyboard information processing, and more particularly to a method and system for inputting art words/graphics in an application window.
背景技术 Background technique
ASCII码艺术字是随着计算机及网络的发展产生的一种特殊字符、文字或 图形, 能够以多种多样的 ASCII码字符及其组合形式显示,不同于通常的字体 设置属性。 在网络应用中, 如网络聊天、 论坛、 社区等, 这种对字体具有装饰 等拓展效果的艺术字样式被广泛应用。  ASCII Art Word is a special character, text or graphic generated by the development of computers and networks. It can be displayed in a variety of ASCII characters and combinations, unlike the usual font setting properties. In web applications, such as web chat, forums, communities, etc., this type of artistic word that has decorative effects such as decoration is widely used.
当前, 在应用程序窗口中显示 ASCII码艺术字的方式是: 先运行 ASCII 码艺术字字符编辑输出软件 ,在软件中的输入区域内输入想要转换成相应艺术 文字的字符或字符串, 然后选择需要转换的字体, 软件在预览框中会显示这些 字符或字符串的相应艺术字体样式的字符,如果用户确认效果合适, 即可以使 用拷贝或者存储的方式转换输出相应的艺术文字,然后再粘贴到其他用户需要 输入此类字符的窗口中。  Currently, the way to display ASCII Art Words in the application window is: First run the ASCII code art word character editing output software, enter the characters or strings you want to convert into the corresponding art text in the input area of the software, and then select The font to be converted, the software will display the characters of the corresponding artistic font style of these characters or strings in the preview box. If the user confirms that the effect is appropriate, the corresponding artistic text can be converted and stored by copying or storing, and then pasted into Other users need to enter such characters in the window.
各种 ASCII码艺术字软件的应用在丰富字体显示的同时,也给用户操作带 来不便之处, 用户首先需要安装启动单独的软件, 然后经过从输入到拷贝再到 粘贴的繁瑣过程, 才能将艺术字输入到显示窗口。 由于上述方式提供的是应用 程序与应用程序的结合,即提供 ASCII码艺术字的软件作为一种独立于计算机 系统的应用程序, 通过单独软件输入再转换到显示窗口, 用户需要在 ASCII 码艺术字软件和需要输入艺术字的程序窗口间相切换,所述软件的运行以及拷 贝、 粘贴的过程都会占用系统资源, 还会耗费时间和人力。 而且, 多个程序窗 口间的切换容易造成误操作, 以及所拷贝内容的丟失。  The application of various ASCII art words software is rich in font display, and also brings inconvenience to the user operation. The user first needs to install and start separate software, and then through the cumbersome process from input to copy to paste, Word art is entered into the display window. Since the above method provides a combination of an application and an application, that is, software that provides ASCII code art words as a computer system-independent application, by inputting a separate software and then converting to a display window, the user needs an ASCII code word art. The software and the program window that needs to input the word of art switch, the operation of the software and the process of copying and pasting occupy system resources, and it takes time and manpower. Moreover, switching between multiple program windows is prone to erroneous operations and loss of copied content.
此外,用户还必须先在系统中安装相应艺术字编辑软件才能实现艺术字功 能。 在网络聊天、 论坛发言等过程中, 若临时需要使用 ASCII码艺术字样式, 由于没有相应软件, 造成用户不能及时有效使用的情况。 发明内容 In addition, users must first install the corresponding WordArt editing software in the system to achieve the WordArt function. In the process of web chat, forum speech, etc., if you need to use the ASCII code art style temporarily, there is no corresponding software, which may cause the user to use it in time. Summary of the invention
本发明所要解决的技术问题是提供一种在应用程序窗口中输入艺术字 /图 形的方法及系统, 以解决现有技术条件下向应用程序输入艺术字 /图形的过程 占用过多系统资源的问题。  The technical problem to be solved by the present invention is to provide a method and system for inputting a word/graphic in an application window to solve the problem that the process of inputting a word/graphic to an application under the prior art occupies excessive system resources. .
本发明的另一目的在于提供一种向应用程序输入艺术字 /图形的方法和系 而提高用户输入艺术字的体验和效果。  Another object of the present invention is to provide a method and system for inputting WordArt/Graphics to an application to improve the user experience and effect of inputting WordArt.
为解决上述技术问题, 本发明提供了一种向应用程序输入艺术字 /图形的 方法, 包括:  In order to solve the above technical problems, the present invention provides a method for inputting a word/graphic to an application, comprising:
建立键盘消息编码与艺术字样式的映射关系; 调用操作系统接口函数, 获 取键盘消息编码; 对应所述映射关系, 匹配与所述键盘消息编码对应的艺术字 样式; 触发应用程序接口控制消息, 向当前激活的应用程序输入艺术字 /图形。 述映射关系包括: 键盘消息编码与文字 /文字串的映射, 文字 /文字串与艺术字 样式的映射; 和 /或键盘消息编码直接与艺术字样式的映射。  Establishing a mapping relationship between the keyboard message encoding and the artistic word style; calling an operating system interface function to obtain a keyboard message encoding; matching the mapping relationship, matching the artistic word style corresponding to the keyboard message encoding; triggering the application interface control message, to The currently active application enters WordArt/Graphics. The mapping relationships include: mapping of keyboard message encoding to text/text strings, mapping of text/text strings to WordArt styles; and/or mapping of keyboard message encodings directly to WordArt styles.
优选的, 所述的方法, 还包括: 当匹配结果为图形, 判断当前激活的应用 程序是否支持相应的图形存储格式, 若支持, 则触发应用程序接口控制消息, 向当前激活的应用程序发送匹配结果。  Preferably, the method further includes: when the matching result is a graphic, determining whether the currently activated application supports the corresponding graphic storage format, and if so, triggering the application interface control message to send a match to the currently activated application. result.
优选的, 所述的方法, 还包括: 当匹配结果为图形时, 给应用程序发送所 述图形和与所述图形相匹配的文字和 /或符号。  Preferably, the method further includes: when the matching result is a graphic, sending the graphic and the text and/or symbol matching the graphic to the application.
优选的, 所述的方法, 还包括: 自定义键盘消息编码与艺术字样式的映射 关系。  Preferably, the method further includes: customizing a mapping relationship between the keyboard message encoding and the artistic word style.
优选的, 所述的方法, 还包括: 判断当前状态是否为艺术字状态, 若是, 则进行艺术字的匹配; 否则, 对应所述键盘消息编码与文字 /文字串的映射关 系, 进行文字 /文字串的匹配。  Preferably, the method further includes: determining whether the current state is a WordArt state, and if yes, performing a matching of the WordArt; otherwise, corresponding to the mapping relationship between the keyboard message encoding and the text/text string, performing text/text String match.
优选的, 所述的方法, 还包括: 预设置至少一种 ASCII码字符替换规则; 根据用户确认的 ASCII码字符、 所述字符替换规则以及预存储的艺术字样式 / 预置的艺术字样式算法, 对所述键盘消息编码相应的艺术字样式进行字符替 换; 触发应用程序接口控制消息, 向当前激活的应用程序输入字符替换后的艺 术字 /图形。 Preferably, the method further includes: presetting at least one ASCII code character replacement rule; ASCII code characters confirmed by the user, the character replacement rule, and a pre-stored word style/preset word style algorithm And performing character substitution on the corresponding word style of the keyboard message; triggering an application interface control message, and inputting the character after the character replacement to the currently activated application Word/graphic.
优选的, 所述的方法,还包括: 预设置至少一种 ASCII码艺术图形替换规 则;根据所述 ASCII码艺术图形替换规则以及预存储的图片图形,对所述键盘 消息编码相应的图片图形进行 ASCII码艺术图形替换;触发应用程序接口控制 消息, 向当前激活的应用程序输入替换后的 ASCII码艺术图形。  Preferably, the method further includes: presetting at least one ASCII code art graphic replacement rule; and encoding the corresponding picture graphic by the keyboard message according to the ASCII code art graphic replacement rule and the pre-stored picture graphic ASCII art graphic replacement; triggers the application interface control message to enter the replaced ASCII art graphic into the currently active application.
优选的, 所述艺术字样式包括但不限于: ASCII码艺术字、 ASCII码艺术 图形、 散光字、 单行字符串、 字符阵、 图形、 形音意相同或近似的文字、 符号 或其组合。  Preferably, the WordArt style includes, but is not limited to, an ASCII art word, an ASCII art graphic, an astigmatism word, a single-line character string, a character matrix, a graphic, a similar or similar text, a symbol, or a combination thereof.
本发明还公开了一种向应用程序输入艺术字 /图形的方法, 包括: 建立键盘消息编码 -文字 /文字串 -艺术字样式三者之间的映射关系; 调 用操作系统接口函数, 获取键盘消息编码; 对应键盘消息编码与文字 /文字串 的映射关系, 获取相应的文字串; 对应文字串语义和预存储的艺术字样式, 切 取相应的艺术字样式; 触发应用程序接口控制消息, 向当前激活的应用程序输 入艺术字 /图形。  The invention also discloses a method for inputting a word/graphic to an application, comprising: establishing a mapping relationship between a keyboard message code-text/text string-art word style; calling an operating system interface function to obtain a keyboard message Coding; corresponding to the mapping relationship between the keyboard message encoding and the text/text string, obtaining the corresponding text string; corresponding to the text string semantics and the pre-stored artistic word style, cutting the corresponding artistic word style; triggering the application interface control message, to the current activation The app enters WordArt/Graphics.
优选的, 所述的方法, 还包括: 当匹配结果为图形时, 判断当前激活的应 用程序是否支持相应的图形存储格式,若支持,则触发应用程序接口控制消息 , 向当前激活的应用程序输入艺术字 /图形。  Preferably, the method further includes: when the matching result is a graphic, determining whether the currently activated application supports the corresponding graphic storage format, and if so, triggering the application interface control message to input to the currently activated application. Word/graphics.
优选的, 所述的方法, 还包括: 当匹配结果为图形时, 给应用程序发送所 述图形和与所述图形相匹配的文字和 /或符号。  Preferably, the method further includes: when the matching result is a graphic, sending the graphic and the text and/or symbol matching the graphic to the application.
优选的, 所述的方法, 还包括: 预设置至少一种 ASCII码字符替换规则; 根据用户确认的 ASCII码字符、 所述字符替换规则以及预存储的艺术字样式 / 预置的艺术字样式算法, 对所述键盘消息编码相应的艺术字样式进行字符替 换; 触发应用程序接口控制消息, 向当前激活的应用程序输入字符替换后的艺 术字 /图形。  Preferably, the method further includes: presetting at least one ASCII code character replacement rule; ASCII code characters confirmed by the user, the character replacement rule, and a pre-stored word style/preset word style algorithm And performing character substitution on the corresponding word-of-word style of the keyboard message; triggering the application interface control message, and inputting the word-changed word/graphic to the currently activated application.
优选的, 所述艺术字样式包括但不限于: ASCII码艺术字、 ASCII码艺术 图形、 散光字、 单行字符串、 字符阵、 图形、 形音意相同或近似的文字、 符号 或其组合。  Preferably, the WordArt style includes, but is not limited to, an ASCII art word, an ASCII art graphic, an astigmatism word, a single-line character string, a character matrix, a graphic, a similar or similar text, a symbol, or a combination thereof.
本发明还提供了一种向应用程序输入艺术字 /图形的系统, 包括: 存储单元, 用于预存储艺术字样式或者预置的艺术字样式算法, 以及键盘 消息编码与艺术字样式的映射关系; The present invention also provides a system for inputting WordArt/Graphics to an application, comprising: a storage unit, configured to pre-store a WordArt style or a preset WordArt style algorithm, and a mapping relationship between a keyboard message code and a WordArt style;
编码接收单元, 用于调用操作系统接口函数, 获取键盘消息编码; 艺术字匹配单元, 用于对应所述映射关系表, 匹配与所述键盘消息编码对 应的艺术字样式;  a code receiving unit, configured to invoke an operating system interface function, to obtain a keyboard message encoding; a word matching unit, configured to match the mapping relationship table, and match an art word style corresponding to the keyboard message encoding;
输出单元, 用于触发应用程序接口控制消息, 向当前激活的应用程序输入 艺术字 /图形。  An output unit that triggers an application interface control message to input a word/graphic to the currently active application.
优选的, 所述映射关系包括: 键盘消息编码与文字 /文字串的映射关系, 文字 /文字串与艺术字样式的映射关系; 和 /或键盘消息编码直接与艺术字样式 的映射关系。  Preferably, the mapping relationship comprises: a mapping relationship between a keyboard message encoding and a text/text string, a mapping relationship between a text/text string and an artistic word style; and/or a mapping relationship between the keyboard message encoding and the artistic word style.
优选的, 所述存储单元包括: 字符库, 用于存放与键盘消息编码对应的文 字 /文字串、 散光字、 单行字符串或者字符阵; ASCII码艺术字库, 用于存放 与键盘消息编码对应的 ASCII码艺术字或者预置的艺术字算法; 图形库,用于 存放与键盘消息编码对应的 ASCII码艺术图形或者图片图形。  Preferably, the storage unit comprises: a character library, configured to store a text/text string, an astigmatism word, a single-line character string or a character array corresponding to the keyboard message code; an ASCII code art font library, configured to store a correspondence corresponding to the keyboard message code. ASCII code art word or preset art word algorithm; graphics library for storing ASCII code art graphics or picture graphics corresponding to keyboard message encoding.
优选的, 所述的系统,还包括:应用程序判断单元, 当匹配结果为图形时, 用于判断当前激活的应用程序是否支持相应的图形存储格式, 若支持, 则触发 所述输出单元。  Preferably, the system further includes: an application determining unit, configured to determine whether the currently activated application supports a corresponding graphic storage format when the matching result is a graphic, and if supported, triggers the output unit.
优选的, 所述的系统, 还包括: 自编辑单元, 用于用户自定义设置键盘消 息编码与艺术字样式的映射关系, 并保存至所述存储单元。  Preferably, the system further includes: a self-editing unit, configured to: user-defined a mapping relationship between the keyboard message encoding and the WordArt style, and save to the storage unit.
优选的, 所述的系统, 还包括: 字符匹配单元, 用于根据键盘消息编码与 文字 /文字串的映射关系, 匹配与所述编码对应的文字 /文字串; 判断状态单元, 用于判断当前状态是否为艺术字状态, 若是, 则触发所述艺术字匹配单元; 否 则, 触发所述字符匹配单元。  Preferably, the system further includes: a character matching unit, configured to match a text/text string corresponding to the encoding according to a mapping relationship between a keyboard message encoding and a text/text string; and determine a status unit, configured to determine a current Whether the state is a WordArt state, and if so, triggering the WordArt matching unit; otherwise, the character matching unit is triggered.
优选的,所述存储单元中还存储有至少一种 ASCII码字符替换规则; 所述 的系统还包括:字符替换单元;所述字符替换单元,用于根据用户确认的 ASCII 码字符、 所述字符替换规则以及预存储的艺术字样式 /预置的艺术字样式算法 , 对所述键盘消息编码相应的艺术字样式进行字符替换。  Preferably, the storage unit further stores at least one ASCII code character replacement rule; the system further includes: a character replacement unit; and the character replacement unit is configured to: according to the ASCII code character confirmed by the user, the character The replacement rule and the pre-stored WordArt style/preset WordArt style algorithm perform character substitution on the corresponding WordArt style of the keyboard message encoding.
优选的, 所述存储单元中还存储有至少一种 ASCII码艺术图形替换规则; 所述的系统还包括图形替换单元; 所述图形替换单元, 用于根据所述 ASCII 码艺术图形替换规则以及预存储的图片图形,对所述键盘消息编码相应的图片 图形进行 ASCII码艺术图形替换。 Preferably, the storage unit further stores at least one ASCII code art graphics replacement rule; the system further includes a graphics replacement unit; the graphics replacement unit is configured to use the ASCII The code art graphic replacement rule and the pre-stored picture graphic perform ASCII code art graphic replacement on the corresponding picture graphic of the keyboard message encoding.
其中, 所述向应用程序输入艺术字 /图形的系统所包括的编码接收单元、 存储单元以及输出单元位于同一计算设备中;或者所述向应用程序输入艺术字 /图形的系统所包括的系统编码接收单元、 输出单元位于第一计算设备中, 存 储单元位于第二计算设备中; 该系统根据用户输入的键盘消息,从位于第二计 算设备的存储单元中获取相应信息, 在第一计算设备输出。  Wherein the code receiving unit, the storage unit and the output unit included in the system for inputting the word/graphic to the application are located in the same computing device; or the system code included in the system for inputting the word/graphic to the application The receiving unit and the output unit are located in the first computing device, and the storage unit is located in the second computing device; the system obtains corresponding information from the storage unit located in the second computing device according to the keyboard message input by the user, and outputs the corresponding information in the first computing device. .
优选的, 所述艺术字样式包括但不限于: ASCII码艺术字、 ASCII码艺术 图形、 散光字、 单行字符串、 字符阵、 图形、 形音意相同或近似的文字、 符号 或其组合。  Preferably, the WordArt style includes, but is not limited to, an ASCII art word, an ASCII art graphic, an astigmatism word, a single-line character string, a character matrix, a graphic, a similar or similar text, a symbol, or a combination thereof.
本发明还提供了一种向应用程序输入艺术字 /图形的系统, 包括: 存储单元, 用于预存储艺术字样式或者预置的艺术字样式算法, 以及键盘 消息编码 -文字 /文字串 -艺术字样式三者之间的映射关系;  The present invention also provides a system for inputting WordArt/Graphics to an application, comprising: a storage unit for pre-storing a WordArt style or a preset WordArt style algorithm, and a keyboard message encoding-text/text string-art The mapping relationship between the three characters;
编码接收单元, 用于调用操作系统接口函数, 获取键盘消息编码; 文字串匹配单元, 用于对应键盘消息编码与文字 /文字串的映射关系,获取 相应的文字串;  a code receiving unit, configured to invoke an operating system interface function to obtain a keyboard message encoding; a text string matching unit, configured to correspond to a mapping relationship between the keyboard message encoding and the text/text string, and obtain a corresponding text string;
分词单元,用于对应文字串语义和预存储的艺术字样式,切分所述文字串; 射关系, 获取相应的艺术字样式;  a word segmentation unit for corresponding text string semantics and pre-stored artistic word styles, segmenting the text strings; shooting relationships, obtaining corresponding artistic word styles;
输出单元, 用于触发应用程序接口控制消息, 向当前激活的应用程序输入 艺术字 /图形。  An output unit that triggers an application interface control message to input a word/graphic to the currently active application.
优选的, 所述的系统, 还包括: 判断状态单元, 用于判断当前状态是否为 艺术字状态, 若是, 则连接文字串匹配单元-分词单元-艺术字匹配单元-输 出单元; 否则, 连接文字串匹配单元 -输出单元。  Preferably, the system further includes: a determining status unit, configured to determine whether the current status is a WordArt state, and if so, connecting a text string matching unit-word segmentation unit-art word matching unit-output unit; otherwise, connecting the text String matching unit - output unit.
优选的,所述存储单元中还存储有至少一种 ASCII码字符替换规则; 所述 的系统还包括:字符替换单元;所述字符替换单元,用于根据用户确认的 ASCII 码字符、 所述字符替换规则以及预存储的艺术字样式 /预置的艺术字样式算法 , 对所述键盘消息编码相应的艺术字样式进行字符替换。  Preferably, the storage unit further stores at least one ASCII code character replacement rule; the system further includes: a character replacement unit; and the character replacement unit is configured to: according to the ASCII code character confirmed by the user, the character The replacement rule and the pre-stored WordArt style/preset WordArt style algorithm perform character substitution on the corresponding WordArt style of the keyboard message encoding.
优选的, 所述艺术字样式包括但不限于: ASCII码艺术字、 ASCII码艺术 图形、 散光字、 单行字符串、 字符阵、 图形、 形音意相同或近似的文字、 符号 或其组合。 Preferably, the word art style includes but is not limited to: ASCII code art word, ASCII code art Graphics, astigmatism, single-line strings, character arrays, graphics, shapes, or similar words, symbols, or a combination thereof.
与现有技术相比, 本发明具有以下优点:  Compared with the prior art, the present invention has the following advantages:
首先, 本发明通过计算机操作系统与应用程序的直接结合,将获取的键盘 信息编码与艺术字样式进行匹配,并将匹配到的艺术字或艺术图形直接输出到 应用程序显示窗口, 不需要打开另外一个独立的艺术字编辑软件就实现了 ASCII码艺术字功能。用户在网络聊天、论坛发言等过程中,若需要使用 ASCII 码艺术字样式, 可以直接在各应用程序窗口中输入, 而不需要运行单独的艺术 字软件, 因此避免了软件运行及输入转换的过程, 节省了系统资源, 也方便用 户操作。  Firstly, the invention directly matches the acquired keyboard information coding with the artistic word style through the direct combination of the computer operating system and the application program, and directly outputs the matched artistic word or art graphic to the application display window, without opening another An independent WordArt editing software implements the ASCII WordArt function. In the process of web chat, forum speech, etc., if you need to use ASCII code art style, you can input directly in each application window without running separate WordArt software, thus avoiding the process of software running and input conversion. , saves system resources and is convenient for users to operate.
其次, 本发明提供了丰富的艺术字样式及灵活的映射关系, 建立了键盘消 息编码与文字 /文字串的映射,键盘消息编码或文字 /文字串与 ASCII码艺术字、 ASCII码艺术图形、 散光字、 单行字符串、 字符阵、 各种普通图形或图形动画 的映射, 可以根据用户的不同输入和选择, 快速匹配各种艺术字样式, 输入更 灵活, 内容更丰富。  Secondly, the present invention provides a rich artistic word style and flexible mapping relationship, and establishes mapping of keyboard message encoding and text/text string, keyboard message encoding or text/text string and ASCII code art word, ASCII code art graphic, astigmatism. The mapping of words, single-line strings, character arrays, various common graphics or graphic animations can quickly match various artistic word styles according to different input and selection of users, and the input is more flexible and richer in content.
再次,在实现输出复杂的艺术字样式时, 本发明可以釆用一种能够比较准 确的忠于原有语义的分词方法,对选定的文字串进行切分, 然后将对应艺术字 样式显示。 其中, 还可以根据用户选词的过程进行分词和艺术字匹配; 并可以 学习用户的分词模式, 进而提高分词的准确率。对于 ASCII码艺术图形、 字符 阵等以汉字组合(例如, 词)为艺术字输出单位的艺术字样式而言, 分词步骤 可以避免出现错误的艺术字输出。 并且, 由于预先存储的这类复杂的艺术字样 式或者算法不可能存储全部的汉字组合映射关系,所以通过分词步骤可以在用 户输入的较长的汉字串中,找到并输出匹配的艺术字样式,从而提高各种艺术 字样式的匹配效率及匹配效果。  Again, in implementing the output of a complex art word style, the present invention can use a word segmentation method that is more loyal to the original semantics, segment the selected text string, and then display the corresponding art word style. Among them, the word segmentation and the word matching can also be performed according to the process of the user's word selection; and the user's word segmentation mode can be learned, thereby improving the accuracy of the word segmentation. For ASCII art graphics, character arrays, etc., where the Chinese character combination (for example, word) is a WordArt output unit, the word segmentation step can avoid erroneous WordArt output. Moreover, since such complex artistic word styles or algorithms stored in advance cannot store all the Chinese character combination mapping relationships, the word segmentation step can find and output the matching artistic word patterns in the longer Chinese character strings input by the user. Thereby improving the matching efficiency and matching effect of various artistic word styles.
附图说明 DRAWINGS
图 la -图 lh是所述 ASCII码艺术字、 ASCII码艺术图形、 字符阵的示例 图;  Figure la - Figure lh is an example of the ASCII art word, ASCII art graphic, character array;
图 2是本发明所述在应用程序窗口中输入艺术字 /图形的步骤流程图; 图 3是本发明优选实施例所述输入艺术字 /图形的步骤流程图; 图 4是实现本发明的标准模式下的艺术字窗口示意图; 2 is a flow chart showing the steps of inputting a word/graphic in the application window according to the present invention; FIG. 3 is a flow chart showing the steps of inputting a word/graphic according to a preferred embodiment of the present invention; 4 is a schematic diagram of a WordArt window in a standard mode for implementing the present invention;
图 5是实现本发明的快捷模式下的艺术字窗口示意图;  Figure 5 is a schematic diagram of a WordArt window in a shortcut mode for implementing the present invention;
图 6是本发明所述在应用程序窗口中输入艺术字 /图形的系统结构图; 图 7是本发明优选实施例所述的一种在应用程序窗口中输入艺术字 /图形 的系统结构图。  6 is a system structural diagram of inputting a word/graphic in an application window according to the present invention; and FIG. 7 is a system structural diagram of inputting a word/graphic in an application window according to a preferred embodiment of the present invention.
具体实施方式 detailed description
为使本发明的上述目的、特征和优点能够更加明显易懂, 下面结合附图和 具体实施方式对本发明作进一步详细的说明。  The present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
本发明提供了多种艺术字样式,包括 ASCII码艺术字、 ASCII码艺术图形、 散光字、 单行字符串、 字符阵、 或者图形等, 以下进行详细说明。 本发明所述 的艺术字的输入和匹配是不需要限定语言的,但是为了说明方便, 下面主要釆 用中文进行实施例的描述。  The present invention provides a variety of artistic word styles, including ASCII art words, ASCII art graphics, astigmatism words, single-line strings, character arrays, or graphics, etc., which are described in detail below. The input and matching of the word of art according to the present invention does not require a language limitation, but for convenience of explanation, the description of the embodiments will be mainly made in the following.
ASCII码艺术字是一种以 ASCII码字符及其组合形式显示文字的方式, ASCII码艺术图形是一种以 ASCII码字符及其组合形式显示图形的方式,可以 用指定字符来替代想要表达的文字或图形,每一种替代方式称为一种艺术字字 体。 参照图 la -图 lh, 是本发明所述 ASCII码艺术字、 ASCII码艺术图形、 字符阵的示例图。 其中, 图 la的"紫霞 6x6标准体", 图 lb的"紫霞 6x6双线 体", 图 lc的中文 "搜狐 ", 图 Id的英文 "SOHU"、 图 le的" BASIC"、 图 If的 "Larry3d", 即为不同字体的 ASCII码艺术字; 图 lg的英文 "Camel"对应的骆 驼图形即为 ASCII码艺术图形,也称为字符画。 ASCII码艺术字支持显示中文、 英文或其他文字, 可以自由设置显示像素。 通常, 由于应用程序的篇幅需要, 中文釆用 6x6的像素显示紫霞中文艺术字。 ASCII码艺术图形可以定义多种词 组与图形的对应关系, 如蛋糕、 蜡烛等由 ASCII码组成的图形。 而且, 一个词 组可以与多个图形对应, 如"老虎,,一词可以对应不同 ASCII码组成、 多种样式 的老虎图形。  ASCII Art Word is a way to display text in ASCII characters and combinations. ASCII Art Graphic is a way to display graphics in ASCII characters and combinations. You can use the specified characters instead of the characters you want to express. Text or graphics, each alternative is called a WordArt font. Referring to Fig. la - Fig. lh, it is an exemplary diagram of the ASCII code art word, ASCII code art figure, and character array according to the present invention. Among them, Figure la "Zixia 6x6 standard body", Figure lb "Zixia 6x6 double line body", Figure lc Chinese "Sohu", Figure Id English "SOHU", Figure le "BASIC", Figure If "Larry3d", which is the ASCII code art word of different fonts; the camel figure corresponding to the English "Camel" of Figure lg is the ASCII code art figure, also known as character picture. ASCII Art Word supports the display of Chinese, English or other text, and you can freely set the display pixels. Usually, due to the length of the application, Chinese characters display the Zixia Chinese Art Word with 6x6 pixels. ASCII art graphics can define a variety of phrases and graphics, such as cakes, candles and other graphics composed of ASCII code. Moreover, a phrase can correspond to multiple graphics, such as "Tiger," which can correspond to different ASCII codes and multiple styles of tiger graphics.
散光字是一种仅限于中文的字体显示方式,将汉字拆分显示, 包括汉字的 横向拆字和纵向拆字,以及三个以上组成部分的汉字拆字。例如,将文字串"好 强的贴啊, 哈哈", 拆分为散光字串"女子弓虽白勺贝占口阿, 口合口合"。  The astigmatism word is a Chinese-only font display method, which displays the Chinese characters split, including the horizontal splitting and vertical splitting of Chinese characters, and the Chinese character splitting of more than three components. For example, the text string "good post, haha", split into astigmatism string "women's bow, but the mouth of the mouth, mouth and mouth".
单行字符串是指定义一个字或一个词组,使其等价于一串字符组成的词组 或句子。 例如, 定义"注射"等价于 "葡萄糖注射液"。 字符阵与所述单行字符串 的方式相似, 也是定义一个字或一个词组, 使其等价于多行文字。 如图 lh所 示, 定义"白日,,等价于一首诗, 而这首诗是由四行四句诗所组成的字符阵, 每 行以回车相隔。 对于所述单行字符串和字符阵方式, 当用户输入"注射,,或"白 日,,时, 就会相应输出 "葡萄糖注射液,,或字符阵整体。 图形包括普通图形、 图 像交换( gif )格式的图形动画或者其他格式的图形动画, 以图片形式存储和输 出。 A single-line string is a phrase that defines a word or a phrase that is equivalent to a string of characters. Or sentence. For example, defining "injection" is equivalent to "glucose injection". A character array is similar to the single-line string in that it defines a word or a phrase to make it equivalent to multiple lines of text. As shown in Figure lh, the definition of "day, is equivalent to a poem, and this poem is a character array consisting of four lines of four poems, each line separated by a carriage return. For the single line string and In the character array mode, when the user inputs "injection, or" day, it will output "glucose injection," or the character array as a whole. Graphics include normal graphics, graphic animation in gif format, or graphic animation in other formats, stored and output as images.
本发明提供的艺术字功能, 能够直接在应用程序窗口输入。 参照图 2, 是 实现本发明所述在应用程序窗口中输入艺术字 /图形的步骤流程图。  The WordArt function provided by the present invention can be directly input in the application window. Referring to Figure 2, there is shown a flow chart of the steps of inputting a WordArt/Graph in an application window as described in the present invention.
步骤 201 , 建立键盘消息编码与艺术字样式的映射关系, 所述艺术字样式 通过预存储方式获得或者通过预置算法获得。 首先,针对使用艺术字样式的网 络聊天、 论坛等应用环境, 搜集经常会使用到的字符 /字符串, 建立字符 /字符 串与各种艺术字样式的映射关系。 其中, 所述字符包括中文、 英文、 特殊符号 等。 然后, 建立艺术字词或图形库, 将所述使用频率较高的 ASCII码艺术字、 ASCII码艺术图形、 散光字、 单行字符串、 字符阵、 图形存储起来, 方便用户 使用时直接调用系统存储; 或者预置艺术字样式的算法,根据相关参数通过该 算法可以获得需要的艺术字样式, 相关参数可以为: 组成艺术字的单位字符、 艺术字大小、 排列方式等等。  Step 201: Establish a mapping relationship between the keyboard message code and the word style, and the word style is obtained by a pre-storage method or by a preset algorithm. First, for the use of WordArt-style web chat, forums and other application environments, collect the characters/strings that are often used, and establish the mapping relationship between characters/characters and various WordArt styles. The characters include Chinese, English, special symbols, and the like. Then, an artistic word or graphic library is established, and the ASCII code art word, ASCII art graphic, astigmatism word, single-line character string, character array, and graphic with high frequency of use are stored, so that the user can directly call the system storage when using the system. Or preset the algorithm of the artistic word style, according to the relevant parameters, the desired artistic word style can be obtained by the algorithm, and the related parameters can be: unit characters constituting the artistic word, artistic word size, arrangement manner, and the like.
步骤 202, 通过操作系统接口函数, 获取键盘消息编码。 系统接收键盘的 按键消息后,转换成相应的键盘消息编码緩存起来, 所述键盘消息编码即为终 端键盘上标识的字母、 数字和特殊符号。 实现本发明所述的艺术字功能, 首先 需要获取所述键盘消息编码, 进行输入消息处理后,再将选中的艺术字样式输 出。 例如, 在 Windows操作系统中, 接收键盘消息编码执行的是动态链接库 程序, 利用系统提供的接口函数, 从而实现艺术字功能模块与系统的结合。 本 发明所述方法并不仅限于 Windows系统, 还可以应用在其他操作系统中。  Step 202: Acquire a keyboard message code by using an operating system interface function. After receiving the key message of the keyboard, the system converts the corresponding key message code into a buffer, and the keyboard message code is the letter, number and special symbol identified on the terminal keyboard. To implement the WordArt function of the present invention, it is first necessary to obtain the keyboard message code, and then input the message processing, and then output the selected WordArt style. For example, in the Windows operating system, the receiving keyboard message code is executed by a dynamic link library program, and the interface function provided by the system is utilized to realize the combination of the word function module and the system. The method of the present invention is not limited to the Windows system, but can be applied to other operating systems.
步骤 203 , 选择艺术字样式, 将键盘消息编码转换成相匹配的艺术字或图 形。 由于所述键盘消息编码为一系列的字母串, 对于英文显示, 直接建立键盘 消息编码与 ASCII码艺术字、 ASCII码艺术图形、 散光字、 单行字符串、 字符 阵、或者图形的映射关系;对于中文显示,可以建立编码串(即键盘消息编码) 与文字 /文字串、 文字 /文字串与艺术字样式的映射关系, 所述编码串优选的是 拼音串。这些映射关系即为上述的中文、英文及特殊符号与艺术字样式的映射。 Step 203: Select a WordArt style to convert the keyboard message code into a matching WordArt or graphic. Since the keyboard message is encoded as a series of letter strings, for the English display, the mapping relationship between the keyboard message code and the ASCII code art word, the ASCII code art graphic, the astigmatism word, the single line character string, the character matrix, or the graphic is directly established; Chinese display, you can create a code string (ie keyboard message code) With the mapping relationship between the text/text string, the text/text string and the word style, the code string is preferably a pinyin string. These mappings are the mapping of Chinese, English, and special symbols to the word style.
获取键盘消息编码后,根据用户的输入选择,按照相应的映射关系匹配与 键盘消息编码对应的艺术字。 例如, 用户输入英文, 选择其中的一种 ASCII 码艺术字体, 则根据键盘消息编码与艺术字样式的映射关系, 匹配相应的艺术 字体; 若用户输入的是编码串, 则根据编码串 (即键盘消息编码) 与文字 /文 字串、 文字 /文字串与艺术字样式的映射关系, 将编码串转换成汉字后再进行 相应艺术字体的匹配。 由于本发明提供的多种艺术字样式及映射关系,使得输 入更灵活, 显示内容更丰富, 满足了用户的输入需求。  After obtaining the keyboard message code, according to the user's input selection, the art word corresponding to the keyboard message code is matched according to the corresponding mapping relationship. For example, if the user inputs English and selects one of the ASCII art fonts, the corresponding artistic font is matched according to the mapping relationship between the keyboard message encoding and the artistic word style; if the user inputs the encoded string, according to the encoded string (ie, the keyboard) Message coding) With the mapping relationship between text/text string, text/text string and WordArt style, the code string is converted into Chinese characters and then the corresponding art fonts are matched. Due to the various artistic word styles and mapping relationships provided by the present invention, the input is more flexible, the display content is richer, and the input requirements of the user are satisfied.
步骤 204, 触发应用程序接口控制消息, 向当前激活的应用程序发送匹配 结果。在完成艺术字样式的匹配步骤后,将触发艺术字功能模块与应用程序的 接口控制消息,根据应用程序访问艺术字功能模块的接口函数,把匹配结果发 送给当前激活的应用程序, 就可以直接在应用程序窗口中显示输出。  Step 204: Trigger an application interface control message to send a matching result to the currently activated application. After completing the matching step of the WordArt style, the interface control message of the WordArt function module and the application is triggered, and the interface function of the WordArt function module is accessed according to the application program, and the matching result is sent to the currently activated application, and Display the output in the application window.
需要说明的是, 对于各种以图片形式存储的普通图形或图形动画的输出, 在执行步骤 204以前,还需要判断当前激活的应用程序是否支持要输入的图形 存储格式。 若支持, 才执行步骤 204; 若不支持, 则可以直接输出对应字符或 文字。 还有一种可能的情况是: 当匹配结果为图形时, 给应用程序发送所述图 形和与所述图形相匹配的文字和 /或符号; 此时, 应用程序会判断自身是否能 够支持接收到的图形存储格式, 若支持, 则显示所述图形, 若不支持, 则显示 与所述图形同时接收到的文字和 /或符号。  It should be noted that, for the output of various ordinary graphics or graphic animations stored in the form of pictures, before performing step 204, it is also necessary to determine whether the currently activated application supports the graphic storage format to be input. If yes, go to step 204; if it is not supported, you can directly output the corresponding character or text. There is also a possibility that when the matching result is a graphic, the graphic is sent to the application and the text and/or symbol matching the graphic; at this time, the application determines whether it can support the received image. The graphics storage format, if supported, displays the graphics, and if not, displays the text and/or symbols received simultaneously with the graphics.
本发明通过计算机操作系统与应用程序的直接结合,将获取的键盘信息编 码与艺术字样式进行匹配,并将匹配到的艺术字或艺术图形直接输出到应用程 序显示窗口, 不需要打开另外一个独立的艺术字编辑软件就实现了艺术字功 能。 用户在网络聊天、 论坛发言等过程中, 若需要使用艺术字样式, 可以直接 在各应用程序窗口中输入, 而不需要运行单独的艺术字软件, 因此避免了软件 运行及输入转换的过程, 节省了系统资源, 也方便用户操作。  The invention directly matches the acquired keyboard information coding with the artistic word style through the direct combination of the computer operating system and the application program, and directly outputs the matched artistic word or art graphic to the application display window, without opening another independent The word-of-word editing software implements the WordArt function. In the process of web chat, forum speech, etc., if you need to use the word art style, you can input directly in each application window without running separate WordArt software, thus avoiding the process of software running and input conversion, saving System resources are also convenient for users to operate.
上述步骤解决了在应用程序窗口中直接输入艺术字的问题,优选的,还将 常用的输入法结合在艺术字功能中,提供用户选择输入的机会。在图 2所示的 步骤中,在对键盘消息编码进行艺术字样式的匹配前, 首先判断当前的输入状 态。 若当前为艺术字状态, 则按照上述方法继续执行步骤 203和 204, 实现艺 术字功能; 若不是艺术字状态, 则执行输入法功能, 将与键盘消息编码对应的 英文、 中文或特殊符号输出。 所述判断步骤可以在接收键盘消息编码前执行, 即先转换到艺术字状态再键入字符; 也可以在接收键盘消息编码后执行, 即先 键入字符然后再进行输入状态的选择。 The above steps solve the problem of directly inputting WordArt in the application window. Preferably, the commonly used input method is also incorporated into the WordArt function to provide an opportunity for the user to select input. In the step shown in FIG. 2, before the matching of the word message style of the keyboard message encoding, the current input state is first determined. State. If it is currently in the WordArt state, then steps 203 and 204 are continued to implement the WordArt function according to the above method; if it is not the WordArt state, the input method function is executed, and the English, Chinese or special symbols corresponding to the keyboard message encoding are output. The determining step may be performed before receiving the message of the keyboard message, that is, first converting to the state of the word and then typing the character; or performing the receiving of the message of the keyboard message, that is, typing the character first and then selecting the input state.
下面将以先接收键盘消息编码再执行判断步骤的优选实施例说明上述过 程。 参照图 3 , 是本发明优选实施例所述输入艺术字 /图形的步骤流程图, 从用 户的操作、 显示角度说明输入字符串后的数据处理过程。  The above process will be described below with a preferred embodiment of receiving a keyboard message code and then performing a decision step. Referring to Fig. 3, there is shown a flow chart of the steps of inputting a word/graphic according to a preferred embodiment of the present invention, and the data processing procedure after inputting a character string is explained from the operation and display angle of the user.
步骤 301 , 打开输入法。  Step 301, the input method is turned on.
步骤 302 , 用户在键盘上输入" sougou"或" sogou" , 显示出 "sougou" 或 Step 302, the user inputs "sougou" or "sogou" on the keyboard, and displays "sougou" or
"sogou"拼音串和下面的一系列候选项。 其中, 通过预定义" sogou"与" sougou" 的对应关系, 键入" sogou"后也可以列出相应的候选项。 所述具体过程为:接收 键盘消息编码 "sougou"后, 提供给匹配程序, 然后匹配程序进行匹配, 按照一 定的规则排列出候选词列表。 The "sogou" pinyin string and a series of candidates below. Among them, by pre-defining the correspondence between "sogou" and "sougou", you can also list the corresponding candidates after typing "sogou". The specific process is: after receiving the keyboard message code "sougou", it is provided to the matching program, and then the matching program is matched, and the candidate word list is arranged according to a certain rule.
步骤 303 , 切换到艺术字输入模式, 即打开艺术字预览窗口。 本发明可以 根据输入状态的不同进行不同的流程, 例如,如果判断得知当前状态是艺术字 状态, 则执行艺术字样式的匹配; 如果判断得知当前状态是普通输入法状态, 则执行普通文字串的匹配功能。  Step 303, switch to the WordArt input mode, that is, open the WordArt preview window. The present invention can perform different processes according to different input states. For example, if it is judged that the current state is a WordArt state, the matching of the WordArt style is performed; if it is determined that the current state is the normal input method state, the normal text is executed. String matching function.
步骤 304, 选择候选项" 1.搜狗", 预览窗口就会出现搜狗的艺术字。 所述 过程是根据用户在候选词列表中的最后选择词作为预输出字词,把"搜狗"作为 匹配词去艺术词库中进行匹配,按照艺术字体的默认设置,把对应的艺术字搜 索出来, 然后在预览窗口整体输出。 当然, 如果当前不是艺术字状态, 就输出 "搜狗 "普通文字。  Step 304, select the candidate " 1. Sogou", the word art of Sogou will appear in the preview window. The process is based on the user's last choice word in the candidate word list as a pre-output word, and the "sogou" is matched as a matching word in the art vocabulary, and the corresponding art word is searched according to the default setting of the artistic font. And then the overall output in the preview window. Of course, if it is not currently a WordArt state, it will output the "Sogou" normal text.
步骤 305 , 对艺术字体进行设置。 上述预览是在字词库默认设置的情况下 显示, 在输入内容没有上屏时, 用户还可以自行调整艺术字体的设置, 选择完 成后, 预览窗口会实时改变当前文字对应的艺术字形式。 其中, 所述上屏指将 预览窗口中的内容输出显示到应用程序窗口的操作。 当然, 用户也可以自由选 择默认设置的艺术字样式。  Step 305, setting the artistic font. The above preview is displayed in the case of the default setting of the word library. When the input content is not on the screen, the user can also adjust the setting of the artistic font. After the selection is completed, the preview window will change the art form corresponding to the current text in real time. The upper screen refers to an operation of displaying the content output in the preview window to the application window. Of course, the user is also free to choose the default word style.
步骤 306 , 艺术字上屏输出。 例如, 如果用户确定, 键入 Ctrl+Enter或点 输入按钮, 就实现了艺术字的上屏输出。 Step 306, the art word is output on the screen. For example, if the user is sure, type Ctrl+Enter or point By inputting the button, the upper screen output of the WordArt is realized.
本发明还提供了快捷方式, 在输入 "sougou"拼音串后, 通过一种组合键的 方式(比如 Alt+1 )选择了 "1.搜狗"项, 也可以直接输出"搜狗"的艺术字。 所 述艺术字体釆用的是默认设置的情况, 此时就可以不出现预览窗口了,提高艺 术字输入的效率。  The invention also provides a shortcut method. After inputting the "sougou" pinyin string, the "1. Sogou" item is selected by a combination key method (such as Alt+1), and the "Sougou" art word can also be directly output. The artistic font uses the default setting. At this time, the preview window can be omitted, and the efficiency of the art word input is improved.
优选的, 本发明还提供了 ASCII码字符替换的功能。 首先,预设置至少一 种 ASCII码字符替换规则; 然后, 根据用户确认的 ASCII码字符、 所述字符 替换规则以及预存储的艺术字样式 /预置的艺术字样式算法, 对所述键盘消息 编码相应的艺术字样式进行字符替换; 最后, 触发应用程序接口控制消息, 向 当前激活的应用程序输入字符替换后的艺术字 /图形。 所述替换可以为: 实线 与虚线的互相替换、 单线与双线的替换、 艺术字单位字符的替换等等。 例如, 图 1所示的 "紫霞双线体 "即是对"紫霞标准体"的替换, 将单线替换为双线。 所 述 ASCII码字符替换功能可以拓展预存储的艺术字样式或者预置的艺术字算 法, 极大地方便了用户输入, 为用户提供了丰富多样的字体显示, 还节省了系 统的存储空间。  Preferably, the present invention also provides the function of ASCII character replacement. First, at least one ASCII character replacement rule is preset; then, the keyboard message is encoded according to a user-confirmed ASCII code character, the character replacement rule, and a pre-stored WordArt style/preset WordArt style algorithm. The corresponding WordArt style is used for character substitution; finally, the application interface control message is triggered, and the word-substituted word/graphic is input to the currently activated application. The replacement may be: replacement of a solid line with a broken line, replacement of a single line and a double line, replacement of a character word unit character, and the like. For example, the "Zixia Double Line" shown in Figure 1 is a replacement for the "Zixia Standard Body", replacing the single line with a double line. The ASCII character substitution function can expand the pre-stored WordArt style or preset Art Word algorithm, which greatly facilitates user input, provides users with a variety of font display, and saves system storage space.
优选的, 本发明还提供了 ASCII码艺术图形替换的功能。 首先, 预设置至 少一种 ASCII码艺术图形替换规则; 然后, 根据所述 ASCII码艺术图形替换 规则以及预存储的图片图形,对所述键盘消息编码相应的图片图形进行 ASCII 码艺术图形替换; 最后, 触发应用程序接口控制消息, 向当前激活的应用程序 输入替换后的 ASCII码艺术图形。 例如, 将 JPG的图片图形才艮据一定的算法 转换为 ASCII码艺术图形(格式可以为 TXT、 HTML等等), 其中所涉及的算 法为本领域技术人员所熟知的, 在此不再详述。  Preferably, the present invention also provides the function of ASCII art graphic replacement. First, at least one ASCII art graphic replacement rule is preset; then, according to the ASCII art graphic replacement rule and the pre-stored picture graphic, the ASCII code art graphic is replaced by the corresponding picture graphic of the keyboard message; , triggers the application interface control message, and enters the replaced ASCII art graphic into the currently activated application. For example, the picture graphics of the JPG are converted into ASCII art graphics according to a certain algorithm (the format may be TXT, HTML, etc.), wherein the algorithms involved are well known to those skilled in the art, and will not be described in detail herein. .
本发明中,优选的, 在匹配除 ASCII码艺术字的其他艺术字样式时,还需 要对与编码串对应的文字串进行分词。例如,在选择 ASCII码艺术图形或图形 动画时,用户输入"水果蛋糕做好了", 自动分词技术会把"水果" "蛋糕 "分出来, 并去图库里面进行匹配,把能够匹配上的图形上屏输出, 显示的就是一个水果 的图形连接一个蛋糕的图形, 然后是 "做好了"三个无法匹配上图形的文字。 本 发明所述需要进行分词的文字串并不仅仅限定于中文,其他文字,例如: 日文、 韩文等都是可行的。 目前常用的分词方法有: 基于字符串匹配的分词方法 (即机械分词), 基 于特征扫描或标志切分的分词方法,基于理解的分词方法,基于统计的分词方 法。 在各种分词方法中, 都会存在分词歧义的问题。 例如, 对短语 "中国人民" 会有多种切分方法, 如果词库中有 "中国"、 "人民,,、 "国人 "这三个词, "中国人 民,,的一种可能分法为"中国" "人民,,, 另一种可能分发为"中,, "国人,, "民"。 这 就是分词歧义。 歧义处理是非常困难的操作, 至今尚未解决, 对出现分词歧义 的情况, 各种分词方法只能结合实际应用, 尽量做到准确分词。 分词处理。对于分词中的歧义处理, 则可以釆用基于一元模型的最优切分路径 法(最优切分路径法), 能够比较准确地忠于原有语义, 说明如下。 In the present invention, preferably, when matching other art word styles other than the ASCII code art word, it is also necessary to perform word segmentation on the character string corresponding to the code string. For example, when selecting an ASCII art graphic or graphic animation, the user enters "fruit cake is done", the automatic word segmentation technology will separate the "fruit" and "cake", and go to the gallery to match, and match the graphics. The upper screen output shows a graphic of a fruit connected to a cake, and then "does" three words that cannot match the graphic. The character string that needs to be segmented according to the present invention is not limited to Chinese only, and other characters such as Japanese, Korean, etc. are all feasible. At present, the commonly used word segmentation methods are: word segmentation based on string matching (ie mechanical segmentation), word segmentation based on feature scanning or mark segmentation, word segmentation based on understanding, and segmentation method based on statistics. In all kinds of word segmentation methods, there will be problems with participle ambiguity. For example, there are many ways to divide the phrase "Chinese people". If there are three words "China", "people,", "national people" in the thesaurus, "the Chinese people, one possible division is "China""People,,, another may be distributed as "Chinese,""Chinese,""Min." This is the participle ambiguity. Ambiguity handling is a very difficult operation, which has not yet been resolved, in the case of ambiguity of participles, Various word segmentation methods can only be combined with practical applications, and try to achieve accurate word segmentation. Word segmentation. For the ambiguity processing in the word segmentation, the optimal segmentation path method based on the unary model (optimal segmentation path method) can be used. More faithful to the original semantics, as explained below.
分词中存在两种歧义。 一种是组合型歧义, 如字符串 AB中, AB, A, B 都属于词库中的元素。 例如, 清华大学 /清华 /大学。 最优切分路径法釆取的方 法是全部分出来, 再根据具体的需求进行筛选。  There are two kinds of ambiguities in the word segmentation. One is a combined ambiguity, such as the string AB, AB, A, B are all elements in the thesaurus. For example, Tsinghua University / Tsinghua University. The method of optimal segmentation path method is to extract all the parts and then filter according to specific needs.
另一种称为交集型歧义,如字符串 ABC中,ΑΒ和 BC都是词库中的元素。 例如"中国人,,, 可能会分为"中国 /人,,和"中 /国人"。 对于交集型歧义, 最优切 分路径法使用一种评分算法,对可能的每种切分方法进行权重计算,在所有的 可能的切分中寻找最佳切分路径。 这个过程通过动态规划方法可以快速实现。 所述评分算法釆用的估分函数由词的个数和频率决定, 举例说明如下。  The other is called intersection ambiguity, such as the string ABC, ΑΒ and BC are the elements in the thesaurus. For example, "Chinese,,,, may be divided into "China / People," and "Chinese / Chinese." For intersection-type ambiguity, the optimal segmentation path method uses a scoring algorithm to perform weight calculations for each possible segmentation method and find the best segmentation path among all possible segments. This process can be quickly implemented through dynamic programming methods. The evaluation function used by the scoring algorithm is determined by the number and frequency of words, as illustrated below.
首先对短语中的每一个字进行编号:  First number each word in the phrase:
中 国 人 民 站起 来 了  The Chinese people stood up.
0 1 2 3 4 5 6 7  0 1 2 3 4 5 6 7
令 F(x)是从位置 X开始子串的对某种分词方案的评价值,所述 X表示上述 数字编号。 F(x)是以下几个分量的组合:  Let F(x) be the evaluation value of a certain word segmentation scheme of the substring starting from position X, where X represents the above numerical number. F(x) is a combination of the following components:
1 ) WC(x) : 从 X开始子串的最佳切分方案的 Term数量。 所述 Term表示 短语中对应词库中的分词, 如取 X为 0 , Term为中国 /人民 /站 /起来 /了, 所以 1) WC(x) : The number of Term of the best segmentation scheme for the substring starting from X. The Term represents a participle in the corresponding vocabulary in the phrase, such as taking X as 0 and Term as Chinese/people/station/up/, so
WC(x)为 5; WC(x) is 5;
2 ) FQ(x): 从 X开始子串的最佳切分方案的 Term词频的对数和。 所述词 频指每个 Term在互联网上出现的统计频率;  2) FQ(x): The logarithm of the term word frequency of the best segmentation scheme of the substring starting from X. The word frequency refers to the statistical frequency that each Term appears on the Internet;
取 F(x) = WC(x)*100+FQ(x)。通过所述估分函数,可以根据具体输入情况, 动态处理分词歧义问题, 提高分词的准确率。 例如, 当输入 "鸡蛋糕点,,时, 分 词技术会把"鸡蛋"和"糕点"分出来, 分别进行相应的匹配, 显示鸡蛋的图形和 糕点的图形。 但是如果釆用通常的依次匹配的方式, 则有可能会把中间的 "蛋 糕,,作为一个词分出来, 而把蛋糕的图画上屏, 形成"鸡,, +蛋糕图 +"点,,的形式。 如果输入"鸡蛋糕,,,系统还可以根据用户选词的过程,并结合系统的分词把"鸡 蛋,,分出来, 形成鸡蛋图 +"糕,,字的输出结果。 同时, 系统还可以把所述根据用 户选词进行分词的模式记录下来, 以便用户再次输入时进行快速匹配。 Take F(x) = WC(x)*100+FQ(x). Through the evaluation function, according to the specific input situation, Dynamically deal with word segmentation ambiguity and improve the accuracy of word segmentation. For example, when you enter "egg pastries, the word segmentation technique will separate the "eggs" and "pastries" and match them accordingly, showing the graphics of the eggs and the graphics of the pastry. But if you use the usual way of matching , it is possible to divide the middle of the "cake, as a word, and put the picture of the cake on the screen to form the form of "chicken, + cake map +", point. If you enter "chicken cake,, the system can also be based on the user's process of selecting words, combined with the system's participle, "eggs,, and separate, form the egg map + "cake," the output of the word. At the same time, the system can also The mode of segmentation according to the user's word selection is recorded, so that the user can perform quick matching when inputting again.
在针对文字串需要分词匹配的优选艺术字 /图形输出方法中, 执行步骤与 图 2所示的步骤基本一致, 不同之处在于: 利用键盘消息编码-文字 /文字串 -艺术字样式三者之间的映射关系, 首先将键盘消息编码转换为对应的文字 串; 然后根据文字串语义和预存储的艺术字样式, 对所述文字串进行分词, 在 釆用分词技术时将预存储的艺术字样式作为一个分词因素考虑,例如可以列出 已存储的可匹配词组, 分词时首先予以考虑; 再根据文字 /文字串与艺术字样 式的映射关系, 进行分词后的词组与艺术字样式的匹配。 下面将列举实施例进 行说明。  In the preferred word/graphic output method that requires word segmentation for the text string, the execution steps are basically the same as those shown in FIG. 2, the difference being: using the keyboard message encoding-text/text string-art word style The mapping relationship between the first, the keyboard message encoding is first converted into a corresponding text string; then according to the text string semantics and the pre-stored artistic word style, the text string is segmented, and the pre-stored artistic word is used when using the word segmentation technique The style is considered as a participle factor. For example, the stored matchable phrases can be listed. The word segmentation is first considered. Then, according to the mapping relationship between the text/text string and the artistic word style, the phrase after the word segmentation is matched with the artistic word style. The embodiment will be described below.
当用户键入一个短语或一个句子等文字串的编码串时,艺术字功能模块将 执行: 根据键盘消息编码(即编码串)与文字 /文字串的映射关系, 在候选词 列表中列出选项; 用户选定后, 再根据文字串语义和预存储的艺术字样式, 釆 用上述的分词方法切分所述文字串; 然后根据切分结果以及预存储的文字 /文 字串与艺术字样式的映射关系, 进行相应的艺术字样式匹配; 最后将匹配结果 显示输出到应用程序窗口中。  When the user types a code string of a character string such as a phrase or a sentence, the WordArt function module performs: according to the mapping relationship between the keyboard message encoding (ie, the encoded string) and the text/text string, the options are listed in the candidate word list; After the user selects, according to the text string semantics and the pre-stored artistic word style, the word segmentation method is used to segment the text string; and then according to the segmentation result and the pre-stored text/text string and the word style mapping Relationship, the corresponding WordArt style matching; Finally, the matching result display is output to the application window.
在上述实施例中, 优选的, 本发明还提供用户选择输出的机会。 在完成匹 配步骤后,预览窗口以艺术字样式显示出可匹配的词组, 用户可以根据输入需 求选择需要输出显示的艺术字样式。 例如, 在"我今天去看猴子和老虎了"的文 字串中,如果用户选择的为字符画艺术字样式,则能够匹配 ASCII码艺术字符 画图形的词组为"猴子"、 "老虎", 其他文字则无法匹配为字符画。 "猴子"、 "老 虎,,可能对应了多个不同样式的字符画, 用户可以在预览窗口中进行选择, 从 而输入需要的字符画艺术字。 当然, 其他文字, 例如"我今天去看", 用户可以 通过选择普通 ASCII码艺术字对其进行输入。这种用户可以选择输出效果的方 式增加了用户输入的灵活度, 带来更好的输入体验。 In the above embodiment, preferably, the present invention also provides an opportunity for the user to select an output. After the matching step is completed, the preview window displays a matchable phrase in the WordArt style, and the user can select the WordArt style that needs to be output according to the input requirements. For example, in the text string "I am going to see monkeys and tigers today", if the user selects a character to draw a WordArt style, the phrase that can match the ASCII code art characters is "Monkey", "Tiger", and others. Text cannot match characters. "Monkey", "Tiger," may correspond to a number of different styles of character painting, the user can select in the preview window to enter the desired character to draw the word art. Of course, other text, such as "I go to see today", The user can enter it by selecting the normal ASCII code art word. This user can select the side of the output effect. Increases the flexibility of user input for a better input experience.
上述将文字串先切分成单独词组或文字, 然后再进行匹配的方法, 方便用 户一次性输入文字串后,再上屏显示出对应的艺术字样式。对于 ASCII码艺术 图形、字符阵等以汉字组合(例如,词)为艺术字输出单位的艺术字样式而言, 分词步骤可以避免出现错误的艺术字输出。 并且, 由于预先存储的艺术字样式 不可能存储全部的汉字组合映射关系,所以通过分词步骤可以在用户输入的较 长的汉字串中,找到并输出匹配的艺术字样式,从而提高各种艺术字样式的匹 配效率及匹配效果。  In the above, the character string is first divided into separate phrases or characters, and then the matching method is performed, so that the user can input the text string once and then display the corresponding artistic word style on the screen. For ASCII art graphics, character arrays, etc., where the Chinese character combination (for example, word) is the artistic word output unit of the artistic word output, the word segmentation step can avoid the wrong artistic word output. Moreover, since the pre-stored artistic word style cannot store all the Chinese character combination mapping relationship, the word segmentation step can find and output the matching artistic word style in the long Chinese character string input by the user, thereby improving various artistic words. Style matching efficiency and matching effect.
此外, 本发明还提供了用户自定义功能, 用户可以根据输入需要, 建立字 符与单行字符串、 字符阵、 散光字、 图形等的映射关系, 自己创造相应的文字 或图形库, 所述结合输入法的艺术字功能得到更大的可扩展性和用户参与性, 满足用户的个性需求。  In addition, the present invention also provides a user-defined function, and the user can establish a mapping relationship between a character and a single-line character string, a character matrix, an astigmatism word, a graphic, etc. according to the input requirement, and create a corresponding text or graphic library by itself, and the combined input. The word-of-art function of the law is more scalable and user-participating to meet the individual needs of the user.
下面介绍实现艺术字功能的操作界面。 艺术字窗口是艺术字功能的主体, 包括: 输入部分(即可编辑部分), 输出部分(艺术字预览), 选项设置按钮。 艺术字窗口有两种模式: 标准模式和快捷模式。  The following describes the operation interface for implementing the WordArt function. The WordArt window is the main body of the WordArt function, including: input section (ie editable section), output section (Art Word preview), option setting button. The WordArt window has two modes: Standard mode and Quick mode.
参照图 4, 是实现本发明的标准模式下的艺术字窗口示意图。 标准模式下 的窗口为全功能模式, 是可以完全自行设置并预览的模式。 包括:  Referring to Figure 4, there is shown a schematic diagram of a WordArt window in a standard mode for implementing the present invention. The window in standard mode is full-featured mode, which is a mode that can be set and previewed completely. Includes:
输入窗口 401 ,是可编辑窗口, 可以输入多行文字, 并且可执行回车操作。 预览窗口 402 , 是不可编辑窗口, 只显示实际艺术字效果。  The input window 401 is an editable window, can input multiple lines of text, and can perform a carriage return operation. The preview window 402 is an uneditable window that only displays the actual WordArt effect.
上屏按钮 403 , 点击此按钮, 或者输入此按钮的快捷键 ctrl+enter后, 把 预览窗口里面的字符输出到用户原先光标所在的地方。  Up button 403, click this button, or enter the shortcut key ctrl+enter of this button, and output the characters in the preview window to the place where the user originally positioned the cursor.
中文字体和英文字体 404 , 通过选择字体来改变艺术字的展示效果。  Chinese font and English font 404, change the display effect of the word art by selecting the font.
字间距 405 , 即艺术字之间所自动添加的空格数, 以方便用户输出较大间 距的艺术字 (例如在签名档中)。  The word spacing 405 is the number of spaces automatically added between the art words to facilitate the user to output a larger spacing of artistic words (for example, in the signature file).
自动回车换行 406 , 在多行字符串中, 最后一行输出后必须换行, 以使后 面的字能够继续换行输入。 如果是单行字符串, 例如横向拆分的散光字等, 就 不必换行。 是否自动换行的信息也可以由字体本身提供。  Automatic carriage return line feed 406, in the multi-line string, the last line of output must be changed after the line, so that the following words can continue to line feed input. If it is a single-line string, such as a horizontally split astigmatism, you don't have to wrap it. Whether or not to automatically wrap information can also be provided by the font itself.
关闭按钮 407 , 当用户点击关闭按钮时, 退出艺术字模式, 转到正常输入 模式。 输入法的输入窗口 408, 即相同于普通状态下的输入窗口。 The button 407 is turned off, and when the user clicks the close button, the word mode is exited and the mode is switched to the normal input mode. The input window 408 of the input method is the same as the input window in the normal state.
需要说明的是, 图 4所示的界面只列出了功能元素, 具体布局可根据实际 效果进行细微调整。  It should be noted that the interface shown in Figure 4 only lists the functional elements, and the specific layout can be finely adjusted according to the actual effect.
参照图 5, 是实现本发明的快捷模式下的艺术字窗口示意图, 快捷模式为 只有预览功能。在快捷模式下, 所有功能选项均以标准模式下的配置为默认设 置, 例如字体等。 如果需要修改快捷模式的字体等, 需要打开标准模式改变。 快捷模式下预览窗口预览的内容为当前处于焦点的字词,所述焦点指被选中的 字词。  Referring to FIG. 5, it is a schematic diagram of a WordArt window in a shortcut mode for implementing the present invention, and the shortcut mode is a preview only function. In Quick Mode, all feature options are set to the default settings in standard mode, such as fonts. If you need to modify the font of the shortcut mode, etc., you need to open the standard mode change. In the shortcut mode, the preview window previews the content that is currently in focus, and the focus refers to the selected word.
此外, 还可以在输入法的状态栏上添加艺术字的控制按钮, 类似于中 /英、 全 /半角转换的按钮。 所述按钮有三种状态: 艺术字关闭状态, 艺术字标准模 式, 艺术字快捷模式。 当点击时, 进行这三个状态的轮显, 并且默认状态为关 闭状态。  In addition, you can add a control button for WordArt on the status bar of the input method, similar to the button for Chinese/English, Full/Half-Angle. The button has three states: the artistic word closed state, the artistic word standard mode, and the artistic word shortcut mode. When clicked, the wheeling of these three states is performed, and the default state is the closed state.
艺术字输入可以有两种方式: 正常的输入方式和快速输入方式。  There are two ways to enter WordArt: normal input method and fast input method.
正常的输入方式是通过点击按钮或者快捷键完成的。当输入法进入到可输 入区域时, 状态栏出现; 点击艺术字按钮或者快捷键, 进入到艺术字模式, 弹 出艺术字窗口和输入法窗口。所述艺术字模式可以分为标准模式和快捷模式两 种, 例如, 图 4和图 5所示。  The normal input method is done by clicking a button or a shortcut. When the input method enters the inputable area, the status bar appears; Click the WordArt button or the shortcut key to enter the WordArt mode, and pop up the WordArt window and the Input Method window. The WordArt mode can be divided into a standard mode and a shortcut mode, for example, as shown in Figs. 4 and 5.
快速输入方式是通过输入编码后的快捷键直接向应用程序输入艺术字,主 要用于不用鼠标、 只用键盘操作, 临时输入多个艺术字的情况。 例如, 操作流 程为: 用户输入字母→触发键(')→转到快捷模式→按普通输入空格或者数 字, 把艺术字上屏(按默认字体)。 所述快速输入方式可以不弹出正常输入方 式下的艺术字窗口, 釆用默认设置直接将艺术字上屏即可。  The quick input method is to input the word art directly to the application by inputting the coded shortcut key, mainly for the case of temporarily inputting a plurality of art characters without using a mouse and using only a keyboard operation. For example, the operation flow is: User input letter → trigger key (') → go to shortcut mode → press space or number to enter the art word on the screen (by default font). The quick input mode can not pop up the art word window under the normal input mode, and the art setting can be directly put on the screen by using the default setting.
针对上述在应用程序窗口中输入 ASCII码艺术字的方法,本发明还提供了 一种在应用程序窗口中输入艺术字的系统,通过与计算机系统和应用程序的接 口设计, 用于将键盘输入的信息直接在应用程序窗口中显示输出。 参照图 6, 是本发明所述在应用程序窗口中输入艺术字 /图形的系统结构图。  For the above method for inputting an ASCII code art word in an application window, the present invention also provides a system for inputting a word of art in an application window, which is designed to interface with a computer system and an application for inputting a keyboard. The information is displayed directly in the application window. Referring to Figure 6, there is shown a system structure diagram for inputting a word/graphic in an application window according to the present invention.
存储单元 601 , 用于预存储各种艺术字样式或者预置的艺术字样式算法, 以及键盘消息编码与艺术字样式的映射关系; 所述艺术字样式包括: ASCII码 艺术字, ASCII码艺术图形, 散光字, 单行字符串, 字符阵或者图形。 所述存 储单元 601在存储各种艺术字样式时,根据艺术字样式的不同类别,将与键盘 消息编码对应的文字 /文字串、散光字、单行字符串、字符阵存放在字符库 6011 , 将与键盘消息编码对应的 ASCII码艺术字或者预置的艺术字样式算法存放在The storage unit 601 is configured to pre-store various artistic word styles or preset artistic word style algorithms, and a mapping relationship between the keyboard message encoding and the artistic word style; the artistic word styles include: ASCII code art characters, ASCII code art graphics , astigmatism, single-line strings, character arrays or graphics. The deposit When storing various artistic word styles, the storage unit 601 stores the text/text string, the astigmatism word, the single-line character string, and the character array corresponding to the keyboard message code in the character library 6011 according to different categories of the artistic word style, and the keyboard and the keyboard The ASCII code art word corresponding to the message code or the preset art word style algorithm is stored in
ASCII码艺术字库 6012, 将与键盘消息编码对应的 ASCII码艺术图形及图形 存放在图形库 6013。 所述映射关系表单独存放在存储单元 601 中, 包括: 键 盘消息编码与文字 /文字串的映射关系 ,文字 /文字串与艺术字样式的映射关系; 键盘消息编码直接与艺术字样式的映射关系。 The ASCII Art Font Library 6012 stores the ASCII art graphics and graphics corresponding to the keyboard message encoding in the graphics library 6013. The mapping relationship table is separately stored in the storage unit 601, and includes: a mapping relationship between the keyboard message encoding and the text/text string, a mapping relationship between the text/text string and the artistic word style; and a mapping relationship between the keyboard message encoding and the artistic word style directly .
编码接收单元 602, 用于调用操作系统接口函数, 获取键盘消息编码, 实 现与计算机系统的接口功能。 本发明所述方法并不仅限于 Windows 系统, 还 可以应用在其他操作系统中。  The code receiving unit 602 is configured to invoke an operating system interface function, obtain a keyboard message code, and implement an interface function with the computer system. The method of the present invention is not limited to the Windows system, but can be applied to other operating systems.
艺术字匹配单元 603 , 用于对应所述存储单元 601中的映射关系表, 将编 码接收单元 602获取的键盘消息编码与存储单元 601 中的艺术字样式进行匹 配。如果接收的键盘消息编码是英文输入, 则根据映射关系表中键盘消息编码 直接与艺术字样式的映射关系进行艺术字匹配;如果接收的键盘消息编码是编 码串输入, 则根据键盘消息编码与文字 /文字串的映射关系, 文字 /文字串与艺 术字样式的映射关系, 先在候选词列表中选中对应汉字, 再到存储单元 601 中进行艺术字匹配。  The word matching unit 603 is configured to match the mapping relationship table in the storage unit 601, and match the keyboard message encoding acquired by the encoding receiving unit 602 with the artistic word pattern in the storage unit 601. If the received keyboard message code is an English input, the word matching is directly performed according to the mapping relationship between the keyboard message code and the WordArt style in the mapping relationship table; if the received keyboard message code is the code string input, according to the keyboard message code and the text / mapping relationship of text strings, mapping relationship between text/text strings and artistic word styles, first selecting corresponding Chinese characters in the candidate word list, and then performing matching of artistic words in the storage unit 601.
输出单元 604, 用于触发应用程序接口控制消息, 向当前激活的应用程序 发送匹配结果, 实现与应用程序的接口功能。 艺术字匹配单元 603在完成艺术 字样式的匹配后, 将触发艺术字系统与应用程序的接口控制消息,根据应用程 序访问艺术字系统的接口函数,把匹配结果发送给当前激活的应用程序, 就可 以直接在应用程序窗口中显示输出。  The output unit 604 is configured to trigger an application interface control message, send a matching result to the currently activated application, and implement an interface function with the application. After completing the matching of the artistic word style, the artistic word matching unit 603 will trigger the interface control message of the artistic word system and the application, access the interface function of the artistic word system according to the application program, and send the matching result to the currently activated application. The output can be displayed directly in the application window.
应用程序判断单元 605, 如果艺术字匹配单元 603的匹配结果是以图片格 式存储的图形, 则在触发输出单元 604前,应用程序判断单元 605用于判断当 前激活的应用程序是否支持相应的图形存储格式, 若支持, 触发所述输出单元 The application determining unit 605, if the matching result of the WordArt matching unit 603 is a graphic stored in the picture format, before the trigger output unit 604, the application determining unit 605 is configured to determine whether the currently activated application supports the corresponding graphic storage. Format, if supported, triggers the output unit
604。 604.
自编辑单元 606, 用于自定义键盘消息编码与艺术字样式的映射关系, 并 保存在所述存储单元 601。 用户可以根据输入需要, 建立字符与单行字符串、 字符阵、 散光字、 图形等的映射关系, 自己创造相应的文字或图形库。 结合输 入法的艺术字功能得到更大的可扩展性和用户参与性,为以后用户互相交换词 库、 图形库做相应的准备。 The self-editing unit 606 is configured to customize a mapping relationship between the keyboard message encoding and the WordArt style, and save the storage unit 601. The user can create a mapping relationship between characters and single-line strings, character arrays, astigmatism words, graphics, etc. according to the input requirements, and create a corresponding text or graphics library. Combined loss The WordArt function of the French method is more scalable and user-participating, and prepares for the future exchange of the thesaurus and the graphics library.
判断状态单元 607和字符匹配单元 608 , 所述字符匹配单元 608用于对应 键盘消息编码与文字 /文字串的映射关系,匹配与所述编码对应的文字 /文字串; 所述判断状态单元 607用于判断当前状态是否为艺术字状态, 若是, 则触发所 述艺术字匹配单元 603; 否则, 触发所述字符匹配单元 608。 本发明优选的, 还将常用的输入法结合在艺术字系统中,提供用户选择输入的机会。在艺术字 匹配单元 603进行艺术字样式的匹配前,判断状态单元 607首先判断当前的输 入状态。 若当前为艺术字状态, 则运行所述艺术字匹配单元 603 , 实现艺术字 功能; 若不是艺术字状态, 则运行字符匹配单元 608, 将与键盘消息编码对应 的英文、 中文或特殊符号输出。  a determination status unit 607 and a character matching unit 608, wherein the character matching unit 608 is configured to match a mapping relationship between the keyboard message encoding and the text/character string, and match the text/text string corresponding to the encoding; And determining whether the current state is a WordArt state, and if so, triggering the WordArt matching unit 603; otherwise, triggering the character matching unit 608. Preferably, the present invention also incorporates commonly used input methods in the WordArt system to provide an opportunity for the user to select inputs. Before the word-of-word matching unit 603 performs the matching of the WordArt style, the judgment state unit 607 first judges the current input state. If it is currently a WordArt state, the WordArt Matching Unit 603 is executed to implement the WordArt function; if it is not a WordArt state, the Character Matching Unit 608 is executed to output an English, Chinese or special symbol corresponding to the keyboard message encoding.
图 6所示系统还包括字符替换单元(图未示), 所述存储单元中还存储有 至少一种 ASCII码字符替换规则。 所述字符替换单元, 用于根据用户确认的 ASCII码字符、 所述字符替换规则以及预存储的艺术字样式 /预置的艺术字样 式算法, 对所述键盘消息编码相应的艺术字样式进行字符替换。  The system shown in Fig. 6 further includes a character replacement unit (not shown), and the storage unit further stores at least one ASCII character replacement rule. The character replacement unit is configured to encode a corresponding artistic word style into the keyboard message according to the ASCII code character confirmed by the user, the character replacement rule, and the pre-stored artistic word style/preset artistic word style algorithm. replace.
图 6所示系统中,所述编码接收单元 602、存储单元 601以及输出单元 604 可以位于同一计算设备中; 优选的, 也可以釆用网络输入过程: 所述系统编码 接收单元 602、 输出单元 604位于第一计算设备中, 存储单元 601位于第二计 算设备中; 图 6所示系统根据用户输入的键盘消息,从位于第二计算设备的存 储单元中获取相应信息, 在第一计算设备输出。  In the system shown in FIG. 6, the code receiving unit 602, the storage unit 601, and the output unit 604 may be located in the same computing device. Preferably, the network input process may also be employed: the system code receiving unit 602 and the output unit 604. The first computing device is located in the first computing device. The storage unit 601 is located in the second computing device. The system shown in FIG. 6 obtains corresponding information from the storage unit located in the second computing device according to the keyboard message input by the user, and outputs the corresponding information in the first computing device.
图 6所示系统还包括图形替换单元(图未示), 所述存储单元中还存储有 至少一种 ASCII码艺术图形替换规则;所述图形替换单元,用于根据所述 ASCII 码艺术图形替换规则以及预存储的图片图形,对所述键盘消息编码相应的图片 图形进行 ASCII码艺术图形替换。  The system shown in FIG. 6 further includes a graphics replacement unit (not shown), wherein the storage unit further stores at least one ASCII art pattern replacement rule; the graphics replacement unit is configured to replace the ASCII code art graphic The rule and the pre-stored picture graphic perform ASCII code art graphic replacement on the corresponding picture graphic of the keyboard message.
优选的, 本发明还提供了一种在应用程序窗口中输入艺术字的系统。参照 图 7 ,是本发明优选实施例所述的一种在应用程序窗口中输入艺术字 /图形的系 统结构图。 与图 6所示的系统相比较, 除包括同样的存储单元 701、 编码接收 单元 702、 艺术字匹配单元 703、 输出单元 704、 应用程序判断单元 705、 自编 辑单元 706、判断状态单元 707外,还包括文字串匹配单元 708和分词单元 709。 其中, Preferably, the present invention also provides a system for inputting WordArt in an application window. Referring to FIG. 7, a system structure diagram for inputting a word/graphic in an application window according to a preferred embodiment of the present invention. Compared with the system shown in FIG. 6, in addition to the same storage unit 701, code receiving unit 702, word matching unit 703, output unit 704, application determining unit 705, self-editing unit 706, and determining status unit 707, A character string matching unit 708 and a word segmentation unit 709 are also included. among them,
存储单元 701 , 与存储单元 601的功能相同, 用于预存储各种艺术字样式 或者预置的艺术字样式算法, 以及键盘消息编码 -文字 /文字串 -艺术字样式 三者之间的映射关系表。 也包括字符库 7011、 ASCII码艺术字库 7012及图形 库 7013。  The storage unit 701 has the same function as the storage unit 601, and is used for pre-storing various artistic word styles or preset art word style algorithms, and mapping between keyboard message encoding-text/text string-art word style. table. It also includes character library 7011, ASCII art font 7012 and graphics library 7013.
文字串匹配单元 708, 用于对应存储单元 701 中的键盘消息编码与文字 / 文字串的映射关系 , 匹配与所述编码对应的文字 /文字串。 当编码接收单元 702 接收的键盘消息编码为编码串时,所述文字串匹配单元 708将对编码串进行文 字 /文字串的匹配。  The character string matching unit 708 is configured to correspond to the mapping relationship between the keyboard message encoding and the text/character string in the storage unit 701, and match the text/text string corresponding to the encoding. When the keyboard message received by the code receiving unit 702 is encoded as a code string, the text string matching unit 708 will perform a match of the text/text string on the code string.
分词单元 709, 如果用户选择的艺术字样式为 ASCII码艺术图形、 单行字 符串、字符阵或图形等, 用于将所述文字串匹配单元 708匹配得到的文字串进 行分词。 首先将对应文字串的短语或句子进行分词处理, 然后再到艺术字匹配 单元 703匹配存储单元 701中存有的相应艺术字,方便用户一次性输入文字串 后,再上屏显示出对应的艺术字样式,还可以提高各种艺术字样式的匹配效率 及匹配效果。  The word segmentation unit 709, if the user-selected art word style is an ASCII art graphic, a single-line character string, a character matrix or a graphic, etc., is used to segment the text string obtained by the character string matching unit 708. First, the phrase or sentence corresponding to the character string is subjected to word segmentation processing, and then the art word matching unit 703 matches the corresponding art word stored in the storage unit 701, so that the user can input the text string once and then display the corresponding art on the screen. The word style can also improve the matching efficiency and matching effect of various artistic word styles.
在目前的各种分词方法中, 都会存在分词歧义的问题。本发明可以釆用如 前所述的几种分词方法或本领域技术人员熟知的其他方法, 进行分词处理。但 对于分词中的歧义处理, 可以釆用基于一元模型的最优切分路径法, 能够比较 准确地忠于原有语义。 最优切分路径法的具体说明如前所述。  In the current various word segmentation methods, there will be problems of participle ambiguity. The present invention can perform word segmentation processing using several word segmentation methods as described above or other methods well known to those skilled in the art. However, for the ambiguity processing in the word segmentation, the optimal segmentation path method based on the unary model can be used to be more faithful to the original semantics. The specific description of the optimal segmentation path method is as described above.
艺术字匹配单元 703 , 与艺术字匹配单元 603的功能相同, 用于根据所述 分词单元 709的切分结果以及存储单元 701 中的文字 /文字串与艺术字样式的 映射关系, 到存储单元 701中获取相应的艺术字样式。  The word matching unit 703 has the same function as the word matching unit 603, and is used for the mapping result according to the segmentation unit 709 and the mapping relationship between the character/character string and the word style in the storage unit 701 to the storage unit 701. Get the corresponding WordArt style.
判断状态单元 707, 与判断状态单元 607的功能相同, 用于判断当前状态 是否为艺术字状态, 若是, 则触发文字串匹配单元 708 -分词单元 709 -艺术 字匹配单元 703 -输出单元 704; 否则, 触发文字串匹配单元 708 -输出单元 704。  The judgment status unit 707 is the same as the function of the judgment status unit 607, and is used to determine whether the current status is a WordArt state, and if so, triggers the character string matching unit 708 - word segmentation unit 709 - Word Word matching unit 703 - Output unit 704; , trigger text string matching unit 708 - output unit 704.
图 7所示系统还可以包括字符替换单元,所述存储单元 701中还存储有至 少一种 ASCII码字符替换规则;所述字符替换单元,用于根据用户确认的 ASCII 码字符、 所述字符替换规则以及预存储的艺术字样式 /预置的艺术字样式算法, 对所述键盘消息编码相应的艺术字样式进行字符替换。 The system shown in FIG. 7 may further include a character replacement unit, wherein the storage unit 701 further stores at least one ASCII code character replacement rule; the character replacement unit is configured to replace the ASCII code character according to the user, the character replacement Rules and pre-stored WordArt style/preset WordArt style algorithms, The keyboard message is encoded with a corresponding art word style for character replacement.
可以理解,对于本发明所提到的所有实施例中, 所述艺术字样式还可以包 括形音意相同或近似的文字、 符号或其组合, 上述文字可包括各国语言、 标点 及数字。 比如在网络上可见到的用 "饿" 代表 "我", 用 "0" 代表 "我", 用 " i 40" 代表 "下死偶(我)" 等等。  It will be understood that for all embodiments mentioned in the present invention, the WordArt style may also include words, symbols or combinations thereof having the same or similar meanings, and the above characters may include national languages, punctuation and numbers. For example, "hungry" means "I" on the network, "0" for "I", "i 40" for "down" (me) and so on.
此时, 可预先建立某个键盘消息码与所述形音意相同或近似的文字、符号 或其组合映射关系, 当需要输出与该键盘消息码对应的内容时, 在组词的情况 下, 既可以固定的输出, 也可以是每次随机的输出, 还可以按照预设策略进行 输出。 即可输出该键盘消息码所对应的形音意相同或近似的文字、符号或其组 合。  In this case, a mapping relationship between a certain keyboard message code and the same or similar character or symbol, or a combination thereof may be established in advance. When it is required to output content corresponding to the keyboard message code, in the case of group words, It can be either a fixed output or a random output, or it can be output according to a preset strategy. The text, symbol or combination of the same or similar shape and sound corresponding to the keyboard message code can be output.
上述艺术字样式和所有预置艺术字样式的算法,可由输入法从客户端或服 务器端获得。  The above-mentioned WordArt style and all the preset Art Nouveau style algorithms can be obtained from the client or server by the input method.
以上对本发明所提供的一种向应用程序输入艺术字 /图形的方法及系统, 述, 以上实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时, 对于本领域的一般技术人员,依据本发明的思想, 在具体实施方式及应用范围 上均会有改变之处。 综上所述, 本说明书内容不应理解为对本发明的限制。  The above description of the method and system for inputting a word/graphic to an application provided by the present invention is only for helping to understand the method of the present invention and its core idea; and, at the same time, the general technology in the art Personnel, according to the idea of the present invention, there will be changes in the specific embodiments and application scope. In summary, the content of the specification should not be construed as limiting the invention.
+ +

Claims

权 利 要 求 Rights request
1、 一种向应用程序输入艺术字 /图形的方法, 其特征在于, 包括: 建立键盘消息编码与艺术字样式的映射关系;  A method for inputting a word/graphic to an application, comprising: establishing a mapping relationship between a keyboard message code and an art word style;
调用操作系统接口函数, 获取键盘消息编码;  Call the operating system interface function to get the keyboard message encoding;
对应所述映射关系, 匹配与所述键盘消息编码对应的艺术字样式; 触发应用程序接口控制消息, 向当前激活的应用程序输入艺术字 /图形。 Corresponding to the mapping relationship, matching a WordArt style corresponding to the keyboard message encoding; triggering an application interface control message to input a WordArt/Graphics to the currently activated application.
2、 根据权利要求 1所述的方法, 其特征在于, 所述艺术字样式通过预存 储方式获得或者通过预置算法获得。 2. The method according to claim 1, wherein the WordArt style is obtained by a pre-storage method or by a preset algorithm.
3、 根据权利要求 1所述的方法, 其特征在于, 所述映射关系包括: 键盘 消息编码与文字 /文字串的映射, 文字 /文字串与艺术字样式的映射; 和 /或键盘 消息编码直接与艺术字样式的映射。  3. The method according to claim 1, wherein the mapping relationship comprises: mapping of a keyboard message encoding and a text/text string, mapping of a text/text string to a WordArt style; and/or a keyboard message encoding directly Map with the word art style.
4、 根据权利要求 1所述的方法, 其特征在于, 还包括: 当匹配结果为图 形, 判断当前激活的应用程序是否支持相应的图形存储格式, 若支持, 则触发 应用程序接口控制消息, 向当前激活的应用程序发送匹配结果。  4. The method according to claim 1, further comprising: determining whether the currently activated application supports a corresponding graphic storage format when the matching result is a graphic, and if so, triggering the application interface control message to The currently active application sends a match.
5、 根据权利要求 1所述的方法, 其特征在于, 还包括: 当匹配结果为图 形时, 给应用程序发送所述图形和与所述图形相匹配的文字和 /或符号。  The method according to claim 1, further comprising: when the matching result is a graphic, sending the graphic and the text and/or symbol matching the graphic to the application.
6、 根据权利要求 1所述的方法, 其特征在于, 还包括: 自定义键盘消息 编码与艺术字样式的映射关系。  6. The method according to claim 1, further comprising: customizing a mapping relationship between the keyboard message encoding and the WordArt style.
7、 根据权利要求 1所述的方法, 其特征在于, 还包括: 判断当前状态是 否为艺术字状态, 若是, 则进行艺术字的匹配; 否则, 对应所述键盘消息编码 与文字 /文字串的映射关系, 进行文字 /文字串的匹配。  7. The method according to claim 1, further comprising: determining whether the current state is a WordArt state, and if so, matching the WordArt; otherwise, corresponding to the keyboard message encoding and the text/text string Mapping relationships, matching text/text strings.
8、 根据权利要求 2所述的方法, 其特征在于, 还包括:  8. The method according to claim 2, further comprising:
预设置至少一种 ASCII码字符替换规则;  Presetting at least one ASCII character replacement rule;
根据用户确认的 ASCII码字符、所述字符替换规则以及预存储的艺术字样 式 /预置的艺术字样式算法, 对所述键盘消息编码相应的艺术字样式进行字符 替换;  Characterizing the corresponding word-of-art style of the keyboard message according to the ASCII code character confirmed by the user, the character replacement rule, and the pre-stored word-of-art/preset word-of-art style algorithm;
触发应用程序接口控制消息,向当前激活的应用程序输入字符替换后的艺 术字 /图形。  Trigger the application interface control message to enter the art word/graphic after the character substitution to the currently active application.
9、 根据权利要求 2所述的方法, 其特征在于, 还包括: 预设置至少一种 ASCII码艺术图形替换规则; 9. The method according to claim 2, further comprising: Presetting at least one ASCII art graphic replacement rule;
根据所述 ASCII码艺术图形替换规则以及预存储的图片图形,对所述键盘 消息编码相应的图片图形进行 ASCII码艺术图形替换;  And performing ASCII code art graphic replacement on the corresponding picture graphic of the keyboard message according to the ASCII code art graphic replacement rule and the pre-stored picture graphic;
触发应用程序接口控制消息,向当前激活的应用程序输入替换后的 ASCII 码艺术图形。  Trigger the application interface control message to enter the replaced ASCII art graphic into the currently active application.
10、 根据权利要求 1所述的方法, 其特征在于, 所述艺术字样式包括但不 限于: ASCII码艺术字、 ASCII码艺术图形、 散光字、 单行字符串、 字符阵、 图形、 形音意相同或近似的文字、 符号或其组合。  10. The method according to claim 1, wherein the artistic word style includes but is not limited to: ASCII art word, ASCII art graphic, astigmatism word, single line character string, character array, graphic, shape sound meaning The same or similar words, symbols, or a combination thereof.
11、 一种向应用程序输入艺术字 /图形的方法, 其特征在于, 包括: 建立键盘消息编码 -文字 /文字串-艺术字样式三者之间的映射关系; 调用操作系统接口函数, 获取键盘消息编码;  11. A method for inputting a word/graphic to an application, comprising: establishing a mapping relationship between a keyboard message code-text/text string-art word style; calling an operating system interface function, obtaining a keyboard Message encoding
对应键盘消息编码与文字 /文字串的映射关系, 获取相应的文字串; 对应文字串语义和预存储的艺术字样式, 切分所述文字串; 术字样式;  Corresponding to the mapping relationship between the keyboard message encoding and the text/text string, obtaining the corresponding text string; corresponding to the text string semantics and the pre-stored artistic word style, dividing the text string;
触发应用程序接口控制消息, 向当前激活的应用程序输入艺术字 /图形。 Trigger an application interface control message to enter a WordArt/Graphics to the currently active application.
12、 根据权利要求 11所述的方法, 其特征在于, 还包括: 当匹配结果为 图形时, 判断当前激活的应用程序是否支持相应的图形存储格式, 若支持, 则 触发应用程序接口控制消息, 向当前激活的应用程序输入艺术字 /图形。 The method according to claim 11, further comprising: determining, when the matching result is a graphic, whether the currently activated application supports the corresponding graphic storage format, and if so, triggering the application interface control message, Enter WordArt/Graphics to the currently active application.
13、 根据权利要求 11所述的方法, 其特征在于, 还包括: 当匹配结果为 图形时, 给应用程序发送所述图形和与所述图形相匹配的文字和 /或符号。  13. The method according to claim 11, further comprising: when the matching result is a graphic, sending the graphic and the text and/or symbol matching the graphic to the application.
14、 根据权利要求 11所述的方法, 其特征在于, 还包括:  14. The method according to claim 11, further comprising:
预设置至少一种 ASCII码字符替换规则;  Presetting at least one ASCII character replacement rule;
根据用户确认的 ASCII码字符、所述字符替换规则以及预存储的艺术字样 式 /预置的艺术字样式算法, 对所述键盘消息编码相应的艺术字样式进行字符 替换;  Characterizing the corresponding word-of-art style of the keyboard message according to the ASCII code character confirmed by the user, the character replacement rule, and the pre-stored word-of-art/preset word-of-art style algorithm;
触发应用程序接口控制消息,向当前激活的应用程序输入字符替换后的艺 术字 /图形。  Trigger the application interface control message to enter the art word/graphic after the character substitution to the currently active application.
15、 根据权利要求 11所述的方法, 其特征在于, 所述艺术字样式包括但 不限于: ASCII码艺术字、 ASCII码艺术图形、散光字、 单行字符串、 字符阵、 图形、 形音意相同或近似的文字、 符号或其组合。 15. The method according to claim 11, wherein the WordArt style includes but It is not limited to: ASCII art words, ASCII art graphics, astigmatism words, single-line strings, character arrays, graphics, texts, symbols, or similar combinations.
16、 一种向应用程序输入艺术字 /图形的系统, 其特征在于, 包括: 存储单元, 用于预存储艺术字样式或者预置的艺术字样式算法, 以及键盘 消息编码与艺术字样式的映射关系;  16. A system for inputting WordArt/Graphics to an application, comprising: a storage unit, configured to pre-store a WordArt style or a preset WordArt style algorithm, and a mapping of a keyboard message code and a WordArt style. Relationship
编码接收单元, 用于调用操作系统接口函数, 获取键盘消息编码; 艺术字匹配单元, 用于对应所述映射关系表, 匹配与所述键盘消息编码对 应的艺术字样式;  a code receiving unit, configured to invoke an operating system interface function, to obtain a keyboard message encoding; a word matching unit, configured to match the mapping relationship table, and match an art word style corresponding to the keyboard message encoding;
输出单元, 用于触发应用程序接口控制消息, 向当前激活的应用程序输入 艺术字 /图形。  An output unit that triggers an application interface control message to input a word/graphic to the currently active application.
17、 根据权利要求 16所述的系统, 其特征在于, 所述映射关系包括: 键 盘消息编码与文字 /文字串的映射关系 ,文字 /文字串与艺术字样式的映射关系; 和 /或键盘消息编码直接与艺术字样式的映射关系。  The system according to claim 16, wherein the mapping relationship comprises: a mapping relationship between a keyboard message encoding and a text/text string, a mapping relationship between a text/text string and a WordArt style; and/or a keyboard message. Coding directly maps to the word style.
18、 根据权利要求 16所述的系统, 其特征在于, 所述存储单元包括: 字符库, 用于存放与键盘消息编码对应的文字 /文字串、 散光字、 单行字 符串或者字符阵;  The system according to claim 16, wherein the storage unit comprises: a character library, configured to store a text/text string, an astigmatism word, a single-line character string or a character array corresponding to the keyboard message encoding;
ASCII码艺术字库,用于存放与键盘消息编码对应的 ASCII码艺术字或者 预置的艺术字算法;  ASCII code art font for storing ASCII code art words or preset art word algorithms corresponding to keyboard message codes;
图形库, 用于存放与键盘消息编码对应的 ASCII码艺术图形或者图片图 形。  A graphics library for storing ASCII art graphics or picture graphics corresponding to keyboard message encoding.
19、 根据权利要求 16所述的系统, 其特征在于, 还包括:  The system according to claim 16, further comprising:
应用程序判断单元, 当匹配结果为图形时, 用于判断当前激活的应用程序 是否支持相应的图形存储格式, 若支持, 则触发所述输出单元。  The application determining unit, when the matching result is a graphic, is used to determine whether the currently activated application supports the corresponding graphic storage format, and if so, triggers the output unit.
20、 根据权利要求 16所述的系统, 其特征在于, 还包括:  20. The system of claim 16, further comprising:
自编辑单元, 用于用户自定义设置键盘消息编码与艺术字样式的映射关 系, 并保存至所述存储单元。  The self-editing unit is configured to customize a mapping relationship between the keyboard message encoding and the WordArt style, and save to the storage unit.
21、 根据权利要求 16所述的系统, 其特征在于, 还包括:  The system according to claim 16, further comprising:
字符匹配单元, 用于根据键盘消息编码与文字 /文字串的映射关系, 匹配 与所述编码对应的文字 /文字串; 判断状态单元, 用于判断当前状态是否为艺术字状态, 若是, 则触发所述 艺术字匹配单元; 否则, 触发所述字符匹配单元。 a character matching unit, configured to match a text/text string corresponding to the encoding according to a mapping relationship between a keyboard message encoding and a text/text string; The determining status unit is configured to determine whether the current status is a WordArt state, and if so, triggering the WordArt matching unit; otherwise, triggering the character matching unit.
22、 根据权利要求 16所述的系统, 其特征在于, 还包括字符替换单元; 所述存储单元中还存储有至少一种 ASCII码字符替换规则;  The system according to claim 16, further comprising a character replacement unit; wherein the storage unit further stores at least one ASCII code character replacement rule;
所述字符替换单元,用于根据用户确认的 ASCII码字符、所述字符替换规 则以及预存储的艺术字样式 /预置的艺术字样式算法, 对所述键盘消息编码相 应的艺术字样式进行字符替换。  The character replacement unit is configured to encode a corresponding artistic word style of the keyboard message according to an ASCII code character confirmed by a user, the character replacement rule, and a pre-stored artistic word style/preset artistic word style algorithm. replace.
23、 根据权利要求 16所述的系统, 其特征在于, 还包括图形替换单元; 所述存储单元中还存储有至少一种 ASCII码艺术图形替换规则; 所述图形替换单元,用于根据所述 ASCII码艺术图形替换规则以及预存储 的图片图形, 对所述键盘消息编码相应的图片图形进行 ASCII码艺术图形替 换。  The system according to claim 16, further comprising: a graphics replacement unit; the storage unit further storing at least one ASCII code art graphics replacement rule; the graphics replacement unit, configured to The ASCII art graphic replacement rule and the pre-stored picture graphic perform ASCII code art graphic replacement on the corresponding picture graphic of the keyboard message encoding.
24、 根据权利要求 16所述的系统, 其特征在于,  24. The system of claim 16 wherein:
所述向应用程序输入艺术字 /图形的系统所包括的编码接收单元、 存储单 元以及输出单元位于同一计算设备中;  The code receiving unit, the storage unit and the output unit included in the system for inputting the word/graphic to the application are located in the same computing device;
或者, 所述向应用程序输入艺术字 /图形的系统所包括的系统编码接收单 元、 输出单元位于第一计算设备中, 存储单元位于第二计算设备中; 该系统根 据用户输入的键盘消息,从位于第二计算设备的存储单元中获取相应信息,在 第一计算设备输出。  Alternatively, the system code receiving unit and the output unit included in the system for inputting the word/graphic to the application are located in the first computing device, and the storage unit is located in the second computing device; the system is based on the keyboard message input by the user The corresponding information is obtained in the storage unit of the second computing device and output at the first computing device.
25、 根据权利要求 16所述的系统, 其特征在于, 所述艺术字样式包括但 不限于: ASCII码艺术字、 ASCII码艺术图形、散光字、 单行字符串、 字符阵、 图形、 异体字、 形音意相同或近似的文字、 符号或其组合。  25. The system according to claim 16, wherein the WordArt style includes but is not limited to: ASCII art word, ASCII art graphic, astigmatism word, single line character string, character matrix, graphic, variant word, shape A word, symbol, or a combination thereof that has the same or similar meaning.
26、 一种向应用程序输入艺术字 /图形的系统, 其特征在于, 包括: 存储单元, 用于预存储艺术字样式或者预置的艺术字样式算法, 以及键盘 消息编码 -文字 /文字串 -艺术字样式三者之间的映射关系;  26. A system for inputting WordArt/Graphics to an application, comprising: a storage unit for pre-storing a WordArt style or a preset WordArt style algorithm, and a keyboard message encoding-text/text string- The mapping relationship between the three types of artistic words;
编码接收单元, 用于调用操作系统接口函数, 获取键盘消息编码; 文字串匹配单元, 用于对应键盘消息编码与文字 /文字串的映射关系,获取 相应的文字串;  a code receiving unit, configured to invoke an operating system interface function to obtain a keyboard message encoding; a text string matching unit, configured to correspond to a mapping relationship between the keyboard message encoding and the text/text string, and obtain a corresponding text string;
分词单元,用于对应文字串语义和预存储的艺术字样式,切分所述文字串; 艺术字匹配单元, a word segmentation unit for corresponding text string semantics and pre-stored artistic word styles, and dividing the text string; Word-of-word matching unit,
射关系, 获取相应的艺术字样式; Shoot the relationship, get the corresponding artistic word style;
输出单元, 用于触发应用程序接口控制消息, 向当前激活的应用程序输入 艺术字 /图形。  An output unit that triggers an application interface control message to input a word/graphic to the currently active application.
27、 根据权利要求 26所述的系统, 其特征在于, 还包括: 判断状态单元, 用于判断当前状态是否为艺术字状态, 若是, 则连接文字串匹配单元-分词单 元-艺术字匹配单元 -输出单元; 否则, 连接文字串匹配单元 -输出单元。  27. The system according to claim 26, further comprising: a determination status unit, configured to determine whether the current status is a WordArt state, and if so, connecting the text string matching unit-word segmentation unit-Art Word matching unit- Output unit; otherwise, connect the text string matching unit - output unit.
28、 根据权利要求 26所述的系统, 其特征在于, 还包括字符替换单元; 所述存储单元中还存储有至少一种 ASCII码字符替换规则;  The system according to claim 26, further comprising a character replacement unit; wherein the storage unit further stores at least one ASCII code character replacement rule;
所述字符替换单元,用于根据用户确认的 ASCII码字符、所述字符替换规 则以及预存储的艺术字样式 /预置的艺术字样式算法, 对所述键盘消息编码相 应的艺术字样式进行字符替换。  The character replacement unit is configured to encode a corresponding artistic word style of the keyboard message according to an ASCII code character confirmed by a user, the character replacement rule, and a pre-stored artistic word style/preset artistic word style algorithm. replace.
29、 根据权利要求 26所述的系统, 其特征在于, 所述艺术字样式包括但 不限于: ASCII码艺术字、 ASCII码艺术图形、散光字、 单行字符串、 字符阵、 图形、 形音意相同或近似的文字、 符号或其组合。  29. The system according to claim 26, wherein the WordArt style includes but is not limited to: ASCII art word, ASCII art graphic, astigmatism word, single line character string, character array, graphic, shape sound meaning The same or similar words, symbols, or a combination thereof.
PCT/CN2007/070615 2006-09-05 2007-09-04 Method and system for inputting artistic word/diagram into application program WO2008071099A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610127154.2A CN1920754B9 (en) 2006-09-05 2006-09-05 A kind of method and system to application program inputting artistic character word/figure
CN200610127154.2 2006-09-05

Publications (1)

Publication Number Publication Date
WO2008071099A1 true WO2008071099A1 (en) 2008-06-19

Family

ID=37778486

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070615 WO2008071099A1 (en) 2006-09-05 2007-09-04 Method and system for inputting artistic word/diagram into application program

Country Status (2)

Country Link
CN (1) CN1920754B9 (en)
WO (1) WO2008071099A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566904A (en) * 2011-11-25 2012-07-11 同济大学 Holographic code commutative terminal for tangut voice simulated platform
CN117173000A (en) * 2023-09-08 2023-12-05 广州市科帕电子科技有限公司 Information hiding method and system based on quaternary coding

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286118B (en) * 2007-04-10 2012-04-18 北京搜狗科技发展有限公司 Method for quick calling program instruction, system and an input method system
CN101833936A (en) * 2009-12-22 2010-09-15 康佳集团股份有限公司 Mobile terminal and method and device for displaying interfaces thereof
CN102541283A (en) * 2010-12-25 2012-07-04 上海量明科技发展有限公司 Method and system for achieving route type character input method
CN103294220A (en) * 2012-02-28 2013-09-11 联想(北京)有限公司 Input method and device
CN102819325A (en) * 2012-07-21 2012-12-12 上海量明科技发展有限公司 Input method and system for obtaining a plurality of character presenting effects
CN104063363A (en) * 2013-03-19 2014-09-24 福建福昕软件开发股份有限公司北京分公司 Method for inserting wordart quickly in PDF document
CN103455166B (en) * 2013-08-18 2018-10-12 苏州量跃信息科技有限公司 The method and system of seal information are exported based on input method tool
GB201321468D0 (en) * 2013-12-05 2014-01-22 Language Garden Ltd Manipulating graphic representations of words
CN103760991B (en) * 2014-01-13 2017-02-15 北京搜狗科技发展有限公司 Physical input method and physical input device
CN104899184B (en) * 2014-03-04 2019-10-15 腾讯科技(深圳)有限公司 Literal processing method, apparatus and system
CN104881146A (en) * 2015-04-28 2015-09-02 北京美秒科技有限公司 Picture input method
CN105739717B (en) * 2016-01-27 2019-01-25 百度在线网络技术(北京)有限公司 Data inputting method and device
CN107229349B (en) * 2016-03-25 2021-04-13 斑马智行网络(香港)有限公司 Character display method and device of input method
CN109871161B (en) * 2017-12-01 2021-08-17 腾讯科技(深圳)有限公司 Font processing method and device in chat application and electronic equipment
CN110110073B (en) * 2018-01-26 2021-07-23 北京高德云图科技有限公司 Character display method and device
CN110456919A (en) * 2018-05-07 2019-11-15 北京搜狗科技发展有限公司 Data processing method, device and the device for data processing
CN110909194A (en) * 2019-09-29 2020-03-24 上海萌家网络科技有限公司 Input method and system thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW235312B (en) * 1992-10-30 1994-12-01 Himont Inc
CN1779604A (en) * 2004-11-18 2006-05-31 黄金富 Data processor and characters inputting method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW235312B (en) * 1992-10-30 1994-12-01 Himont Inc
CN1779604A (en) * 2004-11-18 2006-05-31 黄金富 Data processor and characters inputting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LV J.-X. ET AL.: "Input method based on Windows IME", AGRICULTURAL UNIVERSITY OF HEBEI, vol. 26, no. SUPPL., 31 May 2003 (2003-05-31), pages 290 - 292 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566904A (en) * 2011-11-25 2012-07-11 同济大学 Holographic code commutative terminal for tangut voice simulated platform
CN117173000A (en) * 2023-09-08 2023-12-05 广州市科帕电子科技有限公司 Information hiding method and system based on quaternary coding

Also Published As

Publication number Publication date
CN1920754B (en) 2010-06-23
CN1920754B9 (en) 2016-06-08
CN1920754A (en) 2007-02-28

Similar Documents

Publication Publication Date Title
WO2008071099A1 (en) Method and system for inputting artistic word/diagram into application program
US8756527B2 (en) Method, apparatus and computer program product for providing a word input mechanism
US7949513B2 (en) Language module and method for use with text processing devices
WO2010035574A1 (en) Input device, input method, program, and recording medium
US8605039B2 (en) Text input
US7953692B2 (en) Predicting candidates using information sources
CN105573503B (en) For receiving the method and system of the text input on touch-sensitive display device
JP2008527563A (en) Iconic communication
CN101943952A (en) Mixed input method of at least two languages and input method system
CN102439544A (en) Interaction with ime computing device
WO2007121673A1 (en) Method and device for improving inputting speed of characters
JP2005508031A (en) Adaptable stroke order system based on radicals
JP2009176118A (en) Personal digital assistant and temporary character save program
JP5767590B2 (en) A system that generates information that displays a mixture of text and pictures
CN111444725B (en) Statement generation method, device, storage medium and electronic device
WO2022247789A1 (en) Candidate word update method and apparatus, and electronic device
US20170371424A1 (en) Predictive Text Typing Employing An Augmented Computer Keyboard
CA2939395A1 (en) Method and device for invoking a search from a text message
KR20120063407A (en) Rapid text input method using a touch screen and a device for the same
CN102591851B (en) A kind of method and apparatus for editing target text based on keyboard
CN113238686B (en) Document processing method and device and electronic equipment
JP5674140B2 (en) Text input device, text input receiving method and program
JP2014178953A (en) Character input program and character input device
KR100811285B1 (en) System and method for inputting text command, and a medium having computer readable program for executing the method
US20010033285A1 (en) Character attribute setting device and method in document preparing apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07801024

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07801024

Country of ref document: EP

Kind code of ref document: A1