Code Monkey home page Code Monkey logo

fb2mobi's People

Contributors

dependabot[bot] avatar dnkorpushov avatar gmk57 avatar rupor-github avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fb2mobi's Issues

max-width and max-height are not supported by Kindle readers

default.css contains the following:

.image img {
    max-width:100%; 
    max-height:100%;
}

When converting a book, kindlegen reports the following:

Warning(htmlprocessor):W28001: CSS style specified in content is not supported by Kindle readers. Removing the CSS property: 'max-width' in file: C:\Users\serge\AppData\Local\Temp\tmpizlduo59\OEBPS\stylesheet.css


Warning(htmlprocessor):W28001: CSS style specified in content is not supported by Kindle readers. Removing the CSS property: 'max-height' in file: C:\Users\serge\AppData\Local\Temp\tmpizlduo59\OEBPS\stylesheet.css

Probably this section can be removed from CSS.

Error while converting file (MacOS 10.11.4 with python3.3 from ports)

Every time when I'm trying to convert some fb2 book I get this error:

bash-3.2$: python3.3 fb2mobi.py /Users/user/Downloads/some_book.fb2 
INFO: Converting "some_book.fb2"...
INFO: Using profile "default".
INFO: Converting fb2 to html...
INFO: Applying XSLT transformations "/Users/user/Downloads/fb2mobi-master/spaces.xsl"
CRITICAL: Error while converting file "/Users/user/Downloads/some_book.fb2"

Where can I find more detailed log? (MacOS 10.11.4 with python3.3 from ports)
Also, when I'm using fb2conv-gui-1.8 tool from http://www.the-ebook.org/forum/viewtopic.php?t=28447&postdays=0&postorder=asc&start=0 on the same file - everything works as well.

AttributeError: 'EpubProc' object has no attribute 'header'

Please, help. Having this problem. Different books, ebup -> mobi conversion. Win10/64, v3.3.4.

M:\Books>for /R "M:\Books\mathesay\" %a in ("*.epub") do "G:\Soft\Kindle\fb2mobi\fb2mobi.exe" "%~a"

M:\Books>"G:\Soft\Kindle\fb2mobi\fb2mobi.exe" "M:\Books\mathesay\mathe-2016.epub"
INFO: Converting "mathe-2016.epub"...
INFO: Using profile "default".
INFO: Unpacking epub...
INFO: Processing epub...
Traceback (most recent call last):
  File "d:\python\python35\lib\site-packages\cx_freeze-5.0-py3.5-win-amd64.egg\cx_Freeze\initscripts\Console.py", line 21, in <module>
  File "fb2mobi.py", line 611, in <module>
  File "fb2mobi.py", line 514, in process
  File "fb2mobi.py", line 215, in process_file
  File "E:\builds_lib\fb2mobi\modules\epub.py", line 109, in process
  File "E:\builds_lib\fb2mobi\modules\epub.py", line 48, in insert_hyphenation
AttributeError: 'EpubProc' object has no attribute 'header'

А можно файл requirements.txt в сорцы?

У меня вот с этим
(fb2mobi_env)wad@wad-think2:/PycharmProjects/fb2mobi (master)$ pip freeze
Pillow==3.3.0
PyHyphen==2.0.5
cssutils==1.0.1
lxml==3.6.0
собралось и сконвертировалось под
(fb2mobi_env)wad@wad-think2:
/PycharmProjects/fb2mobi (master)$ uname -a
Linux wad-think2 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

fb2mobi on Windows 10 fails

Запуская exe получаю следующую ошибку:

C:\Program Files (x86)\MyHomeLib\converters\fb2mobi>fb2mobi.exe
Traceback (most recent call last):
  File "d:\python\python35_32\lib\site-packages\cx_freeze-5.0-py3.5-win32.egg\cx_Freeze\initscripts\Console.py", line 21, in <module>
  File "fb2mobi.py", line 588, in <module>
  File "fb2mobi.py", line 422, in process
  File "d:\python\python35_32\lib\logging\__init__.py", line 1008, in __init__
  File "d:\python\python35_32\lib\logging\__init__.py", line 1037, in _open
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files (x86)\\MyHomeLib\\converters\\fb2mobi\\debug.log'

Если запускать как Administrator, все работает как надо

sendToKindle isn't working

Books that are sent via sendToKindle are not added to the Kindle Library. That must be some special issue, because the sending itself works (I used sendToKindle to send to my own mail address without any problem) and there are no issues with my mail provider in connection with Amazon (sending the same book from web UI to Kindle Library works, too). But only the direct sending isn't working.

Maybe someone has an idea where to look at?

Проблема с типом документа в Kindle

Здравствуйте,
столкнулся с такой проблемой. Конвертирую книгу в mobi, заливаю в читалку.
В списке эта книга отображается как doc, а не book.
Возможно ли добавить возможность менять/удалять Personal Doc Tag [PDOC] при конвертации.
Спасибо.

Установка на Linux

А есть ли более простая и доступная установка для Linux? С windows всё понятно - клац-клац, и готово. А установка на linux - целая эпопея. Искать в каком-то файле список зависимостей. Искать, как их установить и т.д. Можно ли как-то собрать это в инструкции сразу (хотя бы для debian), потому что такие танцы - местный адок.

macos: pointer being freed was not allocated

Не уверен что проблема в самом fb2mobi, возможно у меня просто какая-то библиотека старая или кривая. Вот что примерно происходит:

$ python3 fb2mobi.py ../books/fb2/112552.fb2 test.mobi
INFO: Converting "112552.fb2"...
INFO: Using profile "default".
INFO: Converting fb2 to html...
INFO: Applying XSLT transformations "/Users/muRn/PycharmProjects/bot/fb2mobi/spaces.xsl"
Python(3684,0x7fff75710000) malloc: *** error for object 0x10383c870: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

--console-level DEBUG --log somefile.log не дают никакой дополнительной информации

Python 3.6.0

Есть идеи из-за чего это может происходить?

Неточности и огрехи

В документации указано, что нужно использовать в программе с графическим интерфейссом (страница ведь "Работа с программой (версия с графическим интерфейсом)") утилиту synccovers для синхронизации обложек. Вместе с тем вот тут указано

Для версии с графическим интерфейсом это не требуется - программа автоматически создает миниатюры обложек при отправке книг на устройство Kindle.

Как бы там ни было, а обложки упорно не хотят приходить на мой PW3 с последними обновлениями (при отправке через отправке сконвертированных mobi книг почтой как вручную, так и почтой через программу; версия программы самая последняя - 3.6.65)

Также указано , что kindleRemovePersonalLabel = true позволит добавлять книгу не в Docs, а в Books. На самом устройстве книги эти тоже не распознаются как книги, а распознаются как документы.

Устройства Kindle различают книги, купленные в магазине Amazon и книги, созданные с помощью утилиты kindlegen. На старых версиях ПО прошивки Kindle книги, созданные с помощью kindlegen имели визуальную метку "Personal". Включение данной опции позволяет создать файл, который будет восприниматься устройством Kindle также, как и книга, купленная в Amazon, что позволяет удалить метку "Personal".

В остальном вроде бы всё отлично. Переносы в книге расставляются. Страницы синхронизируюся. Можно выделять отрывки и делиться ими в соцсетях. Всё очень удобно, быстро и практично. Коллекции уже можно быстро и удобно создать через браузер. Если бы ещё обложки нормально работали и книги распознавались как книги - был бы просто космос!

Не понимает длинные пути Linux

Неправильная работа при указании путей в стиле Linux (деление директорий правым косой слэш '/', экранирование пробелов левым слэшем ''). Пути пытается понимать как параметры.
Например:
fb2mobi /tmp/К/Клавелл\ Джеймс/Сегун.fb2 /run/media/username/Kindle/Сегун.mobi
fb2mobi.py: error: unrecognized arguments: /run/media/username/Kindle/Сегун.mobi

С короткими именами путей (/tmp/file.fb2), работает нормально

Footnote links in superscript without CSS rules

I have noticed that every hyper-link, including footnote links, belongs to class anchor and each anchor is aligned via CSS like this:

.anchor {
    vertical-align: super;
    font-size: 70%;
}

However, not every hyper-link is a footnote link. Many non-fiction books contain usual hyper-links as well as footnote links. Usual “inline” hyper-links therefore should not be superscripted.

Amazon recommends (even requires) footnote links to be superscripted with the <sup> HTML tag, see here.

Is it possible to add an option for that or just make it the default behaviour?

Hangs in UI when using Google Drive

К слову, если в gui нажать на значок "Добавить файлы из Google Drive", то откроется в браузере страница, где потребуется войти в гугл или выбрать свой аккаунт. Так вот, если эту вкладку закрыть (ну передумал я, например или что-то ещё), то gui зависает от слова совсем.
Windows 10-64 latest (@n-osennij)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.