ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* --|--- not transformed to endash|emdash
@ 2018-10-23 16:36 Tomas Hala
  2018-10-23 17:08 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Hala @ 2018-10-23 16:36 UTC (permalink / raw)
  To: Mailing list ConTeXt

Hi all,

usually, if one writes -- or ---, will receive real en-dash or em-dash,
respectively. I just tried font called JohnBaskerville 
(commercial; from Štorm type foundry, CZ) but I got only '--' and '---',
ie. sequences were not transformed to the proper characters.

Dashes are present in then font, commands \endash and \emdash produce them correctly.

What could be wrong?

Best wishes,

Tomáš 

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

* Re: --|--- not transformed to endash|emdash
  2018-10-23 16:36 --|--- not transformed to endash|emdash Tomas Hala
@ 2018-10-23 17:08 ` Hans Hagen
  2018-10-24 17:24   ` Tomas Hala
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2018-10-23 17:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Tomas Hala

On 10/23/2018 6:36 PM, Tomas Hala wrote:
> Hi all,
> 
> usually, if one writes -- or ---, will receive real en-dash or em-dash,
> respectively. I just tried font called JohnBaskerville
> (commercial; from Štorm type foundry, CZ) but I got only '--' and '---',
> ie. sequences were not transformed to the proper characters.
> 
> Dashes are present in then font, commands \endash and \emdash produce them correctly.
> 
> What could be wrong?

no features enabled?

-----------------------------------------------------------------
                                           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] 4+ messages in thread

* Re: --|--- not transformed to endash|emdash
  2018-10-23 17:08 ` Hans Hagen
@ 2018-10-24 17:24   ` Tomas Hala
  2018-10-24 19:44     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Hala @ 2018-10-24 17:24 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Hi Hans, 

you are right, tlig is the missing one. Thank you for directing me.

Does it mean that all features are disabled when the new "non-TeX" font is joined? 
(I used \starttypescript with \definefontsynonym; then \definetypeface and \setupbodyfont.)

Later I discovered [features=default] (at \definefontsynonym) which enables it, too.
Which features are enabled by this word default?

Side effect of my experimets was the syntantic error  "! Missing \endcsname inserted"
at \definefontsynonym [Serif][name:JohnBaskerville][] with empty last brackets.
Is it ok, or not?

Best wishes,

Tomáš

Tue, Oct 23, 2018 ve 07:08:44PM +0200 Hans Hagen napsal(a):
# On 10/23/2018 6:36 PM, Tomas Hala wrote:
# >Hi all,
# >
# >usually, if one writes -- or ---, will receive real en-dash or em-dash,
# >respectively. I just tried font called JohnBaskerville
# >(commercial; from Štorm type foundry, CZ) but I got only '--' and '---',
# >ie. sequences were not transformed to the proper characters.
# >
# >Dashes are present in then font, commands \endash and \emdash produce them correctly.
# >
# >What could be wrong?
# 
# no features enabled?
# 
# -----------------------------------------------------------------
#                                           Hans Hagen | PRAGMA ADE
#               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
#        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
# -----------------------------------------------------------------

                                         Tomáš Hála
--------------------------------------------------------------------
Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28
--------------------------------------------------------------------
http://akela.mendelu.cz/~thala
___________________________________________________________________________________
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] 4+ messages in thread

* Re: --|--- not transformed to endash|emdash
  2018-10-24 17:24   ` Tomas Hala
@ 2018-10-24 19:44     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2018-10-24 19:44 UTC (permalink / raw)
  To: Tomas Hala; +Cc: mailing list for ConTeXt users

On 10/24/2018 7:24 PM, Tomas Hala wrote:
> Hi Hans,
> 
> you are right, tlig is the missing one. Thank you for directing me.
> 
> Does it mean that all features are disabled when the new "non-TeX" font is joined?
> (I used \starttypescript with \definefontsynonym; then \definetypeface and \setupbodyfont.)

features are bound to a font instance

> Later I discovered [features=default] (at \definefontsynonym) which enables it, too.
> Which features are enabled by this word default?

\usemodule[fonts-features]

\starttext

\showfeatureset[name=default]

\stoptext

> Side effect of my experimets was the syntantic error  "! Missing \endcsname inserted"
> at \definefontsynonym [Serif][name:JohnBaskerville][] with empty last brackets.
> Is it ok, or not?

well, the empty argument is not ok


> Best wishes,
> 
> Tomáš
> 
> Tue, Oct 23, 2018 ve 07:08:44PM +0200 Hans Hagen napsal(a):
> # On 10/23/2018 6:36 PM, Tomas Hala wrote:
> # >Hi all,
> # >
> # >usually, if one writes -- or ---, will receive real en-dash or em-dash,
> # >respectively. I just tried font called JohnBaskerville
> # >(commercial; from Štorm type foundry, CZ) but I got only '--' and '---',
> # >ie. sequences were not transformed to the proper characters.
> # >
> # >Dashes are present in then font, commands \endash and \emdash produce them correctly.
> # >
> # >What could be wrong?
> #
> # no features enabled?
> #
> # -----------------------------------------------------------------
> #                                           Hans Hagen | PRAGMA ADE
> #               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> #        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> # -----------------------------------------------------------------
> 
>                                           Tomáš Hála
> --------------------------------------------------------------------
> Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
> Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28
> --------------------------------------------------------------------
> http://akela.mendelu.cz/~thala
> 


-- 

-----------------------------------------------------------------
                                           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] 4+ messages in thread

end of thread, other threads:[~2018-10-24 19:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-23 16:36 --|--- not transformed to endash|emdash Tomas Hala
2018-10-23 17:08 ` Hans Hagen
2018-10-24 17:24   ` Tomas Hala
2018-10-24 19:44     ` 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).