-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: point to openjade; provide instructions for Lyx->SGML; provide pointers to Debian packages #40
Comments
major extension to "generate.sh" by 384a2d1
@paravoid : please test |
That's great, thanks!
--- a/doc/generate.sh
+++ b/doc/generate.sh
@@ -40,7 +40,7 @@ while getopts "h?L:" opt; do
esac
done
-shift $[ $OPTIND - 1 ]
+shift $((OPTIND - 1))
if [ -z "$1" ]; then
file_sgml="ipv6calc.sgml"
More minor issues: --- a/doc/ipv6calc.html
+++ b/doc/ipv6calc.html
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE |
https://packages.debian.org/sid/ldp-docbook-dsssl ...and extract using |
Thank you for the ldp.dsl file source, the diff also explains why 4.0 instead of 4.01 was mentioned...regenerated now also: |
It took me a while to figure out how to regenerate the
ipv6calc.html
file from the sourceipv6calc.lyx
file. I'm filing this to document this for others, and perhaps as a feature enhancement request fordoc/generate.sh
:This is a two step process: first, the Lyx file is generated to an SGML. Second, the SGML to the HTML. (Note: I have not figured out what the purpose of the XML file in the source tree is.).
Only the second step is actually in
generate.sh
.Step 1: Lyx to SGML
apt install lyx docbook-utils
cd doc && lyx --export docbook ipv6calc.lyx
Step 2: SGML to HTML
The build system seems to be using "jade", but this is an old piece of software that has been forked in the meantime. Replacing "jade" with "openjade" seems to work just fine.
apt install opensp openjade docbook docbook-dsssl
cd doc && onsgmls -s ipv6calc.sgml
(This is optional and just validates the SGML../generate.sh
does this)cd doc && openjade -t sgml -i html -V nochunks -d "ldp.dsl#html" ipv6calc.sgml > ipv6calc.html
(./generate.sh
does this)As an alternative:
apt install ldp-docbook-dsssl
cd doc && openjade -t sgml -i html -V nochunks -d "docbook/stylesheet/dsssl/ldp/ldp.dsl#html" ipv6calc.sgml > ipv6calc.html
(in this case,doc/ldp.dsl
is not necessary and can be removed)ldp here stands for "Linux Documentation Project", and the ldp.dsl file is almost a pristine copy compared to the system copy as shipped in the ldp-docbook-dsssl package.
Versions used
This was under a Debian sid with Lyx v2.3.7, Docbook 4.5, Docbook-utils 0.6.14, Docbook-DSSSL 1.79, OpenJade 1.4devel1, opensp 1.5.2
The text was updated successfully, but these errors were encountered: