ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Automatic space before question mark
@ 2013-09-06 10:55 "H. Özoguz"
  2013-09-06 11:12 ` Marco Patzer
  2013-09-06 11:16 ` Wolfgang Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: "H. Özoguz" @ 2013-09-06 10:55 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Automatic space before question mark
  2013-09-06 10:55 Automatic space before question mark "H. Özoguz"
@ 2013-09-06 11:12 ` Marco Patzer
  2013-09-06 11:16 ` Wolfgang Schuster
  1 sibling, 0 replies; 6+ messages in thread
From: Marco Patzer @ 2013-09-06 11:12 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 427 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Automatic space before question mark
  2013-09-06 10:55 Automatic space before question mark "H. Özoguz"
  2013-09-06 11:12 ` Marco Patzer
@ 2013-09-06 11:16 ` Wolfgang Schuster
  1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2013-09-06 11:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 06.09.2013 um 12:55 schrieb H. Özoguz <h.oezoguz@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Automatic space before question mark
  2013-09-06 16:20 ` Marco Patzer
@ 2013-09-06 20:43   ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2013-09-06 20:43 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Automatic space before question mark
  2013-09-06 16:07 "H. Özoguz"
@ 2013-09-06 16:20 ` Marco Patzer
  2013-09-06 20:43   ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Patzer @ 2013-09-06 16:20 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 683 bytes --]

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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Automatic space before question mark
@ 2013-09-06 16:07 "H. Özoguz"
  2013-09-06 16:20 ` Marco Patzer
  0 siblings, 1 reply; 6+ messages in thread
From: "H. Özoguz" @ 2013-09-06 16:07 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-06 20:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-06 10:55 Automatic space before question mark "H. Özoguz"
2013-09-06 11:12 ` Marco Patzer
2013-09-06 11:16 ` Wolfgang Schuster
2013-09-06 16:07 "H. Özoguz"
2013-09-06 16:20 ` Marco Patzer
2013-09-06 20:43   ` Hans Hagen

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).