View Single Post
Old 07-09-2014, 09:50 AM   #17
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,811
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BobC View Post
Just thinking laterally on this - if you consider the paragraphs as being in a "foreign" language for which there is no dictionary would this do the trick ?

So you would need to set the paragraph to have a style where the language code was say "en-oe" (for Old English). The trouble here would be that doing may be more effort than the benefit. It would mean wrapping the portion of text in a <div lang="en-oe"> or using CSS styling to achieve the same effect.

If Calibre interpreted "en-oe" as English it might need a dummy language code.

HOWEVER a quick check seems to indicate that the Editor will treat any declared language code for which it doesn't have a dictionary as that of the main file declaration or in the absence of a language declaration in the header as English (at least on my machine).

So a workaround would appear to be to install a dictionary with no words in common with English (Klingon ?) and declare the undesired paragraphs as that language.

Of course if there was actually a "en-oe" dictionary that would be great.

EDIT - given the context Middle English might have been a better suggestion, however it's the general principle I was trying to illustrate.

BobC
Thanks Bob, I wondered about using a language too, but having to create a pseudo dictionary means it's contrived solution - on principle I don't like using contrived solutions to workaround trivial annoyances. IMO Tex's "calibre_ignore_spellcheck" class would be more elegant - but...

BR
BetterRed is online now   Reply With Quote