Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    New FBReader build in Extras-Devel

    Reply
    Page 36 of 41 | Prev | 26   34     35   36   37     38   | Next | Last
    TinaHolmboe | # 351 | 2010-11-25, 22:52 | Report

    Having an odd problem here. As mentioned, FBreader has a problem with the CSS involved in epubs. I can't seem to get it to add a margin between paragraphs.

    However: I just tried adding the same in the PREFERENCES - and that didn't work either. Am I right in suspecting this to be a bug?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    paulkoan | # 352 | 2010-11-25, 23:13 | Report

    I had lots of trouble with paragraph spacing and epub. I fixed it in the end manually I recall with a search and replace, or one of the conversion tools had an option to add in a <br>.

    Even now, even though I have "always use my CSS" enabled, it still seems to use the epub font size rather than my specified base. This setting does have some effect though, as without it, it uses the epub font type as well as size.

    Weird that it isn't "all or nothing" when it comes to css.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 353 | 2010-11-26, 09:30 | Report

    The CSS handling (and particularly the user over-rides) is definitely broken, yes. There looks to have been some changes made to this in the current development version, so I'll see whether I can find what these are and get them backported.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 354 | 2010-11-26, 11:43 | Report

    Originally Posted by paulkoan View Post
    Even now, even though I have "always use my CSS" enabled, it still seems to use the epub font size rather than my specified base. This setting does have some effect though, as without it, it uses the epub font type as well as size.
    I'm not sure that's a bug - I think that's all it's intended to do.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 355 | 2010-11-26, 20:04 | Report

    I've looked through the current development source code for FBReader and have backported all the changes which are described as bug fixes. I've uploaded a new version incorporating these fixes as 0.12.10-23 (for Diablo and Fremantle).

    The descriptions given for the included changesets are:
    • #330 has been fixed
    • fixed ePub cover extracting
    • LitResDataParser code fix
    • Mobipocket image processing has been fixed
    • text drawing optimization (actual for Chinese texts)
    • ZLCharSequence bug has been fixed
    • LZXDecompressor fix
    • RtfReaderStream fixes

    The first one is the one that seems to fix CSS handling - this looks to fix all the issues I've seen with CSS and user-overrides anyway.

    The source code changes can be downloaded from here.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 7 Users Say Thank You to Rob1n For This Useful Post:
    009N, akorvemaker, jcharpak, mmlado, moepda, mscion, Nikem

     
    TinaHolmboe | # 356 | 2010-11-27, 10:18 | Report

    Originally Posted by Rob1n View Post
    The first one is the one that seems to fix CSS handling - this looks to fix all the issues I've seen with CSS and user-overrides anyway.
    I've just tested this with a Calibre-produced ePub, which sports a CSS with text-indent and margin-top on paragraphs. The text-indent still works; the margin top ... not so much. Alas

    Can't say preferences work either, to be honest. Will fiddle a little more to see if its something I've done wrong, but the book looks fine in other epub readers.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    TinaHolmboe | # 357 | 2010-11-27, 13:53 | Report

    Originally Posted by Rob1n View Post
    The first one is the one that seems to fix CSS handling - this looks to fix all the issues I've seen with CSS and user-overrides anyway.
    Thought. Rob1n, can you tell me - I can read source, but you know it better - what level of support FBReader have for CSS in terms of its inclusion?

    i.e. does it support STYLE elements? Or just LINK elements with external CSS?

    It ought not be THAT simple, but right now the Calibre-produced e-books I've tested use embedded (ie. the STYLE element) CSS, while the Black Library (free) books that works as expected use linked (LINK element) CSS ...

    I'll re-write my convert pipeline and test with external CSS later.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 358 | 2010-11-27, 19:23 | Report

    From a quick look at the source, it should support CSS via LINK or STYLE elements, or via STYLE attributes.

    Can you provide an example of a book, and I'll try to trace what it's doing while parsing? You can email it to me (maemo at robinhill.me.uk).

    Edit | Forward | Quote | Quick Reply | Thanks

     
    TinaHolmboe | # 359 | 2010-11-27, 23:16 | Report

    Originally Posted by Rob1n View Post
    Can you provide an example of a book, and I'll try to trace what it's doing while parsing? You can email it to me (maemo at robinhill.me.uk).
    Done. Verified rendering in Calibre's ebook-viewer and the Mozilla 'epubreader' extension'.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to TinaHolmboe For This Useful Post:
    Rob1n

     
    Rob1n | # 360 | 2010-11-29, 13:53 | Report

    Originally Posted by TinaHolmboe View Post
    Done. Verified rendering in Calibre's ebook-viewer and the Mozilla 'epubreader' extension'.
    I've tracked down the issue. FBReader uses the margin & padding settings for the same variable, so your zero padding values are overriding the margin values. Removing the padding values from the CSS fixes this issue. I'll have a dig into this further - adding the values would probably be a better solution, but means dealing with unit conversion.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Rob1n For This Useful Post:
    akorvemaker

     
    Page 36 of 41 | Prev | 26   34     35   36   37     38   | Next | Last
vBulletin® Version 3.8.8
Normal Logout