Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 11-19-2013, 11:13 AM   #1
GKinHK
Junior Member
GKinHK began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2013
Device: Kindle Paperwhite 2013
Le Monde recipe - accented characters prob

Hi
I'm new to the forum and hope that someone can help with a problem I have with the Le Monde recipe. I have googled the problem and used search on this forum but please be patient if I've missed a solution.

I'm using the latest version of Calibre for OS X (but the problem was there in earlier versions too). The Le Monde recipe downloads fine but the output mangles accented letters BUT only in the body of the article, not the headlines. For example

En Somalie, une attaque meurtrière menée par les Chabab
Le Monde | 19.11.2013 à 15h49 • Mis à jour le 19.11.2013 à 16h31

Au moins 28 personnes ont été tuées mardi 19 novembre dans l’attaque-suicide puis l’assaut par un commando d’islamistes chabab contre un poste de police de Beledweyne, ville de garnison du centre de la Somalie, selon un haut responsable militaire somalien.

As you can see the headline is fine but the body isn't. I've tried looking at the recipe and comparing it to the one for Liberation which works fine on my set up and I was hopeful the problem was in the extra_css section but my understanding of html and python isn't up to it. I tried adding copying across the Liberation extra_css but that resulted in the recipe failing to download at all. I've then tried instead adding the font family to the Le Monde one because it was in the Liberation but not in Le Monde recipe but that doesn't seem to make a difference. Could someone more knowledgeable (not hard) please see whether they have the same problem on their set up and give me some advice? Am I on the right track with looking at extra_css?

Many thanks in advance

George
GKinHK is offline   Reply With Quote
Old 11-19-2013, 01:15 PM   #2
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
The recipe has encoding = 'cp1252' while the website shows UTF8, so this is likely the issue. If you replace the encoding statement with 'utf-8' that should resolve this.
nickredding is offline   Reply With Quote
Advert
Old 11-19-2013, 06:24 PM   #3
GKinHK
Junior Member
GKinHK began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2013
Device: Kindle Paperwhite 2013
great fix - thanks

perfect, thank you for your prompt response - I've checked and it does indeed work correctly after that change
GKinHK is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
\b matches accented characters ElMiko Sigil 11 06-14-2012 12:50 PM
Sorting with accented characters chaley Calibre 20 12-11-2010 07:14 AM
PRS-600 any way to type spanish accented characters? arielinflux Sony Reader 1 03-17-2010 04:22 AM
PRS-500 Accented characters onto reader using Mac squiggle8 Sony Reader Dev Corner 9 12-06-2007 04:01 PM
Accented characters bingle Sony Reader 7 07-25-2007 06:36 AM


All times are GMT -4. The time now is 06:37 AM.


MobileRead.com is a privately owned, operated and funded community.