On Fri, Aug 30, 2013 at 11:31 PM, Josh Hieronymus
<josh.p.hierony...@gmail.com> wrote:
> Hi everyone,
>
> I'm working on exporting LyX documents to EPUB as part of my Google Summer
> of Code project, and I'd like to invite you to try out my current
> implementation, which can be found in the "epub/master" branch of the gsoc
> repository (g...@git.lyx.org:gsoc.git). The export process begins by
> exporting the document to XHTML via LyXHTML, then converting the XHTML to
> EPUB with the scripts in lib/scripts/epub.

I'm not an EPUB user so I cannot test unfortunately.

> - Extracting other metadata fields from the document. The required fields
> are language, title, and identifier. The title field is taken from the
> document, but not  the language or the identifier. I'm taking the title from
> the first paragraph to use the "title" inset, but there aren't corresponding
> insets for the other elements, so I'm not sure of the best way or ways to
> get the rest of the info. (There's an inset for author, but the author name
> is needed in both reading order and "file-as" order, and there's only one
> author inset.) One thought is to create custom insets, and another is to ask
> for the information via the document settings.

In my opinion, language should be taken from the document settings
since it is already a setting. I think for other fields such as author
this should be taken from an inset defined by the module/layout. But
this might be because I don't know anything about EPUB. Can I export
any document in LyX to EPUB with your method? I would just export from
the file menu? Or do I have to first add a module? Perhaps an extra
"EPUB fields" module could be useful in which the necessary (author
name) and optional fields are implemented with custom insets.

> What I'd like to implement at some point:
> - optional conversion of images to SVG format
> Note: Vector-based graphics scale better than raster-based graphics, making
> them well-suited for electronic media.
> Note: EPUB specifications require compliant e-readers to support SVG.
> Note: Older versions of some browsers (primarily IE) don't support SVG.
> Note: Preliminary searches turn up a package named dvisvgm
> (http://www.ctan.org/pkg/dvisvgm) that converts DVI to SVG, and it's
> licensed under the GPL v3 or later.
> - ability to split large XHTML files into smaller ones
> Note: Splitting large XHTML files should boost the performance of the
> converted EPUB documents.
> - allow selection of an image for front cover artwork
> Note: Amazon requires JPEG or TIFF format for front cover artwork.

Thanks for this information. What about EPS/PDF? What are their
advantages/disadvantages versus SVG?

Scott

Reply via email to