Script identifier for Unicode strings in Perl - Linux
This project received 10 bids from talented freelancers with an average bid price of $55 USD.Get free quotes for a project like this
Project Budget$10 - $30 USD
I want to build a Perl script to identify the "script" that a particular UTF-8 string is written on. For example, given the strings:
دجنبر --> Arabic
децембар --> Cyrillic
João --> Latin
נאָװעמבער --> Hebrew
กันยายน --> Thai
цембJair --> Mixed
by looking at the "Script" property of each character and checking if they all belong to the same script and in this case report the name. If the string is a mix of two scripts then it should return "Mixed".
The best way to get there would be to use the program "uniname" and echoing the string into it
echo กันยายน | uniname -b -g -c -e -r -u -n
and then process the output:
to eliminate the first line (a header) and the last line (it corresponds to the LINE FEED at the end of the word). If all character belong to the same range, then report that range. If not, return the word "Mixed".
The program is available from here:
[url removed, login to view]
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online