Re: [NTG-context] LuaTeX error ... object in use

2010-05-30 Thread Hans Hagen

On 31-5-2010 12:08, Michael Saunders wrote:

add mode=node to the 'body' feature definitions


I added it.  I get the same results.


you can try

\usemodule[fnt-20]

\setvariables
  [otftracker]
  [font=somefont,
   features=default,
   size=48pt,
   sample=your short text]

and see what is applied


-
  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 error ... object in use

2010-05-30 Thread Michael Saunders
> add mode=node to the 'body' feature definitions

I added it.  I get the same results.
___
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 error ... object in use

2010-05-30 Thread Hans Hagen

On 30-5-2010 11:24, Michael Saunders wrote:

you can try

mtxrun --script font --list --info garamondpremrpr



to see what happens with features


Thanks.  This seems to confirm that the features are there:



MTXrun | dnom cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk
MTXrun | numr cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk
MTXrun | ordn cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk
MTXrun | sinf cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk
MTXrun | sups cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk

but still,

\definefontfeature[body][default][script=latn,onum=yes,pnum=yes,calt=yes,protrusion=quality,expansion=quality]
\definefontfeature[in][body][sinf=yes]%inferior
\definefontfeature[su][body][sups=yes,ordn=yes]%superior
\definefontfeature[nu][body][numr=yes]%numerator
\definefontfeature[de][body][dnom=yes]%denominator
in {\addff{in}123}
su {\addff{su}123}
nu {\addff{nu}123}
de {\addff{de}123}

produces only proportional oldstyle figures.


add mode=node to the 'body' feature definitions

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 error ... object in use

2010-05-30 Thread Michael Saunders
> you can try
>
> mtxrun --script font --list --info garamondpremrpr
...
> to see what happens with features

Thanks.  This seems to confirm that the features are there:



MTXrun | dnom cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk
MTXrun | numr cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk
MTXrun | ordn cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk
MTXrun | sinf cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk
MTXrun | sups cyrl dflt
MTXrun |  grek dflt
MTXrun |  latn aze crt deu dflt fra ita mol rom srb trk

but still,

\definefontfeature[body][default][script=latn,onum=yes,pnum=yes,calt=yes,protrusion=quality,expansion=quality]
\definefontfeature[in][body][sinf=yes]%inferior
\definefontfeature[su][body][sups=yes,ordn=yes]%superior
\definefontfeature[nu][body][numr=yes]%numerator
\definefontfeature[de][body][dnom=yes]%denominator
in {\addff{in}123}
su {\addff{su}123}
nu {\addff{nu}123}
de {\addff{de}123}

produces only proportional oldstyle figures.
___
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 error ... object in use

2010-05-30 Thread Hans Hagen

On 30-5-2010 10:36, Michael Saunders wrote:

There is no test file, and I still do not know which font you are
using. Attempting to find the problem is closer to tea-gazing
than to debugging at the moment. Font features cannot be debugged
independent of the actual font.


Thanks, I understand.  I had been using GaramondPremrPro (which has
all four features and worked with 0.50).  You gave me the idea to try
GillSansMTPro, which also has the four features.  I got a very
interesting result---for it, numr and dnom work, but sinf and sups do
not.  I don't know how I could prepare a test file for you short of
sending you my fonts and typescripts (which I'd be willing to do).


you can try

mtxrun --script font --list --info garamondpremrpr

or

context --trackers=otf.features yourfile

to see what happens with features


-
  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] setups in typescripts

2010-05-30 Thread Willi Egger

On 30 May 2010, at 10:18, Bernhard Rosensteiner wrote:

> Hello,
> 
> i have made a typescript which works. the only thing is that i have in my 
> typescript something like:
> 
> \startsetups [fallbackfonts]
> …
> \stopsetups
> 
> \starttypescript [bla]
> \setups[fallbackfonts]
> …
> \stoptypescript
> 
> referring in my document to the typescriptfile with 
> \usetypescriptfile[Mytypescript] does not load the setups and so the font 
> fallback is not working (obviously \usetypescriptfile only loads the 
> typescripts).
> When i do: 
> 
> \input Mytypescript

\usetypescriptfile[Mytypescript]
\usetypescript[bla]
\setupbodyfont[bla,12pt]

should work

Willi
> 
> in the document all works as expected. So my question is how can i load 
> setups with \usetypescriptfile
> Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how 
> it is recognized by context. Please help.
> 
> best regards
> Bernhard
> 
> 
> 
> ___
> 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
> ___

___
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 error ... object in use

2010-05-30 Thread Michael Saunders
> There is no test file, and I still do not know which font you are
> using. Attempting to find the problem is closer to tea-gazing
> than to debugging at the moment. Font features cannot be debugged
> independent of the actual font.

Thanks, I understand.  I had been using GaramondPremrPro (which has
all four features and worked with 0.50).  You gave me the idea to try
GillSansMTPro, which also has the four features.  I got a very
interesting result---for it, numr and dnom work, but sinf and sups do
not.  I don't know how I could prepare a test file for you short of
sending you my fonts and typescripts (which I'd be willing to do).
___
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 error ... object in use

2010-05-30 Thread taco

Michael Saunders wrote:

Please add script=latn, that works for Palatino Nova, and I think
there possibly was in change in that a while back (some months).


Thanks, I have added script=latn to \definefontfeature[body], but
those Open Type features still aren't back to normal.  I should have
mentioned that I had:
\definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes]
\definefontfeature[body][default][onum=yes,pnum=yes,calt=yes,protrusion=quality,expansion=quality]


There is no test file, and I still do not know which font you are
using. Attempting to find the problem is closer to tea-gazing
than to debugging at the moment. Font features cannot be debugged
independent of the actual font. All I can say is that your original
example, after addition of 'script=latn', works with Palatino Nova
(which is the only font I have that supports those features)



must be related to the missing line from str-flt.mkiv.  I have added
it, though, and I _think_ I remade the formats, but I get no change in
behavior.


The
  context --make en
should have taken care of that, but you can check: the third or fourth
line in the log file is something like this:

ConTeXt  ver: 2010.05.30 17:08 MKIV  fmt: 2010.5.30  int: english/english

The date after fmt: is the date on which the format was generated.

Best wishes,
Taco
___
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 error ... object in use

2010-05-30 Thread Michael Saunders
> Please add script=latn, that works for Palatino Nova, and I think
> there possibly was in change in that a while back (some months).

Thanks, I have added script=latn to \definefontfeature[body], but
those Open Type features still aren't back to normal.  I should have
mentioned that I had:
\definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes]
\definefontfeature[body][default][onum=yes,pnum=yes,calt=yes,protrusion=quality,expansion=quality]

But I seem to remember when I set this up that argument 1 never
actually inherited from argument 2 when I tested it.


> Don't be too sure they are related, they could be totally
independent problems.

Ahh, of course you are right.  I see that:

>>> " ! Undefined control sequence.
>>>   \@@bklocation...

must be related to the missing line from str-flt.mkiv.  I have added
it, though, and I _think_ I remade the formats, but I get no change in
behavior.
___
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] stelinterliniein

2010-05-30 Thread Henning Hraban Ramm

Wolfgang, Vyatcheslav,

thank you for debugging my ancient Skdk style!
If you fix it in the wiki, please also remove all those broken links...

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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 error ... object in use

2010-05-30 Thread taco

Michael Saunders wrote:

How is the [body] feature defined?


\definefontfeature[body][default][onum=yes,pnum=yes,calt=yes,protrusion=quality,expansion=quality]


Please add script=latn, that works for Palatino Nova, and I think
there possibly was in change in that a while back (some months).


About my other problem---the strange one that's hard to isolate, and
which appeared this way in 0.50:

! LuaTeX error ...imal/tex/texmf-context/tex/context/base/lpdf-ini.lua:345:
pdf.immediateobj() object in use

and this way in 0.60:

" ! Undefined control sequence.
 \@@bklocation
\processaction ...-> \expandaction \!!stringa{#1
 } \ifx \!!stringa \empty \l..."


Don't be too sure they are related, they could be totally
independent problems.

Best wishes,
Taco
___
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] Windows Minimals installer is broken -- mtxrun does not work

2010-05-30 Thread Vyatcheslav Yatskovsky

Hello everybody and esp. Mojca,

I started updating my Windows installer code to include "--extras" 
switch. Unfortunately, I found that mtxrun.cmd does not exist anymore 
and is replaced by mtxrun.exe. Moreover, mtxrun.exe is not working at 
all, complaining  "mtxrun: unable to locate texlua.exe on the search 
path", while texlua.exe is present in the same folder!


Please, help me fix this issue, because installer is broken for the moment.

Regards Best,
Vyatcheslav
___
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] stelinterliniein

2010-05-30 Thread Wolfgang Schuster

Am 30.05.10 18:45, schrieb Vyatcheslav Yatskovsky:

Thank you, Wolfgang, with this correction it works fine!

A few questions, if you don't mind:

1) what \setupinterlinespace


\setupinterlinespace comes in two version, with the complex version
you can change the values for the lineheight, e.g.

\setupinterlinespace[line=14pt]

while the simple version is used to adapt the linespacing to the current
font size (this works because ConTeXt use a relative distance), e.g.

\starttext
{\definedfont[Regular sa 1.5]\input ward\par}
{\definedfont[Regular sa 1.5]\setupinterlinespace\input ward\par}
\stoptext


\let\\=\blank


this saves the meaning for \blank in the \\ command, you could
have done it in this example also with \def\\{\blank}
means? I thought this setup can accept only values in brackets; I 
don't understand this construct.


2) Why I cannot use Part (with capital P)?


When you take a second look at the example you can find this line:

\definehead[Part][chapter]
3) I took the example from the wiki. Is the example still valid (even 
for  MkII)?


Except from a few minor changes regarding font handling in MkIV it 
should run without problems.


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] LuaTeX error ... object in use

2010-05-30 Thread Michael Saunders
Thanks, I added the line to the \@@bk block in str-flt.mkiv, but I
don't know how to remake the formats.  I tried:
mtxrun --script fonts --reload
luatools --generate
texexec --make --all
texexec --make --all --pdftex
texexec --make --all --xetex
luatools --generate
luatools --ini --compile --verbose cont-en
none of which had any effect on the output.  How do I remake the formats?

On Sun, May 30, 2010 at 6:35 AM, Hans Hagen  wrote:
> On 30-5-2010 1:24, Michael Saunders wrote:
>
>> " ! Undefined control sequence.
>>   \@@bklocation
>> \processaction ...->  \expandaction \!!stringa{#1
>>              } \ifx \!!stringa \empty \l..."
>
> in str-flt.mkiv there is a section
>
> \def\@@bknumbering  {\floatsharedparameter\c!numbering  } % global one
> \def\@@bkspaceafter {\floatsharedparameter\c!spaceafter } % global one
> \def\@@bkspacebefore{\floatsharedparameter\c!spacebefore} % global one
> \def\@@bknbottom    {\floatsharedparameter\c!nbottom    } % global one
> \def\@@bkntop       {\floatsharedparameter\c!ntop       } % global one
> \def\@@bknlines     {\floatsharedparameter\c!nlines     } % global one
> \def\@@bkmargin     {\floatsharedparameter\c!margin     } % global one
> \def\@@bkcache      {\floatsharedparameter\c!cache      } % global one
>
> can you add:
>
> \def\@@bklocation   {\floatsharedparameter\c!location   }
>
> and then remake the formats
>
> the bk namespace has been replaced (and this section is a temporary solution
> in the transition)
>
> 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] stelinterliniein

2010-05-30 Thread Vyatcheslav Yatskovsky

Thank you, Wolfgang, with this correction it works fine!

A few questions, if you don't mind:

1) what \setupinterlinespace
\let\\=\blank
means? I thought this setup can accept only values in brackets; I don't 
understand this construct.


2) Why I cannot use Part (with capital P)?

3) I took the example from the wiki. Is the example still valid (even 
for  MkII)?


--
Best Regards,
Vyatcheslav Yatskovsky



ConTeXt has for headers the key 'placehead' which controls
whether a header (placehead=yes) is shown or hidden (placehead=no)
but there is a third value (placehead=empty) which use the page key
for the header but hides the header itself. The default setup for
\part has the empty value for placehead and to show the content
you have to set

\setuphead[part][placehead=yes]

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] unicode subscripts

2010-05-30 Thread Hans Hagen

On 30-5-2010 4:52, Yury G. Kudryashov wrote:

Hans Hagen wrote:


On 29-5-2010 6:58, Yury G. Kudryashov wrote:

Hi!

Unicode subscripts do not work (at least, in math):

P.S.: Superscript digits work. Probably, the font contains ¹ but not ₁.


in which case ... do you expect that glyph? or maybe one special for
math? and does its size match the other superscripts that are not in the
font? these super/sub things are historic ballast and not that useful

anyhow, attached a way to deal with it in your document, but you have to
load it explicitly with \usemodule[mathcrap]

OK, I shall replace all unicode sub/sup scripts with _ and ^.

Is it possible to print some warnings/errors for such crappy characters? As
a user, I don't know in advance which characters are crappy.


there are

\checkcharactersinfont
\removemissingcharacters

(long time not tested)

for sure we can add some checking (for which i need to flag those code 
points in the char-def file)


-
  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] unicode subscripts

2010-05-30 Thread Hans Hagen

On 30-5-2010 5:01, Khaled Hosny wrote:


Those characters are not intended for use as real sub/superscripts, they
are their for "round trip compatibility" (AKA the source of all Unicode
discrepancies).


indeed, which is why using them is on user's own risk

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] unicode subscripts

2010-05-30 Thread Khaled Hosny
On Sun, May 30, 2010 at 03:35:12PM +0200, Hans Hagen wrote:
> On 29-5-2010 6:58, Yury G. Kudryashov wrote:
> >Hi!
> >
> >Unicode subscripts do not work (at least, in math):
> >
> >\starttext
> >$a₀₁₂₃₄₅₆₇₈₉₋₌₊$
> >\stoptext
> >
> >prints only "a". The file char-def.lua contains block like this:
> >  [0x2080]={
> >   category="no",
> >   description="SUBSCRIPT ZERO",
> >   direction="en",
> >   linebreak="al",
> >   specials={ "sub", 0x0030 },
> >   unicodeslot=0x2080,
> >  },
> >
> >Which file should handle this "specials={ "sub", 0x0030 }"?
> >
> >P.S.: Superscript digits work. Probably, the font contains ¹ but not ₁.
> 
> in which case ... do you expect that glyph? or maybe one special for
> math? and does its size match the other superscripts that are not in
> the font? these super/sub things are historic ballast and not that
> useful
> 
> anyhow, attached a way to deal with it in your document, but you
> have to load it explicitly with \usemodule[mathcrap]
> 
> as soon as math-stream interpretation (as for instance in msword) is
> introduced in mkiv i might consider some collapsing mechanism

Those characters are not intended for use as real sub/superscripts, they
are their for "round trip compatibility" (AKA the source of all Unicode
discrepancies).


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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] unicode subscripts

2010-05-30 Thread Yury G. Kudryashov
Hans Hagen wrote:

> On 29-5-2010 6:58, Yury G. Kudryashov wrote:
>> Hi!
>>
>> Unicode subscripts do not work (at least, in math):
>>
>> P.S.: Superscript digits work. Probably, the font contains ¹ but not ₁.
> 
> in which case ... do you expect that glyph? or maybe one special for
> math? and does its size match the other superscripts that are not in the
> font? these super/sub things are historic ballast and not that useful
> 
> anyhow, attached a way to deal with it in your document, but you have to
> load it explicitly with \usemodule[mathcrap]
OK, I shall replace all unicode sub/sup scripts with _ and ^.

Is it possible to print some warnings/errors for such crappy characters? As 
a user, I don't know in advance which characters are crappy.

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

2010-05-30 Thread Wolfgang Schuster

Am 30.05.10 15:32, schrieb Vyatcheslav Yatskovsky:

Use part in both occasions?
It works, but gives blank page:

\setuphead
  [part]
  [number=no,
   style={\ss\bfd}]
   %page=right]

\def\StartTitlePage
{\startstandardmakeup[doublesided=no,align=right,style={\switchtobodyfont[ss,18pt]}] 


   \setupbackgrounds[header][text][background=]
   \setupindenting[none]
   \setupinterlinespace
   \let\\=\blank}

\def\StopTitlePage
  {\par\vfill
   {\tfx Version \currentdate[year,-,mm,-,dd]}
   \stopstandardmakeup}

\definehead[TitlePage][part]

\setuphead
  [TitlePage]
  [before=\StartTitlePage,
   after=\StopTitlePage]

\starttext
\TitlePage{Hello}
\stoptext


ConTeXt has for headers the key 'placehead' which controls
whether a header (placehead=yes) is shown or hidden (placehead=no)
but there is a third value (placehead=empty) which use the page key
for the header but hides the header itself. The default setup for
\part has the empty value for placehead and to show the content
you have to set

\setuphead[part][placehead=yes]

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] unicode subscripts

2010-05-30 Thread Hans Hagen

On 29-5-2010 6:58, Yury G. Kudryashov wrote:

Hi!

Unicode subscripts do not work (at least, in math):

\starttext
$a₀₁₂₃₄₅₆₇₈₉₋₌₊$
\stoptext

prints only "a". The file char-def.lua contains block like this:
  [0x2080]={
   category="no",
   description="SUBSCRIPT ZERO",
   direction="en",
   linebreak="al",
   specials={ "sub", 0x0030 },
   unicodeslot=0x2080,
  },

Which file should handle this "specials={ "sub", 0x0030 }"?

P.S.: Superscript digits work. Probably, the font contains ¹ but not ₁.


in which case ... do you expect that glyph? or maybe one special for 
math? and does its size match the other superscripts that are not in the 
font? these super/sub things are historic ballast and not that useful


anyhow, attached a way to deal with it in your document, but you have to 
load it explicitly with \usemodule[mathcrap]


as soon as math-stream interpretation (as for instance in msword) is 
introduced in mkiv i might consider some collapsing mechanism


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
-
%D \module
%D   [   file=m-mathcrap,
%Dversion=2010.05.30,
%D  title=\CONTEXT\ Modules,
%D   subtitle=Math Crap,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright=PRAGMA ADE]
%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 This is meant for those who want to use the (incomplete and sort of useless)
%D unicode superscripts and subscripts. We should look ahead and collapse them
%D but I will only implement that in calcmath when the need is there. Now the
%D spacing can be somewhat non optimal but probably that does not matter here.
%D
%D \startbuffer
%D $a₀₁₂₃₄₅₆₇₈₉₋₌₊$
%D \stopbuffer
%D
%D \typebuffer \blank \getbuffer \blank

\unprotect

\unexpanded\def\mathunicodesupercrap#1{\mathortext{{^{#1}}}{\high{#1}}}
\unexpanded\def\mathunicodesubcrap  #1{\mathortext{{_{#1}}}{\low {#1}}}

\ifdefined\installanddefineactivecharacter\else

\def\installanddefineactivecharacter #1 #2% we need this as command
  {\normalexpanded{\noexpand\installactivecharacter \utfchar{#1} }%
   \defineactivecharacter #1 {#2}}

\fi

\installanddefineactivecharacter "2070 {\mathunicodesupercrap 0}
\installanddefineactivecharacter "00B9 {\mathunicodesupercrap 1}₀
\installanddefineactivecharacter "00B2 {\mathunicodesupercrap 2}₀
\installanddefineactivecharacter "00B3 {\mathunicodesupercrap 3}₀
\installanddefineactivecharacter "2074 {\mathunicodesupercrap 4}
\installanddefineactivecharacter "2075 {\mathunicodesupercrap 5}
\installanddefineactivecharacter "2076 {\mathunicodesupercrap 6}
\installanddefineactivecharacter "2077 {\mathunicodesupercrap 7}
\installanddefineactivecharacter "2078 {\mathunicodesupercrap 8}
\installanddefineactivecharacter "2079 {\mathunicodesupercrap 9}
\installanddefineactivecharacter "207A {\mathunicodesupercrap +}
\installanddefineactivecharacter "207B {\mathunicodesupercrap -}
\installanddefineactivecharacter "207C {\mathunicodesupercrap =}
\installanddefineactivecharacter "207D {\mathunicodesupercrap (}
\installanddefineactivecharacter "207E {\mathunicodesupercrap )}
\installanddefineactivecharacter "207F {\mathunicodesupercrap n}

\installanddefineactivecharacter "2080 {\mathunicodesubcrap   0}
\installanddefineactivecharacter "2081 {\mathunicodesubcrap   1}
\installanddefineactivecharacter "2082 {\mathunicodesubcrap   2}
\installanddefineactivecharacter "2083 {\mathunicodesubcrap   3}
\installanddefineactivecharacter "2084 {\mathunicodesubcrap   4}
\installanddefineactivecharacter "2085 {\mathunicodesubcrap   5}
\installanddefineactivecharacter "2086 {\mathunicodesubcrap   6}
\installanddefineactivecharacter "2087 {\mathunicodesubcrap   7}
\installanddefineactivecharacter "2088 {\mathunicodesubcrap   8}
\installanddefineactivecharacter "2089 {\mathunicodesubcrap   9}
\installanddefineactivecharacter "208A {\mathunicodesubcrap   +}
\installanddefineactivecharacter "208B {\mathunicodesubcrap   -}
\installanddefineactivecharacter "208C {\mathunicodesubcrap   =}
\installanddefineactivecharacter "208D {\mathunicodesubcrap   (}
\installanddefineactivecharacter "208E {\mathunicodesubcrap   )}
\installanddefineactivecharacter "2090 {\mathunicodesubcrap   A}
\installanddefineactivecharacter "2091 {\mathunicodesubcrap   E}
\installanddefineactivecharacter "2092 {\mathunicodesubcrap   O}
\installanddefineactivecharacter "2093 {\mathunicodesubcrap   X}
%installanddefineactivecharacter "2094 {\mathunicodesubcrap   ?} % SCHWAA

\protect \endinput
_

Re: [NTG-context] stelinterliniein

2010-05-30 Thread Wolfgang Schuster

Am 30.05.10 14:56, schrieb Vyatcheslav Yatskovsky:

\setuphead
  [Part]
  [number=no,
   style={\ss\bfd}]
   %page=right]

\definehead[TitlePage][Part]


Use 'part' not 'Part'.

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] stelinterliniein

2010-05-30 Thread Vyatcheslav Yatskovsky

Thank you, Wolfgang, but I gen an error with this:

\setuphead
  [Part]
  [number=no,
   style={\ss\bfd}]
   %page=right]

\def\StartTitlePage
{\startstandardmakeup[doublesided=no,align=right,style={\switchtobodyfont[ss,18pt]}]
   \setupbackgrounds[header][text][background=]
   \setupindenting[none]
   \setupinterlinespace
   \let\\=\blank}

\def\StopTitlePage
  {\par\vfill
   {\tfx Version \currentdate[year,-,mm,-,dd]}
   \stopstandardmakeup}

\definehead[TitlePage][Part]

\setuphead
  [TitlePage]
  [before=\StartTitlePage,
   after=\StopTitlePage]

\starttext
\TitlePage{Hello}
\stoptext

--

! Missing number, treated as zero.

   s
 s
amepage--1
\addaskedblankskip ...nce \blankskip #1\dimexpr #2
  \relax
l.6 }

\dovspacingyes ...ument #1\else \s!default \fi ")}
  \fi
\dopreventbreakafterstructureheadauto ...adlevel ]
  \fi
...
l.27 \TitlePage{Hello}

?

--
Best Regards,
Vyatcheslav Yatskovsky
___
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] stelinterliniein

2010-05-30 Thread Wolfgang Schuster

Am 30.05.10 13:45, schrieb Vyatcheslav Yatskovsky:

Hello,

What \stelinterliniein means in the following (taken from Skdk style).

\def\StartTitlePage%
{\startstandardmakeup[doublesided=no]
\setupbackgrounds[header][text][background=]
\switchtobodyfont[ss,18pt]
\setupalign[right]
\setupindenting[0pt]
\stelinterliniein
\vfil
\let\\=\blank}


I suppose that it is \setupinterlinespace, but it does not work without
arguments, as seen in my minimal example:


---

\setuphead
[Part]
[number=no,
style={\ss\bfd},
page=right]

\def\StartTitlePage%
{\startstandardmakeup[doublesided=no]
\setupbackgrounds[header][text][background=]
\switchtobodyfont[ss,18pt]
\setupalign[right]
\setupindenting[0pt]
\setupinterlinespace
\vfil
\let\\=\blank}


\def\StartTitlePage

{\startstandardmakeup[doublesided=no,align=right,style={\switchtobodyfont[ss,18pt]}]
   \setupbackgrounds[header][text][background=]
   \setupindenting[none]
   \setupinterlinespace
   \let\\=\blank}


\def\StopTitlePage%
{\vfill
{\tfx Version \currentdate[year,-,mm,-,dd] }

\stopstandardmakeup
}


add \par:

\def\StopTitlePage
  {\par\vfill
   {\tfx Version \currentdate[year,-,mm,-,dd]}
   \stopstandardmakeup}


\def\TitlePage#1{\StartTitlePage\Part{#1}\StopTitlePage}


also possible:

\definehead[TitlePage][part]

\setuphead
  [TitlePage]
  [before=\StartTtitlePage,
   after=\StopTitlePage]

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] setups in typescripts

2010-05-30 Thread Bernhard Rosensteiner
Am 30.05.2010 um 10:51 schrieb Wolfgang Schuster:

> Am 30.05.10 10:18, schrieb Bernhard Rosensteiner:
>> Hello,
>> 
>> i have made a typescript which works. the only thing is that i have in my 
>> typescript something like:
>> 
>> \startsetups [fallbackfonts]
>> …
>> \stopsetups
>> 
>> \starttypescript [bla]
>> \setups[fallbackfonts]
>> …
>> \stoptypescript
>> 
>> referring in my document to the typescriptfile with 
>> \usetypescriptfile[Mytypescript] does not load the setups and so the font 
>> fallback is not working (obviously \usetypescriptfile only loads the 
>> typescripts).
>> When i do:
>> 
>> \input Mytypescript
>> 
>> in the document all works as expected. So my question is how can i load 
>> setups with \usetypescriptfile
>> Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know 
>> how it is recognized by context. Please help.
>> 
> 
> Can you show use your typescripts and the setups for the fallback fonts.

second try (i think i have something messed up with the email format…):

ok i have boiled it down as minimal as possible (2 files in attachment). I have 
commented out line 123 in my typescript:

%\definefontsynonym[SansSubhead-SemiBold]   
[file:CronosPro-SemiboldSubh]   [features=default]

so according to my \startsetups[font:optical:sans:fallback] (line 3 in 
typescript) it should do:

\definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] (line 60 typescript)

but it doesn´t.

the line \definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] in my 
document restores the wanted behaviour.
So \startsetups … \stopsetups don´t get loaded from the \usetypescriptfile 
command.

i hope i have made it clear what i mean.

best regards
Bernhard



test.tex
Description: Binary data


type-garamondcronos.tex
Description: Binary data


test.log
Description: Binary data


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

2010-05-30 Thread Vyatcheslav Yatskovsky

Hello,

What \stelinterliniein means in the following (taken from Skdk style).

\def\StartTitlePage%
  {\startstandardmakeup[doublesided=no]
   \setupbackgrounds[header][text][background=]
   \switchtobodyfont[ss,18pt]
   \setupalign[right]
   \setupindenting[0pt]
   \stelinterliniein
   \vfil
   \let\\=\blank}


I suppose that it is \setupinterlinespace, but it does not work without 
arguments, as seen in my minimal example:



---

\setuphead
  [Part]
  [number=no,
   style={\ss\bfd},
   page=right]

\def\StartTitlePage%
  {\startstandardmakeup[doublesided=no]
   \setupbackgrounds[header][text][background=]
   \switchtobodyfont[ss,18pt]
   \setupalign[right]
   \setupindenting[0pt]
   \setupinterlinespace
   \vfil
   \let\\=\blank}

\def\StopTitlePage%
  {\vfill
   {\tfx Version \currentdate[year,-,mm,-,dd] }

   \stopstandardmakeup
   }

\def\TitlePage#1{\StartTitlePage\Part{#1}\StopTitlePage}



\starttext
\TitlePage{Hello}
\stoptext



Regards,
Vyatcheslav
___
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 error ... object in use

2010-05-30 Thread Hans Hagen

On 30-5-2010 1:24, Michael Saunders wrote:


" ! Undefined control sequence.
  \@@bklocation
\processaction ...->  \expandaction \!!stringa{#1
  } \ifx \!!stringa \empty \l..."


in str-flt.mkiv there is a section

\def\@@bknumbering  {\floatsharedparameter\c!numbering  } % global one
\def\@@bkspaceafter {\floatsharedparameter\c!spaceafter } % global one
\def\@@bkspacebefore{\floatsharedparameter\c!spacebefore} % global one
\def\@@bknbottom{\floatsharedparameter\c!nbottom} % global one
\def\@@bkntop   {\floatsharedparameter\c!ntop   } % global one
\def\@@bknlines {\floatsharedparameter\c!nlines } % global one
\def\@@bkmargin {\floatsharedparameter\c!margin } % global one
\def\@@bkcache  {\floatsharedparameter\c!cache  } % global one

can you add:

\def\@@bklocation   {\floatsharedparameter\c!location   }

and then remake the formats

the bk namespace has been replaced (and this section is a temporary 
solution in the transition)


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 error ... object in use

2010-05-30 Thread Michael Saunders
>How is the [body] feature defined?

\definefontfeature[body][default][onum=yes,pnum=yes,calt=yes,protrusion=quality,expansion=quality]

\definefontfeature[in][body][sinf=yes]%inferior
\definefontfeature[su][body][sups=yes,ordn=yes]%superior
\definefontfeature[nu][body][numr=yes]%numerator
\definefontfeature[de][body][dnom=yes]%denominator
in{\addff{in}123}
su{\addff{su}123abc}
nu{\addff{nu}123}
de{\addff{de}123}

The numerals all come out as proportional oldstyle, but the letters work.  So,
sinf, sups, numr, and dnom are failing but ordn works.

I was thinking---besides updating to 0.60 yesterday, I was also trying
to test Stix fonts, so I ran:
mtxrun --script fonts --reload
luatools --generate
Maybe a change in mtxrun or luatools broke these features?


About my other problem---the strange one that's hard to isolate, and
which appeared this way in 0.50:

! LuaTeX error ...imal/tex/texmf-context/tex/context/base/lpdf-ini.lua:345:
pdf.immediateobj() object in use

and this way in 0.60:

" ! Undefined control sequence.
 \@@bklocation
\processaction ...-> \expandaction \!!stringa{#1
 } \ifx \!!stringa \empty \l..."

I'm still having a very hard time isolating a short example---e.g., I
spent the evening discovering this:  near the end of about seven pages
of typeset text, I have the following string in my input file:

"become more obvious as we examine the phenomena"

This works:
become more obvious as %we examine the phenomena
and this fails:
become more obvious as we %examine the phenomena

I know the word "we" isn't the problem.  Maybe it has something to do
with the length of the text, but that doesn't seem quite right either.
___
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 error ... object in use

2010-05-30 Thread Taco Hoekwater

Michael Saunders wrote:

In addition, everything involving inferiors, superiors, numerators and
denominators is now broken.  For example:

\definefontfeature[in][body][sinf=yes]%inferior
Cs{\setff{in}133}


has no effect.



This depends on whether the font supports the sinf feature. The
default fonts do not.


Mine does.  It worked in 0.50.   Maybe the name of the feature "sinf" changed?


How is the [body] feature defined?


___
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] setups in typescripts

2010-05-30 Thread Bernhard Rosensteiner
ok i have boiled it down as minimal as possible (2 files in attachment). I have 
commented out line 123 in my typescript:

%\definefontsynonym[SansSubhead-SemiBold]   
[file:CronosPro-SemiboldSubh]   [features=default]

so according to my \startsetups[font:optical:sans:fallback] (line 3 in 
typescript) it should do:

\definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] (line 60 typescript)

but it doesn´t.

the line \definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] in my 
document restores the wanted behaviour.
So \startsetups … \stopsetups don´t get loaded from the \usetypescriptfile 
command.

i hope i have made it clear what i mean.

best regards
Bernhard



test.tex
Description: Binary data


type-garamondcronos.tex
Description: Binary data


test.log
Description: Binary data


Am 30.05.2010 um 10:51 schrieb Wolfgang Schuster:

> Am 30.05.10 10:18, schrieb Bernhard Rosensteiner:
>> Hello,
>> 
>> i have made a typescript which works. the only thing is that i have in my 
>> typescript something like:
>> 
>> \startsetups [fallbackfonts]
>> …
>> \stopsetups
>> 
>> \starttypescript [bla]
>> \setups[fallbackfonts]
>> …
>> \stoptypescript
>> 
>> referring in my document to the typescriptfile with 
>> \usetypescriptfile[Mytypescript] does not load the setups and so the font 
>> fallback is not working (obviously \usetypescriptfile only loads the 
>> typescripts).
>> When i do:
>> 
>> \input Mytypescript
>> 
>> in the document all works as expected. So my question is how can i load 
>> setups with \usetypescriptfile
>> Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know 
>> how it is recognized by context. Please help.
>>   
> 
> Can you show use your typescripts and the setups for the fallback fonts.
> 
> 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
> ___

___
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] setups in typescripts

2010-05-30 Thread Wolfgang Schuster

Am 30.05.10 10:18, schrieb Bernhard Rosensteiner:

Hello,

i have made a typescript which works. the only thing is that i have in my 
typescript something like:

\startsetups [fallbackfonts]
…
\stopsetups

\starttypescript [bla]
\setups[fallbackfonts]
…
\stoptypescript

referring in my document to the typescriptfile with 
\usetypescriptfile[Mytypescript] does not load the setups and so the font 
fallback is not working (obviously \usetypescriptfile only loads the 
typescripts).
When i do:

\input Mytypescript

in the document all works as expected. So my question is how can i load setups 
with \usetypescriptfile
Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how 
it is recognized by context. Please help.
   


Can you show use your typescripts and the setups for the fallback fonts.

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] is this valid usage of \def?

2010-05-30 Thread Wolfgang Schuster

Am 30.05.10 01:33, schrieb Rogutės Sparnuotos:

Hello,

Could someone please confirm that it is ok to use \def like this:

   \def\ru{\switchtobodyfont[cyr]\language[ru]}
   \starttext
   \item {\ru Эйхенбаум, Борис. {\it Теория «формального метода»}.}
 Some other text in the main language.
   \stoptext

This is MkII with XeTeX, cyr is defined as

   \definetypeface[cyr][rm][Xserif][CMU Serif]
   \definetypeface[cyr][ss][Xsans][CMU Sans Serif]
   \definetypeface[cyr][tt][Xmono][CMU Typewriter Text]

because 'Latin Modern' lacks cyrillic glyphs and 'Computer Modern Unicode'
lacks some Lithuanian glyphs (and looks slightly different).
   


In MkIV you can set falback fonts for cyrillic etc.

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] 64-bit kfreebsd

2010-05-30 Thread Michael Krauss
On Sat, 29 May 2010 14:11:44 +0200 Alan BRASLAU wrote:

> uname -suname -muname -p
> 
> Intel Q9400 (Core2 Quad):
> FreeBSD amd64   amd64
> GNU/kFreeBSDx86_64  amd64
> Linux   x86_64  unknown
> 32bit os (same processor):
> FreeBSD ? (untested)?
> GNU/kFreeBSDi686i386
> GNU/Linux   i686unknown
> 
> Intel pentium 4:
> FreeBSD ? (untested)?
> GNU/kFreeBSDi686i386
> GNU/Linux   i686unknown
> 

I have collected data from two different machines with a FreeBSD 8.0
i386 LiveCD:

uname -suname -muname -p

Intel E6300 (Core2 Duo):
 FreeBSD amd64   amd64
 32bit os (same processor):
 FreeBSD i386i386

Intel Pentium M:
 FreeBSD i386i386

> The official 64bit OS name is "amd64" for FreeBSD, GNU/kFreeBSD and
> Linux. However, uname -m gives differing results and depends on the
> version of the running OS, not the real underlying processor; A 64bit
> processor can run a 32bit OS.

So both (uname -m and uname -p) don't depend on the installed CPU just
on the version of FreeBSD. Probably the implementation of uname(3) is
different in FreeBSD libc und GNU libc. Unix is such a homogeneous
environment, isn't it ;-)


Kind regards,
Michael Krauss
___
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] setups in typescripts

2010-05-30 Thread Bernhard Rosensteiner
Hello,

i have made a typescript which works. the only thing is that i have in my 
typescript something like:

\startsetups [fallbackfonts]
…
\stopsetups

\starttypescript [bla]
\setups[fallbackfonts]
…
\stoptypescript

referring in my document to the typescriptfile with 
\usetypescriptfile[Mytypescript] does not load the setups and so the font 
fallback is not working (obviously \usetypescriptfile only loads the 
typescripts).
When i do: 

\input Mytypescript

in the document all works as expected. So my question is how can i load setups 
with \usetypescriptfile
Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how 
it is recognized by context. Please help.

best regards
Bernhard



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