[dbdoclet] Re: Can't Hyphenate or Wrap Chapter Titles

Hello Todd,

I never faced this problem, so I am no expert either. I will try to
solve this problem, because this seems very important for you.

Regards
Michael

Todd Flinders schrieb:
> First of all, I want to apologize to Michael Fuchs.  I didn't realize
> until just now that you were responding.  For some reason, I'm not
> getting the e-mails.  They're probably being blocked on my side.
>  Anyway, I see them in the archive, and I'll be checking there
> regularly until I get this problem resolved.  Thank you for your help,
> Michael!
>  
> I've got through most of my issues, but one is still defeating me no
> matter how many nasty hacks I try.  ;-)
>  
> My project is growing somewhat large and has rather long package
> names.  This is particularly true for classes generated with JAXB for
> a very complex schema.
>  
> Several of these package names are too long to fit on a USLetter page,
> even when in landscape mode.  An example of such a package name is:
>  
> gov.ca.doj.isb.communicationApplications.middleware.dojesb.messaging
>  
> As petty as this is, it's a show-stopper issue for me.  I'd really
> like to use dbdoclet.  It's awesome.  So, I'm hoping to find a way
> around this somehow.  Is there a way to make Chapter names hyphenate
> and/or wrap? I've gone over the tutorial several times and haven't
> found a way.
>  
> I know the basics of xml and ant, but I'm no expert.  This is my first
> serious effort with dbdoclet and fop.  So, it's very possible I'm
> overlooking something obvious, though I promise I'm trying not to.
>  
> I've seen some efforts to tackle this with fop (not dbdoclet) on
> Google, but I couldn't find a resolution.  I've been going through the
> fop and docbook documentation and tried some efforts (guesses really)
> that sounded plausible, but seemed to have made no difference.  I
> tried added the following to my xsl/fo.xsl, but it wasn't impressed.
>  
> <xsl:attribute-set name="section.title.properties">
>     <xsl:attribute name="font-size">
>       <xsl:value-of select="$body.font.master * 1.2"></xsl:value-of>
>       <xsl:text>pt</xsl:text>
>     </xsl:attribute>
>     <xsl:attribute name="hyphenate">true</xsl:attribute>
>     <xsl:attribute
> name="hyphenation-push-character-count">2</xsl:attribute>
>     <xsl:attribute
> name="hyphenation-remain-character-count">2</xsl:attribute>
>     <xsl:attribute name="wrap-option">wrap</xsl:attribute>
>   </xsl:attribute-set>
>  
> Who knows if those attributes are even valid.  I was just guessing
> based on some Google searches.  I added similar attributes to the
> other section title properties as well with the same results of no
> noticable difference.
>  
> I've also tried modifying my Reference.xml manually to introduce
> whitespace in hopes it would break it up, but the other tags gave me
> errors.  (no content in prolog or something similar).
>  
> I tried adding whitespace to my actual source code.  Adding a trailing
> space to my Javadoc narrative circumvents the earlier whitespace
> problem I wrote about, but it's not impressed by whitespace in the
> package name.  It just joins the package name fragments back together
> again.
>  
> Anyway, if anyone has any interesting ideas for getting the package
> name to wrap in the Chapter titles, they would be greatly appreciated.
>  Thank you so much, and thanks for dbdoclet.  This is an AWESOME tool!
>  :-)
>
>
> CONFIDENTIALITY NOTICE: This communication with its contents may contain
> confidential and/or legally privileged information. It is solely for the
> use of the intended recipient(s). Unauthorized interception, review, use
> or disclosure is prohibited and may violate applicable laws including
> the Electronic Communications Privacy Act. If you are not the intended
> recipient, please contact the sender and destroy all copies of the
> communication.
>


-- 
Michael Fuchs
Leiter Softwareentwicklung

UNICO Media GmbH
Aldringenstraße 4
80639 München

Geschäftsführer Christian Fuchs
Amtsgericht HRB 116178
Sitz der Gesellschaft ist München

Tel.: +49-(0)89-1893533-20
Fax:  +49-(0)89-1893533-11


Other related posts: