<p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Hi Ely,</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">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</p>
<br></p>
<blockquote>
----Messaggio originale----<br>
Da: nakeee@gmail.com<br>
Data: 28-nov-2012 18.08<br>
A: "insight.am@libero.it"<insight.am@libero.it>, "Okular development"<okular-devel@kde.org><br>
Ogg: Re: [Okular-devel] suggestion to improve ePub generator<br>
<br>
<div dir="ltr">Hi<br>The css is part of the ePub standard. The way I see it there are two options:<br><br>- There is a bug in QTextDocument and then it should be fixed<br>- There is a bug in the css of the ePub and then it should be handled in the book.<br>
<br>Either way I don't think we should mess with the CSS.<br>But this is just my humble opinion...<br><br>Ely<br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 6:53 PM, <a href="mailto:insight.am@libero.it" mce_href="mailto:insight.am@libero.it">insight.am@libero.it</a> <span dir="ltr"><<a href="mailto:insight.am@libero.it" mce_href="mailto:insight.am@libero.it" target="_blank">insight.am@libero.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" mce_style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px" mce_style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
<span style="color:rgb(33,56,137);font-family:Arial,Helvetica;font-size:12px;background-color:rgb(239,246,252)" mce_style="color:#213889;font-family:Arial,Helvetica;font-size:12px;background-color:#eff6fc">Hello,</span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px" mce_style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
<span style="background-color:rgb(239,246,252);font-size:12px" mce_style="background-color:#eff6fc;font-size:12px"><font face="Arial, Helvetica" color="#213889"></font></span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px" mce_style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
<font face="Arial, Helvetica" color="#213889">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.</font></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px" mce_style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
<font face="Arial, Helvetica" color="#213889">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.</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px" mce_style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><font face="Arial, Helvetica" color="#213889">What do you think about it?</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px" mce_style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><font face="Arial, Helvetica" color="#213889">Thank you for any response.</font></p>
<p><br></p><div style="width:1px;min-height:1px;overflow-x:hidden;overflow-y:hidden"> </div><br>_______________________________________________<br>
Okular-devel mailing list<br>
<a href="mailto:Okular-devel@kde.org" mce_href="mailto:Okular-devel@kde.org">Okular-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/okular-devel" mce_href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
<br></blockquote></div><br></div>
<br>
</blockquote><p><br></p><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; "> </div>