Package: firefox
Version: 1.5.dfsg+1.5.0.3-2
Severity: normal

The following script's output you can save in a file.txt and then do
$ firefox file.txt
to see the problem. Putting the output within <TT> or <PRE> in an HTML
file won't help either. Even though that is supposed to be monospace
according to HTML specs. Chinese is supposed to be double width, ASCII
single width. It's as simple as that.

#!/usr/bin/perl
use strict;
use warnings;
## Firefox fixed width not fixed bug:
## Very frustrating. Why do I have to make these crooked lines,
my @card_firefox = <<zzz =~ m/(\S.*)\|/g;
積丹尼                  (04)25854780|
台灣   42351  台中縣東勢鎮慶福街 1-6 號|
1-6 QINGFU ST; DONGSHI 42351 TAIWAN|
Dan Jacobson    http://jidanni.org/|
zzz
## so that they will line up in firefox and firefox's Print Preview,
## (writing to file.txt) whereas w3m on uxterm, dillo,
## openoffice print preview, etc. all do fine with
my @card_eveything_else = <<zzz =~ m/(\S.*)\|/g;
積丹尼                 (04)25854780|
台灣 42351台中縣東勢鎮慶福街 1-6 號|
1-6 QINGFU ST; DONGSHI 42351 TAIWAN|
Dan Jacobson    http://jidanni.org/|
zzz

sub pair {
    for ( @_, "" ) { print "$_  $_\n" }
}
print "For firefox:\n";
for ( 1 .. 3 ) { pair(@card_firefox) }
print "For everything else:\n";
for ( 4 .. 6 ) { pair(@card_eveything_else) }


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to