Harman Patil (Editor)

RPL character set

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

The RPL character set is an 8-bit character set and encoding used by most RPL calculators manufactured by Hewlett-Packard as well as by the HP 82240B thermo printer. It is sometimes referred to simply as "ECMA-94" in documentation, although it is for the most part a superset of ISO 8859-1 / ECMA-94 in terms of printable characters, and it differs from ISO-8859-1 by using displayable characters rather than control characters in the 0x80 to 0x9F range of code points.

Contents

Overview

In 1986, the original series of RPL calculators (HP-28 series) as well as the HP 82240A thermal printer used a modified variant of the HP Roman-8 character set, of which characters above 147 could not be displayed on the calculator, only be printed.

This changed with the introduction of the HP 82240B printer in 1989 and the HP 48 series in 1990, which came with a new character set now based on ECMA 94 / ISO 8859-1 instead of HP Roman-8, but with the control codes in the range 128 to 159 (0x80 to 0x9F) being replaced by additional displayable characters. Compared to ISO 8859-1, codepoint 127 (0x7F) showed a medium shaded gray box like in the former HP Roman-8 based character set. Code points 131 (0x83) to 142 (0x8E) were also taken over from the former HP Roman-8 based character set. In addition to this, codepoint 31 (0x1F) was used for ellipsis (…) and codepoints 169 (0xA9) and 174 (0xAE) showed ambiguous glyphs which could be viewed as inverse circled numbers ❸ or copyright (©) and as ❷ or registered trademark (®), respectively. This first version of the character set also had a non-breaking space at position 160 (0xA0).

Translation from HP-48 to HP-28 character set:

In a revision of this character set in 1999, codepoint 160 (0xA0) was redefined to hold the euro sign (€) in the HP 49/50 series (including the HP 48gII), now deviating from ISO 8859-1. Codepoints 169 (0xA9) and 174 (0xAE) were now clearly defined as holding the copyright (©) and registered trademark (®) symbols in compliance with ISO 8859-1, whereas the corresponding glyphs still resembled the inverse circled numbers more.

In a parallel development, the HP 38G also used the HP 48 series' character set internally. Starting with the HP 39G in 2000, the superscript 3 (³) at codepoint 179 (0xB3) was replaced by a superscript -1 (−1) in the HP 39/40 series (except for the HP 39gII, which started to use Unicode). Codepoint 160 (0xA0) was also changed to the euro sign (€) in this third variant of the character set.

Hewlett-Packard never defined an official Unicode translation, hence several variants evolved in the community, differing in codepoints 31 (0x1F), 127 (0x7F), 128 (0x80), 129 (0x81), 133 (0x85), 134 (0x86), 158 (0x9E), 160 (0xA0), 169 (0xA9), 174 (0xAE), 178 (0xB3), 181 (0xB5) and 223 (0xDF).

The fact that the Unicode equivalent for x-bar at code point 129 (0x81) is a combination of two characters (x̅) could cause problems in translations, therefore it was suggested to use U+0101 (ā) instead.

Characters which cannot be reasonably transcoded should be mapped to code point 127 (0x7F), similar to what the calculators do when communicating with older printers like the HP 82240A.

Since the calculators allow fonts to be redefined (using FONT→, →FONT, MINIFONT→, →MINIFONT) other codepages can be emulated for as long as symbols which are available on the keyboard or are otherwise associated with specific functionality by the calculator aren't replaced by unrelated symbols.

Code page layout

The following table shows the HP RPL character set. Each character is shown with a potential Unicode equivalent and its decimal code. Where special HP TIO codes are defined to enter the character, they are given as well. The other characters can be entered using the nn TIO code syntax with nnn being a three-digit decimal number (with leading zeros if necessary) of the corresponding code point.

Legend:

References

RPL character set Wikipedia


Similar Topics