ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* no en dash with otf fonts
@ 2008-11-14  5:04 Yi Zhang
  2008-11-14  7:22 ` luigi scarso
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Yi Zhang @ 2008-11-14  5:04 UTC (permalink / raw)
  To: ntg-context

Hi,

I'm using some otf fonts but '--' does not produce the en dash. How
can I get over this problem? Thanks,

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

* Re: no en dash with otf fonts
  2008-11-14  5:04 no en dash with otf fonts Yi Zhang
@ 2008-11-14  7:22 ` luigi scarso
  2008-11-14  8:28   ` Hans Hagen
  2008-11-14  7:23 ` Yanrui Li
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: luigi scarso @ 2008-11-14  7:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Fri, Nov 14, 2008 at 6:04 AM, Yi Zhang <yizhang84@gmail.com> wrote:

> Hi,
>
> I'm using some otf fonts but '--' does not produce the en dash. How
> can I get over this problem? Thanks,
>
>
what fonts ?

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 525 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: no en dash with otf fonts
  2008-11-14  5:04 no en dash with otf fonts Yi Zhang
  2008-11-14  7:22 ` luigi scarso
@ 2008-11-14  7:23 ` Yanrui Li
  2008-11-14  7:37   ` Marcin Borkowski
  2008-11-14  7:48 ` Lutz Haseloff
  2008-11-14 16:08 ` Aditya Mahajan
  3 siblings, 1 reply; 8+ messages in thread
From: Yanrui Li @ 2008-11-14  7:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/11/14 Yi Zhang <yizhang84@gmail.com>:
> Hi,
>
> I'm using some otf fonts but '--' does not produce the en dash. How
> can I get over this problem? Thanks,


Try to use `\emdash' instead of it.

-- 
Best wishes,
Li Yanrui
___________________________________________________________________________________
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] 8+ messages in thread

* Re: no en dash with otf fonts
  2008-11-14  7:23 ` Yanrui Li
@ 2008-11-14  7:37   ` Marcin Borkowski
  0 siblings, 0 replies; 8+ messages in thread
From: Marcin Borkowski @ 2008-11-14  7:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dnia Fri, Nov 14, 2008 at 03:23:36PM +0800, Yanrui Li napisa&#322;(a):
> 2008/11/14 Yi Zhang <yizhang84@gmail.com>:
> > Hi,
> >
> > I'm using some otf fonts but '--' does not produce the en dash. How
> > can I get over this problem? Thanks,
> 
> 
> Try to use `\emdash' instead of it.

Or "\endash".

> 
> -- 
> Best wishes,
> Li Yanrui

Greets

-- 
Marcin Borkowski (http://mbork.pl)

 _   _   _
/ \ / \ / \  OSTRE SŁOWA
\_/ \_/ \_/  OSTRA MUZYKA
/ \ / \ / \  OSTRA PŁYTA
\_/ \_/ \_/  2 Tm 2,3
___________________________________________________________________________________
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] 8+ messages in thread

* Re: no en dash with otf fonts
  2008-11-14  5:04 no en dash with otf fonts Yi Zhang
  2008-11-14  7:22 ` luigi scarso
  2008-11-14  7:23 ` Yanrui Li
@ 2008-11-14  7:48 ` Lutz Haseloff
  2008-11-14 16:08 ` Aditya Mahajan
  3 siblings, 0 replies; 8+ messages in thread
From: Lutz Haseloff @ 2008-11-14  7:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

nihao Yi,

you can enable all TeX ligatures as a fontfeature:
(minimat example)

\definefontfeature[lig][tlig=yes]
\font\nolig=Tallys at 12pt
\font\lig=Tallys*lig at 12pt
\starttext
\nolig - -- ---

\lig - -- ---
\stoptext

Greetings Lutz

2008/11/14 Yi Zhang <yizhang84@gmail.com>

> Hi,
>
> I'm using some otf fonts but '--' does not produce the en dash. How
> can I get over this problem? Thanks,
>
> --
> Yi
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 1636 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: no en dash with otf fonts
  2008-11-14  7:22 ` luigi scarso
@ 2008-11-14  8:28   ` Hans Hagen
  2008-11-14 16:10     ` Yi Zhang
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-11-14  8:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

luigi scarso wrote:
> 
> 
> On Fri, Nov 14, 2008 at 6:04 AM, Yi Zhang <yizhang84@gmail.com 
> <mailto:yizhang84@gmail.com>> wrote:
> 
>     Hi,
> 
>     I'm using some otf fonts but '--' does not produce the en dash. How
>     can I get over this problem? Thanks,
> 
> 
> what fonts ?

did you specify tlig=yes ?

(btw, there are fonts with multiple dashes and hyphens (multiple unicode 
points for the same glyph) and to some extend - + - with - being one or 
the other works ok)

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: no en dash with otf fonts
  2008-11-14  5:04 no en dash with otf fonts Yi Zhang
                   ` (2 preceding siblings ...)
  2008-11-14  7:48 ` Lutz Haseloff
@ 2008-11-14 16:08 ` Aditya Mahajan
  3 siblings, 0 replies; 8+ messages in thread
From: Aditya Mahajan @ 2008-11-14 16:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 14 Nov 2008, Yi Zhang wrote:

> Hi,
>
> I'm using some otf fonts but '--' does not produce the en dash. How
> can I get over this problem? Thanks,

Do you have feature=default in your typescripts?

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

* Re: no en dash with otf fonts
  2008-11-14  8:28   ` Hans Hagen
@ 2008-11-14 16:10     ` Yi Zhang
  0 siblings, 0 replies; 8+ messages in thread
From: Yi Zhang @ 2008-11-14 16:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Nov 14, 2008 at 3:28 AM, Hans Hagen <pragma@wxs.nl> wrote:
> luigi scarso wrote:
>>
>>
>> On Fri, Nov 14, 2008 at 6:04 AM, Yi Zhang <yizhang84@gmail.com
>> <mailto:yizhang84@gmail.com>> wrote:
>>
>>     Hi,
>>
>>     I'm using some otf fonts but '--' does not produce the en dash. How
>>     can I get over this problem? Thanks,
>>
>>
>> what fonts ?
>
> did you specify tlig=yes ?
>
> (btw, there are fonts with multiple dashes and hyphens (multiple unicode
> points for the same glyph) and to some extend - + - with - being one or
> the other works ok)
>

Hi all,

tlig works! Thanks so much for all the replies!

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

end of thread, other threads:[~2008-11-14 16:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-14  5:04 no en dash with otf fonts Yi Zhang
2008-11-14  7:22 ` luigi scarso
2008-11-14  8:28   ` Hans Hagen
2008-11-14 16:10     ` Yi Zhang
2008-11-14  7:23 ` Yanrui Li
2008-11-14  7:37   ` Marcin Borkowski
2008-11-14  7:48 ` Lutz Haseloff
2008-11-14 16:08 ` Aditya Mahajan

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