[NTG-context] Line Numbering (blank lines)

2010-06-13 Thread David Abdurachmanov

Hi,
How make ConTeXt to number blank lines? Blank lines by default are skipped. 
Especially when giving programming examples (source code) in ConTeXt documents, 
I would prefer blank lines still have number. 
david 
_
Hotmail: Free, trusted and rich email service.
https://signup.live.com/signup.aspx?id=60969___
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] Error in installing new beta (was: status message of mtxrun --ifchanged)

2010-06-13 Thread luigi scarso
 /tmp/context/bin/mtxrun:8497: bad argument #3 to 'format' (string expected,
 got no value)


 I am on linux-64, if that matters.
The same on my  linux 32bit box

-- 
luigi
___
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] Error in installing new beta (was: status message of mtxrun --ifchanged)

2010-06-13 Thread Thomas A. Schmitz

On Jun 13, 2010, at 1:49 AM, Aditya Mahajan wrote:

 Updating using first-setup.sh gives (also tried a fresh install, the same 
 error)
 
 
 sent 32402 bytes  received 7755726 bytes  65172.62 bytes/sec
 total size is 30315844  speedup is 3.89
 MTXrun | run: rsync -rpztlv 
 contextgarden.net::'minimals/current/misc/setuptex/' '/tmp/context/tex/.'
 receiving incremental file list
 ./
 setuptex
 setuptex.bat
 setuptex.csh
 setuptex.tmf
 
 sent 109 bytes  received 6545 bytes  1209.82 bytes/sec
 total size is 16420  speedup is 2.47
 MTXrun | mtx update: updating mtxrun for linux-64: rsync -tgo --chmod=a+x 
 /tmp/context/tex/texmf-context/scripts/context/lua/mtxrun.lua 
 /tmp/context/tex/texmf-linux-64/bin/mtxrun
 MTXrun | run: rsync -tgo --chmod=a+x 
 /tmp/context/tex/texmf-context/scripts/context/lua/mtxrun.lua 
 /tmp/context/tex/texmf-linux-64/bin/mtxrun
 /tmp/context/bin/mtxrun:8497: bad argument #3 to 'format' (string expected, 
 got no value)
 
Same error here on OS X. And another question: I couldn't get my TEXMFHOME 
recognized under linux-32. One problem was that it is set to ~/texmf-home. I 
would suggest setting this value back to the canonical ~/texmf. (I had more 
problems, but I'll have to reboot into linux in order to verify). 

All best

Thomas
___
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] sgf package

2010-06-13 Thread Ivo Solnický
Thank you for your info. I am interested in improving games module,
but I will send you private e-mail.

Ivo

On Thu, Jun 10, 2010 at 10:40 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 Am 10.06.10 14:48, schrieb Ivo Solnický:

 Hi,

 what is the status of the SGF package? When I wanted to install it
 (extras=t-sgf), the installation failed and it did not install even
 with the option extras=all. When I manually downloaded and installed
 it (version 1.0.5), a compilation of included examples ended with the
 following error:


 The package is no longer maintained, you get the error message because
 ConTeXt
 commands to create constants (\c!...) and variables (\v!...) changed after
 the module was released and the module was never updated after this change.

 You can try the games module, it's in a beta state since a while but at
 least
 i plan to finish it in the future (sorry but i can't give a date), here
 is a example for the usage:

 \usemodule[games]

 \starttext

 \startTEXpage[offset=5mm]

 \startgoban[size=small,option=sgf]
 (;C[First move in game
 123]B[aa]AW[aa];W[bb](;B[cc](;B[dd];W[ee][ff](;B[ff]);W[gg]));W[hh])
 \stopgoban

 \stopTEXpage

 \stoptext

 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] ↦ in xits

2010-06-13 Thread Hans Hagen

On 12-6-2010 11:09, Hans Hagen wrote:


Ideally, it should be done the other way around, fake U+21A6 in Latin
Modern virtual font and then use the proper code point everywhere (may
be this what is actually done but I misinterpreted it).


indeed the idea is to have only the right unicode chars (we already fake
some in virtual lm)


the beta has some more virtual lm chars so this should work ok now

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] Error in installing new beta

2010-06-13 Thread Hans Hagen

On 13-6-2010 1:49, Aditya Mahajan wrote:

On Sat, 12 Jun 2010, Hans Hagen wrote:


On 11-6-2010 4:19, Aditya Mahajan wrote:

Hi,

When I run mtxrun --ifchanged, it echoes the status messages on stdout.
This makes it impossible to use mtxrun --ifchanged as part of a standard
unix pipe. What is the right way to resolve this?

* Output these messages to stderr rather than stdout?
* Provide a --silent option mtxrun that suppresses all output?

I can parse the generated output and remove the lines starting with
MTXrun, but that is no fun.


after discussing it (as well as more generic suppresion message in the
engine) taco and i decided to go for --verbose instead

new beta


Updating using first-setup.sh gives (also tried a fresh install, the
same error)


sent 32402 bytes received 7755726 bytes 65172.62 bytes/sec
total size is 30315844 speedup is 3.89
MTXrun | run: rsync -rpztlv
contextgarden.net::'minimals/current/misc/setuptex/' '/tmp/context/tex/.'
receiving incremental file list
../
setuptex
setuptex.bat
setuptex.csh
setuptex.tmf

sent 109 bytes received 6545 bytes 1209.82 bytes/sec
total size is 16420 speedup is 2.47
MTXrun | mtx update: updating mtxrun for linux-64: rsync -tgo
--chmod=a+x
/tmp/context/tex/texmf-context/scripts/context/lua/mtxrun.lua
/tmp/context/tex/texmf-linux-64/bin/mtxrun
MTXrun | run: rsync -tgo --chmod=a+x
/tmp/context/tex/texmf-context/scripts/context/lua/mtxrun.lua
/tmp/context/tex/texmf-linux-64/bin/mtxrun
/tmp/context/bin/mtxrun:8497: bad argument #3 to 'format' (string
expected, got no value)


some tracing issue ...

can you print(fmt,...) in simple and see what logs.report is involved?

local function simple(fmt,...)
if fmt then



--

-
  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] failure with luatools --generate

2010-06-13 Thread Hans Hagen

On 11-6-2010 6:17, Eythan Weg wrote:


Thank you. I ran

mtxrun --generate

 MTXrun | fileio: variable 'SELFAUTOLOC' set to '/usr/bin'
 MTXrun | fileio: variable 'SELFAUTODIR' set to '/usr'
 MTXrun | fileio: variable 'SELFAUTOPARENT' set to '/'
 MTXrun | fileio: variable 'TEXMFCNF' set to '/etc/texmf/texmf.cnf'
 MTXrun | fileio: variable 'TEXMF' set to ''
 MTXrun | fileio: variable 'TEXOS' set to '/usr'


looks like another tex system is installed (some old tetex maybe, 
repackaged by a distributor) that sets some environment variables as well


(1) add the minimals bin path to the fron of $PATH
(2) unset TEXMFCNF or set it to the minimals one

or uninstall the other tex tree.

(it's why on my systems i always unset potential clashing variables)

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] can Context render complex scripts?

2010-06-13 Thread Hans Hagen

On 11-6-2010 9:14, Michael Saunders wrote:

My first experiments aren't going well.  For example:

using the free font, BNBDOT0N.ttf, from  Deutsche Welle here:
http://www.dw-world.de/dw/article/0,,3219221,00.html


next time make a simple example .. you caniidentity features with

mtxrun --script font --info --list --file BNBDOT0N.ttf

anyhow, only one features is applied. It lookslike some gpos feature is 
not used.


\usemodule[fnt-20]

\definefontfeature
  [indic]
  [mode=node,analyze=yes,
   script=beng,language=dflt,
   % gsub
   abvs=yes,akhn=yes,blwf=yes,blws=yes,
   half=yes,nukt=yes,pstf=yes,psts=yes,rphf=yes,
   % gpos
   blwm=yes,abvm=yes]

\definefontsynonym[dwbangla][file:BNBDOT0N.ttf]

\starttext

{\definedfont[dwbangla*indic] সত্যজিৎ রায় \par}

\showotfcomposition
{dwbangla*indic}
{0}
{সত্যজিৎ রায়}

\stoptext



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


[NTG-context] bibtex failure on latest minimals

2010-06-13 Thread Alan BRASLAU
An update today of the minimals breaks the bibtex search path:

This is BibTeX, Version 0.99d (TeX Live 2010/pretest)
Capacity: max_strings=15, hash_size=15, hash_prime=127507
The top-level auxiliary file: Livre.aux
I couldn't open style file cont-no.bst
---line 2 of file Livre.aux
 : \bibstyle{cont-no
 :  }
I'm skipping whatever remains of this command
I found no style file---while reading file Livre.aux

whereas minimals from Friday (11 June) succeeds:

This is BibTeX, Version 0.99d (TeX Live 2010/pretest)
Capacity: max_strings=15, hash_size=15, hash_prime=127507
The top-level auxiliary file: Livre.aux
The style file: cont-no.bst

Alan
___
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] pdf options

2010-06-13 Thread Jan Pohanka

Hello,

this code
\setuppagenumbering[location={footer,margin},alternative=doublesided]
forces a pdf viewer to show the document as doublepages.
How can I suppress it, please? Is there any document that describes the  
pdf options changing in Context? Unfortunately I was not able to find  
anything.



best regards
Jan

--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/

___
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] can Context render complex scripts?

2010-06-13 Thread Michael Saunders
 next time make a simple example .. you caniidentity features with

 mtxrun --script font --info --list --file BNBDOT0N.ttf

 anyhow, only one features is applied. It lookslike some gpos feature is not
 used.

 \usemodule[fnt-20]

 \definefontfeature
  [indic]
  [mode=node,analyze=yes,
   script=beng,language=dflt,
   % gsub
   abvs=yes,akhn=yes,blwf=yes,blws=yes,
   half=yes,nukt=yes,pstf=yes,psts=yes,rphf=yes,
   % gpos
   blwm=yes,abvm=yes]

 \definefontsynonym[dwbangla][file:BNBDOT0N.ttf]

 \starttext

    {\definedfont[dwbangla*indic] সত্যজিৎ রায় \par}

    \showotfcomposition
        {dwbangla*indic}
        {0}
        {সত্যজিৎ রায়}

 \stoptext


I don't understand---are you saying this is supposed to work?  Is the
trick supposed to be using fnt-20 or in being careful not to turn on
unused features?  (To be on the safe side, since I was switching
between them in testing, I was turning on all the features Microsoft
calls Indic.)  I tried your example and, yes, one shaping looks
correct, but there was no reordering and now some of the characters
print out on top of each other (which is incorrect).  I tried the same
routine, using  fnt-20 and commenting out unused features, for some
other fonts:
Akaash:
http://www.nongnu.org/freebangfont/downloads.html
Bangla, from the University of Chicago:
http://salrc.uchicago.edu/resources/fonts/available/bengali/
and Arial Unicode MS  (standard on Windows),
and I got no improvement in their rendering in Context.  They work
fine in Notepad, Firefox, and TexnicCenter though, for example.

What am I missing?
___
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] Error in installing new beta (was: status message of mtxrun --ifchanged)

2010-06-13 Thread Thomas A. Schmitz

On Jun 13, 2010, at 9:33 AM, Thomas A. Schmitz wrote:

 Same error here on OS X. And another question: I couldn't get my TEXMFHOME 
 recognized under linux-32. One problem was that it is set to ~/texmf-home. I 
 would suggest setting this value back to the canonical ~/texmf. (I had more 
 problems, but I'll have to reboot into linux in order to verify). 

OK, this problem is gone with the latest beta. The problem with the wrong value 
of TEXMFHOME persists. In a pristine texmfcnf.lua, this is set (l. 25)

TEXMFHOME   = ~/texmf-home, -- tree:///~/texmf

for mkii, however, it is set in texmf.cnf (l. 31)

TEXMFHOME = $HOME/texmf

why these two different values? I consider texmf-home as wrong. 

Moreover, when I set this to a sane value

TEXMFHOME   = /Users/tas/texmf, -- tree:///~/texmf

and then re-run mtxrun --generate, I get this error:

MTXrun |
MTXrun | fileio: scanning path 'tree:Users/tas/texmf'
/Users/tas/context/tex/texmf-osx-64/bin/mtxrun:9094: cannot open 
tree:Users/tas/texmf/: No such file or directory

I have no idea what the notation 'tree:' is supposed to do. 
/Users/tas/texmf does indeed exist and works with the beta before the scripts 
were changed. So I'm somewhat stymied. 

Thomas
___
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] can Context render complex scripts?

2010-06-13 Thread Hans Hagen

On 13-6-2010 6:58, Michael Saunders wrote:

next time make a simple example .. you caniidentity features with

mtxrun --script font --info --list --file BNBDOT0N.ttf

anyhow, only one features is applied. It lookslike some gpos feature is not
used.

\usemodule[fnt-20]

\definefontfeature
  [indic]
  [mode=node,analyze=yes,
   script=beng,language=dflt,
   % gsub
   abvs=yes,akhn=yes,blwf=yes,blws=yes,
   half=yes,nukt=yes,pstf=yes,psts=yes,rphf=yes,
   % gpos
   blwm=yes,abvm=yes]

\definefontsynonym[dwbangla][file:BNBDOT0N.ttf]

\starttext

{\definedfont[dwbangla*indic] সত্যজিৎ রায় \par}

\showotfcomposition
{dwbangla*indic}
{0}
{সত্যজিৎ রায়}

\stoptext



I don't understand---are you saying this is supposed to work?  Is the


well, i wrote: it looks like some pos feaure is not applied ...


trick supposed to be using fnt-20 or in being careful not to turn on
unused features?  (To be on the safe side, since I was switching


no, but turning them on makes tracing cumbersome


between them in testing, I was turning on all the features Microsoft
calls Indic.)  I tried your example and, yes, one shaping looks
correct, but there was no reordering and now some of the characters
print out on top of each other (which is incorrect).  I tried the same
routine, using  fnt-20 and commenting out unused features, for some
other fonts:



What am I missing?


As Khaled mentioned ... are these proper otf fonts or do they rely on 
specific features in the microsoft engine?


Most opentype features are quite generic and should work ok but if 
something special is needed more info is needed.


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] can Context render complex scripts?

2010-06-13 Thread Khaled Hosny
On Sun, Jun 13, 2010 at 09:07:55PM +0200, Hans Hagen wrote:
 As Khaled mentioned ... are these proper otf fonts or do they rely
 on specific features in the microsoft engine?
 
 Most opentype features are quite generic and should work ok but if
 something special is needed more info is needed.

IIRC, there is a bit of engine level glyph reordering involved with
Indic rendering.

-- 
 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] can Context render complex scripts?

2010-06-13 Thread Khaled Hosny
On Sun, Jun 13, 2010 at 10:15:35PM +0300, Khaled Hosny wrote:
 On Sun, Jun 13, 2010 at 09:07:55PM +0200, Hans Hagen wrote:
  As Khaled mentioned ... are these proper otf fonts or do they rely
  on specific features in the microsoft engine?
  
  Most opentype features are quite generic and should work ok but if
  something special is needed more info is needed.
 
 IIRC, there is a bit of engine level glyph reordering involved with
 Indic rendering.

Here is a tugboat article with more details:
http://www.tug.org/TUGboat/Articles/tb23-1/rajkumar.pdf

Though it might not be up to date, but it gives a good overall idea
about the issue.

-- 
 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] can Context render complex scripts?

2010-06-13 Thread Khaled Hosny
On Sun, Jun 13, 2010 at 10:19:50PM +0300, Khaled Hosny wrote:
 On Sun, Jun 13, 2010 at 10:15:35PM +0300, Khaled Hosny wrote:
  On Sun, Jun 13, 2010 at 09:07:55PM +0200, Hans Hagen wrote:
   As Khaled mentioned ... are these proper otf fonts or do they rely
   on specific features in the microsoft engine?
   
   Most opentype features are quite generic and should work ok but if
   something special is needed more info is needed.
  
  IIRC, there is a bit of engine level glyph reordering involved with
  Indic rendering.
 
 Here is a tugboat article with more details:
 http://www.tug.org/TUGboat/Articles/tb23-1/rajkumar.pdf
 
 Though it might not be up to date, but it gives a good overall idea
 about the issue.

And MS page:
http://www.microsoft.com/typography/otfntdev/indicot/features.aspx

-- 
 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] can Context render complex scripts?

2010-06-13 Thread Michael Saunders
 As Khaled mentioned ... are these proper otf fonts or do they rely on
 specific features in the microsoft engine?

They all carry the .ttf extender.  Arial Unicode MS is clearly True
Type.  I've seen some of the free fonts widely described as Open Type,
but they are all amateur products---maybe they don't comply with the
standard properly.

If True Type fonts won't work correctly without an external engine and
Context can't harness an external engine, then it looks like I will
just have to wait for a more modern font to come along.

Thanks for the article, Khaled.
___
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] can Context render complex scripts?

2010-06-13 Thread Hans Hagen

On 13-6-2010 9:15, Khaled Hosny wrote:

On Sun, Jun 13, 2010 at 09:07:55PM +0200, Hans Hagen wrote:

As Khaled mentioned ... are these proper otf fonts or do they rely
on specific features in the microsoft engine?

Most opentype features are quite generic and should work ok but if
something special is needed more info is needed.


IIRC, there is a bit of engine level glyph reordering involved with
Indic rendering.


i remember seeing that mentioned at some place but forgot the details

the interesting question then is .. where does one draw the line between 
engine and clever fonts



-
  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] can Context render complex scripts?

2010-06-13 Thread Khaled Hosny
On Sun, Jun 13, 2010 at 02:29:40PM -0500, Michael Saunders wrote:
  As Khaled mentioned ... are these proper otf fonts or do they rely on
  specific features in the microsoft engine?
 
 They all carry the .ttf extender.  Arial Unicode MS is clearly True
 Type.  I've seen some of the free fonts widely described as Open Type,
 but they are all amateur products---maybe they don't comply with the
 standard properly.
 
 If True Type fonts won't work correctly without an external engine and
 Context can't harness an external engine, then it looks like I will
 just have to wait for a more modern font to come along.

OpenType (just ignore file extension for the moment) is a rather dump
standard in the sense that it requires the engine to have some knowledge
about the writing system at hand. Take Arabic as an example, the engine
need to know about the rules of Arabic shaping, what are letters are
dual joining, what are right joining only etc. and then apply OpenType
features conditionally on those characters, without that knowledge, no
OpenType engine is capable for rendering Arabic, and the same is true for
any other complex script.

On the other hand, there is AAT and Graphite fonts, that are implemented
in a more generic way, where the engine has no particular knowledge about
any writing system and all the rules are embedded into the font. Though
this seems a bit smarter, it makes the task of building a font very
complex and tedious since the rules have to be implemented again and
again in each font, also type designers are not programmers and asking
them to do such complex tasks is impractical, for example you can count
all AAT fonts that produced outside Apple, the makers of the technology,
on one hand, now even Apple is moving to OpenType.

So, what we have here is that ConTeXt has no special knowledge about
Indic scripts, and thus it will not apply the feature properly according
the linguistic rules. So, instead of waiting for a more modern font to
come along (which unlikely to happen any time soon, giving how much the
industry have invested into OpenType, and the apparent failure of AAT),
just try to reach more people in the Indic community and come out with a
clear specification and tests that Hans can implement.

Regards,
 Khaled

-- 
 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] Removing Introduction section number

2010-06-13 Thread Vyatcheslav Yatskovsky

Hello,

I'm still in need of help with numberless sections.

While using front, body,and back matter sounds goos, but it makes new 
pages. \subject is perfect, but it does not appear in contents.


Most simple (if there is no other options) seems to use \subject, but 
add it to the TOC. How can I do it?


--
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] can Context render complex scripts?

2010-06-13 Thread Hans Hagen

On 13-6-2010 9:50, Khaled Hosny wrote:


So, what we have here is that ConTeXt has no special knowledge about
Indic scripts, and thus it will not apply the feature properly according
the linguistic rules. So, instead of waiting for a more modern font to
come along (which unlikely to happen any time soon, giving how much the
industry have invested into OpenType, and the apparent failure of AAT),
just try to reach more people in the Indic community and come out with a
clear specification and tests that Hans can implement.


from the ms pages it looks like we should split the chars (sequences) 
into components and after that the oft features can be applied; as the 
spec is somewhat fuzzy i'll just wait till precise specs are given


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] can Context render complex scripts?

2010-06-13 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi,

On Sun, 13 Jun 2010 13:41:38 -0600, Hans Hagen pra...@wxs.nl wrote:

the interesting question then is .. where does one draw the line between  
engine and clever fonts


contextual analysis in Arabic provides an example: init, medi, and fina  
provide the gsub's, the engine has to know the rules/conditions under  
which to apply each of those three. Eg, VOLT Proofing tool will NOT do  
contextual analysis, only implement the selected lookups. Something  
similar applies to Indic of course, but someone has to provide the  
framework of rules. The MS pages Khaled sent are a good place to start,  
and a user willing to make examples with explanations etc...


That is, given all gsub and gpos routines needed by a given language, what  
minimal additional information does the engine need to know? In Arabic,  
one needs contextual analysis: if a letter occurs at the beginning of a  
string, choose the init gsub routine etc.


The bad thing about Uniscribe is that it adds too much information and  
spell-checking, restricting typesetting possibilities.


In any case, someone interested has to research/provide the details for  
Indic.


Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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] Removing Introduction section number

2010-06-13 Thread Vyatcheslav Yatskovsky


...or preventing startbodymatter from making new page.

--
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] problem with \ref[t][...]

2010-06-13 Thread Peter Münster
On Fri, Jun 11 2010, Peter Münster wrote:

 A related question: how can I get rid of the quotation marks of \about[]?

Ok, found it: \setupreferencing[left=, right=]
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] Error in installing new beta

2010-06-13 Thread Hans Hagen

On 13-6-2010 7:32, Thomas A. Schmitz wrote:


On Jun 13, 2010, at 9:33 AM, Thomas A. Schmitz wrote:


Same error here on OS X. And another question: I couldn't get my TEXMFHOME 
recognized under linux-32. One problem was that it is set to ~/texmf-home. I 
would suggest setting this value back to the canonical ~/texmf. (I had more 
problems, but I'll have to reboot into linux in order to verify).


OK, this problem is gone with the latest beta. The problem with the wrong value 
of TEXMFHOME persists. In a pristine texmfcnf.lua, this is set (l. 25)

TEXMFHOME   = ~/texmf-home, -- tree:///~/texmf

for mkii, however, it is set in texmf.cnf (l. 31)

TEXMFHOME = $HOME/texmf

why these two different values? I consider texmf-home as wrong.


because i dislike having a 'texmf' other than the main one anywhere (if 
only because it makes tracing a pain) .. i'll set it to texmf but will 
probably add some warnings in a future version



Moreover, when I set this to a sane value

TEXMFHOME   = /Users/tas/texmf, -- tree:///~/texmf

and then re-run mtxrun --generate, I get this error:

MTXrun |
MTXrun | fileio: scanning path 'tree:Users/tas/texmf'
/Users/tas/context/tex/texmf-osx-64/bin/mtxrun:9094: cannot open 
tree:Users/tas/texmf/: No such file or directory


strange as that should be intercepted. I'll see what my mac does with it 
when i hav eit up and running.



I have no idea what the notation 'tree:' is supposed to do. 
/Users/tas/texmf does indeed exist and works with the beta before the scripts 
were changed. So I'm somewhat stymied.


tree:// is just one of the uri's supported (and permits loading files 
from some tree) and this scheme is autoinserted when no !! is used; the 
!! will become cache:// .. much of that is still experimental


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
___


[NTG-context] Itemize, margins and nowhite

2010-06-13 Thread Vyatcheslav Yatskovsky

Hello,

Strange, but if I specify margins for itemize, then nowhite losts its 
effect, and I need to specify it again in every itemize group.


\setupitemize[1,leftmargin=1cm, rightmargin=1cm, nowhite]
\startitemize[nowhite] %duplicate, but does not work without it
\item a
\item b
\stopitemize

Rgrds,
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] Error in installing new beta

2010-06-13 Thread Thomas A. Schmitz

On Jun 13, 2010, at 10:58 PM, Hans Hagen wrote:

 On 13-6-2010 7:32, Thomas A. Schmitz wrote:
 
 
 
 TEXMFHOME   = ~/texmf-home, -- tree:///~/texmf
 
 for mkii, however, it is set in texmf.cnf (l. 31)
 
 TEXMFHOME = $HOME/texmf
 
 why these two different values? I consider texmf-home as wrong.
 
 because i dislike having a 'texmf' other than the main one anywhere (if only 
 because it makes tracing a pain) .. i'll set it to texmf but will probably 
 add some warnings in a future version
 

Well, I know that, we've been discussing it for a while. But then both mkii and 
mkiv still should have  the same value. And ~/texmf is the canonical thing; 
disregarding it will confuse any casual user. 

 
 strange as that should be intercepted. I'll see what my mac does with it when 
 i hav eit up and running.
 
I get the same behavior on linux.

 
 tree:// is just one of the uri's supported (and permits loading files from 
 some tree) and this scheme is autoinserted when no !! is used; the !! will 
 become cache:// .. much of that is still experimental

OK, thanks for the info. I used to have my own configuration, but environment 
variables aren't used any more. How does mkiv store the config information now? 
How could I overwrite the values that mtxrun --variables shows? 

All best

Thomas

___
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] Error in installing new beta

2010-06-13 Thread Mojca Miklavec
On Sun, Jun 13, 2010 at 23:06, Thomas A. Schmitz wrote:

 OK, thanks for the info. I used to have my own configuration, but environment 
 variables aren't used any more. How does mkiv store the config information 
 now? How could I overwrite the values that mtxrun --variables shows?

I didn't test, but creating your own version of texmfcnf.lua inside
texmf-local/web2c might help, though I didn't test it (it might be a
chicken-and-egg problem to locate that lua file, but texmf-local
should work; if it doesn't, one should better fix it).

I'm working on someone else's computer and don't find it too
comfortable to test anything from here (I'm not even able to type on
qwerz any more). I see there were many other error reports in the last
few days as well ...

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Error in installing new beta

2010-06-13 Thread Hans Hagen

On 13-6-2010 11:13, Mojca Miklavec wrote:


I'm working on someone else's computer and don't find it too
comfortable to test anything from here (I'm not even able to type on
qwerz any more). I see there were many other error reports in the last
few days as well ...


i'm looking into it ... one problem is that we run a mtxrun underbin 
while the real mtxrun later sits under texmf-* and this confuses the 
logic that generates the databases


these are all side effects of future multiple cache support and playing 
nice with texlive related vars and that has to work with all kind of 
setups


in the end it will work

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] Error in installing new beta

2010-06-13 Thread Hans Hagen

On 13-6-2010 11:06, Thomas A. Schmitz wrote:


OK, thanks for the info. I used to have my own configuration, but environment 
variables aren't used any more. How does mkiv store the config information now? 
How could I overwrite the values that mtxrun --variables shows?


environment variables should still win from variables set in the 
configuration file (if it needs to be fixed) but there is some new 
discovery code


i didn't test it yet, but you can have your own configration file and it 
will be loaded too (and merged where the first loaed var wins)


in principle it works like texmf.cnf but in the future we might have 
more options in the (now used) lua variant


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] can Context render complex scripts?

2010-06-13 Thread Michael Saunders
 OpenType (just ignore file extension for the moment) is a rather dump
 standard in the sense that it requires the engine to have some knowledge
 about the writing system at hand.
...
 So, what we have here is that ConTeXt has no special knowledge about
 Indic scripts, and thus it will not apply the feature properly according
 the linguistic rules.

It seems to me that, since Hans can't be expected to write special
code for dozens of Indic scripts, let alone for every script in the
world, the pragmatic solution would be a method for Context to harness
external engines (ICU, Pango, Graphite, Uniscribe, or whatever).  If
that's not possible, or if he doesn't want to do it, or until he is
able to work with scholars on each special case, programs like Notepad
will be able to do something that Context can't.   As a casual user,
it's not an urgent need for me.  I had read that Aleph functionality
had been integrated into LuaTeX (though I never found anything very
detailed about that) and thought that everything was okay.  I assume
that Luatex/Context or some future TeX  will have this functionality
someday, however it's implemented.  I'll just keep watching.
___
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] [OT] How TeX Gyre small caps were generated?

2010-06-13 Thread Khaled Hosny
I'm just wondering how TeX Gyre were generated, did they use some
MetaType1 magic, or was it designed by hand. I've vague memories
suggesting the former, but I can't find anything about this right now,
nor I can find MataType sources of the fonts (if there are).

I'd like to use such technique for XITS fonts, since STIX didn't provide
small caps, and I'm not into hand designing hundreds of LGC small caps.

Regards,
 Khaled

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