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 05-04-2011, 04:23 PM   #1
lorenzo2004
Junior Member
lorenzo2004 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2011
Device: sony PRS 650
Smile richiesta in italiano: ricetta calibre per luogocomune.net

Ciao tutti

aprofitto delle conoscenze degli esperti e chiedo un aiuto

Non riesco a costruire la ricetta personalizzata per scaricare gli articoli da www.luogocomune.net

Questi i dati:

RSS feed: http://www.luogocomune.net/site/backend.php

print version (an example): http://www.luogocomune.net/site/modu...p?storyid=2223
al posto di
http://www.luogocomune.net/site/modu...p?storyid=2223

la mia ricetta

class LuogoComune(BasicNewsRecipe):
title = u'LuogoComune'
oldest_article = 180
max_articles_per_feed = 100
remove_attributes = ['style', 'font', 'width', 'height']
language = 'it'
feeds = [(u'LuogoComune', u'http://www.luogocomune.net/site/backend.php/')]
def print_version(self, url):
return url.replace('article.php', 'print.php')

i principali problemi:

1) i tentativi odierni hanno prodotto un file epub di 49 pagine: il primo articolo inizia a pagina 7 ma solo con un link; l'articolo "vero" v da pag. 8 a pag. 16 ma è come una UNICA PAGINA e io posso leggere solo la prima pagina, cioè la 8. Il mio sony prs650 non può scrollare verso il basso (mentre il browser internoa calibre può e non fa capire il problema...) e quando a pag. 8 premo "pagina avanti" finisco direttamente a pg. 17! - da notare che la mia ricetta, dopo aver aggiunto "remove_attributes = ['style', 'font', 'width', 'height']", funziona in senso orizzontale ma non ancora in verticale

2) alcuni caratteri italiano non vengono riconosciuti (es. apostrofo ') e vengono sostituiti da ?

Grazie per l'aiuto!

Last edited by lorenzo2004; 05-05-2011 at 03:45 PM.
lorenzo2004 is offline   Reply With Quote
Old 05-12-2011, 09:13 AM   #2
lorenzo2004
Junior Member
lorenzo2004 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2011
Device: sony PRS 650
La mia richiesta è stata letta un sacco di volte ma nessuno ha risposto...

Mi chiedo:
- domanda troppo difficile...?
- ho sbagliato qualcosa...?
- ho ignorato regole del forum (senza saperlo)...?

Qualsiasi risposta sarà apprezzata!
lorenzo2004 is offline   Reply With Quote
Advert
Old 05-12-2011, 09:55 AM   #3
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by lorenzo2004 View Post
Hello all

aprofitto knowledge of the experts and ask for help

I can not build a custom recipe for downloading articles from www.luogocomune.net

These data:

RSS feed: http://www.luogocomune.net/site/backend.php

print version (an example): http://www.luogocomune.net/site/modu...p?storyid=2223
instead of
http://www.luogocomune.net/site/modu...p?storyid=2223

my recipe

class LuogoComune (BasicNewsRecipe):
title = u'LuogoComune '
oldest_article = 180
max_articles_per_feed = 100
remove_attributes = ['style', 'font', 'width', 'height']
language = 'en'
feeds = [(u'LuogoComune ', u'http: / / www.luogocomune.net/site/backend.php/')]
print_version def (self, url):
url.replace return ('article.php', 'print.php')

The main problems:

1) attempts today have produced an epub file of 49 pages: the first article begins on page 7, but only with a link, the article "true" by P. st. On page 8. 16 but as a single page and I can only read the first page, that is, 8. My sony prs650 can not scroll down (while the browser can internoa caliber and does not understand the problem ...) and when page. 8 I press "page forward" to end up directly pg. 17! - Note that my recipe, after adding "remove_attributes = ['style ', 'font', 'width', 'height'], " works horizontally but not vertically

2) some Italian characters are not recognized (eg apostrophe ') and are replaced by?

Thanks for your help!
My request has been read many times but no one answered ...

I wonder:
- too difficult question ...?
- I have done something wrong ...?
- I ignored the rules of the forum (without knowing it )...?

Any reply would be appreciated!
(Quote from Google translate)
Not many read or reply in Italian. The recipe looks OK, but you will need to debug with print statements if it's failing. Check that you are getting the article and that the print_version is producing the correct url.
Code:
print_version def (self, url):
    print 'url is: ', url
    print_url = url.replace('article.php', 'print.php')
    print 'print_url is: ', print_url
    return print_url
Possibly the feed requires some additional headers. Make sure you've tested with the Calibre reader/viewer, not just your e-reader, so you know the problem is with the recipe, not the device.

The Italian characters problem is a character encoding issue. Search for "character encoding."

I hope you can read this. I'm not in a position to test/fix your recipe myself.
Starson17 is offline   Reply With Quote
Old 05-12-2011, 11:05 AM   #4
lorenzo2004
Junior Member
lorenzo2004 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2011
Device: sony PRS 650
Smile

Thank you for your answer. The same question in (bad) english is here: https://www.mobileread.com/forums/sho...d.php?t=132086

I'll try and give a feedback. Please, note that i tested my output _with_ the calibre browser; the problem is that this browser can scroll pages above, a ebook-reader (I think: every ebook-reader) can't it.

Regards
lorenzo2004 is offline   Reply With Quote
Reply

Tags
calibre, italiano, luogocomune, receipe


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre don't work with the latest Microsoft .NET version mikaelalind Recipes 0 01-22-2011 05:16 AM
500 error accessing calibre.kovidgoyal.net/download_ubuntu adamvert Calibre 2 03-24-2009 03:05 PM
FLAG (Fanfiction.net Lightweight Automated Grabber) and Calibre? malkie13 Calibre 1 02-10-2009 05:43 PM
Dizionario Dictionary Inglese Italiano Clemenseken Other Books 0 12-12-2007 04:52 AM


All times are GMT -4. The time now is 06:39 PM.


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