9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: mirtchov@cpsc.ucalgary.ca
To: 9fans@cse.psu.edu
Subject: Re: [9fans] fmt and unicode text
Date: Sun, 16 Nov 2003 14:51:44 -0700	[thread overview]
Message-ID: <2f296ccf570a6327a8b88deb54977962@plan9.ucalgary.ca> (raw)
In-Reply-To: <44f445f990c9d739081500c810f292d5@plan9.bell-labs.com>

> 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



      parent reply	other threads:[~2003-11-16 21:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-16 19:29 mirtchov
2003-11-16 21:23 ` Russ Cox
2003-11-16 21:51   ` mirtchov
2003-11-16 22:22     ` Russ Cox
2003-11-16 23:22       ` Lyndon Nerenberg
2003-11-16 23:39         ` Russ Cox
2003-11-16 21:28 ` David Presotto
2003-11-16 21:34   ` David Presotto
2003-11-16 21:52     ` mirtchov
2003-11-16 21:51   ` mirtchov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2f296ccf570a6327a8b88deb54977962@plan9.ucalgary.ca \
    --to=mirtchov@cpsc.ucalgary.ca \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).