Re: [NTG-context] Questions regarding simplefonts

2010-01-20 Thread Wolfgang Schuster

Am 20.01.10 08:58, schrieb Marius:

Hello all,

I add my questions regarding simplefonts to this thread too.
How to enable em dash and en dash? It looks like I need to set tlig to
yes, but with heading pasted below, the --- is not interpreted as em
dash.



\usemodule[simplefonts]
\setmainfont[Times New Roman][script=latin, texligatures=yes]

\setmainfont[Times New Roman][mode=node]

It's a problem with the font as you can see in this example:

\definefontfeature[default][default][mode=node] % mode=base works

\definefont[times][name:timesnewroman*default]


\starttext

\times text---text

\stoptext


\setsansfont[Arial Unicode MS]
\setmonofont[Courier New]

\setupbodyfont[10pt]

Can you use the module options to change the font size.

\usemodule[simplefonts][size=10pt]

or

\setupsimplefonts[size=10pt]

Wolfgang

___
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
___


Re: [NTG-context] Questions regarding simplefonts

2010-01-20 Thread Marius
On Wed, Jan 20, 2010 at 2:59 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

  Am 20.01.10 08:58, schrieb Marius:

 Hello all,

 I add my questions regarding simplefonts to this thread too.
 How to enable em dash and en dash? It looks like I need to set tlig to
 yes, but with heading pasted below, the --- is not interpreted as em
 dash.


 
 \usemodule[simplefonts]
 \setmainfont[Times New Roman][script=latin, texligatures=yes]

  \setmainfont[Times New Roman][mode=node]

 It's a problem with the font as you can see in this example:

  \definefontfeature[default][default][mode=node] % mode=base works

 \definefont[times][name:timesnewroman*default]


  \starttext

 \times text---text

 \stoptext


I realy do not understand what these \definexxx commands mean, but  then I
set \setmainfont[Times New Roman][mode=base], I get em dash as expected,
thank you.

  \setsansfont[Arial Unicode MS]
 \setmonofont[Courier New]

 \setupbodyfont[10pt]

  Can you use the module options to change the font size.

 \usemodule[simplefonts][size=10pt]

 or

 \setupsimplefonts[size=10pt]


Why? It works as expected with \setupbodyfont[10pt] too.
___
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
___


Re: [NTG-context] Questions regarding simplefonts

2010-01-20 Thread Wolfgang Schuster

Am 20.01.10 14:52, schrieb Marius:
I realy do not understand what these \definexxx commands mean, but 
 then I set \setmainfont[Times New Roman][mode=base], I get em dash as 
expected, thank you.

http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf


Can you use the module options to change the font size.


Why? It works as expected with \setupbodyfont[10pt] too.

Because it's the simplefont method but \setupbodyfont should work too.

Wolfgang

___
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
___


Re: [NTG-context] Questions regarding simplefonts

2010-01-19 Thread Nicolas Girard
2010/1/19 Nicolas Girard nicolas.gir...@nerim.net:
 Hi again,

I forgot this one:

5) My log files contain this reassuring message:

(/home/ngirard/context/tex/texmf-context/tex/context/third/simplefonts/t-simplefonts.tex
loading : ConTeXt User Module / Simplefonts
)

immediatly followed with a puzzling one:

system  : module simplefonts not found


Should I ignore it ?

-- 
Nicolas
___
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
___


Re: [NTG-context] Questions regarding simplefonts

2010-01-19 Thread Wolfgang Schuster

Am 19.01.10 18:56, schrieb Nicolas Girard:

4) What is the purpose of the 'mode' keyword ?
it's the mode option from \definefontfeature, here is a explanation from 
Taco


http://www.ntg.nl/pipermail/ntg-context/2009/043782.html

Wolfgang

___
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
___


Re: [NTG-context] Questions regarding simplefonts

2010-01-19 Thread Wolfgang Schuster

Am 19.01.10 18:56, schrieb Nicolas Girard:

Hi again,
although simplefonts seems very promising and I put the highest hopes
on it, the lack of proper documentation simply prevents me to use it,
which is somewhat frustrating.

I try to provide a proper documentation when I release the next
version of my module.

Here are some of my unanswered questions about simplefonts ; I'm
willing to update the wiki with any informations this thread could
bring.

1) How can I specify that the default font features should enable the
standard ligatures (liga) ?
I blindly tried several possibilities like
\setupsimplefonts[features={liga}] but none worked
Ligatures are enabled in ConTeXt default fontfeature and simplefonts 
applies only
the default features to the font, when you don't get them in your 
document this could

be a font problem, in most cases it helps to select a different script.

\setupsimplefonts[script=latin]

or

\setmainfont[...][script=latin]

2) How can I get \sc to work with a font  family whose small caps are
defined as a font feature, rather than dedicated .otf files ?

The caps font is loaded by default by the smallcaps fontfeature,
if this did not work the problem could be the same as for the ligatures.

3) How can I get font expansion and protrusion to work using
simplefonts' dedicated keywords ? There again, I spent more than 30
minutes trying every combination I could think of, unsuccessfully.
I think it would be useful to have a complete example of code
involving simplefonts and expansion/protrusion that people could copy
  paste from the wiki


You can use the two keys expamsion ans protrusion, their values are
the same as you have e to write in \definefontfeature.

\setupsimplefonts[expansion=quality,protrusion=quality]


or


\setmainfont[...][expansion=quality,protrusion=quality]

Examples are available on bitbucket:
http://bitbucket.org/wolfs/simplefonts/src/tip/files/


Wolfgang

___
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
___


Re: [NTG-context] Questions regarding simplefonts

2010-01-19 Thread Marius
Hello all,

I add my questions regarding simplefonts to this thread too.
How to enable em dash and en dash? It looks like I need to set tlig to
yes, but with heading pasted below, the --- is not interpreted as em
dash.



\usemodule[simplefonts]
\setmainfont[Times New Roman][script=latin, texligatures=yes]
\setsansfont[Arial Unicode MS]
\setmonofont[Courier New]

\setupbodyfont[10pt]

\setuppapersize[C5][C5]
\setupindenting[yes, medium, next]

\starttext
text---text
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___