05-29-2024, 12:01 PM | #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. |
05-29-2024, 01:28 PM | #17 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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 01:30 PM. |
05-29-2024, 01:32 PM | #18 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
|
05-29-2024, 03:20 PM | #19 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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. |
05-29-2024, 04:08 PM | #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? |
05-29-2024, 04:20 PM | #21 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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.
|
05-29-2024, 04:22 PM | #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.
|
05-29-2024, 04:24 PM | #23 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
I will create a pre-release CI build for you to test with.
|
05-29-2024, 04:37 PM | #24 | |
Bibliophagist
Posts: 40,632
Karma: 157444382
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 04:40 PM. |
|
05-29-2024, 04:43 PM | #25 |
Sigil Developer
Posts: 8,160
Karma: 5450818
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 04:46 PM. |
05-29-2024, 04:59 PM | #26 | |
A Hairy Wizard
Posts: 3,228
Karma: 19001261
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. |
|
05-29-2024, 06:21 PM | #27 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Yes that normal replacement would work as well.
|
05-29-2024, 06:38 PM | #28 | |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
05-29-2024, 08:36 PM | #29 | |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Quote:
Many thanks indeed, |
|
05-29-2024, 08:57 PM | #30 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Great. Glad to hear it is working.
Thanks to all who tested and reported back. |
|
Similar Threads | ||||
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 05:54 PM |
RegEx or RE Function to apply [Change Case] Capitialize? | phossler | Editor | 20 | 05-03-2016 08:53 PM |
Change Case with Regex Problem | nqk | Editor | 4 | 07-25-2014 11:38 PM |
RegEx to change but not all | phossler | Sigil | 2 | 01-11-2013 10:30 AM |
Is it possible to change Calibre-Server.exe to change to a service for Windows | roadrunnerm | Calibre | 1 | 10-19-2012 07:44 PM |