1
//*****************************************************************************
2
// Author : William Dicks ***
3
// Date Created: 10 February 1998 ***
4
// Purpose : Interface for Greek to b-Greek conversion and vice versa ***
5
// File Name : Greek2Greek.h ***
7
// Author info : ---------------------------------------------------------- ***
8
// Address : 23 Tieroogpark ***
10
// : Elarduspark X3 ***
13
// Home Tel: +27 (0)12 345 3166 ***
14
// Cell No : +27 (0)82 577 4424 ***
15
// e-mail : wd@isis.co.za ***
16
// Church WWW : http://www.hatfield.co.za ***
17
//*****************************************************************************
20
* $Id: Greek2Greek.h 1688 2005-01-01 04:42:26Z scribe $
22
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
23
* CrossWire Bible Society
25
* Tempe, AZ 85280-2528
27
* This program is free software; you can redistribute it and/or modify it
28
* under the terms of the GNU General Public License as published by the
29
* Free Software Foundation version 2.
31
* This program is distributed in the hope that it will be useful, but
32
* WITHOUT ANY WARRANTY; without even the implied warranty of
33
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
34
* General Public License for more details.
44
//*****************************************************************************
45
// Used to convert a string created by using the Greek font supplied with the
46
// Sword Project to a string that conforms to the b-Greek discussion list
47
// method of transliteration.
48
//*****************************************************************************
49
unsigned char Greek2bGreek (unsigned char *sResult, unsigned char *sGreekText,
50
int nMaxResultBuflen);
52
//*****************************************************************************
53
// Used to convert a string created by using the b-Greek method of
54
// transliteration to a string that can be converted to a Greek-font readable
56
//*****************************************************************************
57
unsigned char bGreek2Greek (unsigned char *sResult,
58
unsigned char *sGreekText, int nMaxResultBuflen);
60
//*****************************************************************************
61
// Parse a Greek font created string and return the b-Greek equivalent
62
//*****************************************************************************
63
int ParseGreek (unsigned char *sResult,
64
unsigned char *sGreekText, int nMaxResultBuflen);
66
//*****************************************************************************
67
// Parse a b-Greek string and return the Greek font equivalent
68
//*****************************************************************************
69
int ParsebGreek (unsigned char *sResult,
70
unsigned char *sGreekText, int nMaxResultBuflen);
72
//*****************************************************************************
73
// Convert a unsigned character to a GREEK font unsigned character
74
//*****************************************************************************
75
unsigned char char2Font (unsigned char letter, // bGreek letter to convert to Font letter
76
bool finalSigma, // Is it a final SIGMA
77
bool iota, // TRUE = IOTA subscript; FALSE = No IOTA
78
bool breathing, // TRUE = add breathing; FALSE = no breathing
79
bool rough); // TRUE = rough breathing; False = smooth
81
//*****************************************************************************
82
// Convert a GREEK font unsigned character to a unsigned character
83
//*****************************************************************************
84
unsigned char Font2char (unsigned char letter, // bGreek letter to convert to Font letter
85
bool & iota, // TRUE = IOTA subscript; FALSE = No IOTA
86
bool & breathing, // TRUE = add breathing; FALSE = no breathing
87
bool & rough); // TRUE = rough breathing; False = smooth
90
//*****************************************************************************
91
// Identify and return a bGreek letter from a special font char
92
//*****************************************************************************
93
bool getSpecialChar (unsigned char Font, unsigned char &letter);
95
//*****************************************************************************
96
// true if the font character is a special character; false it isn't
97
//*****************************************************************************
98
bool SpecialGreek (unsigned char Font);
100
//*****************************************************************************
101
// Return Greek font puntuation from bGreek punstuation
102
//*****************************************************************************
103
unsigned char getGreekPunct (unsigned char bGreek);
105
//*****************************************************************************
106
// Return bGreek puntuation from Greek font punstuation
107
//*****************************************************************************
108
unsigned char getbGreekPunct (unsigned char Greek);
110
//*****************************************************************************
111
// Is the character punctuation or a space: true it is, false it isn't
112
//*****************************************************************************
113
bool isPunctSpace (unsigned char c);
117
#endif // __GREEK2GREEK