Packages

  • package root
    Definition Classes
    root
  • package edu
    Definition Classes
    root
  • package holycross
    Definition Classes
    edu
  • package shot
    Definition Classes
    holycross
  • package greek

    Package for representing text in Ancient Greek, since the fundamental assumption of Unicode that code points belong to a single language is wrong, as is the definition in the ISO 639 standards of a single "Greek" dialect for all Greek "to 1453".

    Package for representing text in Ancient Greek, since the fundamental assumption of Unicode that code points belong to a single language is wrong, as is the definition in the ISO 639 standards of a single "Greek" dialect for all Greek "to 1453".

    Overview

    Classes implementing the GreekString trait define an encoding system for writing some form of ancient Greek with an ordered set of characters drawn from the ASCII character set whenever possible. The CodePointTranscoder object provides a mapping of ASCII character sequences to glyphs taken primarily from the so-called "Greek and Coptic" and "Extended Greek" blocks of Unicode. Using the concrete implementation of the GreekString trait's asciiCompare function, any class extending the GreekString trait can trivially extend Scala's Ordered trait as well.

    JVM vs. Javascript implementation

    The JVM implementation normalizes all Unicode to Form NFC, using standard Java classes. No comparable library exists for Javascript, and it is probable that String comparisons and conversions from ascii to ucode representations of classes implementing the GreekString trait will only work correctly for Unicode that is already normalized to Form NFC.

    Definition Classes
    shot
  • AtticGreekString
  • CodePointPair
  • CodePointTranscoder
  • GreekException
  • GreekNumeric
  • GreekString
  • LiteraryGreekString
  • Main
  • MilesianNumeric

package greek

Package for representing text in Ancient Greek, since the fundamental assumption of Unicode that code points belong to a single language is wrong, as is the definition in the ISO 639 standards of a single "Greek" dialect for all Greek "to 1453".

Overview

Classes implementing the GreekString trait define an encoding system for writing some form of ancient Greek with an ordered set of characters drawn from the ASCII character set whenever possible. The CodePointTranscoder object provides a mapping of ASCII character sequences to glyphs taken primarily from the so-called "Greek and Coptic" and "Extended Greek" blocks of Unicode. Using the concrete implementation of the GreekString trait's asciiCompare function, any class extending the GreekString trait can trivially extend Scala's Ordered trait as well.

JVM vs. Javascript implementation

The JVM implementation normalizes all Unicode to Form NFC, using standard Java classes. No comparable library exists for Javascript, and it is probable that String comparisons and conversions from ascii to ucode representations of classes implementing the GreekString trait will only work correctly for Unicode that is already normalized to Form NFC.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. greek
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class AtticGreekString(str: String) extends GreekString with Product with Serializable

    Representation of a Greek string written in the classical Attic alphabet.

    Representation of a Greek string written in the classical Attic alphabet.

    str

    A string in either the ascii or ucode representation of the AtticGreekString system.

    Annotations
    @JSExportAll()
  2. case class CodePointPair(ascii: String, ucode: String) extends Product with Serializable

    A pairing of an ASCII string with a single Unicode code point.

    A pairing of an ASCII string with a single Unicode code point.

    ascii

    A string of characters that can be used in the ascii encoding of a class implementing the GreekString trait.

    ucode

    A corresponding single Unicode codepoint, as a String.

    Annotations
    @JSExportAll()
  3. case class GreekException(message: String = "", cause: Option[Throwable] = None) extends Exception with Product with Serializable
  4. trait GreekNumeric extends AnyRef

    Representation of a numeric string in ancient Greek in two parallel encodings: a representation suitable for machine processing, using ASCII characters wherever possible, and a representation suited to hard-copy or on-screen printing for human readers, using code points from the so-called "Greek and Coptic" or "Extended Greek" blocks of Unicode.

  5. trait GreekString extends AnyRef

    Representation of a string in ancient Greek in two parallel encodings: a representation suitable for machine processing, using ASCII characters wherever possible, in which vowels and breathings are represented as distinct characters, and a representation suited to hard-copy or on-screen printing for human readers, using code points from the so-called "Greek and Coptic" or "Extended Greek" blocks of Unicode.

  6. case class LiteraryGreekString(str: String) extends GreekString with Ordered[GreekString] with Product with Serializable

    Representation of a Greek string written in conventional literary orthography.

    Representation of a Greek string written in conventional literary orthography.

    str

    A string in either the ascii or ucode representation of the LiteraryGreekString system.

    Annotations
    @JSExportAll()
  7. case class MilesianNumeric(str: String) extends GreekNumeric with Ordered[GreekNumeric] with Product with Serializable

    Representation of a Greek string written in conventional literary orthography.

    Representation of a Greek string written in conventional literary orthography.

    str

    A string in either the ascii or ucode representation of the GreekNumeric system.

    Annotations
    @JSExportAll()

Value Members

  1. def atticAsciiOf(s: String): String
  2. def atticUcodeOf(s: String): String
  3. def literaryAsciiOf(s: String): String

    Create LiteraryGreekString's ascii view of a String.

    Create LiteraryGreekString's ascii view of a String. If the first character is <= 127, assume that the String is already in ascii view; otherwise, normalize to Unicode form NFC before converting.

    s

    String to create ascii view for.

  4. def literaryUcodeOf(s: String): String

    Create LiteraryGreekString's ucode view of a String.

    Create LiteraryGreekString's ucode view of a String. If the first character is <= 127, assume that the String is in ascii view and convert it; otherwise, normalize to Unicode form NFC.

    s

    String to create ucode view for.

  5. object AtticGreekString extends Serializable
  6. object CodePointTranscoder

    Manager for two-way mappings between ascii-based code point sequences and code points in the Greek and Coptic or Extended Greek blocks of Unicode.

    Manager for two-way mappings between ascii-based code point sequences and code points in the Greek and Coptic or Extended Greek blocks of Unicode.

    Annotations
    @JSExportAll()
  7. object LiteraryGreekString extends Serializable

    Utility functions for working with definitions of the LiteraryGreekString class's character encoding.

  8. object Main

    Simple object verifying the accessibility of the LiteraryGreekString class in the JVM environment.

  9. object MilesianNumeric extends Serializable

    Utility functions for working with definitions of the MilesianNumeric class's character encoding.

Inherited from AnyRef

Inherited from Any

Ungrouped