HPlogo MPE XL Native Language Programmer's Guide: 900 Series HP 3000 Computer Systems > Appendix D Converting 7-Bit to 8-Bit Data

Conversion Algorithm

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The conversion utilities convert records or fields from files that are assumed to have been created at an HP 262X terminal configured for 7-bit operation and for a language other than USASCII. The conversion from the HP 262X implementation of a European 7-bit substitution character set to the 8-bit ROMAN8 character set. This involves converting the values of certain characters stored in the file. Before conversion, the file should look correct on an HP 262X terminal configured for 7-bit operation with the appropriate substitution set. After conversion the file will look correct on any terminal configured for 8-bit operation.

Records and/or fields from files of all types are converted using the same algorithm. The conversion affects only the 12 characters shown in Table D-2 “Character Conversion Decimal Values” (all other characters remain unchanged). There are two rows of information opposite each national substitution set listed in Table D-2 “Character Conversion Decimal Values”:

  • The upper row indicates the graphic assigned in 7-bit operation.

  • The lower row indicates the decimal value assigned the graphic in ROMAN8 after using the conversion algorithm.

Table D-2 Character Conversion Decimal Values

National Substitution Set

Character and Conversion Decimal Value

   
USASCII#'@[/]^'{|}~
 3539649192939496123124125126
SVE/SUOMI#'ÉÄÖÅÜéäöåü
 3539220216218208219197204206212207
DANSK/NORSK#'@ÆØÅ^'æøå~
 3539642112102089496215214212126
FRANCAIS£'à°ç§^'éùè..
 1873920017918118917096197203201171
FRANCAIS M£'à°ç§^'éùè..
 1873920017918118917096197203201171
DEUTSCH£'§ÄÖÜ^'äöüβ
 187391892162182199496204206207222
UK£'@[\]^'{|}~
 18739649192939496123124125126
ESPANOL#'@¡Ñ¿°'{ñ}~
 35396418418218517996123183125126
ESPANOL M#'@¡Ñ¿°'{ñ}~
 35396418418218517996123183125126
ITALIANO£'@°çé^ùàòèì
 187396417918119794203200202201217

 

Table D-3 “Special Character Conversion” shows the special character conversion for specified FRANCAIS M and ESPANOL M characters. If these characters are followed immediately by certain characters, the two-character combination is converted to a single ROMAN8 character, and the field or record being converted is padded at the end with a blank.

Table D-3 Special Character Conversion

LanguageCharacter Conversion
Francais M ^ (94) followed by a, e, i, o, or u is converted to @ (192), ê (193), î (209), ô (194), or û (195).
 + (126) followed by a, e, i, o, or u is converted to L (204), ë (205), ï (221), ö (206), or ü (207).
 + (126) followed by A, O, or U is converted to X (216), Ö (218), or Ü (219).
Espanol M ( (39) followed by a, e, i, o, or u is converted to D (196), è (197), ì (213), ò (198), or ù (199).

 

NOTE: If these characters are followed by any other character, they are converted to their ROMAN8 equivalent as shown in Table D-2 “Character Conversion Decimal Values”.
Feedback to webmaster