Giter Site home page Giter Site logo

bitextual's Introduction

Bitextual: A tool for bilingual text alignment

Bitextual takes translated (preferably by humans) epubs in two languages, and outputs a bilingual book.

This is useful for lovers of translated literature and intermediate-to-advanced level language learners.

You can use Bitextual on the web at bitextual.net.

You can also use it as a command-line tool with node.js by cloning this repo.

There are two output options. Links to examples are in the technical notes, below:

  • HTML: A parallel, bilingual web page.
  • ePub: The source book, but with a link at the end of each paragraph to the translated paragraph. This is great for using an e-reader.

Some technical notes

For an example of output, see the included French-English copy of Madame Bovary. That file is generated with the following command:

tsx packages/cli/main.ts --html packages/test/bovary.french.epub packages/test/bovary.english.epub > packages/web/dist/bovary.aligned/index.html

The command says "run the main.ts script with html output on Bovary in French (source) and Bovary in English (target)."

There is also an epub version, produced with the following command:

tsx packages/cli/main.ts --epub packages/test/bovary.french.epub packages/test/bovary.english.epub > packages/web/dist/bovary.aligned/bovary.epub

This project relies on a WebAssembly fork of hunalign for text alignment.

bitextual's People

Contributors

wydengyre avatar dependabot[bot] avatar web-flow avatar github-actions[bot] avatar

Stargazers

 avatar Mathis Brossier avatar  avatar  avatar

Watchers

 avatar

bitextual's Issues

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.