06-13-2021, 11:52 AM | #61 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Good catch!
I will create a new release tomorrow with those changes. Please report this bug at Bibi's github site along with your test case and fix so that the main developer is alerted and so that others can find the bug and add your fix. The link to the Bibi site is: https://github.com/satorumurmur/bibi |
06-13-2021, 01:15 PM | #62 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
Advert | |
|
06-14-2021, 11:19 AM | #63 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
I included your fix in a new release BibiReader_v0.3.0.zip
You can grab it from the releases link in the first post of this thread. |
05-31-2022, 02:42 PM | #64 |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Something curious is happening to me. When I open the following epub (is in public domain):
The Clue of the Twisted Candle.epub in Bibi Reader under Windows all works fine, but when I open the same epub under Linux (Arch Linux) Bibi Reader (*not* with full window) generates a blank page at the end of each chapter. And I can't see what is producing such behavior. Can the plugin work in different manner in Linux? Because I repeat, under Windows the plugin works as is expected, no blank page is generated. |
05-31-2022, 03:31 PM | #65 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Probably not platform related but instead graphics driver, monitor dpi, monitor scaling, or window size related. First try growing the width of the window slightly to see how it changes page layout. Perhaps playing with window height as well. Extra whitespace at the end could be an issue. Perhaps that epub's xhtml uses windows style carriage return/line feeds and that is generating an extra whitespace whose layout just happens to occur on a page boundary.
I will also give this epub a test on my macOS box, tonight to see how it responds. Quote:
|
|
Advert | |
|
05-31-2022, 04:14 PM | #66 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Okay, just tried this with two builds of Sigil for macOS, one with Qt5, and one with Qt6.
Both worked properly. No added blank page after any chapter. I tested this in two page spreads and single pages. I looked at the code in the epub, and there is nothing there that will generate an extra blank page in the xhtml nor in the css. Have you tried looking at the Bibi Settings menu. Do you have the View Mode set to Spread/Page or are you using horizontal or vertical scrolling? With Bibi in Spread/Page mode, I have no problems at all. Another thing to check is if the font you are using under Linux has the proper font metrics data. Without knowing the font metrics, page layout can get a bit flakey. Sorry but with macOS, I can not recreate what you are seeing under Linux at all. |
05-31-2022, 05:25 PM | #67 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Kevin;
In single pages spreads, with Spread/Page or Horizontal Scroll, no matter the size of the windows, it generates a blank page at the end of the chapter. I did the try with the same size (430 x 600) for both, Windows and Linux, and in Windows is ok (like the results on your macOS) but in Linux isn't. The font that Bibi is using is Times New Roman in both, Linux and Windows. Quote:
|
|
05-31-2022, 07:21 PM | #68 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Please try changing window size both up and down. Also please try a different font.
Unless DiapDealer or Doitsu beats me to it, I will try updating my Manjero box and build Sigil and test. |
05-31-2022, 07:41 PM | #69 |
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Just remember that Times New Roman (and others) is typically an alias to something else on Linux. If you want to see what your aliases are pointing to, something like the following should do the trick:
Code:
for family in serif sans-serif monospace Arial Helvetica Verdana "Times New Roman" "Courier New"; do echo -n "$family: " fc-match "$family" done Last edited by DiapDealer; 05-31-2022 at 07:44 PM. |
06-01-2022, 10:10 AM | #70 |
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can't reproduce it on my Arch machine (Qt5 or Qt6). No extra blank pages at the ends of chapters. I've tried changing font-sizes and resizing the BibiReader window in order to force a blank page to happen, but have been unsuccesful in doing so.
But I'm not seeing a way to change the font in BibiReader. How is it that Times New Roman was determined to be what BibiReader was using on both Windows and Linux? Perhaps I'm missing it but I've looked all over. There's just not that many BibiReader settings. This is the output of my above bash script, by the way. On my machine, Times New Roman points to the Liberation Serif font. Code:
serif: NotoSerif-Regular.ttf: "Noto Serif" "Regular" sans-serif: NotoSans-Regular.ttf: "Noto Sans" "Regular" monospace: NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular" Arial: LiberationSans-Regular.ttf: "Liberation Sans" "Regular" Helvetica: NimbusSans-Regular.otf: "Nimbus Sans" "Regular" Verdana: NotoSans-Regular.ttf: "Noto Sans" "Regular" Times New Roman: LiberationSerif-Regular.ttf: "Liberation Serif" "Regular" Courier New: LiberationMono-Regular.ttf: "Liberation Mono" "Regular" Last edited by DiapDealer; 06-01-2022 at 10:20 AM. |
06-01-2022, 11:15 AM | #71 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Many thanks for your tests. It seems that only in my machine the issue is present since nor you nor Kevin was able to reproduce it. The output in my system with your bash script is the following:
Code:
serif: NotoSerif-Regular.ttf: "Noto Serif" "Regular" sans-serif: NotoSans-Regular.ttf: "Noto Sans" "Regular" monospace: NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular" Arial: Arial.TTF: "Arial" "Regular" Helvetica: NimbusSans-Regular.otf: "Nimbus Sans" "Regular" Verdana: Verdana.TTF: "Verdana" "Regular" Times New Roman: Times.TTF: "Times New Roman" "Regular" Courier New: cour.ttf: "Courier New" "Regular" Quote:
|
|
06-01-2022, 11:25 AM | #72 |
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Seems you actually have the Times New Roman font file on your system. Did you install one of the AUR ttf-ms-fonts packages at some point? If so, the ttf-ms-fonts package is notorious for being incomplete and for missing modern hinting info. There are newer ttf-ms font packages in the AUR, but require access to Windows installation media to build. There are also a couple that will automatically retrieve the 90-day evaluation edition of Windows to extract the fonts from, but seems very out of the way to me. I've just learned to live without MS fonts on Linux, myself. But the ArchWiki has a useful page on them: https://wiki.archlinux.org/title/Microsoft_fonts
I'm still not certain how you've determined Bibi is using Times New Roman, though. Is that being forced in the EPUB itself somehow? Last edited by DiapDealer; 06-01-2022 at 11:37 AM. |
06-01-2022, 12:33 PM | #73 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Okay, I finally got my Manjaro Linux box updated and working again. Built Sigil and installed it. Then ran your test case and had no "extra" pages at the end of any chapter.
So whatever is happening is specific to your Linux setup as both Arch and Manjaro seem to handle it all properly with the latest Bibi plugin. I also tried various screen and font sizes using Bibi preferences and it all just worked. So perhaps the issue is missing or damaged fonts with bad font metrics. Not sure here. And for the record here is what DiapDealers bash script says about my fonts: serif: NotoSerif-Regular.ttf: "Noto Serif" "Regular" sans-serif: NotoSans-Regular.ttf: "Noto Sans" "Regular" monospace: NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular" Arial: LiberationSans-Regular.ttf: "Liberation Sans" "Regular" Helvetica: NimbusSans-Regular.otf: "Nimbus Sans" "Regular" Verdana: NotoSans-Regular.ttf: "Noto Sans" "Regular" Times New Roman: LiberationSerif-Regular.ttf: "Liberation Serif" "Regular" Courier New: LiberationMono-Regular.ttf: "Liberation Mono" "Regular" which matches his I think. Last edited by KevinH; 06-01-2022 at 12:37 PM. |
06-01-2022, 01:11 PM | #74 | ||
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Code:
font-family: "Times New Roman", serif; Code:
font-family: serif; As you can see, Bibi is not using Times New Roman but the blank page is there. And I'm using the same configuration for Bibi in Windows and Linux (in fact, I copied and pasted the Windows BibiReader folder in /home/ruben/.local/share/sigil-ebook/sigil/plugins/). Can be something in the Sigil configuration? |
||
06-01-2022, 01:13 PM | #75 | ||
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
I diddled with system fonts and font-aliases and font-caches on an Arch machine once in my life. Then I wiped it all out and stuck with the defaults. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 456 | 10-27-2024 07:00 AM |
Errors Using plugins with Sigil | increase | Plugins | 3 | 03-06-2020 06:08 AM |
Sigil Plugins! | DiapDealer | Sigil | 33 | 03-19-2016 09:18 PM |
Sigil Plugins (for Sigil 0.7xx Alpha) | DiapDealer | Sigil | 15 | 09-27-2014 06:21 PM |
An epub3 version of Sigil ? | apulia03 | Sigil | 9 | 11-28-2012 02:07 AM |