The present invention relates generally to electronic information, more specifically, to storage and rendering of such information.
Storage and rendering of characters in non-English languages are often managed by a program designed to handle that particular language. For example, a Chinese backup program may be a program designed to specifically process Chinese characters. However, it is becoming more common to store and render text in multiple languages within a single software program. It is also more common for international companies to deal with multiple languages within their network. A potential problem with language-specific software is that the rendering of the stored text may sometimes be nonsensical due to different formats associated with different operating systems. It would be desirable to be able to store and render text in a manner that is language-independent and file-system independent.
Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings.
The invention can be implemented in numerous ways, including as a process, an apparatus, a system, a composition of matter, a computer readable medium such as a computer readable storage medium or a computer network wherein program instructions are sent over optical or electronic communication links. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. In general, the order of the steps of disclosed processes may be altered within the scope of the invention.
A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.
Although the example shown in
If the received character is in English, a character set standard, such as Unicode, is looked up to convert the character to a number (204). Unicode is a standard that can be used to convert a character to a number. Unicode set includes characters from many languages. The conversion of an English character to a Unicode number is well known.
If the received character is not in English (202), then the character is transformed into a number in a selected private area of Unicode (206) in this example. The Unicode standard includes sections reserved for private use. One of these sections can be selected for use in associating the numbers in that section with received characters. Further details of transforming a character into a number in the selected private area of Unicode are later discussed in conjunction with
The result of the transformation is stored (208). For example, the result can be stored in database 108 of
In the example shown in
In the example shown in
Returning to
If byte N is not associated with English, then additional bits are added to byte N such that the result becomes a number in a selected private area of Unicode (358). Unicode has several private areas reserved for private uses. An example of a private area use is to transform a local language, such as one of the local languages in India, to a numerical code by a company wishing to release a product in that area. A Unicode private area may be a block of reserved numbers within Unicode. According to some embodiments, a Unicode private area may be selected for use in storing characters, such as non-English characters. For example, 24 bits can be added to byte N to result in a number that falls within the selected private area of Unicode. This selected private area can be predetermined among the several private areas reserved in Unicode. The 24 bits to be added to byte N can be selected to result in a number that falls within the private area. For example, for the byte 0xe8, 0x0000F800 is prepended to it to result in 0x0000F8e8 which is a number in a private area. In some embodiments, the same 24 bits can be used for all the bytes being processed so long as the resulting number falls within the selected private area.
UTF8 transformation may be applied on the resulting Unicode number (360). UTF8 transformations on Unicode numbers are well known Unicode transformation formats. The resulting UTF8 representation may be appended to “Result” (362). If there are more bytes to be processed (364), then N is set to N+1 (368). It is then determined whether byte N is associated with English (354), and byte N is processed as described above. If there are no more bytes (364), then “Result” is stored (366).
It is then determined whether the Unicode number falls within a predetermined range (506). For example, it is determined whether the Unicode number falls within a range of a pre-selected private area of the Unicode Standard. If it does not fall within the predetermined range, then the Unicode number is sent to be displayed as a character (508). For example, if the character is an English character, than the Unicode number associated with that character will not fall in the selected private area of Unicode in some embodiments, and can be displayed directly as that character.
If, however, the Unicode number does fall within the pre-determined range (506), then it may be converted back to a non-English character (510). The non-English character is then sent to be displayed (508).
If there are no more characters (512), then the rendering is complete. If, however, there are more characters, then data associated with that character is retrieved (502) and the process described above is performed on the new character.
If the number falls within the predetermined range, than the predetermined 24 bits is stripped from the retrieved bytes (610). In some embodiments, the predetermined 24 bits are the bits that were previously added to the bytes in the example shown in
Although Unicode is used herein as an example, any language conversion standard may be used. Likewise, although UTF8 is used herein as an example, any format that can be used to store character representation can be used. Examples of such format are UTF-16 and UTF-32.
Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive.
| Number | Name | Date | Kind |
|---|---|---|---|
| 5655148 | Richman et al. | Aug 1997 | A |
| 5870084 | Kanungo et al. | Feb 1999 | A |
| 6041345 | Levi et al. | Mar 2000 | A |
| 6829620 | Hsing et al. | Dec 2004 | B2 |
| 6999082 | Nishimura | Feb 2006 | B2 |
| 7013469 | Smith et al. | Mar 2006 | B2 |
| 7017162 | Smith et al. | Mar 2006 | B2 |
| 7032227 | Wilkinson et al. | Apr 2006 | B2 |
| 7086004 | Atkin | Aug 2006 | B2 |
| 7165260 | Blaser et al. | Jan 2007 | B2 |
| 7286815 | Coppinger et al. | Oct 2007 | B2 |
| 20010029542 | Nishimura | Oct 2001 | A1 |
| 20030023590 | Atkin | Jan 2003 | A1 |
| 20040030781 | Etesse et al. | Feb 2004 | A1 |
| 20040268305 | Hogg et al. | Dec 2004 | A1 |
| 20050246716 | Smith et al. | Nov 2005 | A1 |
| 20060179350 | Nathan et al. | Aug 2006 | A1 |