Git Product home page Git Product logo

inpagetounicode's Introduction

inPageToUnicode

inPage to Unicode Convertor for Perso-Arabic Scripts

Ported from http://dl.dropbox.com/u/2700846/_InPageConverter.zip, originally available at IT Duniya Forums

Demo available at: http://ltrc.github.io/inPageToUnicode/

Sample Usage:

<html>
<head>
<title>inPageToUnicode Convertor</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://raw.githubusercontent.com/nehaljwani/inPageToUnicode/master/inPage2Unicode.js"></script>
<script type="text/javascript">
    function showRes(res) {
      document.getElementById('result').innerHTML = res;
    }
    function convert(file) {
      options = {};
      options["rbtnUrdu"] = document.getElementById('languageUrdu').checked;
      options["chkHehHamza"] = document.getElementById('replacementHehHamza').checked;
      options["chkRKashida"] = document.getElementById('replacementKashidaSign').checked;
      options["chkQuotMarks"] = document.getElementById('replacementQuotMarks').checked;
      options["chkRDigits"] = document.getElementById('replacementRevDigits').checked;
      options["chkReverseSSign"] = document.getElementById('replacementRevSSign').checked;
      options["chkThousSeparator"] = document.getElementById('replacementRevTSep').checked;
      options["chkBariYee"] = document.getElementById('replacementBariYa').checked;
      options["chkRDoubleSpace"] = document.getElementById('replacementDSpace').checked;
      options["chkRErabs"] = document.getElementById('replacementErabs').checked;
      options["chkYearSign"] = document.getElementById('replacementYSign').checked;
      inPage2Unicode(file, options, showRes);
    }
</script>
</head>
<body>
    <input name="language" id="languageUrdu" checked="checked" type="radio">Urdu<br>
    <input name="language" id="languageArabic" type="radio">Arabic<br>
    <input id="replacementHehHamza" checked="checked" type="checkbox">Correct heh with Hamza<br>
    <input id="replacementKashidaSign" type="checkbox">Remove Kashida Sign<br>
    <input id="replacementQuotMarks" type="checkbox">Reverse Quotation Marks<br>
    <input id="replacementRevDigits" checked="checked" type="checkbox">Reverse Number / Digits<br>
    <input id="replacementRevSSign" checked="checked" type="checkbox">Reverse Solidus (/) Sign<br>
    <input id="replacementRevTSep" checked="checked" type="checkbox">Reverse Thousands Separator<br>
    <input id="replacementBariYa" checked="checked" type="checkbox">Correct Bari Ya<br>
    <input id="replacementDSpace" checked="checked" type="checkbox">Remove Double Space<br>
    <input id="replacementErabs" type="checkbox">Remove All Erabs<br>
    <input id="replacementYSign" checked="checked" type="checkbox">Correct Year Sign<br>
    <input id="input" onchange="convert(this.files[0])" type="file">
    <textarea rows="4" cols="50" id="result"></textarea>
</body>
</html>

Send a pull request to contribute!

inpagetounicode's People

Contributors

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