Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Lotus Multi-Byte Character Set

From Wikipedia, the free encyclopedia
Character encoding system

TheLotus Multi-Byte Character Set (LMBCS) is a proprietarymulti-bytecharacter encoding originally conceived in 1988 atLotus Development Corporation with input from Bob Balaban and others.[1] Created around the same time and addressing some of the same problems, LMBCS could be viewed as parallel development and possible alternative toUnicode.[1] For maximum compatibility, later issues of LMBCS incorporateUTF-16 as a subset.[2][3]

Commercially, LMBCS was first introduced as the default character set ofLotus 1-2-3 Release 3 forDOS in March 1989[1][4] andLotus 1-2-3/G Release 1 forOS/2[1] in 1990 replacing the 8-bitLotus International Character Set (LICS) andASCII used in earlier DOS-only versions of Lotus 1-2-3 andSymphony.[5] LMBCS is also used inIBM/LotusSmartSuite,Notes andDomino,[1] as well as in a number of third-party products.

LMBCS encodes the characters required for languages using theLatin,[6]Arabic,Hebrew,Greek andCyrillic[6] scripts, theThai,Chinese,Japanese[6] andKorean writing systems, and technical symbols.

Encodings

[edit]

Technically, LMBCS is alead-byte encoding where code point 00hex as well as code points 20hex (32) to 7Fhex (127) are identical toASCII[1] (as well as to LICS).[5]

Code point 00hex is always treated asNUL character to ensure maximum code compatibility with existing software libraries dealing withnull-terminated strings[1] in many programming languages such asC.[a] This applies even to the UTF-16be codes, where code words with the form xx00hex are mapped toprivate-use codes with the form F6xxhex during encoding in order to avoid the use of NUL bytes,[7] and to escaped control characters, where 20hex is added to the C0 (but not C1) control characters following the 0Fhex lead byte.[7]

Code points 01hex to 1Fhex, which serve as control codes in ASCII, are used as lead bytes to switch the definition of code points above 7Fhex between severalcode groups (similar tocode pages) and at the same time determine either a single- or multi-byte nature for the corresponding code group.[1]

For example, code group 1 (with group byte 01hex)[1] is almost identical to theSBCScode page 850, whereas code group 16 (with group byte 10hex)[1] is similar to the JapaneseMBCScode page 932. Multi-byte characters can thus occupy two or three bytes.[7][6]

Incanonical LMBCS, each character starts with its group byte.[1]To reduce the length, inoptimized orcompressed LMBCS adefault code group oroptimization group code can be defined on a per application or process basis (ideally chosen according to the highest likelihood of occurrence)[1] and must be communicated to the interpreting code in some way (f.e. by specifying the corresponding "LMBCS-n" name).[8] Thereby, the group byte can be omitted for these characters.[1] Lotus 1-2-3 retrieves the optimization group code from the file header of the corresponding source file,[7] whereas for Lotus Notes the optimization group code is fixed to be always 01hex.[2][7]

DefaultGroupBytesDescription
N/A00hex1[7]NUL
LMBCS-101hex2[7]Code page 850 (DOS Latin-1)[2][7]
LMBCS-202hex2[7]Code page 851 (DOS Greek)[2][7]
LMBCS-303hex2[7]Code page 1255 (Windows Hebrew)[2][7]
LMBCS-404hex2[7]Code page 1256 (Windows Arabic)[2][7]
LMBCS-505hex2[7]Code page 1251 (Windows Cyrillic)[2][7]
LMBCS-606hex2[7]Code page 852 (DOS Latin-2)[2][7]
N/A07hex1[7]BEL[2]
LMBCS-808hex2[7]Code page 1254 (Windows Turkish)[2][9][7]
N/A09hex1[7]TAB[2][9][7]
N/A0Ahex1[7]LF[2][9][7]
LMBCS-110Bhex2[7]Code page 874 (Thai)[9][7]
(LMBCS-12)0Chex2[7]Reserved[2]
N/A0Dhex1[7]CR[2][9][7]
(LMBCS-14)0Ehex2[7]Reserved[2]
(LMBCS-15)0Fhex2[7]Remapped C0/C1 control codes[7]
LMBCS-1610hex3[7]Code page 932/[2]943[7] (Japanese / Shift-JIS)[2][9]
LMBCS-1711hex3[7]Code page 949/[2]1261[7] (Korean)[2][9]
LMBCS-1812hex3[7]Code page 950[2][7] (Traditional Chinese / Taiwan /Big5)[2][9]
LMBCS-1913hex3[7]Code page 936/[2]1386[7] (Simplified Chinese)[2][9]
(LMBCS-20)14hex3[7]UTF-16 (Unicode)[2][3][7]
N/A15hex3Reserved[2]
N/A16hex3Reserved[2]
N/A17hex3Reserved[2]
N/A18hex3Reserved[2]
N/A19hex1[7]Lotus 1-2-3 system range[9][7]
N/A1Ahex3Reserved[2]
N/A1Bhex3Reserved[2]
N/A1Chex3Reserved[2]
N/A1Dhex3Reserved[2]
N/A1Ehex3Reserved[2]
N/A1Fhex3Reserved[2]

Character set

[edit]

Without prefix byte the code points 32 (20hex) to 127 (7Fhex) are interpreted as follows (corresponding to LMBCS codes 32 to 127):

Single byte codes (ASCII/ISO-646-US[10])
0123456789ABCDEF
2x SP !"#$%&'()*+,-./
3x0123456789:;<=>?
4x@ABCDEFGHIJKLMNO
5xPQRSTUVWXYZ[\]^_
6x`abcdefghijklmno
7xpqrstuvwxyz{|}~DEL/

Group 1

[edit]

LMBCS group 1 code points 128 (80hex) to 255 (FFhex) are identical to the corresponding code points incode page 850 (DOS Latin-1), whereas code points 1 (01hex) to 127 (7Fhex) are defined according to the following exception list (corresponding to LMBCS codes 256 to 383):

LMBCS Group 1, lower half[11][10]
0123456789ABCDEF
0xNUL
1x§
2x¨~˚^`´'-[b][c][c]
3x¨[d]~[d]˚[d]^[d]`[d]´[d]NBSP[c][c]
4xŒœŸ˙[c]˚[c][d][c][c][c][c][c]
5x
6xijIJʼnŀĿ¯[c]˘[c]˝[c]˛[c]ˇ[c]~[c][d]^[c][d]
7xĦ[c]ħ[c]Ŧ[c]ŧ[c]Ŋ[c]ŋ[c]ĸ[c]Kr[e]
  U+Mapped to a Unicodeprivate use character

Group 2

[edit]

LMBCS group 2 code points 128 (80hex) to 255 (FFhex) are identical to the corresponding code points in code page 851 (DOS Greek), whereas code points 1 (01hex) to 127 (7Fhex) are defined according to the following exception list:[f]

LMBCS Group 2, lower half[11]
0123456789ABCDEF
0xNULͺ΅ΪΫ΄ʼʽ
1x
2x
3x
4x
5x
6xφ
7x
  Mapped to a Unicodeprivate use character

Group 6

[edit]

LMBCS group 6 code points 128 (80hex) to 255 (FFhex) are identical to the corresponding code points in code page 852 (DOS Latin-2), whereas code points 1 (01hex) to 127 (7Fhex) are defined according to the following exception list:[f]

LMBCS Group 6, lower half[11]
0123456789ABCDEF
0xNULāĈĉĊċĒēĖėĜĝĠġĢģ
1xĤĥĨĩĪīĮįĴĵĶķĻļŅņ
2xŌōŖŗŜŝŨũŪūŬŭŲųĀ
3x
4x
5x
6x
7x

See also

[edit]

Notes

[edit]
  1. ^Lotus 1-2-3 Release 3.0 forDOS and newer versions are written inC.
  2. ^ (U+2010), (U+2011), (U+2012), (U+2013)
  3. ^abcdefghijklmnopqrstuvwxyAccording to the documentation this code point is not supported byLotus 1-2-3 Release 3.1+ for DOS and OS/2 and earlier.
  4. ^abcdefghiFor compatibility withLotus 1-2-3 Release 5.0.
  5. ^Unicode does not define a glyph for thecrown currency symbol (Krone aka "Kr"), therefore this points to F8FBhex in the UnicodePrivate Use Area (PUA).
  6. ^abAccording to the documentation code points 1 to 127 in this group are not supported byLotus 1-2-3 Release 3.1+ for DOS and OS/2 and earlier. These versions only supported LMBCS code points 0 to 511, covering group 0 and 1 only.

References

[edit]
  1. ^abcdefghijklmBalaban, Bob (2001)."Multi-Language Character Sets – What They Are, How To Use Them"(PDF). Looseleaf Software, Inc.Archived(PDF) from the original on 2016-11-25. Retrieved2016-11-25.
  2. ^abcdefghijklmnopqrstuvwxyzaaabacadaeafagah"Appendix A. Encoding Schemes".IBMCharacter Data Representation Architecture.IBM (CDRA). Lotus Multi-byte Character Set (LMBCS).Archived from the original on 2016-11-26. Retrieved2016-11-26.For optimization purposes, the group byte is omitted inNotes for single-byte values between X'20' and X'FF'. For example, LMBCS is always optimized to group 0x01, which means that any character where the first byte is greater than 0x1F, has an implicit group byte of 0x01.
  3. ^abScherer, Markus; Murray, Brendan (2000-06-02)."Re: MS Excel, Lotus 123 & Unicode".Archived from the original on 2016-12-06. Retrieved2016-12-06.
  4. ^"Kapitel 4. Kompatibilität mit anderen 1-2-3 Versionen – Zeichensätze" [Chapter 4. Compatibility with other 1-2-3 Versions – Character Sets].Lotus 1-2-3 Version 3.1 Upgrader's Handbuch [Upgrader's handbook] (in German) (1 ed.). Cambridge, MA, USA:Lotus Development Corporation. 1989. pp. 4-10 –4-11. 302173.
  5. ^abKamenz, Alfred; Vonhoegen, Helmut (1992).Das große Buch zu Lotus 1-2-3 für DOS (in German) (1 ed.).Data Becker. pp. 131–132,357–358.ISBN 3-89011-375-3.
  6. ^abcdLotus – Inside Notes – The Architecture of Notes and the Domino Server(PDF).Lotus Development Corporation. 2000.Archived(PDF) from the original on 2016-12-12. Retrieved2016-12-12.[…] Notes uses a single character set, the Lotus Multibyte Character Set (LMBCS), to encode all text data used internally by its programs. Whenever Notes first inputs text encoded in a character set other than LMBCS, it translates the text into a LMBCS string, and whenever it must output text in a character set other than LMBCS, it translates the internal LMBCS string into the appropriate character set. Because all text is internally formatted by LMBCS, all text-processing operations […] are done in only one way. LMBCS uses up to three bytes in memory to represent a single text character […]
  7. ^abcdefghijklmnopqrstuvwxyzaaabacadaeafagahaiajakalamanaoapaqarasMurray, Brendan; Snyder-Grant, Jim, eds. (2016) [2000-02-09]."ucnv_lmb.c".International Components for Unicode.International Business Machines (IBM).
  8. ^Batutis, Edward J. (2001-11-03)."Re: converter types".International Components for Unicode (ICU).Archived from the original on 2016-12-06. Retrieved2016-12-06.
  9. ^abcdefghij"LMBCS" (in Japanese). 2009-02-03.Archived from the original on 2016-11-26. Retrieved2016-11-26.[1]
  10. ^ab"Anhang 2. Der Lotus Multibyte Zeichensatz (LMBCS)" [Appendix 2. The Lotus Multibyte Character Set (LMBCS)].Lotus 1-2-3 Version 3.1 Referenzhandbuch [Lotus 1-2-3 Version 3.1 Reference Manual] (in German) (1 ed.). Cambridge, MA, USA:Lotus Development Corporation. 1989. pp. A2-1 – A2-13. 302168.
  11. ^abc"lmb-excp.ucm".GitHub. 2000-02-10.

Further reading

[edit]

External links

[edit]
Early telecommunications
ISO/IEC 8859
Bibliographic use
National standards
ISO/IEC 2022
Mac OSCode pages
("scripts")
DOS code pages
IBM AIX code pages
Windows code pages
EBCDIC code pages
DEC terminals (VTx)
Platform specific
Unicode /ISO/IEC 10646
TeX typesetting system
Miscellaneous code pages
Control character
Related topics
Retrieved from "https://en.wikipedia.org/w/index.php?title=Lotus_Multi-Byte_Character_Set&oldid=1322913169"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp