Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-06-2017, 09:20 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
adding language attributes

Hi

I have a French language book with lots of Italian verses. They are cleanly identified with the paragraph style "Chanson".

I tried to write:

Code:
<p lang="it" class="Chanson">some Italian verse here</p>
but it does not seem to be enough. The words within this paragraph style are not reported as Italian with the spell checker. I'm probably missing something...


Edit: probably the Italian dictionary.... (shame on me).

Without it, I already achieve something. the French spellchecker is no more cluttered with - of course unknown - Italian words. Italian words are also reported as such with the Calibre report tool (# from spellchecker).

Last edited by roger64; 02-06-2017 at 09:50 AM. Reason: dictionary
roger64 is offline   Reply With Quote
Old 02-07-2017, 12:29 PM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
You may also want to add xml:lang="it" as well:

Code:
<p lang="it" xml:lang="it" class="Chanson">some Italian verse here</p>
HTML = lang
XHTML = xml:lang

https://idpf.github.io/a11y-guidelin...html/lang.html

Having both is helpful for tools/readers that may be looking for one or the other.

Quote:
Originally Posted by roger64 View Post
Edit: probably the Italian dictionary.... (shame on me).
Fantastic. Thanks for posting this. Definitely helpful when people post the solution to their own problem!
Tex2002ans is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Foreign Language Dictionaries Alymon Amazon Kindle 16 08-05-2014 01:44 PM
Adding class attributes in bulk kuvera Sigil 4 03-31-2014 06:36 AM
Problem: Sigil Auto-adding Attributes to <p>'s drummerboy Sigil 7 08-19-2012 10:50 AM
Adding books with same name, different language magphil Calibre 2 11-22-2011 12:30 PM
Adding language drMerry Library Management 3 04-14-2011 04:20 PM


All times are GMT -4. The time now is 07:36 AM.


MobileRead.com is a privately owned, operated and funded community.