09-12-2019, 10:39 PM | #136 | |
Grand Sorcerer
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
Worked in the current release, didn't work in the beta (inserted code for margins just vanished every time). |
|
09-12-2019, 11:34 PM | #137 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Works for me with:
Code:
<p style="margin: 0">xxx</p> <p style="margin: 0">yyy</p> |
Advert | |
|
09-12-2019, 11:35 PM | #138 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Note that the book details panel/comments editor has support for mch more limited set of html and css because it is no longer based ona ful browser. https://doc.qt.io/qt-5/richtext-html-subset.html
|
09-12-2019, 11:41 PM | #139 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Actually scratch that while setting the margin in the html view and switch back to normal view works it gets stripped during actual setting, I will look into it.
|
09-12-2019, 11:45 PM | #140 | |
Enthusiast
Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
Quote:
|
|
Advert | |
|
09-12-2019, 11:47 PM | #141 |
Grand Sorcerer
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
09-13-2019, 04:39 AM | #142 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@Sirtel: The margins are explicitly removed, because Qt tends to set margins on every paragraph automatically, leading to very messy markup. To address your use case, however, I have made it easy to configure the CSS used inthe book details panel via Preferences->Look & feel_>Book details just add the following rule there:
Code:
p { margin: 0} and you should be fine. |
09-13-2019, 11:52 AM | #143 | |
Grand Sorcerer
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
09-13-2019, 09:26 PM | #144 |
Grand Sorcerer
Posts: 10,129
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Works perfectly. Thank you, Kovid. Calibre rocks!
|
09-13-2019, 10:11 PM | #145 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2019
Device: Kindle, Apple ,MS Edge
|
Would you like to add support for a rtl page-progression-direction to the viewer? For japanese and traditional Chinese books.
|
09-13-2019, 10:27 PM | #146 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
09-13-2019, 11:26 PM | #147 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I looked at the scrolling issue with vertical text and basically I dont see a good way to implement it in a general fashion. One would need to detect that the file is using vertical text (I suppose one could use EPUB properties for that) and then implement specialised scrolling routines for it. Since I cant read the text and I dont have a good sense for how it should work, I am not the right person to do that. But as I said patches are welcome. The relevant code is in two places:
Initial preparation of the book happens in srv/render_book.py that would need to be changed to pass along the metadata about vertical text/page progression etc. Then in view.pyj look at show_spine_item_stage2() where data about the HTML file is sent to the iframe where it is rendered. Add the necessary metadata there about display properties. Then look in iframe.pyj where that data is actually used and finally look in flow_mode.pyj and paged_mode.pyj for actual scrolling implementations. Set up a calibre development environment following: https://manual.calibre-ebook.com/develop.html If you run the viewer as calibre-debug -w file.epub changes to the pyj files should be auto-compiled and any console.log() or print() calls in the pyj files shouldbe printed out to the terminal for debugging. |
09-14-2019, 08:27 AM | #148 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2019
Device: Kindle, Apple ,MS Edge
|
Quote:
I'll find out what can I do for it. |
|
09-14-2019, 01:21 PM | #149 |
Wizard
Posts: 1,142
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Comments on 3.99.4
I don't know if it can be fixed, but I observe that height in proportion to the screen no longer work, (ex: height: 100% or max-height: 100%) Also, the inspector in the Book viewer doesn't seem to work. Data doesn't populate into the bottom half of the inspector pane.. but it works perfectly in the Editor. |
09-14-2019, 02:30 PM | #150 | ||
Wizard
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
Quote:
bernie |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Android App] Calibre Companion 1.7 Beta testing | Adoby | Devices | 31 | 09-07-2012 10:13 PM |
Kobo Wifi beta testing | mdclements | Kobo Reader | 0 | 10-15-2011 03:49 PM |
Beta testing libprs500's new GUI | kovidgoyal | Calibre | 409 | 01-07-2009 12:33 PM |