<div>Hi Jeff,</div><div><br></div><div>After sending out the previous message, I did a search in the user guide and found something. So, I try to copy the /usr/share/publican/xsl/pdf.xsl to my brand directory at the same level as the en-US sub-dir. Then, I tried to build the pdf and got the following at the end of the output:</div>
<div><br></div><div>"Using XML::LibXSLT on ./Common_Content/cloudstack/xsl/pdf.xsl</div><div>Could not create file parser context for file "./Common_Content/cloudstack/xsl/pdf.xsl": no such file or directory at /usr/share/perl5/Publican/Builder.pm line 937"</div>
<div><br></div><div>I noticed in the user guide, "<span style="background-color:rgb(238,238,236);font-family:'liberation sans','Myriad ','Bitstream Vera Sans','Lucida Grande','Luxi Sans','Trebuchet MS',helvetica,verdana,arial,sans-serif;font-size:16px">Brands that supply XSL files need to change the relative path to a URI.</span>" But I don't understand what it means. </div>
<div><br></div><div>Thanks again,</div><div><br></div><div>Tian</div><br><div class="gmail_quote">On Tue, Dec 4, 2012 at 9:37 PM, Siyuan Tian <span dir="ltr"><<a href="mailto:tiansiyuan@gmail.com" target="_blank">tiansiyuan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jeff,<div><br></div><div>I solved the hyphenate problem by turnning it off in /usr/share/publican/xsl/pdf.<u></u>xsl according to your instruction.</div>
<div><br></div><div>How can I override it in my brand? I double checked the user guide, which does not mention this. Or where can I find more information on brand?</div>
<div><br></div><div>I tried again,  2.8 support "build formats=test". I might have made a mistake.</div><div><br></div><div>Thanks for your kind help,</div><div><br></div><div>Tian<div><div class="h5"><br><br><div class="gmail_quote">

On Tue, Dec 4, 2012 at 7:12 AM, Jeff Fearn <span dir="ltr"><<a href="mailto:jfearn@redhat.com" target="_blank">jfearn@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On 12/03/2012 11:58 PM, Siyuan Tian wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
I just started using publican (v 2.8) on Ubuntu 1210. I have two questions:<br>
<br>
1, when I build pdf, I find quite a lot word breaks at line-ends, with a<br>
"-" added at the end of line. It does not look good. How to solve this<br>
problem?<br>
</blockquote>
<br></div>
Oh! That sounds like you have the FOP hyphenation patterns installed. The license isn't very Open Source friendly so we've not done a lot of testing with them. [1]<br>
<br>
I see that we have left hyphenate enabled though, so that explains why it is affecting the PDF. You can turn it off by tracking down where the publican pdf.xsl is on your system (probably /usr/share/publican/xsl/pdf.<u></u>xsl) and turning it off.<br>


<br>
Change:<br>
<br>
<xsl:param name="hyphenate">true</xsl:<u></u>param><br>
<br>
to:<br>
<br>
<xsl:param name="hyphenate">false</xsl:<u></u>param><br>
<br>
That will get reverted if you upgrade publican though.<br>
<br>
If you have your own brand you can simply override that setting in your brand and you'll be set.<br>
<br>
Another option is to track down where the hyphenation patters are and uninstall them if you can.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2, does 2.8 support formats=test with build?<br>
</blockquote>
<br></div>
I believe it does.<br>
<br>
Cheers, Jeff.<br>
<br>
1: <a href="http://xmlgraphics.apache.org/fop/1.0/hyphenation.html#support" target="_blank">http://xmlgraphics.apache.org/<u></u>fop/1.0/hyphenation.html#<u></u>support</a><span><font color="#888888"><br>
<br>
-- <br>
Jeff Fearn <<a href="mailto:jfearn@redhat.com" target="_blank">jfearn@redhat.com</a>><br>
Senior Software Engineer<br>
Infrastructure Engineering & Development (AEU)<br>
Red Hat Asia Pacific Pty Ltd<br>
GPG: 0x0357E8F0<br>
<br>
______________________________<u></u>_________________<br>
publican-list mailing list<br>
<a href="mailto:publican-list@redhat.com" target="_blank">publican-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/publican-list" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/publican-list</a><br>
Wiki: <a href="https://fedorahosted.org/publican" target="_blank">https://fedorahosted.org/<u></u>publican</a><br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br>