|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#16 | ||
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,612
Karma: 7891011
Join Date: Sep 2020
Device: none
|
Quote:
Quote:
Yes-yes! WICKED cool indeed! ![]() This is what worked: PHP Code:
![]() |
||
![]() |
![]() |
![]() |
#17 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,373
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This should help as well:
https://github.com/kovidgoyal/calibr...db935e5bd53fe1 |
![]() |
![]() |
![]() |
#18 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,373
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
With that commit, the simplest I can make it is:
Code:
<header><canvas style="width: _WIDTH_PIXELS_px; height: _HEIGHT_PIXELS_px;" width="_WIDTH_PIXELS_" height="_HEIGHT_PIXELS_"><script> canvas = document.currentScript.parentNode s = window.getComputedStyle(canvas) ctx = canvas.getContext("2d"); ctx.font = s.font ctx.fillStyle = 'black'; ctx.fillText("section: _SECTION_", 5, 5 + canvas.height / 2); |
![]() |
![]() |
![]() |
#19 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,612
Karma: 7891011
Join Date: Sep 2020
Device: none
|
That makes it easier, for sure, thanks!
![]() I'm going to play more with it later. BTW I was curious about the new TTS developments and found that in the latest available preview there's something not working correctly when changing voices. Also, I was asked to restart the PC (Windows OS), but I'm pretty sure I had all Calibre stuff (editor, viewer) already closed before installing. But I may be wrong about this. The TTS issue is that I have to re-open the book to have the voice change to another one. Oh, and I forgot to thank you for the pause after sentence setting. It's a very interesting addition. |
![]() |
![]() |
![]() |
#20 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,612
Karma: 7891011
Join Date: Sep 2020
Device: none
|
Quote:
header after new commit - Nineteen eighty-four - George Orwell.pdf On current version I found these settings to look fine, with a white transparent background and grey text: PHP Code:
PHP Code:
header and footer white bg grey text - Nineteen eighty-four - George Orwell.pdf I've attached the trimmed EPUB I used if someone wants to do further testing Last edited by Comfy.n; 10-11-2024 at 06:38 AM. |
|
![]() |
![]() |
![]() |
#21 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,373
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#22 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,612
Karma: 7891011
Join Date: Sep 2020
Device: none
|
Also with legacy. I've tried a portable preview with a fresh profile and the issue didn't manifest at first, however it did after further tests as well either when trying to switch between piper voices or legacy ones.
|
![]() |
![]() |
![]() |
#23 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,373
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#24 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,612
Karma: 7891011
Join Date: Sep 2020
Device: none
|
Quote:
Code:
calibre, version 7.19.101 ERROR: Read aloud failed: piper process failed with exit code: -1073740791 and error messages: I'm using 7.19 stable version then running this bat script with latest source: Code:
Rem You can run the GUI as Echo "Minimise this window, Don't Close" set CALIBRE_DEVELOP_FROM=C:\users\user\calibre-master\src set dt="%date:~-4,4%-%date:~-7,2%-%date:~-10,2%,%time:~0,2%_%time:~3,2%_%time:~6,2%" calibre-debug -g 1>> log-dev-%dt%.txt 2>&1 Last edited by Comfy.n; 10-16-2024 at 02:13 PM. |
|
![]() |
![]() |
![]() |
#25 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,373
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's the piper binary crashing I doubt that has anything to do with calibre. It's a standalone executable. If you can find a way to reproduce I can try to debug but it doesnt crasha t all for me on my windows system.
|
![]() |
![]() |
![]() |
#26 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,612
Karma: 7891011
Join Date: Sep 2020
Device: none
|
I've restarted PC and still got the crash. I suspect it's related to the pt-pt voice named tugão, as it only happens if I have/had it selected.
|
![]() |
![]() |
![]() |
#27 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,373
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That should be reported to the piper project in that case: https://github.com/rhasspy/piper
|
![]() |
![]() |
![]() |
#28 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,612
Karma: 7891011
Join Date: Sep 2020
Device: none
|
I've edited piper-voices.json to read tugao instead of tugão, as well as the filenames in calibre-cache and got it to work!
So perhaps piper doesn't like the tilde, or the tug\u00e3o representation. ![]() |
![]() |
![]() |
![]() |
#29 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,373
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
See if this fixes it. The voice will be re-downloaded using a pure ascii filename.
|
![]() |
![]() |
![]() |
#30 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,612
Karma: 7891011
Join Date: Sep 2020
Device: none
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Books with headers and footers? | gracie | ePub | 3 | 08-10-2012 08:04 AM |
Where is remove Headers/Footers? | Anarel | Calibre | 4 | 05-25-2011 04:36 PM |
Removing Headers and Footers Here's What I Did | allowingtoo | Workshop | 0 | 02-16-2011 08:46 PM |
Removing Headers/Footers Help? | Anarel | Workshop | 10 | 11-09-2010 12:53 PM |
page headers/footers | daesdaemar | Workshop | 20 | 12-12-2008 09:22 PM |