aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-09-09 18:36:25 +0000
committerManuel Canales Esparcia <manuel@linuxfromscratch.org>2004-09-09 18:36:25 +0000
commit868b5fc09a2942402174e568d9f25f789069dfbe (patch)
treecaa81de6a687fced824e14feff51fdbf04eb2b0c
parent332ba21e42e7f902160ab412cc22e0a04b5cedfc (diff)
Added support to can have
different contextual phrases for HTML or PDF output. git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4145 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--Makefile11
-rw-r--r--chapter01/changelog.xml3
-rw-r--r--chapter05/adjusting.xml6
-rw-r--r--prologue/typography.xml2
4 files changed, 16 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 86e001fcb..5fcb63969 100644
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,12 @@ NOCHUNKS_OUTPUT=LFS-BOOK.html
XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current
lfs:
- xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
+ xsltproc --xinclude --nonet -stringparam profile.condition html \
+ --output $(BASEDIR)/lfs-html.xml stylesheets/lfs-profile.xsl index.xml
+
+ xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
-stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl \
- index.xml
+ $(BASEDIR)/lfs-html.xml
if [ ! -e $(BASEDIR)/stylesheets ]; then \
mkdir -p $(BASEDIR)/stylesheets; \
@@ -24,6 +27,8 @@ lfs:
cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \
*.html
+ rm $(BASEDIR)/lfs-html.xml
+
sh goTidy $(BASEDIR)/
#
@@ -40,7 +45,7 @@ lfs:
# rm lfs.fo
pdf:
- xsltproc --xinclude --nonet --stringparam profile.condition print \
+ xsltproc --xinclude --nonet --stringparam profile.condition pdf \
--output $(BASEDIR)/lfs-pdf.xml stylesheets/lfs-profile.xsl index.xml
xsltproc --nonet --output $(BASEDIR)/lfs-pdf.fo stylesheets/lfs-pdf.xsl \
$(BASEDIR)/lfs-pdf.xml
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 943f797e2..978984e4d 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -84,6 +84,9 @@ first a summary, then a detailed log.</para>
</itemizedlist>
</listitem>
+<listitem><para>September 9th, 2004 [manuel]: Added support to can have
+different contextual phrases for HTML or PDF output.</para></listitem>
+
<listitem><para>September 9th, 2004 [manuel]: Chapter 6 - Moved the para
about the missing /etc/fstab from kernfs.xml to devices.xml.</para></listitem>
diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml
index 9141fefc0..2a52edd1e 100644
--- a/chapter05/adjusting.xml
+++ b/chapter05/adjusting.xml
@@ -42,8 +42,10 @@ sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
mv -f tempspecfile $SPECFILE &amp;&amp;
unset SPECFILE</userinput></screen>
-<para>It is recommended that the above command be copy-and-pasted in
-order to ensure accuracy. Alternatively, the specs file can be
+<para><phrase condition="html">It is recommended that the above command
+be copy-and-pasted in order to ensure accuracy. </phrase>
+<phrase condition="pdf">Be very careful when typing the above command. </phrase>
+Alternatively, the specs file can be
edited by hand. This is done by replacing every occurrence of
<quote>/lib/ld-linux.so.2</quote> with
<quote>/tools/lib/ld-linux.so.2</quote></para>
diff --git a/prologue/typography.xml b/prologue/typography.xml
index 2922d1763..02e551a68 100644
--- a/prologue/typography.xml
+++ b/prologue/typography.xml
@@ -52,7 +52,7 @@ Therefore, this entire section is generally typed as seen.</para>
<para><replaceable>[REPLACED TEXT]</replaceable></para>
<para>This format is used to encapsulate text that is not to be typed
-as seen or copy-and-pasted.</para>
+as seen<phrase condition="html"> or copy-and-pasted</phrase>.</para>
</sect1>