-
Notifications
You must be signed in to change notification settings - Fork 98
suggestions for epub library? #32
Comments
I think it doesn't render. It is an approach to parse the structure, but when it comes to Hypertext support, we'd want a good rendering backend. I'm not entirely sure if this really fits in this reader. Then, of course, it would be nice. But that will probably mean to use something like Webkit anyway. This might be a job for coolreader for now. Well, I'm not sure. PS: What I've thought about before was to integrate a EPUB to PDF conversion step. I'm still dreaming of a (Xe-)TeX based rendering, which would also be typeset very neatly. But then I haven't found tools for the EPUB to TeX step either. |
Well, since I was mentioning Coolreader: its CREngine supports EPub... It's C++, so it will be slightly more complicated to integrate, but that might even work. It wouldn't add major new dependencies and it does the rendering on its own... I think it would be a good fit. But maybe we should slow down a bit :-) |
Oops, I forget that it does not render. You are right, CREngine is a better alternative. Yes, we should slow down, djvu support is not complete yet. I am just in curious :) |
I just went through CREngine's API, and wanna give it a try ;P |
More than welcome, of course. I'm going to be quite busy with other things during this week, I hope to get back coding on kindlepdfviewer next weekend. |
Should I write Lua module directly in C++ or write a C compatible CREngine wrapper first? |
Whatever fits best, I think. As long as it renders to BlitBuffer compatible data, it will interoperate with the rest. Another layer of abstraction would not gain a lot, I think. So C++ would be fine. And there's already C++ code that we depend on. Maybe, at some point in the future, we can modulize everything a bit so that one could e.g. chose to use only some dedicated part of the software. It might make sense at some point to switch from compiling those Lua libraries into a single executable to build dynamic libraries that can be "require"d from a generic Lua interpreter. I started with the link-everything approach when the app only consisted of one executable plus one Lua file :-) Now, we're far beyond that point. And I'd really like to factor out the inclusion of fonts and CMaps and rather want them to be external resources. Unfortunately, this would require a small patch to the muPDF build. Maybe they'll accept it upstream. Anyway, this isn't due until a few weeks from now, I think. |
Modularization looks good :) OK, then I will try using C++ module first (Haven't touched C++ codes for one years ;P). I just coded a ugly working demo and will clean it up tommorow.
It seems that CREngine is not able to make use of the built-in font from MuPDF, either I have to patch it or I might missed something. It will be better if these fonts are external resources. |
Argh. I thought it will include relevant comment and not only pull request pointer. It's segfaults on start. I'm missing fonts, which should be in ./fonts if I'm not mistaken. Where do I get them? |
damn it, I also replied to #81. :p Yes, you need to put fonts in |
I'm probably compiling it wrong:
Do you have any special tweaks for building epub branch other than things commited? |
um... I think there is no special tweaks... Could you set the Also make sure that required css files are put in |
Closing this for now, follow up discussion about CREngine should go into #77. |
After added epub, I will be able to read all my books in kindle :-)
Any suggestions for which epub library to use? I just found one written in C:
http://sourceforge.net/projects/ebook-tools
It is also the epub backend for Okular.
The text was updated successfully, but these errors were encountered: