Some questions about TeX Gyre support in minimals
Hello Everyone! I've started to experiment with MkIV in ConTeXt minimals recently trying to make TeX Gyre fonts work with as few definitions as possible. Here is the list of problems I've encountered: 1. No small-caps in any font (gyre fonts doesn't have that yet?) 2. adventor have italic but slanted displays as normal (roman) 3. cursor have only roman script (no bold, slanted, etc.) Is this due to lack of fonts in Gyre package, some omissions in type-otf.tex or my typescript definitions are not complete? Here is the test file which I've used (some cyrillic text also): ------------------------ \starttypescript[mygyre] % change font last arg according to definitions in type-otf.tex % pagella, termes, bonum, schola \definetypeface [mygyre] [rm] [serif] [pagella] % heros, adventor \definetypeface [mygyre] [ss] [sans] [adventor] \definetypeface [mygyre] [tt] [sans] [cursor] \definetypeface [mygyre] [mm] [math] [palatino] \stoptypescript \startbuffer[tests] \starttabulate \NC \tf tf \NC \tf Нормальный текст \NC\AR \NC \bf bf \NC \bf Полужирный текст \NC\AR \NC \it it \NC \it Курсивный текст \NC\AR \NC \sl sl \NC \sl Наклонный текст \NC\AR \NC \bi bi \NC \bi Полужирный курсив \NC\AR \NC \bs bs \NC \bs Полужирынй наклонный \NC\AR \NC \sc sc \NC \sc Пробный текст \NC\AR \stoptabulate \stopbuffer \usetypescript[mygyre] \setupbodyfont[mygyre] \starttext \section{roman (rm)} {\rm \getbuffer[tests]} \section{sans-serif (ss)} {\ss \getbuffer[tests]} \section{teletype (tt)} {\tt \getbuffer[tests]} \stoptext ------------------------ I'll update Russian section in the wiki, once these points are clarified. -- Regards, Oleg Kolosov
On Thu, Oct 23, 2008 at 12:31 AM, Oleg Kolosov wrote:
Hello Everyone!
Hello,
I've started to experiment with MkIV in ConTeXt minimals recently trying to make TeX Gyre fonts work with as few definitions as possible. Here is the list of problems I've encountered:
1. No small-caps in any font (gyre fonts doesn't have that yet?)
I didn't check yet, but it's probably a global problem in mkiv smallcaps support.
2. adventor have italic but slanted displays as normal (roman)
in type-otf.tex at least this is missing: \starttypescript [sans] [adventor] % and possibly others \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Regular] [file:texgyre\typescriptprefix{f:\typescripttwo}-regular] [features=default] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Italic] [file:texgyre\typescriptprefix{f:\typescripttwo}-italic] [features=default] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Bold] [file:texgyre\typescriptprefix{f:\typescripttwo}-bold] [features=default] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldItalic] [file:texgyre\typescriptprefix{f:\typescripttwo}-bolditalic] [features=default] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Caps] [file:texgyre\typescriptprefix{f:\typescripttwo}-regular] [features=oldstyle] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-ItalicCaps] [file:texgyre\typescriptprefix{f:\typescripttwo}-italic] [features=oldstyle] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldCaps] [file:texgyre\typescriptprefix{f:\typescripttwo}-bold] [features=oldstyle] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps] [file:texgyre\typescriptprefix{f:\typescripttwo}-bolditalic] [features=oldstyle] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Slanted] [\typescriptprefix{n:\typescripttwo}-Italic] [features=default] \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldSlanted] [\typescriptprefix{n:\typescripttwo}-BoldItalic] [features=default] \stoptypescript The same is true for mono.
3. cursor have only roman script (no bold, slanted, etc.) \definetypeface [mygyre] [tt] [sans] [cursor]
Try \definetypeface [mygyre] [tt] [mono] [cursor] Also, in type-otf.tex one needs to fix \starttypescript [sans] [cursor] [name] into \starttypescript [sans] [mono] [name] Thanks a lot for pointing out all the problems. Mojca (I'm just afraid that you'll find so many problem in the Cyrillic part of Gyre ...)
Mojca Miklavec wrote:
1. No small-caps in any font (gyre fonts doesn't have that yet?)
I didn't check yet, but it's probably a global problem in mkiv smallcaps support.
Tried with MkII and MkIV. No small caps in sans-serif only if text is written in english. In MkIV with gyre smallcaps are available only in normal script. But with cyrillic no smallcaps in every case. If you need I can test every combination and make a more detailed report.
2. adventor have italic but slanted displays as normal (roman)
in type-otf.tex at least this is missing:
\starttypescript [sans] [adventor] % and possibly others \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Regular] ....
The same is true for mono.
Great! These definitions fixed the most problems. One note: previously cyrillic "should be smallcaps" text displayed as roman, now it is missing completely, but latin works fine. Is there a workaround to remap this somehow? I didn't learn about typescripts enough yet to do this myself (but working on it).
3. cursor have only roman script (no bold, slanted, etc.) \definetypeface [mygyre] [tt] [sans] [cursor]
Try \definetypeface [mygyre] [tt] [mono] [cursor]
Also, in type-otf.tex one needs to fix \starttypescript [sans] [cursor] [name] into \starttypescript [sans] [mono] [name]
Possibly this should be: \starttypescript [mono] [cursor] [name] ?
(I'm just afraid that you'll find so many problem in the Cyrillic part of Gyre ...)
Except for missing small-caps (this is not critical at all) and with addition of your definitions in type-otf.tex TeX Gyre support is enough to write in Russian language (tested all fonts). I've compiled big documents and not found any deficiencies so far. Attached the resulting type-otf.tex. Maybe this'll save a few minutes for someone. -- Regards, Oleg Kolosov
Dnia Thu, Oct 23, 2008 at 11:07:46PM +0400, Oleg Kolosov napisał(a):
Attached the resulting type-otf.tex. Maybe this'll save a few minutes for someone.
Wow! I don't have the time to test it now with Polish, but I'll do it soon probably. I guess it is usable only in MkIV...? If yes, I'll have to switch;). Hans, any chance to have this code included someday soon in the minimals?
Regards, Oleg Kolosov
Greets -- Marcin Borkowski (http://mbork.pl)
On Fri, Oct 24, 2008 at 12:53 AM, Marcin Borkowski wrote:
Dnia Thu, Oct 23, 2008 at 11:07:46PM +0400, Oleg Kolosov napisał(a):
Attached the resulting type-otf.tex. Maybe this'll save a few minutes for someone.
Wow! I don't have the time to test it now with Polish, but I'll do it soon probably. I guess it is usable only in MkIV...? If yes, I'll have to switch;).
If there are problems with mkii, type-gyr.tex should be fixed as well. Just point to the problems. Mojca
Marcin Borkowski wrote:
Dnia Thu, Oct 23, 2008 at 11:07:46PM +0400, Oleg Kolosov napisał(a):
Attached the resulting type-otf.tex. Maybe this'll save a few minutes for someone.
Wow! I don't have the time to test it now with Polish, but I'll do it soon probably. I guess it is usable only in MkIV...? If yes, I'll have to switch;).
Hans, any chance to have this code included someday soon in the minimals?
i just wait till mojca sends me a new file since she's managing these polish treasures 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 -----------------------------------------------------------------
On Thu, Oct 23, 2008 at 12:31 AM, Oleg Kolosov
Hello Everyone!
I've started to experiment with MkIV in ConTeXt minimals recently trying to make TeX Gyre fonts work with as few definitions as possible. Here is the list of problems I've encountered:
1. No small-caps in any font (gyre fonts doesn't have that yet?)
\usetypescript[palatino] \setupbodyfont[palatino] \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} \starttext 0123456789 {\os 0123456789} \stoptext Test the other fonts by yourself.
2. adventor have italic but slanted displays as normal (roman)
3. cursor have only roman script (no bold, slanted, etc.)
Is this due to lack of fonts in Gyre package, some omissions in type-otf.tex or my typescript definitions are not complete?
Here is the test file which I've used (some cyrillic text also): ------------------------ \starttypescript[mygyre] % change font last arg according to definitions in type-otf.tex % pagella, termes, bonum, schola \definetypeface [mygyre] [rm] [serif] [pagella] % heros, adventor \definetypeface [mygyre] [ss] [sans] [adventor] \definetypeface [mygyre] [tt] [sans] [cursor] \definetypeface [mygyre] [mm] [math] [palatino] \stoptypescript
\startbuffer[tests] \starttabulate \NC \tf tf \NC \tf Нормальный текст \NC\AR \NC \bf bf \NC \bf Полужирный текст \NC\AR \NC \it it \NC \it Курсивный текст \NC\AR \NC \sl sl \NC \sl Наклонный текст \NC\AR \NC \bi bi \NC \bi Полужирный курсив \NC\AR \NC \bs bs \NC \bs Полужирынй наклонный \NC\AR \NC \sc sc \NC \sc Пробный текст \NC\AR \stoptabulate \stopbuffer
\usetypescript[mygyre] \setupbodyfont[mygyre]
\starttext \section{roman (rm)} {\rm \getbuffer[tests]}
\section{sans-serif (ss)} {\ss \getbuffer[tests]}
\section{teletype (tt)} {\tt \getbuffer[tests]}
\stoptext ------------------------
I'll update Russian section in the wiki, once these points are clarified.
-- Regards, Oleg Kolosov
Wolfgang
On Thu, 23 Oct 2008, Wolfgang Schuster wrote:
On Thu, Oct 23, 2008 at 12:31 AM, Oleg Kolosov
wrote: Hello Everyone!
I've started to experiment with MkIV in ConTeXt minimals recently trying to make TeX Gyre fonts work with as few definitions as possible. Here is the list of problems I've encountered:
1. No small-caps in any font (gyre fonts doesn't have that yet?)
\usetypescript[palatino] \setupbodyfont[palatino]
\def\os{\groupedcommand{\setfontfeature{oldstyle}}{}}
Shouldn't that be just \def\os{\setufontfeature{oldstyle}} Aditya
\starttext
0123456789 {\os 0123456789}
\stoptext
Test the other fonts by yourself.
2. adventor have italic but slanted displays as normal (roman)
3. cursor have only roman script (no bold, slanted, etc.)
Is this due to lack of fonts in Gyre package, some omissions in type-otf.tex or my typescript definitions are not complete?
Here is the test file which I've used (some cyrillic text also): ------------------------ \starttypescript[mygyre] % change font last arg according to definitions in type-otf.tex % pagella, termes, bonum, schola \definetypeface [mygyre] [rm] [serif] [pagella] % heros, adventor \definetypeface [mygyre] [ss] [sans] [adventor] \definetypeface [mygyre] [tt] [sans] [cursor] \definetypeface [mygyre] [mm] [math] [palatino] \stoptypescript
\startbuffer[tests] \starttabulate \NC \tf tf \NC \tf Нормальный текст \NC\AR \NC \bf bf \NC \bf Полужирный текст \NC\AR \NC \it it \NC \it Курсивный текст \NC\AR \NC \sl sl \NC \sl Наклонный текст \NC\AR \NC \bi bi \NC \bi Полужирный курсив \NC\AR \NC \bs bs \NC \bs Полужирынй наклонный \NC\AR \NC \sc sc \NC \sc Пробный текст \NC\AR \stoptabulate \stopbuffer
\usetypescript[mygyre] \setupbodyfont[mygyre]
\starttext \section{roman (rm)} {\rm \getbuffer[tests]}
\section{sans-serif (ss)} {\ss \getbuffer[tests]}
\section{teletype (tt)} {\tt \getbuffer[tests]}
\stoptext ------------------------
I'll update Russian section in the wiki, once these points are clarified.
-- Regards, Oleg Kolosov
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Thu, Oct 23, 2008 at 3:33 PM, Aditya Mahajan
On Thu, 23 Oct 2008, Wolfgang Schuster wrote:
On Thu, Oct 23, 2008 at 12:31 AM, Oleg Kolosov
wrote: Hello Everyone!
I've started to experiment with MkIV in ConTeXt minimals recently trying to make TeX Gyre fonts work with as few definitions as possible. Here is the list of problems I've encountered:
1. No small-caps in any font (gyre fonts doesn't have that yet?)
\usetypescript[palatino] \setupbodyfont[palatino]
\def\os{\groupedcommand{\setfontfeature{oldstyle}}{}}
Shouldn't that be just
\def\os{\setufontfeature{oldstyle}}
I don't know what the best method is, I never user them in this way. Hans suggested this method. http://archive.contextgarden.net/message/20080920.104922.1b864b2b.en.html Wolfgang
Aditya Mahajan wrote:
On Thu, 23 Oct 2008, Wolfgang Schuster wrote:
On Thu, Oct 23, 2008 at 12:31 AM, Oleg Kolosov
wrote: Hello Everyone!
I've started to experiment with MkIV in ConTeXt minimals recently trying to make TeX Gyre fonts work with as few definitions as possible. Here is the list of problems I've encountered:
1. No small-caps in any font (gyre fonts doesn't have that yet?)
\usetypescript[palatino] \setupbodyfont[palatino]
\def\os{\groupedcommand{\setfontfeature{oldstyle}}{}}
Shouldn't that be just
\def\os{\setufontfeature{oldstyle}}
the grouped variant permits \os{123} and {\os 123} ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (6)
-
Aditya Mahajan
-
Hans Hagen
-
Marcin Borkowski
-
Mojca Miklavec
-
Oleg Kolosov
-
Wolfgang Schuster