const func string: lzwEncodeMsb (in string: uncompressed)
Encode a string with the Lempel-Ziv-Welch (LZW) compression method.
The packing order of bits in bytes is is MSB-First (Most Significant
Bit First). Encoding starts with 9 bits per coding point and goes
up to 12 bits per coding point. The code points 0 to 255 correspond
to ISO-8859-1 (Latin-1) characters. Code 256 starts a new block with
a new table and 9 bits per code point. Code 257 marks the end of the
compressed data. This compression is used in TIFF and PDF files.