Skip to content

Commit

Permalink
Fix minus to minus hypen again (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Dong <[email protected]>
  • Loading branch information
Siedlerchr and tomtung authored May 1, 2022
1 parent 9500bb2 commit 22820ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object Escape {
"\\quad" -> "",
"\\qquad" -> " ",
"""\\""" -> "\n",
"-" -> "\u2212",
"-" -> "-",
"--" -> "\u2013",
"---" -> "\u2014",
"\\colon" -> ":",
Expand All @@ -38,6 +38,7 @@ object Escape {
"\\textregistered" -> "®",
"\\textquestiondown" -> "¿",
"\\textvisiblespace" -> "",
"\\textminus" -> "\u2212",

// Greek alphabet
"\\alpha" -> "α",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class LaTeX2UnicodeTest extends AnyFunSuite {
test("Dashes") {
LaTeX2Unicode.convert(
"5-1 is between 1--10---obviously. ----anonymous"
) shouldBe "51 is between 1–10—obviously. ----anonymous"
) shouldBe "5-1 is between 1–10—obviously. ----anonymous"
}

test("ams arrows") {
Expand Down

0 comments on commit 22820ed

Please sign in to comment.