@@ -358,8 +358,6 @@ inlineCommands = M.fromList $
358 , ("scshape", smallcaps <$> inlines)
358 , ("scshape", smallcaps <$> inlines)
359 , ("bfseries", strong <$> inlines)
359 , ("bfseries", strong <$> inlines)
360 , ("/", pure mempty) -- italic correction
360 , ("/", pure mempty) -- italic correction
363 , ("aa", lit "å")
361 , ("aa", lit "å")
364 , ("AA", lit "Å")
362 , ("AA", lit "Å")
365 , ("ss", lit "ß")
363 , ("ss", lit "ß")
@@ -372,13 +370,14 @@ inlineCommands = M.fromList $
372 , ("pounds", lit "£")
370 , ("pounds", lit "£")
373 , ("euro", lit "€")
371 , ("euro", lit "€")
374 , ("copyright", lit "©")
372 , ("copyright", lit "©")
375− , ("`", option (str "`") $ try $ tok >>= accent grave)
373+ , ("`", tok >>= accent grave)
376− , ("'", option (str "'") $ try $ tok >>= accent acute)
374+ , ("'", tok >>= accent acute)
377− , ("^", option (str "^") $ try $ tok >>= accent hat)
378− , ("~", option (str "~") $ try $ tok >>= accent circ)
375+ , ("^", tok >>= accent circ)
376+ , ("~", tok >>= accent tilde)
379− , ("\"", option (str "\"") $ try $ tok >>= accent umlaut)
377+ , ("\"", tok >>= accent umlaut)
380− , (".", option (str ".") $ try $ tok >>= accent dot)
378+ , (".", tok >>= accent dot)
381− , ("=", option (str "=") $ try $ tok >>= accent macron)
379+ , ("=", tok >>= accent macron)
380+ , ("c", tok >>= accent cedilla)
382 , ("i", lit "i")
381 , ("i", lit "i")
383 , ("\\", linebreak <$ (optional (bracketed inline) *> optional sp))
382 , ("\\", linebreak <$ (optional (bracketed inline) *> optional sp))
384 , (",", pure mempty)
383 , (",", pure mempty)
@@ -502,33 +501,66 @@ acute 'E' = 'É'
502acute 'I' = 'Í'
501acute 'I' = 'Í'
503acute 'O' = 'Ó'
502acute 'O' = 'Ó'
504acute 'U' = 'Ú'
503acute 'U' = 'Ú'
505acute 'a' = 'á'
505acute 'a' = 'á'
506acute 'e' = 'é'
506acute 'e' = 'é'
507acute 'i' = 'í'
507acute 'i' = 'í'
508acute 'o' = 'ó'
508acute 'o' = 'ó'
509acute 'u' = 'ú'
509acute 'u' = 'ú'
510acute c = c
523acute c = c
525circ :: Char -> Char
525circ :: Char -> Char
526−circ 'A' = 'Ã'
526+circ 'A' = 'Â'
552+tilde :: Char -> Char
527−circ 'O' = 'Õ'
555+tilde 'O' = 'Õ'
528−circ 'o' = 'õ'
556+tilde 'o' = 'õ'
529−circ 'N' = 'Ñ'
561+tilde 'N' = 'Ñ'
530−circ 'n' = 'ñ'
562+tilde 'n' = 'ñ'
531−circ c = c
563+tilde c = c
533umlaut :: Char -> Char
565umlaut :: Char -> Char
534umlaut 'A' = 'Ä'
566umlaut 'A' = 'Ä'
@@ -568,6 +600,13 @@ macron 'o' = 'ō'
568macron 'u' = 'ū'
600macron 'u' = 'ū'
569macron c = c
601macron c = c
603+cedilla :: Char -> Char
571tok :: LP Inlines
610tok :: LP Inlines
572tok = try $ grouped inline <|> inlineCommand <|> str <$> (count 1 $ inlineChar)
611tok = try $ grouped inline <|> inlineCommand <|> str <$> (count 1 $ inlineChar)