[Okular-devel] R: Re: suggestion to improve ePub generator

Albert Astals Cid aacid at kde.org
Thu Nov 29 23:34:38 UTC 2012


El Dimecres, 28 de novembre de 2012, a les 18:25:50, insight.am at libero.it va 
escriure:
> Hi Ely,Css is part of the ePub standard, right, but there are no exact rules
> for images, that is, they are not necessarily forced into a certain layout.
> So in ePub readers they are usually shrinked and become so little. The
> Okular rendering is good and similar to a "real book" layout (like pdf) but
> the images are overflowed, but it can be fixed according to me, as I
> proposed. I think it's not bad to add some css rule, because the
> QTextDocument will process them too. I know you are in charge of the ePub
> generator so you can perform some experiments. I studied the ePub format so
> what I know is at your disposal. Regards

Well, if you know how to code you can send your patch and then we'll have a 
look at it and see if it makes sense (i.e. it's a big hack) or not (i.e. looks 
nice code :-)).

Cheers,
  Albert

> 
> 
> 
> ----Messaggio originale----
> 
> Da: nakeee at gmail.com
> 
> Data: 28-nov-2012 18.08
> 
> A: "insight.am at libero.it"<insight.am at libero.it>, "Okular
> development"<okular-devel at kde.org>
> 
> Ogg: Re: [Okular-devel] suggestion to improve ePub generator
> 
> 
> 
> Hi
> The css is part of the ePub standard. The way I see it there are two
> options:
> 
> - There is a bug in QTextDocument and then it should be fixed
> - There is a bug in the css of the ePub and then it should be handled in the
> book.
> 
> 
> Either way I don't think we should mess with the CSS.
> But this is just my humble opinion...
> 
> Ely
> 
> On Wed, Nov 28, 2012 at 6:53 PM, insight.am at libero.it <insight.am at libero.it>
> wrote:
> 
> 
> Hello,
> 
> I would like to suggest a possible improvement of ePub generator. Whether
> this idea is right or wrong I await your response, so please do not ignore
> it. I see that when an ePub file is opened in Okular the images are
> horizontally overflowed and sometimes vertically overflowed. If the HTML
> text of the ePub is passed to QTextDocument then some css rules can be
> easily added for images so they are not cropped when displayed on page. It
> could be fulfilled by adding some strings in the right place. What do you
> think about it?
> Thank you for any response.
> 
> 
> 
> _______________________________________________
> 
> Okular-devel mailing list
> 
> Okular-devel at kde.org
> 
> https://mail.kde.org/mailman/listinfo/okular-devel


More information about the Okular-devel mailing list