Git Product home page Git Product logo

honyomi's Introduction

Honyomi

honyomi-incon

Honyomi is pdf search engine written by Ruby. It have command line interface and web application. It will accelerate the ebook of your life.

You can search and browse the pdf document only in the browser.

Honyomi is "本読み". "Read a book" is meaning. Milkode are brothers.

honyomi-03.gif

Installation

You can use the Docker container. With Kitematic it is very easy! For more information and a look at the video above.

or

$ gem install honyomi

When you faild to install Rroonga, Please refer.

And need external tools.

  • pdftotext - For reading pdf (poppler, xpdf)

Install to server

Usage

Create a database

$ honyomi init
Create database to "/home/username/.honyomi/db/honyomi.db"

Specify database dir. (Commands as well as other)

$ HONYOMI_DATABASE_DIR=/path/to/dir honyomi init
Create database to "/path/to/dir/db/honyomi.db"

Add book

$ honyomi add /path/to/this_is_book.pdf
A 1 this_is_book (10 pages)

Add book's image

You can be inline display of the page on the browser.

Need pdftoppm command.

$ honyomi image 1
Generated images to '/Users/ongaeshi/.honyomi/image/1'

Edit book

Change title. Specify book id.

$ honyomi edit 1 -t "This is Book"
id:        1
title:     This is Book
path:      /path/to/this_is_book.pdf
pages:     10
timestamp: 2013-01-01 00:00:00

List books

$ honyomi list
1 This is Book (10 pages)
2 That is Book (20 pages)

Show detail. Specify book id.

$ honyomi list 1
id:        1
title:     This is Book
path:      /path/to/this_is_book.pdf
pages:     10
timestamp: 2013-01-01 00:00:00

Search command line

$ honyomi search bbb
1 matches
--- This is Book (5 page) ---
aaa <<bbb>> ccc

Web application

$ honyomi web

honyomi-01.png

Basic authorization

  1. Get the SHA-2 Hash
$ ruby -r 'digest/sha2' -e 'puts Digest::SHA256.hexdigest("this_is_password")'
a6a27374ec8f49426e8ee6249125369e8c529f361ffa20ace73de0b92514bb0f
  1. It pass to the environment variable
$ HONYOMI_AUTH_USERNAME=ongaeshi HONYOMI_AUTH_PASSWORD=a6a27374ec8f49426e8ee6249125369e8c529f361ffa20ace73de0b92514bb0f honyomi web

Demo

Credit

honyomi's People

Contributors

ongaeshi avatar labocho avatar

Watchers

James Cloos avatar

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.