Hi Jeff, I solved the hyphenate problem by turnning it off in /usr/share/publican/xsl/pdf.**xsl according to your instruction.
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? I tried again, 2.8 support "build formats=test". I might have made a mistake. Thanks for your kind help, Tian On Tue, Dec 4, 2012 at 7:12 AM, Jeff Fearn <jfe...@redhat.com> wrote: > On 12/03/2012 11:58 PM, Siyuan Tian wrote: > >> Hi All, >> >> I just started using publican (v 2.8) on Ubuntu 1210. I have two >> questions: >> >> 1, when I build pdf, I find quite a lot word breaks at line-ends, with a >> "-" added at the end of line. It does not look good. How to solve this >> problem? >> > > 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] > > 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.* > *xsl) and turning it off. > > Change: > > <xsl:param name="hyphenate">true</xsl:**param> > > to: > > <xsl:param name="hyphenate">false</xsl:**param> > > That will get reverted if you upgrade publican though. > > If you have your own brand you can simply override that setting in your > brand and you'll be set. > > Another option is to track down where the hyphenation patters are and > uninstall them if you can. > > > 2, does 2.8 support formats=test with build? >> > > I believe it does. > > Cheers, Jeff. > > 1: > http://xmlgraphics.apache.org/**fop/1.0/hyphenation.html#**support<http://xmlgraphics.apache.org/fop/1.0/hyphenation.html#support> > > -- > Jeff Fearn <jfe...@redhat.com> > Senior Software Engineer > Infrastructure Engineering & Development (AEU) > Red Hat Asia Pacific Pty Ltd > GPG: 0x0357E8F0 > > ______________________________**_________________ > publican-list mailing list > publican-list@redhat.com > https://www.redhat.com/**mailman/listinfo/publican-list<https://www.redhat.com/mailman/listinfo/publican-list> > Wiki: https://fedorahosted.org/**publican<https://fedorahosted.org/publican> >
_______________________________________________ publican-list mailing list publican-list@redhat.com https://www.redhat.com/mailman/listinfo/publican-list Wiki: https://fedorahosted.org/publican