Computers & Writing Systems
You are here: Encoding > Unicode > Training
How to Convert a Hex Number to a Decimal Number
Steps to How to Write a Conversion Mapping for your Legacy Font
What Number is Your Character?
How to Identify Legacy and Other Fonts
How to Setup Your Computer to do a Conversion Mapping
Creating a Chart of Your Legacy Mapping
Create Your Draft TECkit Mapping File
The complete list of routines in How to Write a Conversion Mapping for your Legacy Font is here.
Goals for this tutorial
This tutorial explains how to find out the decimal value of a hexadecimal number, (using the Windows Calculator) and vice versa. It also explains how Microsoft Word XP handles data from legacy symbol fonts. In the last procedure you can determine the hexadecimal values that Word XP assigns your legacy symbol data. We recommend you read through and try all steps.
This step is part of the procedure How to Write a Conversion Mapping for your Legacy Font.
Converting a hex number to decimal
Instructions are based on a Windows XP operating system.
You can create a shortcut to the Calculator by right-clicking instead of clicking the Calculator item. Then click. Find the new shortcut on your desktop and double-click it to start the Calculator.
If your calculator doesn't look like this, clickand change from Standard to view.
Note the number base systems list with radio buttons hex, dec, oct, and bin. These represent hexadecimal, decimal, octal, and binary. In the above example, Decimal () is chosen.
Click theradio button to change to the hex system (if necessary).
With the mouse, click the hex number you wish to convert. Use the Calculator window's numeric keypad display. As an example, click 3 and then click F. A-F are found on the Calculator below the numbers. They are only usable when the radio button "Hex" is selected.
You do not need to click preceding zeros in any of these conversions. Also, you can type the numbers or letters from the keyboard instead of using the mouse, if you prefer.
"3F" will appear on the Calculator screen. Now click the radio button for decimal (). The "3F" is immediately changed to the decimal equivalent "63".
To convert another number, you don't have to delete the one on the Calculator screen. Just click the mouse on the calculator pad. But be sure you have the radio button set correctly first.
Converting a decimal number to hex
Make sure theradio button is on.
Click the Hex radio button. The Calculator displays the correct hexadecimal value of "3F".
Converting a decimal codepoint to PUA
Symbol fonts are older legacy fonts (before Unicode) that were originally used to display symbols rather than alphabetic text. This is an example:Symbol fonts may consist entirely of arrows, mathematical symbols, geometric, engineering, or technical symbols. There is also a class called "dingbats" or "wingdings".
In addition, many Symbol fonts were devised that contained alphabetic characters that were not the standard A-Z set. This allowed users to type in languages other than English. This could include anything from IPA (International Phonetic Alphabet) characters to languages like Hebrew or Devanagari.
Microsoft Word does not convert documents using Symbol fonts to their Unicode equivalents. That would be a very complex operation. Instead it converts all symbol codepoints into a certain set of hexadecimal numbers in the "Private Use Area" or PUA. It can then display them correctly using the old legacy font.
To determine the PUA code that Word will assign a given legacy codepoint:
Another way to determine the PUA value of a Symbol font codepoint is by using the Calculator. Just add F000 to the hex value. For a decimal value, add 61440. Then convert to hex.
2008-02-22 JW: reviewed
2005-07-05 JW: Page created
© 2003-2023 SIL International, all rights reserved, unless otherwise noted elsewhere on this page.