comparison bin/normXML @ 0:2aa53823fb21

new repo
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 06 Jun 2026 10:19:04 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:2aa53823fb21
1 #!/bin/sh
2 if [ "$1" = "-w" ]
3 then
4 shift
5 rxp -c ASCII -o 1 "$@" | sed '/0/s/ISO-646/utf-8/;s/&#9;/ /g;s/> *&#10; *</>\
6 </g;s/&#10;/ /g' | tr -s ' ' ' ' | sed '/></s@<\([_.a-zA-Z][^ >]*\)\([^>]*\)></\1>@<\1\2/>@g;s/> *</>\
7 </g'
8 else
9 rxp -d "$@"
10 fi