Tool Translator++ 4.9.28 Standard Version / Developer Version

5.00 star(s) 1 Vote

Itsuka Shiro

Newbie
May 2, 2021
61
48
How to write the rule of skipping all lowercase letters and numbers?

Thank you = translate
thank you = no translate

Thank you very much for your help
Add this:
/\b[a-z0-9]+\b/g
If you do, it will not translate numbers or words into lowercase.
1707319399276.png
 
Last edited:

Xanax1488

Member
Feb 13, 2021
234
304
does anyone know how to make the translator pick up whole long sentences instead of translating 1 line at a time?
because of this the meaning is lost when I translate from English.
I think it happens because of word wraping
and it's a mess.
 

Zach1986

New Member
Aug 11, 2023
5
1
Add this:
/\b[a-z0-9]+\b/g
If you do, it will not translate numbers or words into lowercase.

No, what I mean is that even if it's a sentence, the entire line only has lowercase letters. If there are no uppercase letters, it won't be translated

As long as there are capital letters, they will be translated



For example, This sentence = There are capital letter , translate

for example, this sentence = All lowercase letters, no translate



Currently, what I am writing is:/^ [a-z0-9]+/gm,

But they only ignore the preceding words and don't know how to write spaces and the following words



Thank you very much for your help :coffee:

QQ图片20240207235917.png

All lowercase letters,I want to ignore it, I don't want it to be translated
 
Last edited:

Itsuka Shiro

Newbie
May 2, 2021
61
48
No, what I mean is that even if it's a sentence, the entire line only has lowercase letters. If there are no uppercase letters, it won't be translated

As long as there are capital letters, they will be translated



For example, This sentence = There are capital letter , translate

for example, this sentence = All lowercase letters, no translate



Currently, what I am writing is:/^ [a-z0-9]+/gm,

But they only ignore the preceding words and don't know how to write spaces and the following words



Thank you very much for your help :coffee:

View attachment 3334171

All lowercase letters,I want to ignore it, I don't want it to be translated
Regular expressions are like mathematics if you don't describe the problem well, it becomes impossible to solve:
/^(?=.*[a-záéíóúñü])(?!.*[A-ZÁÉÍÓÚÑÜ]).*$/gm
or
/^(?=.*[a-záéíóúñü])(?!.*[A-ZÁÉÍÓÚÑÜ]).*$/g
I don't have a suitable trans file to test
 

Zach1986

New Member
Aug 11, 2023
5
1
“Itsuka Shiro,帖子:12907847,成员:3654430” said:
正则表达式就像数学一样,如果你不能很好地描述问题,它就变得不可能解决:
/^(?=.*[a-záéíóúñü])(?!.*[A-ZÁÉÍÓÚÑÜ]).*$/gm

/^(?=.*[a-záéíóúñü])(?!.*[A-ZÁÉÍÓÚÑÜ]).*$/g
我没有合适的 trans 文件来测试
[/引用]


T H A N K S !!
 
  • Like
Reactions: Itsuka Shiro

F4S1

Member
Aug 29, 2019
118
104
If you have already installed the plugins that broken_division shared, please re-download translator ++ 5.3.31b and unzip it, then download and install the plugins that I shared with you. THOSE THAT I SHARED WITH YOU.
Can you please upload these addons to another host like kioskloud.io?
 
5.00 star(s) 1 Vote