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 05-07-2025, 05:44 PM   #16
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: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Can confirm the fix. Thanks!

This thing's been around a long time--on every platform! I'm surprised it hasn't been reported it before now.
DiapDealer is offline   Reply With Quote
Old 05-07-2025, 07:09 PM   #17
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,478
Karma: 5703586
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by DiapDealer View Post
Can confirm the fix. Thanks!

This thing's been around a long time--on every platform! I'm surprised it hasn't been reported it before now.
I think it was my fault. It worked up to the time I cleaned up save state info just after we did the same for Sigil. I chopped out the code that updated m_LastSWindowSize during every resize and move but fogot it was used in SaveSettings(). So maybe a release or so.
KevinH is offline   Reply With Quote
Advert
Old 05-07-2025, 07:28 PM   #18
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: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
I chopped out the code that updated m_LastSWindowSize during every resize and move but fogot it was used in SaveSettings(). So maybe a release or so.
Not so long as I thought then. I was just taking a quick look back and assuming the issue was there as as long as m_LastWindowSize was present. That wasn't the case.

No big deal (obviously! ). I'm still surprised no one asked about it until now. Wouldn't the multiple monitor folk have to keep putting it back on another monitor?

Last edited by DiapDealer; 05-08-2025 at 07:24 AM.
DiapDealer is offline   Reply With Quote
Old 05-07-2025, 08:38 PM   #19
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,629
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I noticed it in PE, didn't complain because I prefer programs to start in a fixed state rather than restoring the mess in which I left it last time. ¯\_(ツ)_/¯

BR
BetterRed is offline   Reply With Quote
Old 05-08-2025, 06:05 AM   #20
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: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
because I prefer programs to start in a fixed state rather than restoring the mess in which I left it last time.
Then don't leave it a mess.
DiapDealer is offline   Reply With Quote
Advert
Old 05-08-2025, 01:16 PM   #21
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,478
Karma: 5703586
Join Date: Nov 2009
Device: many
I think it would be rather straightforward for PageEdit to accept a cursor position number on the command line when launched from Sigil that could be used to generate a QWebPath to perform a scroll to in PageEdit's WebView.

It would not guarantee the cursor to be at the exact same place but it would end up quite close (just like syncing CodeView to Preview right now).

If there is reasonable interest in making that change, I would be happy to include it. It will only work when PageEdit is launched from Sigil. And of course only if the current file open in CV is an xhtml file when the External XTML editor icon is used.

Thoughts?
KevinH is offline   Reply With Quote
Old 05-08-2025, 02:30 PM   #22
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: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
While I don't use PageEdit all that often, I would find that handy instead of scrolling multiple pages to find the correct position.

Edit: compiled PageEdit and in my testing, it saves size and position when exiting.

Last edited by DNSB; 05-08-2025 at 02:41 PM.
DNSB is offline   Reply With Quote
Old 05-08-2025, 02:51 PM   #23
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,478
Karma: 5703586
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by DNSB View Post
While I don't use PageEdit all that often, I would find that handy instead of scrolling multiple pages to find the correct position.

Edit: compiled PageEdit and in my testing, it saves size and position when exiting.
Okay, I will take a shot at implementing that.

And thanks for testing the PageEdit geometry fix.
KevinH is offline   Reply With Quote
Old 05-08-2025, 03:55 PM   #24
ElMiko
Addict
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 383
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by KevinH View Post
Okay, I will take a shot at implementing that.

And thanks for testing the PageEdit geometry fix.
That would be really helpful. Would it only work with xhtml, or with htm/html, too?
ElMiko is offline   Reply With Quote
Old 05-08-2025, 04:23 PM   #25
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,478
Karma: 5703586
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by ElMiko View Post
That would be really helpful. Would it only work with xhtml, or with htm/html, too?
There is no htm or html in an epub. If you try to load an html file it will most likely cause failure of the xml parser. That is why we use our version of the gumbo repair parser to fix html into valid xhtml.

If you instead meant a file extension ending in htm or html that actually holds xhtml, it should work just fine. It is the media type/strict xml parsing rules that matters not the file extension.
KevinH is offline   Reply With Quote
Old 05-08-2025, 09:04 PM   #26
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,478
Karma: 5703586
Join Date: Nov 2009
Device: many
@DNSB and anyone else interested,

I just pushed to master changes to PageEdit and Sigil so that if you are in Sigil's CodeView and editing an xhtml file and hit the External XHtml Editor to launch PageEdit, it should nicely try its best to sync the cursor when it opens.

You will need to pull from both PageEdit master and Sigil master and rebuild both for this to work.

I hopefully made these changes to be backwards compatible so using an older PageEdit with newer Sigil and visa-versa will still work as expected but if you both are updated to master, you should see the syncing.

These fixes will appear in the next releases of both PageEdit and Sigil.

Please give them a try if you build your own and do let me know of any success or failures.

Hope this helps!
KevinH is offline   Reply With Quote
Old 05-09-2025, 01:15 AM   #27
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: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
New compiles of Sigil and PageEdit. The cursor seems to be on the start of the line selected in Sigil's CodeView when PageEdit opens but a lot easier than scrolling through multiple lines.

Edit: added screenshots of Sigil and PageEdit. I placed a [] where the cursor was in Sigil before opening PageEdit and where the cursor showed in PageEdit.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-05-08 223233.png
Views:	18
Size:	263.2 KB
ID:	215578   Click image for larger version

Name:	Screenshot 2025-05-08 223138.png
Views:	17
Size:	276.2 KB
ID:	215579  

Last edited by DNSB; 05-09-2025 at 01:57 AM.
DNSB is offline   Reply With Quote
Old 05-09-2025, 08:46 AM   #28
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,478
Karma: 5703586
Join Date: Nov 2009
Device: many
Yes, that is expected behaviour as navigating is based in the nearest containing tag. For most text that will be the p tag that holds it.

Unfortunately when live editing html, Chrome can split text nodes and inject text nodes causing the dom to need to be re-normalized constantly. When you add to that whitespace can be compressed, offsets in text strings become an issue. So for consistency we take you to the closest destination we know will exist: the parent of the text.

This is how Preview navigates to where you click in CV, and visa versa.

Last edited by KevinH; 05-09-2025 at 08:50 AM.
KevinH is offline   Reply With Quote
Old 05-09-2025, 09:24 AM   #29
ElMiko
Addict
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 383
Karma: 65460
Join Date: Jun 2011
Device: Kindle
FWIW, cursor at the beginning of the element is exactly what I needed (or at least what I'm used to with Book View). I'll be curious to see how it works with tables. In ye olde Book View, switching from code view when the cursor was in any given table element would result in the Book view "loading" at the beginning of the file (rather than the beginning of the element).

Looking forward to the next update(s)!
ElMiko is offline   Reply With Quote
Old 05-09-2025, 06:09 PM   #30
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,478
Karma: 5703586
Join Date: Nov 2009
Device: many
@DNSB (and others who might have build or using builds from master).

Found a few minor bugs in how I calculate web paths from file positions that will impact both Sigil and PageEdit.

Just pushed a fix of both to master (in their respective versions of TagLister.h/.cpp)

So if you plan to stay with your master builds, I would pull from both and rebuild them. Not any chance of data loss, just weird syncing that might drive you crazy (between Sigil and Preview and between Sigil and PageEdit).
KevinH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cursor Blink? MarjaE Onyx Boox 0 01-26-2022 07:47 PM
PageEdit 1.40 pete6055 Sigil 9 02-08-2021 12:07 PM
Frozen cursor BobK99 Sigil 2 08-08-2017 01:29 PM
Any Way to Keep the Cursor from Blinking? MarjaE Sigil 13 04-15-2017 04:02 PM
Cursor after Merge mentorian Library Management 3 08-23-2011 02:22 PM


All times are GMT -4. The time now is 10:37 AM.


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