Skip to content

Commit

Permalink
Balises erronées et paragraphe oublié
Browse files Browse the repository at this point in the history
  • Loading branch information
gleu committed Sep 13, 2023
1 parent 8734863 commit f0ae23c
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions postgresql/charset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1543,6 +1543,62 @@ SELECT 'x-y' = 'x_y' COLLATE level4; -- faux
</para>
</sect3>

<sect3 id="icu-tailoring-rules">
<title>ICU Tailoring Rules</title>

<para>
If the options provided by the collation settings shown above are not
sufficient, the order of collation elements can be changed with tailoring
rules, whose syntax is detailed at <ulink
url="https://unicode-org.github.io/icu/userguide/collation/customization/"></ulink>.
</para>

<para>
This small example creates a collation based on the root locale with a
tailoring rule:
<programlisting>
<![CDATA[CREATE COLLATION custom (provider = icu, locale = 'und', rules = '&V << w <<< W');]]>
</programlisting>
With this rule, the letter <quote>W</quote> is sorted after
<quote>V</quote>, but is treated as a secondary difference similar to an
accent. Rules like this are contained in the locale definitions of some
languages. (Of course, if a locale definition already contains the
desired rules, then they don't need to be specified again explicitly.)
</para>

<para>
Here is a more complex example. The following statement sets up a
collation named <literal>ebcdic</literal> with rules to sort US-ASCII
characters in the order of the EBCDIC encoding.

<programlisting>
<![CDATA[CREATE COLLATION ebcdic (provider = icu, locale = 'und',
rules = $$
& ' ' < '.' < '<' < '(' < '+' < \|
< '&' < '!' < '$' < '*' < ')' < ';'
< '-' < '/' < ',' < '%' < '_' < '>' < '?'
< '`' < ':' < '#' < '@' < \' < '=' < '"'
<*a-r < '~' <*s-z < '^' < '[' < ']'
< '{' <*A-I < '}' <*J-R < '\' <*S-Z <*0-9
$$);]]>

SELECT c
FROM (VALUES ('a'), ('b'), ('A'), ('B'), ('1'), ('2'), ('!'), ('^')) AS x(c)
ORDER BY c COLLATE ebcdic;
c
---
!
a
b
^
A
B
1
2
</programlisting>
</para>
</sect3>

<sect3 id="icu-external-references">
<title>Références externes pour ICU</title>
<para>
Expand Down
2 changes: 1 addition & 1 deletion postgresql/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ include 'nom_fichier'
<varlistentry id="guc-reserved-connections" xreflabel="reserved_connections">
<term><varname>reserved_connections</varname> (<type>integer</type>)
<indexterm>
<primary>paramètre de configuration <varname>reserved_connections</varname>
<primary>paramètre de configuration <varname>reserved_connections</varname></primary>
</indexterm>
</term>
<listitem>
Expand Down

0 comments on commit f0ae23c

Please sign in to comment.