You can add your own entries to the abtrules.nls file to support more languages and territories. To see what language and territory your system uses,
Display the expression
Locale current. To see what languages and territories VA Smalltalk can support,
Inspect or
Display Locale knownLocales.
The code pages for many of these languages are in the abtrules.all file provided with VA Smalltalk. You can copy a code page from
abtrules.all file and add it to
abtrules.nls file. For supported languages, VA Smalltalk displays country-sensitive data (such as currency symbols and decimal separators) in the format that is appropriate for that language.
An .mpr file includes the code page used when the
.mpr file was built.
Look at abtrules.nls. Notice that many of the standard code pages like
iso8859-1 are the same as IBM code pages. IBM code pages are by number only (437, 850, 819, 1041, 897, and so on). The
:alias keyword in
abtrules.nls indicates what code pages with different names are really the same code page. For example,
:alias alias=iso8859-1 base=ibm-819 indicates that the standard code page
iso8859-1 and the IBM code page
ibm-819 are the same.
Look at the :table part of the
abtrules.nls file. It maps one code page to another. A line such as
:table from=ibm-437 to=ibm-819 followed by a 16x16 array of number, indicates what code point in the
from code page maps to another code point in the
to code page.
What does this all mean for you? Suppose accents from an .mpr file created on Linux under code page
10646do not appear correctly on Windows. That means a mapping table was not found. To fix this, you look in
abtrules.all and copy the correct table into
abtrules.nls, then restart VA Smalltalk.
Copyright 2005, 2020 Instantiations, Inc. All rights reserved.