[sword-svn] r222 - in trunk/source/data/translit: . crosswire crosswire/cldr

chrislit at crosswire.org chrislit at crosswire.org
Wed Oct 14 21:37:04 MST 2009


Author: chrislit
Date: 2009-10-14 21:37:04 -0700 (Wed, 14 Oct 2009)
New Revision: 222

Added:
   trunk/source/data/translit/crosswire/Greek_Latin_Ballard.txt
   trunk/source/data/translit/crosswire/cldr/Greek-Latin-Ballard.xml
Modified:
   trunk/source/data/translit/crosswire.txt
Log:
added Greek-Latin transliterator using Peter Ballard's transliteration format

Added: trunk/source/data/translit/crosswire/Greek_Latin_Ballard.txt
===================================================================
--- trunk/source/data/translit/crosswire/Greek_Latin_Ballard.txt	                        (rev 0)
+++ trunk/source/data/translit/crosswire/Greek_Latin_Ballard.txt	2009-10-15 04:37:04 UTC (rev 222)
@@ -0,0 +1,50 @@
+#--------------------------------------------------------------------
+# Copyright 2009, CrossWire Bible Society (www.crosswire.org)
+# All rights reserved.  Usage permitted according to the MIT/X11
+# License: http://www.opensource.org/licenses/mit-license.php
+#--------------------------------------------------------------------
+# Based on Peter Ballard's transliteration format:
+# http://www.peterballard.org/gnt/phonetic.htm
+#--------------------------------------------------------------------
+# Greek-Latin/Ballard
+:: NFD (NFC);
+:: [:Greek:] upper();
+# Greek Letters
+Α<>a;
+Β<>b;
+Γ<>g;
+Δ<>d;
+Ε<>e;
+Ζ<>z;
+Η<>E;
+Θ<>th;
+Ι<>i;
+Κ<>k;
+Λ<>l;
+Μ<>m;
+Ν<>n;
+Ξ<>x;
+Ο<>o;
+Ρ<>r;
+Σ<>s;
+Τ<>t;
+Υ<>u;
+Φ<>ph;
+Χ<>ch;
+Ψ<>ps;
+Ω<>O;
+Π<>p;
+# Mappings for completeness
+|i<j;
+|u<v;
+|k<q;
+|ph<f;
+|k<c}[^h];
+|u<y;
+|u<w;
+# Non-letter characters
+̔<>h;
+ʽ>h;
+[:Mn:]>;
+:: ([A-D F-N P-Z] lower);
+:: NFC (NFD);

Added: trunk/source/data/translit/crosswire/cldr/Greek-Latin-Ballard.xml
===================================================================
--- trunk/source/data/translit/crosswire/cldr/Greek-Latin-Ballard.xml	                        (rev 0)
+++ trunk/source/data/translit/crosswire/cldr/Greek-Latin-Ballard.xml	2009-10-15 04:37:04 UTC (rev 222)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE supplementalData SYSTEM "http://www.unicode.org/cldr/dtd/1.6/ldmlSupplemental.dtd">
+<supplementalData>
+<transforms>
+<transform source="Greek" target="Latin" direction="both" variant="Ballard" draft="provisional">
+<comment>#--------------------------------------------------------------------</comment>
+<comment># Copyright 2009, CrossWire Bible Society (www.crosswire.org)</comment>
+<comment># All rights reserved.  Usage permitted according to the MIT/X11</comment>
+<comment># License: http://www.opensource.org/licenses/mit-license.php</comment>
+<comment>#--------------------------------------------------------------------</comment>
+<comment># Based on Peter Ballard's transliteration format:</comment>
+<comment># http://www.peterballard.org/gnt/phonetic.htm</comment>
+<comment>#--------------------------------------------------------------------</comment>
+<comment># Greek-Latin/Ballard</comment>
+<tRule>:: NFD (NFC);</tRule>
+<tRule>:: [:Greek:] upper();</tRule>
+<comment># Greek Letters</comment>
+<tRule>Α↔a;</tRule>
+<tRule>Β↔b;</tRule>
+<tRule>Γ↔g;</tRule>
+<tRule>Δ↔d;</tRule>
+<tRule>Ε↔e;</tRule>
+<tRule>Ζ↔z;</tRule>
+<tRule>Η↔E;</tRule>
+<tRule>Θ↔th;</tRule>
+<tRule>Ι↔i;</tRule>
+<tRule>Κ↔k;</tRule>
+<tRule>Λ↔l;</tRule>
+<tRule>Μ↔m;</tRule>
+<tRule>Ν↔n;</tRule>
+<tRule>Ξ↔x;</tRule>
+<tRule>Ο↔o;</tRule>
+<tRule>Ρ↔r;</tRule>
+<tRule>Σ↔s;</tRule>
+<tRule>Τ↔t;</tRule>
+<tRule>Υ↔u;</tRule>
+<tRule>Φ↔ph;</tRule>
+<tRule>Χ↔ch;</tRule>
+<tRule>Ψ↔ps;</tRule>
+<tRule>Ω↔O;</tRule>
+<tRule>Π↔p;</tRule>
+<comment># Mappings for completeness</comment>
+<tRule>|i←j;</tRule>
+<tRule>|u←v;</tRule>
+<tRule>|k←q;</tRule>
+<tRule>|ph←f;</tRule>
+<tRule>|k←c}[^h];</tRule>
+<tRule>|u←y;</tRule>
+<tRule>|u←w;</tRule>
+<comment># Non-letter characters</comment>
+<tRule>̔↔h;</tRule>
+<tRule>ʽ→h;</tRule>
+<tRule>[:Mn:]→;</tRule>
+<tRule>:: ([A-D F-N P-Z] lower);</tRule>
+<tRule>:: NFC (NFD);</tRule>
+</transform>
+</transforms>
+</supplementalData>

Modified: trunk/source/data/translit/crosswire.txt
===================================================================
--- trunk/source/data/translit/crosswire.txt	2009-10-15 04:33:30 UTC (rev 221)
+++ trunk/source/data/translit/crosswire.txt	2009-10-15 04:37:04 UTC (rev 222)
@@ -101,6 +101,18 @@
                     direction{"REVERSE"}
             }
         }
+        Greek-Latin/Ballard {
+            file {
+                    resource:process(transliterator){"crosswire/Greek_Latin_Ballard.txt"}
+                    direction{"FORWARD"}
+            }
+        }
+        Latin-Greek/Ballard {
+            file {
+                    resource:process(transliterator){"crosswire/Greek_Latin_Ballard.txt"}
+                    direction{"REVERSE"}
+            }
+        }
 
 // Coptic
         Coptic-Latin/SBL {




More information about the sword-cvs mailing list