Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mavihq/persian
Browse files Browse the repository at this point in the history
  • Loading branch information
shk committed Jul 20, 2018
2 parents 4538063 + a3f6e63 commit 07dac0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@ persian.ToEnglishDigits("۱۲۳salam۴۵۶")
### .OnlyEnglishNumbers
Extracts only English digits from string.
```
persian.ToEnglishDigits("123salam۴۵۶")
persian.OnlyEnglishNumbers("123salam۴۵۶")
=> "123"
```

### .OnlyPersianNumbers
Extracts only Persian digits from string.
```
persian.ToEnglishDigits("123salam۴۵۶")
persian.OnlyPersianNumbers("123salam۴۵۶")
=> "۴۵۶"
```

### .SwitchToPersianKey
Converts English chars to their equivalent Persian char on keyboard.
```
persian.ToEnglishDigits("sghl o,fd ? o,fl llk,k")
persian.SwitchToPersianKey("sghl o,fd ? o,fl llk,k")
=> "سلام خوبی ؟ خوبم ممنون"
```

### .SwitchToEnglishKey
Converts Persian chars to their equivalent English char on keyboard.
```
persian.ToEnglishDigits("اثغ صاشفس عح ؟")
persian.SwitchToEnglishKey("اثغ صاشفس عح ؟")
=> "hey whats up ?"
```

Expand Down

0 comments on commit 07dac0a

Please sign in to comment.