ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andy Thomas <andythomas@web.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: back-up.lua; mtx-epub.lua
Date: Sat, 9 Jun 2012 14:58:13 +0200	[thread overview]
Message-ID: <011C0647-9AC3-482C-92A5-8B692346FF8E@web.de> (raw)
In-Reply-To: <4FD28B39.9030401@wxs.nl>


On Jun 9, 2012, at 1:31 AM, Hans Hagen wrote:

> On 8-6-2012 23:28, Andy Thomas wrote:
>> Thank you for the suggestions. I will try to implement it, but might need until Sunday.
> 
> - I've added some keys to \setupexport:
> 
>  author
>  title
>  subtitle
>  firstpage (also new key in mult)
>  lastpage  (aso new key in mult)
> 
> - The title, subtitle and author inherit from \setupinteraction which already inherits from \setupdocument (metadata namespace).
> 
> - In mtx-epub these variables are picked up (from the epub job specification) and firstpage / lastpage are added to the images list.
> 
> Nothing has been checked and the firstpage/lastpage image names have to be pushed into some epub metadata blob I guess but that's for you to figure out in mtx-epub. It's probably best to assume that the images are present and suitable for epub.
> 

I took the new keys and added the cover (page) generator to mtx-epub.lua. The name is hard coded (cover.xhtml), so if a user decides on naming the original file cover.tex... 

The validator likes it, next is the hard part: generating a valid xhtml. Is the xhtml generator only for the epub, i.e. can it be changed or is another output file just for the epub appropriate?

Calibre is already happy with it and shows it just fine. Please note that some ebook readers (e.g. apple devices, calibre) have a nasty caching mechanism. If you want to see the new changes, I found that it is best to delete the old book before replacing it. 

Andy

https://dl.dropbox.com/u/9089117/mtx-epub_4.lua

P.S. I have no clue, why 'images[firstpage] = firstpage' works. I would expect 'images[#images+1] = firstpage'

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


  parent reply	other threads:[~2012-06-09 12:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-05 19:09 Andy Thomas
2012-06-06 22:00 ` Andy Thomas
2012-06-07 12:48   ` Henning Hraban Ramm
2012-06-07 13:53     ` Hans Hagen
2012-06-07 14:51       ` luigi scarso
2012-06-08 18:08     ` Andy Thomas
2012-06-08 18:25       ` Aditya Mahajan
2012-06-08 21:02         ` Hans Hagen
2012-06-08 21:03       ` Hans Hagen
     [not found]         ` <8EC49686-C7B3-47A1-A646-17AEC310836C@web.de>
2012-06-08 23:31           ` Hans Hagen
2012-06-09  0:38             ` Aditya Mahajan
2012-06-09 10:44               ` Hans Hagen
2012-06-09 12:58             ` Andy Thomas [this message]
2012-06-10 22:21               ` Hans Hagen
2012-06-11  5:41                 ` Andy Thomas
2012-06-11  7:35                   ` Hans Hagen
2012-06-07 16:33   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=011C0647-9AC3-482C-92A5-8B692346FF8E@web.de \
    --to=andythomas@web.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).