diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-13 15:01:19 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-13 15:01:19 +0200 |
| commit | d025854457b4c2d1c2285bd1c5e795edad79a749 (patch) | |
| tree | 1375d365a9b9c8981ef7e95708911cc4190dc2f0 /tests | |
| parent | 67e9313b9127b70b9d7dad6540853025ae90b4a5 (diff) | |
Make language non-optional with english as default
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/text/linebreak.png | bin | 18645 -> 18653 bytes | |||
| -rw-r--r-- | tests/typ/text/hyphenate.typ | 10 | ||||
| -rw-r--r-- | tests/typ/text/justify.typ | 1 | ||||
| -rw-r--r-- | tests/typ/text/knuth.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/microtype.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/quotes.typ | 4 |
6 files changed, 7 insertions, 12 deletions
diff --git a/tests/ref/text/linebreak.png b/tests/ref/text/linebreak.png Binary files differindex 43ac9c68..4a691d72 100644 --- a/tests/ref/text/linebreak.png +++ b/tests/ref/text/linebreak.png diff --git a/tests/typ/text/hyphenate.typ b/tests/typ/text/hyphenate.typ index 6bb87b13..4dc5255f 100644 --- a/tests/typ/text/hyphenate.typ +++ b/tests/typ/text/hyphenate.typ @@ -6,13 +6,13 @@ #set page(width: auto) #grid( columns: (70pt, 60pt), - text(lang: "en")[Warm welcomes to Typst.], + [Warm welcomes to Typst.], text(lang: "el")[διαμερίσματα. \ λατρευτός], ) --- // Test disabling hyphenation for short passages. -#set text(lang: "en", hyphenate: true) +#set text(hyphenate: true) Welcome to wonderful experiences. \ Welcome to `wonderful` experiences. \ @@ -20,14 +20,14 @@ Welcome to #text(hyphenate: false)[wonderful] experiences. \ Welcome to wonde#text(hyphenate: false)[rf]ul experiences. \ // Test enabling hyphenation for short passages. -#set text(lang: "en", hyphenate: false) +#set text(hyphenate: false) Welcome to wonderful experiences. \ Welcome to wo#text(hyphenate: true)[nd]erful experiences. \ --- // Hyphenate between shape runs. #set page(width: 80pt) -#set text(lang: "en", hyphenate: true) +#set text(hyphenate: true) It's a #emph[Tree]beard. --- @@ -46,5 +46,5 @@ It's a #emph[Tree]beard. // do that. The test passes if there's just one hyphenation between // "net" and "works". #set page(width: 70pt) -#set text(lang: "en", hyphenate: true) +#set text(hyphenate: true) #h(6pt) networks, the rest. diff --git a/tests/typ/text/justify.typ b/tests/typ/text/justify.typ index 3659f8ef..0cdef000 100644 --- a/tests/typ/text/justify.typ +++ b/tests/typ/text/justify.typ @@ -1,7 +1,6 @@ --- #set page(width: 180pt) -#set text(lang: "en") #set par( justify: true, indent: 14pt, diff --git a/tests/typ/text/knuth.typ b/tests/typ/text/knuth.typ index 33249ef4..5adeee91 100644 --- a/tests/typ/text/knuth.typ +++ b/tests/typ/text/knuth.typ @@ -1,6 +1,6 @@ #set page(width: auto, height: auto) #set par(leading: 4pt, justify: true) -#set text(lang: "en", family: "Latin Modern Roman") +#set text(family: "Latin Modern Roman") #let story = [ In olden times when wishing still helped one, there lived a king whose diff --git a/tests/typ/text/microtype.typ b/tests/typ/text/microtype.typ index d3b47f6d..991e0d0d 100644 --- a/tests/typ/text/microtype.typ +++ b/tests/typ/text/microtype.typ @@ -4,7 +4,7 @@ // Test hanging punctuation. #set page(width: 130pt, margins: 15pt) #set par(justify: true, linebreaks: "simple") -#set text(lang: "en", size: 9pt) +#set text(size: 9pt) #rect(fill: rgb(repr(teal) + "00"), width: 100%)[ This is a little bit of text that builds up to hang-ing hyphens and dash---es and then, you know, diff --git a/tests/typ/text/quotes.typ b/tests/typ/text/quotes.typ index 3f0649e8..b447258f 100644 --- a/tests/typ/text/quotes.typ +++ b/tests/typ/text/quotes.typ @@ -24,12 +24,10 @@ --- // Test single pair of quotes. -#set text(lang: "en") "" --- // Test sentences with numbers and apostrophes. -#set text(lang: "en") The 5'11" 'quick' brown fox jumps over the "lazy" dog's ear. He said "I'm a big fella." @@ -40,7 +38,6 @@ The 5\'11\" 'quick\' brown fox jumps over the \"lazy" dog\'s ear. --- // Test turning smart quotes off. -#set text(lang: "en") He's told some books contain questionable "example text". #set text(smart-quotes: false) @@ -48,7 +45,6 @@ He's told some books contain questionable "example text". --- // Test changing properties within text. -#set text(lang: "en") "She suddenly started speaking french: #text(lang: "fr")['Je suis une banane.']" Roman told me. Some people's thought on this would be #text(smart-quotes: false)["strange."] |
