beremiz
Clone
Summary
Browse
Changes
Graph
SVGHMI: i18n: various fixes about unicode encoding and converting translation result back to XML to feed xslt processor
svghmi
2021-01-22, Edouard Tisserant
77cfbf1aacf0
SVGHMI: i18n: various fixes about unicode encoding and converting translation result back to XML to feed xslt processor
#!/bin/bash
INKSCAPE=inkscape
for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'`
do
if [ $i.png -nt icons.svg ]; then
echo "Skip $i"
else
rm -f $i.png
echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
"$INKSCAPE" icons.svg -z -e $i.png -i $i
fi
done