mirror of
https://github.com/depp/syncfiles.git
synced 2024-11-22 19:30:49 +00:00
Add README for table generator
GitOrigin-RevId: 8062aa48890eb74a92b3322fdf306df9e5ecdee2
This commit is contained in:
parent
912c13f193
commit
c058e68d93
11
gen/README.md
Normal file
11
gen/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Character Conversion Tables
|
||||
|
||||
Used by SyncFiles.
|
||||
|
||||
This program generates the tables necessary to convert from UTF-8 to Mac OS Roman.
|
||||
|
||||
The conversion process is entirely table-driven. The table maps a (state, input) pair to a (state, output) pair. The initial state is 0. A transition to state 0 is considered invalid.
|
||||
|
||||
A transition may have _both_ a state and output. This means that the input may be translated in different ways depending on the bytes that follow. The translation code prefers the longest path through the state table that results in an output.
|
||||
|
||||
The table is compressed with PackBits to reduce its size by a factor of 22x.
|
Loading…
Reference in New Issue
Block a user