![]() |
#16 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
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 Last edited by BobC; 07-09-2014 at 07:28 AM. |
|
![]() |
![]() |
![]() |
#17 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#18 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Aren't quotes likely to be formatted differently, so it would be pretty easy to ignore them?
|
![]() |
![]() |
![]() |
#19 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
(the oxt imported into Libre Office without a complaint) BobC |
|
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
![]() |
![]() |
![]() |
#21 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Possibly, and if not then I guess one could make it so
But I'm not the problem, I have no problem ignoring the text no matter what the format ![]() ![]() As I've said, for me this issue falls into the nice-to-have/trivial-annoyance/wishful-thinkiing/in-your-dreams-BR... category. I never would have thought it would attract so much attention ![]() BR |
![]() |
![]() |
![]() |
#22 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
How do I mark a paragraph (or define a class) as using Estonian (it's code is 'et' ![]() Code:
.block10 { display: block; font-size: 0.75em; text-align: justify; text-indent: 18pt; padding: 0; margin: 0 } BR Last edited by BetterRed; 07-10-2014 at 08:24 AM. |
|
![]() |
![]() |
![]() |
#23 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you want to change the language of a tag inHTML you have to add the lang attribute, like this
<p lang="fr"> which changes the language to French. |
![]() |
![]() |
![]() |
#24 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Perfect - see attachment
And I don't need to install an Estonian dictionary to use the language tag, seemingly it just needs to be a valid one. ![]() BR |
![]() |
![]() |
![]() |
#25 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I was doing some back/forth help from Jellby with transcribing Greek letters, and he convinced me to start marking up Greek correctly. Here is how I handle it now: Quote:
http://www.unimelb.edu.au/accessibil.../language.html Quote:
"Assisting speech synthesizers" is extremely helpful with Text->Audio programs. As to the typography side of things, now that I have stumbled into the world of LaTeX, having the languages marked properly allows the hyphenation dictionaries to work, which is (REALLY) important. And for languages with completely foreign character sets like Chinese or Greek, it allows you to easily swap in a different font. There is also fantastic functionality built into LaTeX which easily allows you to swap between different rulesets (what quotation marks should be used, spacing rules around quotations, where linebreaks are allowed, etc. etc.). Who knows, maybe ereaders in the future would be able to do more fancy stuff like that too with properly marked-up text. Now, in a perfect world, you would mark every little saying as French, German, Spanish, etc. etc.... but that just takes way too long (the marginal benefit is not worth it to me), so I just settle on doing it for Greek. ![]() Priority #1 is to get the dang books digitized and up online... way lower priority can be to go back and add in the language markup as needed. (Or when I get around to LaTeXing the books). ![]() Last edited by Tex2002ans; 07-10-2014 at 01:05 AM. |
|||
![]() |
![]() |
![]() |
#26 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Like Tex I don't like faking the language code which is one reason I tried to come up with an empty dictionary approach. However as you can use any legal language code I think I'm going to use the one for Ido (io) - a little used variant of Esperanto and for which it is unlikely there is a dictionary ! (or much literature in the language)
Libre Office gets round this by having a setting under "Language" of "None" (Ignore spelling) but doesn't have a setting for Ido ![]() BobC |
![]() |
![]() |
![]() |
#27 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use lang="und" which is the ISO 639-3 code for undefined and will prevent the spell checker from operating.
|
![]() |
![]() |
![]() |
#28 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Tex2002ans & BobC both said, 'not a good idea to use fake language code.' You won't get any arguments from me on that. As I said before I don't like contrivances.
That's what lead me to seek a language-in-class solution - use-it whilst spell checking, then lose-it ![]() If/when I ever use it in the HTML it'll be transient. I was straightening out a 19th legal text recently that had a boatload of lengthy M.E. quotations, that's the sort of occasion when I might use a 'fake language'. Interesting exchange. I'd been wondering if the Tex2002ans handle was a 'nod' to TeX, seemingly not. Maybe TPTB would allow you to upgrade the x to an X, then it could be so :lol: Added : Kovid just flew in and dropped a nugget of knowledge ![]() BR Last edited by BetterRed; 07-10-2014 at 06:10 AM. |
![]() |
![]() |
![]() |
#29 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
Armed with that I've also found that : ang - Old English and enm - Middle English are probably what is needed for the Chaucer/Shakespeare stuff and do the job. Thanks Kovid for the pointer. |
|
![]() |
![]() |
![]() |
#30 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Added - It would seem that Sigil's spell checker does not ignore xml:lang="und" ![]() BR Last edited by BetterRed; 07-10-2014 at 08:38 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spell Check Suggestion | Tex2002ans | Sigil | 19 | 01-10-2013 08:45 PM |
Spell Check | GeckoFriend | Sigil | 5 | 06-15-2012 03:09 PM |
how to use spell check | richreads | Sigil | 2 | 01-24-2012 10:13 PM |
Disable spell check? | mariel9898 | Nook Developer's Corner | 0 | 03-26-2011 09:49 AM |
Enhancement suggestion. | moggie | Calibre | 1 | 01-01-2009 01:35 PM |