| Ticket UUID: | 2788497 | ||
| Title: | toupper limitations | ||
| Type: | RFE | Created on: | 2009-05-07 16:45:34 |
| Submitter: | dgp | Assigned to: | jan.nijtmans |
| Subsystem: | 44. UTF-8 Strings | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2021-03-18 21:18:22 |
| Status: | Open | Closed by: | nobody |
| Resolution: | None | Closed on: | |
| Version: | None | ||
| Description: | ||||
kbk\u0149 should uppercase to \u02bc\u004e dgpTcl_UniCharToUpper() cannot represent that. dgpone Tcl_UniChar in; one Tcl_UniChar out. kbkThe fundamental assumption underlying Tcl_UniCharToUpper is wrong. | ||||
| User Comments: | ||||
nijtmans added on 2009-05-08 14:36:51:
On the long run, I don't think it's wise to do all UTF-8 processing specially in Tcl, while there are better solutions outside, e.g. utf8proc: http://freshmeat.net/projects/utf8proc/ I would be in favour of including utf8proc in Tcl, and deprecate Tcl's own UTF-8 handling functions. Anyone knows of (better) alternatives to utf8proc? This is worth a TIP! dkf added on 2009-05-08 16:03:44:
Definitive link is
http://www.flexiguided.de/publications.utf8proc.en.html
My principal concern is that it doesn't look to be actively maintained. Perhaps it is perfect...? :-)
nijtmans added on 2009-05-08 18:25:53:
yeah, like libtommath ;-) nijtmans added on 2009-08-27 13:53:55:
utf8proc has a new home:
http://www.public-software-group.org/utf8proc
I think that answers the concern regarding
the maintainance of this software. utf8proc
is not perfect, and in its current form not
even usable for Tcl (e.g. it doesn't compile
with MSVC 6). But all this is fixable, and
having an organisation as contact point
is a big improvement compared to the
earlier situation
dkf added on 2009-08-27 14:58:22:
OK, my non-technical objections are dealt with. Now it's more to do with the actual details of how to do the integration, but that's not something that I expect to be a show-stopper. Just takes effort. This probably ought to be done on a feature-dev branch so that we can get things sorted out (including what API changes we want) before rolling into the mainline, and that also means it won't make 8.6. nijtmans added on 2009-08-27 15:10:15:
How about a simpler path. utf8proc already has ruby bindings, but no Tcl binding. I am planning to write a Tcl stub-enabled extension to utf8proc, with full TEA support. This extension is simply a wrapper to all UTF-8 conversions we need. As soon as this works, we know it is integratable with Tcl. And the development can be done in the utf8proc repository. I only have to become an utf8proc submitter, but I already am talking to Jan Behrens about that. No it won't make 8.6, for sure. I wouln't even try that. jan.nijtmans added on 2021-03-18 21:18:22:
New home again: https://juliastrings.github.io/utf8proc/ | ||||
