@ -0,0 +1,50 @@ | |||
Typography Addon | |||
================ | |||
This addpn uses the [php typography](http://kingdesk.com/projects/php-typography/) | |||
library by KINGdesk to enhance the typography of postings in friendica. | |||
The addon uses the language detection capabilities of friendica to select the | |||
approproate typographic set or rules. | |||
ToDo | |||
---- | |||
* write some CSS to enhance the typography of stuff like ALL CAPS etc. a bit | |||
further, now that they are identified and marked. | |||
* There was one thing in the library that I had to comment out to get rid of | |||
many warnings (see php-typography.php lines 1964 and following) which should | |||
be fixed in a better way.s | |||
History | |||
------- | |||
* 2014-12-29: Version 0.1, initial release | |||
Author | |||
------ | |||
* [Tobias Diekershoff](https://f.diekershoff.de/profile/tobias) | |||
License | |||
------- | |||
This addon is licensed under the terms of the [GNU GPL 2.0](https://www.gnu.org/licenses/gpl-2.0.html) | |||
as the underlying library uses this license. | |||
Copyright (C) 2014 Tobias Diekershoff | |||
This program is free software; you can redistribute it and/or | |||
modify it under the terms of the GNU General Public License | |||
as published by the Free Software Foundation; either version 2 | |||
of the License, or (at your option) any later version. | |||
This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | |||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |||
02110-1301, USA. |
@ -0,0 +1,169 @@ | |||
1.21 - December 31, 2009 | |||
Fixed bug in custom diacritic handling | |||
1.20 - December 20, 2009 | |||
Resolved uninitiated variable | |||
Added HTML5 elements to parsing algorithm for greater contextual awareness | |||
Updated to PHP Parser 1.20 | |||
1.19 - December 1, 2009 | |||
Fixed bug where dewidow functionality would add broken no-break spaces to the end of texts, and smart_exponents would drop some of the resulting text. | |||
Declared encoding in all instances of mb_substr to avoid conflicts | |||
Corrected a few instances of undeclared variables. | |||
Updated to PHP Parser 1.19 | |||
1.18 - November 10, 2009 | |||
Added Norwegian Hyphenation Patterns | |||
1.17 - November 9, 2009 | |||
Fixed bug in diacritic handling | |||
1.16 - November 4, 2009 | |||
Added US English list of all words containing diacritics to `/diacritics/en-US.php` | |||
Added get_diacritic_languages() method | |||
Added set_smart_diacritics() method | |||
Added set_diacritic_language() method | |||
Added set_diacritic_custom_replacements() method | |||
Added smart_diacritics() method | |||
Improved smart quotes and dashes to be sensitive to adjacent diacritic characters. | |||
1.15 - October 21, 2009 | |||
Depreciated set_smart_quotes_language() | |||
Added set_smart_quotes_primary() | |||
Added set_smart_quotes_secondary() | |||
1.14 - September 8, 2009 | |||
Improved space_collapse method | |||
Corrected bug in smart quote and single character word handling where the "0" character may be improperly duplicated | |||
1.13 - August 31, 2009 | |||
Added set_space_collapse and space_collapse methods | |||
1.12 - August 17, 2009 | |||
Corrected multibyte character error that caused set_single_character_word_spacing() to drop words under rare circumstances | |||
1.11 - August 14, 2009 | |||
Added language specific quote handling (for single quotes, not just double) for English, German and French quotation styles | |||
1.10 - August 14, 2009 | |||
Added set_smart_quotes_language() for unique handling of English, German and French quotation styles | |||
Corrected multibyte character error that caused set_single_character_word_spacing() to drop words under rare circumstances | |||
Expanded the multibyte character set recognized as valid word characters for improved hyphenation | |||
Updated to PHP Parser 1.10 | |||
1.9 - August 12, 2009 | |||
Added option to force single character words to wrap to new line (unless they are widows). | |||
Fixed bug where hyphenation pattern settings were not initialized with multiple phpTypography class instances. | |||
1.8 - August 4, 2009 | |||
Fixed date handling in smart_math() and smart_dashes() methods | |||
Fixed style_caps() method to be friendly with soft-hyphens | |||
1.7 - July 28, 2009 | |||
Reformatted language files with line returns after each key=>value pair in an array | |||
1.6 - July 28, 2009 | |||
Efficiency Optimizations ( approximately 25% speed increase ) Thanks Jenny! | |||
1.5 - July 27, 2009 | |||
Added the set_hyphenate_title_case() method to exclude hyphenation of capitalized (title case) words to help protect proper nouns | |||
Added Hungarian Hyphenation Pattern | |||
1.4 - July 23, 2009 | |||
Updated to PHP Parser 1.4 (fixed a hyphenation problem where pre-hyphenated words were processed again) | |||
1.3 - July 23, 2009 | |||
Uninitialized variables corrected throughout. | |||
Use of 2 instances of create_function() eliminated for performance gain | |||
Cleaned up HTML character handling in process_feed(). No errors were identified prior to edit, but now it is consistent with how process() works. | |||
1.2 - July 23, 2009 | |||
moved the processing of widow handling after hyphenation so that max-pull would not be compared to the length of the adjacent word, but rather the length of the adjacent word segment (i.e. that after a soft hyphen) | |||
1.1 - July 22, 2009 | |||
By default, when class phpTypography is constructed, set_defaults is called. However, if you are going to manually set all settings, you can now bypass the set_defaults call for slightly improved performance. Just call `$typo = new phpTypography(FALSE)` | |||
Added `html_entity_decode` to process_feed to avoid invalid character injection (according to XML's specs) | |||
1.0.3 - July 17, 2009 = | |||
Reverted use of the hyphen character to the basic minus-hyphen in words like "mother-in-law" because of poor support in IE6 | |||
1.0.2 - July 16, 2009 | |||
Corrected smart_math to not convert slashes in URLs to division signs | |||
1.0 - July 15, 2009 | |||
Added test to phpTypography methods process() and process_feed() to skip processing if $isTitle parameter is TRUE and h1 or h2 is an excluded HTML tag | |||
1.0 beta 9 - July 14, 2009 | |||
added catch-all quote handling, now any quotes that escape previous filters will be assumed to be closing quotes | |||
1.0 beta 8 - July 13, 2009 | |||
Changed thin space injection behavior so that for text such as "...often-always?-judging...", the second dash will be wrapped in thin spaces | |||
Corrected error where fractions were not being styled because of a zero-space insertion with the wrap hard hyphens functionality | |||
Added default class to exclude: "noTypo" | |||
1.0 beta 7 - July 10, 2009 | |||
added "/" as a valid word character so we could capture "this/that" as a word for processing (similar to "mother-in-law") | |||
Corrected error where characters from the Latin 1 Supplement Block were not recognized as word characters | |||
Corrected smart quote handling for strings of numbers | |||
Added smart guillemet conversion as part of smart quotes: << and >> to ยซ and ยป | |||
Added smart Single Low 9 Quote conversion as part of smart quotes: comma followed by non-space becomes Single Low 9 Quote | |||
Added Single Low 9 Quote, Double Low 9 Quote and ยป to style_initial_character functionality | |||
Added a new phpTypography method smart_math that assigns proper characters to minus, multiplication and division characters | |||
Depreciated the phpTypography method smart_multiplication in favor of smart_math | |||
Cleaned up some smart quote functionality | |||
Added ability to wrap after "/" if set_wrap_hard_hyphen is TRUE (like "this/that") | |||
1.0 beta 6 - July 9, 2009 | |||
Critical bug fix: RSS feeds were being disabled by previous versions. This has been corrected. | |||
1.0 beta 5 - July 8, 2009 | |||
corrected error where requiring Em/En dash thin spacing "word-" would become "word โ" instead of "wordโ" | |||
1.0 beta 4 - July 7, 2009 | |||
Added default encoding value to smart_quote handling to avoid PHP warning messages | |||
1.0 beta 3 - July 6, 2009 | |||
corrected curling quotes at the end of block level elements | |||
1.0 beta 2 - July 6, 2009 | |||
corrected multibyte character conflict in smart-quote handling that caused infrequent dropping of text | |||
thin space injection included for en-dashes | |||
1.0 beta 1 - July 3, 2009 | |||
initial release |
@ -0,0 +1,425 @@ | |||
<?php | |||
/** | |||
* Language: English (United States) | |||
* | |||
* An array of all words containing diacritics (and their non-diacritic | |||
* alternatives that should be replaced), provided a legitimate English | |||
* word does not exist without such diacritic characters (i.e. | |||
* divorcรฉ & divorce, exposรฉ & expose, rรฉsumรฉ & resume ). | |||
* | |||
* In the form of $diacriticWords = array( key => value ); | |||
* where "key" is the needle and "value" is the replacement | |||
**/ | |||
$diacriticLanguage = 'English (United States)'; | |||
$diacriticWords = array( | |||
"a bas"=>"ร bas", | |||
"A bas"=>"ร bas", | |||
"a la"=>"ร la", | |||
"A la"=>"ร la", | |||
"a la carte"=>"ร la carte", | |||
"A la carte"=>"ร la carte", | |||
"a la mode"=>"ร la mode", | |||
"A la mode"=>"ร la mode", | |||
"a gogo"=>"ร gogo", | |||
"A gogo"=>"ร gogo", | |||
"ago-go"=>"ร go-go", | |||
"Ago-go"=>"รgo-go", | |||
"abbe"=>"abbรฉ", | |||
"Abbe"=>"Abbรฉ", | |||
"adios"=>"adiรณs", | |||
"Adios"=>"Adiรณs", | |||
"agrement"=>"agrรฉment", | |||
"Agrement"=>"Agrรฉment", | |||
"anime"=>"animรฉ", | |||
"Anime"=>"Animรฉ", | |||
"Ancien Regime"=>"Ancien Rรฉgime", | |||
"angstrom"=>"รฅngstrรถm", | |||
"Angstrom"=>"ร ngstrรถm", | |||
"anu"=>"aรฑu", | |||
"Anu"=>"Aรฑu", | |||
"ao dai"=>"รกo dร i", | |||
"Ao dai"=>"รo dร i", | |||
"aperitif"=>"apรฉritif", | |||
"Aperitif"=>"Apรฉritif", | |||
"applique"=>"appliquรฉ", | |||
"Applique"=>"Appliquรฉ", | |||
"apres-ski"=>"aprรจs-ski", | |||
"Apres-ski"=>"Aprรจs-ski", | |||
"arete"=>"arรชte", | |||
"Arete"=>"Arรชte", | |||
"attache"=>"attachรฉ", | |||
"Attache"=>"Attachรฉ", | |||
"auto-da-fe"=>"auto-da-fรฉ", | |||
"Auto-da-fe"=>"Auto-da-fรฉ", | |||
"acaรญ"=>"aรงaรญ", | |||
"Acaรญ"=>"Aรงaรญ", | |||
"belle epoque"=>"belle รฉpoque", | |||
"Belle epoque"=>"Belle รฉpoque", | |||
"bete noire"=>"bรชte noire", | |||
"Bete noire"=>"Bรชte noire", | |||
"betise"=>"bรชtise", | |||
"Betise"=>"Bรชtise", | |||
"blase"=>"blasรฉ", | |||
"Blase"=>"Blasรฉ", | |||
"boite"=>"boรฎte", | |||
"Boite"=>"Boรฎte", | |||
"Bon"=>"Bรถn", | |||
"Bootes"=>"Boรถtes", | |||
"boutonniere"=>"boutonniรจre", | |||
"Boutonniere"=>"Boutonniรจre", | |||
"bric-a-brac"=>"bric-ร -brac", | |||
"Bric-a-brac"=>"Bric-ร -brac", | |||
"cafe"=>"cafรฉ", | |||
"Cafe"=>"Cafรฉ", | |||
"canape"=>"canapรฉ", | |||
"Canape"=>"Canapรฉ", | |||
"Champs-Elysees"=>"Champs-รlysรฉes", | |||
"chateau"=>"chรขteau", | |||
"Chateau"=>"Chรขteau", | |||
"charge d'affaires"=>"chargรฉ d'affaires", | |||
"Charge d'affaires"=>"Chargรฉ d'affaires", | |||
"cause celebre"=>"cause cรฉlรจbre", | |||
"Cause celebre"=>"Cause cรฉlรจbre", | |||
"chaines"=>"chaรฎnรฉs", | |||
"Chaines"=>"Chaรฎnรฉs", | |||
"cinema verite"=>"cinรฉma vรฉritรฉ", | |||
"Cinema verite"=>"Cinรฉma vรฉritรฉ", | |||
"cliche"=>"clichรฉ", | |||
"Cliche"=>"Clichรฉ", | |||
"cloisonne"=>"cloisonnรฉ", | |||
"Cloisonne"=>"Cloisonnรฉ", | |||
"consomme"=>"consommรฉ", | |||
"Consomme"=>"Consommรฉ", | |||
"communique"=>"communiquรฉ", | |||
"Communique"=>"Communiquรฉ", | |||
"confrere"=>"confrรจre", | |||
"Confrere"=>"Confrรจre", | |||
"coopt"=>"coรถpt", | |||
"Coopt"=>"Coรถpt", | |||
"cortege"=>"cortรจge", | |||
"Cortege"=>"Cortรจge", | |||
"coup d'etat"=>"coup d'รฉtat", | |||
"Coup d'etat"=>"Coup d'รฉtat", | |||
"coup de grace"=>"coup de grรขce", | |||
"Coup de grace"=>"Coup de grรขce", | |||
"creche"=>"crรจche", | |||
"Creche"=>"Crรจche", | |||
"coulee"=>"coulรฉe", | |||
"Coulee"=>"Coulรฉe", | |||
"creme brulee"=>"crรจme brรปlรฉe", | |||
"Creme brulee"=>"Crรจme brรปlรฉe", | |||
"creme fraiche"=>"crรจme fraรฎche", | |||
"Creme fraiche"=>"Crรจme fraรฎche", | |||
"creme"=>"crรจme", | |||
"Creme"=>"Crรจme", | |||
"crepe"=>"crรชpe", | |||
"Crepe"=>"Crรชpe", | |||
"Creusa"=>"Creรผsa", | |||
"crouton"=>"croรปton", | |||
"Crouton"=>"Croรปton", | |||
"crudites"=>"cruditรฉs", | |||
"Crudites"=>"Cruditรฉs", | |||
"Curacao"=>"Curaรงao", | |||
"dais"=>"daรฏs", | |||
"Dais"=>"Daรฏs", | |||
"dau hoi"=>"dแบฅu hแปi", | |||
"Dau hoi"=>"Dแบฅu hแปi", | |||
"debutante"=>"dรฉbutante", | |||
"Debutante"=>"Dรฉbutante", | |||
"declasse"=>"dรฉclassรฉ", | |||
"Declasse"=>"Dรฉclassรฉ", | |||
"decolletage"=>"dรฉcolletage", | |||
"Decolletage"=>"Dรฉcolletage", | |||
"decollete"=>"dรฉcolletรฉ", | |||
"Decollete"=>"Dรฉcolletรฉ", | |||
"decor"=>"dรฉcor", | |||
"Decor"=>"Dรฉcor", | |||
"decoupage"=>"dรฉcoupage", | |||
"Decoupage"=>"Dรฉcoupage", | |||
"degage"=>"dรฉgagรฉ", | |||
"Degage"=>"Dรฉgagรฉ", | |||
"deja vu"=>"dรฉjร vu", | |||
"Deja vu"=>"Dรฉjร vu", | |||
"demode"=>"dรฉmodรฉ", | |||
"Demode"=>"Dรฉmodรฉ", | |||
"denouement"=>"dรฉnouement", | |||
"Denouement"=>"Dรฉnouement", | |||
"derailleur"=>"dรฉrailleur", | |||
"Derailleur"=>"Dรฉrailleur", | |||
"derriere"=>"derriรจre", | |||
"Derriere"=>"Derriรจre", | |||
"deshabille"=>"dรฉshabillรฉ", | |||
"Deshabille"=>"Dรฉshabillรฉ", | |||
"detente"=>"dรฉtente", | |||
"Detente"=>"Dรฉtente", | |||
"diamante"=>"diamantรฉ", | |||
"Diamante"=>"Diamantรฉ", | |||
"discotheque"=>"discothรจque", | |||
"Discotheque"=>"Discothรจque", | |||
"doppelganger"=>"doppelgรคnger", | |||
"Doppelganger"=>"Doppelgรคnger", | |||
"eclair"=>"รฉclair", | |||
"Eclair"=>"รclair", | |||
"eclat"=>"รฉclat", | |||
"Eclat"=>"รclat", | |||
"Eire"=>"รire", | |||
"El Nino"=>"El Niรฑo", | |||
"elan"=>"รฉlan", | |||
"Elan"=>"รlan", | |||
"emigre"=>"รฉmigrรฉ", | |||
"Emigre"=>"รmigrรฉ", | |||
"entree"=>"entrรฉe", | |||
"Entree"=>"Entrรฉe", | |||
"entrepot"=>"entrepรดt", | |||
"Entrepot"=>"Entrepรดt", | |||
"entrecote"=>"entrecรดte", | |||
"Entrecote"=>"Entrecรดte", | |||
"epee"=>"รฉpรฉe", | |||
"Epee"=>"รpรฉe", | |||
"etouffee"=>"รฉtouffรฉe", | |||
"Etouffee"=>"รtouffรฉe", | |||
"etude"=>"รฉtude", | |||
"Etude"=>"รtude", | |||
"facade"=>"faรงade", | |||
"Facade"=>"Faรงade", | |||
"fete"=>"fรชte", | |||
"Fete"=>"Fรชte", | |||
"faience"=>"faรฏence", | |||
"Faience"=>"Faรฏence", | |||
"fiance"=>"fiancรฉ", | |||
"Fiance"=>"Fiancรฉ", | |||
"fiancee"=>"fiancรฉe", | |||
"Fiancee"=>"Fiancรฉe", | |||
"filmjolk"=>"filmjรถlk", | |||
"Filmjolk"=>"Filmjรถlk", | |||
"fin de siecle"=>"fin de siรจcle", | |||
"Fin de siecle"=>"Fin de siรจcle", | |||
"flambe"=>"flambรฉ", | |||
"Flambe"=>"Flambรฉ", | |||
"fleche"=>"flรจche", | |||
"Fleche"=>"Flรจche", | |||
"fohn wind"=>"fรถhn wind", | |||
"Fohn wind"=>"Fรถhn wind", | |||
"folie a deux"=>"folie ร deux", | |||
"Folie a deux"=>"Folie ร deux", | |||
"fouette"=>"fouettรฉ", | |||
"Fouette"=>"Fouettรฉ", | |||
"frappe"=>"frappรฉ", | |||
"Frappe"=>"Frappรฉ", | |||
"fraulein"=>"frรคulein", | |||
"Fraulein"=>"Frรคulein", | |||
"Fuhrer"=>"Fรผhrer", | |||
"garcon"=>"garรงon", | |||
"Garcon"=>"Garรงon", | |||
"gateau"=>"gรขteau", | |||
"Gateau"=>"Gรขteau", | |||
"gemutlichkeit"=>"gemรผtlichkeit", | |||
"Gemutlichkeit"=>"Gemรผtlichkeit", | |||
"glace"=>"glacรฉ", | |||
"Glace"=>"Glacรฉ", | |||
"glogg"=>"glรถgg", | |||
"Glogg"=>"Glรถgg", | |||
"Gewurztraminer"=>"Gewรผrztraminer", | |||
"Gotterdammerung"=>"Gรถtterdรคmmerung", | |||
"Grafenberg spot"=>"Grรคfenberg spot", | |||
"gruyere"=>"gruyรจre", | |||
"Gruyere"=>"Gruyรจre", | |||
"habitue"=>"habituรฉ", | |||
"Habitue"=>"Habituรฉ", | |||
"hacek"=>"hรกฤek", | |||
"Hacek"=>"Hรกฤek", | |||
"hors dโoeuvre"=>"hors dโลuvre", | |||
"Hors dโoeuvre"=>"Hors dโลuvre", | |||
"ingenue"=>"ingรฉnue", | |||
"Ingenue"=>"Ingรฉnue", | |||
"jager"=>"jรคger", | |||
"Jager"=>"Jรคger", | |||
"jalapeno"=>"jalapeรฑo", | |||
"Jalapeno"=>"Jalapeรฑo", | |||
"jardiniere"=>"jardiniรจre", | |||
"Jardiniere"=>"Jardiniรจre", | |||
"krouzek"=>"krouลพek", | |||
"Krouzek"=>"Krouลพek", | |||
"kummel"=>"kรผmmel", | |||
"Kummel"=>"Kรผmmel", | |||
"kaldolmar"=>"kรฅldolmar", | |||
"Kaldolmar"=>"Kรฅldolmar", | |||
"karaoke"=>"karaลke", | |||
"Karaoke"=>"Karaลke", | |||
"landler"=>"lรคndler", | |||
"Landler"=>"Lรคndler", | |||
"langue d'oil"=>"langue d'oรฏl", | |||
"Langue d'oil"=>"Langue d'oรฏl", | |||
"La Nina"=>"La Niรฑa", | |||
"litterateur"=>"littรฉrateur", | |||
"Litterateur"=>"Littรฉrateur", | |||
"lycee"=>"lycรฉe", | |||
"Lycee"=>"Lycรฉe", | |||
"macedoine"=>"macรฉdoine", | |||
"Macedoine"=>"Macรฉdoine", | |||
"macrame"=>"macramรฉ", | |||
"Macrame"=>"Macramรฉ", | |||
"maitre d'hotel"=>"maรฎtre d'hรดtel", | |||
"Maitre d'hotel"=>"Maรฎtre d'hรดtel", | |||
"malaguena"=>"malagueรฑa", | |||
"Malaguena"=>"Malagueรฑa", | |||
"manana"=>"maรฑana", | |||
"Manana"=>"Maรฑana", | |||
"manege"=>"manรจge", | |||
"Manege"=>"Manรจge", | |||
"manoeuvre"=>"manลuvre", | |||
"Manoeuvre"=>"Manลuvre", | |||
"manque"=>"manquรฉ", | |||
"Manque"=>"Manquรฉ", | |||
"materiel"=>"matรฉriel", | |||
"Materiel"=>"Matรฉriel", | |||
"matinee"=>"matinรฉe", | |||
"Matinee"=>"Matinรฉe", | |||
"melange"=>"mรฉlange", | |||
"Melange"=>"Mรฉlange", | |||
"melee"=>"mรชlรฉe", | |||
"Melee"=>"Mรชlรฉe", | |||
"menage a trois"=>"mรฉnage ร trois", | |||
"Menage a trois"=>"Mรฉnage ร trois", | |||
"mesalliance"=>"mรฉsalliance", | |||
"Mesalliance"=>"Mรฉsalliance", | |||
"metier"=>"mรฉtier", | |||
"Metier"=>"Mรฉtier", | |||
"Metis"=>"Mรฉtis", | |||
"minaudiere"=>"minaudiรจre", | |||
"Minaudiere"=>"Minaudiรจre", | |||
"moire"=>"moirรฉ", | |||
"Moire"=>"Moirรฉ", | |||
"Montreal"=>"Montrรฉal", | |||
"naif"=>"naรฏf", | |||
"Naif"=>"Naรฏf", | |||
"naive"=>"naรฏve", | |||
"Naive"=>"Naรฏve", | |||
"naivete"=>"naรฏvetรฉ", | |||
"Naivete"=>"Naรฏvetรฉ", | |||
"ne"=>"nรฉ", | |||
"Ne"=>"Nรฉ", | |||
"nee"=>"nรฉe", | |||
"Nee"=>"Nรฉe", | |||
"negligee"=>"nรฉgligรฉe", | |||
"Negligee"=>"Nรฉgligรฉe", | |||
"Neufchatel"=>"Neufchรขtel", | |||
"Nez Perce"=>"Nez Percรฉ", | |||
"Noel"=>"Noรซl", | |||
"numero uno"=>"nรบmero uno", | |||
"Numero uno"=>"Nรบmero uno", | |||
"Montano"=>"Montaรฑo", | |||
"objet trouve"=>"objet trouvรฉ", | |||
"Objet trouve"=>"Objet trouvรฉ", | |||
"ole"=>"olรฉ", | |||
"Ole"=>"Olรฉ", | |||
"ombre"=>"ombrรฉ", | |||
"Ombre"=>"Ombrรฉ", | |||
"omerta"=>"omertร ", | |||
"Omerta"=>"Omertร ", | |||
"opera bouffe"=>"opรฉra bouffe", | |||
"Opera bouffe"=>"Opรฉra bouffe", | |||
"opera comique"=>"opรฉra comique", | |||
"Opera comique"=>"Opรฉra comique", | |||
"outre"=>"outrรฉ", | |||
"Outre"=>"Outrรฉ", | |||
"papier-mache"=>"papier-mรขchรฉ", | |||
"Papier-mache"=>"Papier-mรขchรฉ", | |||
"passe"=>"passรฉ", | |||
"Passe"=>"Passรฉ", | |||
"pate"=>"pรขtรฉ", | |||
"Pate"=>"Pรขtรฉ", | |||
"pho"=>"phแป", | |||
"Pho"=>"Phแป", | |||
"piece de resistance"=>"piรจce de rรฉsistance", | |||
"Piece de resistance"=>"Piรจce de rรฉsistance", | |||
"pied-a-terre"=>"pied-ร -terre", | |||
"Pied-a-terre"=>"Pied-ร -terre", | |||
"plisse"=>"plissรฉ", | |||
"Plisse"=>"Plissรฉ", | |||
"pina colada"=>"piรฑa colada", | |||
"Pina colada"=>"Piรฑa colada", | |||
"pinata"=>"piรฑata", | |||
"Pinata"=>"Piรฑata", | |||
"pinon"=>"piรฑรณn", | |||
"Pinon"=>"Piรฑรณn", | |||
"pirana"=>"piraรฑa", | |||
"Pirana"=>"Piraรฑa", | |||
"pique"=>"piquรฉ", | |||
"Pique"=>"Piquรฉ", | |||
"piu"=>"piรน", | |||
"Piu"=>"Piรน", | |||
"plie"=>"pliรฉ", | |||
"Plie"=>"Pliรฉ", | |||
"precis"=>"prรฉcis", | |||
"Precis"=>"Prรฉcis", | |||
"polsa"=>"pรถlsa", | |||
"Polsa"=>"Pรถlsa", | |||
"premiere"=>"premiรจre", | |||
"Premiere"=>"Premiรจre", | |||
"pret-a-porter"=>"prรชt-ร -porter", | |||
"Pret-a-porter"=>"Prรชt-ร -porter", | |||
"protege"=>"protรฉgรฉ", | |||
"Protege"=>"Protรฉgรฉ", | |||
"protegee"=>"protรฉgรฉe", | |||
"Protegee"=>"Protรฉgรฉe", | |||
"puree"=>"purรฉe", | |||
"Puree"=>"Purรฉe", | |||
"Quebecois"=>"Quรฉbรฉcois", | |||
"raison d'etre"=>"raison d'รชtre", | |||
"Raison d'etre"=>"Raison d'รชtre", | |||
"recherche"=>"recherchรฉ", | |||
"Recherche"=>"Recherchรฉ", | |||
"reclame"=>"rรฉclame", | |||
"Reclame"=>"Rรฉclame", | |||
"regime"=>"rรฉgime", | |||
"Regime"=>"Rรฉgime", | |||
"retrousse"=>"retroussรฉ", | |||
"Retrousse"=>"Retroussรฉ", | |||
"risque"=>"risquรฉ", | |||
"Risque"=>"Risquรฉ", | |||
"riviere"=>"riviรจre", | |||
"Riviere"=>"Riviรจre", | |||
"roman a clef"=>"roman ร clef", | |||
"Roman a clef"=>"Roman ร clef", | |||
"roue"=>"rouรฉ", | |||
"Roue"=>"Rouรฉ", | |||
"saute"=>"sautรฉ", | |||
"Saute"=>"Sautรฉ", | |||
"seance"=>"sรฉance", | |||
"Seance"=>"Sรฉance", | |||
"senor"=>"seรฑor", | |||
"Senor"=>"Seรฑor", | |||
"senora"=>"seรฑora", | |||
"Senora"=>"Seรฑora", | |||
"senorita"=>"seรฑorita", | |||
"Senorita"=>"Seรฑorita", | |||
"Sinn Fein"=>"Sinn Fรฉin", | |||
"smorgasbord"=>"smรถrgรฅsbord", | |||
"Smorgasbord"=>"Smรถrgรฅsbord", | |||
"smorgastarta"=>"smรถrgรฅstรฅrta", | |||
"Smorgastarta"=>"Smรถrgรฅstรฅrta", | |||
"soigne"=>"soignรฉ", | |||
"Soigne"=>"Soignรฉ", | |||
"soiree"=>"soirรฉe", | |||
"Soiree"=>"Soirรฉe", | |||
"souffle"=>"soufflรฉ", | |||
"Souffle"=>"Soufflรฉ", | |||
"soupcon"=>"soupรงon", | |||
"Soupcon"=>"Soupรงon", | |||
"surstromming"=>"surstrรถmming", | |||
"Surstromming"=>"Surstrรถmming", | |||
"tete-a-tete"=>"tรชte-ร -tรชte", | |||
"Tete-a-tete"=>"Tรชte-ร -tรชte", | |||
"touche"=>"touchรฉ", | |||
"Touche"=>"Touchรฉ", | |||
"tourtiere"=>"tourtiรจre", | |||
"Tourtiere"=>"Tourtiรจre", | |||
"uber"=>"รผber", | |||
"Uber"=>"รber", | |||
"Ubermensch"=>"รbermensch", | |||
"Zaire"=>"Zaรฏre", | |||
); |
@ -0,0 +1,599 @@ | |||
<?php | |||
/* | |||
Project: PHP Typography | |||
Project URI: http://kingdesk.com/projects/php-typography/ | |||
File modified to place pattern and exceptions in arrays that can be understood in php files. | |||
This file is released under the same copyright as the below referenced original file | |||
Original unmodified file is available at: http://mirror.unl.edu/ctan/language/hyph-utf8/tex/generic/hyph-utf8/patterns/ | |||
Original file name: hyph-el-monoton.tex | |||
//============================================================================================================ | |||
ORIGINAL FILE INFO | |||
% **************************************************************** | |||
% | |||
% File name: grmhyph5-unicode.tex | |||
% | |||
% This file was first created by mechanical translation from | |||
% GRMhyph5.tex via 'elhyph-utf8 -m -c' (version 0.1 by Peter | |||
% Heslin -- p.j.heslin@durham.ac.uk). Some additions were | |||
% also made by hand. | |||
% | |||
% Created: June 6, 2008 | |||
% | |||
% Hyphenation patterns for Modern Monotonic Greek. | |||
% | |||
% Created by Dimitrios Filippou with some ideas borrowed from | |||
% Yannis Haralambous, Kostis Dryllerakis and Claudio Beccari. | |||
% | |||
% These hyphenation patterns are explained in 'ancient.pdf'. | |||
% Hyphenation examples are given in the file 'anc-test.pdf'. | |||
% Some doubtful patterns are marked by three question marks '???'. | |||
% | |||
% Documentation in English can be found in: D. Filippou, | |||
% 'Hyphenation patterns for Ancient and Modern Greek, ' in | |||
% 'TeX, XML, and Digital Typography' (A. Syropoulos et al., | |||
% eds.), Lecture Notes in Computer Science 3130, Springer-Verlag | |||
% Berlin-Heidelberg, 2004. ISBN 3-540-22801-2. | |||
% | |||
% **************************************************************** | |||
% | |||
% \message{UTF-8 hyphenation patterns for Modern, Monotonic Greek} | |||
//============================================================================================================ | |||
*/ | |||
$patgenLanguage = 'Greek (Modern Monotonic)'; | |||
$patgenExceptions = array(); | |||
$patgenMaxSeg = 4; | |||
$patgen = array( | |||
'begin'=>array( | |||
'ฮน'=>'03', | |||
'ฮฏ'=>'03', | |||
'ฮท'=>'03', | |||
'ฮฎ'=>'03', | |||
'ฯ '=>'03', | |||
'ฯ'=>'03', | |||
'ฮฒ'=>'04', | |||
'ฮณ'=>'04', | |||
'ฮด'=>'04', | |||
'ฮถ'=>'04', | |||
'ฮธ'=>'04', | |||
'ฮบ'=>'04', | |||
'ฮป'=>'04', | |||
'ฮผ'=>'04', | |||
'ฮฝ'=>'04', | |||
'ฮพ'=>'04', | |||
'ฯ'=>'04', | |||
'ฯ'=>'04', | |||
'ฯ'=>'04', | |||
'ฯฒ'=>'04', | |||
'ฯ'=>'04', | |||
'ฯ'=>'04', | |||
'ฯ'=>'04', | |||
'ฯ'=>'04' | |||
), | |||
'end'=>array( | |||
'ฮฌฮท'=>'030', | |||
'ฮฌฮน'=>'030', | |||
'ฯฮท'=>'030', | |||
'ฯฮน'=>'030', | |||
'ฮฒ'=>'40', | |||
'ฮณ'=>'40', | |||
'ฮณฮบ'=>'400', | |||
'ฮด'=>'40', | |||
'ฮถ'=>'40', | |||
'ฮธ'=>'40', | |||
'ฮบ'=>'40', | |||
'ฮป'=>'40', | |||
'ฮผ'=>'40', | |||
'ฮผฯ'=>'400', | |||
'ฮฝ'=>'40', | |||
'ฮฝฯ'=>'400', | |||
'ฮพ'=>'40', | |||
'ฯ'=>'40', | |||
'ฯ'=>'40', | |||
'ฯ'=>'40', | |||
'ฯฒ'=>'40', | |||
'ฯ'=>'40', | |||
'ฯ'=>'40', | |||
'ฯฮถ'=>'400', | |||
'ฯฯ'=>'400', | |||
'ฯฯฒ'=>'400', | |||
'ฯฯ'=>'400', | |||
'ฯ'=>'40', | |||
'ฯ'=>'40', | |||
'ฯ'=>'40', | |||
'ฮฒฯ'=>'400', | |||
'ฮณฮป'=>'400', | |||
'ฮบฮป'=>'400', | |||
'ฮบฯ'=>'400', | |||
'ฮณฮบฯ'=>'4000', | |||
'ฮณฮบฯฒ'=>'4000', | |||
'ฮณฮบฯ'=>'4000', | |||
'ฮบฯ'=>'600', | |||
'ฮบฯฒ'=>'600', | |||
'ฮบฯ'=>'400', | |||
'ฮปฯ'=>'400', | |||
'ฮปฯฒ'=>'400', | |||
'ฮปฯ'=>'400', | |||
'ฮผฯฮป'=>'4000', | |||
'ฮผฯฮฝ'=>'4000', | |||
'ฮผฯฯ'=>'4000', | |||
'ฮผฯ'=>'400', | |||
'ฮผฯฒ'=>'400', | |||
'ฮผฯ'=>'400', | |||
'ฮฝฯ'=>'400', | |||
'ฮฝฯฒ'=>'400', | |||
'ฮฝฯ'=>'400', | |||
'ฯฯ'=>'400', | |||
'ฯฯฒ'=>'400', | |||
'ฯฯ'=>'400', | |||
'ฯฮบ'=>'400', | |||
'ฯฒฮบ'=>'400', | |||
'ฯฯ'=>'400', | |||
'ฯฒฯ'=>'400', | |||
'ฯฮป'=>'400', | |||
'ฯฯ'=>'400', | |||
'ฮฝฯฯ'=>'4000', | |||
'ฮฝฯฯฒ'=>'4000', | |||
'ฮฝฯฯ'=>'4000', | |||
'ฯฯ'=>'400', | |||
'ฯฯ'=>'400' | |||
), | |||
'all'=>array( | |||
'ฮฑ'=>'01', | |||
'ฮต'=>'01', | |||
'ฮท'=>'01', | |||
'ฮน'=>'01', | |||
'ฮฟ'=>'01', | |||
'ฯ '=>'01', | |||
'ฯ'=>'01', | |||
'ฯ'=>'01', | |||
'ฯ'=>'01', | |||
'ฮฌ'=>'01', | |||
'ฮญ'=>'01', | |||
'ฮฎ'=>'01', | |||
'ฮฏ'=>'01', | |||
'ฯ'=>'01', | |||
'ฯ'=>'01', | |||
'ฯ'=>'01', | |||
'ฮ'=>'01', | |||
'ฮฐ'=>'01', | |||
'ฮฑฮน'=>'020', | |||
'ฮฑฮฏ'=>'020', | |||
'ฮฌฮน'=>'020', | |||
'ฮฌฯ'=>'020', | |||
'ฮฑฯ '=>'020', | |||
'ฮฑฯ'=>'020', | |||
'ฮฌฯ '=>'030', | |||
'ฮตฮน'=>'020', | |||
'ฮตฮฏ'=>'020', | |||
'ฮญฮน'=>'020', | |||
'ฮญฯ'=>'020', | |||
'ฮตฯ '=>'020', | |||
'ฮตฯ'=>'020', | |||
'ฮญฯ '=>'030', | |||
'ฮทฯ '=>'020', | |||
'ฮทฯ'=>'020', | |||
'ฮฎฯ '=>'030', | |||
'ฮฟฮน'=>'020', | |||
'ฮฟฮฏ'=>'020', | |||
'ฯฮน'=>'020', | |||
'ฯฯ'=>'020', | |||
'ฮฟฯ '=>'020', | |||
'ฮฟฯ'=>'020', | |||
'ฯฯ '=>'030', | |||
'ฯ ฮน'=>'020', | |||
'ฯ ฮฏ'=>'020', | |||
'ฯฮน'=>'030', | |||
'ฮฑฮท'=>'020', | |||
'ฮฑฯ'=>'020', | |||
'ฮฑฯ'=>'020', | |||
'ฮตฯ'=>'020', | |||
'ฮตฯ'=>'020', | |||
'ฮฟฮตฮน'=>'0200', | |||
'ฮฟฮท'=>'020', | |||
'ฮฟฯ'=>'020', | |||
'ฮนฮฑ'=>'020', | |||
'ฮนฮฌ'=>'020', | |||
'ฮนฮต'=>'020', | |||
'ฮนฮญ'=>'020', | |||
'ฮนฮฟ'=>'020', | |||
'ฮนฯ'=>'020', | |||
'ฮฟฯฯ'=>'0330', | |||
'ฮนฯ'=>'020', | |||
'ฮนฯ'=>'020', | |||
'ฮทฮฑ'=>'020', | |||
'ฮทฮฌ'=>'020', | |||
'ฮทฮต'=>'020', | |||
'ฮทฮญ'=>'020', | |||
'ฮทฮฟ'=>'020', | |||
'ฮทฯ'=>'020', | |||
'ฮทฯ'=>'020', | |||
'ฮทฯ'=>'020', | |||
'ฯ ฮฑ'=>'020', | |||
'ฯ ฮฌ'=>'020', | |||
'ฯ ฮฟ'=>'020', | |||
'ฯ ฯ'=>'020', | |||
'ฯ ฯ'=>'020', | |||
'ฯ ฯ'=>'020', | |||
'\''=>'40', | |||
'สผ'=>'40', | |||
'แพฟ'=>'40', | |||
'ฮฒ\''=>'400', | |||
'ฮฒสผ'=>'400', | |||
'ฮฒแพฟ'=>'400', | |||
'ฮณ\''=>'400', | |||
'ฮณสผ'=>'400', | |||
'ฮณแพฟ'=>'400', | |||
'ฮด\''=>'400', | |||
'ฮดสผ'=>'400', | |||
'ฮดแพฟ'=>'400', | |||
'ฮถ\''=>'400', | |||
'ฮถสผ'=>'400', | |||
'ฮถแพฟ'=>'400', | |||
'ฮธ\''=>'400', | |||
'ฮธสผ'=>'400', | |||
'ฮธแพฟ'=>'400', | |||
'ฮบ\''=>'400', | |||
'ฮบสผ'=>'400', | |||
'ฮบแพฟ'=>'400', | |||
'ฮป\''=>'400', | |||
'ฮปสผ'=>'400', | |||
'ฮปแพฟ'=>'400', | |||
'ฮผ\''=>'400', | |||
'ฮผสผ'=>'400', | |||
'ฮผแพฟ'=>'400', | |||
'ฮผฯ\''=>'4000', | |||
'ฮผฯสผ'=>'4000', | |||
'ฮผฯแพฟ'=>'4000', | |||
'ฮฝ\''=>'400', | |||
'ฮฝสผ'=>'400', | |||
'ฮฝแพฟ'=>'400', | |||
'ฮฝฯ\''=>'4000', | |||
'ฮฝฯโ'=>'4000', | |||
'ฮฝฯแพฟ'=>'4000', | |||
'ฮพ\''=>'400', | |||
'ฮพสผ'=>'400', | |||
'ฮพแพฟ'=>'400', | |||
'ฯ\''=>'400', | |||
'ฯสผ'=>'400', | |||
'ฯแพฟ'=>'400', | |||
'ฯ\''=>'400', | |||
'ฯสผ'=>'400', | |||
'ฯแพฟ'=>'400', | |||
'ฯ\''=>'400', | |||
'ฯสผ'=>'400', | |||
'ฯแพฟ'=>'400', | |||
'ฯฒ\''=>'400', | |||
'ฯฒสผ'=>'400', | |||
'ฯฒแพฟ'=>'400', | |||
'ฯ\''=>'400', | |||
'ฯสผ'=>'400', | |||
'ฯแพฟ'=>'400', | |||
'ฯฮถ\''=>'4000', | |||
'ฯฮถสผ'=>'4000', | |||
'ฯฮถแพฟ'=>'4000', | |||
'ฯฯ\''=>'4000', | |||
'ฯฯสผ'=>'4000', | |||
'ฯฯแพฝ'=>'4000', | |||
'ฯฯฒ\''=>'4000', | |||
'ฯฯฒสผ'=>'4000', | |||
'ฯฯฒแพฟ'=>'4000', | |||
'ฯ\''=>'400', | |||
'ฯสผ'=>'400', | |||
'ฯแพฟ'=>'400', | |||
'ฯ\''=>'400', | |||
'ฯสผ'=>'400', | |||
'ฯแพฟ'=>'400', | |||
'ฯ\''=>'400', | |||
'ฯสผ'=>'400', | |||
'ฯแพฟ'=>'400', | |||
'ฮฒฮฒ'=>'410', | |||
'ฮณฮณ'=>'410', | |||
'ฮดฮด'=>'410', | |||
'ฮถฮถ'=>'410', | |||
'ฮธฮธ'=>'410', | |||
'ฮบฮบ'=>'410', | |||
'ฮปฮป'=>'410', | |||
'ฮผฮผ'=>'410', | |||
'ฮฝฮฝ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฒฯฒ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฮฒฮถ'=>'410', | |||
'ฮฒฮธ'=>'410', | |||
'ฮฒฮบ'=>'410', | |||
'ฮฒฮผ'=>'410', | |||
'ฮฒฮฝ'=>'410', | |||
'ฮฒฮพ'=>'410', | |||
'ฮฒฯ'=>'410', | |||
'ฮฒฯ'=>'410', | |||
'ฮฒฯฒ'=>'410', | |||
'ฮฒฯ'=>'410', | |||
'ฮฒฯ'=>'410', | |||
'ฮฒฯ'=>'410', | |||
'ฮฒฯ'=>'410', | |||
'ฮณฮฒ'=>'410', | |||
'ฮณฮถ'=>'410', | |||
'ฮณฮธ'=>'410', | |||
'ฮณฮผ'=>'410', | |||
'ฯฮณฮผ'=>'4520', | |||
'ฮณฮพ'=>'410', | |||
'ฮณฯ'=>'410', | |||
'ฮณฯ'=>'410', | |||
'ฮณฯฒ'=>'410', | |||
'ฮณฯ'=>'410', | |||
'ฮณฯ'=>'410', | |||
'ฮณฯ'=>'410', | |||
'ฮณฯ'=>'410', | |||
'ฮดฮฒ'=>'410', | |||
'ฮดฮณ'=>'410', | |||
'ฮดฮถ'=>'410', | |||
'ฮดฮธ'=>'410', | |||
'ฮดฮบ'=>'410', | |||
'ฮดฮป'=>'410', | |||
'ฮดฮพ'=>'410', | |||
'ฮดฯ'=>'410', | |||
'ฮดฯ'=>'410', | |||
'ฮดฯฒ'=>'410', | |||
'ฮดฯ'=>'410', | |||
'ฮดฯ'=>'410', | |||
'ฮดฯ'=>'410', | |||
'ฮดฯ'=>'410', | |||
'ฮถฮฒ'=>'410', | |||
'ฮถฮณ'=>'410', | |||
'ฮถฮด'=>'410', | |||
'ฮถฮธ'=>'410', | |||
'ฮถฮบ'=>'410', | |||
'ฮถฮป'=>'410', | |||
'ฮถฮผ'=>'410', | |||
'ฯฮถฮผ'=>'0020', | |||
'ฮถฮฝ'=>'410', | |||
'ฮถฮพ'=>'410', | |||
'ฮถฯ'=>'410', | |||
'ฮถฯ'=>'410', | |||
'ฮถฯ'=>'410', | |||
'ฮถฯฒ'=>'410', | |||
'ฮถฯ'=>'410', | |||
'ฮถฯ'=>'410', | |||
'ฮถฯ'=>'410', | |||
'ฮถฯ'=>'410', | |||
'ฮธฮฒ'=>'410', | |||
'ฮธฮณ'=>'410', | |||
'ฮธฮด'=>'410', | |||
'ฮธฮถ'=>'410', | |||
'ฮธฮบ'=>'410', | |||
'ฮธฮผ'=>'410', | |||
'ฯฮธฮผ'=>'4520', | |||
'ฯฮธฮผ'=>'0020', | |||
'ฯฒฮธฮผ'=>'0020', | |||
'ฮธฮพ'=>'410', | |||
'ฮธฯ'=>'410', | |||
'ฮธฯ'=>'410', | |||
'ฮธฯฒ'=>'410', | |||
'ฮธฯ'=>'410', | |||
'ฮธฯ'=>'410', | |||
'ฮธฯ'=>'410', | |||
'ฮธฯ'=>'410', | |||
'ฮบฮฒ'=>'410', | |||
'ฮบฮณ'=>'410', | |||
'ฮบฮด'=>'410', | |||
'ฮบฮถ'=>'410', | |||
'ฮบฮธ'=>'410', | |||
'ฮบฮผ'=>'410', | |||
'ฮปฮบฮผ'=>'4520', | |||
'ฯฮบฮผ'=>'4520', | |||
'ฮบฮพ'=>'410', | |||
'ฮบฯ'=>'410', | |||
'ฮบฯ'=>'410', | |||
'ฮบฯฒ'=>'410', | |||
'ฮบฯ'=>'410', | |||
'ฮฝฮบฯ'=>'4520', | |||
'ฮบฯ'=>'410', | |||
'ฮบฯ'=>'410', | |||
'ฮปฮฒ'=>'410', | |||
'ฮปฮณ'=>'410', | |||
'ฮปฮด'=>'410', | |||
'ฮปฮถ'=>'410', | |||
'ฮปฮธ'=>'410', | |||
'ฮปฮบ'=>'410', | |||
'ฮปฮผ'=>'410', | |||
'ฮปฮฝ'=>'410', | |||
'ฮปฮพ'=>'410', | |||
'ฮปฯ'=>'410', | |||
'ฮปฯ'=>'410', | |||
'ฮปฯ'=>'410', | |||
'ฮปฯฒ'=>'410', | |||
'ฮปฯ'=>'410', | |||
'ฮปฯ'=>'410', | |||
'ฮปฯ'=>'410', | |||
'ฮปฯ'=>'410', | |||
'ฮผฮฒ'=>'410', | |||
'ฮผฮณ'=>'410', | |||
'ฮผฮด'=>'410', | |||
'ฮผฮถ'=>'410', | |||
'ฮผฮธ'=>'410', | |||
'ฮผฮบ'=>'410', | |||
'ฮผฮป'=>'410', | |||
'ฮผฮพ'=>'410', | |||
'ฮผฯ'=>'410', | |||
'ฮผฯ'=>'410', | |||
'ฮผฯฒ'=>'410', | |||
'ฮผฯ'=>'410', | |||
'ฮผฯ'=>'410', | |||
'ฮผฯ'=>'410', | |||
'ฮผฯ'=>'410', | |||
'ฮฝฮฒ'=>'410', | |||
'ฮฝฮณ'=>'410', | |||
'ฮฝฮด'=>'410', | |||
'ฮฝฮถ'=>'410', | |||
'ฮฝฮธ'=>'410', | |||
'ฮฝฮบ'=>'410', | |||
'ฮฝฮป'=>'410', | |||
'ฮฝฮผ'=>'410', | |||
'ฮฝฮพ'=>'410', | |||
'ฮฝฯ'=>'410', | |||
'ฮฝฯ'=>'410', | |||
'ฮฝฯ'=>'410', | |||
'ฮฝฯฒ'=>'410', | |||
'ฮฝฯ'=>'410', | |||
'ฮฝฯ'=>'410', | |||
'ฮฝฯ'=>'410', | |||
'ฮพฮฒ'=>'410', | |||
'ฮพฮณ'=>'410', | |||
'ฮพฮด'=>'410', | |||
'ฮพฮถ'=>'410', | |||
'ฮพฮธ'=>'410', | |||
'ฮพฮบ'=>'410', | |||
'ฮพฮป'=>'410', | |||
'ฮพฮผ'=>'410', | |||
'ฮพฮฝ'=>'410', | |||
'ฮพฯ'=>'410', | |||
'ฮพฯ'=>'410', | |||
'ฮพฯ'=>'410', | |||
'ฮพฯฒ'=>'410', | |||
'ฮพฯ'=>'410', | |||
'ฮณฮพฯ'=>'4520', | |||
'ฯฮพฯ'=>'4520', | |||
'ฮพฯ'=>'410', | |||
'ฮพฯ'=>'410', | |||
'ฮพฯ'=>'410', | |||
'ฯฮฒ'=>'410', | |||
'ฯฮณ'=>'410', | |||
'ฯฮด'=>'410', | |||
'ฯฮถ'=>'410', | |||
'ฯฮธ'=>'410', | |||
'ฯฮบ'=>'410', | |||
'ฯฮผ'=>'410', | |||
'ฯฮพ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯฒ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฮฒ'=>'410', | |||
'ฯฮณ'=>'410', | |||
'ฯฮด'=>'410', | |||
'ฯฮถ'=>'410', | |||
'ฯฮธ'=>'410', | |||
'ฯฮบ'=>'410', | |||
'ฯฮป'=>'410', | |||
'ฯฮผ'=>'410', | |||
'ฯฮฝ'=>'410', | |||
'ฯฮพ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯฒ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฮด'=>'410', | |||
'ฯฒฮด'=>'410', | |||
'ฯฮถ'=>'410', | |||
'ฯฒฮถ'=>'410', | |||
'ฯฮฝ'=>'410', | |||
'ฯฒฮฝ'=>'410', | |||
'ฯฮพ'=>'410', | |||
'ฯฒฮพ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฒฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฒฯ'=>'410', | |||
'ฯฮฒ'=>'410', | |||
'ฯฮณ'=>'410', | |||
'ฯฮด'=>'410', | |||
'ฯฮธ'=>'410', | |||
'ฯฮบ'=>'410', | |||
'ฯฮฝ'=>'410', | |||
'ฯฮพ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯฯ'=>'0020', | |||
'ฯฒฯฯ'=>'0020', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฮฒ'=>'410', | |||
'ฯฮณ'=>'410', | |||
'ฯฮด'=>'410', | |||
'ฯฮถ'=>'410', | |||
'ฯฮบ'=>'410', | |||
'ฯฮผ'=>'410', | |||
'ฯฮฝ'=>'410', | |||
'ฯฯฮฝ'=>'4520', | |||
'ฯฮพ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯฒ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฮฒ'=>'410', | |||
'ฯฮณ'=>'410', | |||
'ฯฮด'=>'410', | |||
'ฯฮถ'=>'410', | |||
'ฯฮบ'=>'410', | |||
'ฯฮผ'=>'410', | |||
'ฯฯฮผ'=>'4520', | |||
'ฯฮพ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯฒ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฮฒ'=>'410', | |||
'ฯฮณ'=>'410', | |||
'ฯฮด'=>'410', | |||
'ฯฮถ'=>'410', | |||
'ฯฮธ'=>'410', | |||
'ฯฮบ'=>'410', | |||
'ฯฮป'=>'410', | |||
'ฯฮผ'=>'410', | |||
'ฯฮฝ'=>'410', | |||
'ฯฮพ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฯฯฒ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฮผฯฯ'=>'4520', | |||
'ฯฯ'=>'410', | |||
'ฯฯ'=>'410', | |||
'ฮณฮบฯ'=>'4520', | |||
'ฮณฮบฯ'=>'4100', | |||
'ฮผฯฯ'=>'4100', | |||
'ฮฝฯฮถ'=>'4100', | |||
'ฮฝฯฯ'=>'4100', | |||
'ฮฝฯฯฒ'=>'4100', | |||
'ฮณฮบฮผฯ'=>'40100', | |||
'ฮณฮบฮฝฯ'=>'40100', | |||
'ฮณฮบฯฮถ'=>'40100', | |||
'ฮณฮบฯฯ'=>'40100', | |||
'ฮณฮบฯฯฒ'=>'40100', | |||
'ฮผฯฮฝฯ'=>'40100', | |||
'ฮผฯฯฮถ'=>'40100', | |||
'ฮผฯฯฯ'=>'40100', | |||
'ฮผฯฯฯฒ'=>'40100', | |||
'ฮฝฯฮผฯ'=>'40100', | |||
'ฯฯฮณฮบ'=>'40100', | |||
'ฯฯฒฮณฮบ'=>'40100', | |||
'ฯฯฮผฯ'=>'40100', | |||
'ฯฯฒฮผฯ'=>'40100', | |||
'ฯฯฮฝฯ'=>'40100', | |||
'ฯฯฒฮฝฯ'=>'40100' | |||
) | |||
); | |||
?> |
@ -0,0 +1,268 @@ | |||
<?php | |||
/* | |||
Project: PHP Typography | |||
Project URI: http://kingdesk.com/projects/php-typography/ | |||
File modified to place pattern and exceptions in arrays that can be understood in php files. | |||
This file is released under the same copyright as the below referenced original file | |||
Original unmodified file is available at: http://mirror.unl.edu/ctan/language/hyph-utf8/tex/generic/hyph-utf8/patterns/ | |||
Original file name: hyph-eu.tex | |||
//============================================================================================================ | |||
ORIGINAL FILE INFO | |||
% Hyphenation patterns for Basque. | |||
% | |||
% This file has first been written by Juan M. Aguirregabiria | |||
% (juanmari.aguirregabiria@ehu.es) on February 1997 based on the | |||
% shyphen.sh script that generates the Spanish patterns as compiled | |||
% by Julio Sanchez (jsanchez@gmv.es) on September 1991. | |||
% | |||
% In June 2008 the generating script has been rewritten into ruby and | |||
% adapted for native UTF-8 TeX engines. Patterns became part of hyph-utf8 | |||
% package and were renamed from bahyph.tex into hyph-eu.tex. | |||
% Functionality should not change apart from adding รฑ by default. | |||
% | |||
% The original Copyright followed and applied also to precessor of this file | |||
% whose last version will be always available by anonymous ftp | |||
% from tp.lc.ehu.es or by poynting your Web browser to | |||
% http://tp.lc.ehu.es/jma/basque.html | |||
% | |||
% For more information about the new UTF-8 hyphenation patterns and | |||
% links to this file see | |||
% http://www.tug.org/tex-hyphen/ | |||
% | |||
% COPYRIGHT NOTICE | |||
% | |||
% These patterns and the generating script are Copyright (c) JMA 1997, 2008 | |||
% These patterns are made public in the hope that they will benefit others. | |||
% You can use this software for any purpose. | |||
% However, this is given for free and WITHOUT ANY WARRANTY. | |||
% | |||
% You are kindly requested to send any changes to the author. | |||
% If you change the generating script, you must include code | |||
% in it such that any output is clearly labeled as generated | |||
% by a modified script. | |||
% | |||
% END OF COPYRIGHT NOTICE | |||
% | |||
% Open vowels: a e o | |||
% Closed vowels: i u | |||
% Consonants: b c d f g j k l m n รฑ p q r s t v w x y z | |||
% | |||
% Some of the patterns below represent combinations that never | |||
% happen in Basque. Would they happen, they would be hyphenated | |||
% according to the rules. | |||
% | |||
//============================================================================================================ | |||
*/ | |||
$patgenLanguage = 'Basque'; | |||
$patgenExceptions = array(); | |||
$patgenMaxSeg = 4; | |||
$patgen = array( | |||
'begin'=>array(), | |||
'end'=>array(), | |||
'all'=>array( | |||
'ba'=>'100', | |||
'be'=>'100', | |||
'bo'=>'100', | |||
'bi'=>'100', | |||
'bu'=>'100', | |||
'ca'=>'100', | |||
'ce'=>'100', | |||
'co'=>'100', | |||
'ci'=>'100', | |||
'cu'=>'100', | |||
'da'=>'100', | |||
'de'=>'100', | |||
'do'=>'100', | |||
'di'=>'100', | |||
'du'=>'100', | |||
'fa'=>'100', | |||
'fe'=>'100', | |||
'fo'=>'100', | |||
'fi'=>'100', | |||
'fu'=>'100', | |||
'ga'=>'100', | |||
'ge'=>'100', | |||
'go'=>'100', | |||
'gi'=>'100', | |||
'gu'=>'100', | |||
'ja'=>'100', | |||
'je'=>'100', | |||
'jo'=>'100', | |||
'ji'=>'100', | |||
'ju'=>'100', | |||
'ka'=>'100', | |||
'ke'=>'100', | |||
'ko'=>'100', | |||
'ki'=>'100', | |||
'ku'=>'100', | |||
'la'=>'100', | |||
'le'=>'100', | |||
'lo'=>'100', | |||
'li'=>'100', | |||
'lu'=>'100', | |||
'ma'=>'100', | |||
'me'=>'100', | |||
'mo'=>'100', | |||
'mi'=>'100', | |||
'mu'=>'100', | |||
'na'=>'100', | |||
'ne'=>'100', | |||
'no'=>'100', | |||
'ni'=>'100', | |||
'nu'=>'100', | |||
'รฑa'=>'100', | |||
'รฑe'=>'100', | |||
'รฑo'=>'100', | |||
'รฑi'=>'100', | |||
'รฑu'=>'100', | |||
'pa'=>'100', | |||
'pe'=>'100', | |||
'po'=>'100', | |||
'pi'=>'100', | |||
'pu'=>'100', | |||
'qa'=>'100', | |||
'qe'=>'100', | |||
'qo'=>'100', | |||
'qi'=>'100', | |||
'qu'=>'100', | |||
'ra'=>'100', | |||
're'=>'100', | |||
'ro'=>'100', | |||
'ri'=>'100', | |||
'ru'=>'100', | |||
'sa'=>'100', | |||
'se'=>'100', | |||
'so'=>'100', | |||
'si'=>'100', | |||
'su'=>'100', | |||
'ta'=>'100', | |||
'te'=>'100', | |||
'to'=>'100', | |||
'ti'=>'100', | |||
'tu'=>'100', | |||
'va'=>'100', | |||
've'=>'100', | |||
'vo'=>'100', | |||
'vi'=>'100', | |||
'vu'=>'100', | |||
'wa'=>'100', | |||
'we'=>'100', | |||
'wo'=>'100', | |||
'wi'=>'100', | |||
'wu'=>'100', | |||
'xa'=>'100', | |||
'xe'=>'100', | |||
'xo'=>'100', | |||
'xi'=>'100', | |||
'xu'=>'100', | |||
'ya'=>'100', | |||
'ye'=>'100', | |||
'yo'=>'100', | |||
'yi'=>'100', | |||
'yu'=>'100', | |||
'za'=>'100', | |||
'ze'=>'100', | |||
'zo'=>'100', | |||
'zi'=>'100', | |||
'zu'=>'100', | |||
'lla'=>'1200', | |||
'lle'=>'1200', | |||
'llo'=>'1200', | |||
'lli'=>'1200', | |||
'llu'=>'1200', | |||
'rra'=>'1200', | |||
'rre'=>'1200', | |||
'rro'=>'1200', | |||
'rri'=>'1200', | |||
'rru'=>'1200', | |||
'tsa'=>'1200', | |||
'tse'=>'1200', | |||
'tso'=>'1200', | |||
'tsi'=>'1200', | |||
'tsu'=>'1200', | |||
'txa'=>'1200', | |||
'txe'=>'1200', | |||
'txo'=>'1200', | |||
'txi'=>'1200', | |||
'txu'=>'1200', | |||
'tza'=>'1200', | |||
'tze'=>'1200', | |||
'tzo'=>'1200', | |||
'tzi'=>'1200', | |||
'tzu'=>'1200', | |||
'bla'=>'1200', | |||
'ble'=>'1200', | |||
'blo'=>'1200', | |||
'bli'=>'1200', | |||
'blu'=>'1200', | |||
'bra'=>'1200', | |||
'bre'=>'1200', | |||
'bro'=>'1200', | |||
'bri'=>'1200', | |||
'bru'=>'1200', | |||
'dra'=>'1200', | |||
'dre'=>'1200', | |||
'dro'=>'1200', | |||
'dri'=>'1200', | |||
'dru'=>'1200', | |||
'fla'=>'1200', | |||
'fle'=>'1200', | |||
'flo'=>'1200', | |||
'fli'=>'1200', | |||
'flu'=>'1200', | |||
'fra'=>'1200', | |||
'fre'=>'1200', | |||
'fro'=>'1200', | |||
'fri'=>'1200', | |||
'fru'=>'1200', | |||
'gla'=>'1200', | |||
'gle'=>'1200', | |||
'glo'=>'1200', | |||
'gli'=>'1200', | |||
'glu'=>'1200', | |||
'gra'=>'1200', | |||
'gre'=>'1200', | |||
'gro'=>'1200', | |||
'gri'=>'1200', | |||
'gru'=>'1200', | |||
'kla'=>'1200', | |||
'kle'=>'1200', | |||
'klo'=>'1200', | |||
'kli'=>'1200', | |||
'klu'=>'1200', | |||
'kra'=>'1200', | |||
'kre'=>'1200', | |||
'kro'=>'1200', | |||
'kri'=>'1200', | |||
'kru'=>'1200', | |||
'pla'=>'1200', | |||
'ple'=>'1200', | |||
'plo'=>'1200', | |||
'pli'=>'1200', | |||
'plu'=>'1200', | |||
'pra'=>'1200', | |||
'pre'=>'1200', | |||
'pro'=>'1200', | |||
'pri'=>'1200', | |||
'pru'=>'1200', | |||
'tra'=>'1200', | |||
'tre'=>'1200', | |||
'tro'=>'1200', | |||
'tri'=>'1200', | |||
'tru'=>'1200', | |||
'subr'=>'00220', | |||
'subl'=>'00220' | |||
) | |||
); | |||
?> |
@ -0,0 +1,396 @@ | |||
<?php | |||
/* | |||
Project: PHP Typography | |||
Project URI: http://kingdesk.com/projects/php-typography/ | |||
File modified to place pattern and exceptions in arrays that can be understood in php files. | |||
This file is released under the same copyright as the below referenced original file | |||
Original unmodified file is available at: http://mirror.unl.edu/ctan/language/hyph-utf8/tex/generic/hyph-utf8/patterns/ | |||
Original file name: hyph-_______________.tex | |||
//============================================================================================================ | |||
ORIGINAL FILE INFO | |||
% This file is part of hyph-utf8 package and resulted from | |||
% semi-manual conversions of hyphenation patterns into UTF-8 in June 2008. | |||
% | |||
% Source: fihyph.tex (yyyy-mm-dd) | |||
% Author: Kauko Saarinen | |||
% | |||
% The above mentioned file should become obsolete, | |||
% and the author of the original file should preferaby modify this file instead. | |||
% | |||
% Modificatios were needed in order to support native UTF-8 engines, | |||
% but functionality (hopefully) didn't change in any way, at least not intentionally. | |||
% This file is no longer stand-alone; at least for 8-bit engines | |||
% you probably want to use loadhyph-foo.tex (which will load this file) instead. | |||
% | |||
% Modifications were done by Jonathan Kew, Mojca Miklavec & Arthur Reutenauer | |||
% with help & support from: | |||
% - Karl Berry, who gave us free hands and all resources | |||
% - Taco Hoekwater, with useful macros | |||
% - Hans Hagen, who did the unicodifisation of patterns already long before | |||
% and helped with testing, suggestions and bug reports | |||
% - Norbert Preining, who tested & integrated patterns into TeX Live | |||
% | |||
% However, the 'copyright/copyleft' owner of patterns remains the original author. | |||
% | |||
% The copyright statement of this file is thus: | |||
% | |||
% Do with this file whatever needs to be done in future for the sake of | |||
% 'a better world' as long as you respect the copyright of original file. | |||
% If you're the original author of patterns or taking over a new revolution, | |||
% plese remove all of the TUG comments & credits that we added here - | |||
% you are the Queen / the King, we are only the servants. | |||
% | |||
% If you want to change this file, rather than uploading directly to CTAN, | |||
% we would be grateful if you could send it to us (http://tug.org/tex-hyphen) | |||
% or ask for credentials for SVN repository and commit it yourself; | |||
% we will then upload the whole 'package' to CTAN. | |||
% | |||
% Before a new 'pattern-revolution' starts, | |||
% please try to follow some guidelines if possible: | |||
% | |||
% - \lccode is *forbidden*, and I really mean it | |||
% - all the patterns should be in UTF-8 | |||
% - the only 'allowed' TeX commands in this file are: \patterns, \hyphenation, | |||
% and if you really cannot do without, also \input and \message | |||
% - in particular, please no \catcode or \lccode changes, | |||
% they belong to loadhyph-foo.tex, | |||
% and no \lefthyphenmin and \righthyphenmin, | |||
% they have no influence here and belong elsewhere | |||
% - \begingroup and/or \endinput is not needed | |||
% - feel free to do whatever you want inside comments | |||
% | |||
% We know that TeX is extremely powerful, but give a stupid parser | |||
% at least a chance to read your patterns. | |||
% | |||
% For more unformation see | |||
% | |||
% http://tug.org/tex-hyphen | |||
% | |||
%------------------------------------------------------------------------------ | |||
% | |||
% -----> Finnish hyphenation patterns for MLPCTeX <------ | |||
% First release January -86 by Kauko Saarinen, | |||
% Computing Centre, University of Jyvaskyla, Finland | |||
% | |||
% Completely rewritten January -88. The new patterns make | |||
% much less mistakes with foreign and compound words. | |||
% The article 'Automatic Hyphenation of Finnish' | |||
% by Professor Fred Karlsson is also referred | |||
% --------------------------------------------------------- | |||
% | |||
% 8th March -89 (vers. 2.2), some vowel triples by Fred Karlsson added. | |||
% 9th January - 95: added \uccode and \lccode by Thomas Esser | |||
% | |||
% ********* Patterns may be freely distributed ********** | |||
% | |||
//============================================================================================================ | |||