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++



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


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