|
|
#1 |
|
Enthusiast
![]() 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. |
|
|
|
|
|
#2 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 365
Karma: 2581190
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on iphone and kindle cloud reader
|
Quote:
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#4 |
|
Imperfect Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#5 |
|
Enthusiast
![]() 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. |
|
|
|
| Advert | |
|
|
![]() |
|
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 |