From mboxrd@z Thu Jan 1 00:00:00 1970 From: Latchesar Ionkov To: 9fans@cse.psu.edu Subject: Re: diacritics (was: Re: [9fans] don't shoot me) Message-ID: <20030811143341.GA12975@ionkov.net> References: <829028fc324d5e94684699b99d6b8a94@plan9.bell-labs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Date: Mon, 11 Aug 2003 10:33:42 -0400 Topicbox-Message-UUID: 16fccd90-eacc-11e9-9e20-41e7f4b1d025 Showing combining diacritics in Plan9 doesn't require a lot of changes. The current font implementation supports the ability of drawing something on the top of the previous character (if Fontchar.left is negative). The only problem is that Fontchar.width == 0 is a special value that instructs libdraw to show the glyph of the NUL character. I think it makes more sense to change the special case to be (Fontchar.width + Fontchar.left) == 0 instead of Fontchar.width == 0 It won't break any of the existing fonts and will make the combining diacritics work as expected. The change in the code is in /sys/src/libdraw/font.c:275 I changed if(fi->width == 0) to if(fi->width+fi->left == 0) Does it make sense? Is it going to break anything else? Thanks, Lucho Can we change the special On Fri, Jul 18, 2003 at 11:37:03AM -0600, andrey mirtchovski said: > On Fri, 18 Jul 2003, David Presotto wrote: > > > . > > this reminds me -- there is a difference between diacritics in X and in Plan 9: > > http://pages.cpsc.ucalgary.ca/~mirtchov/screenshots/x-p9-diacritics.png > > what can be done to get the X behaviour in Plan 9?