Class Greek.Ancient.AlaLc
The ALA-LC (American Library Association and Library of Congress) Greek romanization system.
Has two separate modes - one for very old Greek
(Attic numerals, obelistic full-stops (⁚)),
and one for more recent old Greek
(Greek numerals, modern-ish punctuation). If
you don't know the difference, use the more recent version.
For more information, visit:
https://en.wikipedia.org/wiki/Romanization_of_Greek
and
https://www.loc.gov/catdir/cpso/romanization/greek.pdf
Inheritance
Implements
Namespace: Romanization
Assembly: Romanization.NET.dll
Syntax
public sealed class AlaLc : object, IMultiInOutCultureSystem, IMultiInCultureSystem, IMultiOutCultureSystem, IRomanizationSystem
Remarks
Attic numeral support is somewhat contrived. Check out ProcessNumeralsInText(String, Func<NumeralValue<Greek.Ancient.Units>, String>) for more information.
Constructors
| Improve this Doc View SourceAlaLc(OutputNumeralType, Boolean)
Instantiates a copy of the system to process romanizations.
Declaration
public AlaLc(OutputNumeralType outputNumeralType = OutputNumeralType.Roman, bool veryOld = false)
Parameters
Type | Name | Description |
---|---|---|
OutputNumeralType | outputNumeralType | What kind of numeral to romanize to. |
System.Boolean | veryOld | Whether or not this system should parse as if the text is very old. In very old Greek, a different punctuation system was used and Attic numerals were used instead. |
Fields
| Improve this Doc View SourceOutputNumeralType
Declaration
public readonly OutputNumeralType OutputNumeralType
Field Value
Type | Description |
---|---|
OutputNumeralType |
VeryOld
Whether or not this system should parse as if the text is very old. In very old Greek, a different
punctuation system was used and Attic numerals were used instead of newer Greek numerals.
While the use of this should largely depend on the text you intend to use it with, a decent
rule-of-thumb is that if Attic numerals are a possibility, this should be true.
Declaration
public readonly bool VeryOld
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
| Improve this Doc View SourceDefaultCulture
The default culture this system will go with for romanization if Process(String) is used.
Declaration
public CultureInfo DefaultCulture { get; }
Property Value
Type | Description |
---|---|
CultureInfo |
Type
The type of the system - this is an important consideration depending on the purpose of romanizing the text.
For more information, visit:
https://en.wikipedia.org/wiki/Romanization#Methods
Declaration
public SystemType Type { get; }
Property Value
Type | Description |
---|---|
SystemType |
Methods
| Improve this Doc View SourceProcess(String)
Performs ALA-LC Greek romanization on the given text.
Declaration
public string Process(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to romanize. |
Returns
Type | Description |
---|---|
System.String | A romanized version of the text, leaving unrecognized characters untouched. |
Process(String, CultureInfo)
Performs ALA-LC Greek romanization on the given text.
Supports providing a specific nativeCulture
to process with, as long as the
country code is el
.
Declaration
public string Process(string text, CultureInfo nativeCulture)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to romanize. |
CultureInfo | nativeCulture | The culture to romanize from. |
Returns
Type | Description |
---|---|
System.String | A romanized version of the text, leaving unrecognized characters untouched. |
Exceptions
Type | Condition |
---|---|
IrrelevantCultureException |
|
Process(String, CultureInfo, CultureInfo)
Performs ALA-LC Greek romanization on the given text.
Supports providing a specific nativeCulture
(as long as the
country code is el
) to romanize from, and a
romanizedCulture
to romanize to.
Declaration
public string Process(string text, CultureInfo nativeCulture, CultureInfo romanizedCulture)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to romanize. |
CultureInfo | nativeCulture | The culture to romanize from. |
CultureInfo | romanizedCulture | The culture to romanize to. |
Returns
Type | Description |
---|---|
System.String | A romanized version of the text, leaving unrecognized characters untouched. |
Exceptions
Type | Condition |
---|---|
IrrelevantCultureException |
|
ProcessToCulture(String, CultureInfo)
Performs ALA-LC Greek romanization on the given text.
Declaration
public string ProcessToCulture(string text, CultureInfo romanizedCulture)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to romanize. |
CultureInfo | romanizedCulture | The culture to romanize to. |
Returns
Type | Description |
---|---|
System.String | A romanized version of the text, leaving unrecognized characters untouched. |