'\" t .\" Title: isoquery .\" Author: Dr. Tobias Quathamer .\" Generator: Asciidoctor 2.0.20 .\" Date: 2024-04-27 .\" Manual: \ \& .\" Source: 3.3.4 .\" Language: English .\" .TH "ISOQUERY" "1" "2024-04-27" "3.3.4" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" isoquery \- search and display various ISO codes (country, language, …) .SH "SYNOPSIS" .sp \fBisoquery\fP [\fIOPTION …\fP] [\fIISO codes\fP] .SH "DESCRIPTION" .sp This manual page documents briefly the \fBisoquery\fP command. It can be used to generate a tabular output of the ISO standard codes provided by the package \fBiso\-codes\fP. It parses the JSON files and shows all included ISO codes or just matching entries, if specified on the command line. Moreover, it\(cqs possible to get all available translations for the ISO standard. .SH "OPTIONS" .sp This program follows the usual GNU command line syntax, with long options starting with two dashes (\*(Aq\fB\-\fP\*(Aq). \fBisoquery\fP supports the following options: .sp \fB\-i, \-\-iso\fP=\fISTANDARD\fP .RS 4 The ISO standard to use. Possible values: 639\-2, 639\-3, 639\-5, 3166\-1, 3166\-2, 3166\-3, 4217, 15924 (default: 3166\-1) .RE .sp \fB\-p, \-\-pathname\fP=\fIPATHNAME\fP .RS 4 Use \fIPATHNAME\fP as prefix for the data files (default: /usr/share/iso\-codes/json) .RE .sp \fB\-l, \-\-locale\fP=\fILOCALE\fP .RS 4 Use this \fILOCALE\fP for output .RE .sp \fB\-n, \-\-name\fP .RS 4 Name for the supplied codes (default) .RE .sp \fB\-o, \-\-official_name\fP .RS 4 Official name for the supplied codes. This may be the same as \fB\-\-name\fP (only applies to ISO 3166\-1) .RE .sp \fB\-c, \-\-common_name\fP .RS 4 Common name for the supplied codes. This may be the same as \fB\-\-name\fP (only applies to ISO 639\-2, 639\-3, and 3166\-1) .RE .sp \fB\-0, \-\-null\fP .RS 4 Separate entries with a NULL character instead of newline .RE .sp \fB\-f, \-\-flag\fP .RS 4 Show country flags with regional indicator symbol letters (only applies to ISO 3166\-1) .RE .sp \fB\-h, \-\-help\fP .RS 4 Show summary of options .RE .sp \fB\-v, \-\-version\fP .RS 4 Show program version and copyright .RE .SH "EXAMPLES" .sp If called without any command line options, \fBisoquery\fP will print a table of all ISO 3166\-1 codes. The first three columns contain the alpha\-2 code, the alpha\-3 code, and the numerical code assigned to the country listed in the fourth column. .sp .if n .RS 4 .nf .fam C $ isoquery AW ABW 533 Aruba […] ZW ZWE 716 Zimbabwe .fam .fi .if n .RE .sp If you need only some countries, you can specify any of the codes in the first three columns to cut down the output. .sp .if n .RS 4 .nf .fam C $ isoquery so nor 484 SO SOM 706 Somalia NO NOR 578 Norway MX MEX 484 Mexico .fam .fi .if n .RE .sp Should you need the translations of the countries\*(Aq names, just specify in which \fILOCALE\fP you\(cqd like to see the output. Please note that the original English name will be shown if there is no translation available for the specified \fILOCALE\fP. .sp .if n .RS 4 .nf .fam C $ isoquery \-\-locale=nl fr de es FR FRA 250 Frankrijk DE DEU 276 Duitsland ES ESP 724 Spanje .fam .fi .if n .RE .sp If your terminal supports the unicode regional indicator symbol letters, you can use the \fB\-\-flag\fP command line option. Those letters can be displayed as a country flag. .sp .if n .RS 4 .nf .fam C $ isoquery \-\-flag \-\-locale=nl fr de es FR FRA 250 🇫🇷 Frankrijk DE DEU 276 🇩🇪 Duitsland ES ESP 724 🇪🇸 Spanje .fam .fi .if n .RE .sp All of the above works for different ISO standards as well, so you can switch to the more extensive standard ISO 3166\-2 by using the \fB\-\-iso\fP command line option. The columns are ISO 3166\-2 code, subset type (e.g. State, Province, etc.), parent, and name. The third column (parent) may be empty. .sp .if n .RS 4 .nf .fam C $ isoquery \-\-iso=3166\-2 AD\-02 Parish Canillo […] ZW\-MW Province Mashonaland West .fam .fi .if n .RE .sp Codes which have been deleted from ISO 3166\-1 are available in ISO 3166\-3. The columns are alpha\-3 code, alpha\-4 code, numeric code, comment, withdrawal date, and name. The columns for numeric code, comment, and withdrawal date may be empty. .sp .if n .RS 4 .nf .fam C $ isoquery \-\-iso=3166\-3 AFI AIDJ 262 1977 French Afars and Issas ANT ANHH 532 1993\-07\-12 Netherlands Antilles […] YUG YUCS 891 1993\-07\-28 Yugoslavia, Socialist Federal Republic of ZAR ZRCD 180 1997\-07\-14 Zaire, Republic of .fam .fi .if n .RE .sp For ISO 639\-2, the first three columns are the alpha\-3 code, the bibliographic code, and the alpha\-2 code. The second and third columns may be empty. .sp .if n .RS 4 .nf .fam C $ isoquery \-\-iso=639\-2 aar aa Afar abk ab Abkhazian ace Achinese […] zun Zuni zxx No linguistic content; Not applicable zza Zaza; Dimili; Dimli; Kirdki; Kirmanjki; Zazaki .fam .fi .if n .RE .sp You can trim down the results by specifying only some codes. Moreover, the option to get translated names is also available. .sp .if n .RS 4 .nf .fam C $ isoquery \-\-iso=639\-2 \-\-locale=pt vi bo kl vie vi Vietnamita bod tib bo tibetano kal kl Kalaallisut; Greenlandic .fam .fi .if n .RE .sp If you want to use ISO 639\-3, the displayed columns are alpha\-3, scope, type, alpha\-2, bibliographic, and the language name. Both alpha\-2 and bibliographic may be empty. .sp .if n .RS 4 .nf .fam C $ isoquery \-i 639\-3 aal new spa guc aal I L Afade new I L Newari spa I L es Spanish guc I L Wayuu .fam .fi .if n .RE .sp ISO 639\-5 is also available. The displayed columns are alpha\-3 and name. .sp .if n .RS 4 .nf .fam C $ isoquery \-i 639\-5 aus tut aus Australian languages tut Altaic languages .fam .fi .if n .RE .sp You can get selected translations of currency names from the ISO 4217 standard by using the following command. The first of the columns is the alpha\-3 code, and the second one is the numerical code assigned to the currency. The name of the currency is shown in the third column. .sp .if n .RS 4 .nf .fam C $ isoquery \-\-iso=4217 \-\-locale=da cad 392 CAD 124 Canadisk dollar JPY 392 Yen .fam .fi .if n .RE .sp If you need to get script names, you can use the ISO 15924 table. The first of the columns is the alpha\-4 code, and the second one is the numerical code assigned to the script. The name of the script is shown in the third column. .sp .if n .RS 4 .nf .fam C $ isoquery \-\-iso=15924 jpan latn 280 Jpan 413 Japanese (alias for Han + Hiragana + Katakana) Latn 215 Latin Visp 280 Visible Speech .fam .fi .if n .RE .SH "FILES" .sp By default, the JSON files provided by the \fBiso\-codes\fP package will be used. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fI/usr/share/iso\-codes/json/iso_639\-2.json\fP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fI/usr/share/iso\-codes/json/iso_639\-3.json\fP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fI/usr/share/iso\-codes/json/iso_639\-5.json\fP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fI/usr/share/iso\-codes/json/iso_3166\-1.json\fP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fI/usr/share/iso\-codes/json/iso_3166\-2.json\fP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fI/usr/share/iso\-codes/json/iso_3166\-3.json\fP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fI/usr/share/iso\-codes/json/iso_4217.json\fP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fI/usr/share/iso\-codes/json/iso_15924.json\fP .RE .SH "AUTHOR" .sp Dr. Tobias Quathamer \c .MTO "toddy\(atdebian.org" "" ""