aboutsummaryrefslogtreecommitdiff
path: root/gen/prop
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-09 23:25:42 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-09 23:25:42 +0200
commit1396c95520f4fbafb045c1a5bb4b9be2dfd04072 (patch)
tree8b46e3f43e0a518f8b63af731775bcdf94b4099b /gen/prop
parent0f86c382cfdc6c742c62457bf6cbf1b079544a16 (diff)
Fix alignment of autogenerated lookup table elements
Diffstat (limited to 'gen/prop')
-rwxr-xr-xgen/prop/dt2
-rwxr-xr-xgen/prop/ea5
-rwxr-xr-xgen/prop/nt5
3 files changed, 7 insertions, 5 deletions
diff --git a/gen/prop/dt b/gen/prop/dt
index ba0582a..82d6331 100755
--- a/gen/prop/dt
+++ b/gen/prop/dt
@@ -81,4 +81,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);"
print "}"
}
-' data/DerivedDecompositionType.txt
+' data/DerivedDecompositionType.txt | sed 's/\s*$//'
diff --git a/gen/prop/ea b/gen/prop/ea
index 81842c6..6bf1291 100755
--- a/gen/prop/ea
+++ b/gen/prop/ea
@@ -33,7 +33,8 @@ END {
for (i = 0; i < 0x100; i++) {
if (i % 8 == 0)
printf "\t"
- printf "%5s,%s", props[i] ? props[i] : "EA_NA", i % 8 == 7 ? "\n" : " "
+ printf "%-6s%s", (props[i] ? props[i] : "EA_NA") ",", \
+ i % 8 == 7 ? "\n" : " "
}
print "};"
print ""
@@ -61,4 +62,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);"
print "}"
}
-' data/DerivedEastAsianWidth.txt
+' data/DerivedEastAsianWidth.txt | sed 's/\s*$//'
diff --git a/gen/prop/nt b/gen/prop/nt
index 569cc18..a55ea45 100755
--- a/gen/prop/nt
+++ b/gen/prop/nt
@@ -37,7 +37,8 @@ END {
for (i = 0; i < 0x100; i++) {
if (i % 8 == 0)
printf "\t"
- printf "%7s,%s", props[i] ? props[i] : "NT_NONE", i % 8 == 7 ? "\n" : " "
+ printf "%-8s%s", (props[i] ? props[i] : "NT_NONE") ",", \
+ i % 8 == 7 ? "\n" : " "
}
print "};"
print ""
@@ -65,4 +66,4 @@ END {
print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);"
print "}"
}
-' data/DerivedNumericType.txt
+' data/DerivedNumericType.txt | sed 's/\s*$//'