The language-codes Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The language-codes Reference Manual

This is the language-codes Reference Manual, version 1.0.0, generated automatically by Declt version 2.4 patchlevel 1 "Will Decker" on Mon Apr 08 14:21:33 2019 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

About Language-Codes

This is a small library providing the ISO-639 language code to language name mapping.

How To

After loading the library, simply use names to retrieve the list of known names for a language code.

(language-codes:names :eng)      ; => ("English")
(language-codes:names :ht)       ; => ("Haitian" "Haitian Creole")

You can also perform the inverse lookup, by codes.

(language-codes:codes "english") ; => (:ENG :EN)

Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 language-codes

Maintainer

Nicolas Hafner <shinmera@tymoon.eu>

Author

Nicolas Hafner <shinmera@tymoon.eu>

Home Page

https://github.com/Shinmera/language-codes

License

Artistic

Description

A small library mapping language codes to language names.

Version

1.0.0

Dependency

documentation-utils

Source

language-codes.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Next: , Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 language-codes.asd

Location

language-codes.asd

Systems

language-codes (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 language-codes/package.lisp

Dependency

data/iso-639-3.lisp (file)

Parent

language-codes (system)

Location

package.lisp

Packages

language-codes


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 language-codes/languages.lisp

Dependency

package.lisp (file)

Parent

language-codes (system)

Location

languages.lisp

Exported Definitions
Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.4 language-codes/documentation.lisp

Dependency

languages.lisp (file)

Parent

language-codes (system)

Location

documentation.lisp


Previous: , Up: Files   [Contents][Index]

3.2 Other


Next: , Previous: , Up: Other files   [Contents][Index]

3.2.1 language-codes/data/iso-639-1.lisp

Parent

language-codes (system)

Location

data/iso-639-1.lisp


Previous: , Up: Other files   [Contents][Index]

3.2.2 language-codes/data/iso-639-3.lisp

Dependency

data/iso-639-1.lisp (file)

Parent

language-codes (system)

Location

data/iso-639-3.lisp


Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 language-codes

Source

package.lisp (file)

Nickname

org.shirakumo.language-codes

Use List

common-lisp

Exported Definitions
Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Next: , Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Functions

Function: load-code-map FILE

Load a code map file.

The file should be composed of s-expressions of the following format:

FILE ::= ENTRY*
ENTRY ::= (CODE NAME*)
CODE — A string of the two- or three-letter code NAME — A string for a human-readable name of the language this code identifies.

See NAMES

Package

language-codes

Source

languages.lisp (file)


Previous: , Up: Exported definitions   [Contents][Index]

5.1.2 Generic functions

Generic Function: codes LANGUAGE

Returns the list of known codes for the given language.

The language is matched case-insensitively.

See NAMES

Package

language-codes

Source

languages.lisp (file)

Methods
Method: codes (LANGUAGE string)
Generic Function: names CODE

Accessor to the list of English language names for the given language code.

The code can be either a string or keyword of the
two- or three-letter ISO 639 codes.

By default codes for ISO-639-1 and ISO-639-3 are
loaded in. You can use this function to define your
own code mappings if necessary.

See https://www.loc.gov/standards/iso639-2/php/English_list.php
See https://iso639-3.sil.org/
See CODES

Package

language-codes

Source

languages.lisp (file)

Writer

(setf names) (generic function)

Methods
Method: names (CODE symbol)
Method: names (CODE string)
Generic Function: (setf names) NAMES CODE
Package

language-codes

Source

languages.lisp (file)

Reader

names (generic function)

Methods
Method: (setf names) NAMES (CODE symbol)
Method: (setf names) NAMES (CODE string)

Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Special variables

Special Variable: *here*
Package

language-codes

Source

languages.lisp (file)

Special Variable: *language-code-map*
Package

language-codes

Source

languages.lisp (file)

Special Variable: *language-name-map*
Package

language-codes

Source

languages.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   O  
Index Entry  Section

F
File, Lisp, language-codes.asd: The language-codes<dot>asd file
File, Lisp, language-codes/documentation.lisp: The language-codes/documentation<dot>lisp file
File, Lisp, language-codes/languages.lisp: The language-codes/languages<dot>lisp file
File, Lisp, language-codes/package.lisp: The language-codes/package<dot>lisp file
File, other, language-codes/data/iso-639-1.lisp: The language-codes/data/iso-639-1<dot>lisp file
File, other, language-codes/data/iso-639-3.lisp: The language-codes/data/iso-639-3<dot>lisp file

L
language-codes.asd: The language-codes<dot>asd file
language-codes/data/iso-639-1.lisp: The language-codes/data/iso-639-1<dot>lisp file
language-codes/data/iso-639-3.lisp: The language-codes/data/iso-639-3<dot>lisp file
language-codes/documentation.lisp: The language-codes/documentation<dot>lisp file
language-codes/languages.lisp: The language-codes/languages<dot>lisp file
language-codes/package.lisp: The language-codes/package<dot>lisp file
Lisp File, language-codes.asd: The language-codes<dot>asd file
Lisp File, language-codes/documentation.lisp: The language-codes/documentation<dot>lisp file
Lisp File, language-codes/languages.lisp: The language-codes/languages<dot>lisp file
Lisp File, language-codes/package.lisp: The language-codes/package<dot>lisp file

O
Other File, language-codes/data/iso-639-1.lisp: The language-codes/data/iso-639-1<dot>lisp file
Other File, language-codes/data/iso-639-3.lisp: The language-codes/data/iso-639-3<dot>lisp file

Jump to:   F   L   O  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   (  
C   F   G   L   M   N  
Index Entry  Section

(
(setf names): Exported generic functions
(setf names): Exported generic functions
(setf names): Exported generic functions

C
codes: Exported generic functions
codes: Exported generic functions

F
Function, load-code-map: Exported functions

G
Generic Function, (setf names): Exported generic functions
Generic Function, codes: Exported generic functions
Generic Function, names: Exported generic functions

L
load-code-map: Exported functions

M
Method, (setf names): Exported generic functions
Method, (setf names): Exported generic functions
Method, codes: Exported generic functions
Method, names: Exported generic functions
Method, names: Exported generic functions

N
names: Exported generic functions
names: Exported generic functions
names: Exported generic functions

Jump to:   (  
C   F   G   L   M   N  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables

Jump to:   *  
S  
Index Entry  Section

*
*here*: Internal special variables
*language-code-map*: Internal special variables
*language-name-map*: Internal special variables

S
Special Variable, *here*: Internal special variables
Special Variable, *language-code-map*: Internal special variables
Special Variable, *language-name-map*: Internal special variables

Jump to:   *  
S  

Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   L   P   S  
Index Entry  Section

L
language-codes: The language-codes system
language-codes: The language-codes package

P
Package, language-codes: The language-codes package

S
System, language-codes: The language-codes system

Jump to:   L   P   S