![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
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> 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 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
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> 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. Fantastic. Thanks for posting this. Definitely helpful when people post the solution to their own problem! |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |