Bug 133842

Summary: Localized Ordinal numbering have gender
Product: LibreOffice Reporter: Olivier Hallot <olivier.hallot>
Component: WriterAssignee: László Németh <nemeth>
Status: ASSIGNED ---    
Severity: enhancement CC: clesiopof, fitojb, nemeth, raal, stanislav.horacek, tom.drvota
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103369    

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ó