Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-29-2024, 12:01 PM   #16
oston
Connoisseur
oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.
 
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.
oston is offline   Reply With Quote
Old 05-29-2024, 01:28 PM   #17
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Advert
Old 05-29-2024, 01:32 PM   #18
oston
Connoisseur
oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.
 
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
Quote:
Originally Posted by KevinH View Post
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.
Thanks, very much, Kevin.
oston is offline   Reply With Quote
Old 05-29-2024, 03:20 PM   #19
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Old 05-29-2024, 04:08 PM   #20
oston
Connoisseur
oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.
 
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?
oston is offline   Reply With Quote
Advert
Old 05-29-2024, 04:20 PM   #21
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Old 05-29-2024, 04:22 PM   #22
oston
Connoisseur
oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.
 
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.
oston is offline   Reply With Quote
Old 05-29-2024, 04:24 PM   #23
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
I will create a pre-release CI build for you to test with.
KevinH is offline   Reply With Quote
Old 05-29-2024, 04:37 PM   #24
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,536
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by oston View Post
But when I try to replace with ā using the \x{0101} the á is replaced with the string \x{0101}
With the current Sigil version, you can use the \x{0101] in the find field but you will need to use the replacement character in the replace field.

Find: \x[0101]
Replace: ā

deleted comment about building from source

Last edited by DNSB; 05-29-2024 at 04:40 PM.
DNSB is offline   Reply With Quote
Old 05-29-2024, 04:43 PM   #25
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Old 05-29-2024, 04:59 PM   #26
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,223
Karma: 19000635
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:
Originally Posted by DNSB View Post
With the current Sigil version, you can use the \x{0101] in the find field but you will need to use the replacement character in the replace field.

Find: \x[0101]
Replace: ā

deleted comment about building from source
That's kinda what I was referring to in my previous post. Couldn't the find and replace be done using "normal", string search, mode instead of "regex"??

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.
Turtle91 is offline   Reply With Quote
Old 05-29-2024, 06:21 PM   #27
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
Yes that normal replacement would work as well.
KevinH is offline   Reply With Quote
Old 05-29-2024, 06:38 PM   #28
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
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.
Working great on Windows and Linux!
DiapDealer is offline   Reply With Quote
Old 05-29-2024, 08:36 PM   #29
oston
Connoisseur
oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.
 
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
Quote:
Originally Posted by KevinH View Post

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/

...

Please do report back if this works for you.
Installed V 2.2, Kevin. The search and replace with {HHHH} works perfectly.
Many thanks indeed,
oston is offline   Reply With Quote
Old 05-29-2024, 08:57 PM   #30
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:21 PM.


MobileRead.com is a privately owned, operated and funded community.