All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carles Pina i Estany <carles@pina.cat>
To: grub-devel@gnu.org
Subject: Re: gettext: normal_menu.c
Date: Sat, 28 Nov 2009 01:24:17 +0000	[thread overview]
Message-ID: <20091128012417.GA8530@pina.cat> (raw)
In-Reply-To: <20091128000948.GA2764@pina.cat>


Hi,

On Nov/28/2009, Carles Pina i Estany wrote:

> Find attached the patch and ChangeLog for normal_menu.c

new version with two improvements:
a) uses grubcharwidth to calculate the width of the string (for the
characters that doesn't have any width, etc.). This has to be consistent
with GRUB_TERM_WIDTH.

b) ensure that strings that doesn't fit in one line will be correctly
handled and indented. This can happen in languages where the separator
is not a space. I've checked if there is some unicode character to say
"word separator" and I didn't find, so it adds the newline wherever is
fine for the terminal width.

Question: getstringwidth should be in normal/menu_text.c like it's now
or in kern/term.c like grub_getchardwidth.

Some suggestions before committing?

Thanks,

-- 
Carles Pina i Estany
	http://pinux.info



  reply	other threads:[~2009-11-28  1:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-28  0:09 gettext: normal_menu.c Carles Pina i Estany
2009-11-28  1:24 ` Carles Pina i Estany [this message]
2009-11-28  1:47   ` Carles Pina i Estany
2009-11-28 12:21     ` Carles Pina i Estany
2009-11-28 19:09       ` Robert Millan
2009-11-29  1:04         ` Carles Pina i Estany
2009-11-29  1:17           ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-03 23:22           ` Carles Pina i Estany

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=20091128012417.GA8530@pina.cat \
    --to=carles@pina.cat \
    --cc=grub-devel@gnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.