rm -f $$TEMP
$(SOURCE).nb.xml: $(SOURCE).xml po/nb/mwcc.po
- po4a-translate -f docbook -m $(SOURCE).xml -p po/nb/mwcc.po -l $@ -l $@ -L utf-8 -M utf-8 $(PO4AOPTS) -k 0
+ TEMP=`tempfile -p mwcc` && \
+ po4a-translate -f docbook -m $(SOURCE).xml -p po/nb/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \
+ ruby fixup-docbook-translated.rb nb $$TEMP $@ && \
+ rm -f $$TEMP
$(SOURCE).nl.xml: $(SOURCE).xml po/nl/mwcc.po
po4a-translate -f docbook -m $(SOURCE).xml -p po/nl/mwcc.po -l $@ -l $@ -L utf-8 -M utf-8 $(PO4AOPTS) -k 0