Re: Eliminate Chinese Text

2023-03-21 Thread Kim Mosley
I used Kaveh’s code just because it came first and it worked for all but a few… job is done. Thanks everyone. Though Dan’s is my favorite solution. Kim > On Mar 21, 2023, at 11:30 AM, Dan Barrett wrote: > > [^[:ascii:]]+ will match everything that is not an ASCII character (character > code

Re: Eliminate Chinese Text

2023-03-21 Thread Dan Barrett
[^[:ascii:]]+ will match everything that is not an ASCII character (character codes 0-127) so it will ignore letters, digits, punctuation, etc. On Tue, Mar 21, 2023 at 12:08 PM Kim Mosley wrote: > What would be the grep pattern to either eliminate Chinese Text or to > select English Text. The d

Re: Eliminate Chinese Text

2023-03-21 Thread Fletcher Sandbeck
You can find a Unicode characters using \x{} and then use that pattern to build up a range. The following pattern finds all characters that are not within the range of Latin characters with most common extensions and punctuation. You can tighten or loosen based on the ranges listed here htt

Re: Eliminate Chinese Text

2023-03-21 Thread Kaveh Bazargan
Maybe a start: ^[^A-ž0-9]+$ So lines that do not contain - Roman letters (inc diacritics) - digits On Tue, 21 Mar 2023 at 16:08, Kim Mosley wrote: > What would be the grep pattern to either eliminate Chinese Text or to > select English Text. The document is 230 pages. > 河大地(悟後十方空)。 > C

Eliminate Chinese Text

2023-03-21 Thread Kim Mosley
What would be the grep pattern to either eliminate Chinese Text or to select English Text. The document is 230 pages. 河大地(悟後十方空)。 Case: A monk asked Master Langya Jiao, "Purity is originally so--how does it suddenly produce mountains, rivers, and the great earth?"(When deluded, the world exists.)

Re: Change text color only in .txt files

2023-03-21 Thread Fluxom
@Satomi Yoneki Well there you go! That did it. Many thanks for the help. Appreciated 👍 On Monday, 20 March 2023 at 19:12:46 UTC-6 Satomi Yoneki wrote: > You can save the text color settings as a custom color scheme and use > the color scheme here. > Open Preferences > Languages > Language-speci