![]() |
#31 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
From the latest Qt docs:
Quote:
|
|
![]() |
![]() |
![]() |
#32 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
@RbnJrg,
Have you tried compressing the printed pdfs using qhostscript (gs). It seems to work really well. See https://www.digitalocean.com/communi...-size-in-linux I used /ebook settings and could see a very nice quality reducing the file size by a factor of 5 for 4 pages with a large image from 5 meg to just under 1 meg. Last edited by KevinH; 03-18-2023 at 02:27 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
![]() |
![]() |
![]() |
#34 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
If all you are doing is proofing with the pdf, why not just use PageEdit as that is what it was designed for (to allow simple typo corrections to be easily made).
|
![]() |
![]() |
![]() |
#35 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Yes, that was what I was doing until now. But as Sigil added that PageEdit feature, I wanted to employ it but the results were what they were.
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Support for cover template files:
cover-template2.xhtml cover-template3.xhtml have now been pushed to Sigil master. It will appear in the next release. These template files use the same PLACEHOLDERS as previous versions: Code:
text.replace("SGC_IMAGE_FILENAME", image_relative_path); text.replace("SGC_IMAGE_WIDTH", width); text.replace("SGC_IMAGE_HEIGHT", height); Code:
const QString HTML5_COVER_SOURCE = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n" "<!DOCTYPE html>\n\n" "<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:epub=\"http://www.idpf.org/2007/ops\">\n" "<head>\n" " <title>Cover</title>\n" "</head>\n" "" "<body>\n" " <div style=\"text-align: center; padding: 0pt; margin: 0pt;\">\n" " <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"100%\" preserveAspectRatio=\"xMidYMid meet\" version=\"1.1\" viewBox=\"0 0 SGC_IMAGE_WIDTH SGC_IMAGE_HEIGHT\" width=\"100%\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n" " <image width=\"SGC_IMAGE_WIDTH\" height=\"SGC_IMAGE_HEIGHT\" xlink:href=\"SGC_IMAGE_FILENAME\"/>\n" " </svg>\n" " </div>\n" "</body>\n" "</html>\n"; And similar for epub2. Hope this helps, KevinH Quote:
|
|
![]() |
![]() |
![]() |
#37 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
![]() |
![]() |
![]() |
#38 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
|
Hello, one thing i've been doing with manually with renames but have not thought about asking, is changing the name suffix. Instead of -01, -02, etc., would it be possible someday to use a custom suffix such as lower- or upper-case letters, e.g. chapter01a, chapter01b, etc.? Such is for splitting longer files, as rendering performance may still matter somewhat on newer devices, particularly when potentially having hundreds of annotations.
Last edited by democrite; 04-02-2023 at 02:03 PM. |
![]() |
![]() |
![]() |
#39 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Not sure what you are asking for here.
You can use almost any pattern to rename files in Sigil using the RERenamer (uses regular expressions). Quote:
|
|
![]() |
![]() |
![]() |
#40 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
I'm having an issue where the preview window not always update.
|
![]() |
![]() |
![]() |
#41 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
I am not seeing this on my system. And nothing has changed codewise in the last few releases in this area that should effect Preview updating.
Preview should aways show the last xhtml tab that was open. It keeps showing this during opening of image, audio, video, font, css tabs. What version of Sigil? What platform/OS are you using? What version of Qt are you using? Please provide a test epub and a detailed sequence of steps that will allow us to recreate this behaviour on our systems. Last edited by KevinH; 04-03-2023 at 08:14 AM. |
![]() |
![]() |
![]() |
#42 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
|
Sorry, should have included more info.
Sigil 1.9.30, Qt 5.12.9, win 10 (up-to-date). The times I have noticed it, is when I have been working with a book for quite a while (possible on and off for some days). Jumping around, editing, searching, fixing, etc. and suddenly when I go to another xhtml-file the old one is still showing in preview. If I move around and click in the editing-window it typically update. Or if I go to another xhtml-file and then back, it updates again. If I close Sigil, and reopen, it seems to work fine for a while again. |
![]() |
![]() |
![]() |
#43 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Does it matter if you are moving to a new tab (just created since it was never open before) or must it be an old tab (previously open but not the active tab)?
Given you said it takes days of active use to see this, my guess is a memory leak or broken event/signal delivery. I have tested for memory leaks in Sigil under macOS and Linux and did not find any. Google reported a bad Windows 10 memory leak for pages allocated for javascript/jit used in Chrome. Not ever sure if Windows ever fixed it. Google tried to work around it by caching and reusing pages but that version of chrome only made it into Qt 5.15 and later versions. The only other solution was to periodically shutdown chrome/Sigil and restart or even restart Windows 10. Again this takes days and days of active use without quitting Sigil to see at all. So very few people ever run into this problem and only if they have a work flow that never restarts Sigil over days and days. Last edited by KevinH; 04-03-2023 at 10:28 AM. |
![]() |
![]() |
![]() |
#44 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
|
I think the sequential numbering when not using regex is always -01, -02, etc.? When I want one split chapter to have the same prefix, e.g. chapter01, and then make the sequence chapter01a chapter01b etc. regex can't do that I believe. Such is for sequentially naming one split file and the splits, either with any entered suffix or if I want to rename them specifically as other splits made by the publisher. It's not for renaming multiple e.g. part01-ch01, -ch02, etc., but ch01a ch01b etc. with providing any possibly entered suffix.
|
![]() |
![]() |
![]() |
#45 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
That currently is not possible. Nor does this seem like a commonly requested feature since no one else has requested anything similar before.
So I am unsure if this would be a generally useful feature change. You can of course use the rerenamer to covert all "-01" to "a" , "-02" to "b", etc. Not sure if that would help. Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-0.9.12 Released | DiapDealer | Sigil | 194 | 03-15-2019 03:51 PM |
Sigil-0.9.8 Released | DiapDealer | Sigil | 58 | 05-07-2017 04:56 PM |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |
Sigil 0.8.1 Released | user_none | Sigil | 33 | 10-16-2014 05:04 PM |
Sigil 0.7.4 Released | user_none | Sigil | 47 | 01-05-2014 02:31 PM |