Skip to content

Commit

Permalink
test(packages): Add test showing strikethrough and underline spanning…
Browse files Browse the repository at this point in the history
… multiple lines
  • Loading branch information
Omikhleia authored and Didier Willis committed Jan 30, 2024
1 parent 1dbcbc0 commit 6c40bfe
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/feat-liner-spanning.expected
@@ -0,0 +1,29 @@
Set paper size 297.6377985 419.5275636
Begin page
Mx 14.8819
My 31.5721
Set font Gentium Plus;14;400;;normal;;;LTR
T 86 87 85 76 78 72 w=32.8604 (strike)
Mx 52.5440
T 86 87 85 76 78 72 w=32.8604 (strike)
Mx 90.2061
T 86 87 85 76 78 72 w=32.8604 (strike)
Mx 127.8682
T 86 87 85 76 78 72 w=32.8604 (strike)
Mx 165.5303
T 88 81 71 72 85 79 76 81 72 w=56.2119 (underline)
Mx 226.5440
T 88 81 71 72 85 79 76 81 72 w=56.2119 (underline)
Draw line 165.5303 33.2811 117.2256 0.6836
Draw line 14.8819 27.8123 267.8740 0.6836
Mx 14.8819
My 48.3721
T 88 81 71 72 85 79 76 81 72 w=56.2119 (underline)
Draw line 14.8819 50.0811 56.2119 0.6836
Mx 74.2034
T 86 87 85 76 78 72 w=32.8604 (strike)
Mx 107.0638
T 17 w=3.2061 (.)
Draw line 14.8819 44.6123 95.3879 0.6836
End page
Finish
13 changes: 13 additions & 0 deletions tests/feat-liner-spanning.sil
@@ -0,0 +1,13 @@
\begin[papersize=a6]{document}
\neverindent
\nofolios
\set[parameter=shaper.spaceenlargementfactor, value=1]
\script[src=packages/rules]
\font[size=14pt]
% strikethrough and underline can span multiple lines
% Here line-breaking (paragraphing) occurs in the underlined sequence.
\strikethrough{strike strike strike strike
\underline{underline underline underline} strike.}

\end{document}

0 comments on commit 6c40bfe

Please sign in to comment.