Skip to content

Commit

Permalink
Merge pull request #11 from Moiman/typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
cchalmers committed Apr 1, 2023
2 parents bf5b0f9 + 713eec2 commit 97d025e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/System/Texrunner/Online.hs
Expand Up @@ -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.
--
Expand Down
10 changes: 5 additions & 5 deletions src/System/Texrunner/Parse.hs
Expand Up @@ -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
Expand All @@ -192,7 +192,7 @@ someError = mark *> errors
<|> paragraphEnded
<|> numberTooBig
<|> tooMany
<|> dimentionTooLarge
<|> dimensionTooLarge
<|> tooManyErrors
<|> fatalError
<|> TexError Nothing <$> UnknownError <$> restOfLine
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/Tex/LogParse.hs
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion texrunner.cabal
Expand Up @@ -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
Expand Down

0 comments on commit 97d025e

Please sign in to comment.