You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rs.split_word("hyphenation") # ['hy', 'phen', 'a', 'tion'] — same, both use TeX
95
+
```
96
+
97
+
> **Tip:**`split_word()` always uses the TeX hyphenator (exact). `split_syllables()` may use heuristic (approximate). For syllable *counts* both are correct.
98
+
99
+
> **Note:**`add_hyphenations()` adds overrides to the TeX hyphenator. These affect `split_word()` but NOT `split_syllables()` in `composite`/`heuristic` modes (the heuristic counter doesn't see them).
100
+
70
101
## Demo
71
102
72
103
Run the interactive demo to see ReadSightPy in action:
> **split_syllables vs split_word:**`split_syllables` may use heuristic ≈approximate split (depends on language's `syllableMode`). `split_word` always uses the TeX hyphenator for exact hyphenation points. Syllable *counts* are accurate in all modes. See [Syllable Counting Modes](#syllable-counting-modes).
213
+
181
214
#### Formula Methods
182
215
183
216
```python
@@ -233,10 +266,11 @@ rs = ReadSight(
233
266
cache_dir="/custom/cache",
234
267
)
235
268
236
-
# Add custom hyphenation rules
269
+
# Add custom hyphenation rules (affects split_word, not split_syllables)
0 commit comments