diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-28 20:38:21 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-28 20:38:21 +0100 |
| commit | b4efae08834a3a950387f01aebaa9e832acd9423 (patch) | |
| tree | bf311243f625a6da5660ff99ebc2764079f502cf /tests/layouts | |
| parent | 17082389ae90438682978c825ec620b544d73b65 (diff) | |
Remove bad tests and tweak numbers for better debugging ๐งช
Diffstat (limited to 'tests/layouts')
| -rw-r--r-- | tests/layouts/align.typ | 33 | ||||
| -rw-r--r-- | tests/layouts/lines.typ | 14 | ||||
| -rw-r--r-- | tests/layouts/pagebreaks.typ | 12 | ||||
| -rw-r--r-- | tests/layouts/shakespeare.tpl | 86 | ||||
| -rw-r--r-- | tests/layouts/shakespeare.typ | 3 | ||||
| -rw-r--r-- | tests/layouts/styles.typ | 24 |
6 files changed, 14 insertions, 158 deletions
diff --git a/tests/layouts/align.typ b/tests/layouts/align.typ deleted file mode 100644 index 9d6ab003..00000000 --- a/tests/layouts/align.typ +++ /dev/null @@ -1,33 +0,0 @@ -[page.size: width=150pt, height=215pt] -[page.margins: 0pt] - -// ---------------------------------- // -// Without newline in between. -[align: left][Left: {lorem:20}] -[align: right][Right: {lorem:20}] - -// Over three pages. -[align: center][Center: {lorem:80}] - -// Over multiple pages after the pervious 3-page run. -[align: left][Left: {lorem:80}] - -[page.break] - -// ---------------------------------- // -// Context-modifying align. -[align: right] - -Context Right: {lorem:10} - -[align: left][In-between Left] - -Right Again: {lorem:10} - -// Reset context-modifier. -[align: left] - -[page.break] - -// ---------------------------------- // -All in one line: {lorem:25} [align: right] {lorem:50} [align: left] {lorem:15} diff --git a/tests/layouts/lines.typ b/tests/layouts/lines.typ new file mode 100644 index 00000000..705de638 --- /dev/null +++ b/tests/layouts/lines.typ @@ -0,0 +1,14 @@ +[page.size: height=5cm] + +Line. + +[box][ + Lines with [box][two] [box][boxes]. + + Lines with two boxes. +] +[box][ + Lines without two boxes. + + Lines without two boxes. +] diff --git a/tests/layouts/pagebreaks.typ b/tests/layouts/pagebreaks.typ deleted file mode 100644 index 4d3c1843..00000000 --- a/tests/layouts/pagebreaks.typ +++ /dev/null @@ -1,12 +0,0 @@ -[page.size: width=150pt, height=200pt] -[page.margins: 0pt] - -{lorem:100} - -[page.break] -[page.break] - -{lorem:20} -[page.break] - -{lorem:150} diff --git a/tests/layouts/shakespeare.tpl b/tests/layouts/shakespeare.tpl deleted file mode 100644 index e0839302..00000000 --- a/tests/layouts/shakespeare.tpl +++ /dev/null @@ -1,86 +0,0 @@ -[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.typ b/tests/layouts/shakespeare.typ deleted file mode 100644 index 8cffb930..00000000 --- a/tests/layouts/shakespeare.typ +++ /dev/null @@ -1,3 +0,0 @@ -[align: center][{include:shakespeare.tpl}] [page.break] -[align: left][{include:shakespeare.tpl}] [page.break] -[align: right][{include:shakespeare.tpl}] diff --git a/tests/layouts/styles.typ b/tests/layouts/styles.typ deleted file mode 100644 index 63745026..00000000 --- a/tests/layouts/styles.typ +++ /dev/null @@ -1,24 +0,0 @@ -[page.size: width=250pt, height=300pt] -[page.margins: 10pt] - -_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] italic -using the standard library functions `bold` and `italic`! - -[italic] -Styles can also be changed through context modification. -This works basically in the same way as the built-in syntax. -[italic] - -This is not italic anymore. ๐ - -[box][ - [italic] - Styles are scoped by boxes. -] - -Outside of the box: No effect. |
