Re: [libreoffice-l10n] space between values and units in spinners, fdo#71688

2014-01-22 Thread Caolán McNamara
On Tue, 2014-01-21 at 21:19 +0100, Martin Srebotnjak wrote:

 for Slovenian I already asked to include space in front of % and it
 was done. I also changed all translated strings accordingly. It was
 done for 4.2 or even before, can't remember. Hopefully those settings
 for Slovenian were inherited by 4.3.

The translations of % of vcl/LANG/source/src.po are now no longer used
in favor of the icu-based percent formatter. I checked the CLDR list[1]
and sl is not listed there as using a space, so I suggest you submit the
correct pattern to CLDR for sl at
http://cldr.unicode.org/index/bug-reports

In the mean time I have now added sl to the list of special cases (along
with es) that CLDR has currently the wrong data about and force a space
in there, so 4.3 should now again retain the space for sl

C.

[1]
http://www.unicode.org/cldr/charts/24/by_type/numbers.number_formatting_patterns.html



-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-l10n] space between values and units in spinners, fdo#71688

2014-01-22 Thread Caolán McNamara
On Tue, 2014-01-21 at 11:32 -0600, Adolfo Jayme Barrientos wrote:
 On Tue, Jan 21, 2014 at 5:59 AM, Caolán McNamara caol...@redhat.com wrote:
  [...]
  c) If you agree with icu's % formatting for your language then update
  the translations for X% to be consistent with that formatting. Otherwise
  we can fix icu or make a blacklist of languages which should be excluded
  from the default icu percent formatting.
 
 Caolán, how can we submit a fix for ICU? For instance, Spanish
 formatting should be exactly the same as German, i.e. “#,##0 %”.

So icu gets them via the CLDR, see the chart at
http://www.unicode.org/cldr/charts/24/by_type/numbers.number_formatting_patterns.html
and see the how-to-update guide at
http://cldr.unicode.org/index/bug-reports

The CLDR is an awesome piece of work, e.g. default paper sizes of
regions and so on. It's worth knowing about it and worth checking that
it's right for your locale to help out all projects.

For LibreOffice I can special case Spanish to have a space between the
value and %, but is it a normal space like between words or should it
be a narrow space like Stephen dug out from his German style guide.

C.


-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-l10n] space between values and units in spinners, fdo#71688

2014-01-21 Thread Caolán McNamara
For 4.3 we are now, in the normal case, putting space between values and
units in spinners. e.g. now 10 mm instead of 10mm.
(http://en.wikipedia.org/wiki/ISO_31-0)

For the degree symbol we are not putting space between value and unit,
i.e. it remains 10°

I think those are hopefully uncontroversial.

The tricky case is the % symbol, because, while ISO-31-0 implies that
10 % is the preferred scientific format, English style guides prefer
10% and 10 % looks just plain wrong. It's a locale-dependent
formatting rule (http://en.wikipedia.org/wiki/Percent_sign)

So to resolve this we now have a function formatPercent which takes the
number and the locale and runs it through icu's PercentInstance to
format it according to that locale's formatting rule. Which gives e.g.
10 % for de and 10% for en. (http://site.icu-project.org/)

What this means is that:
a) In the English strings in .src files the source text should not have
a space between number and %. I think these are all fixed now.
b) You should check that the icu percent formatting rule is considered
correct for your language in the context of a office suite UI e.g. in
the spinner of view-zoom-zoom-variable
c) If you agree with icu's % formatting for your language then update
the translations for X% to be consistent with that formatting. Otherwise
we can fix icu or make a blacklist of languages which should be excluded
from the default icu percent formatting.

C.


-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-l10n] space between values and units in spinners, fdo#71688

2014-01-21 Thread Adolfo Jayme Barrientos
On Tue, Jan 21, 2014 at 5:59 AM, Caolán McNamara caol...@redhat.com wrote:
 [...]
 c) If you agree with icu's % formatting for your language then update
 the translations for X% to be consistent with that formatting. Otherwise
 we can fix icu or make a blacklist of languages which should be excluded
 from the default icu percent formatting.

Caolán, how can we submit a fix for ICU? For instance, Spanish
formatting should be exactly the same as German, i.e. “#,##0 %”.

-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-l10n] space between values and units in spinners, fdo#71688

2014-01-21 Thread Martin Srebotnjak
Hi,

for Slovenian I already asked to include space in front of % and it was
done. I also changed all translated strings accordingly. It was done for
4.2 or even before, can't remember. Hopefully those settings for Slovenian
were inherited by 4.3.

Lp, m.


2014/1/21 Caolán McNamara caol...@redhat.com

 For 4.3 we are now, in the normal case, putting space between values and
 units in spinners. e.g. now 10 mm instead of 10mm.
 (http://en.wikipedia.org/wiki/ISO_31-0)

 For the degree symbol we are not putting space between value and unit,
 i.e. it remains 10°

 I think those are hopefully uncontroversial.

 The tricky case is the % symbol, because, while ISO-31-0 implies that
 10 % is the preferred scientific format, English style guides prefer
 10% and 10 % looks just plain wrong. It's a locale-dependent
 formatting rule (http://en.wikipedia.org/wiki/Percent_sign)

 So to resolve this we now have a function formatPercent which takes the
 number and the locale and runs it through icu's PercentInstance to
 format it according to that locale's formatting rule. Which gives e.g.
 10 % for de and 10% for en. (http://site.icu-project.org/)

 What this means is that:
 a) In the English strings in .src files the source text should not have
 a space between number and %. I think these are all fixed now.
 b) You should check that the icu percent formatting rule is considered
 correct for your language in the context of a office suite UI e.g. in
 the spinner of view-zoom-zoom-variable
 c) If you agree with icu's % formatting for your language then update
 the translations for X% to be consistent with that formatting. Otherwise
 we can fix icu or make a blacklist of languages which should be excluded
 from the default icu percent formatting.

 C.


 --
 To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
 Problems?
 http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
 Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
 List archive: http://listarchives.libreoffice.org/global/l10n/
 All messages sent to this list will be publicly archived and cannot be
 deleted


-- 
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/l10n/
All messages sent to this list will be publicly archived and cannot be deleted