unicode: isolate properties, tables, and ziglyph into separate files

This makes it cleaner to add new sources of table generation and also
avoids inadvertently depending on different modules (despite Zig's lazy
analysis). 

This also fixes up terminal to only use our look up tables which avoids
bringing ziglyph in for the terminal module.
This commit is contained in:
Mitchell Hashimoto
2025-09-20 14:57:37 -07:00
parent c277ef8d82
commit bf1278deff
5 changed files with 194 additions and 6 deletions

View File

@@ -1,14 +1,13 @@
pub const lut = @import("lut.zig");
const grapheme = @import("grapheme.zig");
const props = @import("props.zig");
pub const table = props.table;
pub const Properties = props.Properties;
pub const getProperties = props.get;
pub const table = @import("props_table.zig").table;
pub const Properties = @import("Properties.zig");
pub const graphemeBreak = grapheme.graphemeBreak;
pub const GraphemeBreakState = grapheme.BreakState;
test {
_ = @import("props_ziglyph.zig");
_ = @import("symbols.zig");
@import("std").testing.refAllDecls(@This());
}