how to convert kannada to romanised english ? is there a tool to do that - annotations

how to convert Kannada script or romanised English (Kannada) into English . can someone guide me with this
here is an example
ಸುಸ್ವಾಗತ
in roamnised english :
suswagatha
After transliteration:
welcome
There are so many online tools are there to do the conversion from romanised English to Kannada . is there any tool to do the opposite ?
converting Kannada to romanised English text

You can use google translator for it https://translate.google.com/

I found a website where you can convert kannada script to english . here you have multiple ways to convert . You can use rest api calls to the webapp or you can go through browser .
Bramhinet from IITB
Here You have to select
input language : Kannada
output language : English
Script conversion
input kannada Script text
press convert

What you called "romanization" is actually "transliteration". Here's Kannada to Latin script using ICU4J library in Groovy:
#Grab(group='com.ibm.icu', module='icu4j', version='58.2')
import com.ibm.icu.text.Transliterator;
String anything = "ಸುಸ್ವಾಗತ";
String id = "Kannada-Latin";
println Transliterator.getInstance(id).transform(anything);
Outputs:
susvāgata

Related

ImpEx Import of Arabic Text

I am trying an impex import in Hybris Administration Console to add arabic text for some products.
The arabic text is in UTF-16 LE format and English text is in UTF-8 format. Therefore, I am always getting an error:
{1=ValueEntry('عدّة البدء Single'=null,unresolved=null,ignore=false)}] - cannot import, unknown type '1234546' in line ValueLine
[,line 3 at main script,1234546,HeaderDescriptor[line 2 at main script, insert_update, Product, {}, [code, endUserShort]}
I tried setting my scrip encoding as UTF 16 LE, after which editor can not recognize the english text and produces same error.
Here is my code:
$productCatalog=Master
$catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Master'])
insert_update Product;code[unique=true]; endUserShort[lang=ar_Arab]
1234546; عدّة البدء Single
Any suggestions are welcome :)
You are missing a ; on the beginning of your impex should be like this i think :
$productCatalog=Master
$catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Master'])
insert_update Product;code[unique=true]; endUserShort[lang=ar_Arab];$catalogVersion
;1234546; عدّة البدء Single
Hope this helps

Unicode for hindi printing on Zebra ZDR series printer

I am trying to print Unicode (for Hindi printing) using ZPL on Zebra printer ZDR500R. I am sending unicode file through 'Send file' in 'Tools' properties of Zebra printer. I have used various fonts like 'NT20WGL4.FNT', 'NK20WGL4.FNT', 'MONOBD15.FNT', H24.FNT', 'H12.FNT' etc. But none of them worked to print Hindi.
I am using following code for printing.
----------------------------------------------
^XA
^LH100,150
^CWT,E:MONOBD1524.FNT
^CFT,30,30
^CI28
^FT0,0^FH^FDTesting 1 2 3^FS
^FT0,50^FH^FD_905_924_93E_930_93F^FS
^FT0,100^B3^FDAAA001^FS
^XZ
-------------------------------------------
Here 905, 924, 93E, 930, 93F are unicode for hindi characters.
Plz help , how can i print Hindi characters of Unicode? Which Zebra font (.FNT) should i use?
Thanks & Regards.
The fonts you mentioned may not have the Hindi characters in them. Convert a TrueType font that has them (e.g., Mangal) to a Zebra FNT. The Zebra setup utility should be able to convert a TTF to an FNT for you.
Mangal comes with Windows. If you're not running Windows, you can find free Devanagari fonts lots of places online.

Print Chinese / Japanese character in Zebra Printer with ZPL

I have loaded the Mono Chinese/ Japanese font onto my ZM400 printer. So far I have no success printing both Chinese & English together on the same field.
Here is some example code:
^XA^CW1,B:ANMDS.TTF
^SEB:GB.DAT^CI14
^FO100,100^A1,50,50^FD中文English Here^FS
^XZ
Since I change the international code to 14 (with ^CI14), it only prints the Chinese text without the English text.
I have also try using the ^FL command, but can't seen to get it to work.
Does anyone have a working example of printing Chinese / Japanese text along with English text on the same FD (data field)?
You should probably use ^CI28 (UTF-8), and make sure that your labels are encoded in UTF-8.
As far as I know, ^CI14 only supports Asian encodings.
If anyone is looking at how to do this, I imagine what I did for Japanese will work for Chinese.
Firstly, I didn't want to purchase the Asian Font Pack because I think it's a bit of a ripoff, so I found an appropriate open source Japanese Unitype Font. I then uploaded this to the printer using Zebra Tools... make sure you upload it as a file, NOT using the font upload.
Then I managed to get it printing by escaping the characters.
So my final ZPL is
^XA
^LL150
^CI28^A#N,60,60,E:OSAKA.TTF
^FO0,0
^FH
^FD_5F_E3_81_93_E3_82_8C_E3_81_AF_E4_BD_95_E3_81_A8_E8_A8_80_E3_81_A3_E3_81_A6_E3_81_84_E3_81_BE_E3_81_99^FS
^XZ
Essentially you have to escape the bytes of each value (original Japanese これは何と言っています)
You also have to put ^FH in front of ^FD so it knows you're escaping characters.
Hopefully this helps the poster and anyone else who is looking to overcome problems with ZPL and Unicode fonts / characters.
I have figured out why. The Chinese text needs to be in gibberish format.
What I meant by gibberish is that. When you use Chinese in ZPL code, it needs to be in the windows codepage format text. This windows codepage format Text that is Chinese will be displayed as gibberish in English environment.
For example. In ZPL Code, your code might look like this:
^H ~!!####$ (this gibberish is actual the ASCII representation of Chinese text in windows code page format)
However, you can't type in unicode Chinese because ZPL would not print it.
^H 中文 (this is Chinese text in unicode format)

How to convert punjabi unicode to English Text?

I have records saved in SQL SERVER database in form of punjabi unicode. Now i want to convert these punjabi unicode to English Text. Is there any utility which can help me? Please reply if anyone have solution paid/free. Thanks in advance.
The question is nonsensical -- in the sense that it makes no sense.
Unicode is not a language. It merely provides a mapping from characters (more precisely, glyphs) to a binary code, in such a way that text in a font using Punjabi characters will stay that way when another font is applied. There is no "English" Unicode, and no "Punjabi" Unicode either.
You can only 'translate' from Punjabi to English using translating software. (Given the current state of automatic translation software, you are better off with a human who is fluent in both languages.)
If you wants to change Punjabi Unicode converted into English Text as example
ਨਿੱਕੀ ਕਹਾਣੀ (unicode)
in`kI khwxI (Converted into Gurmukhi Lipi, shows as English ! When you change its font into GurmukhiLipi it shows in punjabi)
You can check my website, previously in UNICODE and now in GURBANI LIPI (I have installed a plugin to convert English Letters as Punjabi)

Get window title with AppleScript in Unicode

I've stuck with the following problem:
I have a script which is retrieving title form the Firefox window:
tell application "Firefox"
if the (count of windows) is not 0 then
set window_name to name of front window
end if
end tell
It works well as long as the title contains only English characters but when title contains some non-ASCII characters(Cyrillic in my case) it produces some utf-8 garbage. I've analyzed this garbage a bit and it seems that my Cyrillic character is converted to the Utf-8 without any concerning about codepage i.e instead of using Cyrillic codepage for conversion it uses non codepages at all and I have utf-8 text with characters different from those in the window title.
My question is: How can I retrieved the window title in utf-8 directly without any conversion?
I can achieve this goal by using AXAPI but I want to achieve this by AppleScript because AXAPI needs some option turned on in the system.
UPD:
It works fine in the AppleScript Editor. But I'm compiling it through the C++ code via OSACompile->OSAExecute->OSADisplay
I don't know the guts of the AppleScript Editor so maybe it has some inside information about how to encode the characters
I've found the answer when wrote update. Sometimes it is good to ask a question for better it understanding :)
So for the future searchers: If you want to use unicode result of the script execution you should provide typeUnicodeText to the OSADisplay then you will have result in the UTF-16LE in the result AEDesc