Update readme format

This commit is contained in:
Patrick Elmer 2023-03-12 16:20:48 +09:00
parent 4f3be74602
commit d80081c214

View File

@ -122,13 +122,28 @@ applied = apply(
This would create the output This would create the output
```python ```python
[ ['paprebup']
'paprebup'
]
``` ```
Categories can also be combined with other characters to form groups. These need to be written inside curly brackets (`{` and `}`) and separated by a comma (`,`) or vertical line (`|`). Categories can also be combined with other characters to form groups. These need to be written inside curly brackets (`{` and `}`) and separated by a comma (`,`) or vertical line (`|`).
`apply(['a>o/{#,C}_'], ['aha', 'pana'], categories={'C': 'mnptkswlj'})` results in `['oha', 'pona']` ```python
apply(['a>o/{#,C}_'], ['aha', 'pana'], categories={'C': 'mnptkswlj'})
```
Environments can also include several characters. `apply('o>u/cVc_nut#', 'coconut', categories={'V': 'aeiou'})` results in `'cocunut'`. results in
```python
['oha', 'pona']
```
Environments can also include several characters.
```python
apply('o>u/cVc_nut#', 'coconut', categories={'V': 'aeiou'})
```
results in
```python
'cocunut'
```