~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to include/Greek2Greek.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden, Jonathan Marsden, Dmitrijs Ledkovs, Closed Bugs
  • Date: 2009-05-30 11:55:55 UTC
  • mfrom: (1.3.1 upstream) (6.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090530115555-r427zsn3amivdpfu
Tags: 1.6.0+dfsg-1
[ Jonathan Marsden ]
* New upstream release. (Closes: #507960) (LP: #320558)
* debian/patches/02_libver.diff:
  - Bump SONAME to 8 -- SWORD 1.6 is not backward compatible with 1.5.11.
* debian/patches/series:
  - Remove 10_diatheke.diff -- included in upstream source.
* debian/patches/:
  - Remove several old unused .diff files.
  - Add 11_regex_only_when_needed.diff to conditionally include regex lib.
  - Add 12_fix_compiler_warnings.diff to remove all compiler warnings.
  - Add 13_fix_osis2mod_compression_default.diff from upstream svn.
  - Add 14_closing_section_not_chapter.diff from upstream svn.
* debian/libsword7.*: 
  - Rename to libsword8.*
  - Change libsword7 to libsword8 within files.
* debian/rules: 
  - SONAME bump to 8.
  - Set library version check to >= 1.6
* debian/control:
  - Change libsword7 to libsword8.
  - Add libsword7 to Conflicts.
  - Fix case of sword to SWORD in package descriptions.
  - Bump Standards-Version to 3.8.1 (no changes needed).
  - Fix section for libsword-dbg to avoid lintian warning.
* debian/rules:
  - Add DFSG get-orig-source target.
* debian/copyright:
  - Fix various mistakes in initial attempt to document copyrights.

[ Dmitrijs Ledkovs ]
* debian/rules: Added utils.mk to use missing-files target and call it on
  each build.
* debian/libsword-dev.install: Added libsword.la, previously missing.
* debian/libsword7.install: Added missing libicu translit files.
* debian/control:
  - Updated all uses of SWORD version to 1.6
  - Added libsword-dbg package
* debian/watch: Fixed a small mistake which was resulting in extra "."
  in final version name.
* debian/rules: simplified manpage processing.
* debian/libsword8.lintian-overrides: added override for module
  installation directory.
* debian/copyright: Updated with information about everyfile.
  Closes: #513448 LP: #322638
* debian/diatheke.examples: moved examples here from the diatheke.install
* debian/rules:
  - enabled shell script based testsuite
  - added commented out cppunit testsuite
* debian/patches/40_missing_includes.diff: 
  - added several missing stdio.h includes to prevent FTBFS of testsuite.

[ Closed Bugs ]
* FTBFS on intrepid (LP: #305172)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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                                              ***
 
6
//                                                                          ***
 
7
// Author info : ---------------------------------------------------------- ***
 
8
//     Address : 23 Tieroogpark                                             ***
 
9
//             : Hoewe Str                                                  ***
 
10
//             : Elarduspark X3                                             ***
 
11
//             : 0181                                                       ***
 
12
//             : South Africa                                               ***
 
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
//*****************************************************************************
 
18
/*
 
19
 *
 
20
 * $Id: Greek2Greek.h 1688 2005-01-01 04:42:26Z scribe $
 
21
 *
 
22
 * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
 
23
 *      CrossWire Bible Society
 
24
 *      P. O. Box 2528
 
25
 *      Tempe, AZ  85280-2528
 
26
 *
 
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.
 
30
 *
 
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.
 
35
 *
 
36
 */
 
37
 
 
38
#ifndef __GREEK2GREEK
 
39
#define __GREEK2GREEK
 
40
 
 
41
#include <defs.h>
 
42
SWORD_NAMESPACE_START
 
43
 
 
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);
 
51
 
 
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 
 
55
// string.
 
56
//*****************************************************************************
 
57
unsigned char bGreek2Greek (unsigned char *sResult,
 
58
                            unsigned char *sGreekText, int nMaxResultBuflen);
 
59
 
 
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);
 
65
 
 
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);
 
71
 
 
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
 
80
 
 
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
 
88
 
 
89
 
 
90
//*****************************************************************************
 
91
// Identify and return a bGreek letter from a special font char
 
92
//*****************************************************************************
 
93
bool getSpecialChar (unsigned char Font, unsigned char &letter);
 
94
 
 
95
//*****************************************************************************
 
96
// true if the font character is a special character; false it isn't
 
97
//*****************************************************************************
 
98
bool SpecialGreek (unsigned char Font);
 
99
 
 
100
//*****************************************************************************
 
101
// Return Greek font puntuation from bGreek punstuation
 
102
//*****************************************************************************
 
103
unsigned char getGreekPunct (unsigned char bGreek);
 
104
 
 
105
//*****************************************************************************
 
106
// Return bGreek puntuation from Greek font punstuation
 
107
//*****************************************************************************
 
108
unsigned char getbGreekPunct (unsigned char Greek);
 
109
 
 
110
//*****************************************************************************
 
111
// Is the character punctuation or a space: true it is, false it isn't
 
112
//*****************************************************************************
 
113
bool isPunctSpace (unsigned char c);
 
114
 
 
115
SWORD_NAMESPACE_END
 
116
 
 
117
#endif // __GREEK2GREEK