Re: [NTG-context] ePub issues: XML structure

2020-03-12 Thread Axel Kielhorn
> Am 12.03.2020 um 08:09 schrieb Henning Hraban Ramm : > >> Am 2020-03-11 um 22:42 schrieb Axel Kielhorn : >> >> Actually your workshop is the reason I plan to attend the meeting. > > Nice to hear, you’re welcome! As a preparation I have updated my german intro at: https://github.com/AKielho

Re: [NTG-context] ePub issues: XML structure

2020-03-12 Thread Henning Hraban Ramm
> Am 2020-03-11 um 22:42 schrieb Axel Kielhorn : > >> Am 11.03.2020 um 20:59 schrieb Henning Hraban Ramm : >> >> Hi Axel, >> will I meet you by chance at the DANTE in Lübeck? >> >> In that case it would be nice if you could assist me with my "ConTeXt for >> beginners workshop" to tell something

Re: [NTG-context] ePub issues: XML structure

2020-03-11 Thread Axel Kielhorn
> Am 11.03.2020 um 20:59 schrieb Henning Hraban Ramm : > > Hi Axel, > will I meet you by chance at the DANTE in Lübeck? > > In that case it would be nice if you could assist me with my "ConTeXt for > beginners workshop" to tell something about Lua & XML. > > Greetlings, Hraban Actually your

Re: [NTG-context] ePub issues: XML structure

2020-03-11 Thread Henning Hraban Ramm
Hi Axel, will I meet you by chance at the DANTE in Lübeck? In that case it would be nice if you could assist me with my "ConTeXt for beginners workshop" to tell something about Lua & XML. Greetlings, Hraban ___ If yo

Re: [NTG-context] ePub issues: XML structure

2020-03-06 Thread Henning Hraban Ramm
> Am 2020-03-04 um 07:55 schrieb Henning Hraban Ramm : > > While the first book in a series of four is now ready with a lot of manual > corrections, in the second one the XML structure is messed up: the chapter > title structure comes only after the chapter content, and index entry tags > are

Re: [NTG-context] epub and pdf not the same

2020-03-04 Thread Wolfgang Schuster
Hans van der Meer schrieb am 04.03.2020 um 13:23: On 3 Mar 2020, at 22:04, Rik Kabel > wrote: Instructions for creating the .epub from the export are contained in the log file. In the log comes:     create epub with: mtxrun --script epub --make "kookboek" -

[NTG-context] epub and pdf not the same

2020-03-04 Thread Hans van der Meer
On 3 Mar 2020, at 22:04, Rik Kabel wrote:Instructions for creating the .epub from the export are contained in the log file.In the log comes:    create epub with: mtxrun --script epub --make "kookboek" --purge --rename --svgmathThis I did.The log gives: adding: mimetyp

Re: [NTG-context] ePub issues: XML structure

2020-03-04 Thread Hans Hagen
On 3/4/2020 7:55 AM, Henning Hraban Ramm wrote: Not only Hans van der Meer is producing (or trying to produce) ePubs at the moment; I reviewed my XSLT workflow (https://wiki.contextgarden.net/Epub_Sample) since my publisher colleagues and our distributor aren’t happy about just publishing PDFs

[NTG-context] ePub issues: XML structure

2020-03-03 Thread Henning Hraban Ramm
Not only Hans van der Meer is producing (or trying to produce) ePubs at the moment; I reviewed my XSLT workflow (https://wiki.contextgarden.net/Epub_Sample) since my publisher colleagues and our distributor aren’t happy about just publishing PDFs as eBooks. While the first book in a series of f

Re: [NTG-context] Epub export css buglets

2020-01-17 Thread Rik Kabel
On 1/10/2020 10:59, Rik Kabel wrote: Here ya go, about as minimal as I can imagine: \setupbackend [export=yes] \setupexport [] \starttext ! \stoptext and in the resulting export styles directory, I get: g:\yoiks-export\styles>grep "namespace\|weight.*italic\|text-width

Re: [NTG-context] Epub export css buglets

2020-01-10 Thread Rik Kabel
On 1/9/2020 11:25, Hans Hagen wrote: On 1/6/2020 7:08 PM, Rik Kabel wrote: A couple of small issues with the css for epub output. First, back-exp.lua creates, in \jobname-styles.css     @namespace context url('%namespace%') ; This should probably be:     @namespace context url('http://www.pr

Re: [NTG-context] Epub export css buglets

2020-01-09 Thread Hans Hagen
On 1/6/2020 7:08 PM, Rik Kabel wrote: A couple of small issues with the css for epub output. First, back-exp.lua creates, in \jobname-styles.css @namespace context url('%namespace%') ; This should probably be: @namespace context url('http://www.pragma-ade.com/context/export') ; That

[NTG-context] Epub export css buglets

2020-01-06 Thread Rik Kabel
A couple of small issues with the css for epub output. First, back-exp.lua creates, in \jobname-styles.css @namespace context url('%namespace%') ; This should probably be: @namespace context url('http://www.pragma-ade.com/context/export') ; That file also has: document, %namespac

Re: [NTG-context] Epub broken

2018-07-06 Thread Hans Hagen
On 7/6/2018 12:45 AM, Rik Kabel wrote: On 7/5/2018 17:18, Hans Hagen wrote: On 7/5/2018 4:47 PM, Rik Kabel wrote: On 7/5/2018 10:27, Hans Hagen wrote: On 7/4/2018 3:17 PM, Rik Kabel wrote: The following example fails with recent betas, but not with TL18: define fails Sorry to be so terse i

Re: [NTG-context] Epub broken

2018-07-05 Thread Rik Kabel
On 7/5/2018 17:18, Hans Hagen wrote: On 7/5/2018 4:47 PM, Rik Kabel wrote: On 7/5/2018 10:27, Hans Hagen wrote: On 7/4/2018 3:17 PM, Rik Kabel wrote: The following example fails with recent betas, but not with TL18: define fails Sorry to be so terse in the original note. By failure, I mean

Re: [NTG-context] Epub broken

2018-07-05 Thread Hans Hagen
On 7/5/2018 4:47 PM, Rik Kabel wrote: On 7/5/2018 10:27, Hans Hagen wrote: On 7/4/2018 3:17 PM, Rik Kabel wrote: The following example fails with recent betas, but not with TL18: define fails Sorry to be so terse in the original note. By failure, I mean that the generated .epub document is

Re: [NTG-context] Epub broken

2018-07-05 Thread Rik Kabel
On 7/5/2018 10:27, Hans Hagen wrote: On 7/4/2018 3:17 PM, Rik Kabel wrote: The following example fails with recent betas, but not with TL18: define fails Sorry to be so terse in the original note. By failure, I mean that the generated .epub document is incorrect; parts are out of order, as:

Re: [NTG-context] Epub broken

2018-07-05 Thread Hans Hagen
On 7/4/2018 3:17 PM, Rik Kabel wrote: The following example fails with recent betas, but not with TL18: define fails - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hass

[NTG-context] Epub broken

2018-07-04 Thread Rik Kabel
The following example fails with recent betas, but not with TL18: \setupinteraction [state=start] \setuptagging [state=start] \setupbackend [export=yes,xhtml=yes] \setupexport [title={Title}] \setupstructure [state=start] \starttext \startchapter[title={Chapter

[NTG-context] ePub and Metapost

2015-10-20 Thread Fabrice Couvreur
Hi, Is it possible to produce a epub file from a file containing a figure made with Metapost ? Thanks, Fabrice Envoyé de mon iPad___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] epub-mkiv-demo.epub

2015-04-13 Thread Hans Hagen
On 4/13/2015 3:37 PM, Piotr Kopszak wrote: ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(26,79): Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''. we can probably catch that one epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(38,120): MathML should either

Re: [NTG-context] epub-mkiv-demo.epub

2015-04-13 Thread Hans Hagen
On 4/13/2015 3:37 PM, Piotr Kopszak wrote: Thanks Hans! That did the trick, just a README mentioning mudraw as dependency in the source directory would do, however the file which is generated contains errors, at least according to epubcheck and kindlegen, which prevents conversion of resulting e

Re: [NTG-context] epub-mkiv-demo.epub

2015-04-13 Thread Piotr Kopszak
Thanks Hans! That did the trick, just a README mentioning mudraw as dependency in the source directory would do, however the file which is generated contains errors, at least according to epubcheck and kindlegen, which prevents conversion of resulting epub file to mobi format, what I would ultimat

Re: [NTG-context] epub-mkiv-demo.epub

2015-04-11 Thread Hans Hagen
On 4/11/2015 9:12 AM, Piotr Kopszak wrote: Hello list, I am trying to compile example epub file epub-mkiv-demo.tex which is provided with the recent beta, however I'm getting following errors when I run:mtxrun --script epub --make "epub-mkiv-demo" resolvers | trees | analyzing 'home:texmf

[NTG-context] epub-mkiv-demo.epub

2015-04-11 Thread Piotr Kopszak
Hello list, I am trying to compile example epub file epub-mkiv-demo.tex which is provided with the recent beta, however I'm getting following errors when I run:mtxrun --script epub --make "epub-mkiv-demo" resolvers | trees | analyzing 'home:texmf' mtx-epub| using specification file

Re: [NTG-context] ePUB creation problems

2015-03-18 Thread Hans Hagen
On 3/18/2015 1:00 PM, Gerben Wierda wrote: I’m getting to the next phase of ePUB creation. My project now exports and with mtxrun —script epub, I can create an actual ePUB, but there are issues I need to fix. attached a manual i'm on-and-off working on .. i have no time now for more info Han

[NTG-context] ePUB creation problems

2015-03-18 Thread Gerben Wierda
I’m getting to the next phase of ePUB creation. My project now exports and with mtxrun —script epub, I can create an actual ePUB, but there are issues I need to fix. One is the lack of a cover image. The command for epub creation works, but says: (. /usr/local/src/ConTeXt/tex/setuptex && mtxrun

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-19 Thread Keith Schultz
Hi Hans, I have been playing with the on using LaTeX and later LuaLaTeX for create epub or ebook. Though I have not got around to. The idea was to set enviorments, macros and commands that would depending on a switch that would output the need HTML and epub structure or call the normal *TeX ones

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Hans Hagen
On 2/17/2015 11:37 PM, Aditya Mahajan wrote: On Tue, 17 Feb 2015, Hans Hagen wrote: Context outputs three varants: regular xml, xhtml, and stupified xhtml with div/class tagging. The last one is supposed to work on all devices as it doesn't demands anything beyond css. The XML generated by Co

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Hans Hagen
On 2/17/2015 10:01 PM, Keith Schultz wrote: Am 17.02.2015 um 21:16 schrieb Hans Hagen mailto:pra...@wxs.nl>>: On 2/17/2015 8:24 AM, Keith J. Schultz wrote: Hi Axel, All, [snip, snip] IMHO : ConTeXt should not output XHMTL for epub, but HMTL5. Yes, yes, I know XHMTL is part of HMTL5. And

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Hans Hagen
On 2/18/2015 3:10 PM, Keith J. Schultz wrote: Hi Hraban, Good to know. I will investigate at another time and give feed back. I am in the middle of moving, so I do not have much time. We ought to think of making a export specific to epub in the long run! The export is not really geared at tha

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Henning Hraban Ramm
Am 2015-02-18 um 20:10 schrieb Keith J. Schultz : > Hi Hraban, > > Good to know. I will investigate at another time and give feed back. > I am in the middle of moving, so I do not have much time. > > We ought to think of making a export specific to epub in the long run! For me, the regular exp

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Keith J. Schultz
Hi Hraban, Good to know. I will investigate at another time and give feed back. I am in the middle of moving, so I do not have much time. We ought to think of making a export specific to epub in the long run! regards Keith. > Am 18.02.2015 um 09:14 schrieb Henning Hraban Ramm : > > >

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Henning Hraban Ramm
Am 2015-02-18 um 04:37 schrieb Aditya Mahajan : > On Tue, 17 Feb 2015, Hans Hagen wrote: > >> Context outputs three varants: regular xml, xhtml, and stupified xhtml with >> div/class tagging. The last one is supposed to work on all devices as it >> doesn't demands anything beyond css. > > The

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-17 Thread Aditya Mahajan
On Tue, 17 Feb 2015, Hans Hagen wrote: Context outputs three varants: regular xml, xhtml, and stupified xhtml with div/class tagging. The last one is supposed to work on all devices as it doesn't demands anything beyond css. The XML generated by ConTeXt is very well structured. So, an option

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-17 Thread Keith Schultz
> Am 17.02.2015 um 21:16 schrieb Hans Hagen : > > On 2/17/2015 8:24 AM, Keith J. Schultz wrote: >> Hi Axel, All, >> >> [snip, snip] >> IMHO : ConTeXt should not output XHMTL for epub, but HMTL5. >> Yes, yes, I know XHMTL is part of HMTL5. > > And html 5 is just html with some extras (and assum

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-17 Thread Hans Hagen
On 2/17/2015 8:24 AM, Keith J. Schultz wrote: Hi Axel, All, You have mentioned that most current ebook readers can not display MathML. Well, the problem lies in the epub guidelines for the readers. The problem is even worse. many readers do not even implement the full HTML5 standard. though th

[NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-16 Thread Keith J. Schultz
Hi Axel, All, You have mentioned that most current ebook readers can not display MathML. Well, the problem lies in the epub guidelines for the readers. The problem is even worse. many readers do not even implement the full HTML5 standard. though that is the standard used in the latest epub stadn

Re: [NTG-context] EPUB woes

2013-11-20 Thread Jan Tosovsky
On 2013-11-20 Bill Meahan wrote: > On 11/20/2013 8:59 AM, Aditya Mahajan wrote: > > > > As far as ConTeXt is concerned, you can process the above XML quite > > easily. Come to think of it, it may be a useful to provide a module > > that maps HTML5 to PDF. > > > > I would vote for that approach. It

Re: [NTG-context] EPUB woes

2013-11-20 Thread Keith J. Schultz
Hi, You do not understand my point. I one uses XML why use ConTeXt. Yet, I one wants to use ConTeXt and do ebooks and they have experience why force them to XML. As I stated the idea use ConTeXt to do the markup with commands that will ensure proper input of HTML5 for making ebooks that will

Re: [NTG-context] EPUB woes

2013-11-20 Thread Bill Meahan
On 11/20/2013 8:59 AM, Aditya Mahajan wrote: As far as ConTeXt is concerned, you can process the above XML quite easily. Come to think of it, it may be a useful to provide a module that maps HTML5 to PDF. Aditya I would vote for that approach. It is pretty much analogous to what I have dec

Re: [NTG-context] EPUB woes

2013-11-20 Thread Aditya Mahajan
On Wed, 20 Nov 2013, Keith J. Schultz wrote: \usemodule[ebook] \setupcss[…]{…}% see comment #1 \setupmapping[…]{…} % used for when author has his/her own ideas #2 %normal ConTeXt sets see comment #3 % possibly set a mode or set externally \sta

Re: [NTG-context] EPUB woes

2013-11-20 Thread Keith J. Schultz
Hi Mica, Am 19.11.2013 um 22:39 schrieb Mica Semrick : > Keith, > > Maybe you should explore an XML format that can be transformed directly to > epub. You'd also be able to write a style sheet with ConTeXt that would out > put a PDF as well. I think TEI-Lite is a good starting point. W

Re: [NTG-context] EPUB woes

2013-11-19 Thread Mica Semrick
Keith, Maybe you should explore an XML format that can be transformed directly to epub. You'd also be able to write a style sheet with ConTeXt that would out put a PDF as well. I think TEI-Lite is a good starting point. Since you can make your own commands in ConTeXt, it will never be able to int

Re: [NTG-context] EPUB woes

2013-11-18 Thread Keith J. Schultz
Am 18.11.2013 um 16:33 schrieb Hans Hagen : > On 11/18/2013 4:11 PM, Keith J. Schultz wrote: >> Hi Hans, >> >> >> Am 18.11.2013 um 13:21 schrieb Hans Hagen : >> >>> On 11/18/2013 10:00 AM, Keith J. Schultz wrote: >>> 2) Now, what a EPub-READER must implement to handle is very

Re: [NTG-context] EPUB woes

2013-11-18 Thread Hans Hagen
On 11/18/2013 4:11 PM, Keith J. Schultz wrote: Hi Hans, Am 18.11.2013 um 13:21 schrieb Hans Hagen : On 11/18/2013 10:00 AM, Keith J. Schultz wrote: 2) Now, what a EPub-READER must implement to handle is very little. There are HARDLY ANY provisions that a certified EPuB

Re: [NTG-context] EPUB woes

2013-11-18 Thread Keith J. Schultz
Hi Hans, Am 18.11.2013 um 13:21 schrieb Hans Hagen : > On 11/18/2013 10:00 AM, Keith J. Schultz wrote: > >> 2) Now, what a EPub-READER must implement to handle is very >> little. There are HARDLY ANY provisions that a certified >> EPuB-READER has >> to implement any

Re: [NTG-context] EPUB woes

2013-11-18 Thread Hans Hagen
On 11/18/2013 10:00 AM, Keith J. Schultz wrote: 2) Now, what a EPub-READER must implement to handle is very little. There are HARDLY ANY provisions that a certified EPuB-READER has to implement any particular engine or features therein to display/render

Re: [NTG-context] EPUB woes

2013-11-18 Thread Keith J. Schultz
Hi All, I find that the ConTeXt approach to creating the EPub is flawed is a fundemental way! NOT TECHNICALLY. The EPub Standard is a big mess and if you really look at not a true standard in a true sense. Let me explain. 1) The file structure is well documented and properly defines

Re: [NTG-context] EPUB woes

2013-11-18 Thread Keith J. Schultz
Am 16.11.2013 um 17:51 schrieb Bill Meahan : > On 11/16/2013 11:00 AM, Keith J. Schultz wrote: >> Hi Bill, >> >> Using a PDF as a basis for creating an Epub ebook is actually a lost cause. >> EPUB is a container format that just wraps around your PDF. I do not know of >> any >> ereader that can

Re: [NTG-context] EPUB woes

2013-11-16 Thread Bill Meahan
On 11/16/2013 12:37 PM, Aditya Mahajan wrote: On Sat, 16 Nov 2013, Bill Meahan wrote: I would /expect/ to get a valid EPUB file, or so I'm lead to believe. 1. Wait until the EPUB readers catch up. It took almost 10-15 years for the browsers to catch up with the HTML standards, and I don't h

Re: [NTG-context] EPUB woes

2013-11-16 Thread Aditya Mahajan
On Sat, 16 Nov 2013, Bill Meahan wrote: I would /expect/ to get a valid EPUB file, or so I'm lead to believe. At the moment, I'm simply trying it out using Hans' "export-example.tex" file that comes as part of the standard ConTeXt distribution, either Standalone or part of one of the other di

Re: [NTG-context] EPUB woes

2013-11-16 Thread Bill Meahan
On 11/16/2013 11:00 AM, Keith J. Schultz wrote: Hi Bill, Using a PDF as a basis for creating an Epub ebook is actually a lost cause. EPUB is a container format that just wraps around your PDF. I do not know of any ereader that can actually adjust the formatting/layout of a pdf in any significan

Re: [NTG-context] EPUB woes

2013-11-16 Thread Wolfgang Schuster
Am 16.11.2013 um 16:16 schrieb Bill Meahan : > I have been trying for a very long time to generate an epub document via > context without success. > > I have followed the steps on the wiki to the letter, using the export-example > file provided with the standalone distribution. A PDF generated

Re: [NTG-context] EPUB woes

2013-11-16 Thread Keith J. Schultz
Hi Bill, Using a PDF as a basis for creating an Epub ebook is actually a lost cause. EPUB is a container format that just wraps around your PDF. I do not know of any ereader that can actually adjust the formatting/layout of a pdf in any significantly useful way. You are stuck with the formattin

[NTG-context] EPUB woes

2013-11-16 Thread Bill Meahan
I have been trying for a very long time to generate an epub document via context without success. I have followed the steps on the wiki to the letter, using the export-example file provided with the standalone distribution. A PDF generated from the file is exactly what I would expect from an e

Re: [NTG-context] EPUB XHTML Format

2013-09-12 Thread Alan BRASLAU
On Thu, 5 Sep 2013 19:22:42 Aditya Mahajan wrote: > How easy is it to create a new export format. IIRC, context keeps track of > the entire document tree, and flushes the XML output only at the end. Is > it possible to make this pluggable so that users can write their own > transformers (in lu

Re: [NTG-context] EPUB XHTML Format

2013-09-07 Thread Thangalin
Hi, so, i'd never claim that context produces epub but it can be used in a > workflow that involves epub as it outputs xml which can be transformed > That's a distinction that either might not matter or sometimes is lost: http://tex.stackexchange.com/a/17642/2148 http://wiki.contextgarden.net/ep

Re: [NTG-context] EPUB XHTML Format

2013-09-07 Thread Hans Hagen
On 9/6/2013 10:20 PM, Thangalin wrote: Hi, The best reader imho is iBooks on the iPad, nothing else, from what I've seen, comes close. But that is one expensive eReader. :( We'll just have everybody in the world who has a Kindle, Kobo, or other reader exchange their existing hardware,

Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Thangalin
Hi, never mind not being able to add the books to online marketplaces (such as > Amazon) because, again, the output does not validate. > I think the simplest thing to do would be to update the wiki and have a note that informs readers that while ConTeXt can be used to generate an EPUB, it is like

Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Aditya Mahajan
On Fri, 6 Sep 2013, Thangalin wrote: Hi, never mind not being able to add the books to online marketplaces (such as Amazon) because, again, the output does not validate. I think the simplest thing to do would be to update the wiki and have a note that informs readers that while ConTeXt can

Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Thangalin
Hi, The best reader imho is iBooks on the iPad, nothing else, from what I've > seen, comes close. But that is one expensive eReader. :( > We'll just have everybody in the world who has a Kindle, Kobo, or other reader exchange their existing hardware, and then purchase an iPad plus iBook. Problem

Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Hans Hagen
On 9/6/2013 12:00 AM, Thangalin wrote: That is a good point. The current XML structure produced by ConTeXt (Hans correct me here if I'm mistaken) is not accessible, as it doesn't adhere to strict XHTML. I suspect that tags would not be accessible -- the only way to provide true accessibility in

Re: [NTG-context] EPUB XHTML Format

2013-09-06 Thread Mica Semrick
Another small note, since I just walked down the ePUB path: you'll be very sad to find out that a lot of rendering engines for popular readers are not consistent, won't render standard XHTML markup correctly (nest an ordered list within an unordered list and then look at it in adobe digital edition

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Mica Semrick
I'd say use an xml source (docbook, TEI, or DITA) and then write a ConTeXt stylesheet to typeset your XML. See http://wiki.contextgarden.net/TEI_xml I think that TEI-lite is a nice, very general XML vocabulary... Best, Mica On Thu, Sep 5, 2013 at 11:24 AM, Hans Hagen wrote: > On 9/5/2013 8:20

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Thangalin
Hi, handle XML+CSS well. However, most (all?) EPUB readers don't. So, the > question is asking if instead ConTeXt could generate a XHTML Precisely. > If you need both EPUB and PDF, start with a semantically rich XML >> vocabulary, e.g. DocBook. In this case you can relatively easy transfrom >

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread honyk
On 2013-09-04 Thangalin wrote: > > What needs to happen to take a minimal ConTeXt file (such as the > attached) to produce a minimum viable EPUB that: > It is always difficult to parse and further process not well structured plain text without advanced semantics. Garbage in, garbage out. If you

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Hans Hagen
On 9/5/2013 7:22 PM, Aditya Mahajan wrote: On Thu, 5 Sep 2013, Hans Hagen wrote: On 9/4/2013 11:20 AM, Hans Hagen wrote: you get a representation in xml indeed, but not verbatim, but as close as possible to the genaric (parent) structure elements in context probably the most straightforward

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Aditya Mahajan
On Thu, 5 Sep 2013, honyk wrote: On 2013-09-04 Thangalin wrote: What needs to happen to take a minimal ConTeXt file (such as the attached) to produce a minimum viable EPUB that: It is always difficult to parse and further process not well structured plain text without advanced semantics. Gar

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Thangalin
Hi, > > > > > i.e. only divs and spans I think that would be a more robust output format, technically, easier to adapt, and more readily conform to the strict XHTML tag subset. The other issue I encountered was this: \startfrontmatter \startstandardmakeup Title page

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Hans Hagen
On 9/4/2013 11:20 AM, Hans Hagen wrote: you get a representation in xml indeed, but not verbatim, but as close as possible to the genaric (parent) structure elements in context probably the most straightforward xhtml export is file with only i.e. only divs and spans ---

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Michael Hallgren
Le 05/09/2013 20:24, Hans Hagen a écrit : > On 9/5/2013 8:20 PM, Aditya Mahajan wrote: > >> The typical ConTeXt document has a lot of structure, and the XML export >> generates a well structured XML output. That can be directly used in >> most modern browsers that handle XML+CSS well. However, most

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Khaled Hosny
On Thu, Sep 05, 2013 at 09:57:59AM -0700, Thangalin wrote: > Hi, > > > > > > > > > > > > i.e. only divs and spans > > > I think that would be a more robust output format, technically, easier to > adapt, and more readily conform to the strict XHTML tag subset. What about acce

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Hans Hagen
On 9/5/2013 8:20 PM, Aditya Mahajan wrote: The typical ConTeXt document has a lot of structure, and the XML export generates a well structured XML output. That can be directly used in most modern browsers that handle XML+CSS well. However, most (all?) EPUB readers don't. So, the question is aski

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Hans Hagen
On 9/5/2013 7:57 PM, Khaled Hosny wrote: On Thu, Sep 05, 2013 at 09:57:59AM -0700, Thangalin wrote: Hi, i.e. only divs and spans I think that would be a more robust output format, technically, easier to adapt, and more readily conform to the strict XHTML tag subset.

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Aditya Mahajan
On Thu, 5 Sep 2013, Hans Hagen wrote: On 9/4/2013 11:20 AM, Hans Hagen wrote: you get a representation in xml indeed, but not verbatim, but as close as possible to the genaric (parent) structure elements in context probably the most straightforward xhtml export is file with only

Re: [NTG-context] EPUB XHTML Format

2013-09-05 Thread Hans Hagen
On 9/4/2013 7:55 PM, Thangalin wrote: Hi. of course we could alternatively export all as but i don't like that too much; html itself is not rich enough for our purpose What about giving developers the ability to change the destination element? For example: \setuplist[chapter][

Re: [NTG-context] EPUB XHTML Format

2013-09-04 Thread Thangalin
Hi. of course we could alternatively export all as > but i don't like that too much; html itself is not rich enough for our > purpose > What about giving developers the ability to change the destination element? For example: \setuplist[chapter][ xml={\starttag[h1]#1\stoptag} ] Would produce

Re: [NTG-context] EPUB XHTML Format

2013-09-04 Thread Hans Hagen
On 9/4/2013 3:19 AM, Thangalin wrote: Hi, The attached t.tex file produces the attached t.xhtml file. I have looked at the following documents: * http://en.wikipedia.org/wiki/EPUB#Open_Publication_Structure_2.0..1 * ht

[NTG-context] EPUB XHTML Format

2013-09-03 Thread Thangalin
Hi, The attached t.tex file produces the attached t.xhtml file. I have looked at the following documents: - http://en.wikipedia.org/wiki/EPUB#Open_Publication_Structure_2.0.1 - http://en.wikipedia.org/wiki/DTBook - http://www.idpf.org/epub/20/spec/OPS_2.0.1_draft.htm - http://www.w3.o

Re: [NTG-context] Epub woes

2012-11-17 Thread luigi scarso
On Sat, Nov 17, 2012 at 5:48 PM, Bill Meahan wrote: > On 11/17/2012 02:08 AM, luigi scarso wrote: > >> IDPF'reference >> ( IPDF is the output of the new iTEX from Knuth, see >> http://tug.org/TUGboat/tb31-2/**tb98knut.pdf >> ) >> >> >> >> > > TYPO ALERT!

Re: [NTG-context] Epub woes

2012-11-17 Thread Bill Meahan
On 11/17/2012 02:08 AM, luigi scarso wrote: IDPF'reference ( IPDF is the output of the new iTEX from Knuth, see http://tug.org/TUGboat/tb31-2/tb98knut.pdf) TYPO ALERT! TYPO ALERT! TYPO ALERT! That should have been *IDPF* (International Digital Publishing Forum) which is the group tha

Re: [NTG-context] Epub woes

2012-11-17 Thread Alan BRASLAU
On Sat, 17 Nov 2012 08:08:56 +0100 luigi scarso wrote: > ( IPDF is the output of the new iTEX from Knuth, see > http://tug.org/TUGboat/tb31-2/tb98knut.pdf) (The beginning sounds a bit like a description of ConTeXt!) Earlier, I believe you shared the video with us! Alan

Re: [NTG-context] Epub woes

2012-11-16 Thread luigi scarso
On Sat, Nov 17, 2012 at 12:41 AM, Bill Meahan wrote: > On 11/16/2012 02:13 AM, luigi scarso wrote: > >> >> I just started working on the epub output of my lecture notes >> again, since there were no readers able to output math until 2 >> weeks ago. >> >> Is there any reader able to rea

Re: [NTG-context] Epub woes

2012-11-16 Thread Bill Meahan
On 11/16/2012 02:13 AM, luigi scarso wrote: I just started working on the epub output of my lecture notes again, since there were no readers able to output math until 2 weeks ago. Is there any reader able to read mathml ? -- luigi If you use Google Chrome (Chromium), you can ge

Re: [NTG-context] Epub woes

2012-11-16 Thread Zenlima
> Try lucifox (is a part of lucifox addon for firefox) arg.. to late.. try lucidor as a part of lucifox... :-D ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-co

Re: [NTG-context] Epub woes

2012-11-16 Thread Zenlima
> Is there any reader able to read mathml ? Try lucifox (is a part of lucifox addon for firefox) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] Epub woes

2012-11-16 Thread Aditya Mahajan
On Fri, 16 Nov 2012, Bill Meahan wrote: On 11/15/2012 11:17 PM, Aditya Mahajan wrote: Pandoc does generate ConTeXt output as well, which you can then process the usual way to generate pdf. The advantage of pandoc is that **in addition** to latex/context output, you can generate docbook/epu

Re: [NTG-context] Epub woes

2012-11-16 Thread Bill Meahan
On 11/15/2012 11:17 PM, Aditya Mahajan wrote: Pandoc does generate ConTeXt output as well, which you can then process the usual way to generate pdf. The advantage of pandoc is that **in addition** to latex/context output, you can generate docbook/epub/html/doc/troff/ and other output format

Re: [NTG-context] Epub woes

2012-11-16 Thread Keith J. Schultz
Hi All, First off, I do not work with ConTexT, but with Lu(La)TeX. I follow this list looking for pointers. The way I understand how ConTexT produces output for epubs is that it just creates HTML. If ConTexT (or LuaTex) is to produce output for use in epubs it should map the ConTexT structures t

Re: [NTG-context] Epub woes

2012-11-15 Thread Andy Thomas
Supposedly. I did not try it yet. http://support.apple.com/kb/HT5321 Andy On Nov 16, 2012, at 8:13 AM, luigi scarso wrote: > > > > On Fri, Nov 16, 2012 at 7:49 AM, Andy Thomas wrote: > > > > I just started working on the epub output of my lecture notes again, since > there were no reade

Re: [NTG-context] Epub woes

2012-11-15 Thread luigi scarso
On Fri, Nov 16, 2012 at 7:49 AM, Andy Thomas wrote: > > > > I just started working on the epub output of my lecture notes again, since > there were no readers able to output math until 2 weeks ago. > Is there any reader able to read mathml ? -- luigi

Re: [NTG-context] Epub woes

2012-11-15 Thread Andy Thomas
Please try the following example: -- start code -- \setupbackend[export=yes,xhtml=test_00.xhtml] \mainlanguage[de] \language[de] \setupexport [title={A nice book}, author={Andy Tom}, firstpage={huhn.jpg}, ] \starttext Hello world! \stoptext -- end code -- The firstpage expor

Re: [NTG-context] Epub woes

2012-11-15 Thread Aditya Mahajan
On Thu, 15 Nov 2012, Bill Meahan wrote: On 11/15/2012 07:13 PM, Aditya Mahajan wrote: Have you considered using pandoc to generate epub? If your text is relatively simple (no multiline math, no fancy image scaling, no complicated tables, etc.), then Markdown is a reasonable input format. Yo

Re: [NTG-context] Epub woes

2012-11-15 Thread Bill Meahan
On 11/15/2012 07:13 PM, Aditya Mahajan wrote: Have you considered using pandoc to generate epub? If your text is relatively simple (no multiline math, no fancy image scaling, no complicated tables, etc.), then Markdown is a reasonable input format. You can use pandoc to translate the text to

Re: [NTG-context] Epub woes

2012-11-15 Thread Aditya Mahajan
On Thu, 15 Nov 2012, Bill Meahan wrote: I tried to generate an epub document using ConTeXt following the recipe on the wiki. Didn't work. So, I tried running the export-example.tex file that comes with the distribution, unmodified. Same bad results. Cover is not generated TOC is not gen

Re: [NTG-context] Epub woes

2012-11-15 Thread Marcin Borkowski
Dnia 2012-11-15, o godz. 13:58:29 Bill Meahan napisał(a): > I tried to generate an epub document using ConTeXt following the > recipe on the wiki. Didn't work. So, I tried running the > export-example.tex file that comes with the distribution, unmodified. > Same bad results. > > Cover is no

Re: [NTG-context] Epub woes

2012-11-15 Thread Bill Meahan
On 11/15/2012 02:24 PM, Wolfgang Schuster wrote: You have to tag paragraphs with \startparagraph … \stopparagraph which are converted to and otherwise you get between paragraphs. Wolfgang Oh, my! I'll have to go back and change hundreds of paragraphs! :( What about the chapter headings,

Re: [NTG-context] Epub woes

2012-11-15 Thread Wolfgang Schuster
Am 15.11.2012 um 19:58 schrieb Bill Meahan : > I tried to generate an epub document using ConTeXt following the recipe on > the wiki. Didn't work. So, I tried running the export-example.tex file that > comes with the distribution, unmodified. Same bad results. > >Cover is not generated >

[NTG-context] Epub woes

2012-11-15 Thread Bill Meahan
I tried to generate an epub document using ConTeXt following the recipe on the wiki. Didn't work. So, I tried running the export-example.tex file that comes with the distribution, unmodified. Same bad results. Cover is not generated TOC is not generated (though it is noted this might be

  1   2   >