Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-22-2020, 06:39 PM   #1
Siamor
Junior Member
Siamor began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2020
Device: Kindle pw
Persian Recipe

The articles in Persian are showing fine inside the kindle but when i click the articles to see the full-article then the words are arranged from left to right, the justification is correct but the arrangement not. when I convert mobi to azw3 then it works fine but then i lose the magazine features.


Spoiler:


from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1584916190(BasicNewsRecipe):
title = 'DW'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True
extra_css = 'body { text-align: right; direction:rtl; } '
language = 'fa'

feeds = [
('DW', 'http://rss.dw.com/xml/rss-per_politik_volltext'),
]







Can you also please make a Persian section news, I can help gathering sites.
Siamor is offline   Reply With Quote
Old 03-22-2020, 11:19 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 36,241
Karma: 16098999
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sadly, there's nothing that can be done about that. Amazon does not allow periodical features in azw3 on their Kindles. It has to be MOBI and as you discovered MOBI has no support for RTL.

There is no need to make a sectin. If you simply add recies with language set to persian, the section gets generated automatically.
kovidgoyal is offline   Reply With Quote
Old 03-23-2020, 03:29 PM   #3
Siamor
Junior Member
Siamor began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2020
Device: Kindle pw
Sorry I am not talking about the periodical feature. the alignment works fins on the main screen but when i click on the article to read the full article then the words are showing from left to right.

Main Article section
[IMG https://ibb.co/tXwxjNW /IMG]

Article view
[IMG] https://ibb.co/BjwmsmQ [/IMG]

Last edited by Siamor; 03-23-2020 at 03:33 PM.
Siamor is offline   Reply With Quote
Old 03-23-2020, 10:37 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 36,241
Karma: 16098999
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes the only way to have that work is by converting to azw3.
kovidgoyal is offline   Reply With Quote
Old 03-24-2020, 06:23 AM   #5
Siamor
Junior Member
Siamor began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2020
Device: Kindle pw
Do you know if buying another e-reader brand helps? formats like epub for example?
Siamor is offline   Reply With Quote
Old 03-24-2020, 11:23 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 36,241
Karma: 16098999
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, epub is likely to be much better, but you should ask in one of the the device forums as I have not tried it personally.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Persian/arabic font issue Amir1867 Kindle Developer's Corner 1 10-21-2017 01:28 PM
Arabic/Persian text on Kindle 3 wlaf Kindle Developer's Corner 26 04-18-2017 02:53 PM
Persian Calendar in Calibre AminKVH Calibre 0 10-09-2016 06:03 AM
persian e-books can not be shown properly. what should I do? dima Calibre 3 06-03-2016 07:34 AM


All times are GMT -4. The time now is 07:52 AM.


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