diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6a40904 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# ignore build config file +_build/build.config.php +.DS_Store \ No newline at end of file diff --git a/_build/.gitignore b/_build/.gitignore deleted file mode 100644 index abeb011..0000000 --- a/_build/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# ignore build config file -/build.config.php diff --git a/_build/build.transport.php b/_build/build.transport.php index 49a3006..f02b376 100644 --- a/_build/build.transport.php +++ b/_build/build.transport.php @@ -12,7 +12,7 @@ /* define package */ define('PKG_NAME','translit'); define('PKG_NAME_LOWER',strtolower(PKG_NAME)); -define('PKG_VERSION','1.0.0'); +define('PKG_VERSION','1.1.1'); define('PKG_RELEASE','beta'); /* define sources */ @@ -37,6 +37,7 @@ /* load builder */ $modx->loadClass('transport.modPackageBuilder', '', false, true); $builder = new modPackageBuilder($modx); +$builder->directory = dirname(dirname(__FILE__)).'/_packages/'; $builder->createPackage(PKG_NAME, PKG_VERSION, PKG_RELEASE); $builder->registerNamespace('translit', false, true, '{core_path}components/'.PKG_NAME_LOWER.'/'); @@ -57,6 +58,7 @@ /* now pack in the license file, readme and setup options */ $builder->setPackageAttributes(array( + 'changelog' => file_get_contents($sources['docs'] . 'changelog.txt'), 'license' => file_get_contents($sources['docs'] . 'license.txt'), 'readme' => file_get_contents($sources['docs'] . 'readme.txt'), )); diff --git a/_packages/translit-1.1.1-beta.transport.zip b/_packages/translit-1.1.1-beta.transport.zip new file mode 100644 index 0000000..9e3378e Binary files /dev/null and b/_packages/translit-1.1.1-beta.transport.zip differ diff --git a/core/components/translit/docs/changelog.txt b/core/components/translit/docs/changelog.txt index 9af0280..793c41a 100644 --- a/core/components/translit/docs/changelog.txt +++ b/core/components/translit/docs/changelog.txt @@ -1,5 +1,13 @@ Changelog for translit. +translit 1.1.1-beta (January 24, 2013) +==================================== +- Tweaked the French table + +translit 1.1.0-beta (January 24, 2013) +==================================== +- Add table for French. + translit 1.0.0-beta (October 20, 2010) ==================================== - Initial beta release. \ No newline at end of file diff --git a/core/components/translit/docs/readme.txt b/core/components/translit/docs/readme.txt index 4d7c509..d13e51a 100644 --- a/core/components/translit/docs/readme.txt +++ b/core/components/translit/docs/readme.txt @@ -1,8 +1,8 @@ -------------------- Extension: translit -------------------- -Version: 1.0.0-beta -Released: October 20, 2010 +Version: 1.1.1-beta +Released: January 24, 2013 Since: October 20, 2010 Author: Jason Coward diff --git a/core/components/translit/model/modx/translit/tables/french.php b/core/components/translit/model/modx/translit/tables/french.php new file mode 100644 index 0000000..45296e8 --- /dev/null +++ b/core/components/translit/model/modx/translit/tables/french.php @@ -0,0 +1,70 @@ +'','»'=>'', +'"'=>'','“'=>'','”'=>'', +'‘'=>'-', +'…'=>'-', + +// modified from no accents +'\''=>'-', + +// localized no accents +'&'=>'et','%'=>'', +'À'=>'A','Á'=>'A','Â'=>'A','Ã'=>'A','Ä'=>'A','Å'=>'A','Æ'=>'E','Ā'=>'A','Ą'=>'A','Ă'=>'A', +'Ç'=>'C','Ć'=>'C','Č'=>'C','Ĉ'=>'C','Ċ'=>'C', +'Ď'=>'D','Đ'=>'D', +'È'=>'E','É'=>'E','Ê'=>'E','Ë'=>'E','Ē'=>'E','Ę'=>'E','Ě'=>'E','Ĕ'=>'E','Ė'=>'E', +'Ĝ'=>'G','Ğ'=>'G','Ġ'=>'G','Ģ'=>'G', +'Ĥ'=>'H','Ħ'=>'H', +'Ì'=>'I','Í'=>'I','Î'=>'I','Ï'=>'I','Ī'=>'I','Ĩ'=>'I','Ĭ'=>'I','Į'=>'I','İ'=>'I', +'IJ'=>'J','Ĵ'=>'J', +'Ķ'=>'K', +'Ľ'=>'L','Ĺ'=>'L','Ļ'=>'L','Ŀ'=>'L', +'Ñ'=>'N','Ń'=>'N','Ň'=>'N','Ņ'=>'N','Ŋ'=>'N', +'Ò'=>'O','Ó'=>'O','Ô'=>'O','Õ'=>'O','Ö'=>'O','Ø'=>'O','Ō'=>'O','Ő'=>'O','Ŏ'=>'O', +'Œ'=>'E', +'Ŕ'=>'R','Ř'=>'R','Ŗ'=>'R', +'Ś'=>'S','Ş'=>'S','Ŝ'=>'S','Ș'=>'S', +'Ť'=>'T','Ţ'=>'T','Ŧ'=>'T','Ț'=>'T', +'Ù'=>'U','Ú'=>'U','Û'=>'U','Ü'=>'U','Ū'=>'U','Ů'=>'U','Ű'=>'U','Ŭ'=>'U','Ũ'=>'U','Ų'=>'U', +'Ŵ'=>'W', +'Ŷ'=>'Y','Ÿ'=>'Y', +'Ź'=>'Z','Ż'=>'Z', +'à'=>'a','á'=>'a','â'=>'a','ã'=>'a','ä'=>'a','å'=>'a','æ'=>'e','ā'=>'a','ą'=>'a','ă'=>'a', +'ç'=>'c','ć'=>'c','č'=>'c','ĉ'=>'c','ċ'=>'c', +'ď'=>'d','đ'=>'d', +'è'=>'e','é'=>'e','ê'=>'e','ë'=>'e','ē'=>'e','ę'=>'e','ě'=>'e','ĕ'=>'e','ė'=>'e', +'ƒ'=>'f', +'ĝ'=>'g','ğ'=>'g','ġ'=>'g','ģ'=>'g', +'ĥ'=>'h','ħ'=>'h', +'ì'=>'i','í'=>'i','î'=>'i','ï'=>'i','ī'=>'i','ĩ'=>'i','ĭ'=>'i','į'=>'i','ı'=>'i', +'ij'=>'j','ĵ'=>'j', +'ķ'=>'k','ĸ'=>'k', +'ł'=>'l','ľ'=>'l','ĺ'=>'l','ļ'=>'l','ŀ'=>'l', +'ñ'=>'n','ń'=>'n','ň'=>'n','ņ'=>'n','ʼn'=>'n','ŋ'=>'n', +'ò'=>'o','ó'=>'o','ô'=>'o','õ'=>'o','ö'=>'o','ø'=>'o','ō'=>'o','ŏ'=>'o', +'œ'=>'e', +'ŕ'=>'r','ř'=>'r','ŗ'=>'r', +'ù'=>'u','ú'=>'u','û'=>'u','ü'=>'u','ū'=>'u','ů'=>'u','ű'=>'u','ŭ'=>'u','ũ'=>'u','ų'=>'u', +'ŵ'=>'w', +'ÿ'=>'y','ŷ'=>'y', +'ż'=>'z','ź'=>'z', +'ß'=>'s','ſ'=>'s', +'Α'=>'A','Ά'=>'A','Β'=>'B','Γ'=>'G','Δ'=>'D','Ε'=>'E','Έ'=>'E','Ζ'=>'Z','Η'=>'I','Ή'=>'I', +'Θ'=>'TH','Ι'=>'I','Ί'=>'I','Ϊ'=>'I','Κ'=>'K','Λ'=>'L','Μ'=>'M','Ν'=>'N','Ξ'=>'KS','Ο'=>'O', +'Ό'=>'O','Π'=>'P','Ρ'=>'R','Σ'=>'S','Τ'=>'T','Υ'=>'Y','Ύ'=>'Y','Ϋ'=>'Y','Φ'=>'F','Χ'=>'X', +'Ψ'=>'PS','Ω'=>'O','Ώ'=>'O','α'=>'a','ά'=>'a','β'=>'b','γ'=>'g','δ'=>'d','ε'=>'e','έ'=>'e', +'ζ'=>'z','η'=>'i','ή'=>'i','θ'=>'th','ι'=>'i','ί'=>'i','ϊ'=>'i','ΐ'=>'i','κ'=>'k','λ'=>'l', +'μ'=>'m','ν'=>'n','ξ'=>'ks','ο'=>'o','ό'=>'o','π'=>'p','ρ'=>'r','σ'=>'s','τ'=>'t','υ'=>'y', +'ύ'=>'y','ϋ'=>'y','ΰ'=>'y','φ'=>'f','χ'=>'x','ψ'=>'ps','ω'=>'o','ώ'=>'o', + +// added by Martin Frano + +'š'=>'s', 'ž'=>'z', 'ý'=>'y', 'ô'=>'o', 'ť'=>'t', +'Š'=>'S', 'Ž'=>'Z', 'Ý'=>'Y', 'Ô'=>'O' +); \ No newline at end of file