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