From: Rik <rik@panix.com>
To: ntg-context@ntg.nl
Subject: Re: Obtaining features from EBGaramond font in ConTeXt
Date: Fri, 23 Oct 2015 17:33:59 -0400 [thread overview]
Message-ID: <562AA7C7.5090002@panix.com> (raw)
In-Reply-To: <b7543424390e41b4961077447b2caf98@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1703 bytes --]
On 2015-10-23 16:47, josephcanedo@gmail.com wrote:
> At the moment, I use “\,” between word and question marks. Also “~”
> between word and “:”. I guess the \definecharacterspacing is more
> flexible and transparent from text input point of view (only write
> normal space). IIRC both \, and ~ also avoids line breaking at their
> location. Is there a way to specify this too please ?
>
The characterspacing commands can take care of it. The following example
demonstrates this (I used the value 2 just to make it clear what is
happening). It appears that alternative=1 inhibits breaks, while
alternative=0 (or leaving alternative= out completely) allows breaks. I
have not seen documentation; what I know about it comes from tests like
the example below.
\definecharacterspacing[test]
\setupcharacterspacing[test]["003A][left=2,alternative=1] % :
\setupcharacterspacing[test]["003B][left=2,alternative=0] % ;
\setupcharacterspacing[test]["00BF][right=2,alternative=0] % ¿
\starttext
\hsize4cm
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:\par
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx :\par
¿xxxxxxxxxxxxxxxxxxxxxxxxxxxxx;\par
¿ xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;\par
\setcharacterspacing[test]
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:\par
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx :\par
¿xxxxxxxxxxxxxxxxxxxxxxxxxxxxx;\par
¿ xxxxxxxxxxxxxxxxxxxxxxxxxxxxx ;\par
\stoptext
(Many ConTeXt commands have a \defineABC[somename] and a
\setupABC[somename][options=…]. This can often, as is the case with
characterspacing, be shortened into one command,
\defineABC[somename][options=…], but I think not always.)
--
Rik
[-- Attachment #1.2: Type: text/html, Size: 3566 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
___________________________________________________________________________________
prev parent reply other threads:[~2015-10-23 21:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 7:44 josephcanedo
2015-10-23 14:23 ` Rik Kabel
2015-10-23 19:19 ` josephcanedo
2015-10-23 19:49 ` Rik Kabel
2015-10-23 20:47 ` josephcanedo
2015-10-23 21:33 ` Rik [this message]
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=562AA7C7.5090002@panix.com \
--to=rik@panix.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).