Skip to content

Commit 6213a9e

Browse files
Update README.md (#70)
1 parent a981806 commit 6213a9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ If you're using Anaconda you can use
4848

4949
## Usage
5050

51-
```
51+
```python
5252
import arabic_reshaper
5353

5454
text_to_be_reshaped = 'اللغة العربية رائعة'
@@ -62,7 +62,7 @@ the text for sure.
6262

6363
For this example to work you need to run `pip install --upgrade arabic-reshaper python-bidi pillow`
6464

65-
```
65+
```python
6666

6767
import arabic_reshaper
6868

@@ -143,7 +143,7 @@ Instead of directly using `arabic_reshaper.reshape` function, define an
143143
instance of `arabic_reshaper.ArabicReshaper`, and pass your config dictionary
144144
to its constructor's `configuration` parameter like this:
145145

146-
```
146+
```python
147147
from arabic_reshaper import ArabicReshaper
148148
configuration = {
149149
'delete_harakat': False,
@@ -163,7 +163,7 @@ then save it somewhere in your project, and then you can tell the reshaper
163163
to use your new config file, just pass the path to your config file to its
164164
constructor's `configuration_file` parameter like this:
165165

166-
```
166+
```python
167167
from arabic_reshaper import ArabicReshaper
168168
reshaper = ArabicReshaper(configuration_file='/path/to/your/config.ini')
169169
text_to_be_reshaped = 'سعر المنتج ١٥٠ ر' + 'يال' # had to split the string for display

0 commit comments

Comments
 (0)