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, 12:42 AM   #1
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: 399
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Does PageEdit allow you to open to cursor?

I do 99% of my formatting in the html code view, but for a specific operation (namely creating line-breaks for verse) I have historically used the BookView/WYSIWYG functionality.

Having finally taken the plunge after about ten years and upgrading to the latest version of Sigil from 0.7.2, I'm trying to figure out how best to adapt my existing workflow with the least amount of pain. In that spirit I've installed the PageEdit program/plugin, and have run into the first obstacle in my learning curve.

Specifically, when I get to text in Sigil that requires my switching to PageEdit, opening the plugin leads to my losing my place in the project, as it opens the file at the beginning rather than where the cursor was when I hit F2. I've combed through the preferences, but I'm not seeing anything in either program that addresses this issue? Am I looking in the wrong place, or is this a problem without a solution?
ElMiko is offline   Reply With Quote
Old 05-07-2025, 09:14 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,321
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Sorry this isn’t a direct answer to your question, but maybe it’ll fix the problem altogether. Since you mentioned you edit the html 99% of the time, and only used book view to insert spaces in your verse, I figured this might be an easier solution.

There was a new function/feature added to Sigil a while back called CLIPS. It allows you to create a button/link/clip that will insert whatever text/code you’d like at your cursor position. This makes those simple, repetitive, edits much faster.

I’m not sure what exact code you use for your verse, but here is an example:
Code:
<div class="verse">
  <p>Roses are red</p>
  <p>Violets are blue</p>
  <p>I need to put a line break in here.How about you?</p>
</div>
Simply put the cursor where you want to insert the code/text and click the clip.

If your clip is defined as "</p>\n\n<p class="space">" you will end up with this:

Code:
<div class="verse">
  <p>Roses are red</p>
  <p>Violets are blue</p>
  <p>I need to put a line break in here.</p>

  <p class="space">How about you?</p>
</div>
You can create and save as many different clips as you want and access/use them in different ways. You can have a dedicated pane, or you can have your favorites (up to 40 of them IIRC) in a toolbar.

Cheers!
Turtle91 is offline   Reply With Quote
Advert
Old 05-07-2025, 09:25 AM   #3
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,504
Karma: 5703586
Join Date: Nov 2009
Device: many
To answer your question, PageEdit will open the file you are on but not try to match the cursor position from Preview just like any other external editor would.

You should be able to use the pulldown to quickly navigate through many different files. Think more like OpenWith.

Perhaps doing your stanza line break fixes once in PageEdit on a file by file basis instead of flicking back and forth to Sigil might prove more efficient. PageEdit was designed for proof reading and minor edits of a nearly finished epub.
KevinH is online now   Reply With Quote
Old 05-07-2025, 10:01 AM   #4
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: 399
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Thanks, KevinH (for both responses).

I think I can still make this work by tweaking the order of operations a tiny bit. Muscle memory is a pitiless mistress, though.

For the record, I do generally use a clip for inserting line breaks ("</p> <p class="calibre1"> in prose. In the case of verse, however, it's a little more finicky.

Take:

Code:
<p><i>Roses are red Violets are purple I can't rhyme anything with purple This poem stinks</i><p>
Inserting the above clips (yours OR mine) would break the html because it doesn't account for the <i> tags. So that would require a separate clip that incorporate italics. But it would also need to incorporate a clip that changes the class to my desired format ("hindent"), which means either making two more clips beyond the standard one (one for plain "hindent" breaks and one for italicized "hindent" breaks) or a second operation (first break the lines with a standard <i/p> break, then go back and replace the classes). All of this is a horrifying multi-key-stroke ordeal, whereas "PageEdit/BookView" is: change the main class to "hindent", and then "Enter" three times.

Like, I said, though, I think there's a small tweak to the workflow that can get around it. It's mostly a failure on my part to think creatively, seeing as it's a process that's so deeply ingrained at this point. Basically, I think I just have to remember to copy a string of the target text from Code View before hitting F2 so that I can paste it into the search bar in PageEdit.

Last edited by ElMiko; 05-07-2025 at 10:45 AM.
ElMiko is offline   Reply With Quote
Old 05-07-2025, 10:31 AM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,321
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Sounds good!

I personally don’t use the italics tag <i> on each line… I define the class for the overall <div> in the css. That way I can keep the visual presentation (italics) in the CSS and select only specific phrases with an emphasis <em>. The clips don’t break anything that way.

Code:
div.verse p  {font-style:italic}
div.verse em {font-style:normal; color:purple}


<div class="verse">
  <p>Roses are red Violets are <em>purple</em></p>
  <p>I can't rhyme anything with <em>purple</em></p>
  
  <p class="space">This poem stinks so bad -<p>
  <p>It makes my tummy <em>burble</em></p>
</div>
Turtle91 is offline   Reply With Quote
Advert
Old 05-07-2025, 10:41 AM   #6
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: 399
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@Turtle91 - Slight derail of my own thread, but what is the keyboard name for applying <em> or <strong> tags? I've been trying to improve the accessibility of my books, but I don't know how to remap "Ctrl+I" to the right function because I don't know what it's called in the keyboard shortcut menu. There's an option for "Add Semantics to selected file(s)", but that seems too broad... i mean, is it <em> or <strong> or neither?

I'll consider the <div> route for italics on blocks of text. I actually have this in my default css, I just haven't used it in a decade. Again, I'm sure the next few weeks are going to be a process of re-evaluating my workflow as I get up to speed on the new toy...

Last edited by ElMiko; 05-07-2025 at 10:44 AM.
ElMiko is offline   Reply With Quote
Old 05-07-2025, 10:55 AM   #7
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,321
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
This was also discussed in a few previous threads - and usually devolves into arguments about which to use i/em b/strong. There is not a specific button for em/strong like there is with i/b — BUT — you can make a …. Wait for it … CLIP!!

Then you can set those in your clips toolbar. This is what I use:

Name Clip
EM "<em>\1</em>"
Strong "<strong>\1</strong>"

Just highlight the phrase and click the clip and it will surround the highlight with the tag.
Turtle91 is offline   Reply With Quote
Old 05-07-2025, 02:25 PM   #8
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: 399
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Of course.

Brain fart.

---

With respect to how Page Edit opens, is there a way to define its height and width (and, ideally, screen location)? Or will it always reset to 1000x479 px, centered on the screen?

Last edited by ElMiko; 05-07-2025 at 02:33 PM.
ElMiko is offline   Reply With Quote
Old 05-07-2025, 02:39 PM   #9
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,391
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by ElMiko View Post
With respect to how Page Edit opens, is there a way to define its height and width (and, ideally, screen location)? Or will it always reset to 1000x479 px, centered on the screen?
It should remember it's position and size. Just remember that if you have multiple instances open, it's the last window's size and position that will be saved after closing. Just like Sigil.

If it doesn't, there could be some corruption of the geometry data in Pagedit's INI file.

EDIT: of course now that you mention it. It's not remembering its geometry on my Windows laptop either.

Last edited by DiapDealer; 05-07-2025 at 02:46 PM.
DiapDealer is offline   Reply With Quote
Old 05-07-2025, 02:46 PM   #10
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: 399
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by DiapDealer View Post
It should remember it's position and size. Just remember that if you have multiple instances open, it's the last window's size and position that will be saved after closing. Just like Sigil.

If it doesn't, there could be some corruption of the geometry data in Pagedit's INI file.
Yeah, it appears there is a problem because I've tried restarting sigil and restarting PageEdit (as a standalone), and the window size always reverts to 1000x479.

Is this something I can fix? Do I need to reinstall PageEdit, or is this something embedded in the latest version?
ElMiko is offline   Reply With Quote
Old 05-07-2025, 02:55 PM   #11
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,391
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by ElMiko View Post
Is this something I can fix? Do I need to reinstall PageEdit, or is this something embedded in the latest version?
I don't think you can do anything.

I've deleted all geometry entries, and finally deleted PageEdit's INI file entirely and it made no difference. It opens centered, the same size. Tried with both File->Quit and the big red X. No difference. This here smells like a bug. We'll have to track it down. Thanks for the tip.

Last edited by DiapDealer; 05-07-2025 at 03:42 PM.
DiapDealer is offline   Reply With Quote
Old 05-07-2025, 03:01 PM   #12
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,391
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It appears to be writing the geometry on closing, but not reading it when opening.
DiapDealer is offline   Reply With Quote
Old 05-07-2025, 03:16 PM   #13
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,391
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Or vice-versa *shrug*

I'll have to wait until I can do some debugging on my main development machine.
DiapDealer is offline   Reply With Quote
Old 05-07-2025, 03:32 PM   #14
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: 399
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Thanks @DiapDealer.

More than anything, it's a relief to know I wasn't going crazy. To get one question out there that isn't pure noob user error is a weight off my shoulders!
ElMiko is offline   Reply With Quote
Old 05-07-2025, 05:09 PM   #15
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,504
Karma: 5703586
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by DiapDealer View Post
Or vice-versa *shrug*

I'll have to wait until I can do some debugging on my main development machine.
Checked PageEdit and in MainWindow SaveSettings() it improperly uses m_LastWindowSize as what to save when that is no longer being updated. We should instead use a call to saveGeometry().

I will make that change and push that fix tonight.

Update: Pushed a fix to PageEdit master. Rebuilt and tested it and it now remembers its size and location. This fix will appear in the next release of PageEdit

Last edited by KevinH; 05-07-2025 at 05:29 PM.
KevinH is online now   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 09:56 AM.


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