com.alecdorrington.megalingual
Members list
Packages
Type members
Classlikes
A direction a language is written in.
A direction a language is written in.
Value parameters
- attribute
-
The value of HTML's
dirattribute for the direction.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A flag as SVG markup, drawn in a 60 by 40 view box. Each language draws its own (Language.flag) with the shapes here.
A flag as SVG markup, drawn in a 60 by 40 view box. Each language draws its own (Language.flag) with the shapes here.
Value parameters
- markup
-
The SVG document, from
to.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A language, perhaps a variety of another.
A language, perhaps a variety of another.
Languages form a tree of any depth: a language's parent is the broader language it is a variety of (British English of English), and nothing is read from a code's shape. A broader language is read in its first variety where a more specific one is needed.
Each language is an object saying all there is of it, a Language.Root or a Language.Variety, which takes from its parent what it does not say. Megalingual's are all there are, each in a file of its own in the languages package: Language.all lists them, and this companion holds each as a language (Language.German).
An app supporting only some languages says so with a Localised, and never matches on every language itself, so that a language added breaks no app.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Rootobject Arabicobject Bengaliobject Bulgarianobject Catalanobject Chineseobject Croatianobject Czechobject Danishobject Dutchobject Englishobject Estonianobject Filipinoobject Finnishobject Frenchobject Germanobject Greekobject Hebrewobject Hindiobject Hungarianobject Indonesianobject Italianobject Japaneseobject Koreanobject Latvianobject Lithuanianobject Malayobject Norwegianobject Persianobject Polishobject Portugueseobject Romanianobject Russianobject Serbianobject Slovakobject Slovenianobject Spanishobject Swahiliobject Swedishobject Tamilobject Thaiobject Turkishobject Ukrainianobject Urduobject Vietnameseclass Varietyobject AmericanEnglishobject AustralianEnglishobject BrazilianPortugueseobject BritishEnglishobject Cantoneseobject EuropeanPortugueseobject EuropeanSpanishobject GermanGermanobject GermanOfSwitzerlandobject LatinAmericanSpanishobject SimplifiedChineseobject SwissGermanobject SwissStandardGermanobject TaiwaneseChineseobject TraditionalChineseShow all
What an app has in each language it supports, such as its interface's text. A language outside them is read in the nearest one: its first supported variety, else its parent's nearest, else the default.
What an app has in each language it supports, such as its interface's text. A language outside them is read in the nearest one: its first supported variety, else its parent's nearest, else the default.
The languages are a partial function's domain, so that an app names only those it supports, never every Language, and what it has in one is made only once that one is read.
Type parameters
- A
-
What the app has in each language.
Value parameters
- default
-
The language read in when nothing chooses another.
- values
-
What the app has in each language it supports.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
A plural category, by which a language chooses the form of what it counts, as Unicode's CLDR defines them. A language uses only some (Language.plural): English One and Other, Polish One, Few and Many.
A plural category, by which a language chooses the form of what it counts, as Unicode's CLDR defines them. A language uses only some (Language.plural): English One and Other, Polish One, Few and Many.
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A regular-expression substitution, by which a language writes some of what its parent does otherwise (ß as ss).
A regular-expression substitution, by which a language writes some of what its parent does otherwise (ß as ss).
Value parameters
- pattern
-
What it replaces, as a Java regular expression.
- replacement
-
What each match becomes, in which
$1to$9stand for the text of the pattern's groups, and\makes the next character plain ($).
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Substitution.type