Coder Social home page Coder Social logo

cromagnonninja / apertium-html-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apertium/apertium-html-tools

0.0 2.0 0.0 12.71 MB

Apertium Html-tools is a web application providing a fully localised interface for text/website/document translation, analysis and generation powered by Apertium.

Home Page: http://wiki.apertium.org/wiki/Apertium-html-tools

License: GNU General Public License v3.0

Makefile 6.34% CSS 10.37% Emacs Lisp 0.02% JavaScript 76.58% Shell 0.83% Python 4.74% HTML 1.13%

apertium-html-tools's Introduction

Apertium Html-tools

CircleCI

Apertium Html-tools is a web application providing a fully localised interface for text/document/website translation, analysis, and generation powered by Apertium. Designed with a dead simple build process, minimal dependencies and only static resources for quick and easy deployment with any web server, it is relatively lightweight and user-friendly. Html-tools relies on an Apertium HTTP API such as Apertium-apy or ScaleMT (to a lesser extent). Development takes place on GitHub; however, a read-only copy of the repository is kept in our SVN repository (/trunk/apertium-tools/apertium-html-tools).

More information along with instructions for localization is available on the Apertium Wiki.

Prerequisites

  • Python 3
  • curl

Setup

  1. Copy config.conf.example to config.conf and edit it.
  2. Then type make.

Running

The static files within /build (generated by make) can be served by any server. You can use whatever you like, including Apache or even just Python's HTTP server. For example, to run on locally on http://localhost:8080 you can do the following:

python3 -m http.server 8080

A completely local setup with language data and translation from Apertium, an APy instance, and Nginx to serve Html-tools is provided through Docker. After installing Docker, simply run the following and check http://localhost:4545. Any changes to the local version of Html-tools will trigger a make.

docker-compose up

For production usage, remember to

  1. Build with jsmin and csscompressor installed through pip.
  2. Enable gzip compression on your server.

Contributing

CircleCI runs tests and generates build artifacts including a live copy of Html-tools using config.conf.example.

apertium-html-tools's People

Watchers

 avatar  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.