diff --git a/recipes/asianreviewofbooks.recipe b/recipes/asianreviewofbooks.recipe new file mode 100644 index 0000000000..f0912d8d98 --- /dev/null +++ b/recipes/asianreviewofbooks.recipe @@ -0,0 +1,51 @@ + +__license__ = 'GPL v3' +__copyright__ = '2012, Darko Miletic ' +''' +www.asianreviewofbooks.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class AsianReviewOfBooks(BasicNewsRecipe): + title = 'The Asian Review of Books' + __author__ = 'Darko Miletic' + description = 'In addition to reviewing books about or of relevance to Asia, the Asian Review of Books also features long-format essays by leading Asian writers and thinkers, to providing an unparalleled forum for discussion of key contemporary issues by Asians for Asia and a vehicle of intellectual depth and breadth where leading thinkers can write on the books, arts and ideas of the day. Widely quoted and referenced, with an archive of more than one thousand book reviews, it is the only web resource dedicated to Asian books. And now, with the addition of the new premium content, the Asian Review of Books, is a must-read publication.' + publisher = 'The Asian Review of Books' + category = 'literature, books, reviews, Asia' + oldest_article = 30 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'cp1252' + language = 'en_HK' + publication_type = 'magazine' + masthead_url = 'http://www.asianreviewofbooks.com/new/images/mob_arb.png' + extra_css = """ + body{font-family: serif} + .big {font-size: xx-large} + .bold {font-weight: bold} + .italic {font-style: italic} + .small {font-size: small} + img {display: block} + """ + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + + remove_tags = [dict(name=['object','script','iframe','embed'])] + remove_attributes = ['style', 'onclick'] + feeds = [(u'Articles' , u'http://www.asianreviewofbooks.com/new/rss.php')] + + def print_version(self, url): + root, sep, artid = url.rpartition('?ID=') + return root + 'getarticle.php?articleID=' + artid + '&stats=web' + + def preprocess_raw_html(self, raw, url): + return 'title' + raw + '' + \ No newline at end of file diff --git a/recipes/icons/asianreviewofbooks.png b/recipes/icons/asianreviewofbooks.png new file mode 100644 index 0000000000..31f6d42ce0 Binary files /dev/null and b/recipes/icons/asianreviewofbooks.png differ diff --git a/src/calibre/utils/localization.py b/src/calibre/utils/localization.py index dd07939559..9384047d2c 100644 --- a/src/calibre/utils/localization.py +++ b/src/calibre/utils/localization.py @@ -134,6 +134,7 @@ _extra_lang_codes = { 'en_CZ' : _('English (Czech Republic)'), 'en_PK' : _('English (Pakistan)'), 'en_HR' : _('English (Croatia)'), + 'en_HK' : _('English (Hong Kong)'), 'en_ID' : _('English (Indonesia)'), 'en_IL' : _('English (Israel)'), 'en_RU' : _('English (Russia)'),