Hello, I need to start all segments with upper case. Just the first word of each segment. Is there a regular expression one can use? Thanks in advance!
Hello, I need to start all segments with upper case. Just the first word of each segment. Is there a regular expression one can use? Thanks in advance!
\p{Ll} works just fine
It catches each next lowercase letter anywhere as shown in the GIF file above.
^\p{Ll} finds segments starting with a lowercase word but it also cycles through all lowercase letters in this word.
Dear colleagues, thanks so much for your proposals and contributions!! I will try them out when I am back from my holidays from the 2nd of November onwards and give you a feedback. The workflow with export for external review in Word seems the only possible so far.
If this is a case of replacing the first lowercase letter of a segment with it's uppercase equivalent, would it maybe be possible to use TermInjector for this?
Thanks for that! In the end I filtered the segments with ^[a-z] and changed it manually to upper case. There are just around 100 segments. The workaround of Jerzy sounds good, but in this case it is not worth as too time consuming and maybe some other errors occur exporting and importing. Thanks to all!
If anyone is still looking for this, here is a brute force workaround to at least speed up doing the job manually. First you need to position the cursor in the Find box. This script will then put in "^a" and "A" in the find and replace boxes, followed by ^b and B and so on each time you press F1.
F1::
ReplaceaA()
{
lower := ["{^}a", "{^}b", "{^}c", "{^}d", "{^}e", "{^}f", "{^}g", "{^}h", "{^}i", "{^}j", "{^}k", "{^}l", "{^}m", "{^}n", "{^}o", "{^}p", "{^}q", "{^}r", "{^}s", "{^}t", "{^}u", "{^}v", "{^}w", "{^}x", "{^}y", "{^}z"]
upper := ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
static i := 1
send % lower[i]
sleep 150
send {Tab}
sleep 150
send % upper[i]
i++
return
}