Re: [NTG-context] zero padding with itemize

2008-06-12 Thread Carlos Breton Besnier
And 9? Best


\starttext

\def\mypaddednumber#1{\ifnum#110 0\fi\number#1\relax}

\defineconversion[pn] [\mypaddednumber]

\startitemize[pn,broad]
\item oeps
\item oeps
\item oeps
\stopitemize

\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] zero padding with itemize

2008-06-12 Thread Wolfgang Schuster
Hi Carlos,

On Thu, Jun 12, 2008 at 8:37 AM, Carlos Breton Besnier
[EMAIL PROTECTED] wrote:
 And 9? Best

What do you mean, I didn't understand your questions.

Wolfgang

 \starttext

 \def\mypaddednumber#1{\ifnum#110 0\fi\number#1\relax}

 \defineconversion[pn] [\mypaddednumber]

 \startitemize[pn,broad]
 \item oeps
 \item oeps
 \item oeps
 \stopitemize

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


___
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] zero padding with itemize

2008-06-12 Thread Wolfgang Schuster
On Wed, Jun 11, 2008 at 5:39 PM, Peter Münster [EMAIL PROTECTED] wrote:
 On Sun, Jun 08 2008, Hans Hagen wrote:

  If yes, how? And if no, where is the magic point, where I could apply a
  patch (if it's not too difficult ;)

 has always been possible ...

 \starttext

 \def\mypaddednumber#1{\ifnum#19 0\fi\number#1\relax}

 \defineconversion[pn] [\mypaddednumber]

 So the \defineconversion is the magic point I could not find (I only
 searched in core-itm.tex ...).

This is described in ConTeXt the manual, page 216:

The symbols used under 1 to 8 can be defined with the command
\definesymbol and the conversion of the numbering with \defineconversion

 Thanks a lot!
 Peter

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] zero padding with itemize

2008-06-12 Thread Carlos Breton Besnier
2008/6/8, Hans Hagen [EMAIL PROTECTED]:

 Peter Münster wrote:
  Hello,
 
  Is it already possible to get 0 padding with \startitemize:
  01
  02
  03
  and so on ?
 
  If yes, how? And if no, where is the magic point, where I could apply a
  patch (if it's not too difficult ;)

 has always been possible ...

 \starttext

 \def\mypaddednumber#1{\ifnum#19 0\fi\number#1\relax}

 \defineconversion[pn] [\mypaddednumber]

 \startitemize[pn,broad]
 \item oeps
 \item oeps
 \item oeps
 \stopitemize

 \stoptext



 And 9?

Best

\def\mypaddednumber#1{\ifnum#110 0\fi\number#1\relax}
___
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] TeXCalc

2008-06-12 Thread Alan Stone
Thanks for your replies. Hans' suggestion worked.

As for...

[EMAIL PROTECTED]:~/Bureau$ ./texcalc 
[1] 16901
[EMAIL PROTECTED]:~/Bureau$

I don't understand a thing about it. It's like klingon to me.  ;O)

Nevertheless, I'm curious. Where do you input that ?

FYI, I'm on Windows.

Alan

On Wed, Jun 11, 2008 at 9:54 PM, Michael Hallgren [EMAIL PROTECTED]
wrote:

 Le mercredi 11 juin 2008 à 20:28 +0200, Alan Stone a écrit :
  I downloaded Taco's TeXCalc script at
  http://tex.aanhet.net/utils/texcalc
  and installed the required perlTk thingie.
 
  Newbie question...
 
  How do you run this silly script (*) ?
 
  Using ActivePerl and sciTE.

 [EMAIL PROTECTED]:~/Bureau$ ./texcalc 
 [1] 16901
 [EMAIL PROTECTED]:~/Bureau$

 unless you prefer to add it to your PATH.

 Cheers,

 mh

 
  Thanks,
  Alan
 
  (*) No, no it's not me who said it first... Taco wrote it
  himself ! ;O)
 
 ___
  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
 
 ___


 ___
 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

 ___

___
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] fontscript for delicious?

2008-06-12 Thread Wolfgang Schuster
On Thu, Jun 12, 2008 at 12:38 AM, Uwe Koloska [EMAIL PROTECTED] wrote:
 Hello Wolfgang,

 mmmh, very curious.  Today I wasn't able to reproduce the problems I have had
 yesterday ...
 Everything works exactly as you said with no changes to your files.

 So I revoke and argue the converse.

 Am Mittwoch, 11. Juni 2008 schrieb Wolfgang Schuster:
 I tested it now on my own system and it worked for me.

 ConTeXt:

 MtxRun | main context file:
 C:/tex/share/texmf-local/tex/context/base/context.tex
 MtxRun | current version: 2008.06.07 23:44

 context --version
 MtxRun | main context
 file: 
 /home/koloska/context-minimal/tex/texmf-context/tex/context/base/context.tex
 MtxRun | current version: 2008.06.03 19:55

 but with context, I was not able to compile the file, cause there are the
 tfm-files missing.

What's with mtxrun --script context delicious and texexec --lua delicious,
messages for tfm files should come with pdfTeX.

 LuaTeX:

 This is LuaTeX, Version snapshot-0.25.3-2008060811
 ...
 This is build 1309, created on 20080608T112701Z

 luatex --version
 This is LuaTeX, Version snapshot-0.25.3-2008052302
 ...
 This is build 0, created on 20080410T143312Z
 Compiled with libpng 1.2.15; using libpng 1.2.15
 Compiled with zlib 1.2.3; using zlib 1.2.3
 Compiled with xpdf version 3.01

 XeTeX:

 XeTeX 3.1415926-2.2-0.999.1 (Web2C 7.5.6)

 xetex --version
 XeTeX 3.1415926-2.2-0.998.5-dev (Web2C 7.5.6)

  1. The interface for the \definefontsynonym command seems to have
  changed: There is no third parameter -- this one [features=default] end
  up in the document as text.

 Makes no sense because you need the third parameter to define smallcaps
 if you don't have a seperate font but select it as OpenType feature.
 Kerning, ligatures etc. are enabled with the features parameter too.

 No idea, what was wrong ...
 The third parameter was included as normal text in the resulting pdf.

  2. To load the typescript, the command is not \usetypefile  [delicious]
  but \usetypescriptfile  [type-delicious]

 Why did it not work for you, do you get a error message or is the file
 not loaded,
 give us more information, ConTeXt version, LuaTeX version, log files ...

 I've got an error that the command doesn't matches it's definition.
 This works today without problems, too ...

 I'm on linux and have installed the context minimal with the help of
 first-setup.sh on 2008-06-07.

 So, thank you for your help!
 The next time I get any curious result, I will save the logfiles ;-)

 Uwe

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] distro info

2008-06-12 Thread Olivier Guéry
On Thu, Jun 12, 2008 at 3:22 AM, David [EMAIL PROTECTED] wrote:
 On Tue, 10 Jun 2008 19:37:11 +0200, Hans Hagen wrote:
 David wrote:
 On Tue, 10 Jun 2008 17:34:15 +0200, Hans Hagen wrote:

 Andrea Valle wrote:
 Hmm, with Luatex I can use system fonts like in XeTeX. Am I right?
 yes, if you set up OSFONTDIR



 I would like to set up OSFONTDIR, but I don't know how or where or when
 to do so. I've tried setting it in my bash profile, and that seems to
 have no effect. What is the correct procedure? (I'm on a Mac, if it
 matters.)

 we can consider setting it up automatically but that can only be done
 when it's a stable location


 Well, that would be excellent from my point of view, of course. But my
 question is much more simple: I only want to know, where and when do I
 type OSFONTDIR=...?

 I've read many times that in order to use it I need to set it up, but
 I actually don't know what set it up means in this situation.


It's a system variable.
Under Linux you can set it up in your /home/YOUR_NICKNAME/.bashrc file, adding :
export OSFONTDIR=THE_PATH_TO_YOUR_FONT_DIR
At the end of the file.
There's certainly the same under Mac.

Olivier.



-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
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] TeXCalc

2008-06-12 Thread Michael Hallgren
Le jeudi 12 juin 2008 à 09:27 +0200, Alan Stone a écrit :
 Thanks for your replies. Hans' suggestion worked.
 
 As for...
 
 [EMAIL PROTECTED]:~/Bureau$ ./texcalc 
 [1] 16901
 [EMAIL PROTECTED]:~/Bureau$
 
 I don't understand a thing about it. It's like klingon to me.  ;O)
 
 Nevertheless, I'm curious. Where do you input that ?
 
 FYI, I'm on Windows.
 
Sorry, my excuses. That's the way you would do if you were using a Unix
alike system.

Cheers,

mh

 
 Alan
 
 On Wed, Jun 11, 2008 at 9:54 PM, Michael Hallgren [EMAIL PROTECTED]
 wrote:
 Le mercredi 11 juin 2008 à 20:28 +0200, Alan Stone a écrit :
  I downloaded Taco's TeXCalc script at
  http://tex.aanhet.net/utils/texcalc
  and installed the required perlTk thingie.
 
  Newbie question...
 
  How do you run this silly script (*) ?
 
  Using ActivePerl and sciTE.
 
 
 [EMAIL PROTECTED]:~/Bureau$ ./texcalc 
 [1] 16901
 [EMAIL PROTECTED]:~/Bureau$
 
 unless you prefer to add it to your PATH.
 
 Cheers,
 
 mh
 
 
  Thanks,
  Alan
 
  (*) No, no it's not me who said it first... Taco wrote it
  himself ! ;O)
 
 
 
 
 ___
  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
 
 
 ___
 
 
 ___
 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
 
 ___
 
 
 ___
 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
 ___

___
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] bibl-apa.tex wrong?

2008-06-12 Thread Taco Hoekwater

Hi,

For all of you out there that wnat to help set up the new bibl-apa.tex,
I have uploaded an experimental version of the bib module to the garden.

   http://modules.contextgarden.net/bib

It already has some improvements, but it is (probably) not done yet.
Corrections are welcome, either in tex source patches or as output
specifications for particular bbl entries.

Best wishes,
Taco


Taco Hoekwater wrote:
 
 
 David wrote:


 The 5th edition of the APA Publication Manual is unambiguous on this 
 point. Section 4.14, page 230, states:

 (note, I have transcribed their table of examples into plain text for 
 easier reading in email)
 
 Thanks a lot. I will wait a few days before releasing an updated
 version, in case someone find more issues, but there will be a new
 release about a week from now.
 
 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] distro info

2008-06-12 Thread Mojca Miklavec
On Thu, Jun 12, 2008 at 9:51 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
 On Thu, Jun 12, 2008 at 3:22 AM, David [EMAIL PROTECTED] wrote:
 On Tue, 10 Jun 2008 19:37:11 +0200, Hans Hagen wrote:
 David wrote:
 On Tue, 10 Jun 2008 17:34:15 +0200, Hans Hagen wrote:

 Andrea Valle wrote:
 Hmm, with Luatex I can use system fonts like in XeTeX. Am I right?
 yes, if you set up OSFONTDIR



 I would like to set up OSFONTDIR, but I don't know how or where or when
 to do so. I've tried setting it in my bash profile, and that seems to
 have no effect. What is the correct procedure? (I'm on a Mac, if it
 matters.)

 we can consider setting it up automatically but that can only be done
 when it's a stable location


 Well, that would be excellent from my point of view, of course. But my
 question is much more simple: I only want to know, where and when do I
 type OSFONTDIR=...?

 I've read many times that in order to use it I need to set it up, but
 I actually don't know what set it up means in this situation.


 It's a system variable.
 Under Linux you can set it up in your /home/YOUR_NICKNAME/.bashrc file, 
 adding :
 export OSFONTDIR=THE_PATH_TO_YOUR_FONT_DIR
 At the end of the file.
 There's certainly the same under Mac.

On Mac that would mean putting
   export OSFONTDIR=$HOME/Library/Fonts:/Library/Fonts:/System/Library/Fonts
to ~/.bash_profile, but since yesterday that is not needed any more
unless you keep your fonts at some exotic locations.

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

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


Re: [NTG-context] distro info

2008-06-12 Thread Andrea Valle
The fact IMHO is that there's a potentially large base of ConTeXt  
users which are willing to learn the syntax but are scared about  
terminals, setting paths etc
(well, me too: knowing substantially nothing of unix I'm never  
comfortable with unix aspects of my system)

So, an installer is really welcome.

Best

-a-



On 11 Jun 2008, at 22:43, Jesse Alama wrote:


I second Andrea's opinion -- I'm also looking forward to a
straightforward way of updating ConTeXt and kin.  I'm comfortable with

  ctxtools --updatecontext,

but much less comfortable updating binaries and fonts, based on my
experience screwing up my installation; a nice Mac OS X interface to
deal with all these would be great.  How about allowing  
installation of

modules from http://modules.contextgarden.net, too?

(I admit that there's probably a good deal of FUD here on my part and
it's not as complicated as I think it is.  My guess, though, is  
that I'm

not alone.)

Jesse

Andrea Valle [EMAIL PROTECTED] writes:


Wow, much needed.
Looking forward to see it.

Best

-a-

On 11 Jun 2008, at 18:05, Mojca Miklavec wrote:

On Wed, Jun 11, 2008 at 4:55 PM, Andrea Valle wrote:

Hi Oliver,

I've already assembled a working ConTeXt package based on  
the minimals
that installs via the Apple installer. In other words, it  
will provide
the same seamless installation experience to the user as  
known from

the MacTeX package and, in fact, as known from any decent Mac
software.

Fantastic. Exactly what I need. But will you include TeXShop?

You can use the existing TeXShop or any other editor. Besides  
that, in
summer or autumn a new cross-platform editor by Jonathan Kew  
will be

available.

Will the tex
file system be local (i.e. separated from the usual  
locations) ?


You will be able to use PreferencePane to select whether you  
want to
use MacTeX or ConTeXt minimals (and which version), and that  
will be

done globally. /usr/texbin will be a symlink to binaries.

Mojca
 
_ 
__
If your question is of interest to others as well, please add  
an entry to

the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ 
listinfo/

ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
 
_ 
__


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--


Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)

_ 
__
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
_ 
__


--
Jesse Alama ([EMAIL PROTECTED])

__ 
_
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
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





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

2008-06-12 Thread Alan Stone
 That's the way you would do if you were using a Unix
alike system.

Mama mia ! That definitely doesn't motivate me to switch
to something Unix-ish. Forgive me, I'm a simple soul. ;O)

Good you've put it here for future reference nevertheless.

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


[NTG-context] Where is the fonts Directory of OpenSuse?

2008-06-12 Thread cidadaum
Can someone tell me please where the fonts directory of OpensSuse 10.3 (Kde)
lies, so I can add my fonts to my bash profile?
Thanks for your help.
Armando
___
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] TeXCalc

2008-06-12 Thread Alan Stone
Thanks Mojca.

For future reference, on how to proceed:
http://www.computerhope.com/issues/ch000549.htm
http://vlaurie.com/computers2/Articles/environment.htm
or google (with quotes): windows xp +path

Alan

On Thu, Jun 12, 2008 at 12:42 PM, Mojca Miklavec 
[EMAIL PROTECTED] wrote:

 On Thu, Jun 12, 2008 at 12:24 PM, Alan Stone wrote:
  That's the way you would do if you were using a Unix
 alike system.
 
  Mama mia ! That definitely doesn't motivate me to switch
  to something Unix-ish. Forgive me, I'm a simple soul. ;O)

 On Windows you can create a file
   texcalc.bat
 with contents
   perl C:\path-to-texcalc\texcalc.pl
 and put it somewhere into PATH.

 Then, you will be able to call texcalc from console. If you want it in
 Start Menu, I guess that you can simply put a link to that bat file
 (or copy that bat file there).

 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

 ___

___
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] Rendering of ZWNJ and ZWJ

2008-06-12 Thread Khaled Hosny
On Mon, Jun 09, 2008 at 06:32:13PM -0600, Idris Samawi Hamid wrote:
 Hi Hans,
 
 On Mon, 09 Jun 2008 09:45:10 -0600, Hans Hagen [EMAIL PROTECTED] wrote:
 
  Khaled Hosny wrote:
  Using Luatex engine, ZWNJ and ZWJ chars are rendered incorrectly. If the
  font has a glyph for it, it does the expected behaviour (force
  non-joining or joining respectively) but the glyph get rendered while it
  shouldn't. But if the font has no glyphs for it, it has no effect at
  all. See the attached example.
 
  i uploaded a beta
 
  after analyzing i now remove the joiners
 
 Not sure if this is the best approach:
 
 Despite what MS Typography says, I think it's important to maintain the  
 joiner info after analysis. If I select text from a pdf, the joiner info  
 should be there. This is important for, eg, switching from Arabic-language  
 to Farsi-language typography. So If I select some pdf text formatted  
 according to Farsi rules, I should be able to save that text with the  
 rules included.
 
 Can this be made an option, so fonts that contain zwj zwnj are not  
 affected?

Well, I've very little ConTeXt knowledge to actually understand this. My
main point was that non-printable formatting characters like ZWNJ, ZWJ
should be font independent i.e. when I insert a ZWNJ it inhibits the
joining of Arabic letters without being printed, the font having or not
having a glyph for it shouldn't affect this. In the other hand, it
should be their so that when I copy the text I get it (since it is part
of the input and has semantical value).

Is this what we have here?

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


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] Rendering of ZWNJ and ZWJ

2008-06-12 Thread Hans Hagen
Khaled Hosny wrote:
 On Mon, Jun 09, 2008 at 06:32:13PM -0600, Idris Samawi Hamid wrote:
 Hi Hans,

 On Mon, 09 Jun 2008 09:45:10 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Khaled Hosny wrote:
 Using Luatex engine, ZWNJ and ZWJ chars are rendered incorrectly. If the
 font has a glyph for it, it does the expected behaviour (force
 non-joining or joining respectively) but the glyph get rendered while it
 shouldn't. But if the font has no glyphs for it, it has no effect at
 all. See the attached example.
 i uploaded a beta

 after analyzing i now remove the joiners
 Not sure if this is the best approach:

 Despite what MS Typography says, I think it's important to maintain the  
 joiner info after analysis. If I select text from a pdf, the joiner info  
 should be there. This is important for, eg, switching from Arabic-language  
 to Farsi-language typography. So If I select some pdf text formatted  
 according to Farsi rules, I should be able to save that text with the  
 rules included.

 Can this be made an option, so fonts that contain zwj zwnj are not  
 affected?
 
 Well, I've very little ConTeXt knowledge to actually understand this. My
 main point was that non-printable formatting characters like ZWNJ, ZWJ
 should be font independent i.e. when I insert a ZWNJ it inhibits the
 joining of Arabic letters without being printed, the font having or not
 having a glyph for it shouldn't affect this. In the other hand, it
 should be their so that when I copy the text I get it (since it is part
 of the input and has semantical value).
 
 Is this what we have here?

i made them font independent in the sense that they need not be present 
in the font; however, the rendering is optional


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

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


[NTG-context] context command and the bbl file

2008-06-12 Thread Jean Magnan de Bornier
Hi all,
I have a file with citations. Using:

context myfile does not create the bbl file when needed (but reads it
when it exists).
texexec --lua myfile does the expected job.

Is there a reason for that?
-- 
Jean
___
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] Where is the fonts Directory of OpenSuse?

2008-06-12 Thread Khaled Hosny
On Thu, Jun 12, 2008 at 11:11:18AM +0100, [EMAIL PROTECTED] wrote:
 Can someone tell me please where the fonts directory of OpensSuse 10.3 (Kde)
 lies, so I can add my fonts to my bash profile?
 Thanks for your help.
 Armando

Fonts are usually under /user/share/fonts/, some distros (like debian)
has a separate subdir truetype for TrueType fonts. Users may added
fonts under ~/.fonts as well.

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


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] Where is the fonts Directory of OpenSuse?

2008-06-12 Thread Hans Hagen
Khaled Hosny wrote:
 On Thu, Jun 12, 2008 at 11:11:18AM +0100, [EMAIL PROTECTED] wrote:
 Can someone tell me please where the fonts directory of OpensSuse 10.3 (Kde)
 lies, so I can add my fonts to my bash profile?
 Thanks for your help.
 Armando
 
 Fonts are usually under /user/share/fonts/, some distros (like debian)
 has a separate subdir truetype for TrueType fonts. Users may added
 fonts under ~/.fonts as well.

so: ~/.fonts;/usr/share/fonts/;/usr/share/fonts/truetype ?

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] color in drawoptions (mplib)

2008-06-12 Thread Hans Hagen
Taco Hoekwater wrote:

 -extra_endfig   := ;draw _tt_p_;   extra_endfig ;
 +extra_endfig   := ;addto currentpicture also _tt_p_;   extra_endfig;

subtle ... fixed

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] context command and the bbl file

2008-06-12 Thread Hans Hagen
Jean Magnan de Bornier wrote:
 Hi all,
 I have a file with citations. Using:
 
 context myfile does not create the bbl file when needed (but reads it
 when it exists).
 texexec --lua myfile does the expected job.
 
 Is there a reason for that?

i haven't implemented the intermediate run feature yet in mtx-context

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] color in drawoptions (mplib)

2008-06-12 Thread Peter Rolf
Hans Hagen schrieb:
 Taco Hoekwater wrote:
 
 -extra_endfig   := ;draw _tt_p_;   extra_endfig ;
 +extra_endfig   := ;addto currentpicture also _tt_p_;   extra_endfig;
 
 subtle ... fixed
 
yep! works again. thank you!

 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
 ___
 

___
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] Where is the fonts Directory of OpenSuse?

2008-06-12 Thread Hans Hagen
Khaled Hosny wrote:
 On Thu, Jun 12, 2008 at 06:21:36PM +0200, Hans Hagen wrote:
 Khaled Hosny wrote:
 On Thu, Jun 12, 2008 at 11:11:18AM +0100, [EMAIL PROTECTED] wrote:
 Can someone tell me please where the fonts directory of OpensSuse 10.3 
 (Kde)
 lies, so I can add my fonts to my bash profile?
 Thanks for your help.
 Armando
 Fonts are usually under /user/share/fonts/, some distros (like debian)
 has a separate subdir truetype for TrueType fonts. Users may added
 fonts under ~/.fonts as well.
 so: ~/.fonts;/usr/share/fonts/;/usr/share/fonts/truetype ?
 
 I don't think this will work, since /usr/share/fonts and
 /usr/share/fonts/truetype have multiple subdirs (per package) that has
 the actuall fonts, does context look into subdirs as well or the top
 dir only.
 
 What about querying fontconfig about installed fonts (which I guess what
 XeTeX does under linux) this allows calling the font by the actual font
 name not filename.

When you has run

   mtxrun --script font --reload

that file will be consulted too. After than you can access fonts by name 
  by using a name: prefix, so

   name:mynamedfont

With

   mtxrun --script font --list

you can see what fontnames are accepted.


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] color in drawoptions (mplib)

2008-06-12 Thread Taco Hoekwater


Peter Rolf wrote:
 hi,
 
 just encountered an expansion problem with color inside drawoptions...

The patch below fixes this issue.

Best wishes,
Taco

--- /opt/tex/texmf-local/metapost/context/base/mp-mlib.mp.orig
2008-05-12 12:14:46.0 +0200
+++ /opt/tex/texmf-local/metapost/context/base/mp-mlib.mp 
2008-06-12 18:13:34.785337518 +0200
@@ -26,7 +26,7 @@
  _tt_p_ := nullpicture ;
  enddef ;

-extra_endfig   := ;draw _tt_p_;   extra_endfig ;
+extra_endfig   := ;addto currentpicture also _tt_p_;   extra_endfig;
  extra_beginfig := extra_beginfig  resettextexts;;

  vardef rawtextext(expr str) =

___
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] context command and the bbl file

2008-06-12 Thread Taco Hoekwater


Jean Magnan de Bornier wrote:
 Hi all,
 I have a file with citations. Using:
 
 context myfile does not create the bbl file when needed (but reads it
 when it exists).
 texexec --lua myfile does the expected job.
 
 Is there a reason for that?

Simply missing code.
___
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] How could a typesetting system be today? (slightly off-topic, flame and nostalgic)

2008-06-12 Thread Hans Hagen
Maurí­cio wrote:

 used ‘ϕ’ in a math formula for one of his papers and Context

it showing up depends on what you use (mkii or mkiv), if the character 
is defined, if the font has it (in text mode) etc etc

 could not open it, since it was a PDF revision 1.8 instead of 1.3

indeed a future version -)

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] How could a typesetting system be today? (slightly off-topic, flame and nostalgic)

2008-06-12 Thread Maurí­cio
  Do you mean like Scrivener on the Mac?

I don’t know. I tried Context, then TeX, than went back to
Context. Now also Metapost. Sorry for beeing biased, but I really
like the programer approach to computers.

  What, in any case, constitutes a universal layout approach? Does
  one exist? (...)

I don’t think we need something universal. But there is a lot of
common guidelines for most things. For instance, text, music,
chess boards and pictures all have to fit or fill their place in a
page, and all can have a common main font to be used.

  Yet he (...) sees the value of maintaining a knowledge base that
  is predictable when it runs on a program that can pass the trip
  test.

Actually, I’m trying to show my dad he can trust a computer to
typeset his class notes, if we use the right tools (i.e., Context
plus Metapost instead of what was used for his books in the 90’s,
when just a small change would ruin everything). But I’ve just
used ‘ϕ’ in a math formula for one of his papers and Context
silently ignores it. I’m sure there's a good reason for that. But
TeX is predictable when you write a default TeX style document. If
you leave it, you have to understand a lot of hidden issues, and a
dummy user like me will never know if all of them have been taken
care of.

  Lose that for the sake of innovation, and you can lose real
  knowledge.  And what shall we say for troff, which still
  possesses an arcane sort of longevity?

Troff? I really miss the days of my old TK3000 text editor back in
the 80’s. It's great to use 80% of your time thinking about what
you want to write and 20% about typesetting. Today it's 4%
writing, 2% typesetting and 94% looking over thousands of pages of
wiki documentation. I still think Context is really great, but
I’ll never try to do something that’s not done in a default
installation again. Or try to understand why sometimes [n=x] works
but [n = x] doesn’t.


  (...) you can be creating documents for all the world to see
  even if you are out in the bush with a generator and mosquito
  netting.

I wrote my résume a few months ago, and sent it to a few
companies, just to know a lot of time later that most of them
could not open it, since it was a PDF revision 1.8 instead of 1.3
(or something like that).

  So TeX's stability has the interesting potential side effect of
  giving a voice to the voiceless. Our cast-off hardware becomes a
  window for freedom of speech and expression, (...)

Sure. I would like to have something simpler than TeX, not more
complex or hardware eater.

  There are places where people still go outside to relieve
  themselves, (...)

Like myself :)

  Some folks think abstractly and can whack out macros like Paul
  Bunyan chops wood. Some think visually (...)

I can only think abstractly. But TeX macros are a lot less
abstract than they could be. I believe DEK says they were never
supposed to be used the way they are.

  DEK (...) brought all his respect and research regarding
  longstanding, tried and true typographical traditions to his
  writing of TeX.

Sure. You can’t miss that even if you understand nothing about
typesetting (like myself). After using TeX for a while, it’s
almost painfull to look at text printed by usual office tools.

  Maurício a écrit :
Hi,
   
Just because I'm curious: how could a typesetting system like TeX
be if it was created today? I've tried google and wikipedia, and
all I found different from TeX is a system called 'Lout', but it
seems dead.
   
(...)

___
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] context command and the bbl file

2008-06-12 Thread Jean Magnan de Bornier
Le 12 juin à 18:18:03 Taco Hoekwater [EMAIL PROTECTED] écrit notamment:

| Jean Magnan de Bornier wrote:
|  Hi all,
|  I have a file with citations. Using:
|  
|  context myfile does not create the bbl file when needed (but reads it
|  when it exists).
|  texexec --lua myfile does the expected job.
|  
|  Is there a reason for that?

| Simply missing code.

OK, that's better than a bug!
Thanks
-- 
Jean
___
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] How could a typesetting system be today?

2008-06-12 Thread Maurí­cio
Thanks, Idris, for your interest. I don’t understand enough
about typesetting and computer math to make an informed sugestion,
but I’ll try my best.

What about a Metapost-like main engine to define the general
layout of pages? That engine would know about borders, floating
spaces for pictures or text, and handle “global” information
like main fonts or page numbers etc.; and even draw on the page.
Plug-ins would render specific information. The main engine
could also do Metapost-like operations on what comes from that
rendering.

That engine would call plug-ins to render anything, using a
standard human-writable tag language. The engine will provide
plug-ins a shape they should fill, as well as tips on how to fill
it (“amount of ink”, how to deal with unconnected shapes,
available fonts etc.); and share information with plug-ins so they
can know, for instance, which symbols can be used for footnotes,
and inform back which ones they have used. Plug-ins would respond
rendered results, as well as indicators about how good is the
result and what could be done to get it better (less or more to
render, adjusts in their area shape etc.). Main engine and
plug-ins would negociate good parameters, shapes and information
set until they are both happy (enough).

The reason for a standard tag language is that the main engine
should be able to do some operations on data, like breaking it in
pieces like words, paragraphs or staffs on music scores, sometimes
without fully understanding what exactly those are.

Possible outcomes: with a proper script language (Lua?),
things like tables, multi-column text, and even a lot of crazy
ideas could be really easy to write. Plug-ins results would be
predictable, since they know nothing about the world except what
the main engine has informed them.

Best,
Maurício



  Hi Maurício,
 
  Sorry to insist, but I would be really interested in approaches
  that are not just great things we could add to TeX.
 
  For instance: would it be possible to have some kind of “layout
  engine” to which text processing would be just one among other
  plug-ins? I wonder what kind of information that engine should
  share with plug-ins. Do you think such system is possible? Or
  something else?
 
  I would love to hear more of your thoughts on this. Don't hold back!
 
  Best wishes
  Idris
 

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