Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-23-2021, 01:26 PM   #16
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 11,502
Karma: 54270429
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by brent63 View Post
As I do not see them in the editor, how do I go about removing them?
We are wanting to add them not remove them. Under the Tools menu, hover on Reformat HTML and then click on Mend and Prettify All HTML files.

Spoiler:

Code:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"><head><title>Lorem Ipsum Test</title>  <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/></head><body class="blah"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque viverra lacus ut metus eleifend scelerisque. Nunc blandit id enim nec pulvinar. Sed quis sodales justo. Nam interdum elementum fermentum. Duis at gravida justo, ac lacinia risus. Vivamus ac nibh facilisis risus pellentesque varius tempor eu lectus. Morbi tempor nunc sit amet fringilla posuere. Morbi finibus magna a sodales interdum. Morbi at vulputate magna. Donec venenatis diam ut arcu elementum, nec egestas purus euismod. Sed vitae orci tincidunt, ullamcorper nunc id, aliquet dolor. Nulla faucibus venenatis magna sagittis fringilla. Integer ligula turpis, venenatis et efficitur ac, lacinia sit amet magna. Cras viverra dui eu lectus pellentesque bibendum at non leo.</p><<h1 class="header" id="toc_2">Welcome part 2</h1><p>Aenean suscipit enim id est fringilla, eget eleifend tortor suscipit. Ut sit amet dui eget tortor iaculis scelerisque ac et felis. Fusce orci libero, elementum quis ex aliquet, dapibus luctus orci. Morbi diam neque, fringilla eget sem at, scelerisque laoreet neque. In hac habitasse platea dictumst. Donec vehicula pellentesque consectetur. Cras eget mollis lorem, eu sodales nunc.</p>enenatis magna, sed pellentesque augue. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris commodo finibus gravida. Donec facilisis sed ex sit amet tincidunt.</p></body></html>



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:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>Lorem Ipsum Test</title>
  <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body class="blah">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque viverra lacus ut metus eleifend scelerisque. Nunc blandit id enim nec pulvinar. Sed quis sodales justo. Nam interdum elementum fermentum. Duis at gravida justo, ac lacinia risus. Vivamus ac nibh facilisis risus pellentesque varius tempor eu lectus. Morbi tempor nunc sit amet fringilla posuere. Morbi finibus magna a sodales interdum. Morbi at vulputate magna. Donec venenatis diam ut arcu elementum, nec egestas purus euismod. Sed vitae orci tincidunt, ullamcorper nunc id, aliquet dolor. Nulla faucibus venenatis magna sagittis fringilla. Integer ligula turpis, venenatis et efficitur ac, lacinia sit amet magna. Cras viverra dui eu lectus pellentesque bibendum at non leo.</p>


<h1 class="header" id="toc_1">Welcome</h1>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut tristique eleifend odio vel accumsan. In purus massa, efficitur nec gravida id, efficitur et lorem. Ut odio magna, maximus non ex eget, vulputate finibus urna. Aenean dignissim nisi ut ex euismod faucibus. Etiam hendrerit suscipit aliquet. Donec efficitur eros ac nibh fringilla feugiat. Integer gravida leo sodales, venenatis velit eu, porttitor purus. Duis vel lacus nec leo placerat fringilla. Proin tellus enim, rutrum et molestie eget, pretium a lacus.</p>

<p>Praesent at odio nulla. Proin interdum luctus odio, sit amet fringilla velit luctus et. Integer ut finibus neque. Vivamus sagittis, massa quis aliquam mattis, sem ipsum dapibus tellus, laoreet ultricies quam diam vel ipsum. Vestibulum in mi a mi fermentum luctus non sit amet mauris. Nullam in justo neque. In bibendum sagittis elit, quis aliquam urna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc vitae lectus vitae massa semper cursus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Etiam nulla orci, suscipit at placerat quis, pharetra in massa. Donec eu est fermentum, condimentum tortor at, aliquam est.</p>


<h1 class="header" id="toc_2">Welcome part 2</h1>


<p>Quisque vitae orci semper, dignissim mi eu, vehicula justo. Sed vel nisl et tortor imperdiet sodales. Nulla dignissim massa at metus placerat, at pretium lorem varius. Nunc justo turpis, interdum in sem at, tincidunt condimentum nisl. Maecenas condimentum, diam sit amet luctus fringilla, turpis magna feugiat tellus, vel ultricies odio nisl vel tellus. Ut scelerisque nulla nec placerat tristique. Nullam eu diam a lorem maximus hendrerit in ac erat. Cras vestibulum risus vel elit cursus euismod. Duis ut venenatis magna, sed pellentesque augue. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris commodo finibus gravida. Donec facilisis sed ex sit amet tincidunt.</p>
</body>
</html>

Last edited by DNSB; 02-23-2021 at 01:33 PM.
DNSB is offline   Reply With Quote
Old 02-23-2021, 01:42 PM   #17
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 23,636
Karma: 150999158
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
DiapDealer is offline   Reply With Quote
Old 02-23-2021, 01:48 PM   #18
KevinH
Grand Sorcerer
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: 5,073
Karma: 3265870
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.
KevinH is offline   Reply With Quote
Old 02-23-2021, 06:53 PM   #19
brent63
Zealot
brent63 began at the beginning.
 
brent63's Avatar
 
Posts: 107
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2021-02-23 174447.png
Views:	27
Size:	165.2 KB
ID:	185574   Click image for larger version

Name:	Screenshot 2021-02-23 174609.png
Views:	22
Size:	165.5 KB
ID:	185575  
brent63 is offline   Reply With Quote
Old 02-23-2021, 07:41 PM   #20
KevinH
Grand Sorcerer
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: 5,073
Karma: 3265870
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?
KevinH is offline   Reply With Quote
Old 02-23-2021, 07:47 PM   #21
KevinH
Grand Sorcerer
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: 5,073
Karma: 3265870
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.
KevinH is offline   Reply With Quote
Old 02-23-2021, 09:32 PM   #22
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 23,636
Karma: 150999158
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 09:36 PM.
DiapDealer is offline   Reply With Quote
Old 02-23-2021, 10:44 PM   #23
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,700
Karma: 7760805
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by brent63 View Post
[...] however I do use Open Office to do most of my major typing.
Side Note: You may also want to consider upgrading to LibreOffice:

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)!
Tex2002ans is offline   Reply With Quote
Old 02-24-2021, 05:10 AM   #24
Ashjuk
Addict
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 336
Karma: 1360945
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by brent63 View Post
As I do not see them in the editor, how do I go about removing them?
I don't think you should be removing them - more likely you need to add them.

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.
Attached Thumbnails
Click image for larger version

Name:	line-feed.png
Views:	19
Size:	12.0 KB
ID:	185585  
Ashjuk is offline   Reply With Quote
Old 02-24-2021, 06:16 PM   #25
brent63
Zealot
brent63 began at the beginning.
 
brent63's Avatar
 
Posts: 107
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2021-02-24 161822.png
Views:	12
Size:	36.3 KB
ID:	185596   Click image for larger version

Name:	Screenshot 2021-02-24 165420.png
Views:	13
Size:	148.5 KB
ID:	185597   Click image for larger version

Name:	Screenshot 2021-02-24 170919.png
Views:	12
Size:	99.1 KB
ID:	185598  
brent63 is offline   Reply With Quote
Old 02-24-2021, 07:48 PM   #26
KevinH
Grand Sorcerer
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: 5,073
Karma: 3265870
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.
KevinH is offline   Reply With Quote
Old 02-24-2021, 07:52 PM   #27
KevinH
Grand Sorcerer
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: 5,073
Karma: 3265870
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.
KevinH is offline   Reply With Quote
Old 02-24-2021, 07:55 PM   #28
KevinH
Grand Sorcerer
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: 5,073
Karma: 3265870
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.
KevinH is offline   Reply With Quote
Old 02-25-2021, 09:19 AM   #29
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 23,636
Karma: 150999158
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?
DiapDealer is offline   Reply With Quote
Reply

Tags
gui lock, sigil

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 12 12-27-2020 02:31 PM
GUI Changes in the Upcoming Sigil-0.9.4 KevinH Sigil 4 03-13-2016 11:21 PM
Locking for new software ntome Which one should I buy? 5 07-04-2011 12:58 PM
Locking the Keyboard mornington Amazon Kindle 1 12-04-2010 12:35 PM
Kindle 2 locking up alcina Amazon Kindle 19 05-31-2010 07:56 AM


All times are GMT -4. The time now is 05:53 AM.


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