Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

libindic/unicode-conversion-maps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

How to use this

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.

Editor

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.

Using map

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.

Using map library

You can find and download library artifacts inreleases

Javascript

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>

Python

pip install libindic-unicode-conversion-maps

fromlibindic.unicode_conversion_mapsimportmapsprint(maps['revathi']['A'])# prints അ

History

  • 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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp