[Bug libc/23076] New: Iconv translitterate with profile

Laurent.Lyaudet at gmail dot com sourceware-bugzilla@sourceware.org
Tue Apr 17 18:04:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23076

            Bug ID: 23076
           Summary: Iconv translitterate with profile
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: Laurent.Lyaudet at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Hello,

I have a feature request for iconv.
It would be useful if translitteration could be done only from one
character to one character long string.
In the context of EDIFACT, or flat files, the length in number of
characters matters.
So translitterating "€" to "EUR" is not an option.
Hence I deactivated //TRANSLIT in our source code.

However if translitteration could be done only when the result is one
character long that would still be useful.
It could also truncate the translitteration to one character, like "€" to "E".
I don't know what would be the best way to implement a feature
//TRANSLITONETOONE.

Maybe the more general way of implementing it would be to have a new
parameter for choosing the "translitteration profile", which yields
two choices : either predefined translitteration profiles (classic,
onetoonetruncate, onetoonediscard), integrated in iconv, or user
defined profiles.

Let me know what you think about it, please.

Best regards,
   Laurent Lyaudet

PS : You can also iconv first, using translitteration, and then
truncate your fields for EDIFACT or flat files, but it's not a
satisfactory method since information at the end of a field may be
more important than 10 new characters from the translitteration part.

PPS : I sent also this feature request on bug-gnu-libiconv@gnu.org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list