![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Sep 2012
Device: Ipad
|
How to specify languages in postprocess_html?
Hi, I was trying to create a recipe with feeds in multiple languages. I am not familiar with programming and I did not find much help in the calibre manual regarding this. Can anyone advice me on this? I am particularly puzzled as to how calibre handles the lang attributes in the original html. Are they simply ignored? The source code of the feeds includes the lang attribute such as 'ja' or 'fr' but they all disappeared in the created file.
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,320
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre does not do anything with lang attributes in HTML.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Sep 2012
Device: Ipad
|
Then can you give me some pointers on how to pass the lang information to soup? When I check the individual HTMLs generated by the recipe, I see only
Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> The lang attribute is not there. Thanks! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Article download fails if I use postprocess_html function | oecherprinte | Recipes | 3 | 11-26-2013 04:17 PM |
postprocess_html receives html string instead of soup | Rackamouth | Recipes | 5 | 07-09-2013 01:43 PM |
Get article URL in postprocess_html | rmflight | Recipes | 5 | 11-29-2012 11:37 AM |
Languages That Can Be Used | Nathan Campos | Kindle Developer's Corner | 3 | 11-09-2010 04:51 PM |
postprocess_html | marbs | Recipes | 20 | 11-03-2010 10:11 PM |