![]() |
#1 |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Apr 2012
Device: Kindle Fire
|
Spelling language
My PC is in the UK and naturally set up only for English UK.
I have a number of books that I have got from US sources, and if I check spelling using Edit Book, I get a lot of errors reported where a US spelling is used in the book, but the spell checker reports it as an English(GB) word. I would like to eliminate these reports and check some books using a US dictionary. In the example I am looking at currently, there is no language defined in the book's (epub) metadata. In Edit Book preferences, I have set English-US as the preferred Variant for the English language In the Calibre Help file it says " .... Language information is taken from the books metadata and from lang attributes in the HTML files. ...." I have searched "All text files for any lang codes, and the only one I can find is on the title page as follows. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> I have also searched for a GB text string and got no hits. So something is still forcing the spell-checker to identify these words as English (GB). Can anyone point me in the direction of a possible solution please. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
BTW, look in the content.opf <dc:language>en-GB</dc:language> |
|
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Apr 2012
Device: Kindle Fire
|
Hi & Thanks for the help.
Quote:
The one for this book has only one entry with the word "language" included. <dc:language>en</dc:language> So this doesn't appear to be forcing the spell checker towards English (GB). Colin |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Change it to
<dc:language>en-US</dc:language> |
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@ColMac - if your books are either US spelling or UK spelling (i.e. not mixed within a book) try switch dictionaries Edit->Preferences->Editor Settings->Manage Dictionaries.
If you have books with both or you want a swiss-army-knife to cover all books then there are some EN dictionaries at Apache that carry both spelling variants (e.g. 'spelt' and 'spelled', but only 'dispelled' and 'bespelled' ![]() BR |
![]() |
![]() |
![]() |
#6 |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Apr 2012
Device: Kindle Fire
|
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Apr 2012
Device: Kindle Fire
|
Yes I do have both types thanks, and it was "switch dictionaries" that brought me to this problem.
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The language can be set in other places as well. One of the sources of books I have sets the language at the top of each html file. But, it can be set on a tag or in the class used.
|
![]() |
![]() |
![]() |
#9 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The metadata.opf in the library folders is a database backup for your books, it does not ever affect anything (except in the singular case of a calibre library Database Restore).
You want the content.opf in the ebook file, as viewed in the Editor. Quote:
The "lang" attribute can appear anywhere at all in the (x)html. See the w3schools guide to html language. |
|
![]() |
![]() |
![]() |
#10 | ||||
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Apr 2012
Device: Kindle Fire
|
Thanks again to all for their input.
Quote:
Quote:
Quote:
Yet my spell checker (with US selected as preferred variant) lists all the words as English (GB). Just in case, there is an error in that code, the whole line from the Titlepage.xhtml file is as follows Quote:
|
||||
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Apr 2012
Device: Kindle Fire
|
Just spotted that I had used lower case for "us". have changed it now to "US" and still no difference.
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@ColMac -- the books that you got from US sources -- if they are not copyrighted, is there a link to let someone else look at them?
|
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
About language and spelling | roger64 | Editor | 6 | 08-26-2014 12:22 PM |
Controlling spelling language | BobC | Editor | 9 | 08-06-2014 12:45 AM |
Spelling anomalies | DMB | General Discussions | 71 | 06-19-2012 07:55 AM |
Seriously thoughtful Spelling contractions | SameOldStory | Lounge | 47 | 09-08-2010 09:08 PM |
Spelling Macro | PieOPah | Workshop | 36 | 12-13-2008 02:27 AM |