Thread: Regex examples
View Single Post
Old 02-18-2018, 06:04 PM   #554
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,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by doubleshuffle View Post
Thanks, I wasn't aware of that. Does the language info have to be in the html tags, or can I also put it in the stylesheet?
In the HTML tags.

The code has the potential to look really ugly, so I would use it sparingly.

Text-to-Speech

For example, this would help text-to-speech read the words using the proper accents:

Code:
<p>I like to eat tacos.</p>
<p class="spanish" lang="es" xml:lang="es">Me gusta comer tacos.</p>
<p>Go with me to the store.</p>
"tacos" in Spanish sounds like "ta-cos", while English more like "ta-cohs".

"me" in Spanish is spoken like "may", while English is spoken like "mee".

Or you can mark a small group of words. For example, some styles make foreign words italic:

Code:
<p>The con artist ordered <i lang="es" xml:lang="es">pollo con carne</i> from the Mexican restaurant.</p>
Spellcheck

Also, Calibre supports Multi-Language Spellcheck, so when you use the Spellcheck word list you can see the differences:

Click image for larger version

Name:	CalibreMultiLanguageExample.png
Views:	391
Size:	24.8 KB
ID:	162390

So you can see that:

con (Spanish) =/= con (English)
Tex2002ans is offline   Reply With Quote