LaTeX reader: support \k
ogonek accent.
This commit is contained in:
parent
350c282f20
commit
146a10780e
1 changed files with 5 additions and 0 deletions
|
@ -961,6 +961,10 @@ hacek 'Z' = "Ž"
|
|||
hacek 'z' = "ž"
|
||||
hacek c = [c]
|
||||
|
||||
ogonek :: Char -> String
|
||||
ogonek 'a' = "ą"
|
||||
ogonek c = [c]
|
||||
|
||||
breve :: Char -> String
|
||||
breve 'A' = "Ă"
|
||||
breve 'a' = "ă"
|
||||
|
@ -1286,6 +1290,7 @@ inlineCommands = M.fromList $
|
|||
, ("c", option (str "c") $ try $ tok >>= accent cedilla)
|
||||
, ("v", option (str "v") $ try $ tok >>= accent hacek)
|
||||
, ("u", option (str "u") $ try $ tok >>= accent breve)
|
||||
, ("k", option (str "k") $ try $ tok >>= accent ogonek)
|
||||
, ("i", lit "i")
|
||||
, ("\\", linebreak <$ (do inTableCell <- sInTableCell <$> getState
|
||||
guard $ not inTableCell
|
||||
|
|
Loading…
Reference in a new issue