Skip to content

Commit

Permalink
Merge pull request #81 from florianeckerstorfer/2.0
Browse files Browse the repository at this point in the history
Remove rules from Slugify and move them into files
  • Loading branch information
Florian Eckerstorfer committed Nov 2, 2015
2 parents 77e3f22 + b1555d4 commit 64af0ea
Show file tree
Hide file tree
Showing 40 changed files with 1,937 additions and 991 deletions.
40 changes: 40 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
build: false
shallow_clone: true
platform: x86
clone_folder: c:\projects\cocur\slugify

cache:
- '%LOCALAPPDATA%\Composer\files'

init:
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%

environment:
matrix:
- COMPOSER_FLAGS: ""

install:
- cinst -y OpenSSL.Light
- cinst -y php
- cd c:\tools\php
- copy php.ini-production php.ini /Y
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- echo memory_limit=1G >> php.ini
- cd c:\projects\cocur\slugify
- php -r "readfile('http://getcomposer.org/installer');" | php
- php composer.phar update %COMPOSER_FLAGS% --no-interaction --no-progress

test_script:
- cd c:\projects\cocur\slugify
- vendor\bin\phpunit.bat --verbose

notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/aaf55568e4629e650616
on_build_success: false
on_build_failure: true
on_build_status_changed: true
6 changes: 0 additions & 6 deletions .coveralls.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ matrix:
- php: 7.0
fast_finish: true

addons:
code_climate:
repo_token: e27c69a17c19e62d55c1ec43eecc6821b905c504e5cb5cc4ad7f8a997163447a

before_script:
- sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"
- composer self-update
Expand All @@ -24,10 +20,6 @@ script:
- mkdir -p build/logs
- ./vendor/bin/phpunit

after_script:
- php vendor/bin/coveralls -v
- php vendor/bin/test-reporter

notifications:
webhooks:
urls:
Expand Down
30 changes: 30 additions & 0 deletions Resources/rules/arabic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"أ" : "a",
"ب" : "b",
"ت" : "t",
"ث" : "th",
"ج" : "g",
"ح" : "h",
"خ" : "kh",
"د" : "d",
"ذ" : "th",
"ر" : "r",
"ز" : "z",
"س" : "s",
"ش" : "sh",
"ص" : "s",
"ض" : "d",
"ط" : "t",
"ظ" : "th",
"ع" : "aa",
"غ" : "gh",
"ف" : "f",
"ق" : "k",
"ك" : "k",
"ل" : "l",
"م" : "m",
"ن" : "n",
"ه" : "h",
"و" : "o",
"ي" : "y"
}
9 changes: 9 additions & 0 deletions Resources/rules/austrian.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Ä": "AE",
"Ö": "OE",
"Ü": "UE",
"ß": "sz",
"ä": "ae",
"ö": "oe",
"ü": "ue"
}
121 changes: 121 additions & 0 deletions Resources/rules/burmese.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
{
"က": "k",
"ခ": "kh",
"ဂ": "g",
"ဃ": "ga",
"င": "ng",
"စ": "s",
"ဆ": "sa",
"ဇ": "z",
"စျ" : "za",
"ည": "ny",
"ဋ": "t",
"ဌ": "ta",
"ဍ": "d",
"ဎ": "da",
"ဏ": "na",
"တ": "t",
"ထ": "ta",
"ဒ": "d",
"ဓ": "da",
"န": "n",
"ပ": "p",
"ဖ": "pa",
"ဗ": "b",
"ဘ": "ba",
"မ": "m",
"ယ": "y",
"ရ": "ya",
"လ": "l",
"ဝ": "w",
"သ": "th",
"ဟ": "h",
"ဠ": "la",
"အ": "a",

"ြ": "y",
"ျ": "ya",
"ွ": "w",
"ြွ": "yw",
"ျွ": "ywa",
"ှ": "h",

"ဧ": "e",
"၏": "-e",
"ဣ": "i",
"ဤ": "-i",
"ဉ": "u",
"ဦ": "-u",
"ဩ": "aw",
"သြော" : "aw",
"ဪ": "aw",
"၍": "ywae",
"၌": "hnaik",

"၀": "0",
"၁": "1",
"၂": "2",
"၃": "3",
"၄": "4",
"၅": "5",
"၆": "6",
"၇": "7",
"၈": "8",
"၉": "9",

"္": "",
"့": "",
"း": "",

"ာ": "a",
"ါ": "a",
"ေ": "e",
"ဲ": "e",
"ိ": "i",
"ီ": "i",
"ို": "o",
"ု": "u",
"ူ": "u",
"ေါင်": "aung",
"ော": "aw",
"ော်": "aw",
"ေါ": "aw",
"ေါ်": "aw",
"်": "at",
"က်": "et",
"ိုက်" : "aik",
"ောက်" : "auk",
"င်" : "in",
"ိုင်" : "aing",
"ောင်" : "aung",
"စ်" : "it",
"ည်" : "i",
"တ်" : "at",
"ိတ်" : "eik",
"ုတ်" : "ok",
"ွတ်" : "ut",
"ေတ်" : "it",
"ဒ်" : "d",
"ိုဒ်" : "ok",
"ုဒ်" : "ait",
"န်" : "an",
"ာန်" : "an",
"ိန်" : "ein",
"ုန်" : "on",
"ွန်" : "un",
"ပ်" : "at",
"ိပ်" : "eik",
"ုပ်" : "ok",
"ွပ်" : "ut",
"န်ုပ်" : "nub",
"မ်" : "an",
"ိမ်" : "ein",
"ုမ်" : "on",
"ွမ်" : "un",
"ယ်" : "e",
"ိုလ်" : "ol",
"ဉ်" : "in",
"ံ": "an",
"ိံ" : "ein",
"ုံ" : "on"
}
20 changes: 20 additions & 0 deletions Resources/rules/czech.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"Č": "C",
"Ď": "D",
"Ě": "E",
"Ň": "N",
"Ř": "R",
"Š": "S",
"Ť": "T",
"Ů": "U",
"Ž": "Z",
"č": "c",
"ď": "d",
"ě": "e",
"ň": "n",
"ř": "r",
"š": "s",
"ť": "t",
"ů": "u",
"ž": "z"
}
Loading

0 comments on commit 64af0ea

Please sign in to comment.