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 09-21-2026, 08:47 AM   #61
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: 10,093
Karma: 7640000
Join Date: Nov 2009
Device: many
Great! I will start trying to clean up the code, add version attribute, and integrate it into Sigil itself.

And yes in cvrt.py when label="" I should not have bothered to include that attribute to save space. Good point.

Nice work!

Last edited by KevinH; 09-21-2026 at 01:02 PM.
KevinH is online now   Reply With Quote
Old 09-21-2026, 04:02 PM   #62
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: 10,093
Karma: 7640000
Join Date: Nov 2009
Device: many
Okay, I have done a bit of code cleanup and reintegrated the new SelectCharacter code and new FlowLayoutCode into Sigil. Tested it and it seems to work just fine. Pushed it to master in my personal repo along with all the other changes we have made so far.

https://github.com/kevinhendricks/Sigil.git

So please if you build your own give it a go and if okay, we can then start tweaking it for further improvements.

Once it looks good, I will push it to Sigil-Ebook Sigil master.

Thanks!
KevinH is online now   Reply With Quote
Old 09-21-2026, 05:50 PM   #63
BeckyEbook
Wizard
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: 1,060
Karma: 3999999
Join Date: Jan 2017
Location: Poland
Device: Various
I built Sigil and… it just works!
Click image for larger version

Name:	sigil-chars-xml-works.png
Views:	17
Size:	54.9 KB
ID:	226100

I saw in the commit that if a version isn’t specified, we assume it’s version 1.0.0.
I think the new plugin will add the version when saving, even if it loads a file without one.

And honestly – I don’t see any bugs. It just works, maintaining backward compatibility, though with that one small difference I pointed out in my comment: now, even with the default character layout, subsequent lines fill the entire width of the window.
Click image for larger version

Name:	sigil-chars-fit-to-window.png
Views:	16
Size:	54.7 KB
ID:	226099

Of course, I recommend that other testers conduct additional testing.
BeckyEbook is offline   Reply With Quote
Old 09-21-2026, 06:21 PM   #64
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: 10,093
Karma: 7640000
Join Date: Nov 2009
Device: many
Glad to hear it! Yes please add the version="1.0.0" string to the parent tag in your plugin if possible.

I will commit it tomorrow to Sigil-Ebook master for others to begin playing with.

Thanks for your idea and code! Very nicely done!
KevinH is online now   Reply With Quote
Old 09-21-2026, 07:58 PM   #65
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: 29,779
Karma: 212614993
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Good stuff you two!
DiapDealer is offline   Reply With Quote
Old 09-21-2026, 08:31 PM   #66
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: 54,649
Karma: 182340541
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
To simplify keeping my test builds links up to date, you can find the latest test build for Windows in the Downloading Sigil test builds for Windows thread.

I've attached the sample special_characters.xml which goes into sigil's preferences directory (C:\Users\<usernames>\AppData\Local\sigil-ebook\sigil is the default).
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-09-21 173111.png
Views:	22
Size:	108.6 KB
ID:	226104  
Attached Files
File Type: xml special_characters.xml (32.0 KB, 10 views)

Last edited by DNSB; Yesterday at 09:56 PM. Reason: Updated to latest version
DNSB is offline   Reply With Quote
Old 09-21-2026, 10:04 PM   #67
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 222
Karma: 2000
Join Date: Nov 2025
Device: none
Sorting them is certainly a very uesful feature.

But what's these chinese characters doing in punctuation?
icearch is offline   Reply With Quote
Old 09-22-2026, 12:53 AM   #68
BeckyEbook
Wizard
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: 1,060
Karma: 3999999
Join Date: Jan 2017
Location: Poland
Device: Various
This is just a text file that showed that grouping works.

The whole idea is that – if you want – you define the groups and the characters that will be in them.
If you are happy with the default characters, simply do nothing.
BeckyEbook is offline   Reply With Quote
Old 09-22-2026, 05:34 AM   #69
philja
Evangelist
philja rocks like Gibraltar!philja rocks like Gibraltar!philja rocks like Gibraltar!philja rocks like Gibraltar!philja rocks like Gibraltar!philja rocks like Gibraltar!philja rocks like Gibraltar!philja rocks like Gibraltar!philja rocks like Gibraltar!philja rocks like Gibraltar!philja rocks like Gibraltar!
 
Posts: 435
Karma: 100100
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
I've just tried DNSB's test compile on my Windows 11 box. I re-organised the sample special_characters.xml file and added a new section with the characters I'm interested in.

It works well - as did the original, of course.

It's all very well having an editable file, but the potential difficulty rests, as always, with the reader interface having fonts with the glyphs required to display the characters.
philja is offline   Reply With Quote
Old 09-22-2026, 08:10 AM   #70
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: 10,093
Karma: 7640000
Join Date: Nov 2009
Device: many
Yes, just like any other character used in any ebook, if your current font does not support it, you must embed a font that does or use a different character. Nothing has changed in that regard.

But the default insert special character list is just the chars that make-up the set of html named entities so support for all of those should be good in most decent fonts.

AFWIW, the epub 3.4 spec does include a new change to allow remote fonts now. So using an external url in a font stylesheet font face is now allowed as long as it is properly listed in the manifest and the correct manifest property is set on the xhtml files that use it.
KevinH is online now   Reply With Quote
Old 09-24-2026, 03:48 PM   #71
BeckyEbook
Wizard
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: 1,060
Karma: 3999999
Join Date: Jan 2017
Location: Poland
Device: Various
I just released the SpecialCharacterConfig plugin for early adopters.
BeckyEbook is offline   Reply With Quote
Old 09-24-2026, 06:43 PM   #72
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: 10,093
Karma: 7640000
Join Date: Nov 2009
Device: many
Wonderful. I will give it a test run tomorrow.
KevinH is online now   Reply With Quote
Old Yesterday, 05:31 AM   #73
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 721
Karma: 721246
Join Date: Dec 2017
Device: Kobo
That look promising.

I have a few questions:
What happens if a user creates two groups with the same name? And what if the user group is the same as one of the built-in groups?
I suggest that each groups are readed individualy, so in case of dupicate, it just append regardless of the presence of a other one.

By the way, the built-in characters will it use a "special_characters.xml" file in the software directory as source, or will it be hardcoded? The first option will be good for providing an example file that's easy to share.

Finally, I suggest that "special_characters.xml” allow the insertion of character combinations. A very simple use case is that any country flag emoji 🇦🇶 is actually a combination of 2 different Unicode characters. And many emoji can require more.
The simplest solution would be to allow the "hex" attribute to have multiple codepoints separated by spaces.

<cp hex="1F1E6 1F1E6" label="" desc="antarctica flag"/>
<cp hex="1F3F3 FE0F 200D 1F308" label="" desc="rainbow flag"/>

Last edited by un_pogaz; Yesterday at 06:00 AM.
un_pogaz is offline   Reply With Quote
Old Yesterday, 06:55 AM   #74
BeckyEbook
Wizard
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: 1,060
Karma: 3999999
Join Date: Jan 2017
Location: Poland
Device: Various
I checked, and you can have several groups with the same name – in fact, they don't even have to have a name and can look like this: []

As for the combination of characters – I’ll leave that decision up to Kevin. IMVHO, it’s a bit over the top, but maybe I’m just stuck in the insular world of books, not emojis I'm simply looking at the practical aspects of ensuring that emojis display correctly on standard e-readers. But the world is changing, so who knows…
BeckyEbook is offline   Reply With Quote
Old Yesterday, 08:26 AM   #75
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: 10,093
Karma: 7640000
Join Date: Nov 2009
Device: many
Many emojis fit in one 32 bit codepoint. Many do not. Some emojis require zero width joiner chars. So let me think about this.

Grapheme Clusters are one of those things that the unicode standard has way overthought and counting those as one codepoint (even though multiple) messes with huge amounts of installed software. Frankly they are graphics/images trying to masquerade as some form of text.

I think if I wrote an epub the uses emojis that are more than one 32 bit unicode codepoint long I would use svg scalable image versions as most platforms, even if the device supports them, they typically includes their own version of the emoji which can be significantly visually different.

Either way these are not true single special characters but instead strings, that clips might be better suited for.

Something to think about for the future, not this release.
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
PageEdit 2.1.0 - Insert Special Character not working BetterRed Sigil 0 05-17-2024 10:01 PM
Add title="" to h* based on existing TOC -- suggestion for new feature (or plugin?) Mister L Sigil 82 09-11-2020 09:09 AM
"insert special character" in editor rjwse@aol.com Editor 5 08-27-2019 08:31 PM
Insert special character: some niggles Phssthpok Editor 2 11-19-2016 12:55 PM
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" therealjoeblow Calibre 15 07-25-2011 03:14 PM


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


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