|
|
#61 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#62 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
|
|
|
|
|
#63 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,060
Karma: 3999999
Join Date: Jan 2017
Location: Poland
Device: Various
|
I built Sigil and… it just works!
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. Of course, I recommend that other testers conduct additional testing. |
|
|
|
|
|
#64 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
|
|
|
|
|
#65 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,779
Karma: 212614993
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Good stuff you two!
|
|
|
|
|
|
#66 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,651
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). Last edited by DNSB; Yesterday at 09:56 PM. Reason: Updated to latest version |
|
|
|
|
|
#67 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
|
|
|
|
|
#68 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#69 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#70 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#71 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,060
Karma: 3999999
Join Date: Jan 2017
Location: Poland
Device: Various
|
I just released the SpecialCharacterConfig plugin for early adopters.
|
|
|
|
|
|
#72 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,093
Karma: 7640000
Join Date: Nov 2009
Device: many
|
Wonderful. I will give it a test run tomorrow.
|
|
|
|
|
|
#73 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#74 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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…
|
|
|
|
|
|
#75 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
![]() |
|
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 |