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
$engine->splitWord('hyphenation'); // ['hy', 'phena', 'ti', 'on'] - same, both use TeX
93
+
```
94
+
95
+
> **Tip:**`splitWord()` always uses the TeX hyphenator (exact). `splitSyllables()` may use the heuristic split (approximate) in `composite`/`heuristic` modes. For syllable *counts* both are correct.
96
+
97
+
> **Note:**`addHyphenations()` adds overrides to the TeX hyphenator. These affect `splitWord()` but NOT `splitSyllables()` in `composite`/`heuristic` modes (the heuristic counter doesn't see them).
98
+
67
99
## Demo
68
100
69
101
Run the interactive demo to see ReadSight in action:
> **`splitSyllables` vs `splitWord`:**`splitSyllables` may use the heuristic ≈approximate split (depends on the language's `syllableMode`). `splitWord` always uses the TeX hyphenator for exact hyphenation points. Syllable *counts* are accurate in all modes. See [Syllable Counting Modes](#syllable-counting-modes).
217
+
183
218
#### Formula Methods
184
219
185
220
```php
@@ -232,10 +267,11 @@ $engine = new Engine(
232
267
cacheDir: '/custom/cache',
233
268
);
234
269
235
-
// Add custom hyphenation rules
270
+
// Add custom hyphenation rules (affects splitWord, not splitSyllables in composite/heuristic modes)
0 commit comments