sapradhan / 2utf8

convert to unicode!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2utf8

convert to utf-8!

Creative Commons Attribution-NonCommercial-ShareAlike 3.0 2utf8 Copyright © 2013 to the 2utf8 Authors.


HOW-TO USE

$ ./main.sh -f sample.txt
Note: Terminal output may not look 💩 pretty

Quick Test

 $ make
Note: You might wanna try in gedit/emacs and do built

HOW-IT START

  • We have the simple shell script ./main.sh
    • map each character to respective unicodes [ you can see 💩 preeti map here]
    • rules.pattern manipulate the position and sequence.

Why rules.pattern ?

Problem of the Preeti and other non-unicode fonts terrible!

in summary:

आ = अ + ा
ओ = अ  + ा + े
ई = इ + र + ्

which is the disaster when we reach झ, त्र, क्ष, फ, र्

rules.pattern scans patters things does following

  • convert multiple char to single standard char
  • postion of ref(रेफ)
  • postion of ि in preeti its in opposite side
  • make the , which aren't even define in preeti
  • And some specific rules target to our source.

FAQ

Why again unicode converter ?

A. Its because earlier one was in java, i'm not wasting my harddisk space just to run the stupid simple convertor, and i don't like the 150+ MB eating meamory java!

Why do in bash are you porting?

A. Bash in quite fast and dirty approach to do the work. We will port if requirement arises in present no.

Still Don't get what you are looking for 😞?

A. No worries post it into issue with label FAQ

About

convert to unicode!

License:Other


Languages

Language:Shell 100.0%