Giter VIP home page Giter VIP logo

bibi's People

Contributors

banban525 avatar cat-in-136 avatar dependabot[bot] avatar kitaitimakoto avatar kurema avatar ledyba avatar satorumurmur avatar terence4m avatar ybelenko 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  avatar

Watchers

 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

bibi's Issues

Feature requested

Hi
I'd like to have an option to stick 2 current pages when viewing in paged or horizontal (with 2 current page).
Like there no more margin between the 2 pages.

It would be really great to have that (I think this need some custom rule in the EPUB creation though).

Thanks a lot.

Links on navigation pane work improperly on mobile devices

I've found that choosing items from the navigation pane work very infrequently on iOS and Android. After much investigation, it seems to be because the 'click' event is not being fired most of the time. I was able to fix it locally with the following code fragment below:

L.postprocessItem.coordinateLinkages.setJump = function(A) {
eventName = O.Mobile ? "touchstart" : "click"

A.addEventListener(eventName, function(Eve) { 

Bug with encoding special characters

I have problems with some french special characters in the html content like 'é' rendered with a '頻' or 'à' rendered with a ''࠻...
Html is encoded in utf-8.
This problem does not occur all the time but only with some words or maybe some strings of characters. I don't understand why…
Have you any idea ?
Thanx.

Does BiBi reader support bookmarks?

Does BiBi support the concept of bookmarks (i.e. track a reader's reading position in a document)? I have a use case where readers might read half-way through a document, for example, and then need to return to where they left off at a later date.

Suggestions : Manage prev/next ebook

Your reader is really awesome, But it would be great if you can add a "ebook management".
Like a script that look in the folder and display a dropdown and/or button to go to next/prev ebook.

That will require some php though.
I'd like to help, and will try to help, but I have not very much free time to start this on my own ^^"

anyhow, your reader is really simple and easy to use, thanks for that.

Download Button

Im trying adding a "Download" button, in the drop down menu, but looks like a cant (I`m not so expert in JS).
Is there a chance to implement it?

I also tried doing it in a separate page, putting "index.html" inside a iframe, but this won-t work either, since the index won`t load the epub.

any suggestion?

Embedding epub hosted on Github to blog post.

Hi,

I have some epub files hosted on Github. Is there any way I can use the epub files hosted on Github to embed those in my blog site?

For clarification, the bibi is hosted my personal site.

Thanks

menu clickable

epub menu is not clickable in xwalk webview.

xwalk library version = 'org.xwalk:xwalk_core_library:23.53.589.4';

please help me for this. .

Can't get some features that appears in demo page

Hi, I don't manage to get some features that appears on the first embed on demo page
Like the Right to left reading, the "items loaded" message when I first click on the embed.

Here is my test page : http://91.121.173.74/reader/
I try to come with a manga reader, and try to add prev/next basic link (I don't change your library, not yet), and an ebook selector from a basic ajax file tree.

Thakns in advance for the help.

Audio playback on embedded video EPUB3

I notice when you drag the ebook locally to the bib "upload" interface that it will play audio but when you embedded it into the library at the back of the site it will mute or not allow the audio to play.

is there a suggested fix or work around?

Cannot read book from extracted files

@satorumurmur
Hi,

I found the case you cannot read book from extracted files. Steps to reproduce the issue is:

  1. Prepare EPUB file, now accessible_epub_3.epub from https://drive.google.com/folderview?id=0B9g8D2Y-6aPLflZXSGVlYlBUUUdZZ1VURlZSVndraDNGMkhReXVoem1MdXIwYUNaeVhWU0E&usp=drive_web&tid=0B9g8D2Y-6aPLflIyZE50Um50cG5BNkZSQ2NqcVhtUlZJSGRoVWhla3ktZ2JQdDJjdFNyZlk
  2. Download BiB/i: wget http://bibi.epub.link/my/name/is/bibi-0.998.3.zip
  3. Unzip BiB/i: unzip bibi-0.998.3.zip
  4. Unzip the EPUB book: unzip accessible_epub_3.epub -d bibi-0.998.3/bib/bookshelf/accessible_epub_3.epub
  5. Run web server: ruby -run -e httpd -- . -p 8000
  6. visit http://localhost:8000/bibi-0.998.3/bib/i/index.html?book=accessible_epub_3.epub

then, spinner spins forever. http://localhost:8000/bibi-0.998.3/bib/i/index.html?book=accessible_epub_3.epub/ (trailing slash)also doesn't work.

Is that a bug? or expected behavior?

Thanks.

not work when "book-display-mode" = "spread" or "item"

OS XのFirefoxとGoogle Chrome上で、手元のEPUB3ファイルを展開して試した所、default.jsの"book-display-mode"がallの時は動くのですが、spreadもしくはitemにするとLoading..の途中で動かなくなります。

JSのコンソールに出るエラーのログは以下のとおりです。

Firefoxの場合:

[03:46:28.957] ReferenceError: reference to undefined property TargetItem.Spread @ http://localhost/bibi/bib/i/res/script/bibi.js:1087
[03:46:28.957] TypeError: TargetItem.Spread is undefined @ http://localhost/bibi/bib/i/res/script/bibi.js:1087

Google Chromeの場合:

Uncaught TypeError: Cannot read property 'style' of undefined bibi.js:1087

Cookie doesn't work for multiple ebooks on the same server

I have been investigating this issue and I believe that Bibi 0.999.4 stores one cookie (for saving position) for each book readed. But it looks that it doesn't work, when there are multiple epub ebooks on the same server. I am using http://... for bookshelf, not the relative path.

Tagging

I think it's nice if git tagged when BiB/i is released.
If it will be done, we can specify BiB/i version by tag of git and GitHub URI. It's useful for development purpose.

How about you?

Problem opening file from shortcut to local installation

Hi Folks,

Followed the instructions from section 2 of the "manual" and have a local copy of bib/i working quite happily. I can drop a file on the target or click and browse and the epub opens as expected.
However I'm having trouble with the following...

As with the web publication of the next item, if you use the bookshelf folder, you can also specify a book with the URL in the address bar so you can treat it like a bookshelf when combined with the browser bookmark.

I've put a copy of the epub in "bookshelf" but no matter what I try when creating a desktop shortcut the system reports that the file cannot be found.

Any chance of an example - I think I'm being thrown by "with the URL in the address bar so you can treat it like a bookshelf when combined with the browser bookmark."

Many thanks,

Andy B.

EPUB CFI doesn't work when text node is specified

Moving to page specified by EPUB CFI is unique and great feature but there seems an issue. When you specify text node using EPUB CFI like #epubcfi(/6/14!/4/46/1), BiB/i start with the first page instead of the page itemref of 14 refers.

Not to move to the text node but the begining of XHTML page including the node is okay. But not to move anywhere and showing error "Uncaught TypeError: Cannot read property 'childNodes' of null" in console is problem.

My environment:

  • Ubuntu 15.10
  • Chromium 45.0
  • Revision 6b5d0d1

fire event on selection of text

is it possible to fire an event when some text is selected / double clicked in the epub? i've tried the standard onselect / selectionchange javascript events, but they seem to be blocked. could you please share a snippet of code on how this could be done? this would help people translate words in the epub books.

Flip view Implementation

Hi Guys,

I was trying to implement flip-view for the epub files using BIBI, for achieving that I have added turn js to this application and tried to run by adding the turn function to element "bibi-main-book" by calling it as $('#bibi-main-book').turn() but after calling this the head and body tags content of iframe is becoming empty.

So Is there any way to achieve flip functionality like in here in to this application? Please provide your suggestions and ideas.

Thanks in advance.

Lazy Load/Preload

Is there a way to start reading the book before all the images and content has loaded? If a book has a lot of images, it can sometimes take a while to load, and I was thinking that maybe instead of seeing "Loading x/x items loaded" the pages could already start to display.

Remember progress

What determines if progress is remembered for a given book? I have different ePubs and some of them remember the reading progress, while others don't.

problem with android

when loading the ebook page on android, the top bar becomes impossibile to use, greying out
is there a solution for that?

[FEATURE REQUEST]Open file selection dialog

Hi,

To open an EPUB book, is it possible to make BiB/i able to open file selection dialog as well as drag-and-drop interface?

Because I usually don't keep file manager(Explorer, Finder...) open,
it's very nice if I may open file selection dialog via BiB/i window.

Could you consider?

Thanks.

javascript error in EPUB on Edge or Firefox browser

When using javascript in the EPUB document for XHR, MS Edge browser and Firefox cannot get XHR target.

example

http://example.com/bibi/

+bookshelf
 +book1
   +OEBPS
    -p1.xhtml
    -p1.js
    -data.json
+i
 -index.html
// p1.js
document.addEventListener("DOMContentLoaded", function() {
  var xhr = new XMLHttpRequest();
  xhr.open("GET", "data.json");
  xhr.send();
  alert(location.href);
});

result

Chrome / Safari / IE11

Can get "data.json",
alert shows : http://example.com/bibi/bookshelf/book1/OEBPS/p1.xhtml

Edge / Firefox

Cannot get "data.json" and XHR request send to wrong URI (http://example.com/bibi/i/data.json).
alert shows : http://example.com/bibi/i/?book=book1
It seems that document in the BiBi's iframe recognize wrong location.

I know that I should not use javascript and XHR in the EPUB. But I want to use it.

beforeChapterDisplay event

would it be possible to implement a beforeChapterDisplay event, that would fire each time a new chapter is displayed? a similar function exists in epub.js (which is much slower than bibi.js performance-wise = very sluggish on mobile devices).

XML support

Does this plugin support ePubs with XML content? I have an ePub which has XML files in it. It shows the TOC correctly but pages are not loaded. This ePub opens fine with normal ePub reader but not with this one.

Error when opening EPUB files from IPFS

I am building a collection on books stored in IPFS. Files are identified by a hash rather than a name.

There are several ways to set up access, but the simplest is through the gateway on ipfs.io. Hashes can be resolved to files through a url of the form: http://ipfs.io/ipfs/HASH where HASH is a value like QmfZEJiQBhWmHLhP5ZDnV2CijF7R88Qp8iqn5g5qy7SCSD.

I created a set of supplemental presets, and added http://ipfs.io to trustworthy-origins and * to extract-if-necessary.

When I try to load a page with a URL like http://localhost:61671/bibi/?book=http://ipfs.io/ipfs/QmfZEJiQBhWmHLhP5ZDnV2CijF7R88Qp8iqn5g5qy7SCSD it tries to open a manifest on the server a couple times, which fails, then at the top of the page I get an error "Failed to open the book. Failed to open as both EPUB file and EPUB folder."

My assumption is it is being caused by the lack of a filename despite the wildcard for extracting.

bibi.js error

Uncaught (in promise) TypeError: Cannot read property 'forEach' of undefined
at Bibi.ready (bibi.js:45)

I have an epub file and try to load in web server. I get this error. Can you please help me out?
Thanks in advance.

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.