URL:
  <http://gna.org/bugs/?17215>

                 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
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

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
(client/text.c:get_spaceship_descr()).

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:

  <http://gna.org/bugs/?17215>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to