![]() |
#16 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Many thanks for all this help.
These are old files that I am given to work with. Indesign handles then with no problems and I can handle the problem of these old fonts in InDesign. I just thought that I was doing something wrong with these searches in Sigil, but apparently not, since you say that supporting \x{0101} would need a code change. I tried Find: \x01x01, but I must have misunderstood your workaround because that did not work. But no need to do anything further with this. no need for support for \x{0101} just for this one case. Thanks, everyone for all the help and suggestions. |
![]() |
![]() |
![]() |
#17 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,981
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Yes, I will add support for \x{BLAH} where BLAH is either a string of 2, 4, or 6 hex chars.
With 6, I will convert it to uint32 and use fromUcs4 to build the replacement string. Last edited by KevinH; 05-29-2024 at 12:30 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#19 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,981
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Okay, I just pushed a fix for this to master.
The following *replacement* escapes will now be recognized: \x{hh} \x{hhhh} \x{hhhhhh} where h is any hex character (0-9, a-f, A-F). Note 1: the 6 hex character version is there to support the extended plane above the BMP allowing the first two hex chars to be less than or equal to "10" to indicate the plane. This may result in QChar pairs as needed to properly encode the entire value. Note 2: using < 2, 3, 5, >6 hex chars will result in that escape code being ignored and treated just like any other string of characters so remember to prepend a "0" when needed to fit one of the required formats. |
![]() |
![]() |
![]() |
#20 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Thanks, Kevin. I installed V 2.1, but the replace still replaces á with the string \x{0101}, rather than with ā.
See the screen capture. Is there something else I needed to do? |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,981
Karma: 5449552
Join Date: Nov 2009
Device: many
|
The fix was pushed to master just now. If you build your own from source you can see and test the results. If not, I can post a CI build of Sigil I just made if you let me know what platform, assuming Windows or Mac.
|
![]() |
![]() |
![]() |
#22 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Thanks, Kevin. I am not familiar with the process to build my own executable. I am running Sigil on Windows 11.
|
![]() |
![]() |
![]() |
#23 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,981
Karma: 5449552
Join Date: Nov 2009
Device: many
|
I will create a pre-release CI build for you to test with.
|
![]() |
![]() |
![]() |
#24 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,717
Karma: 152906060
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Find: \x[0101] Replace: ā deleted comment about building from source Last edited by DNSB; 05-29-2024 at 03:40 PM. |
|
![]() |
![]() |
![]() |
#25 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,981
Karma: 5449552
Join Date: Nov 2009
Device: many
|
And yes just putting the actual character in the replace field instead of its unicode value in hex works even before this change.
Either way .. here is a pre-release automated build of Sigil master for Windows. I have uploaded it to my personal github repo here: https://github.com/kevinhendricks/Bu...r_sigil_1.0.0/ You need to grab the file called: sigil-installer.zip Then unzip it and you should see the Sigil Windows installer. Please do report back if this works for you. And anyone else on Windows that is willing to test Sigil and report back issues before our next release, feel free to grab and use the same one. Last edited by KevinH; 05-29-2024 at 03:46 PM. |
![]() |
![]() |
![]() |
#26 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,151
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Find: á Replace: ā or Find: \x[0101] Replace: ā as DNSB suggested. It's always better to make Sigil consistent with itself because it reduces confusion, but sometimes simple gets the job done better/faster/stronger. |
|
![]() |
![]() |
![]() |
#27 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,981
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Yes that normal replacement would work as well.
|
![]() |
![]() |
![]() |
#28 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,799
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#29 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Quote:
Many thanks indeed, |
|
![]() |
![]() |
![]() |
#30 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,981
Karma: 5449552
Join Date: Nov 2009
Device: many
|
Great. Glad to hear it is working.
Thanks to all who tested and reported back. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Please help me to change the dictionary and change keyboard language! Manually usb | temp0rary | Onyx Boox | 1 | 06-13-2020 04:54 PM |
RegEx or RE Function to apply [Change Case] Capitialize? | phossler | Editor | 20 | 05-03-2016 07:53 PM |
Change Case with Regex Problem | nqk | Editor | 4 | 07-25-2014 10:38 PM |
RegEx to change but not all | phossler | Sigil | 2 | 01-11-2013 09:30 AM |
Is it possible to change Calibre-Server.exe to change to a service for Windows | roadrunnerm | Calibre | 1 | 10-19-2012 06:44 PM |