Re: [NTG-context] EPUB workflow from ConTeXt source?
On 17-2-2011 8:14, Gerben Wierda wrote: On 16 Feb 2011, at 17:47, Wolfgang Schuster wrote: Am 16.02.2011 um 17:42 schrieb gerben.wie...@rna.nl: I'd like to keep working in one format so I was wondering if there is a ConTeXt based workflow/setup that can produce EPUB (next to normal PDF)? With MkIV you can get a xml version of document with \setupbackend[export=yes]. But that XML is not ePUB's XML, I assume. no, but one can of course convert one kind of xml into another for epub one has to provice css etc anyway (and epub is not much more than packaged html + css) going the other way around, processing an epub file also demands some handywork as the source code is not by definition well structured Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parsing HTML entities
On 17-2-2011 1:06, Khaled Hosny wrote: Is there built-in support to parse HTML entities, I've some vague memory about it but I don't seem to find much useful results. you mean that whatever; in the tex input gets translated automatically? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] EPUB workflow from ConTeXt source?
On Feb 17, 2011, at 12:59 AM, Hans Hagen wrote: On 17-2-2011 8:14, Gerben Wierda wrote: On 16 Feb 2011, at 17:47, Wolfgang Schuster wrote: Am 16.02.2011 um 17:42 schrieb gerben.wie...@rna.nl: I'd like to keep working in one format so I was wondering if there is a ConTeXt based workflow/setup that can produce EPUB (next to normal PDF)? With MkIV you can get a xml version of document with \setupbackend[export=yes]. But that XML is not ePUB's XML, I assume. no, but one can of course convert one kind of xml into another for epub one has to provice css etc anyway (and epub is not much more than packaged html + css) This would also be useful to me. In my experience, the unpleasant part of generating ePub is making correctly formatted manifests and putting them in the right places inside the right kinds of zip files. If ConTeXt could do this for me, it would certainly make life easier. On the other hand, it may not be appropriate to bother because there are other tools that will convert HTML to ePub for you and make the manifests (Calibre, for example). I consider CSS intractable so that's not something I would worry about ConTeXt generating for me, if it were on the table. going the other way around, processing an epub file also demands some handywork as the source code is not by definition well structured ePub is definitely structured. I would say too structured, since it makes you provide both a ToC manifest and a navigation manifest that necessarily must include almost identical information ;) Of course, depending on a simplified browser for your document viewing and having lots of secret failover modes to handle poorly formatted documents makes the structure less meaningful than it ought to be. You are free to break your document into as many HTML chunks as you wish, but you are limited to fairly prosaic HTML and CSS. I'm of the impression the HTML documents generally map onto chapters so as not to distress the hardware's memory constraints too much. Overall, ePub and Kindle's format strike me as too much and too little respectively. I should be able to change the font and the formatting, but I definitely consider HTML + CSS is too much complexity. — Daniel Lyons ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] drop-cap quote character
Ideally, \DropCap would notice a piece of leading punctuation and drop it as well. Instead, it seems to look at the punctuation and give up. Example: \def\Drop {\DroppedCaps {} {Serif} {4\baselineskip} {2pt} {2\baselineskip} {3}} \starttext {\Drop A} \input knuth \page {\Drop “A} \input knuth \page \stoptext Advice? Thanks again, — Daniel Lyons ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] set-/finishregisterentry is killed
Am 14.02.2011 um 11:24 schrieb Steffen Wolfrum: Hi, in current beta (2011.02.11 18:18 MKIV) set-/finishregisterentry is killed: Empty pagenumbers only! Please run attached example. Steffen --- \placeindex[method=first,criterium=all,compress=yes] \starttext \switchtobodyfont[50pt] START\setregisterentry[index][label={Index_Label}]% Test\dorecurse{10}{This is one long, long paragraph. }% STOP\finishregisterentry[index][label={Index_Label},entries={Index entry}] Test \stoptext Does it work on your machines? Is the syntax changed, do I have to add a certain setup? How can I get the register's page numbers back? Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] EPUB workflow from ConTeXt source?
On 17-2-2011 9:10, Daniel Lyons wrote: ePub is definitely structured. I would say too structured, since it makes you provide both a ToC manifest and a navigation manifest that necessarily must include almost identical information ;) Of course, depending on a simplified browser for your document viewing and having lots of secret failover modes to handle poorly formatted documents makes the structure less meaningful than it ought to be. You are free to break your document into as many HTML chunks as you wish, but you are limited to fairly prosaic HTML and CSS. I'm of the impression the HTML documents generally map onto chapters so as not to distress the hardware's memory constraints too much. what mean with not being structured is that clever css trickery can hide weird structure i have a style somewhere that typesets an epub document (directly) but when testing an epub file from somehwere it found out that there were artifacts like H11/H1H3Chapter title/H3 so i decided not to spend too much time on it and only bother with epub if it comes to me as project Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] What is preloaded by “mtxrun --script”?
On 2011-02-16 23:59:15, Hans Hagen wrote: On 16-2-2011 11:44, Philipp Gesang wrote: Hi all, I noticed that although mtxrun preloads some of the context libs that doesn’t cover everything available during an ordinary mkiv run. What would be the canonical way to load additional libs like “luat-ini”c. on demand? “environment.loadluafile()”? Can this be configured globally? Is it wise to mess with “own.libs” in mtxrun? Example: This snippet checks the global env for some tables. “mtxrun --script” doesn’t find any while some of them are there when processed as cld. something dofile(resolvers.findfile(yourfile.lua)) but keep in mind that most of the mkiv code depends on other code and often they depend on functionality that is only available when we're in luatex mode and not in texlua mode In this case there were two deps. I extracted the order in which the libs are loaded by context and put it on the wiki. This isn’t a *real* dependency tree but still it can be of help when troubleshooting similar issues. http://wiki.contextgarden.net/Running_Lua_Code_Externally#Standard_library_loading_order Thanks for the pointer, Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpwsUeIgagqq.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parsing HTML entities
On Thu, Feb 17, 2011 at 09:00:45AM +0100, Hans Hagen wrote: On 17-2-2011 1:06, Khaled Hosny wrote: Is there built-in support to parse HTML entities, I've some vague memory about it but I don't seem to find much useful results. you mean that whatever; in the tex input gets translated automatically? More or less, e.g. \xmlentity{amp;} gets translated to (ascii one) and so. Regards, Khaled -- Khaled Hosny Egyptian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parsing HTML entities
On Thu, Feb 17, 2011 at 11:37 AM, Khaled Hosny khaledho...@eglug.org wrote: On Thu, Feb 17, 2011 at 09:00:45AM +0100, Hans Hagen wrote: On 17-2-2011 1:06, Khaled Hosny wrote: Is there built-in support to parse HTML entities, I've some vague memory about it but I don't seem to find much useful results. you mean that whatever; in the tex input gets translated automatically? More or less, e.g. \xmlentity{amp;} gets translated to (ascii one) and so. predefined entities in XML are trivial to (eventually) implement The list of HTML character entity references is longer http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parsing HTML entities
On 02/17/11 11:37, Khaled Hosny wrote: On Thu, Feb 17, 2011 at 09:00:45AM +0100, Hans Hagen wrote: On 17-2-2011 1:06, Khaled Hosny wrote: Is there built-in support to parse HTML entities, I've some vague memory about it but I don't seem to find much useful results. you mean that whatever; in the tex input gets translated automatically? More or less, e.g. \xmlentity{amp;} gets translated to (ascii one) and so. There is \xmlsetentity{tex}{\TEX{}}. Is that what you want? Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] EPUB workflow from ConTeXt source?
On 17 Feb 2011, at 10:49, Hans Hagen wrote: i have a style somewhere that typesets an epub document (directly) but when testing an epub file from somehwere it found out that there were artifacts like H11/H1H3Chapter title/H3 Ugh. Yes, that clearly shows that the seemingly conceptual items like H1, H3 are in fact used as graphical elements. Interesting to see how that then ends up in a table of contents for instance. G ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug in \definestructureconversionset[footnote] ?
Friends, todays current beta (20110211) writes number in front of the actual footnote number! Please run example below: \definestructureseparatorset [footnote][][] \definestructureconversionset[footnote][number,characters][numbers] \setupenumerations[footnote][numberconversionset=footnote,numberseparatorset=footnote] \setupfootnotes[way=bytext] \starttext test \footnote{} text test \startfootnote note \stopfootnote test \startsubfootnote subnote \stopsubfootnote test \startfootnote note \stopfootnote \stoptext How can this be fixed? Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] HTML-like title attribute
On Thu, Feb 17, 2011 at 05:33:09AM +0100, Wolfgang Schuster wrote: Am 17.02.2011 um 01:08 schrieb Khaled Hosny: The link https://github.com/jgm/lunamark :) How about making something like this: https://bitbucket.org/phg/context-rst I'm just playing, I actually have no need for it. I'm just experimenting with the idea of taking a markdown and directly processing it in context with no intermediate steps. But I'm sure I'll find some clever tricks and interesting ideas in your rST code :) Regards, Khaled -- Khaled Hosny Egyptian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] HTML-like title attribute
On Thu, Feb 17, 2011 at 01:22:28PM +0200, Khaled Hosny wrote: On Thu, Feb 17, 2011 at 05:33:09AM +0100, Wolfgang Schuster wrote: Am 17.02.2011 um 01:08 schrieb Khaled Hosny: The link https://github.com/jgm/lunamark :) How about making something like this: https://bitbucket.org/phg/context-rst I'm just playing, I actually have no need for it. I'm just experimenting with the idea of taking a markdown and directly processing it in context with no intermediate steps. But I'm sure I'll find some clever tricks and interesting ideas in your rST code :) Oops, I didn't look carefully, it is not yours, but still interesting though :) -- Khaled Hosny Egyptian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text
C:\ConTeXt\texcontext --version mtx-context | main context file: C:/ConTeXt/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2011.02.16 19:30 -Ursprüngliche Nachricht- Von: Hans Hagen [mailto:pra...@wxs.nl] Gesendet: Donnerstag, 17. Februar 2011 00:00 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text On 16-2-2011 9:11, C. wrote: I tried your code. Does not work. Again, when I comment the line with \setupalign it works. I was using Minion via simplefonts, but it seems modern fonts are also affected. I'working on Windows 7 32bit and updated Context Minimals before testing. @Wolfgang: I included the options because ConTeXt was using the condensed-italic font instead of the italic font. That occurs only if one has both variants installed. what version do you run - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] HTML-like title attribute
Am 17.02.2011 um 12:25 schrieb Khaled Hosny: On Thu, Feb 17, 2011 at 01:22:28PM +0200, Khaled Hosny wrote: On Thu, Feb 17, 2011 at 05:33:09AM +0100, Wolfgang Schuster wrote: Am 17.02.2011 um 01:08 schrieb Khaled Hosny: The link https://github.com/jgm/lunamark :) How about making something like this: https://bitbucket.org/phg/context-rst I'm just playing, I actually have no need for it. I'm just experimenting with the idea of taking a markdown and directly processing it in context with no intermediate steps. But I'm sure I'll find some clever tricks and interesting ideas in your rST code :) Oops, I didn't look carefully, it is not yours, but still interesting though :) You should also take a look at Adityas filter module. Using ConTeXt to convert markdown to PDF: http://randomdeterminism.wordpress.com/2011/01/09/markdowntopdf/ Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupalign[hz,hanging] breaks verbatim text
On 17-2-2011 2:16, C. wrote: C:\ConTeXt\texcontext --version mtx-context | main context file: C:/ConTeXt/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2011.02.16 19:30 that's new enough so you need to come up with an example that does fails at wolgangs end as well as mine Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Creating documentation from source-files
Hi, I do still struggle with the creation of documentation derived from a source file. I tis quite difficult to nail down the hicking point. When I run context --ctx=s-mod test.tex I get the following error: pagesflushing realpage 4, userpage 2 structuresectioning subject @ level 3 : 0.0.0 - Introduction .Error: PDF file is damaged - attempting to reconstruct xref table... Error: Couldn't find trailer dictionary Error: Couldn't read xref table !LuaTeX error: xpdf: reading PDF image failed I do not know where to look... The file test.run looks normal The file test.tex.prep looks normal Please refer to the test.tex file for testing. Willi test.tex Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Creating documentation from source-files
Am 17.02.2011 um 17:56 schrieb Willi Egger: Hi, I do still struggle with the creation of documentation derived from a source file. I tis quite difficult to nail down the hicking point. It’s very easy to produce a minimal example, this fails \starttext \externalfigure[Test] \stoptext while this works \starttext \externalfigure[test] \stoptext The name of my test document for both example is “test.tex” Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Buffers can’t be loaded as figure
Hi Hans, buffers in \externalfigure are broken. \startbuffer[foo] FOO \stopbuffer \starttext \externalfigure[foo][type=buffer] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] EPUB workflow from ConTeXt source?
On Feb 17, 2011, at 5:48 AM, Gerben Wierda wrote: Ugh. Yes, that clearly shows that the seemingly conceptual items like H1, H3 are in fact used as graphical elements. Interesting to see how that then ends up in a table of contents for instance. Say rather that what should be formal markup can instead be _misused_ for graphical formatting by those accustomed to WYSIWYG and who don't trouble to learn how to properly do CSS. William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Format of included PNG images
Hi, I read that most programs convert PNG images to JPEG images while creating PDF files. Is this also true for ConTeXt/LuaTeX? What happens when PNG images are included? Regards Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Format of included PNG images
On Thu, Feb 17, 2011 at 8:39 PM, Marco net...@lavabit.com wrote: Hi, I read that most programs convert PNG images to JPEG images while creating PDF files. hm, are you sure ? Is this also true for ConTeXt/LuaTeX? no What happens when PNG images are included? they are included and stop. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Format of included PNG images
On Feb 17, 2011, at 2:39 PM, Marco wrote: I read that most programs convert PNG images to JPEG images while creating PDF files. The only time this will (or should) happen w/ any program is when creating a .pdf w/ a specification which sets pixel images to use compression JPEG compression. I don't believe there are any pdf-creating tex implementations which will reprocess images in this fashion (normally they're simply encapsulated in the file as is). William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Format of included PNG images
I read that most programs convert PNG images to JPEG images while creating PDF files. hm, are you sure ? Is this also true for ConTeXt/LuaTeX? no What happens when PNG images are included? they are included and stop. Thanks. Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] EPUB workflow from ConTeXt source?
Have you considered authoring in something besides context? Say TEI XML or Docbook, or even markdown (if possible)? If markdown is suitable, then you can end up with both epub and context at the end. Or if using TEI or docbook, you can write a map file (something I have been trying to do) and typeset the xml file directly with context. I'm always happier knowing that I can get as many different output types from a single source as possible. BR, Mica Message: 8 Date: Thu, 17 Feb 2011 01:10:42 -0700 From: Daniel Lyons fus...@storytotell.org To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: Re: [NTG-context] EPUB workflow from ConTeXt source? Message-ID: d7225cf0-f6cf-485f-be01-c8a254efc...@storytotell.org Content-Type: text/plain; charset=windows-1252 On Feb 17, 2011, at 12:59 AM, Hans Hagen wrote: On 17-2-2011 8:14, Gerben Wierda wrote: On 16 Feb 2011, at 17:47, Wolfgang Schuster wrote: Am 16.02.2011 um 17:42 schrieb gerben.wie...@rna.nl: I'd like to keep working in one format so I was wondering if there is a ConTeXt based workflow/setup that can produce EPUB (next to normal PDF)? With MkIV you can get a xml version of document with \setupbackend[export=yes]. But that XML is not ePUB's XML, I assume. no, but one can of course convert one kind of xml into another for epub one has to provice css etc anyway (and epub is not much more than packaged html + css) This would also be useful to me. In my experience, the unpleasant part of generating ePub is making correctly formatted manifests and putting them in the right places inside the right kinds of zip files. If ConTeXt could do this for me, it would certainly make life easier. On the other hand, it may not be appropriate to bother because there are other tools that will convert HTML to ePub for you and make the manifests (Calibre, for example). I consider CSS intractable so that's not something I would worry about ConTeXt generating for me, if it were on the table. going the other way around, processing an epub file also demands some handywork as the source code is not by definition well structured ePub is definitely structured. I would say too structured, since it makes you provide both a ToC manifest and a navigation manifest that necessarily must include almost identical information ;) Of course, depending on a simplified browser for your document viewing and having lots of secret failover modes to handle poorly formatted documents makes the structure less meaningful than it ought to be. You are free to break your document into as many HTML chunks as you wish, but you are limited to fairly prosaic HTML and CSS. I'm of the impression the HTML documents generally map onto chapters so as not to distress the hardware's memory constraints too much. Overall, ePub and Kindle's format strike me as too much and too little respectively. I should be able to change the font and the formatting, but I definitely consider HTML + CSS is too much complexity. ? Daniel Lyons -- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___