gen

command
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL