From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39630 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: UTF-8 characters and gnuplot module Date: Mon, 24 Mar 2008 21:14:15 +0100 Message-ID: <6faad9f00803241314m467aeec8hc590f2c0f8ef86b1@mail.gmail.com> References: <6faad9f00803240853n1d3df88dt31808c998d3b674@mail.gmail.com> <200803241152.20110.merritt@u.washington.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206389774 3989 80.91.229.12 (24 Mar 2008 20:16:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2008 20:16:14 +0000 (UTC) Cc: mailing list for ConTeXt users , Peter Hedwig To: "Ethan Merritt" Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 24 21:16:43 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Jdt5w-00039j-GE for gctc-ntg-context-518@m.gmane.org; Mon, 24 Mar 2008 21:16:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 64A631FC67; Mon, 24 Mar 2008 21:15:56 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19114-01-2; Mon, 24 Mar 2008 21:14:59 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BFE011FC21; Mon, 24 Mar 2008 21:14:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D4E1C1FC27 for ; Mon, 24 Mar 2008 21:14:58 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17761-02 for ; Mon, 24 Mar 2008 21:14:20 +0100 (CET) Original-Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.190]) by ronja.ntg.nl (Postfix) with ESMTP id 8BB261FC21 for ; Mon, 24 Mar 2008 21:14:18 +0100 (CET) Original-Received: by ti-out-0910.google.com with SMTP id y8so883123tia.14 for ; Mon, 24 Mar 2008 13:14:16 -0700 (PDT) Original-Received: by 10.150.154.6 with SMTP id b6mr3432319ybe.64.1206389655637; Mon, 24 Mar 2008 13:14:15 -0700 (PDT) Original-Received: by 10.150.122.20 with HTTP; Mon, 24 Mar 2008 13:14:15 -0700 (PDT) In-Reply-To: <200803241152.20110.merritt@u.washington.edu> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:39630 Archived-At: On Mon, Mar 24, 2008 at 7:52 PM, Ethan Merritt wrote: > On Monday 24 March 2008 08:53, Mojca Miklavec wrote: > > PS: I'm CC-ing to Ethan in case he has some proposal about what could > > be done with metapost terminal to support UTF-8 (one of the best thing > > to do would be to remove cmr, but more is needed), and I'm CC-ing to > > the developer of the new TikZ terminal (for no specific reason). > > Gnuplot's metapost terminal correctly passes through UTF-8 characters > to the output. That's right. > Metapost itself then mangles them. That's also right. Actually, "btex label etex" which calls TeX (in an extremely inefficient way, among other things) is the one that doesn't know how to handle them. It would be nice if someone from this mailing list had at least some idea if that is solvable or not. Maybe harcoding utf-8 it into mptopdf could help, but that's far from being a nice solution, and has other undesired side-effects, so it's probably not really desired. Yet another solution would be to add some more commands to verbatimtex ... etex, but I don't see how to do that in some portable way. For example, metapost terminal already tries to be clever in some cases, and then loads obsolete (not to say not-existing-any-more-on-my-computer) fonts. > If there is some > additional keyword or command that gnuplot could emit that would allow > metapost to do better, please let me know. OK, I will let you know if someone will come up with some idea. > Otherwise I think this > problem must be resolved by using a different toolchain, one that is > UTF-8 aware. > > Mojca: > > If the context terminal allows UTF-8 strings to be properly handled > by TeX, for me that's a strong argument in favor of including it in the > next gnuplot release. Does it? Of course. "Anything" that ConTeXt suports can be supported in those labels now, including UTF-8. UTF-8 was one of the main reasons why PostScript terminal was almost out of question for me. Two years ago Hans and Taco "could not sleep" because of my requests & complaints, and they have made some major (great) improvements in ConTeXt and metapost code: labels processing became more reliable and about 100 times faster, and will improve even more with TeX Live 2008 and mplib. Those improvements are also the main reason why terminal didn't work in teTeX (but should work without problems in TeX Live 2007, which should become part of most Linux distributions by now). If you are willing to consider inclusion of the context terminal - may I ask you for your opinion about this terminal as well: http://peter.affenbande.org/gnuplot/ We're having some conversation with Peter about the possibilities to make his Lua-based TikZ terminal portable across plain TeX/LaTeX/ConTeXt formats, while TikZ itself is portable across dvips/pdfTeX (LuaTeX)/XeTeX engines. His terminal is much more popular than mine (there are more LaTeX users around than there are ConTeXt users), but the terminal has a dependency on Lua. However, any further conversation about this should better be moved off-list or to gnuplot-beta. Thanks a lot, Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________