ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Turning off French character spacing
Date: Fri, 10 Apr 2015 12:18:45 +0200	[thread overview]
Message-ID: <CD8B9DA9-9F86-4380-B5A7-5CE186CAF264@gmail.com> (raw)
In-Reply-To: <55279f46.c14cb40a.53c8.ffffbe23@mx.google.com>


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


> Am 10.04.2015 um 11:51 schrieb <joasyannick@gmail.com> <joasyannick@gmail.com>:
> 
> Dear everyone,
> 
> I am writting a French document.
> I would like to turn off the French character spacing temporarily in order to
> typeset English document title or URL. For instance, I would like to define the commands
> 
> \def\englishtitle#1{\turnofffrenchcharacterspacing{\em #1}\turnonfrenchcharacterspacing}
> \def\url#1{\turnofffrenchcharacterspacing{\em #1}\turnonfrenchcharacterspacing}

You can use the \resetcharacterspacing command to disable the spacing.

\setcharacterspacing[frenchpunctuation]

\definestartstop
  [EnglishTitle]
  [commands=\resetcharacterspacing,
   style=italic]

\starttext

text: «text» \EnglishTitle{text: «text»}

\stoptext

> so that a title link “Example: English Title” will be italicised and will not have a space before “:”;
> and a URL like “http://www.example.com <http://www.example.com/>” neither.

The \url and \hyphenatedurl need to be fixed.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 3104 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
___________________________________________________________________________________

  reply	other threads:[~2015-04-10 10:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-10  9:51 joasyannick
2015-04-10 10:18 ` Wolfgang Schuster [this message]
2015-04-10 10:22 ` Otared Kavian
2015-04-10 10:31   ` Wolfgang Schuster
2015-04-10 10:49 ` Peter Münster
2015-04-10 13:39 joasyannick

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=CD8B9DA9-9F86-4380-B5A7-5CE186CAF264@gmail.com \
    --to=schuster.wolfgang@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).