OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] Issue with unwanted line breaks with the term C++


Hi Bill,

Thank your for the solution. I am using Apache FOP (0.95b) and they seem not to support this zero width joiner character. When I enter &#x200D into the .fo source file and run fop, the PDF renders a funny spiral character instead.

Henrik

> -----Original Message-----
> From: William R. (Bill) Greene [mailto:wrg@acm.org]
> Sent: Wednesday, 23 July 2008 2:22 PM
> To: DocBook Apps
> Subject: Re: [docbook-apps] Issue with unwanted line breaks with the term
> C++
> 
> 
> On 2008-07-22 , at 20:10:40, Henrik Maier wrote:
> 
> > For example the text "...Recompiling SuperBoost C++ Library with
> > Visual Studio 2005..."
> >
> > breaks into two lines like:
> >
> > ...Recompiling SuperBoost C
> > ++ Library with Visual Studio 2005...
> 
> This seems to work well when producing PDF or RTF output:
> 
>     <!ENTITY zwj       "&#x200D;">       <!-- Zero Width Joiner -->
>     <!ENTITY cplusplus "C&zwj;+&zwj;+">
> 
>     ...Recompiling SuperBoost &cplusplus; Library with Visual Studio
> 2005...
> 
> But if you are producing HTML output, you will later need to remove
> the Zero Width Joiners, perhaps like this:
> 
>     cat yourfile.html | sed 's/‍ZWJ//g' > yourfile.html
> 
> where "ZWJ" is replaced with the actual Zero Width Joiner character.
> 
> HTH.
> ________________________________________________________________________
> 
> Bill Greene
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]