No subject


Tue Mar 8 10:51:07 CST 2011


However, not all is smooth sailing. The interesting bit of the log is 
below. The build first errors out when running some script.

After restarting, a bit further down, it says

Cannot find CatalogManager.properties

but continues anyway.

Finally, it produces lots of warnings that look like

WARNING: Font 'Arial,normal,900' not found. Substituting with
'any,normal,700'.  Mar 13, 2011 11:20:10 PM
org.apache.fop.fonts.FontInfo notifyFontReplacement

At the bottom I've pasted my diff against the Makefile. It is
basically what Steve is using. Most of the software mentioned in the
build instructions is not in Debian, so I figure Steve pulled off a
minor miracle getting it to build.

The resulting pdf looks normal, but I did not scrutinize it carefully.

I've no idea what impact not finding CatalogManager.properties has, for 
example, but I figure it must be used for something.

I also suggest something be put into the source so that every 
Debian/Ubuntu users doesn't have to have this fun experience when they 
want to build the book. I suggest perhaps a separate Debian/Ubuntu 
specific Makefile.

Comments/suggestions/corrections welcomed.

                                                         Regards, Faheem.

Running tour ..............................................
running tour-merge-conflict ......
make[1]: *** [en/examples/.run] Error 1
rm en/figs/bad-merge-4.svg en/figs/undo-manual-merge.svg 
en/figs/undo-non-tip.svg en/figs/bad-merge-5.svg en/figs/undo-manual.svg 
en/figs/bad-merge-1.svg en/figs/bad-merge-2.svg 
en/figs/feature-branches.svg en/figs/bad-merge-3.svg 
en/figs/undo-simple.svg
make[1]: Leaving directory `/home/faheem/hgbook-new2'
make: *** [pdf] Error 2
for l in en ; do \
             make pdf LINGUA=$l; \
         done
make[1]: Entering directory `/home/faheem/hgbook-new2'
mkdir -p build/en/source/figs
cp en/figs/*.png build/en/source/figs
cp stylesheets/hgbook.css build/en/source
(cd en; xmllint --nonet --noent --xinclude --postvalid --output 
../build/en/source/hgbook.xml.tmp 00book.xml)
cat build/en/source/hgbook.xml.tmp | sed 's/\$rev_id\$/527b86d55d4a 
(2009-12-13)/' > build/en/source/hgbook.xml
mkdir -p build/en/pdf
#java -classpath 
/usr/share/java/saxon65.jar:/usr/share/java/saxon65-dbxsl.jar:/usr/share/java/xml-commons-resolver-1.2.jar:/usr/share/java
java -classpath 
/usr/share/java/saxon.jar:/usr/share/java/saxon-jdom.jar:/usr/share/java/docbook-xsl-saxon.jar:/usr/share/java/xml-commons-resolver-1.1.jar:/usr/share/java 
\
             com.icl.saxon.StyleSheet \
             -x org.apache.xml.resolver.tools.ResolvingXMLReader \
             -y org.apache.xml.resolver.tools.ResolvingXMLReader \
             -r org.apache.xml.resolver.tools.CatalogResolver \
             -o build/en/source/hgbook.fo \
             build/en/source/hgbook.xml \
             stylesheets/en/fo.xsl \
             fop1.extensions=1
Cannot find CatalogManager.properties
Making portrait pages on A4 paper (210mmx297mm)
if test -r /usr/share/java/conf/userconfig.xml ; then \
                 FOP_CONFIG=" -c /usr/share/java/conf/userconfig.xml"; \
         fi
#(cd build/en/source && /usr/share/java/fop.sh  hgbook.fo 
../pdf/hgbook.pdf)
(cd build/en/source && /usr/bin/fop hgbook.fo ../pdf/hgbook.pdf)
Mar 13, 2011 11:20:10 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'sans-serif,normal,900' not found. Substituting with 'sans-serif,normal,700'.
Mar 13, 2011 11:20:10 PM org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNING: Font 'Arial,normal,900' not found. Substituting with 'any,normal,700'.
Mar 13, 2011 11:20:10 PM org.apache.fop.fonts.FontInfo notifyFontReplacement

diff -r 527b86d55d4a Makefile
--- a/Makefile	Sun Dec 13 16:35:56 2009 +0900
+++ b/Makefile	Sun Mar 13 22:40:59 2011 +0530
@@ -5,8 +5,9 @@

  FORMATS=html html-single pdf epub

-PO_LANGUAGES := zh
-DBK_LANGUAGES := en it fr
+#PO_LANGUAGES := zh
+#DBK_LANGUAGES := en it fr
+DBK_LANGUAGES := en
  LANGUAGES := $(DBK_LANGUAGES) $(PO_LANGUAGES)

  UPDATEPO = PERLLIB=$(PO4A_LIB) $(PO4A_HOME)/po4a-updatepo -M UTF-8 \
@@ -203,7 +204,8 @@

  build/$(LINGUA)/pdf/hgbook.pdf: build/$(LINGUA)/source/hgbook.xml stylesheets/fo.xsl stylesheets/$(LINGUA)/fo.xsl
  	mkdir -p build/$(LINGUA)/pdf
-	java -classpath $(JAVA_LIB)/saxon65.jar:$(JAVA_LIB)/saxon65-dbxsl.jar:$(JAVA_LIB)/xml-commons-resolver-1.2.jar:$(JAVA_LIB) \
+	#java -classpath $(JAVA_LIB)/saxon65.jar:$(JAVA_LIB)/saxon65-dbxsl.jar:$(JAVA_LIB)/xml-commons-resolver-1.2.jar:$(JAVA_LIB)
+	java -classpath $(JAVA_LIB)/saxon.jar:$(JAVA_LIB)/saxon-jdom.jar:$(JAVA_LIB)/docbook-xsl-saxon.jar:$(JAVA_LIB)/xml-commons-resolver-1.1.jar:$(JAVA_LIB) \
  	    com.icl.saxon.StyleSheet \
  	    -x org.apache.xml.resolver.tools.ResolvingXMLReader \
  	    -y org.apache.xml.resolver.tools.ResolvingXMLReader \
@@ -217,7 +219,8 @@
  		FOP_CONFIG=" -c $(FOP_HOME)/conf/userconfig.xml"; \
  	fi

-	(cd build/$(LINGUA)/source && $(FOP_HOME)/fop.sh ${FOP_CONFIG} hgbook.fo ../pdf/hgbook.pdf)
+	#(cd build/$(LINGUA)/source && $(FOP_HOME)/fop.sh ${FOP_CONFIG} hgbook.fo ../pdf/hgbook.pdf)
+	(cd build/$(LINGUA)/source && /usr/bin/fop hgbook.fo ../pdf/hgbook.pdf)
  endif

  $(LINGUA)/figs/%.png: $(LINGUA)/figs/%.svg


More information about the Mercurial-devel mailing list