Summary: Fixed-width tables look bad with multibyte
character encodings
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sat Dec  4 01:39:26 2010
                Category: client
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None
         Planned Release: 



There are a few places where tables of data are displayed in a fixed-width
typeface, relying on spacing for alignment. These don't work when using a
multibyte character encoding (such as UTF-8) in a locale that uses the
multibyte characters.

The examples I've noticed are the autogenerated help for terrain alterations
(client/helpdata.c:insert_generated_table()) and the spaceship report

One place that does get this right is the demographics report. This uses
get_internal_string_length() to calculate the display length of strings, and
pads appropriately. The same approach would probably work for the others.

(In most of these places it would be better to move away from text tables,
but that's a chunk of work; fixing this will be easier.)


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to