<!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.15 --> <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="functions.html">Compound Members</a> </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: _greek2_greek_8h-source.html,v 1.7 2002/06/20 20:23:07 mgruner 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> & iota, <font class="comment">// TRUE = IOTA subscript; FALSE = No IOTA</font> 00083 <font class="keywordtype">bool</font> & breathing, <font class="comment">// TRUE = add breathing; FALSE = no breathing</font> 00084 <font class="keywordtype">bool</font> & 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> &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> </pre></div><hr><address align="right"><small>Generated on Thu Jun 20 22:12:59 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.15 </small></address> </body> </html>