We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e649d8 commit af51b33Copy full SHA for af51b33
src/Renderer/Html/LineRenderer/Word.php
@@ -15,7 +15,12 @@ class Word extends AbstractLineRenderer
15
*/
16
public function render(MbString $mbFrom, MbString $mbTo): LineRendererInterface
17
{
18
- static $punctuations = ' $,.:;!?\'"()\[\]{}%@<=>_+\-*\/~\\\\|';
+ static $punctuations = (
19
+ ' $,.:;!?\'"()\[\]{}%@<=>_+\-*\/~\\\\|' .
20
+ ' $,.:;!?’"()[]{}%@<=>_+-*/~\|' .
21
+ '「」『』〈〉《》【】())(‘’“”' .
22
+ '.‧・・•·'
23
+ );
24
25
$fromWords = $mbFrom->toArraySplit("/([{$punctuations}])/uS", -1, \PREG_SPLIT_DELIM_CAPTURE);
26
$toWords = $mbTo->toArraySplit("/([{$punctuations}])/uS", -1, \PREG_SPLIT_DELIM_CAPTURE);
0 commit comments