Ticket #8308 (closed Bug: fixed)

Opened 4 years ago

Last modified 4 years ago

Properly normalize greek text

Reported by: ggozad Owned by: hannosch
Priority: minor Milestone: 3.1.5
Component: Internationalization Keywords: greek i18n
Cc:

Description

The greek locale normalizer in plone.i18n does not take into account capital accented letters (and some others, such as omega accented or the letter chi). I followed the approach used by the author which is to translate this to latin phonetically. Also changed the mapping of capital letters Psi and Ksi, to be encoded as 'Ks' and 'Ps' instead of 'KS' and 'PS'.

If you have any questions/objections, please let me know.

Attachments

el.py.patch Download (1.6 KB) - added by ggozad 4 years ago.
patch for plone.i18n.normalizer.el

Change History

Changed 4 years ago by ggozad

patch for plone.i18n.normalizer.el

comment:1 follow-up: ↓ 2 Changed 4 years ago by hannosch

  • Status changed from new to assigned
  • Type changed from Enhancement to Bug

From the looks of the patch, this should be trivial to apply. I'm marking this as a bug as we seem to be using improper normalization so far.

comment:2 in reply to: ↑ 1 Changed 4 years ago by ggozad

Replying to hannosch:

From the looks of the patch, this should be trivial to apply. I'm marking this as a bug as we seem to be using improper normalization so far.

Indeed it's trivial, it only accounts for letters that are not in the map... I would have commited myself but have access only to collective's svn.

comment:3 Changed 4 years ago by hannosch

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [22085]) Fixed the greek character normalization based on a patch by ggozad. This closes #8308.

Note: See TracTickets for help on using tickets.