From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2f296ccf570a6327a8b88deb54977962@plan9.ucalgary.ca> To: 9fans@cse.psu.edu Subject: Re: [9fans] fmt and unicode text From: mirtchov@cpsc.ucalgary.ca In-Reply-To: <44f445f990c9d739081500c810f292d5@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sun, 16 Nov 2003 14:51:44 -0700 Topicbox-Message-UUID: 8b897f6e-eacc-11e9-9e20-41e7f4b1d025 > Odd, of the two examples, the old fmt looks reasonable on my screen > and the other has odd long and unbalanced line. What is the > advantage here? it is long and unbalanced because the font it's rendered in has cyrillic letters that are larger than the english ones. it's bad even in the default acme fixed-size font. it looks bad because i used a fairly small sample of text. the problem with the older fmt was treating 2- and more-byted utf character as two 1-byte ones for the purpose of finding where to put the EOL. A 36-letter text in russian will thus be broken into two lines, even though it's way below the 70-char line margin. if you want to see how it looks with a proper fixed-size font try /lib/font/bit/10646/7x13/7x13.font: http://pages.cpsc.ucalgary.ca/~mirtchov/screenshots/scr-fmt.jpg andrey