| ... | @@ -3,16 +3,13 @@ const std = @import("std"); | ... | @@ -3,16 +3,13 @@ const std = @import("std"); |
| 3 | const common = @import("scripts/_common.zig"); | 3 | const common = @import("scripts/_common.zig"); |
| 4 | | 4 | |
| 5 | pub fn main() !void { | 5 | pub fn main() !void { |
| | 6 | // Blocks |
| 6 | try common.Main(struct { | 7 | try common.Main(struct { |
| 7 | pub const source_url = "https://unicode.org/Public/UCD/latest/ucd/Blocks.txt"; | 8 | pub const source_url = "https://unicode.org/Public/UCD/latest/ucd/Blocks.txt"; |
| 8 | | 9 | |
| 9 | pub const dest_file = "src/blocks.zig"; | 10 | pub const dest_file = "src/blocks.zig"; |
| 10 | | 11 | |
| 11 | pub const dest_header = | 12 | pub const dest_header = |
| 12 | \\// This file is part of the Unicode Character Database | | |
| 13 | \\// See http://www.unicode.org/reports/tr44/ for more information. | | |
| 14 | \\// | | |
| 15 | \\ | | |
| 16 | \\pub const Block = struct { | 13 | \\pub const Block = struct { |
| 17 | \\ from: u21, | 14 | \\ from: u21, |
| 18 | \\ to: u21, | 15 | \\ to: u21, |