Giter Site home page Giter Site logo

adarshacr / foliate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnfactotum/foliate

0.0 0.0 0.0 16.77 MB

Read e-books in style

Home Page: https://johnfactotum.github.io/foliate/

License: GNU General Public License v3.0

JavaScript 97.21% HTML 1.59% Meson 1.20%

foliate's Introduction

Note

This is the gtk4 branch. You are reading the README for the work-in-progress, unreleased GTK 4 version.

To learn about the last stable, GTK 3 version, see README.md in the master branch.

Foliate

Read books in style.

Screenshot

Installation

Run Time Dependencies

  • gjs (>= 1.76)
  • gtk4 (>= 4.12)
  • libadwaita (>= 1.4; gir1.2-adw-1 in Debian-based distros)
  • webkitgtk-6.0 (webkitgtk6.0 in Fedora; gir1.2-webkit-6.0 in Debian-based distros)

Optional Dependencies

To enable auto-hyphenation, you will need to install hyphenation rules, e.g., hyphen-en for English, hyphen-fr for French, etc. (which strictly speaking are optional dependencies for WebkitGTK, not Foliate itself).

For text-to-speech support, install speech-dispatcher and output modules such as espeak-ng.

If installed, tracker (>= 3; gir1.2-tracker-3.0 in Debian-based distros) and tracker-miners can be used to track the locations of files.

Obtaining the Source

The repo uses git submodules. Before running or installing, make sure you clone the whole thing with --recurse-submodules.

Run without Building or Installing

It's possible to run directly from the source tree without building or installing. Simply run

gjs -m src/main.js

This can be useful if you just want to quickly try out Foliate or test a change.

But note that this will run it without using GSettings, so settings will not be saved. To solve this, you can compile the schema by running

glib-compile-schemas data

Then you can set the schema directory when running the app:

GSETTINGS_SCHEMA_DIR=data gjs -m src/main.js

Building and Installing from Source

The following dependencies are required for building:

  • meson (>= 0.59)
  • pkg-config
  • gettext

To install, run the following commands:

meson setup build
sudo ninja -C build install

To uninstall, run

sudo ninja -C build uninstall

Installing to a Local Directory

By default Meson installs to /usr/local. You can install without root permissions by choosing a local prefix, such as $PWD/run:

meson setup build --prefix $PWD/run
ninja -C build install

You can then run it with

GSETTINGS_SCHEMA_DIR=run/share/glib-2.0/schemas ./run/bin/foliate

Flatpak

There's no Flatpak package for the gtk4 branch yet. For developement with Flatpak, use GNOME Builder to open and run the project.

Snap

The gtk4 branch is available on the Snap Store through the edge channel:

sudo snap install foliate --edge

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The following JavaScript libraries are bundled in this software:

  • foliate-js, which is MIT licensed.
  • zip.js, which is licensed under the BSD-3-Clause license.
  • fflate, which is MIT licensed.
  • PDF.js, which is licensed under Apache License 2.0.

Buy Me A Coffee

foliate's People

Contributors

johnfactotum avatar vistaus avatar schw0reismus avatar soumyadghosh avatar julroy67 avatar tttranquilooo avatar frnogueira avatar maronghappy avatar zluca avatar pafri avatar fulvio-alves avatar merlijn-sebrechts avatar shibotto avatar tupubozu avatar habenamare avatar archisman-panigrahi avatar m0rf30 avatar itprojects avatar not-chicken avatar kleinheiti avatar gmou3 avatar reorr avatar jcamposz avatar jhakonen avatar guille avatar okias avatar carmina16 avatar bitedasher avatar tim77 avatar acabal 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.