|
From: Ethan M. <merritt@u.washington.edu> - 2006-12-13 19:22:04
|
On Wednesday 13 December 2006 04:23 am, Mojca Miklavec wrote: > > TeX-based pseudo-terminals support Unicode "without any problem". Except for the problem that TeX itself doesn't know about Unicode, right? I gather that there are several recent TeX variants that do handle it, though. XeTeX seems promising, but maybe it's OSX only. You mention ConTeXt also, which I still haven't found the time to investigate, but at least it comes by default as part of the texmf rpm I'm using. > But one more question, which might be independent from the terminal > in use. How does gnuplot calculate the label width when utf-8 > encoding is used? This is done by the routine estimate_strlen() in term.c, which basically just calls strlen(). So yes, you have a very good point there. It should probably use wcslen() instead. But then we will have to wrap it with tests for locale support. I wonder whether #ifdef HAVE_LOCALE is sufficient to guarantee that wcslen() is available, or whether the configuration script would have to test for it specifically. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |