|
|
#61 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,072
Karma: 7518950
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; Yesterday at 01:02 PM. |
|
|
|
|
|
#62 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,072
Karma: 7518950
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,049
Karma: 3883259
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,072
Karma: 7518950
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,772
Karma: 212614993
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Good stuff you two!
|
|
|
|
|
|
#66 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,553
Karma: 182340325
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Anyone running Windows and interested in testing this compile can download Sigil-2.8.5-Windows-x64-Setup.exe.
The SHA-256 for this compile of Sigil-2.8.5-Windows-x64-Setup.exe is: 4ABD326D9857A2AC83F1557EB715EA66358F6C810123B54A50 CC10D6370450B0 I've also included the sample special_characters.xml which goes into sigil's preferences directory (C:\Users\<usernames>\AppData\Local\sigil-ebook\sigil is the default). |
|
|
|
|
|
#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,049
Karma: 3883259
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. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |