pandoc uses the "lang" property

This commit is contained in:
Rhiannon Morris 2021-04-29 19:37:01 +02:00
parent 333f23f55c
commit c8b811a733
10 changed files with 10 additions and 10 deletions

View File

@ -12,7 +12,7 @@ import qualified Data.Map as Map
main :: IO ()
main = toJSONFilter filter where
filter p@(Pandoc (Meta m) _) = do
lang' <- toLang $ Map.lookup "lang" m
lang' <- toLang $ Map.lookup "conlang" m
let ?lang = lang'
fmap (walk makeEbnf .
walk (concatMap makeFigures) .

View File

@ -3,7 +3,7 @@ title: List of abbreviations
hidetoc: true
backname: Lántas
backlink: ../laantas
lang: lántas
conlang: lántas
...
:::threecol

View File

@ -2,7 +2,7 @@
title: Lántas examples
backname: Lántas
backlink: .
lang: lántas
conlang: lántas
...
# The North Wind and the Sun

View File

@ -1,7 +1,7 @@
---
title: Lántas
toc: false
lang: lántas
conlang: lántas
...
:::splash

View File

@ -2,7 +2,7 @@
title: Lántas nouns
backname: Lántas
backlink: .
lang: lántas
conlang: lántas
...
Lántas is unusual (as far as I know) in that words which are often considered

View File

@ -3,7 +3,7 @@ title: Lántas numbers
hidetoc: true
backname: Lántas
backlink: .
lang: lántas
conlang: lántas
...
---- ------------------ ------ ------------------

View File

@ -2,7 +2,7 @@
title: Lántas phonology
backname: Lántas
backlink: .
lang: lántas
conlang: lántas
...
# Vowels

View File

@ -2,7 +2,7 @@
title: Lántas pronouns, demonstratives, etc
backname: Lántas
backlink: .
lang: lántas
conlang: lántas
...
Pronouns are inflected for the same cases as other nouns, though their forms

View File

@ -2,7 +2,7 @@
title: Lántas verbs
backname: Lántas
backlink: ../laantas
lang: lántas
conlang: lántas
...

View File

@ -2,7 +2,7 @@
title: Lántas writing
backname: Lántas
backlink: .
lang: lántas
conlang: lántas
...
Lántas is written with a simple alphasyllabary, where most glyphs consist of