mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 14:32:13 +08:00
Output the book in utf-8 encoding
Also fix doctype being removed by tidy in longindex by removing a wrong attribute (xmlns:xlink) in a div element in the index.
This commit is contained in:
parent
ce4020410f
commit
1df87eede9
2
Makefile
2
Makefile
@ -108,6 +108,7 @@ $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) version
|
|||||||
--stringparam base.dir $(BASEDIR)/ \
|
--stringparam base.dir $(BASEDIR)/ \
|
||||||
stylesheets/blfs-chunked.xsl \
|
stylesheets/blfs-chunked.xsl \
|
||||||
$(RENDERTMP)/$(BLFSHTML)
|
$(RENDERTMP)/$(BLFSHTML)
|
||||||
|
$(Q)sed -i 's/xmlns:xlink.*xlink"//' $(BASEDIR)/longindex.html
|
||||||
|
|
||||||
@echo "Copying CSS code and images..."
|
@echo "Copying CSS code and images..."
|
||||||
$(Q)if [ ! -e $(BASEDIR)/stylesheets ]; then \
|
$(Q)if [ ! -e $(BASEDIR)/stylesheets ]; then \
|
||||||
@ -141,6 +142,7 @@ $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) version
|
|||||||
--output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
|
--output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
|
||||||
stylesheets/blfs-nochunks.xsl \
|
stylesheets/blfs-nochunks.xsl \
|
||||||
$(RENDERTMP)/$(BLFSHTML)
|
$(RENDERTMP)/$(BLFSHTML)
|
||||||
|
$(Q)sed -i 's/xmlns:xlink.*xlink"//' $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||||
|
|
||||||
@echo "Running Tidy and obfuscate.sh on non-chunked XHTML..."
|
@echo "Running Tidy and obfuscate.sh on non-chunked XHTML..."
|
||||||
$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
|
$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
|
||||||
|
@ -10,9 +10,6 @@
|
|||||||
<!-- Upstream XHTML presentation templates -->
|
<!-- Upstream XHTML presentation templates -->
|
||||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
||||||
|
|
||||||
<!-- Use ISO-8859-1 for output instead of default UTF-8 -->
|
|
||||||
<xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
|
|
||||||
|
|
||||||
<!-- Including our customized elements templates -->
|
<!-- Including our customized elements templates -->
|
||||||
<xsl:include href="common.xsl"/>
|
<xsl:include href="common.xsl"/>
|
||||||
<xsl:include href="xhtml/lfs-admon.xsl"/>
|
<xsl:include href="xhtml/lfs-admon.xsl"/>
|
||||||
|
@ -10,9 +10,6 @@
|
|||||||
<!-- Upstream XHTML templates -->
|
<!-- Upstream XHTML templates -->
|
||||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
||||||
|
|
||||||
<!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
|
|
||||||
<xsl:output method="html" encoding="ISO-8859-1" indent="no" />
|
|
||||||
|
|
||||||
<!-- Including our others customized templates -->
|
<!-- Including our others customized templates -->
|
||||||
<xsl:include href="common.xsl"/>
|
<xsl:include href="common.xsl"/>
|
||||||
<xsl:include href="xhtml/lfs-index.xsl"/>
|
<xsl:include href="xhtml/lfs-index.xsl"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user