The language-codes Reference Manual

This is the language-codes Reference Manual, version 1.0.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Feb 26 16:51:58 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

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


2.1 language-codes

A small library mapping language codes to language names.

Maintainer

Yukari Hafner <>

Author

Yukari Hafner <>

Home Page

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

License

zlib

Version

1.0.0

Dependency

documentation-utils (system).

Source

language-codes.asd.

Child Components

3 Files

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


3.1 Lisp


3.1.1 language-codes/language-codes.asd

Source

language-codes.asd.

Parent Component

language-codes (system).

ASDF Systems

language-codes.


3.1.2 language-codes/package.lisp

Dependency

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

Source

language-codes.asd.

Parent Component

language-codes (system).

Packages

language-codes.


3.1.3 language-codes/languages.lisp

Dependency

package.lisp (file).

Source

language-codes.asd.

Parent Component

language-codes (system).

Public Interface
Internals

3.1.4 language-codes/documentation.lisp

Dependency

languages.lisp (file).

Source

language-codes.asd.

Parent Component

language-codes (system).


3.2 Static


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

Source

language-codes.asd.

Parent Component

language-codes (system).


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

Dependency

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

Source

language-codes.asd.

Parent Component

language-codes (system).


4 Packages

Packages are listed by definition order.


4.1 language-codes

Source

package.lisp.

Nickname

org.shirakumo.language-codes

Use List

common-lisp.

Public Interface
Internals

5 Definitions

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


5.1 Public Interface


5.1.1 Ordinary 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.


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.

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.

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

language-codes.

Source

languages.lisp.

Methods
Method: (setf names) ((code string))
Method: (setf names) ((code symbol))
Method: (setf names) ((code symbol))

5.2 Internals


5.2.1 Special variables

Special Variable: *here*
Package

language-codes.

Source

languages.lisp.

Special Variable: *language-code-map*
Package

language-codes.

Source

languages.lisp.

Special Variable: *language-name-map*
Package

language-codes.

Source

languages.lisp.


Appendix A Indexes


A.1 Concepts