1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Greek2Greek.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.17 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> </center>
<hr><h1>Greek2Greek.h</h1><div class="fragment"><pre>00001 <span class="comment">//*****************************************************************************</span>
00002 <span class="comment">// Author : William Dicks ***</span>
00003 <span class="comment">// Date Created: 10 February 1998 ***</span>
00004 <span class="comment">// Purpose : Interface for Greek to b-Greek conversion and vice versa ***</span>
00005 <span class="comment">// File Name : Greek2Greek.h ***</span>
00006 <span class="comment">// ***</span>
00007 <span class="comment">// Author info : ---------------------------------------------------------- ***</span>
00008 <span class="comment">// Address : 23 Tieroogpark ***</span>
00009 <span class="comment">// : Hoewe Str ***</span>
00010 <span class="comment">// : Elarduspark X3 ***</span>
00011 <span class="comment">// : 0181 ***</span>
00012 <span class="comment">// : South Africa ***</span>
00013 <span class="comment">// Home Tel: +27 (0)12 345 3166 ***</span>
00014 <span class="comment">// Cell No : +27 (0)82 577 4424 ***</span>
00015 <span class="comment">// e-mail : wd@isis.co.za ***</span>
00016 <span class="comment">// Church WWW : http://www.hatfield.co.za ***</span>
00017 <span class="comment">//*****************************************************************************</span>
00018 <span class="comment">/*</span>
00019 <span class="comment"> *</span>
00020 <span class="comment"> * $Id: _greek2_greek_8h-source.html,v 1.9 2002/10/31 11:30:14 joachim Exp $</span>
00021 <span class="comment"> *</span>
00022 <span class="comment"> * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)</span>
00023 <span class="comment"> * CrossWire Bible Society</span>
00024 <span class="comment"> * P. O. Box 2528</span>
00025 <span class="comment"> * Tempe, AZ 85280-2528</span>
00026 <span class="comment"> *</span>
00027 <span class="comment"> * This program is free software; you can redistribute it and/or modify it</span>
00028 <span class="comment"> * under the terms of the GNU General Public License as published by the</span>
00029 <span class="comment"> * Free Software Foundation version 2.</span>
00030 <span class="comment"> *</span>
00031 <span class="comment"> * This program is distributed in the hope that it will be useful, but</span>
00032 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00033 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
00034 <span class="comment"> * General Public License for more details.</span>
00035 <span class="comment"> *</span>
00036 <span class="comment"> */</span>
00037
00038 <span class="preprocessor">#ifndef __GREEK2GREEK</span>
00039 <span class="preprocessor"></span><span class="preprocessor">#define __GREEK2GREEK</span>
00040 <span class="preprocessor"></span>
00041 <span class="preprocessor">#include <defs.h></span>
00042 SWORD_NAMESPACE_START
00043
00044 <span class="comment">//*****************************************************************************</span>
00045 <span class="comment">// Used to convert a string created by using the Greek font supplied with the</span>
00046 <span class="comment">// Sword Project to a string that conforms to the b-Greek discussion list </span>
00047 <span class="comment">// method of transliteration.</span>
00048 <span class="comment">//*****************************************************************************</span>
00049 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> Greek2bGreek (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *sResult, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *sGreekText,
00050 <span class="keywordtype">int</span> nMaxResultBuflen);
00051
00052 <span class="comment">//*****************************************************************************</span>
00053 <span class="comment">// Used to convert a string created by using the b-Greek method of </span>
00054 <span class="comment">// transliteration to a string that can be converted to a Greek-font readable </span>
00055 <span class="comment">// string.</span>
00056 <span class="comment">//*****************************************************************************</span>
00057 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> bGreek2Greek (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *sResult,
00058 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *sGreekText, <span class="keywordtype">int</span> nMaxResultBuflen);
00059
00060 <span class="comment">//*****************************************************************************</span>
00061 <span class="comment">// Parse a Greek font created string and return the b-Greek equivalent</span>
00062 <span class="comment">//*****************************************************************************</span>
00063 <span class="keywordtype">int</span> ParseGreek (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *sResult,
00064 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *sGreekText, <span class="keywordtype">int</span> nMaxResultBuflen);
00065
00066 <span class="comment">//*****************************************************************************</span>
00067 <span class="comment">// Parse a b-Greek string and return the Greek font equivalent</span>
00068 <span class="comment">//*****************************************************************************</span>
00069 <span class="keywordtype">int</span> ParsebGreek (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *sResult,
00070 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *sGreekText, <span class="keywordtype">int</span> nMaxResultBuflen);
00071
00072 <span class="comment">//*****************************************************************************</span>
00073 <span class="comment">// Convert a unsigned character to a GREEK font unsigned character</span>
00074 <span class="comment">//*****************************************************************************</span>
00075 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> char2Font (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> letter, <span class="comment">// bGreek letter to convert to Font letter</span>
00076 <span class="keywordtype">bool</span> finalSigma, <span class="comment">// Is it a final SIGMA</span>
00077 <span class="keywordtype">bool</span> iota, <span class="comment">// TRUE = IOTA subscript; FALSE = No IOTA</span>
00078 <span class="keywordtype">bool</span> breathing, <span class="comment">// TRUE = add breathing; FALSE = no breathing</span>
00079 <span class="keywordtype">bool</span> rough); <span class="comment">// TRUE = rough breathing; False = smooth</span>
00080
00081 <span class="comment">//*****************************************************************************</span>
00082 <span class="comment">// Convert a GREEK font unsigned character to a unsigned character</span>
00083 <span class="comment">//*****************************************************************************</span>
00084 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> Font2char (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> letter, <span class="comment">// bGreek letter to convert to Font letter</span>
00085 <span class="keywordtype">bool</span> & iota, <span class="comment">// TRUE = IOTA subscript; FALSE = No IOTA</span>
00086 <span class="keywordtype">bool</span> & breathing, <span class="comment">// TRUE = add breathing; FALSE = no breathing</span>
00087 <span class="keywordtype">bool</span> & rough); <span class="comment">// TRUE = rough breathing; False = smooth</span>
00088
00089
00090 <span class="comment">//*****************************************************************************</span>
00091 <span class="comment">// Identify and return a bGreek letter from a special font char</span>
00092 <span class="comment">//*****************************************************************************</span>
00093 <span class="keywordtype">bool</span> getSpecialChar (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> Font, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> &letter);
00094
00095 <span class="comment">//*****************************************************************************</span>
00096 <span class="comment">// true if the font character is a special character; false it isn't</span>
00097 <span class="comment">//*****************************************************************************</span>
00098 <span class="keywordtype">bool</span> SpecialGreek (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> Font);
00099
00100 <span class="comment">//*****************************************************************************</span>
00101 <span class="comment">// Return Greek font puntuation from bGreek punstuation</span>
00102 <span class="comment">//*****************************************************************************</span>
00103 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> getGreekPunct (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> bGreek);
00104
00105 <span class="comment">//*****************************************************************************</span>
00106 <span class="comment">// Return bGreek puntuation from Greek font punstuation</span>
00107 <span class="comment">//*****************************************************************************</span>
00108 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> getbGreekPunct (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> Greek);
00109
00110 <span class="comment">//*****************************************************************************</span>
00111 <span class="comment">// Is the character punctuation or a space: true it is, false it isn't</span>
00112 <span class="comment">//*****************************************************************************</span>
00113 <span class="keywordtype">bool</span> isPunctSpace (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c);
00114
00115 SWORD_NAMESPACE_END
00116
00117 <span class="preprocessor">#endif // __GREEK2GREEK</span>
</pre></div><hr><address style="align: right;"><small>Generated on Thu Oct 31 12:11:28 2002 for The Sword Project by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.2.17 </small></address>
</body>
</html>
|