ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setcharacterspacing[frenchpunctuation] in mkiv
@ 2010-06-22 16:02 Otared Kavian
  2010-06-22 17:18 ` Peter Münster
  0 siblings, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2010-06-22 16:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans, and all gurus,

I noticed that the mkiv command
\setcharacterspacing[frenchpunctuation] 
influences even the \type environment: is this behavior wanted or is it a side effect?
Have a look at the following example in which \type{http://wiki.contextgarden.net} results in a space between « http » and « :// » as if the \type command were ignored regarding spacing.

Best regards: OK
%%% french-punctuation.tex
\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]

\setupinteraction
  [state=start,color=darkgreen]

\useURL
	[wiki]
	[http://wiki.contextgarden.net/]
	[]
	[{\tt http://wiki.contextgarden.net/}]

\starttext
Here we are following the French rule of typesetting semicolumn: did you see?

However this rule should not be followed in \type{\type}\dots

\from[wiki]
\blank

\useURL{\type{http://wiki.contextgarden.net/Main_Page}}

\blank
\starttyping
http://wiki.contextgarden.net/Main_Page
\stoptyping

\blank
since otherwise the interaction in the latter example is broken. Indeed there should not be a space 
between \type{http} and \type{://}.
\stoptext
___________________________________________________________________________________
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] 4+ messages in thread

* Re: \setcharacterspacing[frenchpunctuation] in mkiv
  2010-06-22 16:02 \setcharacterspacing[frenchpunctuation] in mkiv Otared Kavian
@ 2010-06-22 17:18 ` Peter Münster
  2010-06-22 18:48   ` Otared Kavian
  2010-06-23  7:58   ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Münster @ 2010-06-22 17:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jun 22 2010, Otared Kavian wrote:

> I noticed that the mkiv command
> \setcharacterspacing[frenchpunctuation] 
> influences even the \type environment: is this behavior wanted or is it a
> side effect?

Hello,

I don't know, but I have these line in most of my environments:

\setuptype[style={\setcharacterspacing[reset]\tt}]
\setuptyping[style={\setcharacterspacing[reset]\tt}]
\setupinteraction[style={\setcharacterspacing[reset]\tt}]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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

* Re: \setcharacterspacing[frenchpunctuation] in mkiv
  2010-06-22 17:18 ` Peter Münster
@ 2010-06-22 18:48   ` Otared Kavian
  2010-06-23  7:58   ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Otared Kavian @ 2010-06-22 18:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Peter,

Many thanks for your hint: indeed you had the solution!

Best regards: OK

On 22 juin 2010, at 19:18, Peter Münster wrote:
> 
> Hello,
> 
> I don't know, but I have these line in most of my environments:
> 
> \setuptype[style={\setcharacterspacing[reset]\tt}]
> \setuptyping[style={\setcharacterspacing[reset]\tt}]
> \setupinteraction[style={\setcharacterspacing[reset]\tt}]
> 
> Cheers, Peter
___________________________________________________________________________________
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] 4+ messages in thread

* Re: \setcharacterspacing[frenchpunctuation] in mkiv
  2010-06-22 17:18 ` Peter Münster
  2010-06-22 18:48   ` Otared Kavian
@ 2010-06-23  7:58   ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-06-23  7:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 22-6-2010 7:18, Peter Münster wrote:
> On Tue, Jun 22 2010, Otared Kavian wrote:
>
>> I noticed that the mkiv command
>> \setcharacterspacing[frenchpunctuation]
>> influences even the \type environment: is this behavior wanted or is it a
>> side effect?
>
> Hello,
>
> I don't know, but I have these line in most of my environments:
>
> \setuptype[style={\setcharacterspacing[reset]\tt}]
> \setuptyping[style={\setcharacterspacing[reset]\tt}]
> \setupinteraction[style={\setcharacterspacing[reset]\tt}]

\appendtoks
    \setcharacterspacing[reset]%
\to \everyinitializeverbatim

but maybe all such features should be enabled in verbatim i.e. maybe we 
need something \everyforgettypesetting or so


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

end of thread, other threads:[~2010-06-23  7:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-22 16:02 \setcharacterspacing[frenchpunctuation] in mkiv Otared Kavian
2010-06-22 17:18 ` Peter Münster
2010-06-22 18:48   ` Otared Kavian
2010-06-23  7:58   ` 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).