[NTG-context] Automatic space before question mark

2013-09-06 Thread H. Özoguz
I want to set before all question marks of a large document one 
\narrownobreakspace.


How to do this, if not in the source? Is there a possibility to exchange 
all ? by the effect of \narrownobreakspace ? with one small command? 
(Without changing the source, that is not to search-exchange all ? 
with \narrownobreakspace ?.


Thanks.
___
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
___


Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread Marco Patzer
On 2013–09–06 H. Özoguz wrote:

 I want to set before all question marks of a large document one
 \narrownobreakspace.

Set up the character spacing for the question mark. No changes to
the markup required.

\definecharacterspacing
  [MySpacing]

\setupcharacterspacing
  [MySpacing]
  [\number`?]
  [left=.2]

\setcharacterspacing
  [MySpacing]

\starttext
  What? And why?
\stoptext

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread Wolfgang Schuster

Am 06.09.2013 um 12:55 schrieb H. Özoguz h.oezo...@mmnetz.de:

 I want to set before all question marks of a large document one 
 \narrownobreakspace.
 
 How to do this, if not in the source? Is there a possibility to exchange all 
 ? by the effect of \narrownobreakspace ? with one small command? (Without 
 changing the source, that is not to search-exchange all ? with 
 \narrownobreakspace ?.


\definecharacterspacing [test]

\setupcharacterspacing [test] [003F] [left=.1,alternative=1]

\starttext

Question mark?

\setcharacterspacing[test]

Question mark?

\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
___


Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread H. Özoguz
Thanks Marco and Wolfgang! Always impressed about the possibilities of 
ConTeXt and this mailing list.


By testing this, naturally another related questions come up. E.g. this 
one: How to define before ? and ! a 0.1 leftspace, but before the 
combination ?! only ONE 0.1 leftdistance - and not such a distance 
before the ! for this case? So I want:


Only ?!, instead of Only ? ! (here in this mailer shown with normal 
spaces)


Is that possible, too? Or if not, it would be enough to set simply no 
space infront of the combination. I guess, one has to programm something 
for this question?


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
___


Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread Marco Patzer
On 2013–09–06 H. Özoguz wrote:

 Thanks Marco and Wolfgang!

You should thank Hans for implementing all these features.

 How to define before ? and ! a 0.1 leftspace, but before the
 combination ?! only ONE 0.1 leftdistance - and not such a distance
 before the ! for this case?

The simplest solution would be to use “⁈” instead of “?!”.

\setupbodyfont
  [dejavu]

\definecharacterspacing
  [MySpacing]

\setupcharacterspacing
  [MySpacing]
  [\number`!]
  [left=.2]

\setupcharacterspacing
  [MySpacing]
  [\number`?]
  [left=.2]

\setcharacterspacing
  [MySpacing]

\starttext
  What? And why? Really⁈
\stoptext

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] Automatic space before question mark

2013-09-06 Thread Hans Hagen

On 9/6/2013 6:20 PM, Marco Patzer wrote:

On 2013–09–06 H. Özoguz wrote:


Thanks Marco and Wolfgang!


You should thank Hans for implementing all these features.


How to define before ? and ! a 0.1 leftspace, but before the
combination ?! only ONE 0.1 leftdistance - and not such a distance
before the ! for this case?


The simplest solution would be to use “⁈” instead of “?!”.


i wonder how these things ended up in unicode



\setupbodyfont
   [dejavu]

\definecharacterspacing
   [MySpacing]

\setupcharacterspacing
   [MySpacing]
   [\number`!]
   [left=.2]

\setupcharacterspacing
   [MySpacing]
   [\number`?]
   [left=.2]

\setcharacterspacing
   [MySpacing]

\starttext
   What? And why? Really⁈
\stoptext

Marco



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




--

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