speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help with adjusting a regex for issue github#946


From: Jérémy Prego
Subject: help with adjusting a regex for issue github#946
Date: Sun, 15 Sep 2024 10:28:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Betterbird/102.15.1

hello,

in order to regain the comfort I had before orca decided to remove the MultiCase, I decided to create a regex to handle this case, but I'm still left with a few side effects

currently, I've come to this:
complexSymbols:
separateCapital    ([A-Z]*?[a-z]{1,})([A-Z]{1,}[a-z]*?\b)

symbols:
separateCapital    \1 \2    none


to keep things simple, you generally have to separate the different boxes so that the word is pronounced correctly. for example: OpenSMTPD should become open SMTPD

My problem is that in such a case, if there is a "." or a "," after openSMTPD, the characters are pronounced literally, instead of being paused.

I have tested many things, such as
complexSymbols:
separateCapital    ([A-Z]*?[a-z]{1,})([A-Z]{1,}[a-z]*?\b)([,.]?)

symbols:
separateCapital    \1 \2\3    none

in this last example, it's a bit better since the "." and the "," do indeed make their pause, but they also do it in the case of a url for example openSMTPD.toto.com whereas I'd like to hear openSMTPD [dot] toto [dot] com

as I still have a lot to learn about regex, I'd like a little help, if what I want to do is possible in regex. :)

Thank,

Jeremyp3 :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]