features/locales/ordinalize.feature in csl-1.0.0.pre5 vs features/locales/ordinalize.feature in csl-1.0.0.pre6
- old
+ new
@@ -1,11 +1,11 @@
Feature: Converting numbers to ordinals using CSL locales
In order to support the requirements of CSL styles that use ordinals
As a hacker of CSL styles
I want to be able to convert numbers to ordinals
- @v1.0 @locale @ordinals @i18n @lang:en
+ @v1.0 @locale @ordinals @i18n @lang-en
Scenario: English CSL 1.0 locales
Given the locale:
"""
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="en">
@@ -56,47 +56,52 @@
| 111th |
| 112th |
| 113th |
| -102nd |
- @v1.0.1 @locale @ordinals @i18n @lang:en
+ @v1.0.1 @locale @ordinals @i18n @lang-en
Scenario: English CSL 1.0.1 locales
Given the locale:
"""
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="en">
<terms>
- <term name="ordinal-00">th</term>
+ <term name="ordinal">th</term>
+
<term name="ordinal-01">st</term>
<term name="ordinal-02">nd</term>
<term name="ordinal-03">rd</term>
+
<term name="ordinal-11">th</term>
<term name="ordinal-12">th</term>
<term name="ordinal-13">th</term>
</terms>
</locale>
"""
When I ordinalize these numbers:
- | number |
- | 0 |
- | 1 |
- | 2 |
- | 3 |
- | 4 |
- | 5 |
- | 10 |
- | 11 |
- | 12 |
- | 13 |
- | 20 |
- | 21 |
- | 22 |
- | 23 |
- | 111 |
- | 112 |
- | 113 |
- | -102 |
+ | num | form | gender | number |
+ | 0 | | | |
+ | 1 | | | |
+ | 2 | | | |
+ | 3 | | | |
+ | 4 | | | |
+ | 5 | | | |
+ | 10 | | | |
+ | 11 | | | |
+ | 12 | | | |
+ | 13 | | | |
+ | 20 | | | |
+ | 21 | | | |
+ | 22 | | | |
+ | 23 | | | |
+ | 111 | | | |
+ | 112 | | | |
+ | 113 | | | |
+ | -102 | | | |
+ # | 1 | | masculine | |
+ # | 2 | | feminine | |
+ # | 3 | | | plural |
Then the ordinals should be:
| ordinal |
| 0th |
| 1st |
| 2nd |
@@ -113,19 +118,23 @@
| 23rd |
| 111th |
| 112th |
| 113th |
| -102nd |
+ # | 1st |
+ # | 2nd |
+ # | 3rd |
- @v1.0.1 @locale @ordinals @i18n @gender @lang:de
+ @v1.0.1 @locale @ordinals @i18n @gender @lang-de
Scenario: Gendered German CSL 1.0.1 locales
Given the locale:
"""
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="de">
<terms>
- <term name="ordinal-00">.</term>
+ <term name="ordinal">.</term>
+
<term name="long-ordinal-01">erstes</term>
<term name="long-ordinal-01" gender-form="feminine">
<single>erste</single>
<multiple>ersten</multiple>
</term>
@@ -174,35 +183,34 @@
| 3. |
| erster |
| zweiter |
| 3. |
- @v1.0.1 @locale @ordinals @i18n @gender @lang:fr
+ @v1.0.1 @locale @ordinals @i18n @gender @lang-fr
Scenario: Gendered French CSL 1.0.1 locales
Given the locale:
"""
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="de">
<terms>
- <term name="ordinal-00">
+ <term name="ordinal">
<single>e</single>
<multiple>es</multiple>
</term>
- <term name="ordinal-01" modulo="1">
+ <term name="ordinal-01" match="whole-number">
<single>re</single>
<multiple>res</multiple>
</term>
- <term name="ordinal-01" gender-form="feminine" modulo="1">
+ <term name="ordinal-01" gender-form="feminine" match="whole-number">
<single>re</single>
<multiple>res</multiple>
</term>
- <term name="ordinal-01" gender-form="masculine" modulo="1">
+ <term name="ordinal-01" gender-form="masculine" match="whole-number">
<single>er</single>
<multiple>ers</multiple>
</term>
-
</terms>
</locale>
"""
When I ordinalize these numbers:
| num | form | gender | number |
@@ -220,19 +228,21 @@
| 11 | | | |
| 21 | | | |
| 101 | | | |
| 1001 | | | |
| 301 | | | |
-# | 21 | | masculine |
-# | 1001 | | masculine |
+ | 21 | | masculine | |
+ | 1001 | | masculine | |
+ | 42 | | masculine | |
+ | 42 | | masculine | plural |
Then the ordinals should be:
| ordinal |
| 0e |
- | 1e |
| 1re |
+ | 1re |
| 1er |
- | 1e |
+ | 1re |
| 1res |
| 1ers |
| 2e |
| 3e |
| 3es |
@@ -240,100 +250,44 @@
| 11e |
| 21e |
| 101e |
| 1001e |
| 301e |
-# These are currently incorrect:
-# | 21e |
-# | 1001e |
+ | 21e |
+ | 1001e |
+ | 42e |
+ | 42es |
- @v1.0.1 @locale @ordinals @i18n @lang:nl
+ @v1.0.1 @locale @ordinals @i18n @lang-nl
Scenario: Dutch CSL 1.0.1 locales (nulde form)
Given the locale:
"""
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="nl">
<terms>
- <term name="ordinal-00">de</term>
+ <term name="ordinal">ste</term>
+
+ <term name="ordinal-00" match="whole-number">de</term>
+
+ <term name="ordinal-02" match="2-digits">de</term>
+ <term name="ordinal-03" match="2-digits">de</term>
+ <term name="ordinal-04" match="2-digits">de</term>
+ <term name="ordinal-05" match="2-digits">de</term>
+ <term name="ordinal-06" match="2-digits">de</term>
+ <term name="ordinal-07" match="2-digits">de</term>
+ <term name="ordinal-09" match="2-digits">de</term>
- <term name="ordinal-01">ste</term>
- <term name="ordinal-08">ste</term>
-
- <term name="ordinal-11">de</term>
- <term name="ordinal-18">de</term>
-
- <term name="ordinal-20">ste</term>
- <term name="ordinal-22">ste</term>
- <term name="ordinal-23">ste</term>
- <term name="ordinal-24">ste</term>
- <term name="ordinal-25">ste</term>
- <term name="ordinal-26">ste</term>
- <term name="ordinal-27">ste</term>
- <term name="ordinal-29">ste</term>
-
- <term name="ordinal-30">ste</term>
- <term name="ordinal-32">ste</term>
- <term name="ordinal-33">ste</term>
- <term name="ordinal-34">ste</term>
- <term name="ordinal-35">ste</term>
- <term name="ordinal-36">ste</term>
- <term name="ordinal-37">ste</term>
- <term name="ordinal-39">ste</term>
-
- <term name="ordinal-40">ste</term>
- <term name="ordinal-42">ste</term>
- <term name="ordinal-43">ste</term>
- <term name="ordinal-44">ste</term>
- <term name="ordinal-45">ste</term>
- <term name="ordinal-46">ste</term>
- <term name="ordinal-47">ste</term>
- <term name="ordinal-49">ste</term>
-
- <term name="ordinal-50">ste</term>
- <term name="ordinal-52">ste</term>
- <term name="ordinal-53">ste</term>
- <term name="ordinal-54">ste</term>
- <term name="ordinal-55">ste</term>
- <term name="ordinal-56">ste</term>
- <term name="ordinal-57">ste</term>
- <term name="ordinal-59">ste</term>
-
- <term name="ordinal-60">ste</term>
- <term name="ordinal-62">ste</term>
- <term name="ordinal-63">ste</term>
- <term name="ordinal-64">ste</term>
- <term name="ordinal-65">ste</term>
- <term name="ordinal-66">ste</term>
- <term name="ordinal-67">ste</term>
- <term name="ordinal-69">ste</term>
-
- <term name="ordinal-70">ste</term>
- <term name="ordinal-72">ste</term>
- <term name="ordinal-73">ste</term>
- <term name="ordinal-74">ste</term>
- <term name="ordinal-75">ste</term>
- <term name="ordinal-76">ste</term>
- <term name="ordinal-77">ste</term>
- <term name="ordinal-79">ste</term>
-
- <term name="ordinal-80">ste</term>
- <term name="ordinal-82">ste</term>
- <term name="ordinal-83">ste</term>
- <term name="ordinal-84">ste</term>
- <term name="ordinal-85">ste</term>
- <term name="ordinal-86">ste</term>
- <term name="ordinal-87">ste</term>
- <term name="ordinal-89">ste</term>
-
- <term name="ordinal-90">ste</term>
- <term name="ordinal-92">ste</term>
- <term name="ordinal-93">ste</term>
- <term name="ordinal-94">ste</term>
- <term name="ordinal-95">ste</term>
- <term name="ordinal-96">ste</term>
- <term name="ordinal-97">ste</term>
- <term name="ordinal-99">ste</term>
+ <term name="ordinal-10" match="2-digits">de</term>
+ <term name="ordinal-11" match="2-digits">de</term>
+ <term name="ordinal-12" match="2-digits">de</term>
+ <term name="ordinal-13" match="2-digits">de</term>
+ <term name="ordinal-14" match="2-digits">de</term>
+ <term name="ordinal-15" match="2-digits">de</term>
+ <term name="ordinal-16" match="2-digits">de</term>
+ <term name="ordinal-17" match="2-digits">de</term>
+ <term name="ordinal-18" match="2-digits">de</term>
+ <term name="ordinal-19" match="2-digits">de</term>
</terms>
</locale>
"""
When I ordinalize these numbers:
| number |
@@ -410,105 +364,37 @@
| 108ste |
| 111de |
| 112de |
| 113de |
- @v1.0.1 @locale @ordinals @i18n @lang:nl
+ @v1.0.1 @locale @ordinals @i18n @lang-nl
Scenario: Dutch CSL 1.0.1 locales (nulste form)
Given the locale:
"""
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="nl">
<terms>
- <term name="ordinal-00">ste</term>
+ <term name="ordinal">ste</term>
- <term name="ordinal-01">ste</term>
- <term name="ordinal-08">ste</term>
+ <term name="ordinal-02" match="2-digits">de</term>
+ <term name="ordinal-03" match="2-digits">de</term>
+ <term name="ordinal-04" match="2-digits">de</term>
+ <term name="ordinal-05" match="2-digits">de</term>
+ <term name="ordinal-06" match="2-digits">de</term>
+ <term name="ordinal-07" match="2-digits">de</term>
+ <term name="ordinal-09" match="2-digits">de</term>
- <term name="ordinal-02">de</term>
- <term name="ordinal-03">de</term>
- <term name="ordinal-04">de</term>
- <term name="ordinal-05">de</term>
- <term name="ordinal-06">de</term>
- <term name="ordinal-07">de</term>
- <term name="ordinal-09">de</term>
-
- <term name="ordinal-10">de</term>
- <term name="ordinal-11">de</term>
- <term name="ordinal-12">de</term>
- <term name="ordinal-13">de</term>
- <term name="ordinal-14">de</term>
- <term name="ordinal-15">de</term>
- <term name="ordinal-16">de</term>
- <term name="ordinal-17">de</term>
- <term name="ordinal-18">de</term>
- <term name="ordinal-19">de</term>
-
- <term name="ordinal-22">ste</term>
- <term name="ordinal-23">ste</term>
- <term name="ordinal-24">ste</term>
- <term name="ordinal-25">ste</term>
- <term name="ordinal-26">ste</term>
- <term name="ordinal-27">ste</term>
- <term name="ordinal-29">ste</term>
-
- <term name="ordinal-32">ste</term>
- <term name="ordinal-33">ste</term>
- <term name="ordinal-34">ste</term>
- <term name="ordinal-35">ste</term>
- <term name="ordinal-36">ste</term>
- <term name="ordinal-37">ste</term>
- <term name="ordinal-39">ste</term>
-
- <term name="ordinal-42">ste</term>
- <term name="ordinal-43">ste</term>
- <term name="ordinal-44">ste</term>
- <term name="ordinal-45">ste</term>
- <term name="ordinal-46">ste</term>
- <term name="ordinal-47">ste</term>
- <term name="ordinal-49">ste</term>
-
- <term name="ordinal-52">ste</term>
- <term name="ordinal-53">ste</term>
- <term name="ordinal-54">ste</term>
- <term name="ordinal-55">ste</term>
- <term name="ordinal-56">ste</term>
- <term name="ordinal-57">ste</term>
- <term name="ordinal-59">ste</term>
-
- <term name="ordinal-62">ste</term>
- <term name="ordinal-63">ste</term>
- <term name="ordinal-64">ste</term>
- <term name="ordinal-65">ste</term>
- <term name="ordinal-66">ste</term>
- <term name="ordinal-67">ste</term>
- <term name="ordinal-69">ste</term>
-
- <term name="ordinal-72">ste</term>
- <term name="ordinal-73">ste</term>
- <term name="ordinal-74">ste</term>
- <term name="ordinal-75">ste</term>
- <term name="ordinal-76">ste</term>
- <term name="ordinal-77">ste</term>
- <term name="ordinal-79">ste</term>
-
- <term name="ordinal-82">ste</term>
- <term name="ordinal-83">ste</term>
- <term name="ordinal-84">ste</term>
- <term name="ordinal-85">ste</term>
- <term name="ordinal-86">ste</term>
- <term name="ordinal-87">ste</term>
- <term name="ordinal-89">ste</term>
-
- <term name="ordinal-92">ste</term>
- <term name="ordinal-93">ste</term>
- <term name="ordinal-94">ste</term>
- <term name="ordinal-95">ste</term>
- <term name="ordinal-96">ste</term>
- <term name="ordinal-97">ste</term>
- <term name="ordinal-99">ste</term>
-
+ <term name="ordinal-10" match="2-digits">de</term>
+ <term name="ordinal-11" match="2-digits">de</term>
+ <term name="ordinal-12" match="2-digits">de</term>
+ <term name="ordinal-13" match="2-digits">de</term>
+ <term name="ordinal-14" match="2-digits">de</term>
+ <term name="ordinal-15" match="2-digits">de</term>
+ <term name="ordinal-16" match="2-digits">de</term>
+ <term name="ordinal-17" match="2-digits">de</term>
+ <term name="ordinal-18" match="2-digits">de</term>
+ <term name="ordinal-19" match="2-digits">de</term>
</terms>
</locale>
"""
When I ordinalize these numbers:
| number |
@@ -546,10 +432,16 @@
| 102 |
| 108 |
| 111 |
| 112 |
| 113 |
+ | 142 |
+ | 163 |
+ | 1216 |
+ | 919 |
+ | 379 |
+ | 420 |
Then the ordinals should be:
| ordinal |
| 0ste |
| 1ste |
| 2de |
@@ -584,21 +476,27 @@
| 102de |
| 108ste |
| 111de |
| 112de |
| 113de |
+ | 142ste |
+ | 163ste |
+ | 1216de |
+ | 919de |
+ | 379ste |
+ | 420ste |
- @v1.0.1 @locale @ordinals @i18n @gender @lang:es
+ @v1.0.1 @locale @ordinals @i18n @gender @lang-es
Scenario: Gendered Spanish CSL 1.0.1 locales
Given the locale:
"""
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="es">
<terms>
- <term name="ordinal-00">.º</term>
- <term name="ordinal-00" gender-form="masculine">.º</term>
- <term name="ordinal-00" gender-form="feminine">.ª</term>
+ <term name="ordinal">.º</term>
+ <term name="ordinal" gender-form="masculine">.º</term>
+ <term name="ordinal" gender-form="feminine">.ª</term>
</terms>
</locale>
"""
When I ordinalize these numbers:
| num | form | gender | number |
@@ -634,11 +532,10 @@
| 1001 | | masculine | |
Then the ordinals should be:
| ordinal |
| 0.º |
| 1.º |
-# | 1.er |
| 2.º |
| 3.º |
| 4.º |
| 5.º |
| 6.º |
@@ -647,46 +544,38 @@
| 9.º |
| 10.º |
| 1.ª |
| 1.º |
| 1.º |
-# | 1.er |
-# | 1.er |
| 1.º |
| 3.ª |
| 3.º |
-# | 3.er |
| 2.ª |
| 23.º |
| 999.º |
| 11.º |
| 11.ª |
| 11.º |
| 21.º |
| 101.º |
-# | 21.er |
-# | 101.er |
| 1001.ª |
| 301.º |
-# | 301.er |
| 21.º |
-# | 21.er |
| 21.º |
| 1001.º |
-# | 1001.er |
- @v1.0.1 @locale @ordinals @i18n @gender @lang:it
+ @v1.0.1 @locale @ordinals @i18n @gender @lang-it
Scenario: Gendered Italian CSL 1.0.1 locales
Given the locale:
"""
<?xml version="1.0" encoding="utf-8"?>
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="it">
<terms>
- <term name="ordinal-00">º</term>
- <term name="ordinal-00" gender-form="masculine">º</term>
- <term name="ordinal-00" gender-form="feminine">ª</term>
+ <term name="ordinal">º</term>
+ <term name="ordinal" gender-form="masculine">º</term>
+ <term name="ordinal" gender-form="feminine">ª</term>
</terms>
</locale>
"""
When I ordinalize these numbers:
| num | form | gender | number |
@@ -720,184 +609,184 @@
| 21 | | masculine | singular |
| 21 | | masculine | plural |
| 1001 | | masculine | |
Then the ordinals should be:
| ordinal |
- | 0º |
- | 1º |
- | 2º |
- | 3º |
- | 4º |
- | 5º |
- | 6º |
- | 7º |
- | 8º |
- | 9º |
- | 10º |
- | 1ª |
- | 1º |
- | 1º |
- | 1º |
- | 3ª |
- | 3º |
- | 2ª |
- | 23º |
- | 999º |
- | 11º |
- | 11ª |
- | 11º |
- | 21º |
- | 101º |
- | 1001ª |
- | 301º |
- | 21º |
- | 21º |
- | 1001º |
+ | 0º |
+ | 1º |
+ | 2º |
+ | 3º |
+ | 4º |
+ | 5º |
+ | 6º |
+ | 7º |
+ | 8º |
+ | 9º |
+ | 10º |
+ | 1ª |
+ | 1º |
+ | 1º |
+ | 1º |
+ | 3ª |
+ | 3º |
+ | 2ª |
+ | 23º |
+ | 999º |
+ | 11º |
+ | 11ª |
+ | 11º |
+ | 21º |
+ | 101º |
+ | 1001ª |
+ | 301º |
+ | 21º |
+ | 21º |
+ | 1001º |
- @v1.0.1 @locale @ordinals @i18n @gender @lang:sv
- Scenario: Gendered Swedish CSL 1.0.1 locales
- Given the locale:
- """
- <?xml version="1.0" encoding="utf-8"?>
- <locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="sv">
- <terms>
- <term name="ordinal-00">:e</term>
+# @v1.0.1 @locale @ordinals @i18n @gender @lang-sv
+# Scenario: Gendered Swedish CSL 1.0.1 locales
+# Given the locale:
+# """
+# <?xml version="1.0" encoding="utf-8"?>
+# <locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="sv">
+# <terms>
+# <term name="ordinal-00">:e</term>
+#
+# <term name="ordinal-01">:a</term>
+# <term name="ordinal-01" gender-form="masculine">:e</term>
+# <term name="ordinal-01" gender-form="feminine">:a</term>
+#
+# <term name="ordinal-02">:a</term>
+# <term name="ordinal-02" gender-form="masculine">:e</term>
+# <term name="ordinal-02" gender-form="feminine">:a</term>
+#
+# <term name="ordinal-11">:e</term>
+# <term name="ordinal-11" gender-form="feminine">:e</term>
+# <term name="ordinal-12">:e</term>
+# <term name="ordinal-12" gender-form="feminine">:e</term>
+#
+# <term name="ordinal-21">:e</term>
+# <term name="ordinal-21" gender-form="feminine">:e</term>
+# <term name="ordinal-22">:e</term>
+# <term name="ordinal-22" gender-form="feminine">:e</term>
+#
+# <term name="ordinal-31">:e</term>
+# <term name="ordinal-32">:e</term>
+#
+# <term name="ordinal-41">:e</term>
+# <term name="ordinal-42">:e</term>
+#
+# <term name="ordinal-51">:e</term>
+# <term name="ordinal-52">:e</term>
+#
+# <term name="ordinal-61">:e</term>
+# <term name="ordinal-62">:e</term>
+#
+# <term name="ordinal-71">:e</term>
+# <term name="ordinal-72">:e</term>
+#
+# <term name="ordinal-81">:e</term>
+# <term name="ordinal-82">:e</term>
+#
+# <term name="ordinal-91">:e</term>
+# <term name="ordinal-92">:e</term>
+# </terms>
+# </locale>
+# """
+# When I ordinalize these numbers:
+# | num | form | gender | number |
+# | 0 | | | |
+# | 1 | | | |
+# | 2 | | | |
+# | 3 | | | |
+# | 4 | | | |
+# | 5 | | | |
+# | 6 | | | |
+# | 7 | | | |
+# | 8 | | | |
+# | 9 | | | |
+# | 10 | | | |
+# | 1 | | feminine | |
+# | 1 | | masculine | |
+# | 2 | | feminine | |
+# | 2 | | masculine | |
+# | 23 | | | |
+# | 999 | | | |
+# | 11 | | | |
+# | 11 | | feminine | |
+# | 11 | | masculine | |
+# | 21 | | | |
+# # | 101 | | | |
+# # | 1001 | | feminine | |
+# # | 301 | | | |
+# | 21 | | masculine | singular |
+# | 21 | | masculine | plural |
+# # | 1001 | | masculine | |
+# Then the ordinals should be:
+# | ordinal |
+# | 0:e |
+# | 1:a |
+# | 2:a |
+# | 3:e |
+# | 4:e |
+# | 5:e |
+# | 6:e |
+# | 7:e |
+# | 8:e |
+# | 9:e |
+# | 10:e |
+# | 1:a |
+# | 1:e |
+# | 2:a |
+# | 2:e |
+# | 23:e |
+# | 999:e |
+# | 11:e |
+# | 11:e |
+# | 11:e |
+# | 21:e |
+# # | 101:e |
+# # | 1001:e |
+# # | 301:e |
+# | 21:e |
+# | 21:e |
+# # | 1001:e |
- <term name="ordinal-01">:a</term>
- <term name="ordinal-01" gender-form="masculine">:e</term>
- <term name="ordinal-01" gender-form="feminine">:a</term>
-
- <term name="ordinal-02">:a</term>
- <term name="ordinal-02" gender-form="masculine">:e</term>
- <term name="ordinal-02" gender-form="feminine">:a</term>
-
- <term name="ordinal-11">:e</term>
- <term name="ordinal-11" gender-form="feminine">:e</term>
- <term name="ordinal-12">:e</term>
- <term name="ordinal-12" gender-form="feminine">:e</term>
-
- <term name="ordinal-21">:e</term>
- <term name="ordinal-21" gender-form="feminine">:e</term>
- <term name="ordinal-22">:e</term>
- <term name="ordinal-22" gender-form="feminine">:e</term>
-
- <term name="ordinal-31">:e</term>
- <term name="ordinal-32">:e</term>
-
- <term name="ordinal-41">:e</term>
- <term name="ordinal-42">:e</term>
-
- <term name="ordinal-51">:e</term>
- <term name="ordinal-52">:e</term>
-
- <term name="ordinal-61">:e</term>
- <term name="ordinal-62">:e</term>
-
- <term name="ordinal-71">:e</term>
- <term name="ordinal-72">:e</term>
-
- <term name="ordinal-81">:e</term>
- <term name="ordinal-82">:e</term>
-
- <term name="ordinal-91">:e</term>
- <term name="ordinal-92">:e</term>
- </terms>
- </locale>
- """
- When I ordinalize these numbers:
- | num | form | gender | number |
- | 0 | | | |
- | 1 | | | |
- | 2 | | | |
- | 3 | | | |
- | 4 | | | |
- | 5 | | | |
- | 6 | | | |
- | 7 | | | |
- | 8 | | | |
- | 9 | | | |
- | 10 | | | |
- | 1 | | feminine | |
- | 1 | | masculine | |
- | 2 | | feminine | |
- | 2 | | masculine | |
- | 23 | | | |
- | 999 | | | |
- | 11 | | | |
- | 11 | | feminine | |
- | 11 | | masculine | |
- | 21 | | | |
-# | 101 | | | |
-# | 1001 | | feminine | |
-# | 301 | | | |
- | 21 | | masculine | singular |
- | 21 | | masculine | plural |
-# | 1001 | | masculine | |
- Then the ordinals should be:
- | ordinal |
- | 0:e |
- | 1:a |
- | 2:a |
- | 3:e |
- | 4:e |
- | 5:e |
- | 6:e |
- | 7:e |
- | 8:e |
- | 9:e |
- | 10:e |
- | 1:a |
- | 1:e |
- | 2:a |
- | 2:e |
- | 23:e |
- | 999:e |
- | 11:e |
- | 11:e |
- | 11:e |
- | 21:e |
-# | 101:e |
-# | 1001:e |
-# | 301:e |
- | 21:e |
- | 21:e |
-# | 1001:e |
-
- @v1.0.1 @locale @ordinals @i18n @gender @lang:pl
- Scenario: Gendered Polish CSL 1.0.1 locales
- Given the locale:
- """
- <?xml version="1.0" encoding="utf-8"?>
- <locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="pl">
- <terms>
- <term name="ordinal-00">:e</term>
-
- </terms>
- </locale>
- """
- When I ordinalize these numbers:
- | num | form | gender | number |
- | 0 | | | |
- | 1 | | | |
- | 2 | | | |
- | 3 | | | |
- | 4 | | | |
- | 5 | | | |
- | 6 | | | |
- | 7 | | | |
- | 8 | | | |
- | 9 | | | |
- | 10 | | | |
- | 1 | | feminine | |
- | 1 | | masculine | |
- | 2 | | feminine | |
- | 2 | | masculine | |
- | 23 | | | |
- | 999 | | | |
- | 11 | | | |
- | 11 | | feminine | |
- | 11 | | masculine | |
- | 21 | | | |
+ # @v1.0.1 @locale @ordinals @i18n @gender @lang-pl
+ # Scenario: Gendered Polish CSL 1.0.1 locales
+ # Given the locale:
+ # """
+ # <?xml version="1.0" encoding="utf-8"?>
+ # <locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0.1" xml:lang="pl">
+ # <terms>
+ # <term name="ordinal-00">:e</term>
+ #
+ # </terms>
+ # </locale>
+ # """
+ # When I ordinalize these numbers:
+ # | num | form | gender | number |
+ # | 0 | | | |
+ # | 1 | | | |
+ # | 2 | | | |
+ # | 3 | | | |
+ # | 4 | | | |
+ # | 5 | | | |
+ # | 6 | | | |
+ # | 7 | | | |
+ # | 8 | | | |
+ # | 9 | | | |
+ # | 10 | | | |
+ # | 1 | | feminine | |
+ # | 1 | | masculine | |
+ # | 2 | | feminine | |
+ # | 2 | | masculine | |
+ # | 23 | | | |
+ # | 999 | | | |
+ # | 11 | | | |
+ # | 11 | | feminine | |
+ # | 11 | | masculine | |
+ # | 21 | | | |
# Then the ordinals should be:
# | ordinal |
# | 0:e |
# | 1:a |
# | 2:a |