Parser testing/doMagicLinks

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

RFC test links[edit]

Punctuation surrounding these references should be out of the link: (See RFC 2616), See also RFC 2616, or RFC 2616.

RFC2616 (should work but doesn't, a space is needed)

RFC-2616 (should work but doesn't, a space is needed)

ISBN test links[edit]

Notes:

A valid ISBN-10 number (ISO 2108) is composed of 10 digits including one final digit or 'X' for the modulo-11 checksum of weighted digits. It is structured in fields of variable length separated by hyphens or spaces (not recommanded, will not work in this Wiki):

  • the first part is the group identifier (language or regional groups).
  • the second part is the publisher identifier within that group. A publisher may have several identifiers in the same group.
  • the fourth part is the title identifier for that publisher.
  • the fifth part is one digit or 'X' (in lieu of 10) for the modulo-11 checksum of weighted digits.

Digits are weighted from right to left by multiplying them by 1,2,3... 10; the modulo-11 checksum of the whole number must be zero for valid ISBN numbers. For example ISBN 0-8436-1072-7 weighted checksum is 198 which is an integer multiple of 11.

Starting in 2007, 13-digits formats will be introduced.

Example of numerically valid ISBN numbers (ISBN numbers not tested, may not exist):

Examples for France (group id 2):

Invalid number currently accepted by Wiki:

  • ISBN X-345-67890-6 (leading X is not acceptable)

---

See author's book "title", ISBN 123-45-6-7890,123 (note that dash separators in the number should be absent from the generated link that should contain only the first 10 digits, however a space or punctuation should terminate the ISBN number; any number of dashes is allowed)

ISBN 1.2.3 (should only link to ISBN 1; a dot terminates the number)

ISBN 1;2.3 (should only link to ISBN 1; a semicolon terminates the number)

ISBN 1:2.3 (should only link to ISBN 1; a colon terminates the number)

ISBN 1/2/3 (should only link to ISBN 1; a slash terminates the number)

ISBN 1- 23-45 (line break in numbers should not work)

ISBN 12345 (line break between the ISBN tag and the number should not work)

ISBN 123- (should work, a trailing dash ignored in the generated link; however it should better be outside of the active visible link part.)


ISBN -123 (same remark for leading dash).

ISBN-123 (should work, but doesn't)

book ISBN123 (should work but doesn't; should be italic)

book ISBN 123 (should work; should be bold)

List of known ISBN group identifiers[edit]

  • 0 + 1 English speaking area: Australia, Canada (English), Gibraltar, Ireland, Namibia, New Zealand, Puerto Rico, South Africa, Swaziland, UK, USA, Zimbabwe
  • 2 French speaking area: France, Belgium (French speaking), Canada (French speaking), Luxembourg, Switzerland (French speaking)
  • 3 German speaking area: Austria, Germany, Switzerland (German speaking)
  • 4 Japan
  • 5 Russian Speaking area: Russia, Azerbaijan, Tajikistan, Turkmenistan, Uzbekistan, Armenia (and 99930, 99941), Belarus (and 985), Estonia (and 9949, 9985), Georgia (and 99928, 99940), Kazakhstan (and 9965), Kyrgyzstan (and 9967), Latvia (and 9984), Lithuania (and 9986, 9955), Moldova Republic (and 9975), Ukraine (and 966)
  • 7 China, People's Republic
  • 80 Czech Republic; Slovakia
  • 81 India (and 93)
  • 82 Norway
  • 83 Poland
  • 84 Spain
  • 85 Brazil
  • 86 Serbian/Croatian speaking area: Serbia and Montenegro; Bosnia and Herzegovina (and 9958); Croatia (and 953); Macedonia (and 9989); Slovenia (and 961)
  • 87 Denmark
  • 88 Italian speaking area: Italy, Switzerland (It. sp.)
  • 89 Korea
  • 90 Dutch speaking area: Netherlands, Belgium (Flemish)
  • 91 Sweden
  • 92 International Publishers (Unesco, EU); European Community Organizations
  • 93 India (and 81)
  • 950 Argentina (and 987)
  • 951 Finland (and 952)
  • 952 Finland (and 951)
  • 953 Croatia
  • 954 Bulgaria
  • 955 Sri Lanka
  • 956 Chile
  • 957 Taiwan, China (and 986)
  • 958 Colombia
  • 959 Cuba
  • 960 Greece
  • 961 Slovenia
  • 962 Hong Kong (and 988)
  • 963 Hungary
  • 964 Iran
  • 965 Israel
  • 966 Ukraine (and 5)
  • 967 Malaysia (and 983)
  • 968 Mexico (and 970)
  • 969 Pakistan
  • 970 Mexico (and 968)
  • 971 Philippines
  • 972 Portugal (and 989)
  • 973 Romania
  • 974 Thailand
  • 975 Turkey
  • 976 Caribbean Community: Antigua, Bahamas, Barbados, Belize, Cayman Islands, Dominica, Grenada, Guyana, Jamaica, Montserrat, St. Kitts-Nevis, St. Lucia, St. Vincent and the Grenadines, Trinidad and Tobago, Virgin Islands (Br)
  • 977 Egypt
  • 978 Nigeria
  • 979 Indonesia
  • 980 Venezuela
  • 981 Singapore (and 9971)
  • 982 South Pacific: Cook Islands, Fiji, Kiribati, Marshall Islands, Micronesia (Federal States of), Nauru, New Caledonia, Niue, Palau, Solomon Islands, Tokelau, Tonga, Tuvalu, Vanuatu, Western Samoa
  • 983 Malaysia (and 967)
  • 984 Bangladesh
  • 985 Belarus (and 5)
  • 986 Taiwan, China (and 957)
  • 987 Argentina (and 950)
  • 988 Hongkong (and 962)
  • 989 Portugal (and 972)
  • 9945 Dominican Republic (and 99934)
  • 9946 Korea, P.D.R.
  • 9947 Algeria (and 9961)
  • 9948 United Arab Emirates
  • 9949 Estonia (and 5, 9985)
  • 9950 Palestine
  • 9951 Kosovo
  • 9952 Azerbaijan
  • 9953 Lebanon
  • 9954 Morocco (and 9981)
  • 9955 Lithuania (and 5, 9986)
  • 9956 Cameroon
  • 9957 Jordan
  • 9958 Bosnia and Herzegovina
  • 9959 Libya
  • 9960 Saudi Arabia
  • 9961 Algeria (and 9947)
  • 9962 Panama
  • 9963 Cyprus
  • 9964 Ghana (and 9988)
  • 9965 Kazakhstan (and 5)
  • 9966 Kenya
  • 9967 Kyrgyzstan (and 5)
  • 9968 Costa Rica (and 9977)
  • 9970 Uganda
  • 9971 Singapore (and 981)
  • 9972 Peru
  • 9973 Tunisia
  • 9974 Uruguay
  • 9975 Moldova, Republic (and 5)
  • 9976 Tanzania (and 9987)
  • 9977 Costa Rica (and 9968)
  • 9978 Ecuador
  • 9979 Iceland
  • 9980 Papua New Guinea
  • 9981 Morocco (and 9954)
  • 9982 Zambia
  • 9983 Gambia
  • 9984 Latvia (and 5)
  • 9985 Estonia (and 5, 9949)
  • 9986 Lithuania (and 5, 9955)
  • 9987 Tanzania (and 9976)
  • 9988 Ghana (and 9964)
  • 9989 Macedonia (and 86)
  • 99901 Bahrain
  • 99902 Gabon (reserved)
  • 99903 Mauritius (and 99949)
  • 99904 Netherlands Antilles; Aruba
  • 99905 Bolivia (and 99954)
  • 99906 Kuwait
  • 99908 Malawi
  • 99909 Malta (and 99932)
  • 99910 Sierra Leone
  • 99911 Lesotho
  • 99912 Botswana
  • 99913 Andorra (and 99920)
  • 99914 Suriname
  • 99915 Maldives
  • 99916 Namibia (and 99945)
  • 99917 Brunei Darussalam
  • 99918 Faroe Islands
  • 99919 Benin
  • 99920 Andorra (and 99913)
  • 99921 Qatar
  • 99922 Guatemala (and 99939)
  • 99923 El Salvador
  • 99924 Nicaragua
  • 99925 Paraguay (and 99953)
  • 99926 Honduras
  • 99927 Albania (and 99943)
  • 99928 Georgia (and 5, 99940)
  • 99929 Mongolia
  • 99930 Armenia (and 5, 99941)
  • 99931 Seychelles
  • 99932 Malta (and 99909)
  • 99933 Nepal (and 99946)
  • 99934 Dominican Republic (and 9945)
  • 99935 Haiti
  • 99936 Bhutan
  • 99937 Macau
  • 99938 Srpska
  • 99939 Guatemala (and 99922)
  • 99940 Georgia (and 5, 99928)
  • 99941 Armenia (and 5, 99930)
  • 99942 Sudan
  • 99943 Albania (and 99927)
  • 99944 Ethiopia
  • 99945 Namibia (and 99916)
  • 99946 Nepal (and 99933)
  • 99947 Tajikistan
  • 99948 Eritrea
  • 99949 Mauritius (and 99903)
  • 99950 Cambodia
  • 99951 Congo
  • 99952 Mali
  • 99953 Paraguay (and 99925)
  • 99954 Bolivia (and 99905)

ISBN-13 and other product identifiers[edit]

  • EAN-13 - Will be used starting in 2007 for ISBN-13 numbers. ISBN-10 numbers are convertible automatically to ISBN-13 by prefixing them with 978 (assigned for ISBN-10 numbers) and dropping the 10th check digit in ISBN-10, and computing the final EAN-13 check digit so that the modulo-10 checksum (of the 13 digits weighted alternatively by 1 and 3) will be zero. The 'X' digit will not be used. An ISBN number starting by 978 may have 10 digits (Namibia) or 13 digits (ISBN-13). In January 2007, other prefixes will be assigned in EAN-13 for ISBN-13 numbers (whcih won't have a ISBN-10 equivalent).
  • ISSN - International Standard Serial Number (ISO 3297:1998), for serial publications. Each issue may be given a unique ISBN.
  • ISMN - International Standard Music Number, for music publications (parts, scores, or multimedia). Starts with digit M (counting as 3), followed by 8 digits and one digit for the modulo-10 checksum of digits weighted alternatively by 3 and 1 from left to right. May be present in Barcode-13, by prefixing it by 979, and replacing M by 0. Some publications (such as scores) may also have an ISBN number.
  • ISRC - International Standard Record Code (ISO 3901), for sound recordings (not the physical support). 12 digits including the 2 first letters for the ISO country code, first owner code (3 digits), year (two digits), recording code (5 digits)
  • ISWC - International Standard Work Code (ISO 15907), for intellectual property (musical and litterary). 11 digits including leading letter T, nine digits, and one numeric check digit.
  • ISAN - International Standard Audiovisual Number (ISO 15706), linked with ISRC, used for identifying animated images, video or audiovisual works (not their respective right owners)
  • DOI - Digital Object Identifier; integrates multiple identifiers by coding the registration agency, the registrant, product identifier (for example ISBN), and the product identifier itself.
  • URN - Universal Resource Number; starts by "urn:" followed by the registered global NID, a colon, and the product identifier (called NSS, namespace specific identifier). ISBN may be given NID "isbn:", as well as DOI.