Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixed library usage; expanded note about prior art
  • Loading branch information
ahelwer authored Jan 4, 2023
1 parent 833e094 commit 21d6d3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ IsTotallyOrdered(S) ==
/\ Rotal(S)
THEOREM RealsTotallyOrdered == IsTotallyOrdered(Real)
===="#;
println!("{}", rewrite(input, Mode::AsciiToUnicode, false).unwrap());
println!("{}", rewrite(input, &Mode::AsciiToUnicode, false).unwrap());
}
```
which will output:
Expand All @@ -88,7 +88,7 @@ IsTotallyOrdered(S) ≜
THEOREM RealsTotallyOrdered ≜ IsTotallyOrdered(ℝ)
====
```
Details of reading & writing files are left to the user, but you can look at the command line wrapper for a detailed example.
Details of error handling and reading & writing files are left to the user, but you can look at the command line wrapper for an example.

Access the list of Unicode mappings as follows:
```rs
Expand Down Expand Up @@ -245,5 +245,6 @@ The block comment edge case has not been observed in the wild and so is not yet

## Prior Art

[Ron Pressler](https://pron.github.io/) did some work ([link](https://github.com/pron/tlaplus/tree/unicode-presentation-2/tlatools/src/tla2unicode)) in early 2017 trying to add Unicode support to SANY, which faced many of the same challenges around jlist alignment.
[Ron Pressler](https://pron.github.io/) did some work in early 2017 trying to add Unicode support to SANY; unfortunately this work was not successfully merged.
He also wrote [a similar Unicode conversion tool](https://github.com/pron/tlaplus/tree/unicode-presentation-2/tlatools/src/tla2unicode), which faced many of the same challenges around jlist alignment.

0 comments on commit 21d6d3f

Please sign in to comment.