File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Original file line number Diff line number Diff line change @@ -243,11 +243,17 @@ CREATE COLLATION german_phonebook (provider = icu, locale = 'de-u-co-phonebk');
243
243
</para>
244
244
245
245
<para>
246
- To create a collation using the ICU provider, based on the English ICU
247
- locale, with custom rules:
246
+ To create a collation using the ICU provider, based on the root ICU locale,
247
+ with custom rules:
248
248
<programlisting>
249
- <![CDATA[CREATE COLLATION en_custom (provider = icu, locale = 'en ', rules = '&a < g ');]]>
249
+ <![CDATA[CREATE COLLATION custom (provider = icu, locale = 'und ', rules = '&V << w <<< W ');]]>
250
250
</programlisting>
251
+ With this rule, the letter <quote>W</quote> is sorted after
252
+ <quote>V</quote>, but is treated as a secondary difference similar to an
253
+ accent. Rules like this are contained in the locale definitions of some
254
+ languages. (Of course, if a locale definition already contains the desired
255
+ rules, then they don't need to be specified again explicitly.) See the ICU
256
+ documentation for further details and examples on the rules syntax.
251
257
</para>
252
258
253
259
<para>
You can’t perform that action at this time.
0 commit comments