unicode-conversion-maps

Unicode Conversion Maps

This is a global repository to hold community curated maps to convert from ASCII to Unicode.

How to use this

The maps inside maps directory are used in various utilities like Payyans, Freaknz, Chekkans, etc. These maps are all community maintained. In the near future, this repository will be used to supply maps to all of these projects and more.

Editor

If you like to edit maps, you can use the editor. In editor, you have to choose the font file and map file. Once loaded, these are opened in the tables at the bottom.

Each glyph and its mapping are loaded in the following format:

--------------
| A  B       |
| C      D   |
|        E   |
-------------

Explanation of these:

After changing the mapping (by editing D) for all glyphs, you can copy the mapping from the textarea in the top right of the page.

Using map

You can contribute the map to the community by either editing an existing map or by creating a new map .

If you want to directly use these maps, you can paste them in chekkans-web at the bottom and use it directly.

Using map library

You can find and download library artifacts in releases

Javascript

npm install @indicjs/unicode-conversion-maps

import maps from '@indicjs/unicode-conversion-maps';
console.log(maps["revathi"]["A"]); // prints അ

If you’re in an HTML page you can do

<script type="module">
    import maps from "https://unpkg.com/@indicjs/unicode-conversion-maps";
    console.log(maps["revathi"]["A"]);
</script>

Python

pip install libindic-unicode-conversion-maps

from libindic.unicode_conversion_maps import maps
print(maps['revathi']['A']) # prints അ

History

Contributors

Individual contributors to map, code, etc.