ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Two hyphens do not replaced on em—dash when dejavu,14pt
@ 2017-03-31  8:46 Kostirya
  2017-03-31  9:13 ` Kostirya
  2017-03-31  9:52 ` Marco Patzer
  0 siblings, 2 replies; 6+ messages in thread
From: Kostirya @ 2017-03-31  8:46 UTC (permalink / raw)
  To: ntg-context

Hello.
Two hyphens do not replaced on em—dash when dejavu,14pt
:-(



\starttext
1-2 11--22

\switchtobodyfont[dejavu,14pt]
1-2 11--22

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Two hyphens do not replaced on em—dash when dejavu,14pt
  2017-03-31  8:46 Two hyphens do not replaced on em—dash when dejavu,14pt Kostirya
@ 2017-03-31  9:13 ` Kostirya
  2017-03-31  9:17   ` Kostirya
  2017-03-31  9:52 ` Marco Patzer
  1 sibling, 1 reply; 6+ messages in thread
From: Kostirya @ 2017-03-31  9:13 UTC (permalink / raw)
  To: ntg-context

I apologize.
It is not hyphen symbol. It is unicode.
Everything is working!

2017-03-31 11:46 GMT+03:00 Kostirya <kostirya@gmail.com>:
> Hello.
> Two hyphens do not replaced on em—dash when dejavu,14pt
> :-(
>
>
>
> \starttext
> 1-2 11--22
>
> \switchtobodyfont[dejavu,14pt]
> 1-2 11--22
>
> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Two hyphens do not replaced on em—dash when dejavu,14pt
  2017-03-31  9:13 ` Kostirya
@ 2017-03-31  9:17   ` Kostirya
  0 siblings, 0 replies; 6+ messages in thread
From: Kostirya @ 2017-03-31  9:17 UTC (permalink / raw)
  To: ntg-context

No, It is not worked.
I mistakenly used a Unicode character in another test.

2017-03-31 12:13 GMT+03:00 Kostirya <kostirya@gmail.com>:
> I apologize.
> It is not hyphen symbol. It is unicode.
> Everything is working!
>
> 2017-03-31 11:46 GMT+03:00 Kostirya <kostirya@gmail.com>:
>> Hello.
>> Two hyphens do not replaced on em—dash when dejavu,14pt
>> :-(
>>
>>
>>
>> \starttext
>> 1-2 11--22
>>
>> \switchtobodyfont[dejavu,14pt]
>> 1-2 11--22
>>
>> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Two hyphens do not replaced on em—dash when dejavu,14pt
  2017-03-31  8:46 Two hyphens do not replaced on em—dash when dejavu,14pt Kostirya
  2017-03-31  9:13 ` Kostirya
@ 2017-03-31  9:52 ` Marco Patzer
  2017-03-31 11:48   ` Kostirya
  2017-03-31 12:21   ` Hans Hagen
  1 sibling, 2 replies; 6+ messages in thread
From: Marco Patzer @ 2017-03-31  9:52 UTC (permalink / raw)
  To: ntg-context

On Fri, 31 Mar 2017 11:46:00 +0300
Kostirya <kostirya@gmail.com> wrote:

> Two hyphens do not replaced on em—dash when dejavu,14pt

Use the tlig font feature

  \definefontfeature
    [tlig]
    [default]
    [tlig=yes]

Marco
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Two hyphens do not replaced on em—dash when dejavu,14pt
  2017-03-31  9:52 ` Marco Patzer
@ 2017-03-31 11:48   ` Kostirya
  2017-03-31 12:21   ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Kostirya @ 2017-03-31 11:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

It did not help.
But why it is this the case, only for 14pt?
When font size is 10pt, 12pt or 16, then it is all right.


P.S.
I also found error at switchtobodyfont with dejavu font.
In the below example, switchtobodyfont not correctly  worked.

This is only observed when I switch from 16pt to 14pt.
Switching must be  across a different font.

\setupbodyfont[dejavu,16pt]
\starttext
\showbodyfont \blank

\switchtobodyfont[gentium]

\switchtobodyfont[dejavu,14pt]
\showbodyfont
\stoptext

2017-03-31 12:52 GMT+03:00 Marco Patzer <lists@homerow.info>:
> On Fri, 31 Mar 2017 11:46:00 +0300
> Kostirya <kostirya@gmail.com> wrote:
>
>> Two hyphens do not replaced on em—dash when dejavu,14pt
>
> Use the tlig font feature
>
>   \definefontfeature
>     [tlig]
>     [default]
>     [tlig=yes]
>
> Marco
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Two hyphens do not replaced on em—dash when dejavu,14pt
  2017-03-31  9:52 ` Marco Patzer
  2017-03-31 11:48   ` Kostirya
@ 2017-03-31 12:21   ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2017-03-31 12:21 UTC (permalink / raw)
  To: ntg-context

On 3/31/2017 11:52 AM, Marco Patzer wrote:
> On Fri, 31 Mar 2017 11:46:00 +0300
> Kostirya <kostirya@gmail.com> wrote:
>
>> Two hyphens do not replaced on em—dash when dejavu,14pt
>
> Use the tlig font feature
>
>   \definefontfeature
>     [tlig]
>     [default]
>     [tlig=yes]

\definefontfeature
     [default]
     [default]
     [tlig=yes]



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-03-31 12:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-31  8:46 Two hyphens do not replaced on em—dash when dejavu,14pt Kostirya
2017-03-31  9:13 ` Kostirya
2017-03-31  9:17   ` Kostirya
2017-03-31  9:52 ` Marco Patzer
2017-03-31 11:48   ` Kostirya
2017-03-31 12:21   ` Hans Hagen

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