Thread: Spell Checker
View Single Post
Old 03-12-2020, 03:27 PM   #15
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Is there a way to use the selection in a Saved Search?
Guilty as charged

I was brought up to always italicize foreign words (most anyway) when used in English text, so that one wasn't really about spell checking

In that one I was was seeing if there was a general purpose F&R to 1) highlight a foreign word (e,g, ¿atencinó?), 2) run a saved search that would replace whatever the selections was with something like <span lang=sp><i>\1</i></span>.

Thought maybe a 'place holder' like

find: _SELECTION
replace: <span lang=es><i>\1</i></span>

Replace All

would allow a flexible saved search for (in this case) Spanish words (Had the side benefit of not spell checking against the English dictionary). Could have one for German, one for Russian, etc.

I've used your suggestion a little which works, but there's multiple steps; overkill if there's only a single occurrence of the foreign word/phrase.

If the book has multiple languages, German, Russian, and English it gets fiddly.

What would be nice is an option in Spell Checker to insert <span lang= xx> ... </span) around the 'so called' mis-spelled word with the option to choose the language

----------------------------------------------------------------

This tread was about something different

theducks' comment:

Quote:
My one gripe with all of them. Flagging UK English spelling (US Locale PC)
seems to be how dictionary comments got started

I was only seeing if there was a way to operate within Spell Check more efficiently


PS: thanks for the tip about en-US-GB.txt

Last edited by phossler; 03-12-2020 at 03:40 PM.
phossler is offline   Reply With Quote