- Notifications
You must be signed in to change notification settings - Fork1
libindic/unicode-conversion-maps
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a global repository to hold community curated maps to convert from ASCII to Unicode.
The maps insidemaps directory are used in various utilities likePayyans,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.
If you like to edit maps, you can use theeditor. 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:
- A - the unicode decimal point.
- B - extended ASCII character that forms the left hand side of the maps
- C - the glyph in the font at that code point (if it exists)
- D - The input box where the currently mapped character is loaded (should be same as C). If B and C are the same, this can be omitted.
- E - The Unicode codepoint of D.
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.
You can contribute the map to the community by either editing an existing map or bycreating a new map.
If you want to directly use these maps, you can paste them inchekkans-web at the bottom and use it directly.
You can find and download library artifacts inreleases
npm install @indicjs/unicode-conversion-maps
importmapsfrom'@indicjs/unicode-conversion-maps';console.log(maps["revathi"]["A"]);// prints അ
If you're in an HTML page you can do
<scripttype="module">importmapsfrom"https://unpkg.com/@indicjs/unicode-conversion-maps";console.log(maps["revathi"]["A"]);</script>
pip install libindic-unicode-conversion-maps
fromlibindic.unicode_conversion_mapsimportmapsprint(maps['revathi']['A'])# prints അ
- Payyans is the origin of a lot of map files.
- Freaknz brought renewed interest in ASCII -> Unicode conversion
- ttf.js is where the idea of showing glyphs in the browser came from.
- opentype.js allowed for bug-free opening of glyphs.
About
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
