The instant interchange system of traditional Chinese word and simplified Chinese character
The invention relates to a kind of converting system of input in Chinese, refer to a kind of traditional Chinese word of information product and instant interchange system of simplified Chinese character of being common to especially.
Generally speaking, the information product with input in Chinese/Presentation Function all need possess the function that Chinese character code is arranged and can carry out the processing of Chinese material.But because two sides Chinese font system is divided into two kinds: traditional font font and simplified font, therefore the coded system of Chinese is also developed traditional font character code (Big5) coded system and simplified character code (GB) coded system separately.Please refer to Fig. 1.Fig. 1 is the synoptic diagram of the display system of the complex form of Chinese characters of known information product Chinese and simplified Chinese character.The complex form of Chinese characters and simplified Chinese character all are in dibit primitive encoding mode, but each have different coding rules.With " sending out " this word is example, the complex form of Chinese characters font code of " sending out " word among the figure is with B0, B1 is as representative, this font sign indicating number changed the mechanism through one convert a complex form of Chinese characters font function of position f (B0 to, B1), and according to this f (B0, B1) index value that calculated of complex form of Chinese characters font function of position is found out the font figure retaining of " sending out " word of its representative to show in complex form of Chinese characters font figure shelves storehouse.Same, the display system of simplified Chinese character also is to show the written historical materials of being imported in the same way.But along with the development of Internet technology with popularize, the user of different Chinese information processing systems but can't understand the content of utilizing the data that another Chinese character code system presented often fully when surfing the web the website.And general existing font switch technology is mostly only limit the font conversion of archive files form, as the WORD2000 of microsoft system.Therefore the user must use the software program of font conversion to change earlier with after this page download more voluntarily, causes the inconvenience of use.Another prior art method is to utilize plug-in program to install the purpose that new software reaches exchange in addition additional.But the mode of this externally hung software is not useful in general embedded system or the information household electrical appliances.Also having the part website is to utilize the program or the Webpage material that provide the Chinese-traditional version to follow simplified version to allow user oneself select, but then can increase the unnecessary repeated data of servo driver end thus.
Please refer to Fig. 2.Fig. 2 is the synoptic diagram of the font interchange system 20 of the complex form of Chinese characters of known information product Chinese and simplified Chinese character.The complex form of Chinese characters of a known information product Chinese comprises four different font figure shelves storehouses with the font interchange system 20 of simplified Chinese character, be respectively two whole word font figure that arranged according to traditional font font coded sequence equally and keep off storehouse 21 and a simplified Chinese character font figure shelves storehouse 22, and two a simplified Chinese character font figure shelves storehouse 23 and complex form of Chinese characters font figure shelves storehouses 24 of being arranged according to simplified font coded sequence equally.When the Chinese material of being imported was the complex form of Chinese characters, this interchange system 20 just kept off from this inferior simplified Chinese character font figure that is arranged according to traditional font font coded sequence and finds out corresponding simplified Chinese character the storehouse 22 and exchange.Identical, when the Chinese material of being imported was simplified Chinese character, interchange process was as the same so.But,, and cause the increase of cost of manufacture with the too much memory span that accounts for because known font interchange system 20 needs four different font figure shelves storehouses store required font data.Another kind of prior art method then is to utilize to change the mode that font encoding is got word more in advance, for example the complex form of Chinese characters of " sending out " is encoded to (B0, B1), this rule is earlier with (B0, B1) the simplified Chinese character limit sign indicating number (G0 that tables look-up and be converted to " sending out " word, and then utilize g (G0 G1) calculates the simplified Chinese character that index value obtains " sending out " word G1).But in the calculating of carrying out can increasing the time of tabling look-up and carrying out an index value more when complicated and simple font is exchanged, the speed of not only losing time and changing like this is slower.
The inventor whence originally in the spirit of positive invention, is urgently thought a kind of " instant interchange system of information product traditional Chinese word and simplified Chinese character " that can address the above problem because of in this, and is several after deliberation eventually to the invention of finishing this Jiahui common people.
Fundamental purpose of the present invention is at the instant interchange system that a kind of information product traditional Chinese word and simplified Chinese character are provided, so that can allow the user no matter be when handling documentation or online inquiry data, the complex form of Chinese characters and simplified Chinese character with Chinese that all can be instant exchange the puzzlement when reading information because of the complex form of Chinese characters with the different users of causing of the use habit of simplified Chinese character with solution.
Secondary objective of the present invention is that a kind of information product traditional Chinese word of a little memory span and instant interchange system of simplified Chinese character of only needing is being provided, so that can effectively use finite storage space, make the instant interchange system of this font can be applicable in the less information household appliances of general memory capacity, and save and make required cost.
For reaching above-mentioned purpose, the instant interchange system of information product traditional Chinese word of the present invention and simplified Chinese character, it is the exchange that allows the shown Chinese of an information product can produce the complex form of Chinese characters and simplified Chinese character immediately, the complex form of Chinese characters that this is Chinese and simplified Chinese character are to encode with a predetermined way separately, this system includes: one distinguishes the mechanism of reading, and the character code that is used for differentiating the data imported and whether is Chinese and this data is to be the complex form of Chinese characters or simplified Chinese character; One traditional font character code calculation mechanism utilizes a function of position to calculate the index value of a complex form of Chinese characters at this font picture library retaining; One complex form of Chinese characters font figure keeps off the storehouse, is used for storing the font figure shelves of a plurality of different complex forms of Chinese characters; One simplified character code calculation mechanism utilizes a function of position to calculate the index value of a simplified Chinese character at these font picture library shelves; One simplified Chinese character font figure keeps off the storehouse, is used for storing the font figure shelves of a plurality of different simplified Chinese characters; And one the font index that precomputes exchange mechanism, store a plurality of complex form of Chinese characters font index values and simplified Chinese character font index value, be used for receiving this complex form of Chinese characters/simplified character code calculation mechanism and calculate the corresponding simplified Chinese character/complex form of Chinese characters font index value of the complex form of Chinese characters/simplified Chinese character font function of position gained.
When the Chinese of being imported is the complex form of Chinese characters/simplified Chinese character, this exchange font index mechanism is found out corresponding simplified Chinese character/complex form of Chinese characters font index value according to utilizing this complex form of Chinese characters/simplified character code calculation mechanism to calculate the complex form of Chinese characters/simplified Chinese character font function of position, utilizes this complex form of Chinese characters/simplified Chinese character search mechanism to keep off the font figure shelves of finding out simplified Chinese character/complex form of Chinese characters in the storehouse and be shown in this information product at this simplified Chinese character/complex form of Chinese characters font figure again.
Because the present invention truly has the enhancement effect and can effectively solve the above problems, so apply for patent of invention in accordance with the law.
For further specifying structure of the present invention and feature thereof, the present invention is described in further detail below in conjunction with accompanying drawing, wherein:
Fig. 1 is the synoptic diagram of the display system of the complex form of Chinese characters of known information product Chinese and simplified Chinese character.
Fig. 2 is the synoptic diagram of the font interchange system of the complex form of Chinese characters of known information product Chinese and simplified Chinese character.
Fig. 3 is the configuration diagram of the instant interchange system of the complex form of Chinese characters of information product Chinese of the present invention and simplified Chinese character.
Fig. 4 is the process flow diagram of the instant interchange system of the complex form of Chinese characters of information product Chinese of the present invention and simplified Chinese character.
Fig. 5 shows the Taiwan website of a script with the traditional Chinese word code.
Fig. 6 demonstration utilizes the present invention to convert this website, Taiwan of simplified Chinese character font to.
Fig. 7 shows the continent website of a script with the simplified Chinese character word code.
Fig. 8 demonstration utilizes the present invention to convert this website, continent of complex form of Chinese characters font to.
The present invention provides a kind of traditional Chinese word of information product input and the instant interchange system of simplified Chinese character, be the exchange that allows the shown Chinese of an information product can produce the complex form of Chinese characters and simplified Chinese character immediately, the complex form of Chinese characters that this is Chinese and simplified Chinese character be all with the coded system of dibit tuple as saving format.
Your, be described as follows especially exemplified by a preferred embodiment for allowing juror can more understand technology contents of the present invention.The traditional Chinese word of information product input of the present invention and the instant interchange system 30 of simplified Chinese character include: one distinguishes the mechanism read 31, one traditional font character code calculation mechanism 32, one whole word font figure keeps off storehouse 33, one simplified character code calculation mechanism 34, one simplified Chinese character font figure shelves storehouse 35, and an exchange font index mechanism 36.The complex form of Chinese characters/simplified character code calculation mechanism the 32, the 34th wherein, be used for the complex form of Chinese characters/simplified Chinese character character code according to the reception data see through the complex form of Chinese characters/simplified Chinese character font function of position f (B0, B1)/(G0 G1) calculates the index value of one complex form of Chinese characters/simplified Chinese character font to g.It then is to be used for storing the font figure retaining of a plurality of different complex form of Chinese characters/simplified Chinese characters according to different putting in order that the complex form of Chinese characters/simplified Chinese character font figure keeps off storehouse 33,35.
Please refer to Fig. 3 and Fig. 4.Fig. 3 is the configuration diagram of the instant interchange system 30 of information product traditional Chinese word of the present invention and simplified Chinese character.Fig. 4 is the process flow diagram of the instant interchange system 30 of the complex form of Chinese characters of information product Chinese of the present invention and simplified Chinese character.When an information product that the instant interchange system 30 of traditional Chinese word of the present invention and simplified Chinese character is installed receives a written historical materials, can utilize earlier and distinguish the mechanism read 31 differentiating according to the coded system of this document whether the data of being imported is Chinese, and the font of this data is to be the complex form of Chinese characters or simplified Chinese character (with reference to the step 401 among the figure 4).As shown in Figure 3, with the written historical materials that is received is that " to send out " word be example to the traditional Chinese word, traditional font character code calculation mechanism 32 meetings this moment are according to the complex form of Chinese characters character code B0 of " sending out " word, and B1 utilizes a whole word location function to calculate the index value (with reference to step 402 in figure 4) of a simplified Chinese character at these font picture library shelves.Complex form of Chinese characters font figure shelves storehouse 33 is the font figure shelves that are used for storing a plurality of different complex forms of Chinese characters.Utilize the complex form of Chinese characters font function of position f (B0 of " sending out " word when traditional font character code calculation mechanism 32, B1) calculate the index value of a simplified Chinese character at these font picture library shelves, complex form of Chinese characters font figure shelves storehouse 33 just can demonstrate this complex form of Chinese characters font function of position f (B0, B1) font figure shelves of representative of " sending out " word.
The mechanism of exchanging 36 is made up of a data structure that is called matrix (Array), the content of this matrix then is that calculated in advance goes out each Chinese words and keeps off storehouse and simplified Chinese character font figure at complex form of Chinese characters font figure and keep off index value in the storehouse, suitably arrange according to its index value and form, the action of conversion then is to utilize the mode of an index mapping (Index Mapping) to finish.The matrix of supposing the mechanism of exchanging 36 is called Ary[], when the user selects to convert the traditional font font to simplified font, " send out " word via font function of position f (B0, B1) answer that calculates is 100, can see through Ary[100 at once and exchange mechanism 36] obtain the simplified Chinese character font index value of " sending out " word, and obtain font figure shelves (with reference to the step 403 among the figure 4) by simplified Chinese character font figure shelves storehouse again.At last, simplified Chinese character font figure shelves storehouse 35 just can demonstrate the simplified Chinese character font figure shelves (with reference to the step 404 among the figure 4) of " sending out " word according to this simplified Chinese character font index value that exchanges back " sending out " word.Same, when the original written historical materials that receives was simplified font, instant interchange system of the present invention can convert simplified font to its corresponding traditional font font according to same step.
Please refer to Fig. 5 to Fig. 8.Fig. 5 shows the Taiwan website of a script with the traditional Chinese word code.Fig. 6 demonstration utilizes the present invention to convert this website, Taiwan of simplified Chinese character font to.Fig. 7 shows the continent website of a script with the simplified Chinese character word code.Fig. 8 demonstration utilizes the present invention to convert this website, continent of complex form of Chinese characters font to.The instant interchange system 30 of traditional Chinese word of the present invention and simplified Chinese character can allow the user when surfing the web, immediately the Chinese material on the webpage is transformed between the complex form of Chinese characters and the simplified Chinese character mutually, uses the user of different Chinese fonts can both obtain required information to help each custom.In addition, because two complex form of Chinese characters fonts of 30 needs of instant interchange system figure of traditional Chinese word of the present invention and simplified Chinese character keeps off storehouse 33 and keeps off the demonstration that storehouse 35 is used for supporting the complex form of Chinese characters and simplified Chinese character font with simplified Chinese character font figure, therefore do not need a large amount of memory spans to support, and can effectively reduce the required cost of system.
The instant interchange system method 30 of traditional Chinese word of the present invention and simplified Chinese character, can be write as so that carry out by computer program language, and computer software program can be stored in any microprocessing unit can identification, the programmed recording medium of deciphering, or include the article and the device of this programmed recording medium.It is not limited to any form, and these article are preferably CD, CD-R, MO, the floppy disk magnetic sheet, the hard disk magnetic sheet, IC wafer or any those who are familiar with this art the spendable article that include this programmed recording medium.Because it is complete that the instant interchange system 30 of traditional Chinese word of the present invention and simplified Chinese character has disclosed, any person that is familiar with the computer program language reads instructions of the present invention and promptly knows how to write computer software program, so relevant computer software program detail section is not given unnecessary details at this.
Be noted that above-mentioned is embodiment only, but not is limited to embodiment.For example the applied environment of interchange system of the present invention or the coded system of traditional font font and simplified font are like that does not break away from basic framework person of the present invention, all should be the interest field that this patent is advocated, and should be as the criterion with patent claim.
To sum up institute is old, and no matter the present invention is with regard to purpose, means and effect, showing that it is totally different in the feature of known techniques,, earnestly ask the juror and perceive for a quantum jump of " the instant interchange system of traditional Chinese word and simplified Chinese character ", and pray and vouchsafe patent early, so that Jiahui society, the true feeling moral is just.