Search Results for

    Show / Hide Table of Contents

    Class Greek.Ancient.AtticNumerals

    Attic numerals were used in Ancient Greece roughly from 7th century BCE until they were replaced by standard Greek numerals in 3rd century BCE.
    For more information, visit:
    https://en.wikipedia.org/wiki/Attic_numerals for general information
    and https://www.unicode.org/charts/PDF/U10140.pdf for the full Unicode codepage for many of the (likely-unrenderable) Attic characters

    Inheritance
    System.Object
    Greek.Ancient.AtticNumerals
    Implements
    INumeralParsingSystem<Greek.Ancient.Units>
    INumeralParsingSystem
    Namespace: Romanization
    Assembly: Romanization.NET.dll
    Syntax
    public sealed class AtticNumerals : object, INumeralParsingSystem<Greek.Ancient.Units>, INumeralParsingSystem

    Constructors

    | Improve this Doc View Source

    AtticNumerals()

    Instantiates a copy of the system to process romanizations.

    Declaration
    public AtticNumerals()

    Methods

    | Improve this Doc View Source

    Process(String)

    Parses the numeric value of an Attic numeral, and returns the associated unit if possible.

    Declaration
    public NumeralValue<Greek.Ancient.Units> Process(string text)
    Parameters
    Type Name Description
    System.String text

    The numeral text to parse.

    Returns
    Type Description
    NumeralValue<Greek.Ancient.Units>

    A numeric value representing the value of text, with a unit if one could be found.

    | Improve this Doc View Source

    ProcessNumeralsInText(String, Func<NumeralValue<Greek.Ancient.Units>, String>)

    Processes all Attic numerals in the text.

    Declaration
    public string ProcessNumeralsInText(string text, Func<NumeralValue<Greek.Ancient.Units>, string> numeralProcessor)
    Parameters
    Type Name Description
    System.String text

    The text to search for numerals.

    Func<NumeralValue<Greek.Ancient.Units>, System.String> numeralProcessor

    The function to use to transform the value from Process(String) into a string to put in the text.

    Returns
    Type Description
    System.String

    A copy of text, but with all detected Attic numerals processed using numeralProcessor.

    Remarks

    Attic numeral support is somewhat contrived, as there's no real way to distinguish them from other Greek text and so in-text detection works based on presence of Unicode overbar characters. This isn't realistically something that would be seen in practice, and the special Attic characters often don't even work with the overbar combining character. Perhaps a better solution is possible, but overbars seem to stand the highest chance of having actually been in use, so that's what it looks for.
    If this particular function is something you need, open an issue and provide an example of what you need to romanize.
    For general parsing of Attic numerals, check out Process(String).

    Explicit Interface Implementations

    | Improve this Doc View Source

    INumeralParsingSystem.Process(String)

    Declaration
    NumeralValue INumeralParsingSystem.Process(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type Description
    NumeralValue
    | Improve this Doc View Source

    INumeralParsingSystem.ProcessNumeralsInText(String, Func<NumeralValue, String>)

    Declaration
    string INumeralParsingSystem.ProcessNumeralsInText(string text, Func<NumeralValue, string> numeralProcessor)
    Parameters
    Type Name Description
    System.String text
    Func<NumeralValue, System.String> numeralProcessor
    Returns
    Type Description
    System.String

    Implements

    INumeralParsingSystem<TLanguageUnits>
    INumeralParsingSystem
    • Improve this Doc
    • View Source
    In This Article
    Back to top Romanization.NET