summaryrefslogtreecommitdiff
path: root/admin/unidata/blocks.awk
diff options
context:
space:
mode:
Diffstat (limited to 'admin/unidata/blocks.awk')
-rwxr-xr-xadmin/unidata/blocks.awk5
1 files changed, 3 insertions, 2 deletions
diff --git a/admin/unidata/blocks.awk b/admin/unidata/blocks.awk
index 1b1d3fc66ba..a7ee134c9f9 100755
--- a/admin/unidata/blocks.awk
+++ b/admin/unidata/blocks.awk
@@ -115,14 +115,15 @@ function name2alias(name , w, w2) {
else if (name ~ /duployan|shorthand/) return "duployan-shorthand"
else if (name ~ /sutton signwriting/) return "sutton-sign-writing"
- sub(/ (extended|extensions|supplement).*/, "", name)
+ sub(/^small /, "", name)
+ sub(/ (extended|extensions*|supplement).*/, "", name)
sub(/numbers/, "number", name)
sub(/numerals/, "numeral", name)
sub(/symbols/, "symbol", name)
sub(/forms$/, "form", name)
sub(/tiles$/, "tile", name)
sub(/^new /, "", name)
- sub(/ (characters|hieroglyphs|cursive)$/, "", name)
+ sub(/ (characters|hieroglyphs|cursive|hieroglyph format controls)$/, "", name)
gsub(/ /, "-", name)
return name