Quantcast
Channel: MobileRead Forums

Short Fiction Blayne, Karen: High Flyer V1. 2024/04/16

$
0
0
Farida concentrated hard this time. She’d win. There was a cry of triumph from her brother as he shot her down in flames. Elder brothers she decided were the pits. She’d read the manual about the game. It talked about how statistics were used to decide what happened when someone was shot.

Attached Files
File Type: epub High Flyer - Karen Blayne.epub (47.3 KB)

Greetings From the Hoosier State

$
0
0
Let's see..
Avid reader, duh
Had an original Nook years ago, rooted it, lost it in a move.
Had a Nook HD+, rooted.. So outdated, so quick.
Since then been reading on tablets using MoonReader. Latest tablet is the underrated Pixel C, rooted of course. ;)
I've picked up a Kobo Clara 2e and loving how far screen quality has progressed. Plan on adding Koreader, etc
Looking forward to reading, interacting, and learning.

Help to finish the recipe of my favorite news site

$
0
0
Hi all,

I am trying to create a working news recipe for elcorreo.com a spanish news site. There is a built in recipe but it just downloads the links and that is it. Not even the cover.

link to official news site: www.elcorreo.com

I managed to find that if you open any article and replace the ".html" with "_amp.html" you can open the 'immersive reader' in edge to read the full article. And inspecting the "_amp.html" site you can find a script json with the content of the article.

So I started to create a custom one but I can only reach so far. I managed to retrieve the cover, title, subtitle and main image and delete the rest that is not relevant but I need help to add the content of the article by replacing the URLs of the articles to search in and finding the Script tag that contains a JSON with the article content.

This is the code that I have so far:

Spoiler:
#!/usr/bin/env python
__license__ = 'GPL v3'
__author__ = 'Carlos Marten based on Kovid Goyal official version'
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
description = 'Elcorreo Newspaper (Spain) - v1.0 16.04.2022'
__docformat__ = 'restructuredtext en'

'''
Elcorreo.com
'''

from calibre.web.feeds.news import BasicNewsRecipe
from html5_parser import parse
import datetime
from datetime import date

class Elcorreo(BasicNewsRecipe):
__author__ = 'Carlos Marten'
description = 'Elcorreo'
now = datetime.datetime.now()
title = u'El Correo ['+str(date.today())+']'
publisher = u'Ediciones El Pa\xeds SL'
category = 'News, politics, culture, economy, general interest'

language = 'es'
timefmt = '[%a, %d %b, %Y]'
oldest_article = 5
max_articles_per_feed = 4
recursion = 2

no_stylesheets = True
remove_attributes = ['width', 'height','display','margin','padding', 'position','border']
remove_javascript = True
use_embedded_content = False
ignore_duplicate_articles = {'title', 'url'}
compress_news_images = False

#auto_cleanup = True
#scale_news_images_to_device = True

def getcoverurl():
now = datetime.datetime.now()
return 'https://portada.iperiodico.es/'+str(now.year)+'/0'+str(now.month)+'/'+str(now.day)+'_elcorreo.750.jpg'
cover_url = getcoverurl()

def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
alink.replaceWith(tstr)
return soup

extra_css = '''
img{
all: initial;
width: 100%
}
h1 { font-size: 22px }
h2 { font-size: 20px }

'''

keep_only_tags = [
dict(name='h1', attrs={'class': [
'v-a-t', #title
]}),
dict(name='h2', attrs={'class': [
'v-a-sub-t', #subtitle
]}),

dict(name='script', attrs={'type': 'application/ld+json',}), #json with article (closed)

dict(name='article', attrs={'class': [
'v-a v-a--d v-a--d-bs v-a--p-b', #article
]}),
dict(name='div', attrs={'class': [
'amp-access-hide', #article (closed)
]}),

]

remove_tags = [
dict(attrs={'class': [
'v-drpw__w', #social
'v-mdl-tpc', #section topics related
'content-exclusive-bg', #paywall
'v-d__btn-c', #comenta y reporta error
'v-i-b', #compartir
'v-pill-m', #icono de play y ampliar imagen
'v-mdl-ath__c', #comentarios
]},),
dict(attrs={'class': [
'v-a-img', #image

]},),

]


def postprocess_html(self, soup, first):
return soup

feeds = [
(u'Portada', u'https://www.elcorreo.com/rss/2.0/portada/'),

]


calibre_most_common_ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36'



I really tried with the API of calibre and reviewing other recipes but cannot manage to do it. I think I need to do something in the preprocesshtml function but no clue, really.

Can someone with extensive recipe knowledge help?

Manga auto crop & fit to width strange behaviour

$
0
0
Hi!

When I set a .cbz manga file to auto crop and fit content to page width, it doesn’t apply to every page. It seems random to me which pages it will successfully crop, and which it will leave as a full page. Is there a way to get it working consistently? I’ve tried multiple different manga.

Strange also is that when I click “semi auto”, the margins are drawn correctly. But when I click apply, nothing happens.

“Reflowing” the document is a work around that I’ve been using in the meantime, however I noticed it messes with the contrast/gamma. Bonus question, is there a way to disable that aspect of it?

Ebook store with the easiest to remove DRM?

$
0
0
There's an ebook I'm planning on purchasing, and it's available from a few different online stores. Amazon (Kindle), Apple Books, Barnes & Noble, Books-A-Million, Google Play, and Rakuten Kobo. I'm pretty sure all of those stores have some sort of DRM (though please correct me if I'm wrong). I'm looking to purchase from whichever place will allow me to remove the DRM the easiest. Ideally I'd like to end up with an epub file that's identical to the initially purchased file (just without the DRM). Anyone have any suggestions?

Root for Glowlight 4 Plus?

$
0
0
I've been looking for ways that the GL4+ could be rooted, but have not had any success thus far. I had managed to access developer options and USB debugging before the 'wise ones' at B&N decided to add a password to keep people from doing that. As a result, I still have access, but anyone who buys a GL4+ now won't have access without the password.

My main purpose for rooting is to see if I can locate said password in the system files and then let people know what it is. Even if B&N changes the password again, once you activate USB debugging, you're in (unless you choose to turn it off).

One bonus with root is that I should be able to remap the page turn buttons as desired. This isn't a big priority for me, but it's nice to have access.

Any help is appreciated!!!

Short Fiction Blayne, Karen: The Troublemaker V1. 2024/04/16

Kobo Colour video reviews

$
0
0
I thought it might be a good idea to regroup the couples of video reviews we can see, so far, before the official release to the public of both the Libra and Clara.

Here's the most recent I've seen. And if you have to watch only one, this is the one. Very well made.

EDIT : Thanks to DNSB for editing the all the YouTube tags on this page, so we don't just see a black box with a red triangle. :thumbsup:



Edit by Claude_C: added an appreciation comment

Boox Page and KOReader - restart from last opened book

$
0
0
Hi!
I recently bought a BOOX Page because my Kindle Paperwhite died.
I was able to get my book collection on it fine, and from recommendations installed KOReader as it shows the metadata as well and has some more settings about fonts etc.
So far Im very happy with it but there’s one thing that really annoys me:
Whenever I start it, I have to first start the KOReader app, and then flick through all my books, remember what I was reading, and find that one.

The kindle would just start automatically on the page I last had open.

I already set the shutdown time to be very long because if it doesn’t shut down it does start like I want it, but tbh that’s costing a lot of battery, and also I often don’t read for a day or two so it’s also kinda not useful.

Is there any way to make it auto-open the last app or to make the app open the last read book? Kinda like Windows Hibernate vs shutdown.

css question

$
0
0
Is it possible to include a text string into a css property?
For example:

p.break {
text-align: center;
text: "this is a break";
}

Then use:
<p class="break"></p>

Thanks

Spacing between menu icons

$
0
0
Hi everybody,
I don't have many icons in the menu and I'd like to increase the space between them for aesthetic and functional reasons.
Is there a way to do it?
Thanks.

EPUB to PDF Doesn't Meet Latest Kindle Scribe Requirements?

$
0
0
Hello, all, and thanks, in advance, for the help.

Before today, I very regularly converted my epubs into pdfs so I can write on them and highlight passages on my Kindle Scribe; however, when I tried to do so today, Amazon sent me a message that my pdf no longer meets their requirements and I won't be able to use the write-on or highlight tools.

I used the "Send-to-Kindle" via email method and doubled-checked that the issue persists even when using the old-school hardwire method.

Any ideas?

Thanks for everything!

Is possible to use a plugin for Calibre with Calibre-cli?

$
0
0
Hi.
Well that, i want to use Calibre headless, and for me is really important have the possibility to run a plugin that i was using with the graphical interface (i never use the cli version)

it is possible to add plugins from cli?
and later run them?

Thanks.

Hello from San Francisco

$
0
0
Brand new to the forum. I look forward to learning

Troubleshooting e-book loaded from Calibre onto Kindle w/ USB Not Appearing in Library

$
0
0
I'm having a strange problem. When adding an e-book to my Kindle device from Calibre using a USB cable, Calibre indicates it is there with a green check. However, after I eject the Kindle I cannot find the book in my Kindle library.

As an experiment I used my wife's version of Calibre with my Kindle, and added the same book using the USB, and all is fine. There must be some unknown setting in Calibre I changed that's causing this. Any advice?





Latest Images