ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: \setcharacterspacing[frenchpunctuation] in mkiv
Date: Tue, 22 Jun 2010 18:02:01 +0200	[thread overview]
Message-ID: <A73AF568-EA6E-484E-BD53-5992FEE21B85@gmail.com> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2010-06-22 16:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-22 16:02 Otared Kavian [this message]
2010-06-22 17:18 ` Peter Münster
2010-06-22 18:48   ` Otared Kavian
2010-06-23  7:58   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A73AF568-EA6E-484E-BD53-5992FEE21B85@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).