Does a "half-space" or small space exist in ConTeXt?
Hi all, I would like to use something like a "half-space" or small space in a situation where neither no space, nor a normal space is ideal. See the ME: --------------------------------- \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] \starttext On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the octave {\em \lohi{A}{a} . \medskip On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to the octave {\em \lohi{A}{a}} . \stoptext -------------------------------- Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too close to the B, (and the period too close to the A), suggesting some superscript. A normal space does not look nice (but if necessary I could live with it) Is there an intermediate size for a space somehow? Thanks in advance. Bets regards, Robert Blackstone
Am 08.03.2015 um 12:24 schrieb Robert Blackstone
: Hi all,
I would like to use something like a "half-space" or small space in a situation where neither no space, nor a normal space is ideal. See the ME: --------------------------------- \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] \starttext On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the octave {\em \lohi{A}{a} . \medskip On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to the octave {\em \lohi{A}{a}} . \stoptext --------------------------------
Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too close to the B, (and the period too close to the A), suggesting some superscript. A normal space does not look nice (but if necessary I could live with it)
Is there an intermediate size for a space somehow?
You can use \thinspace or \, which is the short form of \thinspace. BTW. The context version of \medskip is \blank[medium]. Wolfgang
You can use \thinspace or \, which is the short form of \thinspace.
But \thinspace aka \, is a non-breaking space, isn’t it? Is there a way to let it break a line if needed in certain circumstances or is there something else like a “non-non-breaking thinspace”? Greetings Jörg On 08.03.2015 12:35, Wolfgang Schuster wrote:
Am 08.03.2015 um 12:24 schrieb Robert Blackstone
: Hi all,
I would like to use something like a "half-space" or small space in a situation where neither no space, nor a normal space is ideal. See the ME: --------------------------------- \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] \starttext On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the octave {\em \lohi{A}{a} . \medskip On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to the octave {\em \lohi{A}{a}} . \stoptext --------------------------------
Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too close to the B, (and the period too close to the A), suggesting some superscript. A normal space does not look nice (but if necessary I could live with it)
Is there an intermediate size for a space somehow?
You can use \thinspace or \, which is the short form of \thinspace.
BTW. The context version of \medskip is \blank[medium].
Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Am 08.03.2015 um 13:45 schrieb Jörg Weger
: You can use \thinspace or \, which is the short form of \thinspace.
But \thinspace aka \, is a non-breaking space, isn’t it?
Is there a way to let it break a line if needed in certain circumstances or is there something else like a “non-non-breaking thinspace”?
Are these enough? \starttext %\hsize\zeropoint \startlines a\enskip b a\quad b a\qquad b a\twoperemspace b a\threeperemspace b a\fourperemspace b a\sixperemspace b a\figurespace b a\punctuationspace b a\breakablethinspace b a\hairspace b a\zerowidthspace b \stoplines \stoptext Wolfgang
Thank you very much for that list. Greetings Jörg On 08.03.2015 13:58, Wolfgang Schuster wrote:
Am 08.03.2015 um 13:45 schrieb Jörg Weger
: You can use \thinspace or \, which is the short form of \thinspace.
But \thinspace aka \, is a non-breaking space, isn’t it?
Is there a way to let it break a line if needed in certain circumstances or is there something else like a “non-non-breaking thinspace”?
Are these enough?
\starttext %\hsize\zeropoint \startlines a\enskip b a\quad b a\qquad b a\twoperemspace b a\threeperemspace b a\fourperemspace b a\sixperemspace b a\figurespace b a\punctuationspace b a\breakablethinspace b a\hairspace b a\zerowidthspace b \stoplines \stoptext
Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________
On 03/08/2015 01:45 PM, Jörg Weger wrote:
You can use \thinspace or \, which is the short form of \thinspace.
But \thinspace aka \, is a non-breaking space, isn’t it?
Hi Jörg, I didn’t know, but it seems to be.
Is there a way to let it break a line if needed in certain circumstances or is there something else like a “non-non-breaking thinspace”?
Well, I would call it a ”breaking thinspace”. Adding \hskp0pt enables the breaking. \starttext \hsize\zeropoint a\,b a\,\hskip0pt{}b \stoptext I hope it might help, Pablo -- http://www.ousia.tk
Hi Robert,
All the suggestions you have received are good, but ultimately you might
want to look at the spaces that Unicode provides, for example 202F. Not
sure sure which Unicode space character best suits your needs, but once
you have determined that, you can map it to one of the commands suggested
by others, or even define it to the exact width you want. For example, I
use imacron (U+012B) so much that it clashes with other characters. So I
map it to an alternate version that has a thinner macron:
\defineactivecharacter ī {\fontchar{imacron.alt}}
So what you want is a unicode space character that you can enter in your
editor, then define it in ConTeXt to exactly what you want.
Best wishes
Idris
On Sun, 08 Mar 2015 05:24:51 -0600, Robert Blackstone
Hi all,
I would like to use something like a "half-space" or small space in a situation where neither no space, nor a normal space is ideal. See the ME: --------------------------------- \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] \starttext On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the octave {\em \lohi{A}{a} . \medskip On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to the octave {\em \lohi{A}{a}} . \stoptext --------------------------------
Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too close to the B, (and the period too close to the A), suggesting some superscript. A normal space does not look nice (but if necessary I could live with it)
Is there an intermediate size for a space somehow?
Thanks in advance.
Bets regards, Robert Blackstone ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523
On 3/8/2015 2:13 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
Hi Robert,
All the suggestions you have received are good, but ultimately you might want to look at the spaces that Unicode provides, for example 202F. Not sure sure which Unicode space character best suits your needs, but once you have determined that, you can map it to one of the commands suggested by others, or even define it to the exact width you want. For example, I use imacron (U+012B) so much that it clashes with other characters. So I map it to an alternate version that has a thinner macron:
\defineactivecharacter ī {\fontchar{imacron.alt}}
So what you want is a unicode space character that you can enter in your editor, then define it in ConTeXt to exactly what you want.
fyi: the list that Wolfgang shows with verbose space names ... these are in fact unicode characters. 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 -----------------------------------------------------------------
participants (6)
-
Hans Hagen
-
Idris Samawi Hamid ادريس سماوي ح امد
-
Jörg Weger
-
Pablo Rodriguez
-
Robert Blackstone
-
Wolfgang Schuster