|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
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 10: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 | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding Foreign Language Dictionaries | Alymon | Amazon Kindle | 16 | 08-05-2014 02:44 PM |
| Adding class attributes in bulk | kuvera | Sigil | 4 | 03-31-2014 07:36 AM |
| Problem: Sigil Auto-adding Attributes to <p>'s | drummerboy | Sigil | 7 | 08-19-2012 11:50 AM |
| Adding books with same name, different language | magphil | Calibre | 2 | 11-22-2011 01:30 PM |
| Adding language | drMerry | Library Management | 3 | 04-14-2011 05:20 PM |