Documentation
¶
Overview ¶
Command gen produces tables_gen.go from the Library of Congress MARC-8 code tables (codetables.xml), the authoritative mapping between MARC-8 and Unicode.
The LoC file is a US Government work in the public domain. Run with:
go run ./internal/marc8/gen # fetches the published XML go run ./internal/marc8/gen path.xml # uses a local copy
It emits one decode map per single-byte non-Latin set and a packed, base64 blob for the multibyte EACC (CJK) set. Basic Latin (ASCII) and Extended Latin (ANSEL) are hand-maintained in marc8.go and deliberately skipped here.
Click to show internal directories.
Click to hide internal directories.