iText 7 7.1.10 API
iText.Kernel.Numbering.GreekAlphabetNumbering Class Reference

This class is responsible for converting integer numbers to their Greek alphabet letter representations. More...

Static Public Member Functions

static String  ToGreekAlphabetNumberLowerCase (int number)
  Converts the given number to its Greek alphabet lowercase string representation. More...
 
static String  ToGreekAlphabetNumberUpperCase (int number)
  Converts the given number to its Greek alphabet uppercase string representation. More...
 
static String  ToGreekAlphabetNumber (int number, bool upperCase)
  Converts the given number to its Greek alphabet string representation. More...
 
static String  ToGreekAlphabetNumber (int number, bool upperCase, bool symbolFont)
  Converts the given number to its Greek alphabet string representation. More...
 

Detailed Description

This class is responsible for converting integer numbers to their Greek alphabet letter representations.

This class is responsible for converting integer numbers to their Greek alphabet letter representations. We are aware of the fact that the original Greek numbering is different. See http://www.cogsci.indiana.edu/farg/harry/lan/grknum.htm#ancient but this isn't implemented yet; the main reason being the fact that we need a font that has the obsolete Greek characters qoppa and sampi. So we use standard 24 letter Greek alphabet

Member Function Documentation

◆ ToGreekAlphabetNumber() [1/2]

static String iText.Kernel.Numbering.GreekAlphabetNumbering.ToGreekAlphabetNumber ( int  number,
bool  upperCase 
)
inlinestatic

Converts the given number to its Greek alphabet string representation.

Converts the given number to its Greek alphabet string representation. E.g. for upperCase set to false, 1 will be converted to a string consisting of a unicode character for greek small letter alpha, 2 - a string consisting of a unicode character for greek small letter beta, 25 - a string consisting of two unicode characters for greek small letter alpha, and so on.

Parameters
number the number greater than zero to be converted
upperCase whether to use uppercase or lowercase alphabet
Returns
Greek alphabet string representation of an integer.

◆ ToGreekAlphabetNumber() [2/2]

static String iText.Kernel.Numbering.GreekAlphabetNumbering.ToGreekAlphabetNumber ( int  number,
bool  upperCase,
bool  symbolFont 
)
inlinestatic

Converts the given number to its Greek alphabet string representation.

Converts the given number to its Greek alphabet string representation. E.g. for upperCase set to false, 1 will be converted to a string consisting of a unicode character for greek small letter alpha if symbolFont is set to false, otherwise - a string consisting of the corresponding symbol code in Symbol standard font; 26 will be converted to a string consisting of two unicode characters: greek small letter alpha followed by greek small letter beta if symbolFont is set to false, otherwise - a string consisting of the corresponding sequence of symbol codes in Symbol standard font.

Parameters
number the number greater than zero to be converted
upperCase whether to use uppercase or lowercase alphabet
symbolFont if true, then the string representation will be returned ready to write it in Symbol font
Returns
Greek alphabet string representation of an integer.

◆ ToGreekAlphabetNumberLowerCase()

static String iText.Kernel.Numbering.GreekAlphabetNumbering.ToGreekAlphabetNumberLowerCase ( int  number )
inlinestatic

Converts the given number to its Greek alphabet lowercase string representation.

Converts the given number to its Greek alphabet lowercase string representation. E.g. 1 will be converted to a string consisting of a unicode character for greek small letter alpha, 2 - a string consisting of a unicode character for greek small letter beta, 25 - a string consisting of two unicode characters for greek small letter alpha, and so on.

Parameters
number the number greater than zero to be converted
Returns
Greek alphabet lowercase string representation of an integer.

◆ ToGreekAlphabetNumberUpperCase()

static String iText.Kernel.Numbering.GreekAlphabetNumbering.ToGreekAlphabetNumberUpperCase ( int  number )
inlinestatic

Converts the given number to its Greek alphabet uppercase string representation.

Converts the given number to its Greek alphabet uppercase string representation. E.g. 1 will be converted to a string consisting of a unicode character for greek capital letter alpha, 2 - a string consisting of a unicode character for greek capital letter beta, 25 - a string consisting of two unicode characters for greek capital letter alpha, and so on.

Parameters
number the number greater than zero to be converted
Returns
Greek alphabet uppercase string representation of an integer.