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

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

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()
Linear Supertypes
Serializable, Serializable, Product, Equals, GreekString, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AtticGreekString
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GreekString
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AtticGreekString(str: String)

    str

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accent: Option[Char]

    Get first accent, if any, in this string.

    Get first accent, if any, in this string.

    Definition Classes
    GreekString
  5. val accents: Vector[Char]

    Fixed definition of acute, grave and circumflex accents in ASCII representational system.

    Fixed definition of acute, grave and circumflex accents in ASCII representational system.

    Definition Classes
    GreekString
  6. val alphabetString: String

    All valid characters in the ASCII representation of this system in their alphabetic order.

    All valid characters in the ASCII representation of this system in their alphabetic order.

    Definition Classes
    AtticGreekStringGreekString
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val ascii: String

    The ASCII representation of this string.

    The ASCII representation of this string.

    Definition Classes
    AtticGreekStringGreekString
  9. def asciiCompare(s1: String, s2: String): Int

    Compare the ascii representation of two GreekStrings.

    Compare the ascii representation of two GreekStrings. The result uses Java compare, so the result is: 1 if s1 is greater than s2, 0 if they are equal, and -1 if s1 is less than s2.

    With this function, it is trivial to extend the Scala Ordered trait for any implementation of the GreekString trait.

    s1

    First of two strings to compare.

    s2

    Second of two strings to compare.

    Definition Classes
    GreekString
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(that: Any): Boolean

    True if this GreekString is identical to a second GreekString.

    True if this GreekString is identical to a second GreekString.

    that

    The other GreekString to compare to this one.

    Definition Classes
    GreekString → AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def isAccent(c: Char): Boolean

    True if c is an accent character.

    True if c is an accent character.

    c

    Character to examine.

    Definition Classes
    GreekString
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def sequenceOf(c: Char): Int

    Find alphabetic sequence of a character in the ascii encoding system.

    Find alphabetic sequence of a character in the ascii encoding system.

    c

    Character to find alphabetic sequence for.

    Definition Classes
    GreekString
  21. val str: String
  22. def stripAccent: AtticGreekString

    Required function to create a new GreekString with accents removed.

    Required function to create a new GreekString with accents removed.

    Definition Classes
    AtticGreekStringGreekString
  23. def stripAccs(src: String, accumulator: String): AtticGreekString

    Create a AtticGreekString with no accent characters from an ascii String by recursively looking at the first character of the ascii string and adding it to a new string only if it is not an accent.

    Create a AtticGreekString with no accent characters from an ascii String by recursively looking at the first character of the ascii string and adding it to a new string only if it is not an accent.

    src

    Remaining ascii String to strip accents from.

    accumulator

    String of non-accent characters accumulated so far.

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toLower: AtticGreekString

    Required function to convert uppercase to lowercase form.

    Required function to convert uppercase to lowercase form.

    Definition Classes
    AtticGreekStringGreekString
  26. def toUpper: AtticGreekString

    Required function to convert lowercase to uppercase form.

    Required function to convert lowercase to uppercase form.

    Definition Classes
    AtticGreekStringGreekString
  27. val ucode: String

    The Unicode representation of this string.

    The Unicode representation of this string.

    Definition Classes
    AtticGreekStringGreekString
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GreekString

Inherited from AnyRef

Inherited from Any

Ungrouped