Expand description
Automatic ID assignment, in-place category CSV updater, and merged table generator for Document Characters (Dcs) and Formats.
Structs§
- Merged
Generation Stats - Summary statistics for merged CSV generation.
- Table
Update Stats - Summary statistics for category table ID assignment and synchronization.
Constants§
- FORMAT_
REGION_ START - PREEXISTING_
CONTIGUOUS_ DC_ MAX - Highest preexisting Short Document Character ID allocated before script block
allocation (
Dc 1928 "End WASM program"). - PREEXISTING_
CONTIGUOUS_ FORMAT_ MAX - Highest preexisting Format Short ID allocated before script block allocation
(
f655 "Add global graph system block most recent"). - SHORT_
DC_ REGION_ START - UNIFIED_
SCHEMA_ HEADER - Canonical 19-column unified CSV schema header shared by all generated tables.
Functions§
- assign_
and_ update_ dc_ categories - Scans and automatically assigns Short and Global Dc IDs in Document Character
category CSV files (
src/formats/dcdata/data-src/categories/*.csv). - assign_
and_ update_ format_ categories - Scans and automatically assigns Short and Global Dc IDs in Formats
category CSV files (
src/formats/dcdata/data-src/categories/formats/*.csv). - check_
category_ csvs_ need_ no_ id_ updates - Verifies in memory (without modifying files on disk) that all Document Character and Format category CSV files already have assigned and consistent IDs.
- find_
repository_ root - Discovers the root directory of the ctoolbox repository.
- find_
repository_ root_ from - Discovers the root directory of the ctoolbox repository starting from a path.
- generate_
dc_ code - Generates the contents of
dc.generated.rsfrom the system graph ingraph_dir. - generate_
dc_ file - Generates
src/formats/dcdata/dc.generated.rsif its contents have changed. - generate_
format_ id_ code - Generates the contents of
format_id.generated.rsfrom the system graph ingraph_dir. - generate_
format_ id_ file - Generates
src/utilities/format_id.generated.rsif its contents have changed. - generate_
merged_ csvs - Generates merged
DcList.generated.csv,formats.generated.csv,unicode.generated.csv, andall.generated.csvfiles sharing a common schema, sorted strictly ascending by Dc ID. - is_
empty_ row - Checks whether an entire row consists solely of empty cells.
- is_
unassigned_ id - Checks whether a raw cell string represents an unassigned ID placeholder.
- parse_
format_ shorthand - Parses a format ID shorthand string, accepting either
f<digits>or bare<digits>. - parse_
unicode_ shorthand - Parses a Unicode shorthand string (
u[0-9a-f]+). - read_
csv_ file - Reads a CSV file returning the header row and data rows.
- validate_
category_ allocations - Validates reservations and proposed assignments in both namespaces without writing files, including duplicate IDs, script ownership, and region bounds.
- write_
csv_ file - Writes a header row and data rows to a CSV file using standard RFC4180 formatting, skipping the disk write if the file already contains identical bytes.