diff options
-rw-r--r-- | tests/writer.context | 27 | ||||
-rw-r--r-- | tests/writers-lang-and-dir.context | 14 |
2 files changed, 18 insertions, 23 deletions
diff --git a/tests/writer.context b/tests/writer.context index 1f8c3aff7..04df66178 100644 --- a/tests/writer.context +++ b/tests/writer.context @@ -12,11 +12,13 @@ \setuptagging[state=start] % use microtypography -\definefontfeature[default][default][protrusion=quality,expansion=quality,onum=yes,pnum=yes] -\definefontfeature[smallcaps][smallcaps][protrusion=quality,expansion=quality,onum=yes,pnum=yes] +\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes] +\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes] \setupalign[hz,hanging] +\setupitaliccorrection[global, always] \setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted -\setupbodyfont[mainfont] +\usemodule[simplefonts] +\setmainfontfallback[DejaVu Serif][range={greekandcoptic, greekextended}, force=yes, rscale=auto] \setupwhitespace[medium] \setuphead[chapter] [style=\tfd,header=empty] @@ -40,19 +42,16 @@ \setupthinrules[width=15em] % width of horizontal rules -\setuphead[title][ - style={\tfd\raggedcenter}, - before={\startalignment[middle]}, - after={ - \smallskip - {\tfa John MacFarlane\crlf Anonymous} - \smallskip - {\tfa July 17, 2006} - \bigskip\stopalignment}] - \starttext -\title{Pandoc Test Suite} +\startalignment[middle] + {\tfd Pandoc Test Suite} + \smallskip + {\tfa John MacFarlane\crlf Anonymous} + \smallskip + {\tfa July 17, 2006} + \bigskip +\stopalignment This is a set of tests for pandoc. Most of them are adapted from John Gruber's markdown test suite. diff --git a/tests/writers-lang-and-dir.context b/tests/writers-lang-and-dir.context index a324c13f5..66dab9ead 100644 --- a/tests/writers-lang-and-dir.context +++ b/tests/writers-lang-and-dir.context @@ -10,11 +10,13 @@ \setuptagging[state=start] % use microtypography -\definefontfeature[default][default][protrusion=quality,expansion=quality,onum=yes,pnum=yes] -\definefontfeature[smallcaps][smallcaps][protrusion=quality,expansion=quality,onum=yes,pnum=yes] +\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes] +\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes] \setupalign[hz,hanging] +\setupitaliccorrection[global, always] \setupbodyfontenvironment[default][em=italic] % use italic as em, not slanted -\setupbodyfont[mainfont] +\usemodule[simplefonts] +\setmainfontfallback[DejaVu Serif][range={greekandcoptic, greekextended}, force=yes, rscale=auto] \setupwhitespace[medium] \setuphead[chapter] [style=\tfd,header=empty] @@ -38,12 +40,6 @@ \setupthinrules[width=15em] % width of horizontal rules -\setuphead[title][ - style={\tfd\raggedcenter}, - before={\startalignment[middle]}, - after={ - \bigskip\stopalignment}] - \starttext |