Git Product home page Git Product logo

manglish's Introduction

Manglish

What does it do?

This is a project to provide English to Malyalam transliteration or simply said it converts manglish to malaylam. Have a look at the website

How to integrate to your site?

Include the dependencies in the static folder

<script type='text/javascript' src='./static/js/editor_transliterate.js'></script>
<script type='text/javascript' src='./static/js/tribute.js'></script>
<script type='text/javascript' src='./static/js/trix.js'></script> 
<link rel="stylesheet" href="./static/css/tribute.css">
<link rel="stylesheet" href="./static/css/trix.css">

Add the trix editor simply by inserting

 <trix-editor> </trix-editor>

To use this along with your forms, first define a hidden input field in the form and assign it an id. Then reference that id in the editor’s input attribute.

<form …>
  <input id="x" type="hidden" name="content">
  <trix-editor input="x"></trix-editor>
</form>

Enable Malaylam autocomplete by replacing the element attached to tribute with yours. For example

tribute.attach(document.getElementById("editor"));

How this works?

This is a front end to the varnam project with integrated autocomplete. The varnam project api is providing the suggestions, while tribute.js is used to render it as autocomplete in the front end.

Based on

  1. varnam project - on the backend the suggestions are based on the api hosted by the varnam project
  2. Trix WYSIWYG editor
  3. tribute.js

manglish's People

Contributors

krishnanunnir avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

manglish's Issues

Pluggable JS

Hi

Instead of this being a Trix thing, it'd be great if it's an easy pluggable script like swanalekha that can be binded to any input. Some suggestions

  • Use yarn as package manager
  • Use a dist folder setup to build a single script. Example. See package.json in it
  • Use standard

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.