From aa20bebade8eeb3ca75199dc252feb3edb203fb1 Mon Sep 17 00:00:00 2001 From: Sam Atman Date: Fri, 16 May 2025 12:06:36 -0400 Subject: Words module In keeping with the new nomenclature, we're calling the module "Words", not "WordBreak". The latter is Unicode jargon, the module provides word iterators. Words are the figure, word breaks are the ground. --- build.zig | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 387b4c3..8cfa039 100644 --- a/build.zig +++ b/build.zig @@ -226,21 +226,21 @@ pub fn build(b: *std.Build) void { const grapheme_tr = b.addRunArtifact(grapheme_t); // Word Breaking - const word_break = b.addModule("WordBreak", .{ - .root_source_file = b.path("src/WordBreak.zig"), + const words = b.addModule("Words", .{ + .root_source_file = b.path("src/Words.zig"), .target = target, .optimize = optimize, }); - word_break.addAnonymousImport("wbp", .{ .root_source_file = wbp_gen_out }); - word_break.addImport("code_point", code_point); + words.addAnonymousImport("wbp", .{ .root_source_file = wbp_gen_out }); + words.addImport("code_point", code_point); - const word_break_t = b.addTest(.{ + const words_t = b.addTest(.{ .name = "WordBreak", - .root_module = word_break, + .root_module = words, .target = target, .optimize = optimize, }); - const word_break_tr = b.addRunArtifact(word_break_t); + const words_tr = b.addRunArtifact(words_t); // ASCII utilities const ascii = b.addModule("ascii", .{ @@ -471,7 +471,7 @@ pub fn build(b: *std.Build) void { }); unicode_tests.root_module.addImport("Graphemes", graphemes); unicode_tests.root_module.addImport("Normalize", norm); - unicode_tests.root_module.addImport("WordBreak", word_break); + unicode_tests.root_module.addImport("Words", words); const run_unicode_tests = b.addRunArtifact(unicode_tests); @@ -480,7 +480,7 @@ pub fn build(b: *std.Build) void { test_step.dependOn(&code_point_tr.step); test_step.dependOn(&display_width_tr.step); test_step.dependOn(&grapheme_tr.step); - test_step.dependOn(&word_break_tr.step); + test_step.dependOn(&words_tr.step); test_step.dependOn(&ascii_tr.step); test_step.dependOn(&ccc_data_tr.step); test_step.dependOn(&canon_data_tr.step); -- cgit v1.2.3