summaryrefslogtreecommitdiff
path: root/tests/layouts
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-10-11 17:53:28 +0200
committerLaurenz <laurmaedje@gmail.com>2019-10-11 17:53:28 +0200
commitc0e4fd55e6fa738cfc5dcc851d0fc3ee2d0f2cd2 (patch)
treee5531e605d0ab9e06dc950b4cd9b7a8caa116d34 /tests/layouts
parent8f788f9a4f5e970bbe6147987b711470d57aca8d (diff)
Create test runner which renders layouts to images 🗺
Diffstat (limited to 'tests/layouts')
-rw-r--r--tests/layouts/shakespeare-right.tps88
-rw-r--r--tests/layouts/shakespeare.tps86
-rw-r--r--tests/layouts/styles.tps13
3 files changed, 187 insertions, 0 deletions
diff --git a/tests/layouts/shakespeare-right.tps b/tests/layouts/shakespeare-right.tps
new file mode 100644
index 00000000..db670fdf
--- /dev/null
+++ b/tests/layouts/shakespeare-right.tps
@@ -0,0 +1,88 @@
+[align: right][
+ [bold][Scene 5: _The Tower of London_]
+
+ [italic][Enter Mortimer, brought in a chair, and Gaolers.]
+
+ *Mortimer.* Kind keepers of my weak decaying age,
+ Let dying Mortimer here rest himself.
+ Even like a man new haled from the rack,
+ So fare my limbs with long imprisonment;
+ And these grey locks, the pursuivants of death,
+ Nestor-like aged in an age of care,
+ Argue the end of Edmund Mortimer.
+ These eyes, like lamps whose wasting oil is spent,
+ Wax dim, as drawing to their exigent;
+ Weak shoulders, overborne with burdening grief,
+ And pithless arms, like to a withered vine
+ That droops his sapless branches to the ground.
+ Yet are these feet, whose strengthless stay is numb,
+ Unable to support this lump of clay,
+ Swift-winged with desire to get a grave,
+ As witting I no other comfort have.
+ But tell me, keeper, will my nephew come?
+
+ *First Keeper.* Richard Plantagenet, my lord, will come.
+ We sent unto the Temple, unto his chamber;
+ And answer was return'd that he will come.
+
+ *Mortimer.* Enough; my soul shall then be satisfied.
+ Poor gentleman! his wrong doth equal mine.
+ Since Henry Monmouth first began to reign,
+ Before whose glory I was great in arms,
+ This loathsome sequestration have I had;
+ And even since then hath Richard been obscur'd,
+ Depriv'd of honour and inheritance.
+ But now the arbitrator of despairs,
+ Just Death, kind umpire of men's miseries,
+ With sweet enlargement doth dismiss me hence.
+ I would his troubles likewise were expir'd,
+ That so he might recover what was lost.
+
+
+ [italic][Enter Richard Plantagenet]
+
+ *First Keeper.* My lord, your loving nephew now is come.
+
+ *Mortimer.* Richard Plantagenet, my friend, is he come?
+
+ *Plantagenet.* Ay, noble uncle, thus ignobly us'd,
+ Your nephew, late despised Richard, comes.
+
+ *Mortimer.* Direct mine arms I may embrace his neck
+ And in his bosom spend my latter gasp.
+ O, tell me when my lips do touch his cheeks,
+ That I may kindly give one fainting kiss.
+ And now declare, sweet stem from York's great stock,
+ Why didst thou say of late thou wert despis'd?
+
+ *Plantagenet.* First, lean thine aged back against mine arm;
+ And, in that ease, I'll tell thee my disease.
+ This day, in argument upon a case,
+ Some words there grew 'twixt Somerset and me;
+ Among which terms he us'd his lavish tongue
+ And did upbraid me with my father's death;
+ Which obloquy set bars before my tongue,
+ Else with the like I had requited him.
+ Therefore, good uncle, for my father's sake,
+ In honour of a true Plantagenet,
+ And for alliance sake, declare the cause
+ My father, Earl of Cambridge, lost his head.
+
+ *Mortimer.* That cause, fair nephew, that imprison'd me
+ And hath detain'd me all my flow'ring youth
+ Within a loathsome dungeon, there to pine,
+ Was cursed instrument of his decease.
+
+ *Plantagenet.* Discover more at large what cause that was,
+ For I am ignorant and cannot guess.
+
+ *Mortimer.* I will, if that my fading breath permit
+ And death approach not ere my tale be done.
+ Henry the Fourth, grandfather to this king,
+ Depos'd his nephew Richard, Edward's son,
+ The first-begotten and the lawful heir
+ Of Edward king, the third of that descent;
+ During whose reign the Percies of the north,
+ Finding his usurpation most unjust,
+ Endeavour'd my advancement to the throne ...
+]
diff --git a/tests/layouts/shakespeare.tps b/tests/layouts/shakespeare.tps
new file mode 100644
index 00000000..e0839302
--- /dev/null
+++ b/tests/layouts/shakespeare.tps
@@ -0,0 +1,86 @@
+[bold][Scene 5: _The Tower of London_]
+
+[italic][Enter Mortimer, brought in a chair, and Gaolers.]
+
+*Mortimer.* Kind keepers of my weak decaying age,
+ Let dying Mortimer here rest himself.
+ Even like a man new haled from the rack,
+ So fare my limbs with long imprisonment;
+ And these grey locks, the pursuivants of death,
+ Nestor-like aged in an age of care,
+ Argue the end of Edmund Mortimer.
+ These eyes, like lamps whose wasting oil is spent,
+ Wax dim, as drawing to their exigent;
+ Weak shoulders, overborne with burdening grief,
+ And pithless arms, like to a withered vine
+ That droops his sapless branches to the ground.
+ Yet are these feet, whose strengthless stay is numb,
+ Unable to support this lump of clay,
+ Swift-winged with desire to get a grave,
+ As witting I no other comfort have.
+ But tell me, keeper, will my nephew come?
+
+*First Keeper.* Richard Plantagenet, my lord, will come.
+ We sent unto the Temple, unto his chamber;
+ And answer was return'd that he will come.
+
+*Mortimer.* Enough; my soul shall then be satisfied.
+ Poor gentleman! his wrong doth equal mine.
+ Since Henry Monmouth first began to reign,
+ Before whose glory I was great in arms,
+ This loathsome sequestration have I had;
+ And even since then hath Richard been obscur'd,
+ Depriv'd of honour and inheritance.
+ But now the arbitrator of despairs,
+ Just Death, kind umpire of men's miseries,
+ With sweet enlargement doth dismiss me hence.
+ I would his troubles likewise were expir'd,
+ That so he might recover what was lost.
+
+
+[italic][Enter Richard Plantagenet]
+
+*First Keeper.* My lord, your loving nephew now is come.
+
+*Mortimer.* Richard Plantagenet, my friend, is he come?
+
+*Plantagenet.* Ay, noble uncle, thus ignobly us'd,
+ Your nephew, late despised Richard, comes.
+
+*Mortimer.* Direct mine arms I may embrace his neck
+ And in his bosom spend my latter gasp.
+ O, tell me when my lips do touch his cheeks,
+ That I may kindly give one fainting kiss.
+ And now declare, sweet stem from York's great stock,
+ Why didst thou say of late thou wert despis'd?
+
+*Plantagenet.* First, lean thine aged back against mine arm;
+ And, in that ease, I'll tell thee my disease.
+ This day, in argument upon a case,
+ Some words there grew 'twixt Somerset and me;
+ Among which terms he us'd his lavish tongue
+ And did upbraid me with my father's death;
+ Which obloquy set bars before my tongue,
+ Else with the like I had requited him.
+ Therefore, good uncle, for my father's sake,
+ In honour of a true Plantagenet,
+ And for alliance sake, declare the cause
+ My father, Earl of Cambridge, lost his head.
+
+*Mortimer.* That cause, fair nephew, that imprison'd me
+ And hath detain'd me all my flow'ring youth
+ Within a loathsome dungeon, there to pine,
+ Was cursed instrument of his decease.
+
+*Plantagenet.* Discover more at large what cause that was,
+ For I am ignorant and cannot guess.
+
+*Mortimer.* I will, if that my fading breath permit
+ And death approach not ere my tale be done.
+ Henry the Fourth, grandfather to this king,
+ Depos'd his nephew Richard, Edward's son,
+ The first-begotten and the lawful heir
+ Of Edward king, the third of that descent;
+ During whose reign the Percies of the north,
+ Finding his usurpation most unjust,
+ Endeavour'd my advancement to the throne ...
diff --git a/tests/layouts/styles.tps b/tests/layouts/styles.tps
new file mode 100644
index 00000000..790d2b38
--- /dev/null
+++ b/tests/layouts/styles.tps
@@ -0,0 +1,13 @@
+_Multiline:_
+Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
+eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
+voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
+clita kasd gubergren, no sea takimata sanctus est.
+
+_Emoji:_ Hello World! 🌍
+
+_Styles:_ This is made *bold*, that _italic_ and this one `monospace` using the
+built-in syntax!
+
+_Styles with functions:_ This [bold][word] is made bold and [italic][that] is italic
+using the standard library functions [mono][bold] and `italic`!