diff --git a/src/System/Texrunner/Online.hs b/src/System/Texrunner/Online.hs index 1e1dd86..e24f92b 100644 --- a/src/System/Texrunner/Online.hs +++ b/src/System/Texrunner/Online.hs @@ -13,7 +13,7 @@ -- -- Tex's online interface is basically running the command line. You can -- see it by running @pdflatex@ without any arguments. The contents can --- be writen line by and tex can give feedback though stdout, which gets +-- be written line by and tex can give feedback though stdout, which gets -- parsed in by this module. This is the only way I know to get info -- like hbox sizes. Please let me know if you know a better way. -- diff --git a/src/System/Texrunner/Parse.hs b/src/System/Texrunner/Parse.hs index d3b75f0..99a1a76 100644 --- a/src/System/Texrunner/Parse.hs +++ b/src/System/Texrunner/Parse.hs @@ -176,11 +176,11 @@ data TexError' | UnknownError ByteString deriving (Show, Read, Eq) --- | Parse any line begining with "! ". Any unknown errors are returned as 'UnknownError'. +-- | Parse any line beginning with "! ". Any unknown errors are returned as 'UnknownError'. someError :: Parser TexError someError = mark *> errors where - -- in context exclamation mark isn't always at the begining + -- in context exclamation mark isn't always at the beginning mark = "! " <|> (notChar '\n' *> mark) errors = undefinedControlSequence <|> illegalUnit @@ -192,7 +192,7 @@ someError = mark *> errors <|> paragraphEnded <|> numberTooBig <|> tooMany - <|> dimentionTooLarge + <|> dimensionTooLarge <|> tooManyErrors <|> fatalError <|> TexError Nothing <$> UnknownError <$> restOfLine @@ -292,8 +292,8 @@ tooManyErrors :: Parser TexError tooManyErrors = "That makes 100 errors; please try again" *> return (TexError Nothing TooManyErrors) -dimentionTooLarge :: Parser TexError -dimentionTooLarge = "Dimension too large" +dimensionTooLarge :: Parser TexError +dimensionTooLarge = "Dimension too large" *> return (TexError Nothing DimensionTooLarge) -- line 8075 tex.web diff --git a/tests/Tex/LogParse.hs b/tests/Tex/LogParse.hs index 43a1567..b4fbf45 100644 --- a/tests/Tex/LogParse.hs +++ b/tests/Tex/LogParse.hs @@ -88,7 +88,7 @@ genContextFiles = for_ labeledErrors mkFile labeledErrors = [ ("missing-dollar", missingDollar) - , ("dimention-too-large", dimensionTooLarge) + , ("dimension-too-large", dimensionTooLarge) , ("illegal-unit", illegalUnit) , ("missing-number", missingNumber) , ("undefined-control-sequence", undefinedControlSequence) diff --git a/texrunner.cabal b/texrunner.cabal index 76c2752..12d223a 100644 --- a/texrunner.cabal +++ b/texrunner.cabal @@ -3,7 +3,7 @@ version: 0.0.1.2 synopsis: Functions for running Tex from Haskell. description: texrunner is an interface to tex that attempts to parse errors and - can parse tex in online mode to retrive hbox sizes. + can parse tex in online mode to retrieve hbox sizes. . This package should be considered very experimental. Eventually I hope it will be good enough for general use but for now it's only suitable