Re: [NTG-context] When I don't want quotes

2008-08-13 Thread Peter Münster
On Tue, Aug 12 2008, Hans Hagen wrote:

 two solutions:
 
 (1) use tt (since there trep is off)
 
 {\tt '}
 
 (2) reload the bodyfont
 
 \definefontfeature
[default]
[default]
[trep=no]
 
 \setupbodyfont[reset]

This works only for MKIV.

The OP uses MKII, and his problem is, that MKII translates the ascii
character ' (0x27) to ’ (0xE2 0x80 0x99).

Cheers, Peter

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


Re: [NTG-context] When I don't want quotes

2008-08-13 Thread Taco Hoekwater


Peter Münster wrote:
 On Tue, Aug 12 2008, Hans Hagen wrote:
 
 two solutions:

 (1) use tt (since there trep is off)

 {\tt '}
 
 The OP uses MKII, and his problem is, that MKII translates the ascii
 character ' (0x27) to ’ (0xE2 0x80 0x99).

That leaves just \tt as option, really. None of the 'normal' encodings 
in mkii have a straight quote.

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


Re: [NTG-context] When I don't want quotes

2008-08-13 Thread Hans Hagen
Peter Münster wrote:
 On Tue, Aug 12 2008, Hans Hagen wrote:
 
 two solutions:

 (1) use tt (since there trep is off)

 {\tt '}

 (2) reload the bodyfont

 \definefontfeature
[default]
[default]
[trep=no]

 \setupbodyfont[reset]
 
 This works only for MKIV.
 
 The OP uses MKII, and his problem is, that MKII translates the ascii
 character ' (0x27) to ’ (0xE2 0x80 0x99).

just enable regime utf (since you enter ’ as a utf sequence)

\enableregime[utf] \starttext \strut ' ’ \stoptext





-
   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] Font problems with latest minimals on Linux

2008-08-13 Thread Taco Hoekwater


Vasile Gaburici wrote:
 I've switched to the rsync-ed minimals on Linux. There are still some
 problems with fonts:
 
 1) Bold is still missing from fonts pulled via OSFONTDIR, e.g.:
 
 verdana   Verdana
 /usr/share/fonts/vista/Verdana.ttf
 verdana bold italic   Verdana Bold Italic
 /usr/share/fonts/vista/Verdanaz.ttf
 verdana italicVerdana Italic
 /usr/share/fonts/vista/Verdanai.ttf

This works OK for ttf fonts on my linux machine, but I don't
have the ttf version of verdana, so perhaps it is something
special to that font.

 2) OSFONTDIR is not recursive. To get the above I used export
 OSFONTDIR=/usr/share/fonts/vista/, just
 export OSFONTDIR=/usr/share/fonts/ doesn't work.

Yes, recursion would be nice.

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


Re: [NTG-context] Font problems with latest minimals on Linux

2008-08-13 Thread Hans Hagen
Taco Hoekwater wrote:
 
 Vasile Gaburici wrote:
 I've switched to the rsync-ed minimals on Linux. There are still some
 problems with fonts:

 1) Bold is still missing from fonts pulled via OSFONTDIR, e.g.:

 verdana   Verdana
 /usr/share/fonts/vista/Verdana.ttf
 verdana bold italic   Verdana Bold Italic
 /usr/share/fonts/vista/Verdanaz.ttf
 verdana italicVerdana Italic
 /usr/share/fonts/vista/Verdanai.ttf
 
 This works OK for ttf fonts on my linux machine, but I don't
 have the ttf version of verdana, so perhaps it is something
 special to that font.
 
 2) OSFONTDIR is not recursive. To get the above I used export
 OSFONTDIR=/usr/share/fonts/vista/, just
 export OSFONTDIR=/usr/share/fonts/ doesn't work.
 
 Yes, recursion would be nice.

font-syn.lua, line 190:

 path = input.clean_path(path .. /)
 path = path:gsub(/+,/)
path = path .. **/

insert the last line and see what happens (untested because i have a 
flat system path)


-
   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] When I don't want quotes

2008-08-13 Thread Thomas A. Schmitz

On Aug 13, 2008, at 9:29 AM, Taco Hoekwater wrote:

 That leaves just \tt as option, really. None of the 'normal' encodings
 in mkii have a straight quote.

texnansi does:

grep quotesingle /usr/local/texlive/texmf-local/tex/context/base/enco- 
ans.tex

\definecharacter quotesingle  129

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


Re: [NTG-context] When I don't want quotes

2008-08-13 Thread Taco Hoekwater


Thomas A. Schmitz wrote:
 On Aug 13, 2008, at 9:29 AM, Taco Hoekwater wrote:
 
 That leaves just \tt as option, really. None of the 'normal' encodings
 in mkii have a straight quote.
 
 texnansi does:
 
 grep quotesingle /usr/local/texlive/texmf-local/tex/context/base/enco- 
 ans.tex
 
 \definecharacter quotesingle  129

Right you are! (and that reminds me to fix the encoding tables at the
end of the new co-typography.pdf)

   \usetypescript [modern] [texnansi]
   \setupbodyfont[modern]
   \starttext
   \quotesingle \quotesingle
   \stoptext

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


[NTG-context] no linebreak before footnote after vertical line

2008-08-13 Thread Steffen Wolfrum
Hi,

to prevent long abbreviations from being hyphenated I use the vertical  
line. That's fine in most cases.
Only, bad luck if there is a footnote following and this at the end of  
the line:


\starttext
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla  
bla bla bla |WikiPOBia|\footnote{note}.
\stoptext


... on my machine the second line starts with the footnote marker 1.


Is there a general solution to avoid this bad coincidence?


Thanks,

Steffen
___
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] Font problems with latest minimals on Linux

2008-08-13 Thread Vasile Gaburici
On Wed, Aug 13, 2008 at 11:31 AM, Hans Hagen [EMAIL PROTECTED] wrote:
 Yes, recursion would be nice.
 font-syn.lua, line 190:

path = input.clean_path(path .. /)
path = path:gsub(/+,/)
 path = path .. **/

 insert the last line and see what happens (untested because i have a flat
 system path)

It works.



 -
  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] Font problems with latest minimals on Linux

2008-08-13 Thread Hans Hagen
Vasile Gaburici wrote:
 On Wed, Aug 13, 2008 at 11:31 AM, Hans Hagen [EMAIL PROTECTED] wrote:
 Yes, recursion would be nice.
 font-syn.lua, line 190:

path = input.clean_path(path .. /)
path = path:gsub(/+,/)
 path = path .. **/

 insert the last line and see what happens (untested because i have a flat
 system path)
 
 It works.

there will be a beta later today; taco and i tested a different patch on 
win/lin and it looks like it works; you need to regenerate the font 
database then


-
   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] Font problems with latest minimals on Linux

2008-08-13 Thread Vasile Gaburici
As for the missing bold, it seems there's a bug in the naming scheme:
Ii the bold italic file gets read from the disk before the bold, then
you don't get the right entries. It so happens that most of the fonts
in that dir had bold before bold italic, e.g.

fontnames | identifying ttf font /usr/share/fonts/vista/Verdanai.ttf
fontnames | identifying ttf font /usr/share/fonts/vista/Verdana.ttf
fontnames | identifying ttf font /usr/share/fonts/vista/Verdanaz.ttf
fontnames | identifying ttf font /usr/share/fonts/vista/Verdanab.ttf

fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf
fontnames | identifying otf font /usr/share/fonts/vista/C-series/Calibri.otf
fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Italic.otf
fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Bold.otf

So, I've added some extra code (patch attached) to print the names it
adds to the hash. As you can see there is a clash: both bold italic
and bold want to own bold...

fontnames | identifying ttf font /usr/share/fonts/vista/Verdanaz.ttf
add | verdana bold italic - {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdanabolditalic - {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdana-bolditalic - {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdanabolditalic - {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdana bold - {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
add | verdanabold - {ttf, Verdana Bold Italic,
/usr/share/fonts/vista/Verdanaz.ttf, ...}
fontnames | identifying ttf font /usr/share/fonts/vista/Verdanab.ttf
add | verdana bold - {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdanabold - {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdana-bold - {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdanabold - {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdana bold - {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}
add | verdanabold - {ttf, Verdana Bold,
/usr/share/fonts/vista/Verdanab.ttf, ...}

fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf
add | calibri bold italic - {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibribolditalic - {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibri-bolditalic - {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibribolditalic - {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibri bold - {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
add | calibribold - {otf, Calibri Bold Italic,
/usr/share/fonts/vista/C-series/Calibri Bold Italic.otf, ...}
fontnames | identifying otf font
/usr/share/fonts/vista/C-series/Calibri Bold.otf
add | calibri bold - {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibribold - {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibri-bold - {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibribold - {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibri bold - {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}
add | calibribold - {otf, Calibri Bold,
/usr/share/fonts/vista/C-series/Calibri Bold.otf, ...}

I don't know how to fix since it's not clear to me what names you
actually want...

On Wed, Aug 13, 2008 at 10:43 AM, Taco Hoekwater [EMAIL PROTECTED] wrote:


 Vasile Gaburici wrote:

 I've switched to the rsync-ed minimals on Linux. There are still some
 problems with fonts:

 1) Bold is still missing from fonts pulled via OSFONTDIR, e.g.:

 verdana   Verdana
 /usr/share/fonts/vista/Verdana.ttf
 verdana bold italic   Verdana Bold Italic
 /usr/share/fonts/vista/Verdanaz.ttf
 verdana italicVerdana Italic
 /usr/share/fonts/vista/Verdanai.ttf

 This works OK for ttf fonts on my linux machine, but I don't
 have the ttf version of verdana, so perhaps it is something
 special to that font.

 2) OSFONTDIR is not recursive. To get the above I used export
 OSFONTDIR=/usr/share/fonts/vista/, just
 export OSFONTDIR=/usr/share/fonts/ doesn't work.

 Yes, recursion would be nice.

 Best wishes,
 Taco


diff -up ./font-syn.lua.nobold ./font-syn.lua
--- ./font-syn.lua.nobold	2008-08-13 12:24:32.0 +0300
+++ ./font-syn.lua	2008-08-13 12:52:40.0 +0300
@@ -27,7 +27,7 @@ fonts.names.be_clever  = true
 fonts.names.enabled= true
 fonts.names.autoreload = toboolean(os.env['MTX.FONTS.AUTOLOAD'] or os.env['MTX_FONTS_AUTOLOAD'] or no)
 fonts.names.cache  = 

Re: [NTG-context] Font problems with latest minimals on Linux

2008-08-13 Thread Hans Hagen
Vasile Gaburici wrote:
 As for the missing bold, it seems there's a bug in the naming scheme:
 Ii the bold italic file gets read from the disk before the bold, then
 you don't get the right entries. It so happens that most of the fonts
 in that dir had bold before bold italic, e.g.
 
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdanai.ttf
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdana.ttf
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdanaz.ttf
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdanab.ttf
 
 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf
 fontnames | identifying otf font /usr/share/fonts/vista/C-series/Calibri.otf
 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri Italic.otf
 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri Bold.otf
 
 So, I've added some extra code (patch attached) to print the names it
 adds to the hash. As you can see there is a clash: both bold italic
 and bold want to own bold...

how do you define the font; don't use spaces!

-
   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] Font problems with latest minimals on Linux

2008-08-13 Thread Vasile Gaburici
On Wed, Aug 13, 2008 at 2:20 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 Vasile Gaburici wrote:

 As for the missing bold, it seems there's a bug in the naming scheme:
 Ii the bold italic file gets read from the disk before the bold, then
 you don't get the right entries. It so happens that most of the fonts
 in that dir had bold before bold italic, e.g.

 fontnames | identifying ttf font /usr/share/fonts/vista/Verdanai.ttf
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdana.ttf
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdanaz.ttf
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdanab.ttf

 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf
 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri.otf
 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri Italic.otf
 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri Bold.otf

 So, I've added some extra code (patch attached) to print the names it
 adds to the hash. As you can see there is a clash: both bold italic
 and bold want to own bold...

 how do you define the font; don't use spaces!

??? If your're complaining that Calibri has spaces in the file name,
it's a non-issue here. Verdana has the same bold not listed problem,
even though there are no spaces in the file name...


 -
  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] When I don't want quotes

2008-08-13 Thread Maurí­cio
   I need to write ' in a text. However,
   (...) I really need it to be 5 times U0027,
   not ””’ (U201C and U2018). (...)

   (...)
 Both also didn't work. (...)
 Indeed, I am using mkiv... But you should be able to use \char etc. to get  
 the same effect.
 
 pdftex is not working at the moment here -- see my message to the list --  
 so I can't test this at the moment, but in pdftex there is
 
   \unicodecharacter{number} (...)
 
 Another option is to use utf8 encoding and insert a zero-width space  
 (200B) between the 0027's. (...) should break the dbl-quote (...)

\unicodecharacter wasn't recognized. I do use uft8 
encoding, and nothing else (ever). But the problem 
is not to break the bls-quote, but avoiding ' 
transformed to ’.

Thanks for your help. I'm probably going to try 
something else, like writing this documentation on 
a web page.

Best,
Maurício

___
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] Font problems with latest minimals on Linux

2008-08-13 Thread Taco Hoekwater


Vasile Gaburici wrote:
 I've switched to the rsync-ed minimals on Linux. There are still some
 problems with fonts:
 
 1) Bold is still missing from fonts pulled via OSFONTDIR, e.g.:
 
 verdana   Verdana
 /usr/share/fonts/vista/Verdana.ttf
 verdana bold italic   Verdana Bold Italic
 /usr/share/fonts/vista/Verdanaz.ttf
 verdana italicVerdana Italic
 /usr/share/fonts/vista/Verdanai.ttf

This may sound silly, but: does it work or not? To be precise,
what is the font used by the pdf result (if any) of

   \starttext
   \definedfont[name:VerdanaBold] Hello
   \stoptext

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


Re: [NTG-context] \setuplayout question

2008-08-13 Thread Alan Stone
Pages and pages and pages skillfully resumed in a few, targeted and simple
lines.

Keyword: the system is set up in such a way that...

Something to consider for the manual updates ?

Thanks a lot Hans,
Alan


On Tue, Aug 12, 2008 at 6:05 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Alan Stone wrote:
  Hi,
 
  Some/oftentimes, the more I read the scattered
  documentation, the more I'm confused... and
  wasting my valuable time testing and trying to
  figure out how things work.

 (1) main layout areas:

 keywords to \setuplayout: header text footer

 dimension variables: \headerheight etc

 (2) space above and below main layout area:

 keywords to \setuplayout: topspace bottomspace

 dimension variables: \topspace, \bottomspace

 (3) virtual layout areas: (used for interactive documents where
 one wants to keep the main text area unchanged by setting these;
 the virtual areas extend into the topspace and bottomspace)

 keywords to \setuplayout: top header text footer bottom

 dimension variables: \topheight, \headerheight etc

 the system is set up in such a way that one can easily shift the text
 area as well as disable header and footer

 Hans
___
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] letter module

2008-08-13 Thread Roger Mason
Hello,

I just downloaded the letter module and installed it by unzipping the
t-letter.zip file into /usr/local/context_minimal/.

When I try a test letter:

\usemodule[letter]

\starttext
\startletter
  It is raining again.
\stopletter
\stoptext

context fails with:

systems : system commands are enabled
system  : module letter not found
(/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.tex
loading : Context Sorting Macros (languages)
(/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.mkii))
(/usr/local/context_minimal/tex/texmf-local/tex/context/base/pdfr-def.tex)
systems : begin file ltrtest at line 3
! Undefined control sequence.
l.4 \startletter

? 

The log file tells me 

ConTeXt ver: 2007.08.08 14:35 MKII fmt: 2008.5.6 int:
english/english

This is on a Gentoo Linux system.

Thanks for any help,
Roger
___
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] no linebreak before footnote after vertical line

2008-08-13 Thread Wolfgang Schuster
On Wed, Aug 13, 2008 at 10:36 AM, Steffen Wolfrum
[EMAIL PROTECTED] wrote:
 Hi,

 to prevent long abbreviations from being hyphenated I use the vertical
 line. That's fine in most cases.
 Only, bad luck if there is a footnote following and this at the end of
 the line:


 \starttext
 bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
 bla bla bla |WikiPOBia|\footnote{note}.
 \stoptext


 ... on my machine the second line starts with the footnote marker 1.


 Is there a general solution to avoid this bad coincidence?

\hyphenation{WikiPOBia}

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Manual wishlist (was Re: \setuplayout question)

2008-08-13 Thread Taco Hoekwater

Hi all,

Alan Stone wrote:
 Pages and pages and pages skillfully resumed in a few, targeted and 
 simple lines.
  
 Keyword: the system is set up in such a way that...
  
 Something to consider for the manual updates ?

A remark from me may be in order: while I am indeed busy working on
some of the manual chapters and by extension it seems that I am indeed
more less in charge of this project, I do *not* keep track of wishlists
or errata except for the chapter(s) I am actively working on myself.

Hints like the one made by Alan above will end up in the void unless
someone (and that someone will not be me) creates and maintains a
wishlist on the wiki or in the contextman project's bug tracker at
foundry.supelec.fr.

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


Re: [NTG-context] Font problems with latest minimals on Linux

2008-08-13 Thread Wolfgang Schuster
On Wed, Aug 13, 2008 at 1:47 PM, Vasile Gaburici [EMAIL PROTECTED] wrote:
 On Wed, Aug 13, 2008 at 2:20 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 Vasile Gaburici wrote:

 As for the missing bold, it seems there's a bug in the naming scheme:
 Ii the bold italic file gets read from the disk before the bold, then
 you don't get the right entries. It so happens that most of the fonts
 in that dir had bold before bold italic, e.g.

 fontnames | identifying ttf font /usr/share/fonts/vista/Verdanai.ttf
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdana.ttf
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdanaz.ttf
 fontnames | identifying ttf font /usr/share/fonts/vista/Verdanab.ttf

 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf
 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri.otf
 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri Italic.otf
 fontnames | identifying otf font
 /usr/share/fonts/vista/C-series/Calibri Bold.otf

 So, I've added some extra code (patch attached) to print the names it
 adds to the hash. As you can see there is a clash: both bold italic
 and bold want to own bold...

 how do you define the font; don't use spaces!

 ??? If your're complaining that Calibri has spaces in the file name,
 it's a non-issue here. Verdana has the same bold not listed problem,
 even though there are no spaces in the file name...

Where do you got the vista fonts, i know them only in TrueType format
and more verbose names.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module

2008-08-13 Thread Wolfgang Schuster
On Wed, Aug 13, 2008 at 3:34 PM, Roger Mason [EMAIL PROTECTED] wrote:
 Hello,

 I just downloaded the letter module and installed it by unzipping the
 t-letter.zip file into /usr/local/context_minimal/.

 When I try a test letter:

 \usemodule[letter]

 \starttext
 \startletter
  It is raining again.
 \stopletter
 \stoptext

 context fails with:

 systems : system commands are enabled
 system  : module letter not found
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.tex
 loading : Context Sorting Macros (languages)
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.mkii))
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/pdfr-def.tex)
 systems : begin file ltrtest at line 3
 ! Undefined control sequence.
 l.4 \startletter

 ?

 The log file tells me

 ConTeXt ver: 2007.08.08 14:35 MKII fmt: 2008.5.6 int:
 english/english

 This is on a Gentoo Linux system.

Update the file database with 'mktexlsr' or 'texhash'.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] no linebreak before footnote after vertical line

2008-08-13 Thread Steffen Wolfrum

Am 13.08.2008 um 15:42 schrieb Wolfgang Schuster:

 On Wed, Aug 13, 2008 at 10:36 AM, Steffen Wolfrum
 [EMAIL PROTECTED] wrote:
 Hi,

 to prevent long abbreviations from being hyphenated I use the  
 vertical
 line. That's fine in most cases.
 Only, bad luck if there is a footnote following and this at the  
 end of
 the line:


 \starttext
 bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
 bla bla bla |WikiPOBia|\footnote{note}.
 \stoptext


 ... on my machine the second line starts with the footnote marker 1.


 Is there a general solution to avoid this bad coincidence?

 \hyphenation{WikiPOBia}


well, I meant a more general solution, like tuning up the vertikal  
line to a
no hyphen inbetween and no linebreak afterwards - character?!

Steffen

___
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] Partly OT: some luatex questions

2008-08-13 Thread Ulrike Fischer
I'm currently trying if I can use luatex on my miktex installation and
together with LaTeX. 

I have downloaded the executable (Version snapshot-0.29.0-2008071816)
from the context-minimals and made a simple texmf.cnf and build some
formats (the formats don't contain something luatex specific, they
simply load latex.ltx). Things works quite fine, my (pdf)lualatex is
running and is finding all the ressources (fonts, styles etc) from my
miktex-trees. 

But I have some problems I don't know how to solve.

1. In the following document there is no space between the a and the y:

\documentclass{article}
\begin{document}
\noindent a\\y 

\bigskip  

a\par y
\end{document}

It looks as if the lines have only the depth from their content. 

2. I found here some code to use truetype and opentype fonts:
http://luatex.bluwiki.com/go/Use_a_TrueType_font

But while testing the code I run in two two problems:
a) I tested it with a latin modern font and arial and with both fonts
all lines of a text are printed one above the other. It looks as if none
of the lines have a height and a depth. 

b) I also tried MnSymbol5.otf and there I get an error invalid
character. (I tried to get an A). With xetex the font works fine. 

I would be quite grateful if someone could tell me how to solve this
problems. 

-- 
Ulrike Fischer 

___
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] Lastest Build on TeXlive 2008 and MikTeX 2.7

2008-08-13 Thread abbg770
Mojca Miklavec mojca.miklavec.lists at gmail.com writes:

 
 Yes, it's perfectly fine if you just install this one into local tree
 (or maybe even into global - at least that's what I do). The rest is
 far less important. You only need to be aware that once you update a
 package in global tree, the local tree will still have precedence.
 
 Mojca
 

Ok so I'm trying to install cont-tmf.zip on a Fedora 9 box with TexLive 2008
into my local ~/texmf/.

$ kpsexpand '$TEXMFHOME'
/home/mohamed/texmf

$ ls ~/texmf/ bibtex cont-ext.zip cont-img.zip cont-ppc.zip doc metapost 
tex web2c context cont-fnt.zip cont-mpd.zip cont-tmf.zip fonts scripts tpm

$ su -c 'texhash'
Password: 
texhash: Updating /etc/texmf/ls-R... 
texhash: Updating /usr/local/share/texmf/ls-R... 
texhash: Updating /usr/share/texmf/ls-R... 
texhash: Updating /var/lib/texmf/ls-R... 
texhash: Done.

But when I try to typeset;

\starttext
hello
\stoptext

I get this error;

$ texexec start.tex /usr/bin/texmfstart:1838: warning: Insecure world 
writable dir /home/mohamed/Desktop/scala-2.7.1.final/bin in PATH, mode 
040777 /home/mohamed/texmf/scripts/context/ruby/base/system.rb:16: warning: 
Insecure world writable dir /home/mohamed/Desktop/scala-2.7.1.final/bin in 
PATH, mode 040777 TeXExec | processing document 'start.tex' TeXExec | no 
ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 
TeXExec | writing option file start.top TeXExec | using randomseed 93 
TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeXk, 
Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
 (/home/mohamed/texmf/web2c/natural.tcx)
entering extended mode
(./start.tex

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2008.7.12  int: english/english

language: language en is active
system  : cont-new loaded
(/home/mohamed/texmf/tex/context/base/cont-new.tex

FatalError  : Your format does not match the base files!

FormatVersion   : 2007.01.12 15:56 MKII
FilesVersion: 2008.08.05 18:47

TeXUtil | unable to locate start.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 0
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | TeX run 2
TeXExec | writing option file start.top
TeXExec | using randomseed 93
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
 (/home/mohamed/texmf/web2c/natural.tcx)
entering extended mode
(./start.tex

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2008.7.12  int: english/english

language: language en is active
system  : cont-new loaded
(/home/mohamed/texmf/tex/context/base/cont-new.tex

FatalError  : Your format does not match the base files!

FormatVersion   : 2007.01.12 15:56 MKII
FilesVersion: 2008.08.05 18:47

TeXUtil | unable to locate start.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 0
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 0.397965




-- 
Thanks
Mohamed Bana
___
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] stay on grid in double column

2008-08-13 Thread Jelle Huisman
Hi,

I have text with a small intro section in a double column environment. 
The main text is set on a grid and the intro text is slightly off-grid 
with a \vskip -2pt before and a \vskip 2pt after the intro. As this 
sample shows this works fine, until the intro text is broken over two 
columns. In that case the last part of the intro starts on grid (in the 
second column) and the main text is moved off-grid and does not longer 
register with the main text in the first column :( [see example code].
Is there is way to detect and prevent this (automatically)? Can ConTeXt 
remember that it is setting some text \vskip-ped, while it is breaking 
the current paragraph over columns? (Basically I want to keep all the 
B's on the grid and all the A's \vskipped.)

Thanks, Jelle

% sample code
\definecolumnset[doublecolumn][n=2]
\setupcolumnset[doublecolumn][2][distance=5mm]
\setupbodyfont[12pt]
\setupinterlinespace[line=11pt]
\setuplayout[grid=yes]
\showgrid
\starttext
\startcolumnset[doublecolumn]
\ss \subject{Header}
\dorecurse{2}{\vskip -2pt This text is vskipped. A \dorecurse{40}{ aa 
aa} \vskip 2pt % intro text
This text should stay on the grid. B \dorecurse{270}{ bb bb}} % main 
text should stay on grid
\stopcolumnset
\stoptext
___
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] Font problems with latest minimals on Linux

2008-08-13 Thread Vasile Gaburici
Before I get anymore strawman arguments, here's the definitive experiment:

$ ls -U1 /usr/share/fonts/vista/ | grep erda
Verdanai.ttf
Verdana.ttf
Verdanaz.ttf
Verdanab.ttf

$ ls -U1 /xp/wtf/
Verdana.ttf
Verdanab.ttf
Verdanai.ttf
Verdanaz.ttf

Notice that the directory order is different, bold comes before bold
italic in wtf. I actually had to copy the files to a non-ext3
partition (NTFS actually) to get the order to change. Why? Because
with ext3 htree you have *no* control over the order in which the
directory is laid out, because it's not a linear list anymore.

So, guess what happens if I do:

$ export OSFONTDIR=/xp/wtf/
$ mtxrun --script fonts --reload
$ mtxrun --script fonts --list | grep erda
verdana   Verdana
/xp/wtf/Verdana.ttf
verdana bold  Verdana Bold
/xp/wtf/Verdanab.ttf
verdana bold italic   Verdana Bold Italic
/xp/wtf/Verdanaz.ttf
verdana italicVerdana Italic
/xp/wtf/Verdanai.ttf
$ context taco.tex  | grep Verdana
 
)/xp/wtf/Verdanab.ttf/home/vga/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf

and the correct bold font is loaded in the PDF.

If you still think somehow that this is a problem with Verdana, look
carefully at this list of DejaVu fonts. Some get the bold, and for
some it's missing. It's haphazard depending on the disk order:

$ mtxrun --script fonts --list | grep eja
dejavu lgc sans DejaVu LGC Sans
 /usr/share/fonts/dejavu/DejaVuLGCSans.ttf
dejavu lgc sans bold obliqueDejaVu LGC Sans Bold Oblique
 /usr/share/fonts/dejavu/DejaVuLGCSans-BoldOblique.ttf
dejavu lgc sans condensed   DejaVu LGC Sans Condensed
 /usr/share/fonts/dejavu/DejaVuLGCSansCondensed.ttf
dejavu lgc sans condensed bold oblique  DejaVu LGC Sans Condensed Bold
Oblique  /usr/share/fonts/dejavu/DejaVuLGCSansCondensed-BoldOblique.ttf
dejavu lgc sans condensed oblique   DejaVu LGC Sans Condensed
Oblique   /usr/share/fonts/dejavu/DejaVuLGCSansCondensed-Oblique.ttf
dejavu lgc sans extralight  DejaVu LGC Sans ExtraLight
 /usr/share/fonts/dejavu/DejaVuLGCSans-ExtraLight.ttf
dejavu lgc sans monoDejaVu LGC Sans Mono
 /usr/share/fonts/dejavu/DejaVuLGCSansMono.ttf
dejavu lgc sans mono bold   DejaVu LGC Sans Mono Bold
 /usr/share/fonts/dejavu/DejaVuLGCSansMono-Bold.ttf
dejavu lgc sans mono bold oblique   DejaVu LGC Sans Mono Bold
Oblique   /usr/share/fonts/dejavu/DejaVuLGCSansMono-BoldOblique.ttf
dejavu lgc sans mono obliqueDejaVu LGC Sans Mono Oblique
 /usr/share/fonts/dejavu/DejaVuLGCSansMono-Oblique.ttf
dejavu lgc sans oblique DejaVu LGC Sans Oblique
 /usr/share/fonts/dejavu/DejaVuLGCSans-Oblique.ttf
dejavu lgc serifDejaVu LGC Serif
 /usr/share/fonts/dejavu/DejaVuLGCSerif.ttf
dejavu lgc serif bold italicDejaVu LGC Serif Bold Italic
 /usr/share/fonts/dejavu/DejaVuLGCSerif-BoldItalic.ttf
dejavu lgc serif condensed  DejaVu LGC Serif Condensed
 /usr/share/fonts/dejavu/DejaVuLGCSerifCondensed.ttf
dejavu lgc serif condensed bold DejaVu LGC Serif Condensed
Bold /usr/share/fonts/dejavu/DejaVuLGCSerifCondensed-Bold.ttf
dejavu lgc serif condensed bold italic  DejaVu LGC Serif Condensed
Bold Italic  /usr/share/fonts/dejavu/DejaVuLGCSerifCondensed-BoldItalic.ttf
dejavu lgc serif italic DejaVu LGC Serif Italic
 /usr/share/fonts/dejavu/DejaVuLGCSerif-Italic.ttf
dejavu lgc serif italic condensed   DejaVu LGC Serif Italic
Condensed
/usr/share/fonts/dejavu/DejaVuLGCSerifCondensed-Italic.ttf
dejavu sans DejaVu Sans
 /usr/share/fonts/dejavu/DejaVuSans.ttf
dejavu sans boldDejaVu Sans Bold
 /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf
dejavu sans bold obliqueDejaVu Sans Bold Oblique
 /usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf
dejavu sans condensed   DejaVu Sans Condensed
 /usr/share/fonts/dejavu/DejaVuSansCondensed.ttf
dejavu sans condensed bold  DejaVu Sans Condensed Bold
 /usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf
dejavu sans condensed bold oblique  DejaVu Sans Condensed Bold
Oblique  /usr/share/fonts/dejavu/DejaVuSansCondensed-BoldOblique.ttf
dejavu sans condensed oblique   DejaVu Sans Condensed Oblique
 /usr/share/fonts/dejavu/DejaVuSansCondensed-Oblique.ttf
dejavu sans extralight  DejaVu Sans ExtraLight
 /usr/share/fonts/dejavu/DejaVuSans-ExtraLight.ttf
dejavu sans monoDejaVu Sans Mono
 /usr/share/fonts/dejavu/DejaVuSansMono.ttf
dejavu sans mono bold   DejaVu Sans Mono Bold
 /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf
dejavu sans mono bold oblique   DejaVu Sans Mono Bold 

Re: [NTG-context] Font problems with latest minimals on Linux

2008-08-13 Thread Hans Hagen
Vasile Gaburici wrote:
 Before I get anymore strawman arguments, here's the definitive experiment:
 
 $ ls -U1 /usr/share/fonts/vista/ | grep erda
 Verdanai.ttf
 Verdana.ttf
 Verdanaz.ttf
 Verdanab.ttf
 
 $ ls -U1 /xp/wtf/
 Verdana.ttf
 Verdanab.ttf
 Verdanai.ttf
 Verdanaz.ttf

did you test the latest beta (this afternoon version?)

 XeTeX solves this problem by using *only* the ID 16 and ID 17 OpenType
 values to create a unique name for system fonts. I actually filed a
 bug about lack of support for the common ID 1/2 names, but Johnathan
 WONTFIXED it because he really wants the font names to be unambiguous,
 and using ID 1 and ID 2 values in addition to ID 16/17 doesn't
 guarantee that. Your situation is worse, because you want to support
 all sort of legacy fonts in that single hashtable.

part of the problem was that the mtx-font lookup (shown by list) 
differed from the one used in practice (in tex); this is now harmonized 
(and seems to be ok on taco's and my machine)

 Anyway, I've wasted enough of my time on this matter. If you sill
 don't grok it, forget about it.

you don't want to know how much time we spent on fonts so far -)

 BTW, the Lua 5.1 reference manual is a joke. How do you printf a
 boolean? What's the syntax for their definitely non-standard regexps.

they are not regexps but just expressions; being a lightweight language 
lua does not have regexp (as the manual states: it would add more code 
than lua itself; however, there is lpeg (also in luatex) which is not 
only more poweeful than regexp but also is efficient wrt the implementation

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [OS X TeX] Default rule thickness

2008-08-13 Thread Oliver Buerschaper
 Sorry I missed this thread earlier. The default rule thickness in
 is the eight font parameter of the fonts in math family 3. A bare
 context file with the standard 12pt fonts gives the value 0.47998pt.
 You can get the value via :

   \edef\defautlrulethickness{\the\fontdimen8\textfont3}

 Afaik, in all math setups three fonts in math family 3 are the same
 actual font so just the one value will do. But the actual value
 will definately vary a bit depending on the font setup. For example,
 palatino 12pt has 0.708pt.


OK. However, this doesn't seem to scale properly within the same font  
… try the following:

---
\edef\defaultrulethickness{\the\fontdimen8\textfont3}


\starttext

Lorem ipsum dolor sit amet \defaultrulethickness

\startformula
 \sum_{n=0}^\infty \frac{x^n}{n!}
\stopformula

\setupbodyfont[32pt]

Lorem ipsum dolor sit amet \defaultrulethickness

\startformula
 \sum_{n=0}^\infty \frac{x^n}{n!}
\stopformula

\stoptext
---

So, your font parameter always returns the same value but clearly the  
fraction bar is scaled correctly … something else must be happening  
behind the curtain. If only I knew what it were ;-)

Oliver
___
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] Scope of BodyFontSize etc.

2008-08-13 Thread Oliver Buerschaper
Dear wizards of ConTeXt,

I'm wondering why ConTeXt doesn't seem to know about BodyFontSize in  
the MPinclusions block … try:

---
\startMPinclusions
 DefaultRuleThickness := 0.47998pt*BodyFontSize/12pt;

 pickup pencircle scaled DefaultRuleThickness;
 defaultpen := savepen;
\stopMPinclusions

\startuseMPgraphic{localRule1a}
 draw fullsquare scaled BodyFontSize;
\stopuseMPgraphic


\starttext

\startformula
 \Phi(\useMPgraphic{localRule1a})
\stopformula

\stoptext
---

As soon as I move the content of MPinclusions over to the beginning  
of my useMPgraphic code everything works as expected …

Where's the best location to put this sort of definitions then? Is it  
the MPenvironment block?

Oliver
___
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] Font problems with latest minimals on Linux

2008-08-13 Thread Taco Hoekwater
Vasile Gaburici wrote:
 Before I get anymore strawman arguments, here's the definitive experiment:

As Hans said, should be corrected in the latest beta. Please cut us some 
slack here, debugging unreproducible problems is hard and timeconsuming.

 
 BTW, the Lua 5.1 reference manual is a joke.
 How do you printf a boolean? 

This is indeed not in the manual, but lua behaves like most other
languages with boolean types: the boolean prints the string true
or false  in a string (=debugging) context. You can force
conversion to string by calling tostring() on it.

 What's the syntax for their definitely non-standard regexps.
 No answers in that reference.

Section 5.4.1 Patterns

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


Re: [NTG-context] no linebreak before footnote after vertical line

2008-08-13 Thread Taco Hoekwater
Steffen Wolfrum wrote:
 schrieb Wolfgang Schuster:
 Steffen Wolfrum wrote:
 bla bla bla |WikiPOBia|\footnote{note}.
 \stoptext

 ... on my machine the second line starts with the footnote marker 1.


 Is there a general solution to avoid this bad coincidence?
 \hyphenation{WikiPOBia}
 
 well, I meant a more general solution, like tuning up the vertikal  
 line to a no hyphen inbetween and no linebreak afterwards - character?!

Actually, you are misusing the || command. It is supposed to be
used to explicitly *allow* breaking at the left of the first and
at the right of the second |. The fact that the inbetween text
does not hyphenate is a side-effect, not the main feature.

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


Re: [NTG-context] [OS X TeX] Default rule thickness

2008-08-13 Thread Taco Hoekwater
Oliver Buerschaper wrote:
 Sorry I missed this thread earlier. The default rule thickness in
 is the eight font parameter of the fonts in math family 3. A bare
 context file with the standard 12pt fonts gives the value 0.47998pt.
 You can get the value via :

   \edef\defautlrulethickness{\the\fontdimen8\textfont3}

 Afaik, in all math setups three fonts in math family 3 are the same
 actual font so just the one value will do. But the actual value
 will definately vary a bit depending on the font setup. For example,
 palatino 12pt has 0.708pt.
 
 
 OK. However, this doesn't seem to scale properly within the same font  
 … try the following:
 
 ---
 \edef\defaultrulethickness{\the\fontdimen8\textfont3}

That is because of the \edef. Changing to a plain \def should help:

   \def\defaultrulethickness{\the\fontdimen8\textfont3\relax}

(the \relax is now needed because there could be a digit following).

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


Re: [NTG-context] texmfstart texexec

2008-08-13 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear gang,

On Tue, 12 Aug 2008 15:59:20 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Idris Samawi Hamid ? ?  wrote:
 Dear gang,

 I am upgrading my system to the latest mswincontext distro.

 After some hiccups, context.cmd finds its target script, so I can  
 generate
 the mkiv format

 But for

 texmfstart.exe texexec

 I keep getting

 ruby: no such file to load -- ubygems (LoadError)

 hm, some rubygems interaction; i really dislike these 'package managers
 overloading the module loaders'

 texmfstart --locate texexec.rb

 gives me

 /texmf-context/scripts/context/ruby/texexec.rb

 Any ideas on what's wrong?

 some messy ruby in your path

 you can make a small bat file that starts texmfstart

 @echo off
 setlocal
 ruby c:\pathtoscript\texmfstart.rb %*
 endlocal

 might work

 or (what i have here) just add scripts/context/ruby to your PATH
 variable and associate .rb with ruby

Still no luck. Here is some info:

ruby 1.8.4 (2005-12-24) [i386-mswin32]

\texmf-context\scripts\context\rubytexmfstart texexec
ruby: no such file to load -- ubygems (LoadError)

I ran the above in the directory with the scripts.

Is there a setup or ini file where I need to change the path?

I compared my old setuptex.bat with the new one. No real clues yet.

\texmf-context\scripts\context\ruby is in the PATH, rebooted

Any ideas? What has changed since the last mswincontext, other that the  
switch from -local/ to -context/?

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


[NTG-context] presentations

2008-08-13 Thread Hans Hagen
Hi,

some presentations from tug 2008 are at

http://www.luatex.org/talks/screen-luatex-tug-2008.pdf
http://www.luatex.org/talks/print-luatex-tug-2008.pdf

http://www.luatex.org/talks/screen-mplib-tug-2008.pdf
http://www.luatex.org/talks/print-mplib-tug-2008.pdf

http://www.luatex.org/talks/screen-punk-tug-2008.pdf
http://www.luatex.org/talks/print-punk-tug-2008.pdf



-
   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] [OS X TeX] Default rule thickness

2008-08-13 Thread Oliver Buerschaper
 OK. However, this doesn't seem to scale properly within the same font
 … try the following:

 ---
 \edef\defaultrulethickness{\the\fontdimen8\textfont3}

 That is because of the \edef. Changing to a plain \def should help:

   \def\defaultrulethickness{\the\fontdimen8\textfont3\relax}

Yep, works!

What's the correct way of piping this to MetaFun? Putting

DefaultRuleThickness := \defaultrulethickness;

into each \startuseMPgraphic{} block works, but how can I define  
this globally? Moving it into \startMPinclusions creates a scope  
problem … see also the other thread about BodyFontSize etc.

Thanks for your help,
Oliver
___
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] Table heading repeating on a new page

2008-08-13 Thread abbg770
Hi,

Is it possible to do this? As in the Chance this and To this headings 
are repeated on the top of each page

Beware the images are big;

-http://imagebin.org/24166
-If the above doesn't work; http://imagebin.ca/view/LWZdNWP5.html


Thanks
Mohamed Bana
___
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] no linebreak before footnote after vertical line

2008-08-13 Thread Steffen Wolfrum

Am 13.08.2008 um 19:04 schrieb Taco Hoekwater:

 Steffen Wolfrum wrote:
 schrieb Wolfgang Schuster:
 Steffen Wolfrum wrote:
 bla bla bla |WikiPOBia|\footnote{note}.
 \stoptext

 ... on my machine the second line starts with the footnote marker  
 1.


 Is there a general solution to avoid this bad coincidence?
 \hyphenation{WikiPOBia}

 well, I meant a more general solution, like tuning up the vertikal
 line to a no hyphen inbetween and no linebreak afterwards -  
 character?!

 Actually, you are misusing the || command. It is supposed to be
 used to explicitly *allow* breaking at the left of the first and
 at the right of the second |. The fact that the inbetween text
 does not hyphenate is a side-effect, not the main feature.


oh.

... that's why!


steffen

___
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] Reference Manual Project

2008-08-13 Thread Henning Hraban Ramm
Am 2008-08-11 um 21:44 schrieb Hans Hagen:

 Henning Hraban Ramm wrote:

 BTW in LilyPond there's a multilingual glossary, perhaps we should
 start such, too? We often get confusion with technical terms. And at
 least in German there's currently not even a technical dictionary for
 the print/design industries.

 good idea, perfect for a wiki page

Ok, I started it:
http://wiki.contextgarden.net/Dictionary

I was surprised that there's already a Glossary, but that should  
stay like an index, i.e. to find subjects, not translations.




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


Re: [NTG-context] texmfstart texexec

2008-08-13 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Hans,

I think I found a clue:

If I start a command shell (no scite or npp or other editor) and do

setuptex c:\context\tex
texmfstart texexec

I get

TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

TeXExec | --checkcheck versions
TeXExec | --figures  generate overview of figures
TeXExec | --listing  list of file content
TeXExec | --make make formats
TeXExec | --modules  generate module documentation
TeXExec | --mpgraphicprocess mp file to stand-alone graphics
TeXExec | --mpstatic process mp/ctx file to stand-alone graphics
TeXExec | --mptexprocess mp file
TeXExec | --mpxtex   process mpx file
TeXExec | --pdfarrange   impose pages (booklets)
TeXExec | --pdfcombine   combine multiple pages
TeXExec | --pdfcopy  copy pages from file(s)
TeXExec | --pdfselectselect pages from file(s)
TeXExec | --pdfsplit split file in pages
TeXExec | --pdftrim  trim pages from file(s)
TeXExec | --process  process file
TeXExec |
TeXExec | --help --all   shows all switches

If I click on

cscite.bat

scite opens. Then I do CTRL-6 for a window. then I do

texmfstart texexec

getting

ruby: no such file to load -- ubygems (LoadError)

Even

setuptex c:\context\tex
texmfstart texexec

in scite gives me

ruby: no such file to load -- ubygems (LoadError)

Could there be something screwy in cscite.bat? Or setuptex.bat?

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


Re: [NTG-context] Partly OT: some luatex questions

2008-08-13 Thread Arthur Reutenauer
Hello Ulrike,

 1. In the following document there is no space between the a and the y:
 
 \documentclass{article}
 \begin{document}
 \noindent a\\y 
 
 \bigskip  
 
 a\par y
 \end{document}
 
 It looks as if the lines have only the depth from their content. 

  I don't seem to see that (see attachment).  How did you generate the
format?  I used “luatex -ini pdflualatex.ini” where pdflualatex.ini
contains

\pdfoutput1
\input latex.ltx

 2. I found here some code to use truetype and opentype fonts:
 http://luatex.bluwiki.com/go/Use_a_TrueType_font

  Oh, that ;-)  You really have to realize that these lines of code are
nothing more than an experiment I wrote one and a half year ago, and you
should be prepared to extend it if you want complete TrueType support
(not to mention OpenType features, which are absent altogether).  That
said, the problems should not be as bad as the ones you report below:

 a) I tested it with a latin modern font and arial and with both fonts
 all lines of a text are printed one above the other.
 of the lines have a height and a depth. 

  That's not what happens to me, you should really send a precise example.

 b) I also tried MnSymbol5.otf and there I get an error invalid
 character. (I tried to get an A). With xetex the font works fine. 

  I can't confirm that.  I get the A all right (see attachment).  Again,
please send the precise example that fails.

Arthur


ulrike.tex
Description: TeX document


ulrike.pdf
Description: Adobe PDF document
___
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] texmfstart texexec

2008-08-13 Thread Hans Hagen
Idris Samawi Hamid ادريس سماوي حامد wrote:

 Could there be something screwy in cscite.bat? Or setuptex.bat?

what does

echo %PATH%

report?

-
   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] texmfstart texexec

2008-08-13 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Wed, 13 Aug 2008 15:26:02 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Idris Samawi Hamid ادريس سماوي حامد wrote:

 Could there be something screwy in cscite.bat? Or setuptex.bat?

 what does

 echo %PATH%

 report?

\testecho %PATH%
C:\ConTeXt\goodies\bin;C:\ConTeXt\xmllib\bin;C:\ConTeXt\gs\bin;C:\ConTeXt\ruby\bin;C:\ConTeXt\tex\texmf-mswin\bin;

[followed by the rest of my global environment variables, including the  
presets following]

C:\ConTeXt;C:\ConTeXt\tex;C:\ConTeXt\tex\texmf-mswin\bin;C:\ConTeXt\tex\texmf-project\bin\miktex-bin;
C:\ConTeXt\tex\texmf-project\bin\fptex-bin;C:\ConTeXt\tex\texmf-context\scripts\context\ruby;
C:\ConTeXt\tex\texmf-local\scripts\context\stubs\mswin;C:\ruby\bin;C:\Perl\bin\;

...

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


Re: [NTG-context] [OS X TeX] Default rule thickness

2008-08-13 Thread Hans Hagen
Oliver Buerschaper wrote:
 OK. However, this doesn't seem to scale properly within the same font
 … try the following:

 ---
 \edef\defaultrulethickness{\the\fontdimen8\textfont3}
 That is because of the \edef. Changing to a plain \def should help:

   \def\defaultrulethickness{\the\fontdimen8\textfont3\relax}
 
 Yep, works!
 
 What's the correct way of piping this to MetaFun? Putting
 
 DefaultRuleThickness := \defaultrulethickness;
 
 into each \startuseMPgraphic{} block works, but how can I define  
 this globally? Moving it into \startMPinclusions creates a scope  
 problem … see also the other thread about BodyFontSize etc.

\def\defaultrulethickness{\the\fontdimen8\textfont\plusthree}

\startMPinitializations
   DefaultRuleThickness := \defaultrulethickness;
\stopMPinitializations

-
   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] Font problems with latest minimals on Linux

2008-08-13 Thread Vasile Gaburici
On Wed, Aug 13, 2008 at 8:00 PM, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Vasile Gaburici wrote:

 Before I get anymore strawman arguments, here's the definitive experiment:

 As Hans said, should be corrected in the latest beta. Please cut us some
 slack here, debugging unreproducible problems is hard and timeconsuming.

Okay, I've updated to the latest beta. Recursive OSFONTDIR works now
for script --fonts --reload and for context, but script --fonts
--list is broken: no output.

The other bug, i.e. embedding bold italic instead of bold for some
fonts, is still present.
___
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] Lastest Build on TeXlive 2008 and MikTeX 2.7

2008-08-13 Thread Thomas A. Schmitz

On Aug 13, 2008, at 5:28 PM, [EMAIL PROTECTED] wrote:

 Ok so I'm trying to install cont-tmf.zip on a Fedora 9 box with  
 TexLive 2008
 into my local ~/texmf/.

 $ kpsexpand '$TEXMFHOME'
 /home/mohamed/texmf

 $ ls ~/texmf/ bibtex cont-ext.zip cont-img.zip cont-ppc.zip doc  
 metapost
 tex web2c context cont-fnt.zip cont-mpd.zip cont-tmf.zip fonts  
 scripts tpm

 $ su -c 'texhash'
 Password:
 texhash: Updating /etc/texmf/ls-R...
 texhash: Updating /usr/local/share/texmf/ls-R...
 texhash: Updating /usr/share/texmf/ls-R...
 texhash: Updating /var/lib/texmf/ls-R...
 texhash: Done.

 But when I try to typeset;

 \starttext
 hello
 \stoptext

 I get this error;

Did you remake the formats after unzipping cont-tmf.zip? The format  
texexec finds is from 2007/01, so it can't be the one that comes with  
TeXLive 2008, it must be some older stuff that shadows newer formats.  
What does
kpsewhere --engine=pdftex cont-en.fmt
return?

Thomas



 $ texexec start.tex /usr/bin/texmfstart:1838: warning: Insecure world
 writable dir /home/mohamed/Desktop/scala-2.7.1.final/bin in PATH, mode
 040777 /home/mohamed/texmf/scripts/context/ruby/base/system.rb:16:  
 warning:
 Insecure world writable dir /home/mohamed/Desktop/scala-2.7.1.final/ 
 bin in
 PATH, mode 040777 TeXExec | processing document 'start.tex' TeXExec  
 | no
 ctx file found TeXExec | tex processing method: context TeXExec |  
 TeX run 1
 TeXExec | writing option file start.top TeXExec | using randomseed 93
 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is  
 pdfTeXk,
 Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
 (/home/mohamed/texmf/web2c/natural.tcx)
 entering extended mode
 (./start.tex

 ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2008.7.12  int: english/ 
 english

 language: language en is active
 system  : cont-new loaded
 (/home/mohamed/texmf/tex/context/base/cont-new.tex

 FatalError  : Your format does not match the base files!

 FormatVersion   : 2007.01.12 15:56 MKII
 FilesVersion: 2008.08.05 18:47

 TeXUtil | unable to locate start.tui
 TeXUtil | shortcuts : 0
 TeXUtil | expansions: 0
 TeXUtil | reductions: 0
 TeXUtil | divisions : 0
 TeXUtil | loaded files: 0
 TeXUtil | temporary files: 0
 TeXUtil | commands: 0
 TeXUtil | programs: 0
 TeXUtil | tuo file saved
 TeXExec | TeX run 2
 TeXExec | writing option file start.top
 TeXExec | using randomseed 93
 TeXExec | tex engine: pdftex
 TeXExec | tex format: cont-en
 This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %-line parsing enabled.
 (/home/mohamed/texmf/web2c/natural.tcx)
 entering extended mode
 (./start.tex

 ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2008.7.12  int: english/ 
 english

 language: language en is active
 system  : cont-new loaded
 (/home/mohamed/texmf/tex/context/base/cont-new.tex

 FatalError  : Your format does not match the base files!

 FormatVersion   : 2007.01.12 15:56 MKII
 FilesVersion: 2008.08.05 18:47

 TeXUtil | unable to locate start.tui
 TeXUtil | shortcuts : 0
 TeXUtil | expansions: 0
 TeXUtil | reductions: 0
 TeXUtil | divisions : 0
 TeXUtil | loaded files: 0
 TeXUtil | temporary files: 0
 TeXUtil | commands: 0
 TeXUtil | programs: 0
 TeXUtil | tuo file saved
 TeXExec | runtime: 0.397965


___
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] Font problems with latest minimals on Linux

2008-08-13 Thread Vasile Gaburici
If you still haven't figured out how to reproduce it, apply the
patched I've attached. It will force the hash entries to be added in
sorted order. With the patch applied, if you have some fonts called

Calibri Bold Italic.otf
Calibri Bold.otf
Calibri Italic.otf
Calibri.otf

the order of hash insertions will always exactly as above, regardless
of disk order, e.g.:

filename | 49 - /usr/share/fonts/vista/C-series/Calibri Bold Italic.otf
filename | 50 - /usr/share/fonts/vista/C-series/Calibri Bold.otf
filename | 51 - /usr/share/fonts/vista/C-series/Calibri Italic.otf
filename | 52 - /usr/share/fonts/vista/C-series/Calibri.otf

So, you'll get bold italic instead of bold in the PDF.

Feel free to fiddle with the sort function if you name fonts
differently, but you need to make sure that bold italic gets loaded
before bold for the bug to occur.

On Thu, Aug 14, 2008 at 7:33 AM, Vasile Gaburici [EMAIL PROTECTED] wrote:
 On Wed, Aug 13, 2008 at 8:00 PM, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Vasile Gaburici wrote:

 Before I get anymore strawman arguments, here's the definitive experiment:

 As Hans said, should be corrected in the latest beta. Please cut us some
 slack here, debugging unreproducible problems is hard and timeconsuming.

 Okay, I've updated to the latest beta. Recursive OSFONTDIR works now
 for script --fonts --reload and for context, but script --fonts
 --list is broken: no output.

 The other bug, i.e. embedding bold italic instead of bold for some
 fonts, is still present.

diff -up context/tex/texmf-context/tex/context/base/font-syn.lua.nosort context/tex/texmf-context/tex/context/base/font-syn.lua
--- context/tex/texmf-context/tex/context/base/font-syn.lua.nosort	2008-08-14 07:43:48.0 +0300
+++ context/tex/texmf-context/tex/context/base/font-syn.lua	2008-08-14 08:46:28.0 +0300
@@ -193,8 +193,12 @@ function fonts.names.identify(verbose)
 local pattern = path .. **. .. suffix -- ** forces recurse
 logs.report(fontnames, globbing path %s,pattern)
 local t = dir.glob(pattern)
-for _, name in pairs(t) do -- ipairs
+table.sort(t, function (str1, str2)
+ return str1  str2
+  end)
+for huh, name in pairs(t) do -- ipairs
 --  if lfs.isfile(name) then -- always true anyway
+logs.report(filename, %d - %s, huh, name)
 identify(name,file.basename(name),suffix)
 --  end
 end
___
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
___