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-06-2025, 05:21 PM   #76
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 268
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by KevinH View Post
I removed the word "Help" from the first Example clips ini file and reworded it. This clip-entries.ini file will only get loaded by new Sigil users. This will not impact existing users.

The new first entry now says:

1\Name=Insert Clip
1\Text=Clips will insert their text at the current paste target when clicked. Right click for menu to add groups and entries. Edit or re-order any item. Handy for quickly inserting often used text clips.

KevinH
Without the word 'Help', it will be less misleading and possibly not encourage the unwary to click on that entry. That's the good part.

I edited the sigil_clips_v6.ini to see how it looks in my MacBook and Linux box. From my point of view, the only useful place is in the Clips pane where the message shows when the cursor hovers on the item. Hover doesn't produce a tool tip elsewhere.

The only place where "Right click for menu to add groups and entries." is true is in the Clip Editor. Elsewhere, the right click just produces 'Expand all, Collapse all'.
philja is offline   Reply With Quote
Old 03-06-2025, 05:40 PM   #77
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,769
Karma: 6000000
Join Date: Nov 2009
Device: many
That text is in an EXAMPLE clip. Those are primarily used in the Clips Editor as examples to help users design their own clips (especially by newbies).

The tooltip for a clip is always the contents of the clip. Nothing else.

It and its tooltip are meant to introduce new users of Sigil to clips. It is not meant for anthing else and is typically the first clip deleted and replaced by something more useful by the user..

So I am going to leave it as it stands now.
KevinH is offline   Reply With Quote
Old 03-06-2025, 05:42 PM   #78
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,733
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Clips can be deleted in the Clip Editor. I deleted the "Help" clip two minutes after I inadvertently inserted it into the code, not seen it since.

Reading the text (from my saved default settings), I'm not sure it even makes sense in the context of the editing in Code View, or the Clips window.

Quote:
1\Name=Clips Help
1\Text=Right click for menu to add groups and entries. Edit or re-order any item. Use right click in editor to select which entry to paste.
Right click what… the inserted text?

It reads as if the actions available in the Clip Editor can be done directly from the CV context menu… or the Clips window.

BR
BetterRed is offline   Reply With Quote
Old 03-06-2025, 06:38 PM   #79
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,769
Karma: 6000000
Join Date: Nov 2009
Device: many
It was meant to be help for the clips editor.
But since people had issue with the word "help" ...

I am done with this topic. It only impacts new users and is meant to be an example only. Please focus instead on more meaningful improvements in this thread.

Last edited by KevinH; 03-06-2025 at 06:48 PM.
KevinH is offline   Reply With Quote
Old 03-06-2025, 11:26 PM   #80
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,733
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
It was meant to be help for the clips editor.
That makes sense.

Suggestion - put the text under buttons on the right, and remove it from the clips.ini file. Could even put a help button there and pop the relevant section of the manual maybe.

BR
BetterRed is offline   Reply With Quote
Old 03-07-2025, 06:34 AM   #81
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,576
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I don't think we'll be going down that road. The standalone user guide is not going to become an integrated help file.
DiapDealer is offline   Reply With Quote
Old 03-07-2025, 10:51 AM   #82
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,769
Karma: 6000000
Join Date: Nov 2009
Device: many
And it is simply not worth my time to spend any more of it on an Example clip. If you do not like it delete it. Its previous version was meant to show help when a *new* user opens up the clips editor for the first time. And it has filled that function for over a decade or more. I understood that some people who do not read the user guide may be confused by the word "help" and so removed it. But that is as far as I will go for something that should not even exist in a user's production version of Sigil unless they never bothered to assign any of their own clips and just left the examples.
KevinH is offline   Reply With Quote
Old 03-21-2025, 12:27 PM   #83
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,769
Karma: 6000000
Join Date: Nov 2009
Device: many
Any bugs or other feedback on the Python Function Replace mechanism we added to Sigil master (see the Beta 4 builds)? I would love to wrap that up and move on to other new features but wanted to make sure that:

1. It works as advertised.

2. That people still feel that this will be a useful addition to Sigil.


We can always revert the changes and use the fixed plugin version if needed.


Also if there are other suggestions for new features or improvements that will help the majority of users of Sigil, we are willing to consider them.

Thanks!
KevinH is offline   Reply With Quote
Old 03-21-2025, 10:43 PM   #84
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: 46,280
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I haven't seen any issues with it other than those that I self-inflicted. And I do find it useful.
DNSB is offline   Reply With Quote
Old 03-22-2025, 09:29 AM   #85
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,769
Karma: 6000000
Join Date: Nov 2009
Device: many
Good to know. I will leave it in place and move on to other things.

That said, I do not have a testcase that has lots of emojis in it - emojis are typically in the range which require two utf-16 chars paired. ie. a high surrogate and a low surrogate pair

This impacts searches done when parts are done inside Qt (utf-16) and parts are done in python (utf-32).

So if anyone has a testcase epub which has a few emojis in it, or makes use of characters made from surrogate pairs, I would love to have a copy for testing and debugging the code that maps positions from inside Qt to inside python.

None of my current testcases exercise any of that code.
KevinH is offline   Reply With Quote
Old 03-22-2025, 11:23 AM   #86
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,355
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
Quote:
Originally Posted by KevinH View Post
Any bugs or other feedback on the Python Function Replace mechanism we added to Sigil master (see the Beta 4 builds)? I would love to wrap that up and move on to other new features but wanted to make sure that:

1. It works as advertised.

2. That people still feel that this will be a useful addition to Sigil.


We can always revert the changes and use the fixed plugin version if needed.


Also if there are other suggestions for new features or improvements that will help the majority of users of Sigil, we are willing to consider them.

Thanks!
Sorry, I’ve been out of town for the last 10 days dealing with stuff. I should be back on Monday!
Turtle91 is offline   Reply With Quote
Old 03-22-2025, 05:21 PM   #87
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,733
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DiapDealer View Post
I don't think we'll be going down that road. The standalone user guide is not going to become an integrated help file.
FTR: I meant pop a copy of the text from the manual, not directly from the online User Guide… been there, too hard… always was.
BetterRed is offline   Reply With Quote
Old 03-28-2025, 09:59 PM   #88
DataMeister
Junior Member
DataMeister began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2025
Device: none
Can we get a new Clips variable that allows a clip to replace the nearest set of opening/closing tags with whatever is defined for the clip?

For example in the regular tool panel, if your cursor is anywhere inside a paragraph and you click on Heading 1 or Ctrl+1 it will replace both of the surrounding p tags with h1 tags without needing to select the entire paragraph first.

It would be nice if we could create clips that could do something similar and turn a paragraph into an <aside>, <cite>, <blockquote> or whatever.

It would also make existing example clips such as <h1 class="heading"> more useful. Technically you aren't supposed to have the H tags inside a paragraph or vice-versa.
DataMeister is offline   Reply With Quote
Old 03-29-2025, 08:54 AM   #89
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,769
Karma: 6000000
Join Date: Nov 2009
Device: many
You can hold down the shift key and doubleclick on any tag pair to select just its contents. Apply the clip to wrap it in a new tag, then slide the mouse to the now unwanted outer tag open or close tag and auto delete that tag pair using the Format -> Remove Tag Pair menu item (or assign your own keyboard shortcut to it). On my machine I have assigned Meta-Shift-P to that command. So it is easy run without needing to use the menu.

I will think about adding the Remove Tag Pair to the pop-up menu in CodeView for the next release, as many people do not seem to know about that specific Format menu command, nor the ability to use doubleclick with shift held down to select just the contents of the tag open/close pair. Or hold down the Alt key and doubleclick to select the tag pair and its contents.

Last edited by KevinH; 03-29-2025 at 01:15 PM.
KevinH is offline   Reply With Quote
Old 04-07-2025, 01:26 PM   #90
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 841
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by KevinH View Post
Any bugs or other feedback on the Python Function Replace mechanism we added to Sigil master (see the Beta 4 builds)?
The functions have potential, but I have trouble debugging them.
"print" or trying to save information to an external debug file does not work.

If I need any "output" I am helpless.
What can I do?

I checked in Calibre and there is a special window with results, so that such a function works.

There are certainly people who are able to write a working function right away. I like to test my solutions, so "print" is my friend.
BeckyEbook is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Improvements/bugs/features dontcrash KOReader 10 10-23-2019 10:05 AM
Touch HD, Future features or dead features? ElWorm PocketBook 4 02-07-2018 11:36 AM
[FREE]Innovative Ideas to Ignite Your Mind: Business Ideas to Start Entrepreneurship amazon author Self-Promotions by Authors and Publishers 0 04-01-2015 04:09 AM
How many 'improvements' do we really need? Fozzybear General Discussions 61 04-15-2012 12:38 PM
ideas for calibre features smarties86 Recipes 3 07-01-2011 10:23 AM


All times are GMT -4. The time now is 01:57 PM.


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