[NTG-context] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Charles Doherty
Dear Hans and Wolfgang,

I have started experimenting with the Lua engine through TeXShop. I use 
\EnglishRule in a Newsletter to separate major items. When I use it in the 
attached file it works as always when I use the ConteXt engine (TL2009) and in 
my minimals installation it works fine using MinimalsConTeXt engine and 
MinimalsXeConTeXt engine. When I switch to using the simplefonts module in 
MinimalsLua engine the \EnglishRule does not behave properly. Also the text 
switches to italic. I have attached a small file and if you comment out the 
lines and switch between the engines you can see what I mean. 

Thanks for any help,
Best wishes,
Charlie


EnglishRuleTest.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Wolfgang Schuster

Am 24.11.2009 um 13:57 schrieb Charles Doherty:

 Dear Hans and Wolfgang,
 
 I have started experimenting with the Lua engine through TeXShop. I use 
 \EnglishRule in a Newsletter to separate major items. When I use it in the 
 attached file it works as always when I use the ConteXt engine (TL2009) and 
 in my minimals installation it works fine using MinimalsConTeXt engine and 
 MinimalsXeConTeXt engine. When I switch to using the simplefonts module in 
 MinimalsLua engine the \EnglishRule does not behave properly. Also the text 
 switches to italic. I have attached a small file and if you comment out the 
 lines and switch between the engines you can see what I mean. 

MkIV works fine for me, update your minimals to the last ConTeXt version and 
tell us if the problem remains.

Wolfgang

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

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


Re: [NTG-context] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Charles Doherty
Dear Wolfgang,

I deleted my Minimals folder and did a complete re-install following 
instructions on ConTeXtGarden  curl -o first-setup.sh 
http://minimals.contextgarden.net/setup/first-setup.sh
etc.

I also downloaded simplefonts using the sh ./first-setup.sh 
--extras=t-simplefonts

I still get the results as described below. 

Charlie

On 24 Nov 2009, at 13:38, Wolfgang Schuster wrote:

 
 Am 24.11.2009 um 13:57 schrieb Charles Doherty:
 
 Dear Hans and Wolfgang,
 
 I have started experimenting with the Lua engine through TeXShop. I use 
 \EnglishRule in a Newsletter to separate major items. When I use it in the 
 attached file it works as always when I use the ConteXt engine (TL2009) and 
 in my minimals installation it works fine using MinimalsConTeXt engine and 
 MinimalsXeConTeXt engine. When I switch to using the simplefonts module in 
 MinimalsLua engine the \EnglishRule does not behave properly. Also the text 
 switches to italic. I have attached a small file and if you comment out the 
 lines and switch between the engines you can see what I mean. 
 
 MkIV works fine for me, update your minimals to the last ConTeXt version and 
 tell us if the problem remains.
 
 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] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Wolfgang Schuster

Am 24.11.2009 um 15:52 schrieb Charles Doherty:

 Dear Wolfgang,
 
 I deleted my Minimals folder and did a complete re-install following 
 instructions on ConTeXtGarden  curl -o first-setup.sh 
 http://minimals.contextgarden.net/setup/first-setup.sh
 etc.
 
 I also downloaded simplefonts using the sh ./first-setup.sh 
 --extras=t-simplefonts
 
 I still get the results as described below. 

Can you send the log file.

Wolfgang

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

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


Re: [NTG-context] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Charles Doherty
Here it is:Thanks for taking the time.Charlie

EnglishRuleTest.log
Description: Binary data
On 24 Nov 2009, at 15:36, Wolfgang Schuster wrote:Am 24.11.2009 um 15:52 schrieb Charles Doherty:Dear Wolfgang,I deleted my Minimals folder and did a complete re-install following instructions on ConTeXtGarden curl -o first-setup.sh http://minimals.contextgarden.net/setup/first-setup.shetc.I also downloaded simplefonts using thesh ./first-setup.sh --extras="t-simplefonts"I still get the results as described below.Can you send the log file.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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : 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] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Wolfgang Schuster

Am 24.11.2009 um 17:17 schrieb Charles Doherty:

 Here it is:
 Thanks for taking the time.

There is nothing I can see here which produce this results.

What do you get with the following lines on the command line:

mtxrun --script font --list dejavuserif
mtxrun --script font --list dejavuserifnormal

Can you also try to delete the luatex cache (everything below 
/Users/charlesdoherty/context/tex/texmf-cache/) and regenerate (luatools 
--generate) it.

Wolfgang

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

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


Re: [NTG-context] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Charles Doherty
Dear Wolfgang,

I deleted the luatex cashe. I got the same output. Then I ran the scripts. This 
is the result:

dejavuserif   dejavuserif   /Library/Fonts/DejaVuSerif.ttf
dejavuserifnormal   dejavuserifitalic   /Library/Fonts/DejaVuSerif-Italic.ttf

Charlie
On 24 Nov 2009, at 17:07, Wolfgang Schuster wrote:

 There is nothing I can see here which produce this results.
 
 What do you get with the following lines on the command line:
 
 mtxrun --script font --list dejavuserif
 mtxrun --script font --list dejavuserifnormal
 
 Can you also try to delete the luatex cache (everything below 
 /Users/charlesdoherty/context/tex/texmf-cache/) and regenerate (luatools 
 --generate) it.
 
 Wolfgang

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

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


Re: [NTG-context] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Otared Kavian
Hi Charles and Wolfgang,

I have noticed the same problem, as the one Charles is describing, with the « 
English rule » or the « swelled rule » and mkiv, and I think that this has 
nothing to do with fonts. Maybe, it is rather with the way \localhsize is 
defined in recent versions of mkiv: the « rule » appears in a rather starnge 
way on different pages.

My minimal example test file:

%%%

%% defining swelled rule, or English rule...
\setupMPvariables[SwelledRule][height=2pt,breadth=.667\localhsize]
\startuniqueMPgraphic{SwelledRule}{height,breadth} 
x1 = 0; x2 = x6 = .333x4; x3 = x5 = .667x4; x4 = \MPvar{breadth}; 
y1 = y4 = \MPvar{height}/2; y2 = y3 = \MPvar{height}; y5 = y6 = 0; 
fill z1--z2--z3--z4--z5--z6--cycle; 
\stopuniqueMPgraphic 

\def\SwelledRule{\blank%
\setlocalhsize\midaligned{\reuseMPgraphic{SwelledRule}}\blank} 
%% end swelled rule

\starttext

\dorecurse{20}{\input knuth \par \blank
\SwelledRule
\input knuth \page}
\stoptext

%%%


Best regards: OK


On 24 nov. 2009, at 13:57, Charles Doherty wrote:

 Dear Hans and Wolfgang,
 
 I have started experimenting with the Lua engine through TeXShop. I use 
 \EnglishRule in a Newsletter to separate major items. When I use it in the 
 attached file it works as always when I use the ConteXt engine (TL2009) and 
 in my minimals installation it works fine using MinimalsConTeXt engine and 
 MinimalsXeConTeXt engine. When I switch to using the simplefonts module in 
 MinimalsLua engine the \EnglishRule does not behave properly. Also the text 
 switches to italic. I have attached a small file and if you comment out the 
 lines and switch between the engines you can see what I mean. 
 
 Thanks for any help,
 Best wishes,
 Charlie
 EnglishRuleTest.tex___
 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] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Wolfgang Schuster

Am 24.11.2009 um 19:06 schrieb Otared Kavian:

 Hi Charles and Wolfgang,
 
 I have noticed the same problem, as the one Charles is describing, with the « 
 English rule » or the « swelled rule » and mkiv, and I think that this has 
 nothing to do with fonts. Maybe, it is rather with the way \localhsize is 
 defined in recent versions of mkiv: the « rule » appears in a rather starnge 
 way on different pages.
 
 My minimal example test file:

And what should I see here, I get the same rule on each page.

Wolfgang

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

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


Re: [NTG-context] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Wolfgang Schuster

Am 24.11.2009 um 19:03 schrieb Charles Doherty:

 Dear Wolfgang,
 
 I deleted the luatex cashe. I got the same output. Then I ran the scripts. 
 This is the result:
 
 dejavuserif   dejavuserif   /Library/Fonts/DejaVuSerif.ttf
 dejavuserifnormal   dejavuserifitalic   /Library/Fonts/DejaVuSerif-Italic.ttf

This explains why you get italic text, you can try to copy the fonts in your 
TeX directory
(dont't forget 'luatools --generate' and 'mtxrun --script font --reload' to let 
ConTeXt know
there are new fonts) and look if this works or you write

  \setmainfont[DejaVu Serif][regularfont={*}]

Wolfgang

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

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


Re: [NTG-context] EnglishRule and Lua / Simplefonts module

2009-11-24 Thread Otared Kavian

On 24 nov. 2009, at 19:16, Wolfgang Schuster wrote:

 […]
 
 And what should I see here, I get the same rule on each page.
 
 Wolfgang

Sorry, Wolfgang I didn't attach the PDF file in order to pass through the 
mailing list.
I get English rules of various sizes placed almost at random somewhere on the 
page:



swelled-rule.pdf
Description: Adobe PDF document


I am running the latest release on Mac OS X 10.6.2: 
This is LuaTeX, Version beta-0.45.0-2009111904
ConTeXt  ver: 2009.11.24 10:13 MKIV  fmt: 2009.11.24  int: english/english

Best regards: OK___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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