maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [task #10112] Add Arabic support into ocitysmap


From: David Mentré
Subject: [Maposmatic-dev] [task #10112] Add Arabic support into ocitysmap
Date: Thu, 07 Oct 2010 21:50:39 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10

Follow-up Comment #5, task #10112 (project maposmatic):

Hello Bassem,

I'm sorry for the late reply.

To translate the index for a given language, one needs to identify: 
  * the set of names describing a road (e.g. "street", "avenue", "boulevard",
...);
  * how those names are composed with road names (e.g. in French "Rue de
Fontainebleau", "rue" is like "street", "de" is a composition word,
"Fontainebleau" is the name we want to put in the index, under "F" category);
  * and then write some Python code, including some regexp (regular
expression), that does this transformation (e.g. "Rue de Fontainebleau" ->
"Fontainebleau (Rue de)".

You'll find plenty of examples in ocitysmap code:
 
http://git.savannah.gnu.org/cgit/maposmatic/ocitysmap.git/tree/ocitysmap/i18n.py

You'll find some more details here:
  http://wiki.maposmatic.org/doku.php?id=dev:i18n:i18n_support

An embryonic support for Arabic is precisely here:
 
http://git.savannah.gnu.org/cgit/maposmatic/ocitysmap.git/tree/ocitysmap/i18n.py#n401

Do you think you could enhance this code?

I hope it helps. Feel free to ask further questions.

Sincerely yours,
d.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?10112>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]