Re: [NTG-context] keyboard style tilde

2005-07-19 Thread Taco Hoekwater

Matthias Weber wrote:
In fact, I hope somebody with more insight tells us the clean ConTeXt 
solution, please?


\textasciitilde

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


Re: [NTG-context] colorizing item numbers

2005-07-19 Thread Hans Hagen

Jason Knight wrote:


Thanks for the pointer. The color option was not one I found in the
manual, and my combing through the source code wasn't as fruitful as I
woulda hoped.
 


many commands have  a style and color 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
-

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


Re: [NTG-context] Basic question on Unicode and ConTeXt

2005-07-19 Thread Hans Hagen

Mojca Miklavec wrote:


Hans Hagen wrote:
 


Mojca Miklavec wrote:

   


(concerning eregi-* files: you can define filesynonyms so we need a list of 
filesynonyms and regimesynonyms)

   


What do you mean by writing file synonyms? Where would it be used?
 


\definefilesynonym  [mojka]  [mojca]
\definefilesynonym  [moika]  [mojca]
\definefilesynonym  [moica]  [mojca]
   



Ok, if you are provocating, I'll strike back:
None of the definitions above are allowed because they don't warn the
user if he's using the wrong name. They should throw an error instead.
The only proper way would be to define something like

\setuplabeltext[\s!en][\v!pronouncemyname=moitsa]
\setuplabeltext[\s!de][\v!pronouncemyname=mojza]
\setuplabeltext[\s!ru][\v!pronouncemyname=мойца]
...
 


so how about using:

\translate[en=moitsa,de=mojza,ru=мойца]

then -)


OK. I'll prepare \defineregimesynonym-s proposals, but I still don't
know what the file synonyms should be used for in this context. The
user probably doesn't need to care about file names?
 

depends on if you want to preload all those vectors (take quite some 
memory although i may find a way around that [maybe delayed loading]



So why not mapping the characters to unicode first and defining the
mapping from unicode to \TeXcommand only once? regi-* files (at least
in the meaning they have now) could be prepared automatically by a
script, less error-prone and without the need to say Some more
definitions will be added later.
 


you mean ...

\defineactivetoken 123 {\uchar{...}{...}}

it is an option but it's much slower and take much more memory

\uchar{2}{33} takes 1 hash pointer and 7 char slots (so probably 8 mem 
locations) while \eacute takes one mem location



Is it possible to switch the regimes in the middle of the document
(like it is possible to switch the languages)? An example usage would
be if some input documents (plain text, some older TeX files or
database entries) are written in some other encoding than the main
stream.
(Possibly switching in such a way that no leftovers remain after the
old encoding is replaced by a new one.)
 

switching is possible but in that case  you probably want to set toc/index/etc expansion to yes 

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
-

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


[NTG-context] indentaion

2005-07-19 Thread Hans Hagen

Hi,

In the process of fixing odd/even indentation (handy for verse) i also 
cleanup the code a bit. I'm wondering if we can make \setupindenting and 
\indenting equivalent.


Is anyone using \indenting[no] to suppress the next indentation?

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
-

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


Re: [NTG-context] indentaion

2005-07-19 Thread Taco Hoekwater

Hans Hagen wrote:

Hi,

In the process of fixing odd/even indentation (handy for verse) i also 
cleanup the code a bit. I'm wondering if we can make \setupindenting and 
\indenting equivalent.


Is anyone using \indenting[no] to suppress the next indentation?


I used to in the very early beginnings. But very quickly i got lazy
and reverted to using \noindent instead. I wouldn't mind having it
go away or changing.

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


[NTG-context] footnote within \startlines \stoplines

2005-07-19 Thread Charles Doherty
Dear Hans,Example 1 below causes TeX to hang and I have to abort the TeX run whereas Example 2 works when I omit \startlines / \stoplines and use \crlf. I have included the console readout for Example 1 below. I can get by with Example 2 but I thought I should let you know. Thanks again,Charlie Doherty\starttextExample 1And here is the sentence before\startnarrower[2*left,2*right]\startlinesA Somonour was ther with us in that place, That hadde a fyr-reed cherubynnes face, For saucefleem he was, with eyen narwe. As hoot he was and lecherous as a sparwe, With scalled browes blake and piled berd. Of his visage children were aferd.%\footnote{Burgess, A., \slanted{The Riverside Chaucer}, p.\ 33  (623--628).  From this point on, any further references to \slanted{The Canterbury Tales}, will be made from this edition and line numbers only will be provided.}\stoplines\stopnarrower And here is the one after Example 2 And here is the sentence before\startnarrower[2*left,2*right]A Somonour was ther with us in that place, \crlfThat hadde a fyr-reed cherubynnes face, \crlfFor saucefleem he was, with eyen narwe. \crlfAs hoot he was and lecherous as a sparwe, \crlfWith scalled browes blake and piled berd. \crlfOf his visage children were aferd.%\footnote{Burgess, A., \slanted{The Riverside Chaucer}, p.\ 33  (623--628).  From this point on, any further references to \slanted{The Canterbury Tales}, will be made from this edition and line numbers only will be provided.}\stopnarrower And here is the one after \stoptext TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005            executable : pdfetex                format : cont-en             inputfile : linetest                output : pdftex             interface : en          current mode : none               TeX run : 1This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)entering extended mode(./linetest.texConTeXt  ver: 2005.06.27  fmt: 2005.7.14  int: english  mes: englishlanguage        : language en is activeprotectionstate 0system          : cont-new loaded(/usr/local/teTeX/share/texmf.tetex/tex/context/base/cont-new.texsystems         : beware: some patches loaded from cont-new.tex!color           : palette rollover is available)system          : cont-old loaded(/usr/local/teTeX/share/texmf.tetex/tex/context/base/cont-old.texloading         : Context Old Macros)system          : cont-fil loaded(/usr/local/teTeX/share/texmf.tetex/tex/context/base/cont-fil.texloading         : Context File Synonyms)system          : cont-sys.rme loaded(/usr/local/teTeX/share/texmf.tetex/tex/context/user/cont-sys.rme(/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-exa.tex)(/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-syn.tex)(/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-enc.tex)(/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-dis.tex)(/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-siz.tex)(/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-map.tex)(/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-spe.tex)(/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-akb.tex))bodyfont        : 12pt rm is loadedlanguage        : patterns en-ec:ec-1-2:2 uk-ec:ec-2-2:2 de-texnansi:texnansi-3-2:2 de-ec:ec-4-2:2 fr-texnansi:texnansi-5-2:2 fr-ec:ec-6-2:2 es-ec:ec-7-2:2 pt-texnansi:texnansi-8-2:2 pt-ec:ec-9-2:2 it-texnansi:texnansi-10-2:2 it-ec:ec-11-2:2 nl-texnansi:texnansi-12-2:2 nl-ec:ec-13-2:2 cz-il2:il2-14-2:2 cz-ec:ec-15-2:2 sk-il2:il2-16-2:2 sk-ec:ec-17-2:2 pl-pl0:pl0-18-2:2 pl-ec:ec-19-2:2 loadedspecials        : tex,postscript,rokicki loadedsystem          : linetest.top loaded(./linetest.topspecials        : loading definition file tpd(/usr/local/teTeX/share/texmf.tetex/tex/context/base/spec-tpd.texspecials        : loading definition file fdf(/usr/local/teTeX/share/texmf.tetex/tex/context/base/spec-fdf.tex)specials        : fdf loaded)specials        : fdf,tpd loaded) (./linetest.tuo) (./linetest.tuo) (./linetest.tuo) (./linetest.tuo)(./linetest.tuo) (./linetest.tuo) (./linetest.tuo) (./linetest.tuo)(./linetest.tuo) (./linetest.tuo) (./linetest.tuo) (./linetest.tuo)(./linetest.tuo)Process aborted *** Charles Doherty, Early Irish History, School of History, John Henry Newman Building, University College Dublin, Belfield, Dublin 4  Tel: +353 1 716 8381  ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] footnote within \startlines \stoplines

2005-07-19 Thread Taco Hoekwater



Charles Doherty wrote:

Dear Hans,

Example 1 below causes TeX to hang and I have to abort the TeX run 
whereas Example 2 works when I omit \startlines / \stoplines and use 
\crlf. I have included the console readout for Example 1 below. I can 
get by with Example 2 but I thought I should let you know. 


Hi Charles,

Current ConTeXt chokes on the use of \space within \startlines ...
\stoplines (that is a known bug). You need a workaround. This works
for the current example:

  \starttext

  Example 1

  And here is the sentence before
  \startnarrower[2*left,2*right]
  % Bugfix: redefinition on the next line
  \startlines \def\ { }
  A Somonour was ther with us in that place,


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


Re: [NTG-context] indentaion

2005-07-19 Thread Steffen Wolfrum

  Is anyone using \indenting[no] to suppress the next indentation?

 I used to in the very early beginnings. But very quickly i got lazy
 and reverted to using \noindent instead. I wouldn't mind having it
 go away or changing.

 Taco



same for me

Steffen


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


Re: [NTG-context] footnote within \startlines \stoplines

2005-07-19 Thread Charles Doherty


On 19 Jul 2005, at 13:23, Taco Hoekwater wrote:


Current ConTeXt chokes on the use of \space within \startlines ...
\stoplines (that is a known bug). You need a workaround. This works
for the current example:

  \starttext

  Example 1

  And here is the sentence before
  \startnarrower[2*left,2*right]
  % Bugfix: redefinition on the next line
  \startlines \def\ { }
  A Somonour was ther with us in that place,



Thanks Taco,

That's great.

Charlie

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


Re: [NTG-context] footnote within \startlines \stoplines

2005-07-19 Thread Hans Hagen

Taco Hoekwater wrote:




Charles Doherty wrote:


Dear Hans,

Example 1 below causes TeX to hang and I have to abort the TeX run 
whereas Example 2 works when I omit \startlines / \stoplines and use 
\crlf. I have included the console readout for Example 1 below. I can 
get by with Example 2 but I thought I should let you know. 



Hi Charles,

Current ConTeXt chokes on the use of \space within \startlines ...
\stoplines (that is a known bug). You need a workaround. This works
for the current example:

  \starttext

  Example 1

  And here is the sentence before
  \startnarrower[2*left,2*right]
  % Bugfix: redefinition on the next line
  \startlines \def\ { }
  A Somonour was ther with us in that place,


or, in page-lin.tex, fix:

\installspacehandler \v!off
 {\normalspaces
  \let\obeyedspace\normalspace
  \let\ =\normalspace}


--

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

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


Re: [NTG-context] Paragraph internal graphic/layout inquiry.

2005-07-19 Thread Mikael Persson
On 7/13/05, Hartmut Henkel [EMAIL PROTECTED] wrote:
 On Wed, 13 Jul 2005, Taco Hoekwater wrote:
 
  David Wooten wrote:
   Mr. Tufte has an interesting example from da Vinci: http://
   trichotomic.net/Leonardo.jpg (76k). Is this type of layout currently
   possible (or perhaps a better question, wieldy) within ConTeXt?
 
  In a standard TeX installation, it is not possible to make this type
  of paragraph without massive amounts of manual intervention, because
  TeX's paragraphs cannot (normally) contain holes.
 
 FWIW, there is a pointer to a similar problem in DEK's Digital
 Typography, chapter 9: Problem for a Saturday Morning, published in
 TUGboat 8 (1987) (Harmless title for the amount of macros piling up
 there :-) An article from Alan Hoenig is also mentioned, which can be
 found there:
 
 http://www.tug.org/TUGboat/Articles/tb08-2/tb18hoenig.pdf
 

Hi,

Hans, is this something we can expect some nice ConTeXt-ish macros for?

Best regards, Micke P
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: presentations in ConTeXt

2005-07-19 Thread Thomas A. Schmitz
Thanks Hans! What about a small refresher about \interactionbar cum  
suis. Could you post a minimal example of what is needed to get  
output from it? I tried with a couple of combinations of  
\setupinteraction[state=start] and \setupinteractionbar 
[alternative=d] etc, but I'm not getting any output on my pdf's. I'd  
be very grateful!


Best

Thomas

On Jul 17, 2005, at 11:10 PM, Hans Hagen wrote:


Thomas A. Schmitz wrote:



Mojca,

thanks again, that's a useful trick! However, there is a command   
\interactionbar which seems to provide this functionality, and  
there  is \setupinteractionbar, but the commands are somewhat   
underdocumented :-)
At least, I don't get any visible output on my slides when I  
include  them; there seems to be some kind of secret...


(Your code doesn't compile here, it dies with this message:

This is MetaPost, Version 0.641 (Web2C 7.5.4)
(p-mpgraph.mp
 NOfPages-2
! Unknown relation will be considered false.
to be read again
   )
l.118 if(NOfPages  2)
   and (PageNumber  0): fraction :=   
(PageNumber-1)/(NOf...


?

Thanks, and best



if you want access to those variables (some of them only make sense  
at pag ebuilding time) you need to say:

 LoadPageState ;

(this is done automatically in StartPage ... StopPage)
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
-

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

2005-07-19 Thread Maurice Diamantini


Le 19 juil. 05 à 14:36, Steffen Wolfrum a écrit :


  Is anyone using \indenting[no] to suppress the next indentation?

 I used to in the very early beginnings. But very quickly i got lazy
 and reverted to using \noindent instead. I wouldn't mind having it
 go away or changing.

 Taco


same for me


me too, I use TeX version which also work with LaTeX.

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


Re: [NTG-context] Re: presentations in ConTeXt

2005-07-19 Thread Hans Hagen

Thomas A. Schmitz wrote:

Thanks Hans! What about a small refresher about \interactionbar cum  
suis. Could you post a minimal example of what is needed to get  
output from it? I tried with a couple of combinations of  
\setupinteraction[state=start] and \setupinteractionbar 
[alternative=d] etc, but I'm not getting any output on my pdf's. I'd  
be very grateful!


there are some examples or usage in the presentation styles


grep interactionbar s-pre*

s-pre-01.tex:%D   {interactionbar}
s-pre-01.tex:   {\interactionbar[alternative=f,width=.5\makeupwidth,height=1
ex]}
s-pre-01.tex:%D   {setupinteractionbar, interactionbuttons}
s-pre-01.tex:\setupinteractionbar
s-pre-04.tex:%D   {setupinteractionbar}
s-pre-04.tex:\setupinteractionbar
s-pre-04.tex:  [\interactionbar]
s-pre-04.tex:%Dsetupbackgrounds,setupinteraction,setupinteractionbar,
s-pre-04.tex:   \setupinteractionbar[state=stop]
s-pre-04.tex:   \setupinteractionbar[state=start]
s-pre-05.tex:   \setupinteractionbar[state=stop]
s-pre-05.tex:   \setupinteractionbar[state=start]

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

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


[NTG-context] Footnote Follies

2005-07-19 Thread John R. Culleton
Just finished a highly formatted job for a customer. Something
occurred that isn't supposed to happen with Tex. The reference
number for a footnote was on page a and the footnote itself was
on page a+1. As it happened the footnote was placed at the end
of a paragraph and the paragraph ended in a left parens.  So I
had:
blah blah blah.)\footnote{text of note} 

Also \goodbreak and \clubpenalty 1 in combination still do
not prevent all orphan (club) lines. Perhaps there is a magic Context
incantation that I missed. 

-- 
John Culleton


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


Re: [NTG-context] Footnote Follies

2005-07-19 Thread Hans Hagen

John R. Culleton wrote:


Just finished a highly formatted job for a customer. Something
occurred that isn't supposed to happen with Tex. The reference
number for a footnote was on page a and the footnote itself was
on page a+1. As it happened the footnote was placed at the end
of a paragraph and the paragraph ended in a left parens.  So I
had:
blah blah blah.)\footnote{text of note} 


Also \goodbreak and \clubpenalty 1 in combination still do
not prevent all orphan (club) lines. Perhaps there is a magic Context
incantation that I missed. 
 


\setupnotes[footnote][split=strict]

options are: tolerant strict verystrick 'a number'

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
-

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


Re: [NTG-context] Re: presentations in ConTeXt

2005-07-19 Thread Thomas A. Schmitz
Thanks again, Hans! I just figured out how to do it by experimenting  
with s-pre-01.tex. The key was


\setuplayout[bottom=12pt] % or some dimension

Without it, I'd get no bar, but now it works, and it looks just  
amazing! I'm looking forward to my next presentation!!


Best

Thomas


On Jul 19, 2005, at 8:23 PM, Hans Hagen wrote:



there are some examples or usage in the presentation styles



grep interactionbar s-pre*


s-pre-01.tex:%D   {interactionbar}
s-pre-01.tex:   {\interactionbar[alternative=f,width=.5 
\makeupwidth,height=1

ex]}
s-pre-01.tex:%D   {setupinteractionbar, interactionbuttons}
s-pre-01.tex:\setupinteractionbar
s-pre-04.tex:%D   {setupinteractionbar}
s-pre-04.tex:\setupinteractionbar
s-pre-04.tex:  [\interactionbar]
s-pre-04.tex:%D 
setupbackgrounds,setupinteraction,setupinteractionbar,

s-pre-04.tex:   \setupinteractionbar[state=stop]
s-pre-04.tex:   \setupinteractionbar[state=start]
s-pre-05.tex:   \setupinteractionbar[state=stop]
s-pre-05.tex:   \setupinteractionbar[state=start]

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

___
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] Paragraph internal graphic/layout inquiry.

2005-07-19 Thread Hans Hagen

Mikael Persson wrote:


Hans, is this something we can expect some nice ConTeXt-ish macros for?
 

This is always kind of tricky. Grepping for parshape on my disk gave me an old test file which i wrapped in a preliminary module. I'm not that sure about the interface and I've forgotten how well it performs. 

(I do have a multi column variant somewhere too.) 


no guarantees

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
-



m-shape.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt to XML?

2005-07-19 Thread Hans Hagen

Brooks Moses wrote:

On a different note, it may be worth pointing out that ConTeXt's 
support for typesetting of complicated equations -- that is, the sort 
of stuff for which one really wants the AMSmath package in LaTeX -- 
really isn't especially great; it's pretty much limited to the 
capabilities of Plain TeX.  I'm currently working (very slowly) on 
trying to improve this by doing a port of AMSmath to ConTeXt, but I 
have no idea how compatible that will be with ConTeXt's MathML/XML 
support, nor when I'd have it to a point where it would be ready for 
production work.


The other alternative I know of for doing math in XML is embedding 
bits of LaTeX code within the XML.  Since most conversion to non-PDF 
formats involves converting the math to bitmap images anyway (or, at 
least, any conversion to HTML for the web does!), I don't think that's 
really complicating things much.  It's certainly possible in theory to 
embed LaTeX-coded equations in ConTeXt, and there's a small bit of 
comment on this on the Wiki.  In practice, it may take a bit of coding 
to make work, but the amount won't be excessive.


there is a math module (m-math) and a new implementation of that (m-newmat) which does quite some ams math; 

i have no problem with adding more code but each time i ask for specs, nothing comes up -) 

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
-

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


Re: [NTG-context] ConTeXt to XML?

2005-07-19 Thread Hans Hagen

Elena Fraboschi wrote:

So, I have been delving into ConTeXt, and I like its syntax:  far 
cleaner than LaTeX.  I have also read that there is work in progress

to convert XML to ConTeXt --- my question is, any thoughts, hints,
recommendations about reverse-engineering, that is, from ConTeXt to
XML?  If the IUMJ switched production to ConTeXt, we would still want
to preserve on archival copy in XML.

(As of now we translate LaTeX to XML using hermes, but it would
not work with ConTeXt.)  If nothing is contemplated in the
area of *from ConTeXt to XML, might this strategy work


There are several things involved in such a translation

- the general structure, this is not that hard and can easily be scripted
- special characters, also easy to script
- special markup, like math, chemistry etc

concerning math, one can use:

- content mathml, which is very structured and configurable
- presentation mathml, which looks like tex, and does not always lead to 
nice looking output

- embedded tex, which is ok

as a start one can consider structure in xml and embedded tex for 
formulas,  its not that hard to generate web pages from that


i'm considering adding open math support (needed for a project)


ConTeXt - pdf - pdf to XML ?


the best way is:

xml - context
xml - html
xml - anything

normally magazines are not that complex so oen can use context's direct 
mapping; depending on the amount of manipulations, one can


xml - context reading xml - pdf
xml - xslt - xml - context reading xml - pdf
xml - xslt - context code - context reading tex - pdf

in any case, try to cut the problem into small parts and find solutions 
for that; so far i never ran into things/demands that could not be solved


I apologize if the topic is off bounds, and will be grateful if anyone 
decides to think outloud on this subject.  Best, elena


no problem, if you want to know more you can either use this list (it 
could also be a nice thread for those who want to do similar things)


if you don't want to bother the list., you may also mail me directly

pdf is pages while xml is structured markup, so converting pdf into xml 
is non trivial,


(btw, the dutch math societies journal is made up in context, i.e. non 
standard layout (2/3 columns, grayscales, two non cm font sets, 
graphics, pictures etc; the main reason why we now have the columnsets 
mechanism-)


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
-

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


Re: [NTG-context] ConTeXt to XML?

2005-07-19 Thread Hans Hagen

Hi Elena

Concerning the math and xml, it all depends on what kind of math is 
used. In most cases some tex - presentation mathml results in sub 
optimal results. One of the advantages of context is that one can 
easilly modulate on layouts, so for publishing on the web one can as 
well use pdf in a more screen/navigation friendly layout. It's no real 
problem to generate multiple instances from one document using 
processing modes.  That  way you get quality on paper and on screen.



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
-

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


[NTG-context] new beta

2005-07-19 Thread Hans Hagen

Hi,

I'm currently uploading a beta with the most recent discussed fixes / 
extensions. The questiosn with regards to verse/poems triggered me into 
looking into the lines mechanism and i found out that the odd/even 
indentation was broken. As a result i rewrote part if the indenter. So, 
the following should work ok


\setupindenting[medium]

\setuplines[indenting=no]

\startlines
first
second
third
fourth
\stoplines

\setuplines[indenting=yes]

\startlines
first
second
third
fourth
\stoplines

\setuplines[indenting=odd]

\startlines
first
second
third
fourth
\stoplines

\setuplines[indenting=even]

\startlines
first
second
third
fourth
\stoplines

--

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

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


[NTG-context] [BUG] unic-032.tex 0x2026 HORIZONTAL ELLIPSIS definition wrong

2005-07-19 Thread Nikolai Weibull
\textellipsis usually expands to \cdots and that's fine, but
\textellipsis shouldn't be used in unic-032.tex for 0x2026 HORIZONTAL
ELLIPSIS, as this codepoint is for a symbol of dots on the base-line,
not in the center.  I've posted about this previously, but got no
response.  Anyway, I've attached a patch that fixes the problem.  I
don't know if using \dots instead is the best solution, though, so
further discussion may be necessary?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
--- old-unic-032.tex2005-07-20 01:13:44.414092288 +0200
+++ unic-032.tex2005-07-20 01:13:54.869502824 +0200
@@ -113,7 +113,7 @@
 \strippedcsname \unknownchar  \or   % U+2023 TRIANGULAR BULLET
 \strippedcsname \unknownchar  \or   % U+2024 ONE DOT LEADER
 \strippedcsname \unknownchar  \or   % U+2025 TWO DOT LEADER
-\strippedcsname \textellipsis \else % U+2026 HORIZONTAL ELLIPSIS
+\strippedcsname \dots \else % U+2026 HORIZONTAL ELLIPSIS
   \ifcase\numexpr#1-48\relax
 \strippedcsname \perthousand  \or   % U+2030 PER MILLE SIGN
 \strippedcsname \unknownchar  \or   % U+2031 PER TEN THOUSAND SIGN
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt to XML?

2005-07-19 Thread Brooks Moses

At 01:40 PM 7/19/2005, you wrote:

Brooks Moses wrote:
The other alternative I know of for doing math in XML is embedding bits 
of LaTeX code within the XML.  Since most conversion to non-PDF formats 
involves converting the math to bitmap images anyway (or, at least, any 
conversion to HTML for the web does!), I don't think that's really 
complicating things much.  It's certainly possible in theory to embed 
LaTeX-coded equations in ConTeXt, and there's a small bit of comment on 
this on the Wiki.  In practice, it may take a bit of coding to make work, 
but the amount won't be excessive.


there is a math module (m-math) and a new implementation of that 
(m-newmat) which does quite some ams math;


It does some, yes, though not (yet) the multiline alignment parts that I need.

i have no problem with adding more code but each time i ask for specs, 
nothing comes up -)


Yeah, I know.  The specs for what I need are I've got this pile of 
equations written in LaTeX with the AMSmath package, and I'd like to be 
able to copy them back and forth between LaTeX and ConTeXt without needing 
to edit them.  I'm slowly working on reducing that to something that's 
actually useful as specifications (and as some code), and I hope to get 
some of that to you within the next few months or so.


- Brooks

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


Re: [NTG-context] Paragraph internal graphic/layout inquiry.

2005-07-19 Thread David Wooten
Hmm, I'm not sure how to try out this 'preliminary module' --- looks  
like there is a sample included, but perhaps it could be spelled out  
for me (and anyone else who doesn't know how to proceed).


Many thanks!
Dave

On Jul 19, 2005, at 1:38 PM, Hans Hagen wrote:


Mikael Persson wrote:


Hans, is this something we can expect some nice ConTeXt-ish macros  
for?


This is always kind of tricky. Grepping for parshape on my disk  
gave me an old test file which i wrapped in a preliminary module.  
I'm not that sure about the interface and I've forgotten how well  
it performs.

(I do have a multi column variant somewhere too.)
no guarantees

Hans

m-shape.tex


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


Re: [NTG-context] Paragraph internal graphic/layout inquiry.

2005-07-19 Thread Matthias Weber

You can comment out the line

\doifnotmode{demo}{\endinput}

There is probably also an invocation of TeX with a command line option 
which sets the mode.


Matthias

On Jul 19, 2005, at 7:36 PM, David Wooten wrote:

Hmm, I'm not sure how to try out this 'preliminary module' --- looks 
like there is a sample included, but perhaps it could be spelled out 
for me (and anyone else who doesn't know how to proceed).


Many thanks!
Dave

On Jul 19, 2005, at 1:38 PM, Hans Hagen wrote:


Mikael Persson wrote:


Hans, is this something we can expect some nice ConTeXt-ish macros 
for?


This is always kind of tricky. Grepping for parshape on my disk gave 
me an old test file which i wrapped in a preliminary module. I'm not 
that sure about the interface and I've forgotten how well it 
performs.

(I do have a multi column variant somewhere too.)
no guarantees

Hans

m-shape.tex


___
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] Paragraph internal graphic/layout inquiry.

2005-07-19 Thread luigi.scarso

Matthias Weber wrote:


You can comment out the line

\doifnotmode{demo}{\endinput}

There is probably also an invocation of TeX with a command line option 
which sets the mode.



I made it with
$texexec --pdf --mode=demo m-shape.tex

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