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
t

edu.holycross.shot.greek

GreekString

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.

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

Abstract Value Members

  1. abstract val alphabetString: String

    A single string listing all valid characters in the ASCII representation of this system in their alphabetic order.

  2. abstract def ascii: String

    Representation of a Greek string with vowels and breathings represented as distinct characters.

    Representation of a Greek string with vowels and breathings represented as distinct characters. Implementations of this trait use ASCII characters wherever possible for this representation.

  3. abstract def stripAccent: GreekString

    Create a new GreekString from this one with all accents removed.

  4. abstract def toLower: GreekString

    Convert lowercase characters to uppercase form if possible in this encoding system.

  5. abstract def toUpper: GreekString

    Convert uppercase characters to lowercase form if possible in this encoding system.

  6. abstract def ucode: String

    Representation of a Greek string using glyphs that are suitable for display to human readers.

    Representation of a Greek string using glyphs that are suitable for display to human readers. Implementations of this trait use characters the so-called "Greek and Coptic" or "Extended Greek" blocks of Unicode wherever possible for this representation.

Concrete 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.

  5. val accents: Vector[Char]

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

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. 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.

  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. 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
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def isAccent(c: Char): Boolean

    True if c is an accent character.

    True if c is an accent character.

    c

    Character to examine.

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. 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.

  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped