Re: [NTG-context] Strange ... can't find mp.pool

2005-07-01 Thread Peter Rolf

Hi Willi,

I don't use the minimal tree (but something similar), so maybe I am wrong...

Willi Egger schrieb:

Hi all

Hm, I updated my minimal ConTeXt:
TeXExec 5.4.2 - ConTeXt / PRAGMA ADE 1997-2005
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
ConTeXt  ver: 2005.06.27  fmt: 2005.6.27  int: english  mes: english

When running texmfstart texexec.pl --make --alone metafun
I end up with the following screen:

 TeXExec 5.4.2 - ConTeXt / PRAGMA ADE 1997-2005


   TeX hash binary : mktexlsr
   comment : hashing may take a while ...
mktexlsr: Updating C:/NEWCON~1/tex/texmf-mswin/ls-R...
mktexlsr: c:/NEWCON~1/tex/texmf-project is not a directory. Skipping...
mktexlsr: Updating C:/NEWCON~1/tex/texmf-fonts/ls-R...
mktexlsr: Updating C:/NEWCON~1/tex/texmf-local/ls-R...
mktexlsr: Updating C:/NEWCON~1/tex/texmf-extra/ls-R...
mktexlsr: Updating C:/NEWCON~1/tex/texmf/ls-R...
mktexlsr: Done.
   assuming engine : mpost
! I can't read mp.pool; bad path?

   used formatpath : C:/NEWCON~1/tex/texmf-mswin/web2c/pdfetex/

   
mp.pool should be in the texmf-mswin/web2c directory (pool/mem-files).
In my copy it contains pdf(e)tex.pool, mp.pool and metafun.mem.

It seems that your $TEXFORMATS var points to 
C:/NEWCON~1/tex/texmf-mswin/web2c/pdfetex/,

but it should be C:/NEWCON~1/tex/texmf-mswin/web2c.
The fmt-files (pdf(e)tex.fmt, mptopdf.fmt) are then automatically 
created in the pdfetex-dir.


Hope that helps.



TeX binary : pdfetex
 format(s) : metafun


I am also stumied, not knowing where to look...

Willi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context




Greetings,

Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] International characters in math

2005-07-01 Thread Mojca Miklavec
I also ran into two problems concerning accented math while
experimenting a bit (see below).

Hans Hagen wrote:
 Radhelorn wrote:
  Thanks Hans, Wolfgang for your advice. \mbox and \text in newmath solves
  some problems like units, but what if I want bold roman math with
  international characters (or my own fonts) by default?

To enable bold math by default write:
\definetypeface[somename][mm][boldmath][latin-modern][default][rscale=1]
% optional parameter rscale may be any number

followed by
\setupbodyfont[somename]

if you want some other font, for example euler, choose one of the
following lines:
%\definetypeface[somename][mm][math][euler][euler]
%\definetypeface[somename][mm][boldmath][euler][euler]

But what exactly do you mean by bold math with accented characters?
You can either typeset in mathmode, where you use \hat, \check,
\acute, \grave, \bar, \vec, \dot, \ddot, \breve, \tilde or any other
accent that you compose by yourself (poor results for accented
characters, anyway). You can then set bold math to be the default. Or
you can switch to text mode inside math using \hbox{...} as Hans
described. If you want bold inside \hbox{...}, you probably have to
define it in every \hbox manually or use bold font as default in the
whole document.
(If I'm wrong, please correct me.)

Accented characters should work everywhere inside text mode as long as
I understand. But quite some effort was put into ConTeXt to enable
more advanced features regarding fonts, so it may be that ConTeXt
sometimes accidentally fails to produce the desired result. Send an
example if you think that it is causing troubles.

  I'm trying to figure it out from sources, but it's very long and hard way.
 
 $\hbox{\tf \'e\'erste}$ and $\mbox{\'e\'erste}$

Is there any special reason that we have to write $\hbox{\tf ...}$?

In plain TeX $\hbox{\v{c}}$ works just fine, while ConTeXt runs into
the same kind of problems as last time with accented characters in
MathML.

---

Can someone please try this:

\definetypeface[somename][mm][math][euler][euler]
\setupbodyfont[somename]
\starttext
$$\sqrt{\acute{a}+\bar{b}+\dot{c}}$$
\stoptext

I don't get any accents. Am I doing something wrong?

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Strange ... can't find mp.pool

2005-07-01 Thread Willi Egger

Hi Peter,

Thanks for your reply. You are right also in my minimal tree those 
pool-files reside in ..\texmf-mswin\web2c.
The other point is, that the mem files recently moved to 
...\texmf-mswin\web2c\pdfetex.
After having read your mail I recalled, that I changed the setuptex.bat 
file, in order to correct nonfatal messages. Rereading that file I 
detected, that the file had to be changed on more places... After fixing 
that I was able to create the metafun.mem file.


So sometimes one needs an answer to get the things running again. Thanks 
Peter


Willi
Peter Rolf wrote:

Hi Willi,

I don't use the minimal tree (but something similar), so maybe I am 
wrong...


Willi Egger schrieb:


Hi all

Hm, I updated my minimal ConTeXt:
TeXExec 5.4.2 - ConTeXt / PRAGMA ADE 1997-2005
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
ConTeXt  ver: 2005.06.27  fmt: 2005.6.27  int: english  mes: english

When running texmfstart texexec.pl --make --alone metafun
I end up with the following screen:

 TeXExec 5.4.2 - ConTeXt / PRAGMA ADE 1997-2005


   TeX hash binary : mktexlsr
   comment : hashing may take a while ...
mktexlsr: Updating C:/NEWCON~1/tex/texmf-mswin/ls-R...
mktexlsr: c:/NEWCON~1/tex/texmf-project is not a directory. Skipping...
mktexlsr: Updating C:/NEWCON~1/tex/texmf-fonts/ls-R...
mktexlsr: Updating C:/NEWCON~1/tex/texmf-local/ls-R...
mktexlsr: Updating C:/NEWCON~1/tex/texmf-extra/ls-R...
mktexlsr: Updating C:/NEWCON~1/tex/texmf/ls-R...
mktexlsr: Done.
   assuming engine : mpost
! I can't read mp.pool; bad path?

   used formatpath : C:/NEWCON~1/tex/texmf-mswin/web2c/pdfetex/


   
mp.pool should be in the texmf-mswin/web2c directory (pool/mem-files).
In my copy it contains pdf(e)tex.pool, mp.pool and metafun.mem.

It seems that your $TEXFORMATS var points to 
C:/NEWCON~1/tex/texmf-mswin/web2c/pdfetex/,

but it should be C:/NEWCON~1/tex/texmf-mswin/web2c.
The fmt-files (pdf(e)tex.fmt, mptopdf.fmt) are then automatically 
created in the pdfetex-dir.


Hope that helps.




TeX binary : pdfetex
 format(s) : metafun


I am also stumied, not knowing where to look...

Willi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context




Greetings,

Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] International characters in math

2005-07-01 Thread Adam Lindsay
Mojca Miklavec said this at Fri, 1 Jul 2005 15:16:47 +0200:

\definetypeface[somename][mm][math][euler][euler]
\setupbodyfont[somename]
\starttext
$$\sqrt{\acute{a}+\bar{b}+\dot{c}}$$
\stoptext

I don't get any accents. Am I doing something wrong?

No, I am.

You can verify further by adding:
\loadmapfile[original-ams-base]
\showmathcharacters

The normal text-ish accents are not present in the eulervm fonts. I
suppose the rationale is that these are never to be used for text (but
it becomes questionable when you don't have an overbar or dot!) 

I have tried to figure out how to get them from other fonts, but am at a
loss, in terms of the general case.

No one has mentioned it before now, so I didn't try that hard. :) 

Anyone have any suggestions on what approach to take, or what they'd
like to see?
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Fonts in Metapost

2005-07-01 Thread Wolfgang Zillig

Hello,

I have problems with changeing the font in Metapost. I defined my own 
typescripts somewhere and I also have a mapfile for that fonts. In 
normal text it workes fine (even math).


Now I want to change the font in MP as well (my text is included as 
label(test,(200,200));):


%normal stups:
\loadmapfile[cmbright.map] %it seems that the mapfile is loaded 
only once

\usetypescriptfile[type-cmbr]
\usetypescript[Cmbr]
 \setupbodyfont[12pt]

\startMPenvironment
\loadmapfile[cmbright.map] %it seems that the mapfile is loaded 
only once

\usetypescriptfile[type-cmbr]
\usetypescript[Cmbr]
 \setupbodyfont[12pt]
\stopMPenvironment

But I always get the standard CMR output.

Did I miss a step somewhere?

Has anyone an idea what's going wrong?

Thanks for any help!

Wolfgang


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to \processcommalist?

2005-07-01 Thread Mojca Miklavec
I would like to define a command, which would be called in the following way:
\TheBossWantsTheWorkToBeDoneOn[monday,wednesday,thursday]{tidy up}

so that it would be equivalent to:
\WeHaveToDo[monday]{tidy up}
\WeHaveToDo[wednesday]{tidy up}
\WeHaveToDo[thursday]{tidy up}

I played a bit with different variants of \processcommalist, but I
can't figure out how to use it in this particular case.

Is there also a possibility to define a command like
\IHaveToDoTheTasks[1-4,7,9-11]{until tomorrow}

which would expand into
\IHaveToDoTheTask[1]{until tomorrow}
\IHaveToDoTheTask[2]{until tomorrow}
\IHaveToDoTheTask[3]{until tomorrow}
\IHaveToDoTheTask[4]{until tomorrow}
\IHaveToDoTheTask[7]{until tomorrow}
\IHaveToDoTheTask[9]{until tomorrow}
\IHaveToDoTheTask[10]{until tomorrow}
\IHaveToDoTheTask[11]{until tomorrow}
?

Thanks for any suggestions,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] strange behaviour with \scale

2005-07-01 Thread Peter Münster
Hello,

could anybody explain, why the DRAFT is bigger on the last two pages
please?

\defineoverlay[Draft][{\scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
\setupbackgrounds[page][background=Draft]
\starttext
\starttables[|l|]
\dorecurse{200}{\NC hallo \NC\AR}
\stoptables
\stoptext

Cheers and TIA, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Fonts in Metapost

2005-07-01 Thread Willi Egger

Hi Wolfgang,

I do hope  that I am not missing something. But I think, that you should 
say in the  MPenvironment:

\setupbodyfont[Cmbr,12pt]

Otherwise the setupbodyfont command does not know which font to setup.

Willi

Wolfgang Zillig wrote:

Hello,

I have problems with changeing the font in Metapost. I defined my own 
typescripts somewhere and I also have a mapfile for that fonts. In 
normal text it workes fine (even math).


Now I want to change the font in MP as well (my text is included as 
label(test,(200,200));):


%normal stups:
\loadmapfile[cmbright.map] %it seems that the mapfile is loaded only 
once

\usetypescriptfile[type-cmbr]
\usetypescript[Cmbr]
 \setupbodyfont[12pt]

\startMPenvironment
\loadmapfile[cmbright.map] %it seems that the mapfile is loaded only 
once

\usetypescriptfile[type-cmbr]
\usetypescript[Cmbr]
 \setupbodyfont[12pt]
\stopMPenvironment

But I always get the standard CMR output.

Did I miss a step somewhere?

Has anyone an idea what's going wrong?

Thanks for any help!

Wolfgang


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Fonts in Metapost

2005-07-01 Thread Wolfgang Zillig

Ok, I changed it but it does not help.

Wolfgang


Willi Egger wrote:


Hi Wolfgang,

I do hope  that I am not missing something. But I think, that you 
should say in the  MPenvironment:

\setupbodyfont[Cmbr,12pt]

Otherwise the setupbodyfont command does not know which font to setup.

Willi

Wolfgang Zillig wrote:


Hello,

I have problems with changeing the font in Metapost. I defined my own 
typescripts somewhere and I also have a mapfile for that fonts. In 
normal text it workes fine (even math).


Now I want to change the font in MP as well (my text is included as 
label(test,(200,200));):


%normal stups:
\loadmapfile[cmbright.map] %it seems that the mapfile is loaded 
only once

\usetypescriptfile[type-cmbr]
\usetypescript[Cmbr]
 \setupbodyfont[12pt]

\startMPenvironment
\loadmapfile[cmbright.map] %it seems that the mapfile is loaded 
only once

\usetypescriptfile[type-cmbr]
\usetypescript[Cmbr]
 \setupbodyfont[12pt]
\stopMPenvironment

But I always get the standard CMR output.

Did I miss a step somewhere?

Has anyone an idea what's going wrong?

Thanks for any help!

Wolfgang


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour with \scale

2005-07-01 Thread Mojca Miklavec
Peter Münster wrote:

 could anybody explain, why the DRAFT is bigger on the last two pages
 please?

I played with

\defineoverlay[Draft][{\scale[factor=max]
{\rotate[rotation=60]{\framed[strut=no,offset=0pt]{\strut~DRAFT~\strut]
\setupbackgrounds[page][background=Draft]
\showstruts
\starttext
\dorecurse{400}{hallo \crlf}
\starttables[|l|]
\dorecurse{200}{\NC hallo \NC\AR}
\stoptables
\showlayout
\stoptext

From the page where \starttables start till the prelast page where the
tables stop, '~' is squeezed somehow. There's also no \strut
present in that lines if you take a closer look. I don't have a clue,
but you have good imagination!

If you need a solution: use {\ Draft\ }
If you need the reason: wait for the expert(s)

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \processcommalist?

2005-07-01 Thread Taco Hoekwater

Mojca Miklavec wrote:

I would like to define a command, which would be called in the following way:
\TheBossWantsTheWorkToBeDoneOn[monday,wednesday,thursday]{tidy up}

so that it would be equivalent to:
\WeHaveToDo[monday]{tidy up}
\WeHaveToDo[wednesday]{tidy up}
\WeHaveToDo[thursday]{tidy up}

I played a bit with different variants of \processcommalist, but I
can't figure out how to use it in this particular case.


The trick is to store the tidy up inside the processing command,
like so:

  \def\WeHaveToDo[#1]#2{\message{(#1: #2)}}

  \def\TheBossWantsTheWorkToBeDoneOn[#1]#2%
{\begingroup
 \def\processitem##1{\WeHaveToDo[##1]{#2}}%
 \processcommalist[#1]\processitem
 \endgroup }

  \TheBossWantsTheWorkToBeDoneOn[monday,wednesday,thursday]{tidy up}



Is there also a possibility to define a command like
\IHaveToDoTheTasks[1-4,7,9-11]{until tomorrow}


There was not, but knowing Hans I trust that soon there will be :-).

For now, here is my solution.

  % a few auxiliary core macros are needed to uncompress the list.
  %
  % \uncompresslist is the twin of the already existing \compresslist
  % which works in the other direction (syst-new)
  %
  \unprotect

  % I guess this function is already available but couldnt find it...
  %
  \def\apptomac#1#2%
{\ifx#1\empty\def#1{#2}\else [EMAIL PROTECTED]@[EMAIL PROTECTED],#2}\fi}

  % the next macro does this:
  %
  % \itemwithdash9-11- = \dorecurse {1+11-9}
  % {\apptomac\uncompressedlist9-1+\recurselevel}
  %
  % (the 1+ and -1 are needed to solve a counter offset.)
  \def\itemwithdash#1-#2-%
[EMAIL PROTECTED]@EA
  {\the\numexpr 1+#2-#1\relax}%
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
{\the\numexpr #1-1+\recurselevel\relax}}}%

  % top level. The result will be in \uncompressedlist
  \def\uncompresslist[#1]%
{\def\uncompressedlist{}%
 \def\processitem##1%
   {\doifinstringelse{-}{##1}
 {\itemwithdash##1-}
 {\apptomac\uncompressedlist{##1}}}%
 \processcommalist[#1]\processitem }

  \protect

  % end support macros.

With these, you can do:

  \def\IHaveToDoTheTask[#1]#2{\message{(#1: #2)}}

  \def\IHaveToDoTheTasks[#1]#2%
{\begingroup
 \def\processitem##1{\IHaveToDoTheTask[##1]{#2}}%
 \uncompresslist[#1]% = Yeah!
 \processcommacommand[\uncompressedlist]\processitem
 \endgroup }

I hope you understand what I've done, but otherwise, feel
free to ask, of course.

Greetings, Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \processcommalist?

2005-07-01 Thread Mojca Miklavec
Taco Hoekwater wrote:
 Mojca Miklavec wrote:
  I would like to define a command, which would be called in the following 
  way:
  \TheBossWantsTheWorkToBeDoneOn[monday,wednesday,thursday]{tidy up}
 
  so that it would be equivalent to:
  \WeHaveToDo[monday]{tidy up}
  \WeHaveToDo[wednesday]{tidy up}
  \WeHaveToDo[thursday]{tidy up}
 
  I played a bit with different variants of \processcommalist, but I
  can't figure out how to use it in this particular case.
 
 The trick is to store the tidy up inside the processing command,
 like so:
 
\def\WeHaveToDo[#1]#2{\message{(#1: #2)}}
 
\def\TheBossWantsTheWorkToBeDoneOn[#1]#2%
  {\begingroup
   \def\processitem##1{\WeHaveToDo[##1]{#2}}%
   \processcommalist[#1]\processitem
   \endgroup }
 
\TheBossWantsTheWorkToBeDoneOn[monday,wednesday,thursday]{tidy up}

Great, thanks Taco! It works. It seems easier than I thought, but I
could have spent hours looking for the proper solution alone.

I hope this will land in the t-rsteps module (\OnSteps[1,2,3,6]{...}).

  Is there also a possibility to define a command like
  \IHaveToDoTheTasks[1-4,7,9-11]{until tomorrow}
 
 There was not, but knowing Hans I trust that soon there will be :-).

:)

 For now, here is my solution.
 
 [...]

 With these, you can do:
 
\def\IHaveToDoTheTask[#1]#2{\message{(#1: #2)}}
 
\def\IHaveToDoTheTasks[#1]#2%
  {\begingroup
   \def\processitem##1{\IHaveToDoTheTask[##1]{#2}}%
   \uncompresslist[#1]% = Yeah!
   \processcommacommand[\uncompressedlist]\processitem
   \endgroup }
 
 I hope you understand what I've done, but otherwise, feel
 free to ask, of course.

Well, my stomach needs some time to process the latter example. But if I write
\def\IHaveToDoTheTask[#1]#2{\message{(#1: #2)}The task #1 has to
be done #2.\crlf}
\IHaveToDoTheTasks[1-3]{until tomorrow}
nothing happens.

Thanks again,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour with \scale

2005-07-01 Thread Peter Münster
On Fri, 1 Jul 2005, Mojca Miklavec wrote:

 If you need a solution: use {\ Draft\ }

Thanks a lot! I didn't think about this kind of space at all...

 If you need the reason: wait for the expert(s)

I don't need it, but it would certainly be interesting ;)

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \processcommalist? (corrected solution)

2005-07-01 Thread Taco Hoekwater


I have to reply to myself, because Mojca discovered an error
in my example code. This:

Taco Hoekwater wrote:

  \def\IHaveToDoTheTasks[#1]#2%
{\begingroup
 \def\processitem##1{\IHaveToDoTheTask[##1]{#2}}%
 \uncompresslist[#1]% = Yeah!
 \processcommacommand[\uncompressedlist]\processitem
 \endgroup }


should have been:

   \def\IHaveToDoTheTasks[#1]#2%
 {\begingroup
  \uncompresslist[#1]% = Yeah! (do this first!)
  \def\processitem##1{\IHaveToDoTheTask[##1]{#2}}%
  \processcommacommand[\uncompressedlist]\processitem
  \endgroup }


Greetings again, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour with \scale

2005-07-01 Thread Taco Hoekwater

Peter Münster wrote:

On Fri, 1 Jul 2005, Mojca Miklavec wrote:



If you need a solution: use {\ Draft\ }



Thanks a lot! I didn't think about this kind of space at all...



If you need the reason: wait for the expert(s)



I don't need it, but it would certainly be interesting ;)


From looking at it quickly, it seems sometimes the output routine
is called when the ~ command has the 'normal' definition, and
sometimes when it has TaBlE's definition. These do not produce
identical results (~ in TaBlE has the width of a 'zero' digit).

I'm not sure why this happens, though.

Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Some gardening

2005-07-01 Thread Mojca Miklavec
Hello,

Here's some more work for you Patrick, in case you get bored.
(I guess I'll soon be removed from the list as a spammer/abuser if I
continue writing mails such as this one :)
What do the others think about it?

# Source browser

Can you escape control characters when searching through the source
in ConTeXtgarden? For example, \def\somecommand now has to be written
as\\def\\somecommand. And the search field is slightly small (only 20
characters). Well, I admit, these limitations can all be overcome by
asking Mr. Google for \def\someveryveryverylongcommand
site:contextgarden.net or by grep-ing on my hard disk.

Also, after the search the right window is empty and sometimes 20 hits
are found on the left. What about adding some context around the
search term? For example one line before and one line after each hit
(like Google does)? Once you have that, the same could be done for
single files (if a specific word appears in one file more than once
than you can select a file and see only the hits found + some lines
before and after). If you also add a name=linenumber to the web
pages with sources, than you can click on a hit and go directly to the
line number where the search term occurs.

# texshow-web

I've just noticed that there's no possibility to describe single
options for the commands.
Take \setuplayout for example. Describing such huge collection of
parameters in plain text is not clear, synoptic any more. It would be
great if there would be a possibility to add descriptions for:
- the command as such (already there)
- every pair of braces (only one for \setuplayout), has to be visible
if it is optional or not
- every parameter inside a single brace
- every single option for that parameter (for example: width=middle
means that ...), default has to be marked

Some classification/hierarchy/labeling of the commands could also be
added, but this has to be thought of well before starting to implement
it. For example page layout, floats, mathematics, colors,
metapost, language, core functions, ... The top-level
classification could probably be taken from prefixes of the source
files.

Enabling the Wiki functionality (bold, italic, tables ... texcode
and context) and linking it to the source browser (to the place
where \def\thisspecificcommand is) would also add another
dimensionality. It would probably not be 100% compatible with the
pretty-much-textbased texshow program, but ... I could imagine that
one day something similar as modules.pdf (texshow.pdf) could be made
from that page with pretty good documentation of (all ?) ConTeXt
commands.

The ability to add commands is already there I think (I have never
tried it out yet). What about adding commands for (official and
third-party) modules? It should be separated from the main page, but
still offering the same functionality.

I was also thinking about making some interface for translations of
commands (for example: when a new third-party module is there, someone
could translate it without much effort, some more exotic languages
could be translated step-by-step, and new commands in ConTeXt could be
found quickly and translated - the dutch interface is probably
up-to-date, but I doubt that other translators are constantly checking
if anything new appeared). But these things are much more conservative
(commands may not change once they are translated) and probably not
worth the effort yet.

Finally a five-minute-work request after all that philosophizing:
can you add link to the .po files under special in texshow-web and a
submit new .po version button next to it?

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context