Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 09:43 PM   #1
byword
Enthusiast
byword began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
Suggestion for Improving the "Insert Special Character" Feature

I posted a suggestion regarding the Insert Special Character feature in the New Features... thread, and I actually tried implementing Calibre's Insert Special Character tool into Sigil. I built this prototype with the help of AI, and since it's just the initial version, the search function hasn't been implemented yet.

I created this sample mainly to explain to KevinH what kind of feature I was envisioning.
Here is what Sigil's current Special Character dialog looks like:


In my line of work, I rarely have a use for the characters currently provided there. Instead, I frequently use circled numbers, various diamond bullets, and mathematical symbols. Because the books I produce are so diverse, I also use characters from multiple languages, such as Greek and Russian, for parallel notation.

Calibre's EPUB editor makes it very easy to find these specific types of characters, which is why I tried applying this feature to Sigil.
In Calibre's Special Character tool, you can view special characters by category, and if you type "circle" in the search bar, you can easily find circled numbers.

This is Calibre's Special Character dialog:


And this is what it looks like when applied to Sigil:


Since I had little use for Sigil's default Special Characters, I previously registered my frequently used codes and used a custom-built version of Sigil. However, because I use such a wide variety of codes, I still often found myself having to search the internet for Unicode values. That is why I wanted to propose merging Calibre's Special Character functionality into Sigil.

I would appreciate hearing other people's opinions on this proposed direction for the feature.
Attached Thumbnails
Click image for larger version

Name:	스크린샷 2026-09-10 101154.png
Views:	44
Size:	242.7 KB
ID:	225815   Click image for larger version

Name:	스크린샷 2026-09-10 101838.png
Views:	60
Size:	147.6 KB
ID:	225816   Click image for larger version

Name:	스크린샷 2026-09-10 102313.png
Views:	46
Size:	140.8 KB
ID:	225817  
byword is offline   Reply With Quote
Old Today, 07:01 AM   #2
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 365
Karma: 2581190
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on iphone and kindle cloud reader
Quote:
I frequently use circled numbers
Another way to get circled numbers if you are using Ubuntu is to enable the compose key (usually right control key). There are 5936 symbols on tap and you can make your own additional ones, including any which kind of boilerplate, by creating a new file called .XCompose where you make them. To get circled numbers or letters you type right ctrl, (, what you want circled, ) and there it is. Circled 50 is right ctrl, (, 5, 0, )
rjwse@aol.com is offline   Reply With Quote
Advert
Old Today, 07:03 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: 9,993
Karma: 7518950
Join Date: Nov 2009
Device: many
This seems overly huge, even with a filter/search feature. It simply provides every single unicode character based on unicode code class categories. This includes characters from dead languages and glyphs/characters that many fonts do not support. My bet is 98% of these are never needed by most users of Sigil.

So you need to apply Pareto's rule here and identify the 20% of characters that cover the 80% of users needs. This is what Sigil's Insert Special Character already tries to do based on a study done a few years back based on already published epubs and character and glyph usage which includes font availability.

You do know you can already copy and paste from any open document and browser to add any character to Sigil, or just type in its numeric entity directly, or create clips for frequently used characters or strings, right? Also most OS's already have built in ways to compose characters and allow for selections. MacOS certainly had. Alternatively you could just keep a text file your commonly used characters that lie outside the mainstream, or just bookmark your favourite unicode website in your browser.

But perhaps scaling this down in some sane way might makes sense. As it stands now it is overkill that duplicates either built in OS compose character tables and functions or duplicates what is available easily in any browser, for very little general user benefit.

But I can not fully judge that as I can not see what code changes are needed and how much memory this takes up.

So please post a diff of your proposed changes or point us to them in your github account repo so we can see for ourselves how much code and memory this takes. If it can be condensed down in some sane way, then "maybe".

Last edited by KevinH; Today at 07:10 AM.
KevinH is online now   Reply With Quote
Old Today, 07:34 AM   #4
elibrarian
Imperfect Perfectionist
elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.elibrarian ought to be getting tired of karma fortunes by now.
 
elibrarian's Avatar
 
Posts: 987
Karma: 870414
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
If the OP is on Windows, there's tools like BabelMap, Unicodia or even the built-in Charmap.exe (in advanced mode). IMHO they're way more sophisticated than the Calibre's Insert Special Character.

If Sigil should be bettered on that point, it would be nice to have the possibility to put one's own most used special characters into the dialog, possibly via a configuration file/ini/whatever.

Regards,

Kim
elibrarian is offline   Reply With Quote
Old Today, 08:49 AM   #5
byword
Enthusiast
byword began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Apr 2022
Device: Onyx Leaf 3
I agree with the feedback that Calibre's Special Characters feature is indeed somewhat excessive.

The approach suggested by elibrarian—allowing users to directly add or remove character codes—seems like a great alternative. Characters that I use frequently might be useless to others, and even if 99% of people use a certain character, it is redundant if I have no need for it. That said, Calibre's "Favorites" feature was definitely appealing.

The special characters required vary widely depending on the language. Circled numbers are just one example; when formatting books, publishing often demands Latin extensions, Cyrillic, units of measurement, various bullet shapes (circles, squares, triangles, diamonds, clovers, etc.), and all sorts of brackets. In Korea, characters like ÄãÑßÞæç are never used. Instead, for digital accessibility, distinct Hanja character codes like 不不, 金金, 樂樂樂樂, and 力力 are often necessary. While they may appear identical, their pronunciations and contexts differ in Korea, so distinct codepoints must be used for screen readers and accessibility tools.

I edit around 30 EPUB titles every month. Because of this, I frequently need to insert a wide variety of characters across different types of books. While I have tried Windows' default character picker as well as third-party character input tools, Sigil's Special Characters feature remains the most convenient.
Currently, I modify the SelectCharacter.cpp file directly to include around 300 characters that I frequently use, and then build Sigil myself. Please refer to the attached image.
The only inconvenience is having to download the source code, replace SelectCharacter.cpp, and rebuild every time a new update is released.

Looking back, the reason I was able to insert characters so quickly was that I had already customized the Special Characters list with the codes I use most. So yes, allowing users to add or remove their preferred character codes seems to be the best solution. If others like this approach, I can give it a try and put together a sample.
Attached Thumbnails
Click image for larger version

Name:	스크린샷 2026-09-10 210541.png
Views:	6
Size:	132.0 KB
ID:	225821  
byword is offline   Reply With Quote
Advert
Reply


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:29 PM.


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