mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Skip entities with unknown unicode (0x????)
This commit is contained in:
parent
395a64f569
commit
8c684e8c73
@ -7,6 +7,7 @@ sed -n '/^[^#]/,$p' < entities.txt | while read line; do \
|
|||||||
name=$(echo "$line" | cut -f 1); \
|
name=$(echo "$line" | cut -f 1); \
|
||||||
code=$(echo "$line" | cut -f 3); \
|
code=$(echo "$line" | cut -f 3); \
|
||||||
desc=$(echo "$line" | cut -f 4 | sed 's/# //'); \
|
desc=$(echo "$line" | cut -f 4 | sed 's/# //'); \
|
||||||
|
test "$code" = "0x????" && continue
|
||||||
printf "\t{ %-12s %s }, /* %-46s */\n" \
|
printf "\t{ %-12s %s }, /* %-46s */\n" \
|
||||||
"\"$name\"," "$code" "$desc"; \
|
"\"$name\"," "$code" "$desc"; \
|
||||||
done | LC_ALL=C sort > tmp
|
done | LC_ALL=C sort > tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user