debiandoc-sgml/examples/debiandoc2dbk-ent

25 lines
599 B
Plaintext
Raw Permalink Normal View History

2022-09-22 20:21:24 +08:00
#!/bin/sh
# vim: set sts=4:
# $ mv FOO.dbk FOO-unent.dbk
# $ mv FOO.po FOO-unent.po
# $ debiandoc2dbk-ent <FOO-unent.dbk >FOO.dbk
# $ debiandoc2dbk-ent <FOO-unent.po >FOO.po
#
# This converts from
# @@@[bogus]@@@
# to
# &bogus;
#
# Add somethin along followings to *.ent
# <!ENTITY tagopen_footnote "<footnote>">
# <!ENTITY tagclose_footnote "</footnote>">
# <!ENTITY tagopen_file "<systemitem role=\"file\">">
# <!ENTITY tagclose_file "</systemitem>">
# ...
#
# FIXME items needs manual recovery.
#
# If you have multiline entities, touch them up first.
#
sed -e 's/@@@\[\([^]]*\)\]@@@/\&\1;/g'