Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Philipp Gesang
·

> On 5/13/2014 8:16 PM, Aíre Funvake wrote:
> > On Tue May 13 19:56:34 2014, Hans Hagen wrote:
> >> On 5/13/2014 7:48 PM, Aíre Funvake wrote:
> >>> On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
>  On 2014-05-12, 22:59 , Aíre Funvake wrote:
> > On Mon May 12 22:52:43 2014, Hans Hagen wrote:
> >> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
> >>> On Mon May 12 22:01:04 2014, Hans Hagen wrote:
>  On 5/12/2014 9:48 PM, Aíre Funvake wrote:
> > Hi all,
> >
> > Trying to select "slashed zero" and "lining figures" from a
> > font. For Lucida Bright OT, as another example, +scmp works,
> > but not for Charter ITC Pro. But the font that concerns me
> > the most right now, is TheSansMono Condensed...
> >
> > Font URL:
> > http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/
> >
> >
> >
> >
> > PDF Info:
> > https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf
> >
> > 8<---minimal example>8
> > \newdimen\fntcodesz
> > \fntcodesz = 11.5pt
> > \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
> > \kwr
> > 0123456789
> > \bye
> > 8<-->8
> 
>  sometimes you need to select a script/language combination too
>  or when
>  digits are concerned disable oldstyle
> >>>
> >>> I'm too inexperienced to know what that means, or how to apply that.
> >>
> >> there is some info in font manuals and the context wiki
> >>
> >>> I've opened the font in FontForge, and can see the glyphs I'm
> >>> looking for, but again, it does not carry much applicable meaning
> >>> for me. For example, can I use this information?:
> >>>
> >>> Slash 0, Lining Figures: (0x10120) U+0030 "zero.lf.slashed" DIGIT
> >>> ZERO
> >>>  1, Lining Figures: (0x10121) U+0031 "one.lf" DIGIT ONE
> >>>  ...
> >>> Slash 0, "Basic": (0x1012b) U+0030 "zero.basic.slashed" DIGIT ZERO
> >>>  1, "Basic": (0x1012c) U+0031 "one.basic" DIGIT ONE
> >>>  ...
> >>
> >> so you need to select the lnum feature too
> >>
> > Was this not it?:
> > ...
> > \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
> > ...
> > But thanks; will keep on reading; if solution found, will add it here.
> > Regards,
> > Aíre
> >
>  Solution:
>  \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
>  Thank you!
> 
> >>>
> >>> Spoke too soon. The "zero.slashed" is selected, instead of
> >>> "zero.lf.slashed",
> >>> so that the zero is smaller than the rest of the lining figure numbers.
> >>> In
> >>> desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
> >>> it
> >>> worked fine. `;color=XX` also works with `luaotfload`, but not with
> >>> LuaTeX-plain from ConTeXt.
> >>
> >> no, and that is unlikely to show up in context as it makes no sense to
> >> specify colors that way .. just use the normal color commands
> >>
> >>> Any ideas would be welcome. Exhausted Google query permutations and most
> >>> font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.
> >>>
> >>> Can I maybe as a hack switch the glyphs, or something?
> >>
> >> how about adding
> >>
> >>mode=node
> >>
> >> in the plain setup (often not needed in context)
> >>
> >> Hans
> >>
> > Thanks for the reply. Tried `mode=node`. Read about it, but never
> > thought
> > of putting it here!? The correct specification then is:
> >
> > \font\mono = {TheSansMonoCd-W5Regular:%
> >   script=latn;+lnum;+zero;mode=node} at \fntsze
> >
> > Confused about the color though. Read most of luatexref-t.pdf, and may
> > have missed it. The only reference (and it works in `luaotfload` under
> > TeXLive2013) is like this:
> >
> > \font\mono = {TheSansMonoCd-W5Regular:%
> >   script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
> > 
> 
> so it looks like oftload adds that (or maybe the latex font definition 
> code) but even then, it's probably implemented someplace else in the 
> latex code
> 
> > Found no other reference to setting color on fonts in LuaTeX-plain (the
> > ConTeXt version). Would love a pointer to the information though.
> 
> it must be something latex i think (maybe to provide xetex 
> compatibility) but it's definitely not in luatex (nor will be) and also 
> not in context (which has more advanced color support than hex specs 
> anyway)

That’s correct. The “color” key triggers a custom callback that
tints every glyph of the defined font. It’s part of Luaotfload
solely for compatibility for Xetex. IMO it’s not worth the
hassle; I recommend using a p

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Aíre Funvake
On Tue May 13 20:57:55 2014, Hans Hagen wrote:
> On 5/13/2014 8:16 PM, Aíre Funvake wrote:
>> On Tue May 13 19:56:34 2014, Hans Hagen wrote:
>>> On 5/13/2014 7:48 PM, Aíre Funvake wrote:
 On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
> On 2014-05-12, 22:59 , Aíre Funvake wrote:
>> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
>>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
 On Mon May 12 22:01:04 2014, Hans Hagen wrote:
> On 5/12/2014 9:48 PM, Aíre Funvake wrote:
>> Hi all,
>>
>> Trying to select "slashed zero" and "lining figures" from a
>> font. For Lucida Bright OT, as another example, +scmp works,
>> but not for Charter ITC Pro. But the font that concerns me
>> the most right now, is TheSansMono Condensed...
>>
>> Font URL:
>> http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/
>>
>>
>>
>>
>>
>> PDF Info:
>> https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf
>>
>>
>> 8<---minimal
>> example>8
>> \newdimen\fntcodesz
>> \fntcodesz = 11.5pt
>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at
>> \fntcodesz
>> \kwr
>> 0123456789
>> \bye
>> 8<-->8
>>
>
> sometimes you need to select a script/language combination too
> or when
> digits are concerned disable oldstyle

 I'm too inexperienced to know what that means, or how to apply
 that.
>>>
>>> there is some info in font manuals and the context wiki
>>>
 I've opened the font in FontForge, and can see the glyphs I'm
 looking for, but again, it does not carry much applicable meaning
 for me. For example, can I use this information?:

 Slash 0, Lining Figures: (0x10120) U+0030 "zero.lf.slashed" DIGIT
 ZERO
  1, Lining Figures: (0x10121) U+0031 "one.lf" DIGIT ONE
  ...
 Slash 0, "Basic": (0x1012b) U+0030 "zero.basic.slashed" DIGIT ZERO
  1, "Basic": (0x1012c) U+0031 "one.basic" DIGIT ONE
  ...
>>>
>>> so you need to select the lnum feature too
>>>
>> Was this not it?:
>> ...
>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>> ...
>> But thanks; will keep on reading; if solution found, will add it
>> here.
>> Regards,
>> Aíre
>>
> Solution:
> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at
> 12pt
> Thank you!
>

 Spoke too soon. The "zero.slashed" is selected, instead of
 "zero.lf.slashed",
 so that the zero is smaller than the rest of the lining figure
 numbers.
 In
 desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
 it
 worked fine. `;color=XX` also works with `luaotfload`, but not
 with
 LuaTeX-plain from ConTeXt.
>>>
>>> no, and that is unlikely to show up in context as it makes no sense to
>>> specify colors that way .. just use the normal color commands
>>>
 Any ideas would be welcome. Exhausted Google query permutations and
 most
 font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.

 Can I maybe as a hack switch the glyphs, or something?
>>>
>>> how about adding
>>>
>>>mode=node
>>>
>>> in the plain setup (often not needed in context)
>>>
>>> Hans
>>>
>> Thanks for the reply. Tried `mode=node`. Read about it, but never
>> thought
>> of putting it here!? The correct specification then is:
>>
>> \font\mono = {TheSansMonoCd-W5Regular:%
>>   script=latn;+lnum;+zero;mode=node} at \fntsze
>>
>> Confused about the color though. Read most of luatexref-t.pdf, and may
>> have missed it. The only reference (and it works in `luaotfload` under
>> TeXLive2013) is like this:
>>
>> \font\mono = {TheSansMonoCd-W5Regular:%
>>   script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
>> 
>
> so it looks like oftload adds that (or maybe the latex font definition
> code) but even then, it's probably implemented someplace else in the
> latex code
>
>> Found no other reference to setting color on fonts in LuaTeX-plain (the
>> ConTeXt version). Would love a pointer to the information though.
>
> it must be something latex i think (maybe to provide xetex
> compatibility) but it's definitely not in luatex (nor will be) and
> also not in context (which has more advanced color support than hex
> specs anyway)
>
> if you want color, use context instead of plain

It's OK, can live without the color for now.

>
>> Big thanks for the `mode=node`; took me 6hrs to try and fix to no avail.
>
> best try out these thing

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Hans Hagen

On 5/13/2014 8:16 PM, Aíre Funvake wrote:

On Tue May 13 19:56:34 2014, Hans Hagen wrote:

On 5/13/2014 7:48 PM, Aíre Funvake wrote:

On Mon May 12 23:12:06 2014, Aíre Funvake wrote:

On 2014-05-12, 22:59 , Aíre Funvake wrote:

On Mon May 12 22:52:43 2014, Hans Hagen wrote:

On 5/12/2014 10:46 PM, Aíre Funvake wrote:

On Mon May 12 22:01:04 2014, Hans Hagen wrote:

On 5/12/2014 9:48 PM, Aíre Funvake wrote:

Hi all,

Trying to select "slashed zero" and "lining figures" from a
font. For Lucida Bright OT, as another example, +scmp works,
but not for Charter ITC Pro. But the font that concerns me
the most right now, is TheSansMono Condensed...

Font URL:
http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/




PDF Info:
https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf

8<---minimal example>8
\newdimen\fntcodesz
\fntcodesz = 11.5pt
\font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
\kwr
0123456789
\bye
8<-->8


sometimes you need to select a script/language combination too
or when
digits are concerned disable oldstyle


I'm too inexperienced to know what that means, or how to apply that.


there is some info in font manuals and the context wiki


I've opened the font in FontForge, and can see the glyphs I'm
looking for, but again, it does not carry much applicable meaning
for me. For example, can I use this information?:

Slash 0, Lining Figures: (0x10120) U+0030 "zero.lf.slashed" DIGIT
ZERO
 1, Lining Figures: (0x10121) U+0031 "one.lf" DIGIT ONE
 ...
Slash 0, "Basic": (0x1012b) U+0030 "zero.basic.slashed" DIGIT ZERO
 1, "Basic": (0x1012c) U+0031 "one.basic" DIGIT ONE
 ...


so you need to select the lnum feature too


Was this not it?:
...
\font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
...
But thanks; will keep on reading; if solution found, will add it here.
Regards,
Aíre


Solution:
\font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
Thank you!



Spoke too soon. The "zero.slashed" is selected, instead of
"zero.lf.slashed",
so that the zero is smaller than the rest of the lining figure numbers.
In
desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
it
worked fine. `;color=XX` also works with `luaotfload`, but not with
LuaTeX-plain from ConTeXt.


no, and that is unlikely to show up in context as it makes no sense to
specify colors that way .. just use the normal color commands


Any ideas would be welcome. Exhausted Google query permutations and most
font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.

Can I maybe as a hack switch the glyphs, or something?


how about adding

   mode=node

in the plain setup (often not needed in context)

Hans


Thanks for the reply. Tried `mode=node`. Read about it, but never
thought
of putting it here!? The correct specification then is:

\font\mono = {TheSansMonoCd-W5Regular:%
  script=latn;+lnum;+zero;mode=node} at \fntsze

Confused about the color though. Read most of luatexref-t.pdf, and may
have missed it. The only reference (and it works in `luaotfload` under
TeXLive2013) is like this:

\font\mono = {TheSansMonoCd-W5Regular:%
  script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze



so it looks like oftload adds that (or maybe the latex font definition 
code) but even then, it's probably implemented someplace else in the 
latex code



Found no other reference to setting color on fonts in LuaTeX-plain (the
ConTeXt version). Would love a pointer to the information though.


it must be something latex i think (maybe to provide xetex 
compatibility) but it's definitely not in luatex (nor will be) and also 
not in context (which has more advanced color support than hex specs 
anyway)


if you want color, use context instead of plain


Big thanks for the `mode=node`; took me 6hrs to try and fix to no avail.


best try out these things with context (and if needed turn on tracing)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Aíre Funvake
On Tue May 13 19:56:34 2014, Hans Hagen wrote:
> On 5/13/2014 7:48 PM, Aíre Funvake wrote:
>> On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
>>> On 2014-05-12, 22:59 , Aíre Funvake wrote:
 On Mon May 12 22:52:43 2014, Hans Hagen wrote:
> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
>> On Mon May 12 22:01:04 2014, Hans Hagen wrote:
>>> On 5/12/2014 9:48 PM, Aíre Funvake wrote:
 Hi all,

 Trying to select "slashed zero" and "lining figures" from a
 font. For Lucida Bright OT, as another example, +scmp works,
 but not for Charter ITC Pro. But the font that concerns me
 the most right now, is TheSansMono Condensed...

 Font URL:
 http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/




 PDF Info:
 https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf

 8<---minimal example>8
 \newdimen\fntcodesz
 \fntcodesz = 11.5pt
 \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
 \kwr
 0123456789
 \bye
 8<-->8
>>>
>>> sometimes you need to select a script/language combination too
>>> or when
>>> digits are concerned disable oldstyle
>>
>> I'm too inexperienced to know what that means, or how to apply that.
>
> there is some info in font manuals and the context wiki
>
>> I've opened the font in FontForge, and can see the glyphs I'm
>> looking for, but again, it does not carry much applicable meaning
>> for me. For example, can I use this information?:
>>
>> Slash 0, Lining Figures: (0x10120) U+0030 "zero.lf.slashed" DIGIT
>> ZERO
>> 1, Lining Figures: (0x10121) U+0031 "one.lf" DIGIT ONE
>> ...
>> Slash 0, "Basic": (0x1012b) U+0030 "zero.basic.slashed" DIGIT ZERO
>> 1, "Basic": (0x1012c) U+0031 "one.basic" DIGIT ONE
>> ...
>
> so you need to select the lnum feature too
>
 Was this not it?:
 ...
 \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
 ...
 But thanks; will keep on reading; if solution found, will add it here.
 Regards,
 Aíre

>>> Solution:
>>> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
>>> Thank you!
>>>
>>
>> Spoke too soon. The "zero.slashed" is selected, instead of
>> "zero.lf.slashed",
>> so that the zero is smaller than the rest of the lining figure numbers.
>> In
>> desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
>> it
>> worked fine. `;color=XX` also works with `luaotfload`, but not with
>> LuaTeX-plain from ConTeXt.
>
> no, and that is unlikely to show up in context as it makes no sense to
> specify colors that way .. just use the normal color commands
>
>> Any ideas would be welcome. Exhausted Google query permutations and most
>> font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.
>>
>> Can I maybe as a hack switch the glyphs, or something?
>
> how about adding
>
>   mode=node
>
> in the plain setup (often not needed in context)
>
> Hans
>
Thanks for the reply. Tried `mode=node`. Read about it, but never 
thought
of putting it here!? The correct specification then is:

\font\mono = {TheSansMonoCd-W5Regular:%
 script=latn;+lnum;+zero;mode=node} at \fntsze

Confused about the color though. Read most of luatexref-t.pdf, and may
have missed it. The only reference (and it works in `luaotfload` under
TeXLive2013) is like this:

\font\mono = {TheSansMonoCd-W5Regular:%
 script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
   
Found no other reference to setting color on fonts in LuaTeX-plain (the
ConTeXt version). Would love a pointer to the information though.

Big thanks for the `mode=node`; took me 6hrs to try and fix to no avail.

All the best,
Aíre.

___
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] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Hans Hagen

On 5/13/2014 7:48 PM, Aíre Funvake wrote:

On Mon May 12 23:12:06 2014, Aíre Funvake wrote:

On 2014-05-12, 22:59 , Aíre Funvake wrote:

On Mon May 12 22:52:43 2014, Hans Hagen wrote:

On 5/12/2014 10:46 PM, Aíre Funvake wrote:

On Mon May 12 22:01:04 2014, Hans Hagen wrote:

On 5/12/2014 9:48 PM, Aíre Funvake wrote:

Hi all,

Trying to select "slashed zero" and "lining figures" from a
font. For Lucida Bright OT, as another example, +scmp works,
but not for Charter ITC Pro. But the font that concerns me
the most right now, is TheSansMono Condensed...

Font URL:
http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/



PDF Info:
https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf

8<---minimal example>8
\newdimen\fntcodesz
\fntcodesz = 11.5pt
\font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
\kwr
0123456789
\bye
8<-->8


sometimes you need to select a script/language combination too or when
digits are concerned disable oldstyle


I'm too inexperienced to know what that means, or how to apply that.


there is some info in font manuals and the context wiki


I've opened the font in FontForge, and can see the glyphs I'm
looking for, but again, it does not carry much applicable meaning
for me. For example, can I use this information?:

Slash 0, Lining Figures: (0x10120) U+0030 "zero.lf.slashed" DIGIT ZERO
1, Lining Figures: (0x10121) U+0031 "one.lf" DIGIT ONE
...
Slash 0, "Basic": (0x1012b) U+0030 "zero.basic.slashed" DIGIT ZERO
1, "Basic": (0x1012c) U+0031 "one.basic" DIGIT ONE
...


so you need to select the lnum feature too


Was this not it?:
...
\font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
...
But thanks; will keep on reading; if solution found, will add it here.
Regards,
Aíre


Solution:
\font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
Thank you!



Spoke too soon. The "zero.slashed" is selected, instead of
"zero.lf.slashed",
so that the zero is smaller than the rest of the lining figure numbers.
In
desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
it
worked fine. `;color=XX` also works with `luaotfload`, but not with
LuaTeX-plain from ConTeXt.


no, and that is unlikely to show up in context as it makes no sense to 
specify colors that way .. just use the normal color commands



Any ideas would be welcome. Exhausted Google query permutations and most
font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.

Can I maybe as a hack switch the glyphs, or something?


how about adding

  mode=node

in the plain setup (often not needed in context)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Aíre Funvake
On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
> On 2014-05-12, 22:59 , Aíre Funvake wrote:
>> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
>>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
 On Mon May 12 22:01:04 2014, Hans Hagen wrote:
> On 5/12/2014 9:48 PM, Aíre Funvake wrote:
>> Hi all,
>>
>> Trying to select "slashed zero" and "lining figures" from a
>> font. For Lucida Bright OT, as another example, +scmp works,
>> but not for Charter ITC Pro. But the font that concerns me
>> the most right now, is TheSansMono Condensed...
>>
>> Font URL:
>> http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/
>>
>>
>>
>> PDF Info:
>> https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf
>>
>> 8<---minimal example>8
>> \newdimen\fntcodesz
>> \fntcodesz = 11.5pt
>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>> \kwr
>> 0123456789
>> \bye
>> 8<-->8
>
> sometimes you need to select a script/language combination too or when
> digits are concerned disable oldstyle

 I'm too inexperienced to know what that means, or how to apply that.
>>>
>>> there is some info in font manuals and the context wiki
>>>
 I've opened the font in FontForge, and can see the glyphs I'm
 looking for, but again, it does not carry much applicable meaning
 for me. For example, can I use this information?:

 Slash 0, Lining Figures: (0x10120) U+0030 "zero.lf.slashed" DIGIT ZERO
1, Lining Figures: (0x10121) U+0031 "one.lf" DIGIT ONE
...
 Slash 0, "Basic": (0x1012b) U+0030 "zero.basic.slashed" DIGIT ZERO
1, "Basic": (0x1012c) U+0031 "one.basic" DIGIT ONE
...
>>>
>>> so you need to select the lnum feature too
>>>
>> Was this not it?:
>> ...
>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>> ...
>> But thanks; will keep on reading; if solution found, will add it here.
>> Regards,
>> Aíre
>>
> Solution:
> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
> Thank you!
>

Spoke too soon. The "zero.slashed" is selected, instead of 
"zero.lf.slashed",
so that the zero is smaller than the rest of the lining figure numbers. 
In
desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and 
it
worked fine. `;color=XX` also works with `luaotfload`, but not with
LuaTeX-plain from ConTeXt.

Any ideas would be welcome. Exhausted Google query permutations and most
font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.

Can I maybe as a hack switch the glyphs, or something?

Thanks again & regards,
Aíre.

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

[NTG-context] arch linux and ConTeXt

2014-05-13 Thread Rudolf Bahr
Hi Aditya,

recently I changed my linux distribution to arch and so I used your arch 
suggestion to
install ConTeXt. Instead of "reporting any bugs at the ConTeXt mailing list" 
according to
the last sentence it's in my own interest to thank you for your work there!

All went well, though one little rather unimportant thing irritated me 
initially:
"makepkg" which should generate "context-minimals-.pkg.tar.gz" with the 
date of
today, as I assume, generated 
"context-minimals-git-20130615-1-x86_64.pkg.tar.gz" instead,
with a one year old date. 

But the eventually generated ConTeXt is totally new:
ConTeXt  ver: 2014.05.13 00:04 MKIV beta  fmt: 2014.5.13 

So, it's not a real bug, only irritating a little bit. 
I thank you again!

Rudolf

___
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] Centering tabulate env. using \setuptabulate

2014-05-13 Thread Wolfgang Schuster

Am 13.05.2014 um 09:30 schrieb Mikael P. Sundqvist :

> On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r.
> o.  wrote:
>> ... Wikified:
>> http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page
>> 
>> Lukas
> 
> I realized that the second none is not needed. It is sufficient with
> empty {} (or they could include any text). I updated the wiki.

When you write “none” in the caption this is now handled as a normal string
and no longer as a keyword to disable the caption.

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] Centering tabulate env. using \setuptabulate

2014-05-13 Thread Mikael P. Sundqvist
On Tue, May 13, 2014 at 10:49 AM, Mikael P. Sundqvist  wrote:
> \startplacetable%[force,none]
> \starttabulate[|r|l|]
> \HL
> \NC I want this table \NC aligned in the center.\NR
> \HL
> \stoptabulate
> \stopplacetable

Sorry for the spamming, according to older examples on the list, this
seems to work:

\startplacetable[location=force,number=no]
\starttabulate[|r|l|]
\HL
\NC I want this table \NC aligned in the center.\NR
\HL
\stoptabulate
\stopplacetable

There is also a location=nonumber. I don't know what is the difference.

/Mikael

PS: I'll try to add this to the \startplacefloat page (which seems to be absent)
___
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] Centering tabulate env. using \setuptabulate

2014-05-13 Thread Mikael P. Sundqvist
On Tue, May 13, 2014 at 10:36 AM, Otared Kavian  wrote:
> Actually the « none » in
> \placetable[force,none]
> means you don’t want a caption and the first braces enclose the caption, 
> while the second braces enclose what is going to be « placed »: compare
>
> \placetable[force]{This is a centered tabulation}{
> \starttabulate[|r|l|]
> \HL
> \NC I want this table \NC aligned in the center.\NR
> \HL
> \stoptabulate}
>
> with
>
> \placetable[force,none]{This is a centered tabulation}{
> \starttabulate[|r|l|]
> \HL
> \NC I want this table \NC aligned in the center.\NR
> \HL
> \stoptabulate}
>
> Best regards: OK

I think this agrees (with what I meant). Do you know how how to do
this with \startplacetable and \stopplacetable?

\startplacetable%[force,none]
\starttabulate[|r|l|]
\HL
\NC I want this table \NC aligned in the center.\NR
\HL
\stoptabulate
\stopplacetable

gives a "Table 1" below the table. And uncommenting the [force,none]
part does not seem to help...

/Mikael
___
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] Centering tabulate env. using \setuptabulate

2014-05-13 Thread Otared Kavian

On 13 mai 2014, at 08:30, Mikael P. Sundqvist  wrote:

> On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r.
> o.  wrote:
>> ... Wikified:
>> http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page
>> 
>> Lukas
> 
> I realized that the second none is not needed. It is sufficient with
> empty {} (or they could include any text). I updated the wiki.

Actually the « none » in 
\placetable[force,none] 
means you don’t want a caption and the first braces enclose the caption, while 
the second braces enclose what is going to be « placed »: compare

\placetable[force]{This is a centered tabulation}{
\starttabulate[|r|l|]
\HL
\NC I want this table \NC aligned in the center.\NR
\HL
\stoptabulate}

with

\placetable[force,none]{This is a centered tabulation}{
\starttabulate[|r|l|]
\HL
\NC I want this table \NC aligned in the center.\NR
\HL
\stoptabulate}

Best regards: OK
___
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] Centering tabulate env. using \setuptabulate

2014-05-13 Thread Mikael P. Sundqvist
On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r.
o.  wrote:
> ... Wikified:
> http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page
>
> Lukas

I realized that the second none is not needed. It is sufficient with
empty {} (or they could include any text). I updated the wiki.

/Mikael
___
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] Centering tabulate env. using \setuptabulate

2014-05-13 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Wikified: 
http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page

Lukas


On Tue, 13 May 2014 07:03:58 +0200, Mikael P. Sundqvist  
wrote:


I'd do such things with

\starttext
\input knuth\par
\placetable[force,none]{none}{%
\starttabulate[|r|l|]
\HL
\NC I want this table \NC aligned in the center.\NR
\HL
\stoptabulate
}
\input knuth
\stoptext

(the knuths are there only not to make the page look so empty, and the
force makes it non-floating, and the nones are there to not have any
caption (or even Table title)) but maybe there are better solutions?

/Mikael



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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