Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(typesetters): Add test case for speaker changes in dialogues
- Loading branch information
Showing
2 changed files
with
224 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
Set paper size 419.5275636 595.275597 | ||
Begin page | ||
Mx 50.9764 | ||
My 50.7038 | ||
Set font Libertinus Serif;30;400;;normal;;;LTR | ||
Mx 15.8400 | ||
Mx 15.1200 | ||
Mx 10.9200 | ||
Mx 13.4100 | ||
Mx 23.7000 | ||
T 45 a=15.8400 80 a=15.1200 83 a=11.1600 70 a=13.4100 78 a=23.7000 (Lorem) | ||
Mx 138.1776 | ||
T 74 81 84 86 78 w=75.0300 (ipsum) | ||
Mx 221.4188 | ||
T 69 80 77 80 83 w=64.5000 (dolor) | ||
Mx 294.1300 | ||
T 84 74 85 w=29.3100 (sit) | ||
Mx 331.6512 | ||
T 66 78 70 85 w=60.3000 (amet) | ||
Mx 391.9512 | ||
T 13 w=6.6000 (,) | ||
Mx 20.9764 | ||
My 86.7038 | ||
Mx 12.8400 | ||
Mx 15.1200 | ||
Mx 16.2600 | ||
Mx 11.7000 | ||
Mx 13.6200 | ||
Mx 12.8400 | ||
Mx 9.4800 | ||
Mx 13.4100 | ||
Mx 9.4800 | ||
Mx 15.9300 | ||
Mx 11.1600 | ||
T 68 a=12.8400 80 a=15.1200 79 a=16.2600 84 a=11.7000 70 a=13.4100 68 a=12.8400 85 a=9.4800 70 a=13.4100 85 a=9.4800 86 a=15.9300 83 a=11.1600 (consectetur) | ||
Mx 177.2446 | ||
T 66 69 74 81 74 84 68 74 79 72 w=124.6500 (adipiscing) | ||
Mx 316.3229 | ||
T 70 77 74 85 w=38.9400 (elit) | ||
Mx 355.2629 | ||
T 15 w=6.6000 (.) | ||
Mx 376.2912 | ||
T 1754 w=22.2600 (—) | ||
Mx 20.9764 | ||
My 122.7038 | ||
Mx 14.5500 | ||
Mx 13.6200 | ||
Mx 15.1800 | ||
T 52 a=14.5500 70 a=13.4100 69 a=15.1800 (Sed) | ||
Mx 73.4026 | ||
T 79 80 79 w=47.6400 (non) | ||
Mx 130.1188 | ||
T 83 74 84 86 84 w=58.6200 (risus) | ||
Mx 188.7388 | ||
T 15 w=6.6000 (.) | ||
Mx 50.9764 | ||
My 158.7038 | ||
T 1754 w=22.2600 (—) | ||
Mx 82.2364 | ||
Mx 15.8400 | ||
Mx 15.1200 | ||
Mx 10.9200 | ||
Mx 13.4100 | ||
Mx 23.7000 | ||
T 45 a=15.8400 80 a=15.1200 83 a=11.1600 70 a=13.4100 78 a=23.7000 (Lorem) | ||
Mx 184.0546 | ||
T 74 81 84 86 78 w=75.0300 (ipsum) | ||
Mx 281.9129 | ||
T 69 80 77 80 83 w=64.5000 (dolor) | ||
Mx 369.2412 | ||
T 84 74 85 w=29.3100 (sit) | ||
Mx 20.9764 | ||
My 194.7038 | ||
T 66 78 70 85 w=60.3000 (amet) | ||
Mx 81.2764 | ||
T 13 w=6.6000 (,) | ||
Mx 109.9688 | ||
Mx 12.8400 | ||
Mx 15.1200 | ||
Mx 16.2600 | ||
Mx 11.7000 | ||
Mx 13.6200 | ||
Mx 12.8400 | ||
Mx 9.4800 | ||
Mx 13.4100 | ||
Mx 9.4800 | ||
Mx 15.9300 | ||
Mx 11.1600 | ||
T 68 a=12.8400 80 a=15.1200 79 a=16.2600 84 a=11.7000 70 a=13.4100 68 a=12.8400 85 a=9.4800 70 a=13.4100 85 a=9.4800 86 a=15.9300 83 a=11.1600 (consectetur) | ||
Mx 273.9012 | ||
T 66 69 74 81 74 84 68 74 79 72 w=124.6500 (adipiscing) | ||
Mx 20.9764 | ||
My 230.7038 | ||
T 70 77 74 85 w=38.9400 (elit) | ||
Mx 59.9164 | ||
T 15 w=6.6000 (.) | ||
Mx 86.7653 | ||
T 1754 w=22.2600 (—) | ||
Mx 129.2743 | ||
Mx 14.5500 | ||
Mx 13.6200 | ||
Mx 15.1800 | ||
T 52 a=14.5500 70 a=13.4100 69 a=15.1800 (Sed) | ||
Mx 192.8733 | ||
T 79 80 79 w=47.6400 (non) | ||
Mx 260.7622 | ||
T 83 74 84 86 84 w=58.6200 (risus) | ||
Mx 319.3822 | ||
T 15 w=6.6000 (.) | ||
Mx 346.2312 | ||
T 52 86 84 w=42.1800 (Sus) | ||
Mx 388.4112 | ||
T 14 w=10.1400 (-) | ||
Mx 20.9764 | ||
My 266.7038 | ||
Mx 15.7800 | ||
Mx 13.4100 | ||
Mx 16.2600 | ||
Mx 15.1800 | ||
Mx 8.1300 | ||
Mx 11.7000 | ||
Mx 11.7000 | ||
Mx 13.4100 | ||
T 81 a=15.5700 70 a=13.4100 79 a=16.2600 69 a=15.1800 74 a=8.1300 84 a=11.7000 84 a=11.7000 70 a=13.4100 (pendisse) | ||
Mx 135.5784 | ||
Mx 7.9200 | ||
Mx 13.6200 | ||
Mx 12.8400 | ||
Mx 9.4800 | ||
Mx 15.9300 | ||
Mx 11.7000 | ||
T 77 a=7.9200 70 a=13.4100 68 a=12.8400 85 a=9.4800 86 a=15.9300 84 a=11.7000 (lectus) | ||
T 15 w=6.6000 (.) | ||
Mx 222.7003 | ||
Mx 8.6400 | ||
T 9 a=8.9400 (() | ||
Mx 20.5500 | ||
Mx 15.3300 | ||
Mx 15.3300 | ||
Mx 15.1800 | ||
T 40 a=20.5500 80 a=15.1200 80 a=15.1200 69 a=15.1800 (Good) | ||
T 15 w=6.6000 (.) | ||
Mx 304.3303 | ||
T 10 w=8.9400 ()) | ||
Mx 50.9764 | ||
My 302.7038 | ||
T 1754 w=22.2600 (—) | ||
Mx 82.2364 | ||
Mx 14.5500 | ||
Mx 15.9300 | ||
Mx 10.9200 | ||
Mx 13.1100 | ||
T 52 a=14.5500 86 a=15.9300 83 a=11.1600 70 a=13.4100 (Sure) | ||
T 15 w=6.6000 (.) | ||
Mx 50.9764 | ||
My 338.7038 | ||
T 1754 w=22.2600 (—) | ||
Mx 92.6076 | ||
Mx 15.8400 | ||
Mx 15.1200 | ||
Mx 10.9200 | ||
Mx 13.4100 | ||
Mx 23.7000 | ||
T 45 a=15.8400 80 a=15.1200 83 a=11.1600 70 a=13.4100 78 a=23.7000 (Lorem) | ||
Mx 190.9688 | ||
T 74 81 84 86 78 w=75.0300 (ipsum) | ||
Mx 285.3700 | ||
T 69 80 77 80 83 w=64.5000 (dolor) | ||
Mx 369.2412 | ||
T 84 74 85 w=29.3100 (sit) | ||
Mx 20.9764 | ||
My 374.7038 | ||
T 66 78 70 85 w=60.3000 (amet) | ||
Mx 81.2764 | ||
T 13 w=6.6000 (,) | ||
Mx 109.9688 | ||
Mx 12.8400 | ||
Mx 15.1200 | ||
Mx 16.2600 | ||
Mx 11.7000 | ||
Mx 13.6200 | ||
Mx 12.8400 | ||
Mx 9.4800 | ||
Mx 13.4100 | ||
Mx 9.4800 | ||
Mx 15.9300 | ||
Mx 11.1600 | ||
T 68 a=12.8400 80 a=15.1200 79 a=16.2600 84 a=11.7000 70 a=13.4100 68 a=12.8400 85 a=9.4800 70 a=13.4100 85 a=9.4800 86 a=15.9300 83 a=11.1600 (consectetur) | ||
Mx 273.9012 | ||
T 66 69 74 81 74 84 68 74 79 72 w=124.6500 (adipiscing) | ||
Mx 20.9764 | ||
My 410.7038 | ||
T 70 77 74 85 w=38.9400 (elit) | ||
Mx 59.9164 | ||
T 15 w=6.6000 (.) | ||
Mx 75.6109 | ||
T 9 w=8.9400 (() | ||
Mx 84.5509 | ||
T 35 66 69 w=46.5300 (Bad) | ||
Mx 131.0809 | ||
T 15 w=6.6000 (.) | ||
Mx 137.6809 | ||
T 10 w=8.9400 ()) | ||
End page | ||
Finish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
\begin[papersize=a5]{document} | ||
\nofolios | ||
\font[size=30pt, family=Libertinus Serif] | ||
\set[parameter=document.parindent, value=1em] | ||
\set[parameter=linebreak.emergencyStretch, value=3em] | ||
\set[parameter=typesetter.dialogue, value=true] | ||
% The second em-dash in some sentences is here to check it's not affected. | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. — Sed non risus. | ||
|
||
— Lorem ipsum dolor sit amet, consectetur adipiscing elit. — Sed non risus. Suspendisse lectus. (Good.) | ||
|
||
— Sure. | ||
|
||
\set[parameter=typesetter.dialogue, value=false] | ||
|
||
— Lorem ipsum dolor sit amet, consectetur adipiscing elit. (Bad.) | ||
|
||
\end{document} |