Hi guys, I missed some of the excitement of the last two weeks because I was away. I tested the latest versions of ConTeXt and luatex and have some problems: 1. Is there a simple switch to between luatex and pdftex? If I want to write typescripts with the new name: syntax, I'd like to have the old typsecripts as well to remain compatible. So: is there something like a simple switch \ifluatex? 2. I tested with a number of OpenType fonts from my Adobe Type Classics CD: ConTeXt Mkiv can address these fonts (which is wonderful), but it does not read the kerning information. I don't know whether this is because Adobe's kerning tables are so big (kerning appears to work with the TeXGyre fonts and Latin Modern) or because the Adobe fonts have these tables included in a somewhat different way. Will be back with lots of more question re. Greek soon! All best Thomas
2007/8/29, Thomas A. Schmitz
Hi guys,
I missed some of the excitement of the last two weeks because I was away. I tested the latest versions of ConTeXt and luatex and have some problems:
1. Is there a simple switch to between luatex and pdftex? If I want to write typescripts with the new name: syntax, I'd like to have the old typsecripts as well to remain compatible. So: is there something like a simple switch \ifluatex?
Hi Thomas, you can try group your pdfTeX typescripts in \beginOLDTEX ... \endOLDTEX and your LuaTeX typescripts in \beginLUATEX ... \endLUATEX groups, or you make two extra files--one for pdfTeX and one for LuaTeX--with the file type mkii and mkiv and load them in your typescript file with \loadmarkfile{type-...}.
2. I tested with a number of OpenType fonts from my Adobe Type Classics CD: ConTeXt Mkiv can address these fonts (which is wonderful), but it does not read the kerning information. I don't know whether this is because Adobe's kerning tables are so big (kerning appears to work with the TeXGyre fonts and Latin Modern) or because the Adobe fonts have these tables included in a somewhat different way.
Sorry, not my price class.
Will be back with lots of more question re. Greek soon!
All best
Thomas
Welcome back! Wolfgang
Thomas A. Schmitz wrote:
Hi guys,
I missed some of the excitement of the last two weeks because I was away. I tested the latest versions of ConTeXt and luatex and have some problems:
1. Is there a simple switch to between luatex and pdftex? If I want to write typescripts with the new name: syntax, I'd like to have the old typsecripts as well to remain compatible. So: is there something like a simple switch \ifluatex?
one option is to make two versions (name.mkii and name.mkiv) and then in the name.tex file say \loadmarkfile{name} which will choose the right variant then
2. I tested with a number of OpenType fonts from my Adobe Type Classics CD: ConTeXt Mkiv can address these fonts (which is wonderful), but it does not read the kerning information. I don't know whether this is because Adobe's kerning tables are so big (kerning appears to work with the TeXGyre fonts and Latin Modern) or because the Adobe fonts have these tables included in a somewhat different way.
depends on the way you define things ... maybe the kerning is language dependent? kern is a feature in base mode, we use tex's kerning and ligatures and can only have simple replacement, in node mode, mkiv does everything itself
Will be back with lots of more question re. Greek soon!
good Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Wolfgang, Hans, thanks a lot for your replies, that was extremely helpful. On Aug 29, 2007, at 1:52 PM, Hans Hagen wrote:
one option is to make two versions (name.mkii and name.mkiv) and then in the name.tex file say \loadmarkfile{name} which will choose the right variant then
Ah, so \loadmarkfile is the magic switch. I had the idea to use .mkii and .mkiv but couldn't figure out how to. Now that's very useful for all further experiments...
depends on the way you define things ... maybe the kerning is language dependent? kern is a feature
in base mode, we use tex's kerning and ligatures and can only have simple replacement, in node mode, mkiv does everything itself
Okay, I tried this minimal definition in my typescript: \definefontfeature [jens] [mode=node,kern=yes] \starttypescript [serif] [jenson] \definefontsynonym [Jenson-Roman] [name:AJensonPro- Regular] [features=jens] \stoptypescript \starttypescript [serif] [jenson] \definefontsynonym [Serif] [Jenson-Roman] [features=jens] \stoptypescript \starttypescript [Jenson] \definetypeface [Jenson] [rm] [serif] [jenson] [default] \stoptypescript But still no joy: I don't get any kerning. Tried with all sorts of settings for script= and language=, but to no avail. Thomas
Thomas A. Schmitz wrote:
But still no joy: I don't get any kerning. Tried with all sorts of settings for script= and language=, but to no avail.
there is indeed aproblem with kerning, depends on the kind of lookup (only the real complex contextual ones work); i'll fix it Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hans Hagen wrote:
Thomas A. Schmitz wrote:
But still no joy: I don't get any kerning. Tried with all sorts of settings for script= and language=, but to no avail.
there is indeed aproblem with kerning, depends on the kind of lookup (only the real complex contextual ones work); i'll fix it
i'm preparing a new upload that should fix it ... \starttext \setupcolors[state=start] \definefontfeature [default-base] [script=dftl,language=dflt,liga=yes,kern=yes,tlig=yes,trep=yes] \definefontfeature [default-node] [script=dftl,language=dflt,liga=yes,kern=yes,tlig=yes,trep=yes,mode=node] \definefontfeature [default-none] [script=dftl,language=dflt,liga=yes,kern=no, tlig=yes,trep=yes] \startoverlay {\vtop{\color[red] {\font\test=name:lmroman12regular*default-node \test \input ward \input zapf \input linden }}} {\vtop{\color[green]{\font\test=name:lmroman12regular*default-base \test \input ward \input zapf \input linden }}} {\vtop{\color[blue] {\font\test=name:lmroman12regular*default-none \test \input ward \input zapf \input linden }}} \stopoverlay \blank \startoverlay {\vtop{\color[red] {\font\test=name:texgyrepagella*default-node \test \input ward \input zapf \input linden }}} {\vtop{\color[green]{\font\test=name:texgyrepagella*default-base \test \input ward \input zapf \input linden }}} {\vtop{\color[blue] {\font\test=name:texgyrepagella*default-none \test \input ward \input zapf \input linden }}} \stopoverlay \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On Aug 29, 2007, at 7:21 PM, Hans Hagen wrote:
i'm preparing a new upload that should fix it ...
Very nice sample file... But the 19:22 version doesn't fix it for the Adobe fonts. Kerning has worked for me with the TeXGyre and LM fonts. Thanks for looking into it, Hans! Best Thomas
Thomas A. Schmitz wrote:
On Aug 29, 2007, at 7:21 PM, Hans Hagen wrote:
i'm preparing a new upload that should fix it ...
Very nice sample file... But the 19:22 version doesn't fix it for the Adobe fonts. Kerning has worked for me with the TeXGyre and LM fonts.
that was base kerning -) what font? i need to look into the font in order to see what is the problem i'll send you a file showing that at least my fonts work -) ----------------------------------------------------------------- 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 -----------------------------------------------------------------
2007/8/29, Hans Hagen
Thomas A. Schmitz wrote:
Hi guys,
I missed some of the excitement of the last two weeks because I was away. I tested the latest versions of ConTeXt and luatex and have some problems:
1. Is there a simple switch to between luatex and pdftex? If I want to write typescripts with the new name: syntax, I'd like to have the old typsecripts as well to remain compatible. So: is there something like a simple switch \ifluatex?
Hi Hans, can't this be integrated in \usetypescriptfile to look at first for a file with the extensions mkii, mkiii or mkiv and if there is no file use a tex file as fallback. Wolfgang
one option is to make two versions (name.mkii and name.mkiv) and then in the name.tex file say \loadmarkfile{name} which will choose the right variant then
2. I tested with a number of OpenType fonts from my Adobe Type Classics CD: ConTeXt Mkiv can address these fonts (which is wonderful), but it does not read the kerning information. I don't know whether this is because Adobe's kerning tables are so big (kerning appears to work with the TeXGyre fonts and Latin Modern) or because the Adobe fonts have these tables included in a somewhat different way.
depends on the way you define things ... maybe the kerning is language dependent? kern is a feature
in base mode, we use tex's kerning and ligatures and can only have simple replacement, in node mode, mkiv does everything itself
Will be back with lots of more question re. Greek soon!
good
Hans
----------------------------------------------------------------- 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 ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Thomas A. Schmitz
-
Wolfgang Schuster