04-15-2014, 09:16 AM | #31 |
Member
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: Bq cervantes
|
Typographical styleshhet
Gutenweb is a typographical stylesheet I have developed to get up and runing when generating html or epub documents. It uses some very known typographical principes and it adapts to screen or print media.
It can be used with calibre recipes to get default styles that will look nice and readable. To use it, you can do something like this: Code:
import urllib class MyRecipe (BasicNewsRecipe): # some code no_stylesheets = True extra_css = urllib.urlopen('https://raw.githubusercontent.com/laMarciana/gutenweb/master/dist/gutenweb.css').read().replace('@charset "UTF-8";', '') # more code |
02-28-2015, 04:24 AM | #32 |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2015
Device: Kindle PW
|
Adding QR codes to articles
Some times you want to see the original version of the article you're reading. Kindle devices are not very convinient when it comes to browsing the web. Of couse you can always copy the URL calibre displays in the navbar, but if you have a smartphone, it's much easier to scan a QR code (2d barcode) instead. The following snippet is a skeleton of recipe which adds a QR code to the bottom of the article with its URL.
https://gist.github.com/guyru/d35712edcc5b6adf364c |
Advert | |
|
03-12-2015, 11:17 AM | #33 |
Junior Member
Posts: 1
Karma: 10
Join Date: Feb 2012
Device: Kindle 3
|
epubs: convert and send to kindle in one click
Preamble
I have a huge library of digital content in a software called "digitale bibliothek" by directmedia. In version 5 you can export to epub. That is great, so I can finally read the books on my kindle. Unfortunately getting an epub to kindle is a complicated business: open calibre, import the book, click send to kindle, wait for calibre to convert the document, close calibre again. If I'm working and just want to remember to read something later I need something that is working with one click: here is how I solved it. Requirements
Workflow All you need to do, to get your epub to your kindle is put the file in a specific folder on your mac. A mac os x automation folder action automatically scans the folder, grabs the epub files and gives them to calibre to convert to the kindle friendly format mobi. After converting, automator puts the mobi file in a dropbox folder called send2kindle. The dropbox folder is scanned by if that than that, which sends the file to your @free.kindle.com address. customize the folder action (if the picture is broken, try looking here) There are two adjustments you have to make:
The first adjustment you do by clicking in the right corner under the play button. Here you chose the folder to be scanned. The next three steps in the workflow are
Code:
while read LINE do /Applications/calibre.app/Contents/MacOS/ebook-convert "$LINE" "${LINE/.*/}.mobi" mv "${LINE/.*/}.mobi" ~/Dropbox/[your_folder_name] rm "$LINE" Last edited by waldorfpatriot; 03-12-2015 at 11:58 AM. |
11-18-2016, 08:45 PM | #34 |
Connoisseur
Posts: 83
Karma: 3004
Join Date: Jul 2011
Device: none
|
There is a newspaper that I would like to download. How do I go about doing it?
|
05-29-2018, 08:53 AM | #35 |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2018
Device: Sony eReader PRS-T3
|
Here's a Python 2.7 script to create a large poster with all the covers of your e-book files in Calibre (requires libraries PIL and BeautifulSoup):
Spoiler:
Last edited by jtheelen; 06-16-2018 at 03:21 PM. |
Advert | |
|
09-25-2018, 12:04 PM | #36 |
Connoisseur
Posts: 51
Karma: 20728
Join Date: May 2015
Device: Onyx Boox i86 Hdml plus
|
Could anyone tell me how to combine multiple html pages' content into single article and add to the section in the custom recipe?
I am able to add each page of the one post as separate article. But, I want to add all of these pages content as single article. |
09-25-2018, 09:59 PM | #37 |
creator of calibre
Posts: 44,555
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you add only the first article's url to the list of articles and then set recursion = some high enough number and implement is_link_wanted() in your recipe to follow the links to the next article pages.
|
09-26-2018, 02:11 PM | #38 | |
Connoisseur
Posts: 51
Karma: 20728
Join Date: May 2015
Device: Onyx Boox i86 Hdml plus
|
Quote:
My article spread over multiple pages like article1/page/1, article1/page/2 .... I do not want link from page1 content to page2 content. I want to combine the content of all these pages of article1 into one and add this article1 to section. Could you suggest in this scenario. Similar way all the aritcles spread over multiple pages. |
|
09-27-2018, 01:27 AM | #39 |
creator of calibre
Posts: 44,555
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah what I suggested will result in all pages being combined into one article, there are many builtin recipes that use this echnique, for example the recipe for New York Magazine
|
09-27-2018, 03:38 AM | #40 |
Connoisseur
Posts: 51
Karma: 20728
Join Date: May 2015
Device: Onyx Boox i86 Hdml plus
|
|
11-13-2018, 02:14 PM | #41 |
Connoisseur
Posts: 51
Karma: 20728
Join Date: May 2015
Device: Onyx Boox i86 Hdml plus
|
I tried to create recipe as shown in New York Magazine. I set recursions value. But unable to combine the multiple html files into single article. The first url source contains a input tag which is a button to redirect to next page. No href link present. Any suggestion how to deal with input tag that redirects to other page ?
|
11-14-2018, 01:01 AM | #42 |
creator of calibre
Posts: 44,555
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
as long as you can figure out what the url for the next page is, you can always add it to the html manualy in preprocess_html() then the rest of the recipe system should pick it up. See https://www.crummy.com/software/Beau...mentation.html
for how to add tags to the soup |
11-15-2018, 05:16 AM | #43 | |
Connoisseur
Posts: 51
Karma: 20728
Join Date: May 2015
Device: Onyx Boox i86 Hdml plus
|
Quote:
|
|
11-19-2018, 10:01 AM | #44 |
Connoisseur
Posts: 51
Karma: 20728
Join Date: May 2015
Device: Onyx Boox i86 Hdml plus
|
Could anyone tell me how to write recipe to extract articles from scrollable page? Is there a way without using selenium ? Can we write recipes that uses selenium with Calibre ?
|
01-10-2023, 01:54 PM | #45 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2023
Device: Kobo Libra
|
Nickel Menu Config scripts: Menu Items
The only 2 things in my Nickel Menu are Kor Reader and Plato. Is there an easy way to inject some baseline menu items that might be useful for a low maintenance user? I've struggled for about a year. The Nickel instructions have a script in them. It hasn't helped ..."me."
Will anyone offer direction to simply expand the number of menu items for at least a novice user as well as how to insert them? Red Last edited by redrob; 01-10-2023 at 01:57 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DR800 The working (usable) screen resolution | PaulS | iRex | 7 | 04-23-2010 01:27 PM |
Let's create a source code repository for DR 800 related code? | jraf | iRex | 3 | 03-11-2010 01:26 PM |
any usable epub reader? | janw | iRex | 10 | 09-04-2009 01:25 PM |
FICTIONWISE, still usable? | jcbeam | Amazon Kindle | 4 | 03-19-2009 02:17 PM |
iLiad usable for scientists? | doctorow | iRex | 5 | 08-14-2006 06:00 PM |