Set your "other options" in the find/replace box to enable regular
expressions
All Kanji characters, paste the following into search.
([一-龯]+)
All Hiragana or Katakana characters paste the following into search.
([ぁ-んァ-ン]+)
note this 2nd one has 2 unicode ranges... you can reduce this to search for
only one. But the site I copied these ranges from lists Hiragana and
Katakana together. I presume the first is Hiragana, but I've really no
clue. If you're working with text, one of these might be familiar.
In the replace section, paste
$1
and while the cursor is active in the replace box, select format.
The site I copied the regex ranges from:
https://gist.github.com/terrancesnyder/1345094
About the brackets & parenthesis in REGEX searches:
https://stackoverflow.com/questions/9801630/what-is-the-difference-between-square-brackets-and-parentheses-in-a-regex
On Wed, Apr 14, 2021 at 9:07 PM Thomas Blasejewicz <nyuwa@hb.tp1.jp> wrote:
Good morning.
I have this not very long English text with occasional Japanese
characters in it.
I would like to search for ONLY the Japanese characters, naturally the
font is different from the English but attribut "regular" and size are
the same,
and if possible change their attributes (color, highlighting etc.).
Searching the net, I found:
https://ask.libreoffice.org/en/question/140748/how-do-i-search-for-a-specific-font-in-writer/
"The Find and Replace dialog (Control+H) should be able to search for
text by font. Leave the "Find" box blank. Then go Other options > Format
and fill in the "Family" box."
However, that does NOT work.
I tried to search for all sorts of things: format, attribute, language
etc., but so far nothing helped finding Japanese characters.
If anybody knows how to do that, I would be grateful for a hint.
Thank you.
Thomas
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems?
https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.