[scribus] Scribus sla to epub (export) q. (calibre does not work)

ale rimoldi ale.comp_06 at xox.ch
Thu Jun 5 14:58:53 UTC 2014


> It doesn't fix my problem, but it helps understand why it's
> sufficiently
> > complex that the tool is not there, yet. The original point still
> > stands though, and this makes it clearer, (at least to me), why
> > Scribus is the right
> > place to export the PDF, which Scribus knows how to write.
> > Therefore it would
> > also know how to export the epub correctly as well. I think.
> >
> >
> No, it's still not that easy. Seems I have to take an example.
> Imagine that you on each page have 3 pictures with a caption. The
> caption is next to the picture (not above or below). The picture and
> caption are separate frames.
> Now, the pictures alternates between being at the left side (with the
> caption to the right) and at the right side (with the caption to the
> right). When you export to epub you surely want all the captions to go
> either above or below each picture (same for all pictures). But could
> you describe the algorithm Scribus should use to decide in what order
> it shall export the pictures and the captions?
> Going from top left to bottom right will not work well. Note also that
> going from top left to bottom right can be done sideways first (most
> relevant for this case) or down first (more relevant for a regular 2
> column layout).

picture captions are still an unresolved issue...

if anybody proposes a simple way (both to implement and to use in
scribus) i will try to integrate it.
(i opened a ticket for it:
https://github.com/aoloe/scribus-plugin-export-epub/issues/1 )

concerning the way text and pictures are converted, currently, the idea
is to:

- add all the text in a sequential way, based on the page where the flow
- pictures are also inserted in a sequential way.
- if the text is "higher" than the pictures the plan is to place
  the ones in the first half of the page before the text and the
  others after the text.

once the basic functionalities are in place, i would love to get
sample .sla files, with suggestions on which rules to apply to solve
specific cases... with hints on general rules to apply :-)


p.s.: you can submit samples .sla by forking


and adding a directory in test/samples/ with each sample (collected for
output!). please don't forget to add a README.md file explaining your
sample is relevant and -- eventually -- an .epub file showing how the
result should be!

And, finally, just make a pull request to let me know
about it!

Your also free to open tickets...

More information about the scribus mailing list