How to prevent one word from being split into two lines

View: New views
5 Messages — Rating Filter:   Alert me  

How to prevent one word from being split into two lines

by Baoqiu Cui :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

For PDF output using FOP, is there a way to prevent a word like "C++"
from being split into two lines ("C" is at the end of one line and "++"
is at the start of the next line)?  I have never run into this problem
until today, and I could not find a solution for this problem anywhere.

I must be missing something...  Can anyone give me some help?

Thanks in advance!

- Baoqiu


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


Re: How to prevent one word from being split into two lines

by Camille Bégnis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

what I found in those cases is to use the zero width no break space
U+FEFF between characters.

aka:

C++

Not tested though.

Camille.

Camille.

Baoqiu Cui wrote:

> Hi,
>
> For PDF output using FOP, is there a way to prevent a word like "C++"
> from being split into two lines ("C" is at the end of one line and "++"
> is at the start of the next line)?  I have never run into this problem
> until today, and I could not find a solution for this problem anywhere.
>
> I must be missing something...  Can anyone give me some help?
>
> Thanks in advance!
>
> - Baoqiu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@...
> For additional commands, e-mail: docbook-apps-help@...
>  

[camille.vcf]

begin:vcard
fn;quoted-printable:Camille B=C3=A9gnis
n;quoted-printable:B=C3=A9gnis;Camille
org:NeoDoc
adr:;;139 rue Philippe de Girard;Pertuis;;84120;France
email;internet:camille@...
tel;work:+33.9.54.96.99.55
tel;fax:+33.9.59.96.99.55
tel;cell:+33.6.33.15.10.23
url:http://www.neodoc.biz
version:2.1
end:vcard




---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...

Re: How to prevent one word from being split into two lines

by Baoqiu Cui :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Camille Bégnis <camille@...> writes:

> Hi,
>
> what I found in those cases is to use the zero width no break space
> U+FEFF between characters.
>
> aka:
>
> C++
>
> Not tested though.

Thanks a lot, Camille!  This works like a charm!

- Baoqiu

> Camille.
>
> Baoqiu Cui wrote:
>> Hi,
>>
>> For PDF output using FOP, is there a way to prevent a word like "C++"
>> from being split into two lines ("C" is at the end of one line and "++"
>> is at the start of the next line)?  I have never run into this problem
>> until today, and I could not find a solution for this problem anywhere.
>>
>> I must be missing something...  Can anyone give me some help?
>>
>> Thanks in advance!
>>
>> - Baoqiu


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


Re: How to prevent one word from being split into two lines

by Baoqiu Cui :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Baoqiu Cui <cbaoqiu@...> writes:

> Camille Bégnis <camille@...> writes:
>
>> Hi,
>>
>> what I found in those cases is to use the zero width no break space
>> U+FEFF between characters.
>>
>> aka:
>>
>> C++
>>
>> Not tested though.
>
> Thanks a lot, Camille!  This works like a charm!

Another thought: unicode character ⁠ (WORD JOINER) could be a
better character than  for this purpose.  What do you think?

- Baoqiu

>
> - Baoqiu
>
>> Camille.
>>
>> Baoqiu Cui wrote:
>>> Hi,
>>>
>>> For PDF output using FOP, is there a way to prevent a word like "C++"
>>> from being split into two lines ("C" is at the end of one line and "++"
>>> is at the start of the next line)?  I have never run into this problem
>>> until today, and I could not find a solution for this problem anywhere.
>>>
>>> I must be missing something...  Can anyone give me some help?
>>>
>>> Thanks in advance!
>>>
>>> - Baoqiu


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


Re: Re: How to prevent one word from being split into two lines

by Camille Bégnis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Baoqiu Cui wrote:

> Baoqiu Cui <cbaoqiu@...> writes:
>
>  
>> Camille Bégnis <camille@...> writes:
>>
>>    
>>> Hi,
>>>
>>> what I found in those cases is to use the zero width no break space
>>> U+FEFF between characters.
>>>
>>> aka:
>>>
>>> C++
>>>
>>> Not tested though.
>>>      
>> Thanks a lot, Camille!  This works like a charm!
>>    
>
> Another thought: unicode character ⁠ (WORD JOINER) could be a
> better character than  for this purpose.  What do you think?
>  
I didn't know this one, but tif the rendering is fine, why not?

Camille.

> - Baoqiu
>
>  
>> - Baoqiu
>>
>>    
>>> Camille.
>>>
>>> Baoqiu Cui wrote:
>>>      
>>>> Hi,
>>>>
>>>> For PDF output using FOP, is there a way to prevent a word like "C++"
>>>> from being split into two lines ("C" is at the end of one line and "++"
>>>> is at the start of the next line)?  I have never run into this problem
>>>> until today, and I could not find a solution for this problem anywhere.
>>>>
>>>> I must be missing something...  Can anyone give me some help?
>>>>
>>>> Thanks in advance!
>>>>
>>>> - Baoqiu
>>>>        
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@...
> For additional commands, e-mail: docbook-apps-help@...
>  

[camille.vcf]

begin:vcard
fn;quoted-printable:Camille B=C3=A9gnis
n;quoted-printable:B=C3=A9gnis;Camille
org:NeoDoc
adr:;;139 rue Philippe de Girard;Pertuis;;84120;France
email;internet:camille@...
tel;work:+33.9.54.96.99.55
tel;fax:+33.9.59.96.99.55
tel;cell:+33.6.33.15.10.23
url:http://www.neodoc.biz
version:2.1
end:vcard




---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...