Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2023, 12:48 PM   #31
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
From the latest Qt docs:

Quote:
QPrinter::ScreenResolution 0 Sets the resolution of the print device to the screen resolution. This has the big advantage that the results obtained when painting on the printer will match more or less exactly the visible output on the screen. It is the easiest to use, as font metrics on the screen and on the printer are the same. This is the default value.

ScreenResolution will produce a lower quality output than HighResolution and should only be used for drafts.

QPrinter::PrinterResolution 1 This value is deprecated. It is equivalent to ScreenResolution on Unix and HighResolution on Windows and Mac. Due to the difference between ScreenResolution and HighResolution, use of this value may lead to non-portable printer code.

QPrinter::HighResolution 2 On Windows, sets the printer resolution to that defined for the printer in use. For PDF printing, sets the resolution of the PDF driver to 1200 dpi.
Based on this line in the above "ScreenResolution will produce a lower quality output than HighResolution and should only be used for drafts.", at least on macOS and Windows we should probably always be using QPrinter::HighResolution.
KevinH is online now   Reply With Quote
Old 03-18-2023, 01:49 PM   #32
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is online now   Reply With Quote
Advert
Old 03-19-2023, 04:35 AM   #33
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
@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.
Yes Kevin, I use Densify to reduce the pdf file size. Results are goods but when I print something from Sigil (in CodeView or now I would be able to do it also in PP), is only for proofreading, so I don't need 1200dpi. If I want to print all the epub as .pdf, I use the Prince plugin.
RbnJrg is offline   Reply With Quote
Old 03-19-2023, 09:27 AM   #34
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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).
KevinH is online now   Reply With Quote
Old 03-19-2023, 12:35 PM   #35
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
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).
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.
RbnJrg is offline   Reply With Quote
Advert
Old 03-19-2023, 02:23 PM   #36
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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);
and empty covers (no template found) default under epub3 to:

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:
Originally Posted by RbnJrg View Post
Well, it seems this bug

https://www.mobileread.com/forums/sh...88&postcount=1

to be fixed must wait for version 1.9.31

Anyway, thank you very much for your hard work and for this new version of Sigil.
KevinH is online now   Reply With Quote
Old 03-19-2023, 05:19 PM   #37
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by KevinH View Post
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.
Many thanks Kevin!!
RbnJrg is offline   Reply With Quote
Old 04-02-2023, 01:58 PM   #38
democrite
Evangelist
democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.
 
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.
democrite is offline   Reply With Quote
Old 04-02-2023, 02:12 PM   #39
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by democrite View Post
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.
KevinH is online now   Reply With Quote
Old 04-03-2023, 05:17 AM   #40
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
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.
patrik is offline   Reply With Quote
Old 04-03-2023, 08:07 AM   #41
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is online now   Reply With Quote
Old 04-03-2023, 08:27 AM   #42
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
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.
patrik is offline   Reply With Quote
Old 04-03-2023, 10:20 AM   #43
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is online now   Reply With Quote
Old 04-03-2023, 09:23 PM   #44
democrite
Evangelist
democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.
 
Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
Quote:
Originally Posted by KevinH View Post
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).
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.
democrite is offline   Reply With Quote
Old 04-03-2023, 10:03 PM   #45
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by democrite View Post
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.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:06 AM.


MobileRead.com is a privately owned, operated and funded community.