forked from openkylin/debiandoc-sgml
25 lines
599 B
Bash
Executable File
25 lines
599 B
Bash
Executable File
#!/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'
|