Module charset

Module charset 

Source
Expand description

Character set conversions.

Unicode to and from Lincoln Writer characters. No support for colour shifting. Limited support for overstrke characters (such as the LW circle (0o73 upper case) overstruck with logical or (0o22 lower case); these are currently supported only as Unicode combining characters.

The Xerox printer uses a different character set but this code doesn’t currently include a mapping for it.

Controlling documentation:

Structs§

DescribedChar
LincChar 🔒
LincolnState
LincolnStateTextInfo
NoSubscriptKnown
NoSuperscriptKnown
UnicodeToLincolnMapping

Enums§

Colour
LincolnChar
LincolnToUnicodeStrictConversionFailure
LwKeyboardCase
Indicates which keyboard case is currently selected. The terminology used around the Lincoln Writer is very confusing because of the way the LW is designed. Specifically (per page 8 of “The Lincoln Writer”, Lincoln Laboratory Group Report 51-8):
Script
UnicodeToLincolnConversionFailure

Functions§

bycase 🔒
lincoln_char_to_described_char
Convert a Lincoln Writer character to a description which can be used to print a Unicode approximation of it.
lincoln_to_unicode_strict
Convert a stream of Lincoln Writer codes to a Unicode string. Lincoln Writer codes are 6 bits, and these are assumed to be in the lower 6 bits of the input values.
lincoln_writer_state_update
Perform any state changes implied by a character code.
subscript_char
Return the corresponding subscript representation for ch.
superscript_char
Return the corresponding superscript representation for ch.
unprintable 🔒