Greetings!
I would like to know if there is a way to set the language for each source of my recipe. For instance, French for Le Monde, Spanish for El País and so on...
Here is the detailed reason why I need to do this. But in a few words, Kindle's Vocabulary Builder doesn't work properly with multilingual documents. So, I'm trying to figure out a way to fix this problem and maybe if there is a way to set the metadata language for each source it may work.
Here is how my recipe looks like.
Edit: In red below is what I want to do. Set the language (in red) for each source.
Quote:
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1427664515(BasicNewsRecipe):
title = 'Op-Ed An\xe1lises Di\xe1rios'
oldest_article = 1
max_articles_per_feed = 100
auto_cleanup = True
feeds = [
("Diplomatie : Toute l'actualit\xe9 sur ...", b'http://www.lemonde.fr/diplomatie/rss_full.xml'),French
(b'Politics Opinion Articles - Project Syndicate RSS-Feed', b'http://www.project-syndicate.org/rss/politics'),English
(b'Post Western World', b'http://www.postwesternworld.com/feed/'),English
(b'Boletim Mundorama', b'http://mundorama.net/feed/'),Portuguese
(b'Esglobal', b'http://www.esglobal.org/feed/'),Spanish
("Crise de l'euro : Toute l'actualit\xe9...", b'http://www.lemonde.fr/crise-de-l-euro/rss_full.xml'),French
(b'Economics Opinion Articles - Project Syndicate RSS-Feed', b'http://www.project-syndicate.org/rss/international-economics'),English
(b'Folha.com - Colunas - Matias Spektor', b'http://feeds.folha.uol.com.br/colunas/matiasspektor/rss091.xml'),Portuguese
(b'Global Health & Development', b'http://www.project-syndicate.org/rss/growth-and-development'),English
(b'World Affairs', b'http://www.project-syndicate.org/rss/asia'),English
("Editoriaux : Toute l'actualit\xe9 sur ...", b'http://www.lemonde.fr/editoriaux/rss_full.xml'),French
]
|