Skip to content

Commit

Permalink
Add Java
Browse files Browse the repository at this point in the history
  • Loading branch information
saturngod committed Jan 24, 2015
0 parents commit 897c62e
Show file tree
Hide file tree
Showing 10 changed files with 1,778 additions and 0 deletions.
18 changes: 18 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
```
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
```

Copyright (C) 2004 Sam Hocevar <[email protected]>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

```
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
```

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#Rabbit

![Logo](./rabbit_100.png)

**Another Zawgyi <=> Unicode Converter**

Zawgyi to Unicode has been written in [2011](https://github.com/saturngod/ZG2Uni_JS/commits/master). Now, unicode to zawgyi has been finished.

### Why another converter ?

When I was writting [ZG2uni](https://github.com/saturngod/ZG2Uni_JS/) , [Parabaik](https://github.com/ngwestar/parabaik) is not opensource. At that time, I need to use for [MYSTERY ZILLION](http://www.mysteryzillion.org) for converting the whole database to Unicode.

For Unicode to zawgyi , Parabaik is the GPL license and cannot use in iOS app and Android App. So, decided to write new one with **WTFPL license**.

> I cannot promise , it's correct 100% after converting.
> If you are not using in app or program and just for converting the text , please use [Parabaik](https://github.com/ngwestar/parabaik)
### Demo

- [Web](http://saturngod.github.io/Rabbit/)
- [Android](https://play.google.com/store/apps/details?id=com.comquas.rabbitzawgyiunicodeconverter)


45 changes: 45 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<html>
<head>
<title>Zawgyi to Unicode</title>
<meta charset="utf-8"/>
<script src="uni2zg.js"></script>
<script src="zg2uni.js"></script>
</head>
<body>
<header>
<img src="rabbit_100.png" align="middle">
<h2 style="display:inline;font-family:Helvetica,Arial,sans-serif;padding-left:5px">Rabbit</h2>
</header>

<h3 id="cFont">Unicode Text</h3>
<textarea rows="10" cols="10" id="sample" style="width:100%;font-size:18px;font-family:'MON3 Anonta 1'">သီဟိုဠ်မှ ဉာဏ်ကြီးရှင်သည် အာယုဝဍ်ဎနဆေးညွှန်းစာကို ဇလွန်ဈေးဘေးဗာဒံပင်ထက် အဓိဋ္ဌာန်လျက် ဂဃနဏဖတ်ခဲ့သည်။

ယေဓမ္မာ ဟေတုပ္ပဘဝါ တေသံ ဟေတုံ တထာဂတော အာဟ တေသဉ္စ ယောနိရောဓေါ ဧဝံ ဝါဒီ မဟာသမဏော။

(မြန်မာပြန်)

မြတ်စွာဘုရားရှင်သည် ရှေးကပြုခဲ့ဖူးသော အကြောင်းတရားကြောင့် ဖြစ်ပေါ်လာကြသော အကျိုးတရားကို ဟောကြားတော်မူသည်။

ထိုအကြောင်းတရားတို့၏ ချုပ်ငြိမ်းရာတရားတို့ကိုလည်း ဟောတော်မူ၏။

ရဟန်းကြီးဖြစ်သော ဗုဒ္ဓမြတ်စွာဘုရားသည် ဤသို့သောအယူရှိတော်မူ၏။
</textarea>
<p>
<input type="button" value="Uni > ZG" onclick="convert()">
<input type="button" value="ZG > Uni" onclick="convertuni()">
</p>

<script>
function convert(){
document.getElementById('sample').value=uni2zg(document.getElementById('sample').value);
document.getElementById('sample').style.fontFamily="Zawgyi-One";
document.getElementById('cFont').innerHTML = 'Zawgyi Text';
}
function convertuni() {
document.getElementById('sample').value=zg2uni(document.getElementById('sample').value);
document.getElementById('sample').style.fontFamily="'MON3 Anonta 1'";
document.getElementById('cFont').innerHTML = 'Unicode Text';
}
</script>
</body>
</html>
11 changes: 11 additions & 0 deletions other-lang/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To Support Other Languages



Todo

- [ x ] Java
- [ ] Objective-C
- [ ] Swift
- [ ] Ruby
- [ ] Python
Loading

0 comments on commit 897c62e

Please sign in to comment.