3arabi – Arabic chat to English translator December 4, 2010Posted by GuySoft in Crictor, Hamakor, ITU, open source, programming, python.
Tags: 3arabi, arabic, code, open source, programming, python
As some might have noticed, Arabic speakers on the net use a form of writing called ‘Arabic chat‘ or 3arabi, which involves using Latin characters and Hindu-Arabic numerals to write words in Arabic. I wrote a small service called 3arabi that lets you translate this Arabic chat directly to English.
Apparently there are tools to do transliteration (converting Latin letters back to Arabic), and also translation. But nothing that does them both. That is why I wrote a small script that uses Google’s transliteration service and ‘Google Translate’. This does the job, but is not perfect, however, it does actually help me understand some messages.
The source is also available in GitHub (its in python). If anyone contributes better code I’ll merge it back to the service.
Thanks to Ira Abramov for hosting the service!
Thanks Muhammad Khatib who wrote Google Translate python API and for releasing it.
Update: Google seem to be blocking the translation service, thinking its spam, if anyone knows how to contact them and asking them to lift that ban would be appreciated.
A script to Slice, Encode and Upload videos to Youtube April 17, 2008Posted by GuySoft in Crictor, Hamakor, linux, open source, podcast, programming, python.
Tags: code, python, script, youtube, zulo
In the past few days, I wrote a script that will take basically any video file, chop it to equal parts under 10 minutes, and upload the result to youtube.
The effect is that I can publish all of my video podcast to youtube, without the long and painful chopping and uploading of files via a browser.
I based the uploading on a perl script from catonmat. I wrote my extension in python.
Here is a link to the sourcecode (under GPL license)
I would love to receive feedback, and improvments.