Re: [NTG-context] typescript and font features bug?

2008-09-21 Thread Yue Wang

 Maybe that's why text in The Elements of Typographic Style disable the
 dlig feature?
 (In fact I love them and always enable dlig in my documents)

BTW, all Adobe Fonts have  a bug: they puts ligatures like Th into the
liga feature, not dlig.



 But it is strange that other engines render it well...


I know why now: I have two different copies in texmf-fonts and osfontdir...
___
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] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-21 Thread Robert Blackstone
Hello Mojca,

I seem to have run into the same or similar problems as Otared Kavian.

I followed the instructions on the ConTeXt wiki, but the command

''luatools --generate'' gives the error message:


'LuaTools | error unable to identify cnf file

LuaTools | error unable to identify cnf file

LuaTools | no cnf files found (TEXMFCNF may not be set/known)

LuaTools |

LuaTools | runtime: 0.008 seconds',


regardless of the directory from which I issue the command, and though there
is a 28 KB file texmf.cnf sitting in /usr/local/texlive/2008/texmf/web2c.

As you succeeded in updating ConTeXt, luatex binary and ConTeXt scripts
manually, could you please share the method with us. I for one am not
sufficiently trained in unix to go there all by myself.

(I'm working on a G4 PowerBook under OSX-10.4.11)


Thank you in advance.

Robert Blackstone
___
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] XeTeX old style numerals

2008-09-21 Thread Hans Hagen
Yue Wang wrote:
 The problem is that that's only a dirty trick that is not supposed to
 work and might stop working in the future, so I would rather try not
 to rely on it. A better interface for XeTeX typescripts (something
 similar to fontspec) is missing heavily.

 
 I prefer use opentype features  than add some non-standard
 definition like fontspec.

i have no clue what you mean here

 so I dont think fontspec do a good job.

 You can always use
 \definefontfeature
  [myfontfeatures]
  [script=latn,language=dflt,liga=yes,kern=yes,tlig=yes,onum=yes,
 =yes, =yes]

\definefontfeature
  [oldstyle]
  [script=latn,language=dflt,liga=yes,kern=yes,tlig=yes,onum=yes]

\definefontfeature
  [myoldstyle]
  [oldstyle]
  [=yes,=yes]

 \definefontsynonym[a font name][a physical font][features=myoldstyle]


-
   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] [Linux] font name database

2008-09-21 Thread Hans Hagen
Alan Stone wrote:
 Hi,
 
 I'm trying to get the list of currently known fonts through
 
 mtxrun --script fonts --list
 
 under SciTE/Ubuntu and get the following message
 
 text/tex/texmf-context/tex/context/base/font-syn.lua:278: attempt
 to index field 'data' (a nil value)
 
 What's that ?

probably a failure to either save or load the database; could be 
anything; is there a names.tma in the cache?

i'll add an error message


-
   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] modes questions

2008-09-21 Thread Hans Hagen
Alan Stone wrote:
 On Sat, Sep 20, 2008 at 6:07 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 
 Alan Stone wrote:
 Are such macros possible ?

 modes: ma, mb, ... mz
 values: va, vb, ... vz
 command: cmd
 parameter: p

 (1) instead of

 \doifmode{ma}{\cmd[name][va]}
 \doifmode{mb}{\cmd[name][vb]}
 
 \doifmode{mz}{\cmd[name][vz]}

 a macro which does: \doifmode{m*}{\cmd[name][v*]}

 (2) instead of

 \doifmode{ma}{\cmd[p=va]}
 \doifmode{mb}{\cmd[p=vb]}
 
 \doifmode{mz}{\cmd[p=vz]}

 a macro which does: \doifmode{m*}{\cmd[p=v*]}
 nl, because there is no knowledge of what modes are set (i could cook
 something up for mkiv or course)


 
 Is there something like, or the equivalent of, one/two dimensional arrays in
 (Con)TeXt ?
 
 array1={ma, mb, ... mz}
 array2={va, vb, ... vz}

comma separated lists are used at several spots

but usage really depends on the problem to be solved

-
   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] typescript and font features bug?

2008-09-21 Thread Hans Hagen
Yue Wang wrote:
 I can confirm it is related to the frac featue.
 The fonts in Acrobat Reader work ok.

they might not hav eall features; also, they're not supposed to be used 
other than in acrobat

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


[NTG-context] humble request: Minimals for linux ppc

2008-09-21 Thread Piotr Kopszak
Any chance for that in the near future? 

Otherwise, be warned :) I will
probably flood the list with questions  how to make texlive debian-lenny-ppc
installation work with mkIV (Sadly new xml mkIV commands don't work on
ppc, although  they do on my other x86_64 linux box).

Piotr

-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   kle ---  http://okle.pl
   http://www.magnatune.com/artists/altri_stromenti

___
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] [Linux] font name database

2008-09-21 Thread Piotr Kopszak
On Sat, Sep 20, 2008 at 08:04:46PM +0200, Alan Stone wrote:
 Hi,
 
 I'm trying to get the list of currently known fonts through
 
 mtxrun --script fonts --list
 
 under SciTE/Ubuntu and get the following message
 
 ..text/tex/texmf-context/tex/context/base/font-syn.lua:278: attempt
 to index field 'data' (a nil value)
 
 What's that ?
 
 -- 
 Best,
 Alan

Are you using Minimals or Ubuntu installation of ConTeXt?

Piotr
-- 

   Piotr Kopszak, Ph.D.
   Polish Art Gallery, National Museum in Warsaw
   kle ---  http://okle.pl
   http://www.magnatune.com/artists/altri_stromenti

___
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] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-21 Thread Mojca Miklavec
On Sun, Sep 21, 2008 at 9:55 AM, Robert Blackstone wrote:
 Hello Mojca,

 I seem to have run into the same or similar problems as Otared Kavian.
 I followed the instructions on the ConTeXt wiki, but the command

 ''luatools --generate'' gives the error message:
 'LuaTools | error unable to identify cnf file
 LuaTools | error unable to identify cnf file
 LuaTools | no cnf files found (TEXMFCNF may not be set/known)
 LuaTools |
 LuaTools | runtime: 0.008 seconds',

 regardless of the directory from which I issue the command, and though there
 is a 28 KB file texmf.cnf sitting in /usr/local/texlive/2008/texmf/web2c.

This has been known before the TL freeze, but Hans and Taco were
afraid to break other things if they upgraded ConTeXt. The issue only
affects mkiv on MacTeX, but users of mkiv should update frequently
anyway.

 As you succeeded in updating ConTeXt, luatex binary and ConTeXt scripts
 manually, could you please share the method with us. I for one am not
 sufficiently trained in unix to go there all by myself.

 (I'm working on a G4 PowerBook under OSX-10.4.11)

There are many different ways to do that. I use(d) the following
(hopefully no typos):

# update luatex - single line
# you can also use osx-ppc instead of osx-universal
# alternatively, use /usr/local/texlive/2008/bin/universal-darwin
instead of /usr/texbin
# on other platforms change accordingly
rsync -av 
rsync://contextgarden.net/minimals/current/bin/luatex/osx-universal/bin/luatex
/usr/texbin/

# update context - single line (you can also use beta instead of last current)
rsync -av rsync://contextgarden.net/minimals/current/context/current/
/usr/local/texlive/2008/texmf-dist/

I have also created (but it's not really needed)
/usr/local/texlive/2008/texmf/web2c/texmfcnf.lua
with

local conf = {}
conf.TEXMFCACHE = ~/Library/Caches/luatex
return conf

Of course you also need:

mktexlsr
texexec --make --all
texexec --make --xtx --all
luatools --generate
context --make

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] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-21 Thread Mojca Miklavec
On Sat, Sep 20, 2008 at 12:08 PM, Otared Kavian wrote:

 On 19 sept. 08, at 20:31, Mojca Miklavec wrote:

 On Fri, Sep 19, 2008 at 6:56 PM, Otared Kavian wrote:

 Has something changed recently in the ways

 TEXMFCNF has to be set?

Thanks to Oliver's pressing on Hans  Taco :), you don't need to set
anything any more.
And yes, that has been changed after TL freeze.

 On Mac, the situation with LuaTeX configuration has changed
 *considerably* and in some very important ways after ConTeXt  LuaTeX
 have been frozen for TeX Live.

 Hi Mojca,
 Thanks for the information.
 How can one find out how to adapt the new parameters (TEXMFCNF, and alike)?

I would not adapt anything apart from TEXMFCACHE.

 I updated ConTeXt, luatex binary and ConTeXt scripts manually, and it
 works fine now, though I never use --updatecontext.

 What do you mean by manually? Do you mean unzipping the file
 context/current/cont-tmf.zip or context/beta/cont-tmf.zip
 into
 /usr/local/texlive
 or into either of
 /usr/local/texlive/2008
 or /usr/local/texlive/texmf-local ?
 Thanks again for your attention: OK

See the other post. I update ConTeXt directly into
/usr/local/texlive/2008/texmf-dist, though updating into texmf-local
or into ~/.texlive2008 would be just as valid. I update with rsync,
but using the zips is just as fine.

Apart from ConTeXt you also need to update LuaTeX binary (/usr/texbin
= /usr/local/texlive/2008/bin/universal-darwin).
Again - see the other post.

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] [Linux] font name database

2008-09-21 Thread Hans Hagen
Alan Stone wrote:
 On Sun, Sep 21, 2008 at 6:04 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 Alan Stone wrote:
 Hi,

 I'm trying to get the list of currently known fonts through

 mtxrun --script fonts --list

 under SciTE/Ubuntu and get the following message

 text/tex/texmf-context/tex/context/base/font-syn.lua:278: attempt
 to index field 'data' (a nil value)

 What's that ?
 probably a failure to either save or load the database; could be
 anything; is there a names.tma in the cache?

 i'll add an error message
 
 no *.tma files in /opt/context

should be in the cache path, for instance on my machine ...

  Directory of 
c:\temp\luatex-cache\context\3addaf6083634dad22ef3141c83e8289\fonts\data

17-09-2008  15:31DIR  .
17-09-2008  15:31DIR  ..
17-09-2008  15:31   241.315 names.tma
17-09-2008  15:31   268.061 names.tmc

you can locate the cach epath woth

luatools --verbose --generate



-
   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] humble request: Minimals for linux ppc

2008-09-21 Thread Mojca Miklavec
On Sun, Sep 21, 2008 at 10:18 PM, Piotr Kopszak wrote:
 Any chance for that in the near future?

Any chance that you provide the binaries (and that you do that on a
more or less regular basis; or let's say once per month)?

svn co http://svn.contextgarden.net/minimals-src/build-binaries

Change the first few lines in both scripts, so that your platform will
resolve to linux-ppc (if you have problems with that, feel free to ask
for help).

case $system in
  # linux
  Linux)
case $cpu in
  i*86) platform=linux ;;
  x86_64|ia64) platform=linux-64 ;;
  *) platform=unknown ;;
esac ;;
  # Mac OS X
  Darwin)
case $cpu in
  ppc*|powerpc|power*|Power*) platform=osx-ppc ;;
  i*86) platform=osx-intel ;;
  *) platform=unknown ;;
esac ;;

Once you build the binaries successfully, we'll add the platform 
give you the rights to commit new versions of binaries.

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] Updating LuaTeX on MacTeX-TeXLive 2008

2008-09-21 Thread Mojca Miklavec
On Thu, Sep 18, 2008 at 7:03 PM, Otared Kavian wrote:
 Dear ConTeXters,

 I just updated my TeX installation with the latest MacTeX-TeXLive
 2008, and since the version of LuaTeX included there was 0.25.0, I
 built a binary version
 LuaTeX, Version snapshot-0.29.0-2008091817.

 Now the problem is that my usual procedure for generating mkiv doesn't
 work and I couldn't fix the problem… (That procedure used to work fine
 with the previous version of MacTeX-TeXLive 2008).

...
 I should say that I execute also the commands
 export TEXMFCACHE=/tmp
 export TEXMFCNF=/usr/local/texlive/2008/texmf/web2c/
 export TEXMF={/Users/kavian/Library/texmf,/usr/local/texlive/2008/
 texmf-config,/usr/local/texlive/2008/texmf-var,/usr/local/texlive/
 2008/../texmf-local,/usr/local/texlive/2008/texmf-dist,/usr/local/
 texlive/2008/texmf,/usr/local/texlive/texmf-local}
 export LUAINPUTS={/usr/local/texlive/texmf-local/tex/context/base,/
 usr/local/texlive/texmf-local/scripts/context/lua}
 export OSFONTDIR={/Users/kavian/Library/Fonts,/Library/Fonts}
 export TEXMFSCRIPTS={$TEXMF/scripts/context/,$TEXMF/tex/context/base}

None of these setting should be necessary any more, except for
TEXMFCACHE that you might set if you don't like luatex-cache to be
created in your home. But some answer is in the other thread.

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] [Linux] font name database

2008-09-21 Thread Alan Stone
On Sun, Sep 21, 2008 at 10:49 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 no *.tma files in /opt/context

 should be in the cache path, for instance on my machine ...

  Directory of
 c:\temp\luatex-cache\context\3addaf6083634dad22ef3141c83e8289\fonts\data

 17-09-2008  15:31DIR  .
 17-09-2008  15:31DIR  ..
 17-09-2008  15:31   241.315 names.tma
 17-09-2008  15:31   268.061 names.tmc

 you can locate the cach epath woth

 luatools --verbose --generate

Did luatools --verbose --generate, then searched for *.tma, then names
in /opt/context and the only one found was contextnames.txt

Then ran mtxrun --script fonts --list again and now there's names.tma
and names.tmc.

Thanks.

-- 
Best,
Alan

 Ubuntu 8.04 Hardy Heron (Desktop)
 * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int:
english/english (ConTeXt minimals installation)
 * texexec --lua foo
 Windows XP Home SP3
 * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int:
english/english (ConTeXt minimals installation)
 * texmfstart texexec --lua foo
___
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] URL bug

2008-09-21 Thread Alan Stone
Does this mean... dump Windows XP ?


On Sat, Sep 20, 2008 at 2:25 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 On Sat, Sep 20, 2008 at 2:08 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Alan Stone wrote:
  Tested the following...
 
  \starttext
 
  \useURL [myURL] [http://www.a.com] [] [wxyz]
 
  1. \url[myURL] \blank
  2. \goto{wherever}[url(myURL)] \blank


 \setupinteraction[state=start]

 \useURL [myURL] [http://www.a.com] [] [wxyz]

 \starttext
 \url[myURL] \blank
 \goto{wherever}[url(myURL)] \blank
 \from[myURL] \blank
 \stoptext

 \url[myURL] \blank

 compiles, but outputs a http//www.a.com hyperlink

 The two other ones generate compile errors.
 --
 Best,
 Alan

 * texmfstart texexec --lua foo
 * ConTeXt  ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20  int: english/english
 * Windows XP Home SP3


-- 
Best,
Alan

 Ubuntu 8.04 Hardy Heron (Desktop)
 * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int:
english/english (ConTeXt minimals installation)
 * texexec --lua foo
 Windows XP Home SP3
 * ConTeXt ver: 2008.09.16 19:49 MKIV fmt: 2008.9.20 int:
english/english (ConTeXt minimals installation)
 * texmfstart texexec --lua foo
___
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
___