File: Greek2Greek.h-source.html

package info (click to toggle)
sword 1.5.3-3woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 20,484 kB
  • ctags: 11,105
  • sloc: cpp: 49,665; ansic: 13,335; sh: 8,730; pascal: 3,433; tcl: 1,602; makefile: 988; perl: 565; sed: 93
file content (129 lines) | stat: -rw-r--r-- 12,658 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<title>Greek2Greek.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.1.5 on Thu May 24 19:50:25 2001 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>Greek2Greek.h</h1><div class="fragment"><pre>00001 <font class="comment">//*****************************************************************************</font>
00002 <font class="comment">// Author      : William Dicks                                              ***</font>
00003 <font class="comment">// Date Created: 10 February 1998                                           ***</font>
00004 <font class="comment">// Purpose     : Interface for Greek to b-Greek conversion and vice versa   ***</font>
00005 <font class="comment">// File Name   : Greek2Greek.h                                              ***</font>
00006 <font class="comment">//                                                                          ***</font>
00007 <font class="comment">// Author info : ---------------------------------------------------------- ***</font>
00008 <font class="comment">//     Address : 23 Tieroogpark                                             ***</font>
00009 <font class="comment">//             : Hoewe Str                                                  ***</font>
00010 <font class="comment">//             : Elarduspark X3                                             ***</font>
00011 <font class="comment">//             : 0181                                                       ***</font>
00012 <font class="comment">//             : South Africa                                               ***</font>
00013 <font class="comment">//     Home Tel: +27 (0)12 345 3166                                         ***</font>
00014 <font class="comment">//     Cell No : +27 (0)82 577 4424                                         ***</font>
00015 <font class="comment">//     e-mail  : wd@isis.co.za                                              ***</font>
00016 <font class="comment">// Church WWW  : http://www.hatfield.co.za                                  ***</font>
00017 <font class="comment">//*****************************************************************************</font>
00018 <font class="comment">/*
</font>00019 <font class="comment"> *
</font>00020 <font class="comment"> * $Id: Greek2Greek.h-source.html,v 1.10 2001/05/25 10:44:21 jansorg Exp $
</font>00021 <font class="comment"> *
</font>00022 <font class="comment"> * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
</font>00023 <font class="comment"> *      CrossWire Bible Society
</font>00024 <font class="comment"> *      P. O. Box 2528
</font>00025 <font class="comment"> *      Tempe, AZ  85280-2528
</font>00026 <font class="comment"> *
</font>00027 <font class="comment"> * This program is free software; you can redistribute it and/or modify it
</font>00028 <font class="comment"> * under the terms of the GNU General Public License as published by the
</font>00029 <font class="comment"> * Free Software Foundation version 2.
</font>00030 <font class="comment"> *
</font>00031 <font class="comment"> * This program is distributed in the hope that it will be useful, but
</font>00032 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of
</font>00033 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
</font>00034 <font class="comment"> * General Public License for more details.
</font>00035 <font class="comment"> *
</font>00036 <font class="comment"> */</font>
00037 
00038 <font class="preprocessor">#ifndef __GREEK2GREEK
</font>00039 <font class="preprocessor"></font><font class="preprocessor">#define __GREEK2GREEK
</font>00040 <font class="preprocessor"></font>
00041 <font class="comment">//*****************************************************************************</font>
00042 <font class="comment">// Used to convert a string created by using the Greek font supplied with the</font>
00043 <font class="comment">// Sword Project to a string that conforms to the b-Greek discussion list </font>
00044 <font class="comment">// method of transliteration.</font>
00045 <font class="comment">//*****************************************************************************</font>
00046 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> Greek2bGreek (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *sResult, <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *sGreekText,
00047                             <font class="keywordtype">int</font> nMaxResultBuflen);
00048 
00049 <font class="comment">//*****************************************************************************</font>
00050 <font class="comment">// Used to convert a string created by using the b-Greek method of </font>
00051 <font class="comment">// transliteration to a string that can be converted to a Greek-font readable </font>
00052 <font class="comment">// string.</font>
00053 <font class="comment">//*****************************************************************************</font>
00054 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> bGreek2Greek (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *sResult,
00055                             <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *sGreekText, <font class="keywordtype">int</font> nMaxResultBuflen);
00056 
00057 <font class="comment">//*****************************************************************************</font>
00058 <font class="comment">// Parse a Greek font created string and return the b-Greek equivalent</font>
00059 <font class="comment">//*****************************************************************************</font>
00060 <font class="keywordtype">int</font> ParseGreek (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *sResult,
00061                 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *sGreekText, <font class="keywordtype">int</font> nMaxResultBuflen);
00062 
00063 <font class="comment">//*****************************************************************************</font>
00064 <font class="comment">// Parse a b-Greek string and return the Greek font equivalent</font>
00065 <font class="comment">//*****************************************************************************</font>
00066 <font class="keywordtype">int</font> ParsebGreek (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *sResult,
00067                  <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *sGreekText, <font class="keywordtype">int</font> nMaxResultBuflen);
00068 
00069 <font class="comment">//*****************************************************************************</font>
00070 <font class="comment">// Convert a unsigned character to a GREEK font unsigned character</font>
00071 <font class="comment">//*****************************************************************************</font>
00072 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> char2Font (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> letter,  <font class="comment">// bGreek letter to convert to Font letter</font>
00073                          <font class="keywordtype">bool</font> finalSigma,       <font class="comment">// Is it a final SIGMA</font>
00074                          <font class="keywordtype">bool</font> iota,     <font class="comment">// TRUE = IOTA subscript; FALSE = No IOTA</font>
00075                          <font class="keywordtype">bool</font> breathing,        <font class="comment">// TRUE = add breathing; FALSE = no breathing</font>
00076                          <font class="keywordtype">bool</font> rough);   <font class="comment">// TRUE = rough breathing; False = smooth</font>
00077 
00078 <font class="comment">//*****************************************************************************</font>
00079 <font class="comment">// Convert a GREEK font unsigned character to a unsigned character</font>
00080 <font class="comment">//*****************************************************************************</font>
00081 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> Font2char (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> letter,  <font class="comment">// bGreek letter to convert to Font letter</font>
00082                          <font class="keywordtype">bool</font> &amp; iota,   <font class="comment">// TRUE = IOTA subscript; FALSE = No IOTA</font>
00083                          <font class="keywordtype">bool</font> &amp; breathing,      <font class="comment">// TRUE = add breathing; FALSE = no breathing</font>
00084                          <font class="keywordtype">bool</font> &amp; rough); <font class="comment">// TRUE = rough breathing; False = smooth</font>
00085 
00086 
00087 <font class="comment">//*****************************************************************************</font>
00088 <font class="comment">// Identify and return a bGreek letter from a special font char</font>
00089 <font class="comment">//*****************************************************************************</font>
00090 <font class="keywordtype">bool</font> getSpecialChar (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> Font, <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> &amp;letter);
00091 
00092 <font class="comment">//*****************************************************************************</font>
00093 <font class="comment">// true if the font character is a special character; false it isn't</font>
00094 <font class="comment">//*****************************************************************************</font>
00095 <font class="keywordtype">bool</font> SpecialGreek (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> Font);
00096 
00097 <font class="comment">//*****************************************************************************</font>
00098 <font class="comment">// Return Greek font puntuation from bGreek punstuation</font>
00099 <font class="comment">//*****************************************************************************</font>
00100 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> getGreekPunct (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> bGreek);
00101 
00102 <font class="comment">//*****************************************************************************</font>
00103 <font class="comment">// Return bGreek puntuation from Greek font punstuation</font>
00104 <font class="comment">//*****************************************************************************</font>
00105 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> getbGreekPunct (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> Greek);
00106 
00107 <font class="comment">//*****************************************************************************</font>
00108 <font class="comment">// Is the character punctuation or a space: true it is, false it isn't</font>
00109 <font class="comment">//*****************************************************************************</font>
00110 <font class="keywordtype">bool</font> isPunctSpace (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> c);
00111 
00112 
00113 
00114 <font class="preprocessor">#endif // __GREEK2GREEK
</font></div></pre><hr><address><small>Generated at Thu May 24 19:50:25 2001 for The Sword Project by
<a href="http://www.stack.nl/~dimitri/doxygen/index.html">
<img src="doxygen.gif" alt="doxygen" align=center border=0 
width=110 height=53></a>1.1.5 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy; 1997-2000</small></address>
</body>
</html>