Re: [NTG-context] \restoreglobalbodyfont messes up superscripts

2009-04-04 Thread Wolfgang Schuster


Am 03.04.2009 um 20:13 schrieb Michael Bynum:


I was originally trying to make the font inside a table smaller, and
when I was trying things out, I ran into a problem with
\restoreglobalbodyfont changing the font size of my superscripts from
what it was before the command was issued.  I really just want to make
the font inside my table smaller, but I don't know how to turn off a
formating command like \tfxx.  I originally thought that was what \par
was for, but it doesn't seem to do anything.  I then tried
\restoreglobalbodyfont, but started running into my issues.  Can
anyone give me any help with this issue?



\starttext

Sample Text\high{TEST}

\placetable[here]
  {none}
  {\setuptables[bodyfont=xx]
   \starttable{|c|f{\ss}c|}
   \HL
   \NC test \NC test \NC\AR
   \NC test \NC test \NC\AR
   \HL
   \stoptable}

{\txx Sample Text\high{TEST}}

Sample Text\high{TEST}

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


Re: [NTG-context] Background for current page only

2009-04-04 Thread Wolfgang Schuster


Am 03.04.2009 um 22:54 schrieb Khaled Hosny:


How to set a background for the current page only? \setupbackgrounds
sets backgrounds for all pages, I don't seem to find a way to turn it
on/off for certain pages (\setupbackgrounds[state=start/stop] has no
effect).



Tricky thing, here is a (not so) quick and dirty solution.

\unprotect

\let\!!savedbackgroundcolor\empty

\def\onbackground
  {\globallet\@@mapagebackgroundcolor\!!savedbackgroundcolor}

\def\offbackground
  {\globallet\!!savedbackgroundcolor\@@mapagebackgroundcolor
   \globalletempty\@@mapagebackgroundcolor}

\def\nobackground
  {\globallet\@@mapagebackgroundcolor\!!savedbackgroundcolor
   \globalletempty\@@mapagebackgroundcolor
   \appendtoks\globallet\@@mapagebackgroundcolor\!! 
savedbackgroundcolor\to\afterpage}


\def\gobackground
  {\globallet\@@mapagebackgroundcolor\!!savedbackgroundcolor
   \appendtoks\globalletempty\@@mapagebackgroundcolor\to\afterpage}

\protect

\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=lightgray] 
\offbackground


\starttext
\input tufte
\page
\gobackground
\input tufte
\page
\input tufte
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Perfect Mac OS X Installation?

2009-04-04 Thread Mojca Miklavec
On Sat, Apr 4, 2009 at 11:35, Markus Hubig mhu...@gmail.com wrote:
 Hi @all,

 i've done a fresh install of ConTeXt Minimals on my Mac OS X box.
 Now I like to put my setup steps into a small script so my brother can
 use it. It wold be nice if someone can give me some comments ...
 maybe I missed something, maybe I did something stupid!

I would not install it to /Applications; it doesn't behave like a Mac
application, but that's completely up to you.

 # Fix some path values inside setuptex
 cd /Applications/ConTeXtMinimals/tex
 cp setuptex setuptex.orig
 sed -e 's#^export HOMETEXMF .*$#export HOMETEXMF = ~/texmf#g' \
    -e 's#^export TEXMF .*$#export TEXMF =
 {$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}#g'
 \
    setuptex.orig  setuptex

No time to comment extensively, but you don't need to rename it back
to setuptex. Just create mysetuptex/mytex and call that one.

If you rename it to setuptex, it will get rewritten next time when you update.

 # Fix some path values inside texmf.cnf
 cd /Applications/ConTeXtMinimals/tex
 mkdir -p texmf-local/web2c
 cp texmf/web2c/texmf.cnf texmf-local/web2c/texmf.orig
 cd texmf-local/web2c
 sed -e 's#^HOMETEXMF .*$#HOMETEXMF = ~/texmf#g' \
    -e 's#^TEXMF .*$#TEXMF =
 {$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}#g'
 \
    texmf.orig  texmf.cnf

That's OK.

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

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


[NTG-context] Perfect Mac OS X Installation?

2009-04-04 Thread Markus Hubig
Hi @all,

i've done a fresh install of ConTeXt Minimals on my Mac OS X box.
Now I like to put my setup steps into a small script so my brother can
use it. It wold be nice if someone can give me some comments ...
maybe I missed something, maybe I did something stupid!

- Markus

---8---schnipp--
# Create the application folder
mkdir /Applications/ConTeXtMinimals/

# Download  Install the 'ConTeXt Minimals' distro
cd /Applications/ConTeXtMinimals/
curl -o first-setup.sh http://minimals.contextgarden.net/setup/first-setup.sh
sh ./first-setup.sh

# Fix some path values inside setuptex
cd /Applications/ConTeXtMinimals/tex
cp setuptex setuptex.orig
sed -e 's#^export HOMETEXMF .*$#export HOMETEXMF = ~/texmf#g' \
-e 's#^export TEXMF .*$#export TEXMF =
{$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}#g'
\
setuptex.orig  setuptex

# Fix some path values inside texmf.cnf
cd /Applications/ConTeXtMinimals/tex
mkdir -p texmf-local/web2c
cp texmf/web2c/texmf.cnf texmf-local/web2c/texmf.orig
cd texmf-local/web2c
sed -e 's#^HOMETEXMF .*$#HOMETEXMF = ~/texmf#g' \
-e 's#^TEXMF .*$#TEXMF =
{$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}#g'
\
texmf.orig  texmf.cnf

# customize bash settings
cd
echo source /Applications/ConTeXtMinimals/tex/setuptex
/Applications/ConTeXtMinimals/tex  ~/.bash_profile
source ~/.bash_profile

# do some stuff ...
ctxtools --update
texexec --make --all --pdftex
texexec --make --all --xetex
luatools --generate
luatools --ini --compile --verbose cont-en
luatools --ini --compile --verbose cont-de
luatools lmr12.afm
context --generate

---8---schnapp--

-- 
---it's like this--
even samurai have teddy bears
and even teddy bears get drunk
___
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] \framed (and others) don't honor directional switches

2009-04-04 Thread Hans Hagen

Khaled Hosny wrote:

On Fri, Apr 03, 2009 at 11:17:25PM +0200, Hans Hagen wrote:

a better example of the mess we're dealing with:

\starttext

\pagedir TRT \bodydir TRT \pardir TRT \textdir TRT \startTEXpage \input  
tufte \stopTEXpage
\pagedir TLT \bodydir TRT \pardir TRT \textdir TRT \startTEXpage \input  
tufte \stopTEXpage
\pagedir TRT \bodydir TLT \pardir TRT \textdir TRT \startTEXpage \input  
tufte \stopTEXpage
\pagedir TLT \bodydir TLT \pardir TRT \textdir TRT \startTEXpage \input  
tufte \stopTEXpage


\stoptext


Thanks for the example, I think I got your point. From my understanding,
I think text and paragraph direction should be only controlled by
\textdir and \pardir respectively, whatever \pagedir or \bodydir are.
Indeed, I don't see why \bodydir would influence the text direction
inside boxes.


indeed, so we're looking into it now (an dlet's forget about the 
page/bodydir for the moment)


since textdir and pardir go hand-in-hand i suggest the following

\setuplayout[direction=r2l]% also influences general layout issues
\setupalign [r2l]  % textdir and pardir
\setuparranging[direction=r2l] % will flush pages backward

so l2r and r2l values; as they are part of the align mechanism then, 
they are automatically part of all commands that have a align key


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] base- vs. node-kerning

2009-04-04 Thread Hans Hagen

Andreas Harder wrote:

Hello,

the kerning with mode=node seems not to work as desired, the gaps after 
the kerned character are to big. Here is a test file:



\setupcolors[state=start]

\definefontfeature[base][mode=base,kern=yes]
\definefontfeature[node][mode=node,kern=yes]

\definefont[MinBase][name:minionpro-regular*base]
\definefont[MinNode][name:minionpro-regular*node]

% \definefont[MinBase][Serif*base]
% \definefont[MinNode][Serif*node]

\starttext

\startbuffer[Kerning]
  \startlines
Wer
Tat
Ver
VAI
  \stoplines
\stopbuffer

\startTEXpage
  \startoverlay
{\hbox to 1cm {\vbox{\MinBase\darkred{\getbuffer[Kerning]
{\hbox to 1cm {\vbox{\MinNode{\getbuffer[Kerning]
  \stopoverlay
\stopTEXpage

\stoptext


ok, fixed in next beta (if your're in a hurry i can send you a patch); 
bug was introduced when finishing rough ends of right-left handling



-
  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] base- vs. node-kerning

2009-04-04 Thread Andreas Harder


Am 04.04.2009 um 12:48 schrieb Hans Hagen:


Andreas Harder wrote:

Hello,
the kerning with mode=node seems not to work as desired, the gaps  
after the kerned character are to big. Here is a test file:

\setupcolors[state=start]
\definefontfeature[base][mode=base,kern=yes]
\definefontfeature[node][mode=node,kern=yes]
\definefont[MinBase][name:minionpro-regular*base]
\definefont[MinNode][name:minionpro-regular*node]
% \definefont[MinBase][Serif*base]
% \definefont[MinNode][Serif*node]
\starttext
\startbuffer[Kerning]
 \startlines
   Wer
   Tat
   Ver
   VAI
 \stoplines
\stopbuffer
\startTEXpage
 \startoverlay
   {\hbox to 1cm {\vbox{\MinBase\darkred{\getbuffer[Kerning]
   {\hbox to 1cm {\vbox{\MinNode{\getbuffer[Kerning]
 \stopoverlay
\stopTEXpage
\stoptext


ok, fixed in next beta (if your're in a hurry i can send you a  
patch); bug was introduced when finishing rough ends of right-left  
handling


Thank you! And no, I'm not in a hurry, so I can wait till the next  
update.


Andreas

___
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] [OT] adobe_reader_91_for_linux

2009-04-04 Thread Alan BRASLAU
On Wednesday 01 April 2009 15:06:46 luigi scarso wrote:
 http://blogs.adobe.com/acroread/2009/03/adobe_reader_91_for_linux_and.html

Precision: 32 bit binary; a 64 bit binary is not (yet) available...

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


Re: [NTG-context] Perfect Mac OS X Installation?

2009-04-04 Thread Thomas A. Schmitz


On Apr 4, 2009, at 11:35 AM, Markus Hubig wrote:


Hi @all,

i've done a fresh install of ConTeXt Minimals on my Mac OS X box.
Now I like to put my setup steps into a small script so my brother can
use it. It wold be nice if someone can give me some comments ...
maybe I missed something, maybe I did something stupid!

- Markus


Your script is clever, but in my experience, you can simplify the  
process. I have a TeXLive install and the ConTeXt minimals on my OS X  
box. In order to use them, I have two configuration files. Here's the  
one for the minimals (which is named .minicontext):


PATH=/Users/tas/context/tex/texmf-osx-intel/bin:$PATH
export PATH
export TEXMFCACHE=/Users/tas/context/tex/texmf-cache
export TEXMFCNF=/Users/tas/context/tex/texmf/web2c
export TEXMF={/Users/tas/texmf,/Users/tas/context/tex/texmf-project,/ 
Users/tas/context/tex/texmf-fonts,/Users/tas/context/tex/texmf-local,/ 
Users/tas/context/tex/texmf-context,/Users/tas/context/tex/texmf- 
extra,/Users/tas/context/tex/texmf}
export LUAINPUTS={/Users/tas/context/tex/texmf-context/scripts/ 
context/lua,/Users/tas/context/tex/texmf-context/tex/context/base,/ 
Users/tas/texmf/scripts/context/lua}


I simply run source ~/.minicontext, and my system is set up. The  
syntax is for zsh; if you're running bash or (heaven forbid!) tcsh,  
you may have to adapt it slightly; and of course, adapt the path  
variables to your own needs.


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


Re: [NTG-context] Background for current page only

2009-04-04 Thread Khaled Hosny
On Sat, Apr 04, 2009 at 10:45:09AM +0200, Wolfgang Schuster wrote:

 Am 03.04.2009 um 22:54 schrieb Khaled Hosny:

 How to set a background for the current page only? \setupbackgrounds
 sets backgrounds for all pages, I don't seem to find a way to turn it
 on/off for certain pages (\setupbackgrounds[state=start/stop] has no
 effect).


 Tricky thing, here is a (not so) quick and dirty solution.

Thanks, that was of great help!

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
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] \framed (and others) don't honor directional switches

2009-04-04 Thread Khaled Hosny
On Sat, Apr 04, 2009 at 12:35:30PM +0200, Hans Hagen wrote:
 Khaled Hosny wrote:
 indeed, so we're looking into it now (an dlet's forget about the  
 page/bodydir for the moment)

 since textdir and pardir go hand-in-hand i suggest the following

 \setuplayout[direction=r2l]% also influences general layout issues

I assume that will mirror all layout elements like double sided page
numbering, right and left pages etc. right?

 \setupalign [r2l]  % textdir and pardir
 \setuparranging[direction=r2l] % will flush pages backward

 so l2r and r2l values; as they are part of the align mechanism then,  
 they are automatically part of all commands that have a align key

This sounds very good for me.

While we are in it, I'd suggest that the current implicit bidi to be
revised, currently it is broken. I suggest to be implement Unicode BiDi
algorithm[1], and the higher-level protocols[2] part is worthy
investigating. Also, I think it should be decoupled from character
mirroring, so that one can enable mirroring while explicitly setting
text direction. Also, some characters that had assigned mirrored
property in Unicode 5.0.0 has been reversed in later revisions[3]
because it affects deployed data (the source of all evil!), this
includes quotation marks, so we need to handle mirroring of those
characters as part of the suggested higher-level protocols as well.


[1]http://www.unicode.org/reports/tr9/
[2]http://www.unicode.org/reports/tr9/#Higher-Level_Protocols
[3]http://unicode.org/versions/corrigendum6.html

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
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] Arabic shaping

2009-04-04 Thread Khaled Hosny
Currently 'font-ota.lua' hard codes the Arabic shaping properties,and it
doesn't seem to be complete  (e.g. the ڤ as in أڤاست is not joined), I
think such information belong to 'char-def.lua' and should be derived
from UCD, which provide 'ArabicShaping.txt[1]', covering Arabic, Syriac
and N'Ko scripts which all need the same shaping as Arabic.

[1]http://unicode.org/Public/5.1.0/ucd/ArabicShaping.txt

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
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] scratch commands, getparameters, blank, doattributes

2009-04-04 Thread afsmith
Can anyone please explain what is going on in...

http://wiki.contextgarden.net/Document_Titles#In_ConTeXt:_A_more_advanced_solution
(in case your browser does not redirect you to it as intended, I
specifically mean the A more advanced solution section)

If I know what's going on I'll gladly expand on the wiki's
explanations to to make it more newbie-friendly
___
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] scratch commands, getparameters, blank, doattributes

2009-04-04 Thread Wolfgang Schuster


Am 04.04.2009 um 18:01 schrieb afsmith:


Can anyone please explain what is going on in...

http://wiki.contextgarden.net/ 
Document_Titles#In_ConTeXt:_A_more_advanced_solution

(in case your browser does not redirect you to it as intended, I
specifically mean the A more advanced solution section)

If I know what's going on I'll gladly expand on the wiki's
explanations to to make it more newbie-friendly


http://www.ntg.nl/pipermail/ntg-context/2008/033522.html
http://wiki.contextgarden.net/System_Macros/Scratch_Variables
http://wiki.contextgarden.net/System_Macros/Key_Value_Assignments

\blank is a command to add whitespace between paragraphs and lines.

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
___