From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84199 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: devanagari rendering (2 errors) Date: Tue, 10 Sep 2013 14:04:09 +0200 Message-ID: <522F0AB9.5090301@wxs.nl> References: <522E4A21.2090905@wxs.nl> <7FE3820F-56A9-4628-9447-E2C1DE305C72@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378814691 19743 80.91.229.3 (10 Sep 2013 12:04:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2013 12:04:51 +0000 (UTC) To: ntg-context@ntg.nl, g.c.eigner@vu.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 10 14:04:52 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VJMgd-0003op-Vm for gctc-ntg-context-518@m.gmane.org; Tue, 10 Sep 2013 14:04:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7E654101EB; Tue, 10 Sep 2013 14:03:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hJxZHGA8OXP9; Tue, 10 Sep 2013 14:03:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 577F9101F2; Tue, 10 Sep 2013 14:03:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7DCC5101F2 for ; Tue, 10 Sep 2013 14:03:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id A6hPHT3Pz9Ss for ; Tue, 10 Sep 2013 14:02:56 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 94263101EB for ; Tue, 10 Sep 2013 14:02:56 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r8AC4b5w004499 for ; Tue, 10 Sep 2013 14:04:37 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 4927-1713362 for multiple; Tue, 10 Sep 2013 14:04:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <7FE3820F-56A9-4628-9447-E2C1DE305C72@gmail.com> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NKno4Bgh - 1a498feac8a3 - 20130910 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84199 Archived-At: On 9/10/2013 6:43 AM, Peter Graif wrote: > >> >> Can you make a as-small-as-possible test file? >> >> Preferable with proper utf-8 sequences (+ comment mentioning numbers/classes), good and wrong. >> >> I can probably figure it out but I cannot read or input easily this kind of scripts. >> >> Hans >> > > Sure thing. I don't understand how opentype features are represented nor how the ligature logic is dividd up between the font and the engine, so I'm not quite sure what information is helpful or relevant. But, here's a minimal document that contains all the problem sequences I've identified. > > As a rough guide, here's another image with the current ConTeXt rendering in black and the desired rendering in red: > http://i.imgur.com/MyvMneg.png > > Is that the information you need? Or is there something else I can do? it's ok it took me quite a while to notice that it's a side effect of two features that are turned on you can play with \definefontfeature [devanagari-one] [devanagari-one] [rphf=no] and \definefontfeature [devanagari-one] [devanagari-one] [half=no] maybe Kai can have a look at it: as these are dealt with in a different we probably don't need to enable them in the feature processor (even block them) btw, you can play with \showotfcomposition{file:chandas.ttf*devanagari-one}{l2r}{\char"0915 \char"094D \char"0930} to see what happens (i also noticed a few possible further optimizations but that's for later) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________