* Non-breaking spaces
@ 2013-04-18 6:21 "H. Özoguz"
0 siblings, 0 replies; 11+ messages in thread
From: "H. Özoguz" @ 2013-04-18 6:21 UTC (permalink / raw)
To: ntg-context
> \nobreakspace
> \ideographicspace
> \ideographichalffillspace
> \twoperemspace
> \threeperemspace
> \fourperemspace
> \sixperemspace
> \figurespace
> \punctuationspace
> \breakablethinspace
> \hairspace
> \zerowidthspace
> \zwnj
> \zwj
> \narrownobreakspace
>
> or just their utf representation
Which of them is like \hairspace, but not breakable?
Or where can I read all the properties of this commands?
Huseyin
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Non-breaking spaces
@ 2013-04-17 7:08 "H. Özoguz"
2013-04-17 13:16 ` Hans Hagen
2013-04-17 14:34 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 2 replies; 11+ messages in thread
From: "H. Özoguz" @ 2013-04-17 7:08 UTC (permalink / raw)
To: ntg-context
For typographical fine-tuning one needs often non-breaking spaces. But
not only full spaces, but half spaces, or even less. I have this example:
and\hskip1pt/or
But \hskip1pt is not non-breaking, like "\," (half space) is. How to
make it non-breaking? Or are there predfined ones, analog to \, ?
Huseyin
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Non-breaking spaces
2013-04-17 7:08 "H. Özoguz"
@ 2013-04-17 13:16 ` Hans Hagen
2013-04-17 13:30 ` Idris Samawi Hamid ادريس سماوي حامد
2013-04-17 14:34 ` Idris Samawi Hamid ادريس سماوي حامد
1 sibling, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2013-04-17 13:16 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: "H. Özoguz"
On 4/17/2013 9:08 AM, "H. Özoguz" wrote:
> For typographical fine-tuning one needs often non-breaking spaces. But
> not only full spaces, but half spaces, or even less. I have this example:
>
> and\hskip1pt/or
>
> But \hskip1pt is not non-breaking, like "\," (half space) is. How to
> make it non-breaking? Or are there predfined ones, analog to \, ?
\nobreakspace
\ideographicspace
\ideographichalffillspace
\twoperemspace
\threeperemspace
\fourperemspace
\sixperemspace
\figurespace
\punctuationspace
\breakablethinspace
\hairspace
\zerowidthspace
\zwnj
\zwj
\narrownobreakspace
or just their utf representation
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Non-breaking spaces
2013-04-17 13:16 ` Hans Hagen
@ 2013-04-17 13:30 ` Idris Samawi Hamid ادريس سماوي حامد
2013-04-17 13:56 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2013-04-17 13:30 UTC (permalink / raw)
To: mailing list for ConTeXt users, Hans Hagen; +Cc: H. Özoguz
Hi Hans,
These commands are good to know!
On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen <pragma@wxs.nl> wrote:
> \narrownobreakspace
If a font does not have U+202F defined, what's the best way to redefine
this to, say, one half of the current font's regular space U+0020 (with no
shrinking or stretching of course).
Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Non-breaking spaces
2013-04-17 13:30 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2013-04-17 13:56 ` Hans Hagen
2013-04-17 14:30 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2013-04-17 13:56 UTC (permalink / raw)
To: Idris Samawi Hamid ادريس
سماوي حامد
Cc: mailing list for ConTeXt users, "H. Özoguz"
On 4/17/2013 3:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Hi Hans,
>
> These commands are good to know!
>
> On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen <pragma@wxs.nl> wrote:
>
>> \narrownobreakspace
>
> If a font does not have U+202F defined, what's the best way to redefine
> this to, say, one half of the current font's regular space U+0020 (with
> no shrinking or stretching of course).
it has nothing to do with fonts ... they are not characters bound to
glyphs .. independent so to say ... dealt with at another level
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Non-breaking spaces
2013-04-17 13:56 ` Hans Hagen
@ 2013-04-17 14:30 ` Idris Samawi Hamid ادريس سماوي حامد
2013-04-17 14:51 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2013-04-17 14:30 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users, H. Özoguz
On Wed, 17 Apr 2013 07:56:41 -0600, Hans Hagen <pragma@wxs.nl> wrote:
>
> On 4/17/2013 3:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
>> Hi Hans,
>>
>> These commands are good to know!
>>
>> On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen <pragma@wxs.nl> wrote:
>>
>>> \narrownobreakspace
>>
>> If a font does not have U+202F defined, what's the best way to redefine
>> this to, say, one half of the current font's regular space U+0020 (with
>> no shrinking or stretching of course).
>
> it has nothing to do with fonts ... they are not characters bound to
> glyphs .. independent so to say ... dealt with at another level
In spac-chr.mkiv there is
Line 73: \edef\narrownobreakspace {\normalUchar"202F}
So in the preamble we have to do something like (spac-hor.mkiv, line 905)
\edef\narrownobreakspace{\penalty\plustenthousand\kern .7ex}
Then I can say, e.g.
\defineactivecharater + {\narrownobreakspace}
و+الباب
(untested, but on my list)
But per the current definition I should be able to define U+"202F as,
e.g., .7ex in the font and get the same effect, right?
Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Non-breaking spaces
2013-04-17 14:30 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2013-04-17 14:51 ` Hans Hagen
2013-04-17 15:28 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2013-04-17 14:51 UTC (permalink / raw)
To: Idris Samawi Hamid ادريس
سماوي حامد
Cc: mailing list for ConTeXt users, "H. Özoguz"
On 4/17/2013 4:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Wed, 17 Apr 2013 07:56:41 -0600, Hans Hagen <pragma@wxs.nl> wrote:
>
>>
>> On 4/17/2013 3:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
>>> Hi Hans,
>>>
>>> These commands are good to know!
>>>
>>> On Wed, 17 Apr 2013 07:16:41 -0600, Hans Hagen <pragma@wxs.nl> wrote:
>>>
>>>> \narrownobreakspace
>>>
>>> If a font does not have U+202F defined, what's the best way to redefine
>>> this to, say, one half of the current font's regular space U+0020 (with
>>> no shrinking or stretching of course).
>>
>> it has nothing to do with fonts ... they are not characters bound to
>> glyphs .. independent so to say ... dealt with at another level
>
> In spac-chr.mkiv there is
>
> Line 73: \edef\narrownobreakspace {\normalUchar"202F}
>
> So in the preamble we have to do something like (spac-hor.mkiv, line 905)
>
> \edef\narrownobreakspace{\penalty\plustenthousand\kern .7ex}
why redefine it? just keep it as is ... such an utf char automagically
in mkiv becomes a combination of kern / skip / penalty ... if you start
redefining yourself it also gets out of control when it's passed around
don't worry about how that happens (just assume the abstraction is taken
care of)
> Then I can say, e.g.
>
> \defineactivecharater + {\narrownobreakspace}
>
> و+الباب
>
> (untested, but on my list)
> But per the current definition I should be able to define U+"202F as,
> e.g., .7ex in the font and get the same effect, right?
why make a character active and let it expand to itself as letter?
normally the font handler never sees that character as there is no
character -> glyph issue involved
just insert the utf character as-is
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Non-breaking spaces
2013-04-17 14:51 ` Hans Hagen
@ 2013-04-17 15:28 ` Idris Samawi Hamid ادريس سماوي حامد
2013-04-17 15:35 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2013-04-17 15:28 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
On Wed, 17 Apr 2013 08:51:37 -0600, Hans Hagen <pragma@wxs.nl> wrote:
>> \defineactivecharater + {\narrownobreakspace}
>>
>> و+الباب
>>
>> (untested, but on my list)
>
>> But per the current definition I should be able to define U+"202F as,
>> e.g., .7ex in the font and get the same effect, right?
>
> why make a character active and let it expand to itself as letter?
>
> normally the font handler never sees that character as there is no
> character -> glyph issue involved
>
> just insert the utf character as-is
Sure, but two motivations:
1) In fine Arabic typesetting this can occur literally dozens of times a
page, so I need something visible/convenient analogous to tilda/~ (which
-- I am ashamed to say -- I still use in mkiv)
2) I can't currently "see" "202F in my editor (notepad++) and the current
syntax-highlighting features don't display it automatically.
(Eventually I have to port the ConTeXt support package for Npp to a
lexer/plugin where I can define these things explicitly, but first I need
someone who knows that lexer stuff to help...)
Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Non-breaking spaces
2013-04-17 7:08 "H. Özoguz"
2013-04-17 13:16 ` Hans Hagen
@ 2013-04-17 14:34 ` Idris Samawi Hamid ادريس سماوي حامد
1 sibling, 0 replies; 11+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2013-04-17 14:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
On Wed, 17 Apr 2013 01:08:30 -0600, H. Özoguz <h.oezoguz@mmnetz.de> wrote:
> How to make it non-breaking?
See also my reply to Hans, basically you need a
\penalty10000
(See TeXBook, page 353, 110)
Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-04-18 6:21 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-18 6:21 Non-breaking spaces "H. Özoguz"
-- strict thread matches above, loose matches on Subject: below --
2013-04-17 7:08 "H. Özoguz"
2013-04-17 13:16 ` Hans Hagen
2013-04-17 13:30 ` Idris Samawi Hamid ادريس سماوي حامد
2013-04-17 13:56 ` Hans Hagen
2013-04-17 14:30 ` Idris Samawi Hamid ادريس سماوي حامد
2013-04-17 14:51 ` Hans Hagen
2013-04-17 15:28 ` Idris Samawi Hamid ادريس سماوي حامد
2013-04-17 15:35 ` Hans Hagen
2013-04-17 20:26 ` Idris Samawi Hamid ادريس سماوي حامد
2013-04-17 14:34 ` Idris Samawi Hamid ادريس سماوي حامد
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).