Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-24 Thread Hans Hagen
Marcin Borkowski wrote:
 Dnia Thu, Oct 23, 2008 at 11:07:46PM +0400, Oleg Kolosov napisa#322;(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
-
___
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
___


Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Wolfgang Schuster
On Thu, Oct 23, 2008 at 12:31 AM, Oleg Kolosov [EMAIL PROTECTED] 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}}{}}

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


Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Aditya Mahajan

On Thu, 23 Oct 2008, Wolfgang Schuster wrote:


On Thu, Oct 23, 2008 at 12:31 AM, Oleg Kolosov [EMAIL PROTECTED] 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
___


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


Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Wolfgang Schuster
On Thu, Oct 23, 2008 at 3:33 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
 On Thu, 23 Oct 2008, Wolfgang Schuster wrote:

 On Thu, Oct 23, 2008 at 12:31 AM, Oleg Kolosov [EMAIL PROTECTED] 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
___
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
___


Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Hans Hagen
Aditya Mahajan wrote:
 On Thu, 23 Oct 2008, Wolfgang Schuster wrote:
 
 On Thu, Oct 23, 2008 at 12:31 AM, Oleg Kolosov [EMAIL PROTECTED] 
 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
-
___
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
___


Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Oleg Kolosov
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
%D \module
%D   [   file=type-otf,
%Dversion=2007.07.30,
%D  title=\CONTEXT\ Typescript Macros,
%D   subtitle=Opentype Definitions,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA / Hans Hagen \ Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D Actually, \LUATEX\ does not need all these definitions since it can
%D consult its database. However, here we use the names that we used
%D in good old \TEX, and these may differ a bit. Here we also see
%D some oldstyle definitions which normally are done with features.

\starttypescriptcollection[examples]

\starttypescript [fallback]
\definetypeface [] [rm] [serif] [modern] [computer-modern]
\definetypeface [] [ss] [sans]  [modern] [computer-modern]
\definetypeface [] [tt] [mono]  [modern] [computer-modern]
\definetypeface [] [mm] [math]  [modern] [computer-modern]
\quittypescriptscanning
\stoptypescript

\starttypescript [modern]
\definetypeface [modern] [rm] [serif] [modern] [computer-modern]
\definetypeface [modern] [ss] [sans]  [modern] [computer-modern]
\definetypeface [modern] [tt] [mono]  [modern] [computer-modern]
\definetypeface [modern] [mm] [math]  [modern] [computer-modern]
\quittypescriptscanning
\stoptypescript

\starttypescript [modern-base]
\definetypeface [modern] [rm] [serif] [modern] [default]
\definetypeface [modern] [ss] [sans]  [modern] [default]
\definetypeface [modern] [tt] [mono]  [modern] [default]
\definetypeface [modern] [mm] [math]  [modern] [default]
\quittypescriptscanning
\stoptypescript

\starttypescript [postscript]
\definetypeface [postscript] [rm] [serif] [times] [default]
\definetypeface [postscript] [ss] [sans]  [helvetica] [default] [rscale=.9]
\definetypeface [postscript] [tt] [mono]  [courier]   [default] [rscale=1.1]
\definetypeface [postscript] [mm] [math]  [times] [default]
\quittypescriptscanning
\stoptypescript

\starttypescript [times]
\definetypeface [times] [rm] [serif] [times] [default]
\definetypeface [times] [ss] [sans]  [helvetica] [default] [rscale=0.9]
\definetypeface [times] [tt] [mono]  [modern][default] [rscale=1.05]
\definetypeface [times] [mm] [math]  [times] [default]
\quittypescriptscanning
\stoptypescript

\starttypescript [palatino]
\definetypeface [palatino] [rm] [serif] [palatino] [default]
\definetypeface [palatino] [ss] [sans]  [modern]   [default] [rscale=1.075]
\definetypeface [palatino] [tt] [mono]  [modern]   [default] [rscale=1.075]
\definetypeface [palatino] [mm] [math]  [palatino] [default]
\quittypescriptscanning
\stoptypescript

\starttypescript [modernvariable]
\definetypeface [modernvariable] [rm] [serif] [simple] [default]
\definetypeface [modernvariable] [ss] [sans]  [modern] [default]
\definetypeface [modernvariable] [tt] [mono]  [modern] [default]
\definetypeface [modernvariable] [mm] [math]  [modern] [default]
\quittypescriptscanning

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Marcin Borkowski
Dnia Thu, Oct 23, 2008 at 11:07:46PM +0400, Oleg Kolosov napisa#322;(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)
___
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
___


Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Mojca Miklavec
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#322;(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
___
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
___


Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-22 Thread Mojca Miklavec
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 ...)
___
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
___