File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ If you're using Anaconda you can use
4848
4949## Usage
5050
51- ```
51+ ``` python
5252import arabic_reshaper
5353
5454text_to_be_reshaped = ' اللغة العربية رائعة'
@@ -62,7 +62,7 @@ the text for sure.
6262
6363For this example to work you need to run ` pip install --upgrade arabic-reshaper python-bidi pillow `
6464
65- ```
65+ ``` python
6666
6767import arabic_reshaper
6868
@@ -143,7 +143,7 @@ Instead of directly using `arabic_reshaper.reshape` function, define an
143143instance of ` arabic_reshaper.ArabicReshaper ` , and pass your config dictionary
144144to its constructor's ` configuration ` parameter like this:
145145
146- ```
146+ ``` python
147147from arabic_reshaper import ArabicReshaper
148148configuration = {
149149 ' delete_harakat' : False ,
@@ -163,7 +163,7 @@ then save it somewhere in your project, and then you can tell the reshaper
163163to use your new config file, just pass the path to your config file to its
164164constructor's ` configuration_file ` parameter like this:
165165
166- ```
166+ ``` python
167167from arabic_reshaper import ArabicReshaper
168168reshaper = ArabicReshaper(configuration_file = ' /path/to/your/config.ini' )
169169text_to_be_reshaped = ' سعر المنتج ١٥٠ ر' + ' يال' # had to split the string for display
You can’t perform that action at this time.
0 commit comments