X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/c7530c743eb2d8f45167ae0a9ed641559a4d550e..2b137fb228bb4cf979a2c63f863c4020ae399d43:/tools/mkwordlist diff --git a/tools/mkwordlist b/tools/mkwordlist index 6555246..81c3630 100755 --- a/tools/mkwordlist +++ b/tools/mkwordlist @@ -16,6 +16,10 @@ if (my $lang = shift @ARGV) { my $cols = "ref, array_to_string(form || alt, '/'), prio, id, sub"; %rows = $db->select(_word => $cols, \%filter)->map_arrays; defined $_->[-1] or pop @$_ for values %rows; + $rows{''} = [ + (undef) x 3, + [$db->select(word => 'id', {cat => undef, ref => undef})->flat] + ]; say pp \%rows =~ s/\\x\{([0-9A-F]+)\}/chr hex $1/ger; exit;