Skip to content

Commit

Permalink
test(typesetters): Add test for U+00AD soft hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikhleia authored and Didier Willis committed Dec 13, 2023
1 parent 7a37745 commit 12de354
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 0 deletions.
106 changes: 106 additions & 0 deletions tests/feat-unicode-softhyphen.expected
@@ -0,0 +1,106 @@
Set paper size 297.6377985 419.5275636
Begin page
Mx 14.8819
My 28.5447
Set font Gentium Plus;10;400;;normal;;;LTR
T 47 82 85 72 80 w=26.4014 (Lorem)
Mx 44.6950
T 76 83 w=8.0078 (ip)
Mx 52.7028
T 86 88 80 w=17.1924 (sum)
Mx 69.8952
T 71 82 w=10.2295 (do)
Mx 80.1247
T 79 82 85 w=11.6992 (lor)
Mx 91.8239
T 86 76 87 w=10.0146 (sit)
Mx 101.8385
T 68 80 72 87 w=20.6836 (amet)
Mx 122.5221
T 17 w=2.2900 (.)
Mx 128.2239
T 47 82 85 72 80 w=26.4014 (Lorem)
Mx 158.0370
T 76 83 w=8.0078 (ip)
Mx 166.0448
T 86 88 80 w=17.1924 (sum)
Mx 183.2372
T 71 82 w=10.2295 (do)
Mx 193.4667
T 79 82 85 w=11.6992 (lor)
Mx 205.1659
T 86 76 87 w=10.0146 (sit)
Mx 215.1805
T 68 80 72 87 w=20.6836 (amet)
Mx 235.8641
T 17 w=2.2900 (.)
Mx 241.5659
T 47 82 85 72 80 w=26.4014 (Lorem)
Mx 271.3790
T 76 83 w=8.0078 (ip)
Mx 279.3868
T 16 w=3.3691 (-)
Mx 14.8819
My 40.5447
T 86 88 80 w=17.1924 (sum)
Mx 32.0743
T 71 82 w=10.2295 (do)
Mx 42.3038
T 79 82 85 w=11.6992 (lor)
Mx 54.0030
T 86 76 87 w=10.0146 (sit)
Mx 64.0176
T 68 80 72 87 w=20.6836 (amet)
Mx 84.7012
T 17 w=2.2900 (.)
Mx 88.8998
T 47 82 85 72 80 w=26.4014 (Lorem)
Mx 117.2097
T 76 83 w=8.0078 (ip)
Mx 125.2175
T 86 88 80 w=17.1924 (sum)
Mx 142.4099
T 71 82 w=10.2295 (do)
Mx 152.6394
T 79 82 85 w=11.6992 (lor)
Mx 164.3386
T 86 76 87 w=10.0146 (sit)
Mx 174.3532
T 68 80 72 87 w=20.6836 (amet)
Mx 195.0368
T 17 w=2.2900 (.)
Mx 199.2354
T 47 82 85 72 80 w=26.4014 (Lorem)
Mx 227.5453
T 76 83 w=8.0078 (ip)
Mx 235.5531
T 86 88 80 w=17.1924 (sum)
Mx 252.7455
T 71 82 w=10.2295 (do)
Mx 262.9750
T 79 82 85 w=11.6992 (lor)
Mx 274.6742
T 86 76 87 w=10.0146 (sit)
Mx 284.6889
T 68 80 72 87 w=20.6836 (amet)
Mx 305.3724
T 17 w=2.2900 (.)
Mx 14.8819
My 52.5447
T 47 82 85 72 80 w=26.4014 (Lorem)
Mx 43.9433
T 76 83 w=8.0078 (ip)
Mx 51.9511
T 86 88 80 w=17.1924 (sum)
Mx 69.1435
T 71 82 w=10.2295 (do)
Mx 79.3730
T 79 82 85 w=11.6992 (lor)
Mx 91.0722
T 86 76 87 w=10.0146 (sit)
Mx 101.0869
T 68 80 72 87 w=20.6836 (amet)
Mx 121.7705
T 17 w=2.2900 (.)
End page
Finish
16 changes: 16 additions & 0 deletions tests/feat-unicode-softhyphen.sil
@@ -0,0 +1,16 @@
\begin[papersize=a6]{document}
\nofolios
\neverindent
% Language with hyphenation patterns
% (so we are sure that the hyphenation comes from the soft hyphens)
\set[parameter=document.language, value=und]
% The text has soft hyphens U+00AD inside words.
Lorem ip­sum­do­lor­sit­amet.
Lorem ip­sum­do­lor­sit­amet.
Lorem ip­sum­do­lor­sit­amet.% Should be hyphenated here as "ip-sum"

\set[parameter=typesetter.softHyphen, value=false]
Lorem ip­sum­do­lor­sit­amet.
Lorem ip­sum­do­lor­sit­amet.
Lorem ip­sum­do­lor­sit­amet.
\end{document}

0 comments on commit 12de354

Please sign in to comment.