Bug 133842 - Localized Ordinal numbering have gender
Summary: Localized Ordinal numbering have gender
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: László Németh
URL:
Whiteboard:
Keywords:
: 135434 (view as bug list)
Depends on:
Blocks: Bullet-Number-Outline-Lists
  Show dependency treegraph
 
Reported: 2020-06-09 22:40 UTC by Olivier Hallot
Modified: 2022-07-20 11:53 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2020-06-09 22:40:55 UTC
In English, we have first, second, third, ... which are invariant.

In some latin languages, these ordinals flex with gender

pt: 
Primeiro, Primeira
Segundo, Segunda
Terceiro, Terceira
Quarto, Quarta
Quinto, Quinta
(...)

We need a second ordinal numbering with female gender.
Comment 1 Dieter 2020-08-04 15:57:54 UTC
*** Bug 135434 has been marked as a duplicate of this bug. ***
Comment 2 Clésio Pinheiro 2020-08-05 08:39:39 UTC
Other examples are:

Portuguese – male: primeiro, segundo, terceiro
Portuguese – female: primeira, segunda, terceira

Italian – male: primo, secondo, terzo
Italian – female: prima, seconda, terza

Spanish – male: primero, segundo, tercero
Spanish – female: primera, segunda, tercera

Writer has the numbers for male gender, but not for female.
Comment 3 Stanislav Horacek 2022-07-13 21:01:30 UTC
I agree that this would be very useful to have an option to choose which category of libnumbertext is used for numbering - i.e. not to restrict it to "ordinal", but also to use "ordinal-feminine" etc.

(A typical issue in Czech: chapters are often numbered by text, which is currently not possible as word for chapter is feminine.)

As this is related to bug #117171, trying to ask László here: is anything like this planned or do you have an idea how this should be implemented?
Comment 4 László Németh 2022-07-20 11:53:49 UTC
(In reply to Stanislav Horacek from comment #3)
> As this is related to bug #117171, trying to ask László here: is anything
> like this planned or do you have an idea how this should be implemented?

@Stanislav, Olivier & All: I'm going to check the issue. I plan to fix it for a long time, especially because for dates it's possible to add special NumberText conversions using NatNum12. (Used by the Hungarian module this way:

i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=abbreviation]YYYY". "MMMM D.</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive]YYYY". "MMMM D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive-superessive]YYYY". "MMMM D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive-ablative]YYYY". "MMMM D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive-terminative]YYYY". "MMMM D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive-adjective]YYYY". "MMMM D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive-superessive,NNN=superessive]YYYY". "MMMM D, NNN</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive]MMMM" "D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive-superessive]MMMM" "D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive-ablative]MMMM" "D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 D=possessive-terminative]MMMM" "D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=article,D=possessive-adjective]MMMM" "D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=capitalize article,D=possessive-adjective]MMMM" "D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=article,D=adjective]MMMM" "D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=capitalize article,D=adjective]MMMM" "D</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=article]MMMM"i"</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=capitalize article]MMMM"i"</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 superessive]NNN</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 ablative]NNN</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 terminative]NNN</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 inessive]YYYY</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 ablative]YYYY</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 article]MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 capitalize article]MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 inessive]MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 article inessive]MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 capitalize article inessive]MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 ablative]MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 article ablative]MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 capitalize article ablative]MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=possessive-inessive]YYYY" "MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=possessive-ablative]YYYY" "MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 MMMM=possessive-terminative]YYYY" "MMMM</FormatCode>
i18npool/source/localedata/data/hu_HU.xml:      <FormatCode>[NatNum12 ordinal year]YYYY</FormatCode>)

Thanks for the bug report!

Best regards,

László