ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* -, -- and --- in Context
@ 2007-11-15  2:59 Maurí­cio
  2007-11-15  3:23 ` Mojca Miklavec
  0 siblings, 1 reply; 2+ messages in thread
From: Maurí­cio @ 2007-11-15  2:59 UTC (permalink / raw)
  To: ntg-context

Hi,

TeX fonts have the known convention
for -, -- and ---. How would be the
proper way to get those characters
in Context? Should I use Unicode
characters? I know that, at least in
my instalation, -- and --- work as
in TeX, but I would like to know if
Context has a different standard way
to do that.

Thanks,
Maurício

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: -, -- and --- in Context
  2007-11-15  2:59 -, -- and --- in Context Maurí­cio
@ 2007-11-15  3:23 ` Mojca Miklavec
  0 siblings, 0 replies; 2+ messages in thread
From: Mojca Miklavec @ 2007-11-15  3:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/15/07, Maurí­cio wrote:
> Hi,
>
> TeX fonts have the known convention
> for -, -- and ---. How would be the
> proper way to get those characters
> in Context? Should I use Unicode
> characters? I know that, at least in
> my instalation, -- and --- work as
> in TeX, but I would like to know if
> Context has a different standard way
> to do that.
>
> Thanks,
> Maurício

Hello,

ConTeXt works in the same way as standard/plain TeX. With the "old"
TeX engine(s) (=pdfTeX) that should always work. If you use XeTeX or
LuaTeX as an engine with OpenType fonts, --/--- won't be converted to
endash/emdash automatically, but both engines support using that
shortcut if you ask them to do so (they artificially add a new
ligatire to the font).

So, if you're working with XeTeX and want to use --/---, you need to
explicitely say "mapping=tex-text" when loading a new font, else you
will get two/three dashes.
If you use typescripts, [feature=defaults] will do that for you.

I would say: if you find it easy to input endash & emdash directly, do
that (that's what people on the XeTeX mailing list often recommend).
But you can still use --/--- anytime you want.

Mojca
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-11-15  3:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-15  2:59 -, -- and --- in Context Maurí­cio
2007-11-15  3:23 ` Mojca Miklavec

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