Changeset 833
- Timestamp:
- 12/04/07 23:58:32 (1 year ago)
- Files:
-
- traduc/trunk/manuel/isn.xml (modified) (29 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
traduc/trunk/manuel/isn.xml
r803 r833 7 7 8 8 <para> 9 The <literal>isn</literal> module adds data types for the following10 international-standard namespaces: EAN13, UPC, ISBN (books), ISMN (music),11 and ISSN (serials). This module is inspired by Garrett A. Wollman's12 isbn_issn code.9 Le module <literal>isn</literal> ajoute des types de données pour les 10 espaces de noms suivants du standard international : EAN13, UPC, 11 ISBN (pour les livres), ISMN (pour la musique) et ISSN (pour les numéros 12 de série). Ce module est inspiré du code isbn_issn de Garrett A. Wollman. 13 13 </para> 14 14 <para> 15 This module validates, and automatically adds the correct16 hyphenations to the numbers. Also, it supports the new ISBN-1317 numbers to be used starting in January2007.15 Ce module valide et ajoute automatiquement les tirets corrects pour les 16 nombres. De plus, il support les nouveaux nombres ISBN-13 à utiliser 17 depuis janvier 2007. 18 18 </para> 19 19 20 20 <para> 21 P remises:21 Pour commencer : 22 22 </para> 23 23 24 24 <orderedlist> 25 25 <listitem> 26 <para> ISBN13, ISMN13, ISSN13 numbers are all EAN13 numbers</para>26 <para>Les nombres ISBN13, ISMN13, ISSN13 sont tous des nombres EAN13</para> 27 27 </listitem> 28 28 <listitem> 29 <para>EAN13 numbers aren't always ISBN13, ISMN13 or ISSN13 (some are)</para> 29 <para>Les nombres EAN13 ne sont pas toujours ISBN13, ISMN13 ou ISSN13 (mais 30 certains le sont)</para> 30 31 </listitem> 31 32 <listitem> 32 <para> some ISBN13 numbers can be displayed asISBN</para>33 <para>Certains nombres ISBN13 peuvent être affichés en tant qu'ISBN</para> 33 34 </listitem> 34 35 <listitem> 35 <para> some ISMN13 numbers can be displayed asISMN</para>36 <para>Certains nombres ISMN13 peuvent être affichés en tant qu'ISMN</para> 36 37 </listitem> 37 38 <listitem> 38 <para> some ISSN13 numbers can be displayed asISSN</para>39 <para>Certains nombres ISSN13 peuvent être affichés en tant qu'ISSN</para> 39 40 </listitem> 40 41 <listitem> 41 <para>all UPC, ISBN, ISMN and ISSN can be represented as EAN13 numbers</para> 42 <para>Tous les nombres UPC, ISBN, ISMN et ISSN peuvent être représentés 43 sous la forme de nombres EAN13</para> 42 44 </listitem> 43 45 </orderedlist> … … 45 47 <note> 46 48 <para> 47 All types are internally represented as 64 bit integers,48 and internally all are consistently interchangeable.49 Tous les types sont représentés en interne sous la forme d'entiers de 64 50 bits, et sont interchangeables. 49 51 </para> 50 52 </note> 51 53 <note> 52 54 <para> 53 We have two operator classes (for btree and for hash) so each data type54 can be indexed for faster access.55 Nous avons deux classes d'opérateur (pour les btree et pour les hash), 56 donc chaque type de données peut être indexé pour un accÚs rapide. 55 57 </para> 56 58 </note> 57 59 58 60 <sect2> 59 <title> Data types</title>61 <title>Types de données</title> 60 62 61 63 <para> 62 We have the following data types:64 Nous avons les types de données suivants : 63 65 </para> 64 66 65 67 <table> 66 <title> Data types</title>68 <title>Types de données</title> 67 69 <tgroup cols="2"> 68 70 <thead> 69 71 <row> 70 <entry><para> Data type</para></entry>72 <entry><para>Type de données</para></entry> 71 73 <entry><para>Description</para></entry> 72 74 </row> … … 77 79 <entry> 78 80 <para> 79 European Article Numbers. This type will always show the EAN13-display 80 format. Te output function for this is <literal>ean13_out()</literal> 81 Numéros européens d'article (<foreignphrase>European Article 82 Numbers</foreignphrase>. Ce type affichera toujours le format EAN13. 83 La fonction d'affichage est <literal>ean13_out()</literal> 81 84 </para> 82 85 </entry> … … 87 90 <entry> 88 91 <para> 89 For International Standard Book Numbers to be displayed in 90 the new EAN13-display format. 92 Standard international pour les numéros de livre 93 (<foreignphrase>International Standard Book Numbers</foreignphrase>) 94 à afficher dans le nouveau format EAN13. 91 95 </para> 92 96 </entry> … … 97 101 <entry> 98 102 <para> 99 For International Standard Music Numbers to be displayed in 100 the new EAN13-display format. 103 Standard international des numéros de musique 104 (<foreignphrase>International Standard Music Numbers</freignphrase> 105 à afficher dans le nouveau format EAN13. 101 106 </para> 102 107 </entry> … … 106 111 <entry> 107 112 <para> 108 For International Standard Serial Numbers to be displayed in the new 109 EAN13-display format. 113 Standard international des numéros de série 114 (<foreignphrase>International Standard Serial Numbers</foreignphrase>) 115 à afficher dans le nouveau format EAN13. 110 116 </para> 111 117 </entry> … … 115 121 <entry> 116 122 <para> 117 For International Standard Book Numbers to be displayed in the current 118 short-display format. 123 Standard internal pour les numéros de livres 124 (<foreignphrase>International Standard Book Numbers</foreignphrase>) 125 à afficher dans le format court. 119 126 </para> 120 127 </entry> … … 124 131 <entry> 125 132 <para> 126 For International Standard Music Numbers to be displayed in the 127 current short-display format. 133 Standard international des numéros de musique 134 (<foreignphrase>International Standard Music Numbers</freignphrase> 135 à afficher dans le format court. 128 136 </para> 129 137 </entry> … … 133 141 <entry> 134 142 <para> 135 For International Standard Serial Numbers to be displayed in the 136 current short-display format. These types will display the short 137 version of the ISxN (ISxN 10) whenever it's possible, and it will 138 show ISxN 13 when it's impossible to show the short version. The 139 output function to do this is <literal>isn_out()</literal> 143 Standard international des numéros de série 144 (<foreignphrase>International Standard Serial Numbers</foreignphrase>) 145 à afficher dans le format court. Ces types affichent la version 146 courte d'ISxN (ISxN 10) à chaque fois que c'est possible, et 147 affichera la version ISxN 13 dans le cas contraire. La fonction 148 d'affichage est <literal>isn_out()</literal> 140 149 </para> 141 150 </entry> … … 145 154 <entry> 146 155 <para> 147 For Universal Product Codes. UPC numbers are a subset of the EAN13 148 numbers (they are basically EAN13 without the first '0' digit.) 149 The output function to do this is also <literal>isn_out()</literal> 156 Codes de produit universels (<foreignphrase>Universal Product 157 Codes</foreignphrase>). Les codes UPC sont un sous-ensemble des codes 158 EAN13 (ils sont basiquement EAN13 sans le premier chiffre 0). La 159 fonction d'affichage est aussi <literal>isn_out()</literal> 150 160 </para> 151 161 </entry> … … 157 167 <note> 158 168 <para> 159 <literal>EAN13</literal>, <literal>ISBN13</literal>,160 <literal>ISMN13</literal> and <literal>ISSN13</literal> types will always161 display the long version of the ISxN (EAN13). The output function to do162 this is<literal>ean13_out()</literal>.169 Les types <literal>EAN13</literal>, <literal>ISBN13</literal>, 170 <literal>ISMN13</literal> et <literal>ISSN13</literal> afficheront 171 toujours la version longue d'ISxN (EAN13). La fonction d'affichage pour 172 ce faire est <literal>ean13_out()</literal>. 163 173 </para> 164 174 <para> 165 The need for these types is just for displaying in different ways the same166 data: <literal>ISBN13</literal> is actually the same as167 <literal>ISBN</literal>, <literal>ISMN13=ISMN</literal> and175 Ces types sont nécessaires pour afficher la même donnée de différentes 176 façons : <literal>ISBN13</literal> est identique à 177 <literal>ISBN</literal>, <literal>ISMN13=ISMN</literal> et 168 178 <literal>ISSN13=ISSN</literal>. 169 179 </para> … … 172 182 173 183 <sect2> 174 <title> Input functions</title>184 <title>Fonctions en entrée</title> 175 185 176 186 <para> 177 We have the following input functions:187 Voici la liste des fonctions en entrée : 178 188 </para> 179 189 180 190 <table> 181 <title> Input functions</title>191 <title>Fonctions en entrée</title> 182 192 <tgroup cols="2"> 183 193 <thead> 184 194 <row> 185 <entry>F unction</entry>195 <entry>Fonction</entry> 186 196 <entry>Description</entry> 187 197 </row> … … 192 202 <entry> 193 203 <para> 194 To take a string and return an EAN13.204 Prend une chaîne en argument et renvoie un EAN13. 195 205 </para> 196 206 </entry> … … 201 211 <entry> 202 212 <para> 203 To take a string and return valid ISBN or ISBN13 numbers. 213 Prend une chaîne en argument et renvoie un nombre ISBN ou 214 ISBN13 valide. 204 215 </para> 205 216 </entry> … … 210 221 <entry> 211 222 <para> 212 To take a string and return valid ISMN or ISMN13 numbers. 223 Prend une chaîne en argument et renvoie un nombre ISMN ou 224 ISMN13 valide. 213 225 </para> 214 226 </entry> … … 219 231 <entry> 220 232 <para> 221 To take a string and return valid ISSN or ISSN13 numbers. 233 Prend une chaîne en argument et renvoie un nombre ISSN ou 234 ISSN13 valide. 222 235 </para> 223 236 </entry> … … 227 240 <entry> 228 241 <para> 229 To take a string and return an UPC codes.242 Prend une chaîne en argument et renvoie un code UPC. 230 243 </para> 231 244 </entry> … … 237 250 238 251 <sect2> 239 <title>C asts</title>240 241 <para> 242 We are able to cast from:252 <title>Conversions</title> 253 254 <para> 255 Nous sommes capables de convertir ces types : 243 256 </para> 244 257 <itemizedlist> … … 297 310 298 311 <sect2> 299 <title> C API</title>300 <para> 301 The C API is implemented as:312 <title>API C</title> 313 <para> 314 L'API C est implémentée ainsi : 302 315 </para> 303 316 <programlisting> … … 312 325 313 326 <para> 314 On success:327 En cas de succÚs : 315 328 </para> 316 329 <itemizedlist> 317 330 <listitem> 318 331 <para> 319 <literal>isn_out()</literal> takes any of our types and returns a string containing 320 the shortes possible representation of the number. 321 </para> 322 </listitem> 323 <listitem> 324 <para> 325 <literal>ean13_out()</literal> takes any of our types and returns the 326 EAN13 (long) representation of the number. 327 </para> 328 </listitem> 329 <listitem> 330 <para> 331 <literal>ean13_in()</literal> takes a string and return a EAN13. Which, as stated in (2) 332 could or could not be any of our types, but it certainly is an EAN13 333 number. Only if the string is a valid EAN13 number, otherwise it fails. 334 </para> 335 </listitem> 336 <listitem> 337 <para> 338 <literal>isbn_in()</literal> takes a string and return an ISBN/ISBN13. Only if the string 339 is really a ISBN/ISBN13, otherwise it fails. 340 </para> 341 </listitem> 342 <listitem> 343 <para> 344 <literal>ismn_in()</literal> takes a string and return an ISMN/ISMN13. Only if the string 345 is really a ISMN/ISMN13, otherwise it fails. 346 </para> 347 </listitem> 348 <listitem> 349 <para> 350 <literal>issn_in()</literal> takes a string and return an ISSN/ISSN13. Only if the string 351 is really a ISSN/ISSN13, otherwise it fails. 352 </para> 353 </listitem> 354 <listitem> 355 <para> 356 <literal>upc_in()</literal> takes a string and return an UPC. Only if the string is 357 really a UPC, otherwise it fails. 332 <literal>isn_out()</literal> prend un de nos types et renvoie une chaîne 333 contenant la représentation la plus petite du nombre. 334 </para> 335 </listitem> 336 <listitem> 337 <para> 338 <literal>ean13_out()</literal> prend un de nos types et renvoie la 339 représentation EAN13 (donc longue ) du nombre. 340 </para> 341 </listitem> 342 <listitem> 343 <para> 344 <literal>ean13_in()</literal> prend une chaîne et renvoie un EAN13. 345 Qui, comme indiqué dans (2), pourrait être ou pas un de nos types 346 mais c'est à coup sûr un nombre EAN13. Ãa ne fonctionne que si la 347 chaîne est un nombre EAN13 valide. 348 </para> 349 </listitem> 350 <listitem> 351 <para> 352 <literal>isbn_in()</literal> prend une chaîne et renvoie un ISBN/ISBN13. 353 Ãa ne fonctionne que si la chaîne est un ISBN/ISBN13. 354 </para> 355 </listitem> 356 <listitem> 357 <para> 358 <literal>ismn_in()</literal> prend une chaîne et renvoie un ISMN/ISMN13. 359 Ãa ne fonctionne que si la chaîne est un ISMN/ISMN13. 360 </para> 361 </listitem> 362 <listitem> 363 <para> 364 <literal>issn_in()</literal> prend une chaîne et renvoie un ISSN/ISSN13. 365 Ãa ne fonctionne que si la chaîne est un ISSN/ISSN13. 366 </para> 367 </listitem> 368 <listitem> 369 <para> 370 <literal>upc_in()</literal> prend une chaîne et renvoie un code UPC. 371 Ãa ne fonctionne que si la chaîne est un code UPC. 358 372 </para> 359 373 </listitem> … … 361 375 362 376 <para> 363 ( on failure, the functions 'ereport' the error)364 </para> 365 </sect2> 366 367 <sect2> 368 <title> Testing functions</title>377 (en cas d'échec, les fonctions renvoient une erreur via ereport) 378 </para> 379 </sect2> 380 381 <sect2> 382 <title>Fonctions de test</title> 369 383 <table> 370 <title> Testing functions</title>384 <title>Fonctions de test</title> 371 385 <tgroup cols="2"> 372 386 <thead> 373 387 <row> 374 <entry><para>F unction</para></entry>388 <entry><para>Fonction</para></entry> 375 389 <entry><para>Description</para></entry> 376 390 </row> … … 379 393 <row> 380 394 <entry><para><literal>isn_weak(boolean)</literal></para></entry> 381 <entry><para> Sets the weak input mode.</para></entry>395 <entry><para>Configure le mode de saisie faible.</para></entry> 382 396 </row> 383 397 <row> 384 398 <entry><para><literal>isn_weak()</literal></para></entry> 385 <entry><para> Gets the current status of the weak mode.</para></entry>399 <entry><para>RécupÚre le statut actuel du mode faible.</para></entry> 386 400 </row> 387 401 <row> 388 402 <entry><para><literal>make_valid()</literal></para></entry> 389 <entry><para>Validates an invalid number (deleting the invalid flag).</para></entry> 403 <entry><para>Valide un nombre invalide (en supprimant l'information 404 d'invalidité).</para></entry> 390 405 </row> 391 406 <row> 392 407 <entry><para><literal>is_valid()</literal></para></entry> 393 <entry><para>Checks for the invalid flag prsence.</para></entry> 408 <entry><para>Vérifie la présence de l'information 409 d'invalidité.</para></entry> 394 410 </row> 395 411 </tbody> … … 398 414 399 415 <para> 400 <literal>Weak</literal> mode is used to be able to insert invalid data to 401 a table. Invalid as in the check digit being wrong, not missing numbers. 416 Le mode faible (<literal>weak</literal>) est utilisé pour pouvoir insérer 417 des données invalides dans la table. Par invalide, nous entendons des 418 nombres dont le chiffre de vérification est erroné. 402 419 </para> 403 420 <para> … … 413 430 </para> 414 431 <para> 415 When you insert invalid numbers in a table using the weak mode, the number 416 will be inserted with the corrected check digit, but it will be flagged 417 with an exclamation mark ('!') at the end (i.e. 0-11-000322-5!) 418 </para> 419 <para> 420 You can also force the insertion of invalid numbers even not in the weak mode, 421 appending the '!' character at the end of the number. 422 </para> 423 </sect2> 424 425 <sect2> 426 <title>Examples</title> 432 Quand vous insérez des nombres invalides dans une table en utilisant le 433 mode faible, le nombre sera inséré avec le chiffre de vérification 434 modifié mais il sera enregistré avec un point d'exclamation à la fin 435 (par exemple 0-11-000322-5!). 436 </para> 437 <para> 438 Vous pouvez aussi forcer l'insertion de nombres invalides, même sans le 439 mode faible, en ajoutant le caractÚre <literal>!</literal> à la fin du 440 nombre. 441 </para> 442 </sect2> 443 444 <sect2> 445 <title>Exemples</title> 427 446 <programlisting> 428 447 --Using the types directly: … … 431 450 SELECT issn('1436-4522'); 432 451 433 --C asting types:434 -- note that you can only cast from ean13 to other type when the casted435 -- number would be valid in the realm of the casted type;436 -- thus, the following will NOT work: select isbn(ean13('0220356483481'));437 -- but these will:452 --Conversions: 453 -- notez que vous pouvez seulement convertir d'ean13 vers les autres types 454 -- quand le nombre converti est valide pour ce type ; 455 -- du coup, ceci ne fonctionnera pas : select isbn(ean13('0220356483481')); 456 -- contrairement à ceci : 438 457 SELECT upc(ean13('0220356483481')); 439 458 SELECT ean13(upc('220356483481')); 440 459 441 --Cr eate a table with a single column to hold ISBN numbers:460 --Crée une table avec une seule colonne contenant des numéros ISBN : 442 461 CREATE TABLE test ( id isbn ); 443 462 INSERT INTO test VALUES('9780393040029'); 444 463 445 -- Automatically calculating check digits (observe the '?'):464 --Calcule automatiquement les nombres de vérification (notez le '?'): 446 465 INSERT INTO test VALUES('220500896?'); 447 466 INSERT INTO test VALUES('978055215372?'); … … 450 469 SELECT ismn('979047213542?'); 451 470 452 -- Using the weak mode:471 --En utilisant le mode faible : 453 472 SELECT isn_weak(true); 454 473 INSERT INTO test VALUES('978-0-11-000533-4'); … … 467 486 468 487 <sect2> 469 <title>Bibliograph y</title>470 <para> 471 The information to implement this module was collected through472 s everal sites, including:488 <title>Bibliographie</title> 489 <para> 490 Les informations utilisées pour la création de ce module ont été récupérées 491 sur différents sites : 473 492 </para> 474 493 <programlisting> … … 479 498 </programlisting> 480 499 <para> 481 the prefixes used for hyphenation where also compiled from:500 Les préfixes utilisés pour les tirets ont aussi été tirés de : 482 501 </para> 483 502 <programlisting> … … 487 506 </programlisting> 488 507 <para> 489 Care was taken during the creation of the algorithms and they490 were meticulously verified against the suggested algorithms491 in the official ISBN, ISMN, ISSN User Manuals.508 Une attention toute particuliÚre a été prise lors de la création des 509 algorithmes et ils ont été vérifiés méticuleusement avec les algorithmes 510 suggérés dans les manuels utilisateur officiels pour ISBN, ISMN, ISSN. 492 511 </para> 493 512 </sect2> 494 513 495 514 <sect2> 496 <title>Aut hor</title>497 <para> 498 Germà ¡n Méndez Bravo (Kronuz), 2004 - 2006515 <title>Auteur</title> 516 <para> 517 Germán Méndez Bravo (Kronuz), 2004 - 2006 499 518 </para> 500 519 </sect2>

