Re: [NTG-context] Error with export=yes

2011-05-09 Thread Hans Hagen
On 9-5-2011 4:57, Reviczky, Adam wrote: Further, using an example with dingbats: %%% \setupbackend[export=cld-mkiv-export.xml,xhtml=cld-mkiv-export.xhtml,css={cld-mkiv-export.css,mathml.css}] \starttext Hello world! \getnamedglyphdirect{name:dingbats}{a79} \stoptext %%% Produces a broken

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Reviczky, Adam
Anyhow, \setupbackend[export=yes] \definefontsynonym [Dingbats] [name:dingbats] [features=dingbats] \starttext Hello world! (\getnamedglyphdirect{Dingbats}{a79}) (\getnamedglyphdirect{Dingbats*dingbats}{a79}) (\getglyphdirect{Dingbats*dingbats}{\number2756})

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Hans Hagen
On 9-5-2011 1:32, Reviczky, Adam wrote: Anyhow, \setupbackend[export=yes] \definefontsynonym [Dingbats] [name:dingbats] [features=dingbats] \starttext Hello world! (\getnamedglyphdirect{Dingbats}{a79}) (\getnamedglyphdirect{Dingbats*dingbats}{a79})

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Reviczky, Adam
no clue So it looks like having the urw zapfding fonts from texlive mess this up (uzdr.afm, uzdr.pfb and uzdr.pfm). Don't you have them? Why is it a problem if context finds those? Without those fonts, I have this in the log: fontsnames font database has matching configuration

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Hans Hagen
On 9-5-2011 2:53, Reviczky, Adam wrote: no clue So it looks like having the urw zapfding fonts from texlive mess this up (uzdr.afm, uzdr.pfb and uzdr.pfm). Don't you have them? Why is it a problem if context finds those? Without those fonts, I have this in the log: fonts names font

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Hans Hagen
Hi, Something else to play with, making an epub archive. At some point I will add support for images etc. At the end of a run you will see: export saving specification in 'oeps.specification' (mtxrun --script epub --make oeps.specification) The mentioned mtxrun call will make an archive.

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Reviczky, Adam
Something else to play with, making an epub archive. At some point I will add support for images etc. At the end of a run you will see: export saving specification in 'oeps.specification' (mtxrun --script epub --make oeps.specification) The mentioned mtxrun call will make an archive.

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Reviczky, Adam
export saving specification in 'oeps.specification' (mtxrun --script epub --make oeps.specification) Somehow I can't get this working yet, this doesn't get triggered at my end, do I forget something? shouldn't also back-exp.lua line 406: -handle:write( url=',file,') +

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Wolfgang Schuster
Am 09.05.2011 um 18:48 schrieb Reviczky, Adam: export saving specification in 'oeps.specification' (mtxrun --script epub --make oeps.specification) Somehow I can't get this working yet, this doesn't get triggered at my end, do I forget something? Do you set a value for the xhtml key?

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Reviczky, Adam
Do you set a value for the xhtml key? Yeah, I figured that out now, epub is generated now, still playing with it, trying with calibre .. Thanks ___ If your question is of interest to others as well, please add an

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Reviczky, Adam
I still must miss something, because the epub doesn't seem to contain anything. So here's a simple example: \setupbackend[export=yes,xhtml=test.xhtml] \starttext Hello world! \stoptext Then after running context: mtxrun --script epub --make test.specification table={ [files]={ test.xhtml },

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Reviczky, Adam
The xhtml seems to be missing from OPS, but even putting that in there doesn't give me a working epub (even though it increases the epub size). Right, adding a title solves that, but still empty when trying to open it ...

Re: [NTG-context] Error with export=yes

2011-05-09 Thread Hans Hagen
On 9-5-2011 7:30, Reviczky, Adam wrote: The xhtml seems to be missing from OPS, but even putting that in there doesn't give me a working epub (even though it increases the epub size). new beta -

Re: [NTG-context] Error with export=yes

2011-05-08 Thread Reviczky, Adam
fixed in next beta (you can replace gmatch by string.gmatch as a fast fix) Thanks, that fixed the problem for one, but still it fails on my thesis with: ! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:868: attempt to index field '?' (a nil value). empty file I hope it is not

Re: [NTG-context] Error with export=yes

2011-05-08 Thread Reviczky, Adam
Further, using an example with dingbats: %%% \setupbackend[export=cld-mkiv-export.xml,xhtml=cld-mkiv-export.xhtml,css={cld-mkiv-export.css,mathml.css}] \starttext Hello world! \getnamedglyphdirect{name:dingbats}{a79} \stoptext %%% Produces a broken xhtml (XML Parsing Error: not well-formed),

Re: [NTG-context] Error with export=yes

2011-05-07 Thread Hans Hagen
On 7-5-2011 2:57, Reviczky, Adam wrote: \setupbackend [export=cld-mkiv-export.xml, xhtml=cld-mkiv-export.xhtml, css={cld-mkiv-export.css,mathml.css}] There's an article in the eurotex proceedings about these issues. I don't know if Mojca has put the presentation somewhere online.

[NTG-context] Error with export=yes

2011-05-06 Thread Aditya Mahajan
Hi, The following gives an error: \setupbackend[export=yes] \starttext test \stoptext ! LuaTeX error ...minimals/texmf-context/tex/context/base/util-prs.lua:125: bad argument #2 to 'lpegmatch' (string expected, got boolean). system tex error on line 0 in file : LuaTeX error ...

Re: [NTG-context] Error with export=yes

2011-05-06 Thread Hans Hagen
On 6-5-2011 3:39, Aditya Mahajan wrote: \setupbackend[export=yes] \starttext test \stoptext I'll fix it. You can set an xhtml file as well as some css. \setupbackend[export=yes] \setupbackend[export=yes,xhtml=yes] \setupbackend[export=yes,xhtml=whatever.xhtml]

Re: [NTG-context] Error with export=yes

2011-05-06 Thread Aditya Mahajan
On Fri, 6 May 2011, Hans Hagen wrote: On 6-5-2011 3:39, Aditya Mahajan wrote: \setupbackend[export=yes] \starttext test \stoptext I'll fix it. You can set an xhtml file as well as some css. \setupbackend[export=yes] \setupbackend[export=yes,xhtml=yes]

Re: [NTG-context] Error with export=yes

2011-05-06 Thread Reviczky, Adam
\setupbackend [export=cld-mkiv-export.xml, xhtml=cld-mkiv-export.xhtml, css={cld-mkiv-export.css,mathml.css}] There's an article in the eurotex proceedings about these issues. I don't know if Mojca has put the presentation somewhere online. Since this worked nicely on a simple