02-23-2021, 12:26 PM | #16 | |
Bibliophagist
Posts: 35,428
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Spoiler:
If your file looks like the above sample with all the lines munged together, that is what mend and prettify will help with giving you something like the code below. Spoiler:
Last edited by DNSB; 02-23-2021 at 12:33 PM. |
|
02-23-2021, 12:42 PM | #17 |
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
If it's the specifics you need: right click on any html code in Code View and highlight the "Reformat HTML" context menu item, and then select the "Mend and Prettify Code - All HTML Files" submenu entry. Whoops. missed that @DNSB has already included the specifics.
You might also want to close the Preview window while you perform the task. Not because it's required, but because it will keep Preview from constantly trying to re-render everything all the time. Once the code has been Prettified, you can reopen Preview |
Advert | |
|
02-23-2021, 12:48 PM | #18 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
And if that is not the case, please post a couple of random screen shots taken with CodeView of the offending file and post them here just to give us a taste of what the code looks like that is giving Sigil fits.
|
02-23-2021, 05:53 PM | #19 |
Zealot
Posts: 110
Karma: 10
Join Date: Aug 2018
Location: New Jersey
Device: Samsung Tab E nook
|
See the attached two screen shots.
h6 are changes I'm adding but haven't added yet and will be removed. All other text and formatting to remain. Thanks Brent |
02-23-2021, 06:41 PM | #20 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
That looks like quite clean xhtml to me with lots of line breaks. I saw nothing that should slow Sigil down at all.
What happens if you use the View menu to hide Preview and try editing in CodeView. Is it still slow? |
Advert | |
|
02-23-2021, 06:47 PM | #21 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Also try removing the empty title tag at the top of the body tag. Technically the title tag should only be inside the head tag and not in a body tag. And technically only one title tag is allowed per HTML document. Does removing it from the body tag impact anything when Preview is visible.
|
02-23-2021, 08:32 PM | #22 |
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It looks like Preview is scrolled all the way to the top of the page, but I'm not seeing the first two lines of code in Code View (h1 and h3) being displayed. Is that just because the file is so big that I can't see any space above the top of the Preview scrollbar, or are they being hidden by css? Not that that should cause any slowdowns, I'm just trying to get a feel for the content/css in order to try and recreate the behavior.
Last edited by DiapDealer; 02-23-2021 at 08:36 PM. |
02-23-2021, 09:44 PM | #23 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://www.libreoffice.org/ LibreOffice is a continuation of OpenOffice created in ~2010. OpenOffice has been effectively abandoned since ~2014 (only a handful of minor bugs fixed since)! |
|
02-24-2021, 04:10 AM | #24 | |
Fanatic
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
Have a look at the html is something like Notepad++ and they will show as black reversed text at the end of lines. like this - https://www.mobileread.com/forums/at...1&d=1614157684 If you see just one long line of text that is probably what is causing the slow down. |
|
02-24-2021, 05:16 PM | #25 |
Zealot
Posts: 110
Karma: 10
Join Date: Aug 2018
Location: New Jersey
Device: Samsung Tab E nook
|
To all that have replied see attached.
Also I closed the preview window and selecting text in the editor area is faster. however I like using the preview to see what the file will look like and scroll through the file. Even with the preview window closed selecting the January and July files take some time to load in the editor window. |
02-24-2021, 06:48 PM | #26 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
That makes no sense. Loading a file of 160kb or so like your January file in CodeView should be quite fast.
So my guess is you have some anti-virus software that is scanning and watching files that are created in tmp on your machine. This locks the file until the scan is done. All of Sigil's files are created in the tmp folder. Try telling your anti-virus software to either stop scanning files in tmp or to leave Sigil alone in some fashion. To test if that is the case, try temporarily turning off your access to the internet on your machine (for safety) and then restarting in safe mode with the anti-virus disabled and check the speed. If still slow we can rule out interference from anti-virus software, if fast, then you have the culprit. Also how much memory do you have on this machine? QWebEngine is a memory hog so if you do not have much, Sigil will slow down. |
02-24-2021, 06:52 PM | #27 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
If none of that helps, then please post that epub someplace private and PM "KevinH" here on Mobileread (me) with a link and I will take a look at it and delete it once we understand why it is slowing Sigil down so much.
If you only want to include the one or two slowest chapters that is fine to. |
02-24-2021, 06:55 PM | #28 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I did notice that your January file had 22 images linked in. Would you look at your Images Report or All Files report to see how large those image files are, just in case.
|
02-25-2021, 08:19 AM | #29 |
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The original screenshots for the same book shows way less than 22 images in the entire book. Are there multiple img tags pointing to the same images in those two problematic chapter files?
|
05-19-2021, 12:37 PM | #30 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2017
Device: phone
|
Hello again,
I've recently downgraded from 1.5.1 to 1.3 because of the issue I reported earlier, it was just making using Sigil unfeasable to use. I'll experiment with some publically available epubs to see if I can replicate the circumstances triggering the hanging. I previously looked at Sigil while it was hanging with Process Explorer and it said a thread was running "free memory" continuously. I'll post a informative update soon 👍 |
Tags |
gui lock, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
GUI Changes in the Upcoming Sigil-0.9.4 | KevinH | Sigil | 4 | 03-13-2016 10:21 PM |
Locking for new software | ntome | Which one should I buy? | 5 | 07-04-2011 11:58 AM |
Locking the Keyboard | mornington | Amazon Kindle | 1 | 12-04-2010 11:35 AM |
Kindle 2 locking up | alcina | Amazon Kindle | 19 | 05-31-2010 06:56 AM |