taskMapOSMatic - Tasks: task #10112, Add Arabic support into ocitysmap

 
 

task #10112: Add Arabic support into ocitysmap

Submitted by:  David Mentré <dmentre>
Submitted on:  Wed 20 Jan 2010 04:23:06 PM UTC  
 
Should Start On:  Tue 19 Jan 2010 11:00:00 PM UTC Should be Finished on:  Tue 19 Jan 2010 11:00:00 PM UTC
Category:  ocitysmap Priority:  4
Status:  Need Info Privacy:  Public
Percent Complete:  40% Assigned to:  Thomas Petazzoni <tpetazzoni>
Open/Closed:  Open Release:  None
Effort:  0.00

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 07 Oct 2010 09:50:39 PM UTC, comment #5:

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.

David Mentré <dmentre>
Project Administrator
Tue 05 Oct 2010 03:28:43 PM UTC, comment #4:

What is the needed work for Arabic regexps?

Bassem JARKAS <jarkas>
Sun 08 Aug 2010 12:01:36 AM UTC, comment #3:

We need someone to contribute the Arabic regexps for OCitySMap's i18n layer.

Maxime Petazzoni <mpetazzoni>
Project Administrator
Wed 03 Feb 2010 05:10:38 PM UTC, comment #2:

I intend to look at Arabic-specific regexps. Well, as soon as I can find a time slot... :-/

David Mentré <dmentre>
Project Administrator
Tue 02 Feb 2010 08:49:53 PM UTC, comment #1:

I'm already working on this. I have working code for the index itself:

  • Renders text using Pango instead of Cairo directly. It allows to get proper rendering for Arabic, but also for other languages such as Korean
  • Supports a Right-to-Left mode

I still to work on :

  • Using Pango for the title of the map and the copyright notice (already started)
  • Support RTL for the title of the map and the copyright notice
Thomas Petazzoni <tpetazzoni>
Project AdministratorIn charge of this item.
Wed 20 Jan 2010 04:23:06 PM UTC, original submission:

Use Cairo as test case.

David Mentré <dmentre>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hakan42
  • -email is unavailable- added by jarkas (Posted a comment)
  • -email is unavailable- added by mpetazzoni (Posted a comment)
  • -email is unavailable- added by tpetazzoni (Posted a comment)
  • -email is unavailable- added by dmentre (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-05 hakan42 Carbon-Copy- => Added hakan42
    2010-08-08 mpetazzoni Priority5 - Normal => 4
        StatusNone => Need Info
        Percent Complete0% => 40%
    2010-02-02 tpetazzoni Assigned todmentre => tpetazzoni

    Back to the top


    Powered by Savane 3.3