authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-10-04 13:55:26 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-10-04 13:55:26 -07:00
logb7caf202d5215d02db1e161894ad02a95cbd309a
treef615b62cd488d514535b155863c0d5c675436ba8
parent8206949a1005042dac53c5a4f37d09f736c4d60c

PropertyValueAliases: remove garbage from after comment


2 files changed, 2 insertions(+), 69 deletions(-)

scripts/PropertyValueAliases.zig+2-1
...@@ -20,7 +20,8 @@ pub usingnamespace common.Main(struct {...@@ -20,7 +20,8 @@ pub usingnamespace common.Main(struct {
2020
21 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {21 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
22 _ = alloc;22 _ = alloc;
23 var it = std.mem.tokenize(u8, line, "; ");23 const end = std.mem.indexOfScalar(u8, line, '#') orelse line.len;
24 var it = std.mem.tokenize(u8, line[0..end], "; ");
2425
25 var vals = [_][]const u8{26 var vals = [_][]const u8{
26 it.next().?,27 it.next().?,
src/property_value_aliases.zig-68
...@@ -440,8 +440,6 @@ pub const data = [_][3][]const u8{...@@ -440,8 +440,6 @@ pub const data = [_][3][]const u8{
440 .{ "ccc", "CCC130", "CCC130" },440 .{ "ccc", "CCC130", "CCC130" },
441 .{ "ccc", "CCC132", "CCC132" },441 .{ "ccc", "CCC132", "CCC132" },
442 .{ "ccc", "CCC133", "CCC133" },442 .{ "ccc", "CCC133", "CCC133" },
443 .{ "ccc", "#", "CCC133" },
444 .{ "ccc", "RESERVED", "CCC133" },
445 .{ "ccc", "ATBL", "Attached_Below_Left" },443 .{ "ccc", "ATBL", "Attached_Below_Left" },
446 .{ "ccc", "ATB", "Attached_Below" },444 .{ "ccc", "ATB", "Attached_Below" },
447 .{ "ccc", "ATA", "Attached_Above" },445 .{ "ccc", "ATA", "Attached_Above" },
...@@ -650,16 +648,6 @@ pub const data = [_][3][]const u8{...@@ -650,16 +648,6 @@ pub const data = [_][3][]const u8{
650 .{ "Comp_Ex", "T", "Yes" },648 .{ "Comp_Ex", "T", "Yes" },
651 .{ "Comp_Ex", "True", "Yes" },649 .{ "Comp_Ex", "True", "Yes" },
652 .{ "gc", "C", "Other" },650 .{ "gc", "C", "Other" },
653 .{ "gc", "#", "Other" },
654 .{ "gc", "Cc", "Other" },
655 .{ "gc", "|", "Other" },
656 .{ "gc", "Cf", "Other" },
657 .{ "gc", "|", "Other" },
658 .{ "gc", "Cn", "Other" },
659 .{ "gc", "|", "Other" },
660 .{ "gc", "Co", "Other" },
661 .{ "gc", "|", "Other" },
662 .{ "gc", "Cs", "Other" },
663 .{ "gc", "Cc", "Control" },651 .{ "gc", "Cc", "Control" },
664 .{ "gc", "cntrl", "Control" },652 .{ "gc", "cntrl", "Control" },
665 .{ "gc", "Cf", "Format" },653 .{ "gc", "Cf", "Format" },
...@@ -667,23 +655,7 @@ pub const data = [_][3][]const u8{...@@ -667,23 +655,7 @@ pub const data = [_][3][]const u8{
667 .{ "gc", "Co", "Private_Use" },655 .{ "gc", "Co", "Private_Use" },
668 .{ "gc", "Cs", "Surrogate" },656 .{ "gc", "Cs", "Surrogate" },
669 .{ "gc", "L", "Letter" },657 .{ "gc", "L", "Letter" },
670 .{ "gc", "#", "Letter" },
671 .{ "gc", "Ll", "Letter" },
672 .{ "gc", "|", "Letter" },
673 .{ "gc", "Lm", "Letter" },
674 .{ "gc", "|", "Letter" },
675 .{ "gc", "Lo", "Letter" },
676 .{ "gc", "|", "Letter" },
677 .{ "gc", "Lt", "Letter" },
678 .{ "gc", "|", "Letter" },
679 .{ "gc", "Lu", "Letter" },
680 .{ "gc", "LC", "Cased_Letter" },658 .{ "gc", "LC", "Cased_Letter" },
681 .{ "gc", "#", "Cased_Letter" },
682 .{ "gc", "Ll", "Cased_Letter" },
683 .{ "gc", "|", "Cased_Letter" },
684 .{ "gc", "Lt", "Cased_Letter" },
685 .{ "gc", "|", "Cased_Letter" },
686 .{ "gc", "Lu", "Cased_Letter" },
687 .{ "gc", "Ll", "Lowercase_Letter" },659 .{ "gc", "Ll", "Lowercase_Letter" },
688 .{ "gc", "Lm", "Modifier_Letter" },660 .{ "gc", "Lm", "Modifier_Letter" },
689 .{ "gc", "Lo", "Other_Letter" },661 .{ "gc", "Lo", "Other_Letter" },
...@@ -691,42 +663,16 @@ pub const data = [_][3][]const u8{...@@ -691,42 +663,16 @@ pub const data = [_][3][]const u8{
691 .{ "gc", "Lu", "Uppercase_Letter" },663 .{ "gc", "Lu", "Uppercase_Letter" },
692 .{ "gc", "M", "Mark" },664 .{ "gc", "M", "Mark" },
693 .{ "gc", "Combining_Mark", "Mark" },665 .{ "gc", "Combining_Mark", "Mark" },
694 .{ "gc", "#", "Mark" },
695 .{ "gc", "Mc", "Mark" },
696 .{ "gc", "|", "Mark" },
697 .{ "gc", "Me", "Mark" },
698 .{ "gc", "|", "Mark" },
699 .{ "gc", "Mn", "Mark" },
700 .{ "gc", "Mc", "Spacing_Mark" },666 .{ "gc", "Mc", "Spacing_Mark" },
701 .{ "gc", "Me", "Enclosing_Mark" },667 .{ "gc", "Me", "Enclosing_Mark" },
702 .{ "gc", "Mn", "Nonspacing_Mark" },668 .{ "gc", "Mn", "Nonspacing_Mark" },
703 .{ "gc", "N", "Number" },669 .{ "gc", "N", "Number" },
704 .{ "gc", "#", "Number" },
705 .{ "gc", "Nd", "Number" },
706 .{ "gc", "|", "Number" },
707 .{ "gc", "Nl", "Number" },
708 .{ "gc", "|", "Number" },
709 .{ "gc", "No", "Number" },
710 .{ "gc", "Nd", "Decimal_Number" },670 .{ "gc", "Nd", "Decimal_Number" },
711 .{ "gc", "digit", "Decimal_Number" },671 .{ "gc", "digit", "Decimal_Number" },
712 .{ "gc", "Nl", "Letter_Number" },672 .{ "gc", "Nl", "Letter_Number" },
713 .{ "gc", "No", "Other_Number" },673 .{ "gc", "No", "Other_Number" },
714 .{ "gc", "P", "Punctuation" },674 .{ "gc", "P", "Punctuation" },
715 .{ "gc", "punct", "Punctuation" },675 .{ "gc", "punct", "Punctuation" },
716 .{ "gc", "#", "Punctuation" },
717 .{ "gc", "Pc", "Punctuation" },
718 .{ "gc", "|", "Punctuation" },
719 .{ "gc", "Pd", "Punctuation" },
720 .{ "gc", "|", "Punctuation" },
721 .{ "gc", "Pe", "Punctuation" },
722 .{ "gc", "|", "Punctuation" },
723 .{ "gc", "Pf", "Punctuation" },
724 .{ "gc", "|", "Punctuation" },
725 .{ "gc", "Pi", "Punctuation" },
726 .{ "gc", "|", "Punctuation" },
727 .{ "gc", "Po", "Punctuation" },
728 .{ "gc", "|", "Punctuation" },
729 .{ "gc", "Ps", "Punctuation" },
730 .{ "gc", "Pc", "Connector_Punctuation" },676 .{ "gc", "Pc", "Connector_Punctuation" },
731 .{ "gc", "Pd", "Dash_Punctuation" },677 .{ "gc", "Pd", "Dash_Punctuation" },
732 .{ "gc", "Pe", "Close_Punctuation" },678 .{ "gc", "Pe", "Close_Punctuation" },
...@@ -735,25 +681,11 @@ pub const data = [_][3][]const u8{...@@ -735,25 +681,11 @@ pub const data = [_][3][]const u8{
735 .{ "gc", "Po", "Other_Punctuation" },681 .{ "gc", "Po", "Other_Punctuation" },
736 .{ "gc", "Ps", "Open_Punctuation" },682 .{ "gc", "Ps", "Open_Punctuation" },
737 .{ "gc", "S", "Symbol" },683 .{ "gc", "S", "Symbol" },
738 .{ "gc", "#", "Symbol" },
739 .{ "gc", "Sc", "Symbol" },
740 .{ "gc", "|", "Symbol" },
741 .{ "gc", "Sk", "Symbol" },
742 .{ "gc", "|", "Symbol" },
743 .{ "gc", "Sm", "Symbol" },
744 .{ "gc", "|", "Symbol" },
745 .{ "gc", "So", "Symbol" },
746 .{ "gc", "Sc", "Currency_Symbol" },684 .{ "gc", "Sc", "Currency_Symbol" },
747 .{ "gc", "Sk", "Modifier_Symbol" },685 .{ "gc", "Sk", "Modifier_Symbol" },
748 .{ "gc", "Sm", "Math_Symbol" },686 .{ "gc", "Sm", "Math_Symbol" },
749 .{ "gc", "So", "Other_Symbol" },687 .{ "gc", "So", "Other_Symbol" },
750 .{ "gc", "Z", "Separator" },688 .{ "gc", "Z", "Separator" },
751 .{ "gc", "#", "Separator" },
752 .{ "gc", "Zl", "Separator" },
753 .{ "gc", "|", "Separator" },
754 .{ "gc", "Zp", "Separator" },
755 .{ "gc", "|", "Separator" },
756 .{ "gc", "Zs", "Separator" },
757 .{ "gc", "Zl", "Line_Separator" },689 .{ "gc", "Zl", "Line_Separator" },
758 .{ "gc", "Zp", "Paragraph_Separator" },690 .{ "gc", "Zp", "Paragraph_Separator" },
759 .{ "gc", "Zs", "Space_Separator" },691 .{ "gc", "Zs", "Space_Separator" },