[Corpora-List] Arabic Corpus work in Python

James Haggerty james.haggerty at gmail.com
Mon Oct 12 21:24:28 UTC 2009


2009/10/13 Lisa Hesterberg <lisahesterberg2013 at u.northwestern.edu>:
> Does anyone have any
> experience working with Arabic in IDLE, or is there a better way to deal
> with Arabic characters in Python?

Two options that I've used:
 - use buckwalter for everything
 - find a half-decent text editor that has proper unicode support and
just use that (on Linux/Gnome, gedit is fine; not sure about the
Windows options). Note that for Python to properly support UTF-8 in
the .py file, you need to specify it or use the appropriate BOM
(http://docs.python.org/tutorial/interpreter.html#source-code-encoding).

_______________________________________________
Corpora mailing list
Corpora at uib.no
http://mailman.uib.no/listinfo/corpora



More information about the Corpora mailing list