[Fwd: Re: [Subsurface] #3: Better layout of localized printout]

Salvador Cuñat salvador.cunat at gmail.com
Fri Nov 16 09:48:39 PST 2012


Hellow.

I put this comment and a little patch on track system thinking, don't
ask me why, it would link with this list.

There was an obvious mistake when I said "I have modified the justify of
the text from "center" to "left"", I meant I had removed the justify by
putting it to 0.

There is a very simple solution for the header, trimming the localized
text in pango_layout_set_text() to the desired size, but we would get
words cut in a hideous way  as (in spanish for Profundidad)  "Profundi".

So I still think that limiting the size of the words in de .po file will
bring better results as it leaves the choice of the abbreviation to the
translator.

Best regards.

Salva.


--------- Mensaje reenviado --------
De: Subsurface Bug Tracking System <trac at hohndel.org>
Reply-to: trac at hohndel.org
Cc: subsurface-trac at hohndel.org
Asunto: Re: [Subsurface] #3: Better layout of localized printout
Fecha: Tue, 13 Nov 2012 00:22:51 -0000

#3: Better layout of localized printout
----------------------------------+------------------------------
Reporter:  Dirk Hohndel <dirk@…>  |       Owner:  Subsurface Team
    Type:  defect                 |      Status:  new
Priority:  major                  |   Component:  Translations
 Version:  2.1-rc1                |  Resolution:
Keywords:                         |
----------------------------------+------------------------------

Comment (by salvador.cunat@…):

 I don't think there is a generic solution, but limiting the size of the
 localized texts, as the width of the columns is finite.

 One aproach would be scaling the text but we would get diferent sizes in a
 per column basis, and I'm afraid it would be worse than the first option.

 I've attached a patch to this ticket that mainly creates a grid around
 each dive in the table form.  In adition I have modified the justify of
 the text from "center" to "left", wich improves slightly the printout of
 the dives, not the header one.

 Regards.

 Salva.

-- 
Ticket URL: <http://trac.hohndel.org/ticket/3#comment:1>
Subsurface <http://subsurface.hohndel.org>
Subsurface Dive Log

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Improving-table-print-output..patch
Type: text/x-patch
Size: 4747 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20121116/12bef8c0/attachment.bin>


More information about the subsurface mailing list