Class Unicode


  • public class Unicode
    extends java.lang.Object
    General information and utilities for working with Unicode.
    Author:
    Garret Wilson
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static char[] SYMBOL_FONT_TO_UNICODE_TABLE
      A map of Unicode characters stored at Adobe Symbol font indexes.
    • Constructor Summary

      Constructors 
      Constructor Description
      Unicode()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getCodePointString​(int codeValue)
      Creates a string representation of a given Unicode code point in the form "U+XXXX[XX]".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SYMBOL_FONT_TO_UNICODE_TABLE

        public static final char[] SYMBOL_FONT_TO_UNICODE_TABLE
        A map of Unicode characters stored at Adobe Symbol font indexes. Conversion from the symbol font to Unicode is be performed using: unicodeChar=SYMBOL_FONT_TO_UNICODE_TABLE[symbolChar];

        Implemented by referencing the "Encoding Symbol Font" table provided by Oscar van Vlijmen ([email protected]).

        Note that several characters are not completely encoded; their complete representation, as given by Oscar van Vlijmen's table, are as follows:

        • 0xE6: 0x0028+0xF870
        • 0xE7: 0x0028+0xF871
        • 0xE8: 0x0028+0xF872
        • 0xE9: 0x005B+0xF870
        • 0xEA: 0x005B+0xF871
        • 0xEB: 0x005B+0xF872
        • 0xEC: 0x007B+0xF870
        • 0xED: 0x007B+0xF871
        • 0xEE: 0x007B+0xF872
        • 0xF4: 0x222B+0xF871
        • 0xF6: 0x0029+0xF870
        • 0xF7: 0x0029+0xF871
        • 0xF8: 0x0029+0xF872
        • 0xF9: 0x005D+0xF870
        • 0xFA: 0x005D+0xF871
        • 0xFB: 0x005D+0xF872
        • 0xFC: 0x007D+0xF870
        • 0xFD: 0x007D+0xF871
        • 0xFE: 0x007D+0xF872
        See Also:
        Encoding Symbol Font
    • Constructor Detail

      • Unicode

        public Unicode()
    • Method Detail

      • getCodePointString

        public static java.lang.String getCodePointString​(int codeValue)
        Creates a string representation of a given Unicode code point in the form "U+XXXX[XX]".
        Parameters:
        codeValue - The Unicode code point to represent.
        Returns:
        A string representation of the Unicode code point in the form "U+XXXX[XX]"