From 20f9b01faa838e340ec52615145460547f678b16 Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Thu, 16 May 2024 13:44:32 -0400 Subject: [PATCH] Spellcheck Project Add `cargo spellcheck` Fix all the spelling issues. Signed-off-by: Nathaniel Clark --- .config/rpn.dic | 4 + .config/spellcheck.toml | 4 + Makefile | 6 +- README.md | 40 +- src/fixtures/help.html | 10 +- src/main.rs | 2 +- src/numbers.rs | 796 ++++++++++++++++++++-------------------- src/ui/tui.rs | 2 +- 8 files changed, 441 insertions(+), 423 deletions(-) create mode 100644 .config/rpn.dic create mode 100644 .config/spellcheck.toml diff --git a/.config/rpn.dic b/.config/rpn.dic new file mode 100644 index 0000000..2c1575f --- /dev/null +++ b/.config/rpn.dic @@ -0,0 +1,4 @@ +1 +HP48G +iff +RPN diff --git a/.config/spellcheck.toml b/.config/spellcheck.toml new file mode 100644 index 0000000..8a7ecd6 --- /dev/null +++ b/.config/spellcheck.toml @@ -0,0 +1,4 @@ +[hunspell] +extra_dictionaries = ["rpn.dic"] +lang = "en_US" +search_dirs = ["."] diff --git a/Makefile b/Makefile index 16d6df9..fc6c2c4 100644 --- a/Makefile +++ b/Makefile @@ -30,5 +30,7 @@ clean: rm -rf rpn-rs.app/ test: - cargo clippy --all - cargo test + cargo fmt --check + cargo clippy --locked --all + cargo test --locked + cargo spellcheck diff --git a/README.md b/README.md index 8dfbb58..2f3a12c 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,38 @@ # rpn-rs -RPN-rs is an RPN calculator written in rust using FLTK. +RPN-rs is an RPN calculator written in rust using `FLTK`. -Also can be run as CLI or as a TUI. +Also can be run as command line or as a graphical text user interface. ## Features -* Number - Scaler (via [rug](latest/rug/struct.Integer.html) crate) - * Arbitrary precision rational numbers ([GMP](https://gmplib.org/)) - * High-precision floating-point ([MPFR](https://www.mpfr.org/)) - * Complex numbers ([MPC](https://www.multiprecision.org/mpc/)) -* Numbers - Matrix (via [libmat](https://github.com/wiebecommajonas/libmat)) - * Matricies of any of above Scalers - * Correct interaction between Scalers and Matricies -* UI - * GUI - Graphical User Interface - * TUI - Full terminal user interface - * CLI - Basic interacive CLI +* Number - Scalar (via [`rug`](latest/rug/struct.Integer.html) crate) + * Arbitrary precision rational numbers ([`GMP`](https://gmplib.org/)) + * High-precision floating-point ([`MPFR`](https://www.mpfr.org/)) + * Complex numbers ([`MPC`](https://www.multiprecision.org/mpc/)) +* Numbers - Matrix (via [`libmat`](https://github.com/wiebecommajonas/libmat)) + * Matrices of any of above scalars + * Correct interaction between scalars and Matrices +* User-Interface + * `GUI` - Graphical User Interface + * `TUI` - Full terminal user interface + * `CLI` - Basic interactive command line ## Goals * RPN Calculator * Arbitrary precision -* Matrixes +* Matrices * Simple stack view ## Linux (Fedora) Build Requires -* libstdc++-static -* libpng-devel -* libjpeg-devel -* zlib-devel +* `libstdc++-static` +* `libpng-devel` +* `libjpeg-devel` +* `zlib-devel` ## Inspired by -* [GRPN](https://github.com/utopiabound/grpn) -* HP RPN Calculators (e.g. HP48G+) +* [`GRPN`](https://github.com/utopiabound/grpn) +* HP RPN Calculators (e.g. HP48G) diff --git a/src/fixtures/help.html b/src/fixtures/help.html index efec527..c522d2c 100644 --- a/src/fixtures/help.html +++ b/src/fixtures/help.html @@ -2,11 +2,11 @@ - RPN-rs Graphical Reverse Polish Notation Caluclator + RPN-rs Graphical Reverse Polish Notation Calculator

RPN-rs is a graphical reverse polish notation (RPN) calculator

-

RPN-rs works with arbitrary presision rational numbers, large precision +

RPN-rs works with arbitrary precision rational numbers, large precision floating point numbers, complex numbers, and matrices (in progress). Numbers can be displayed in 4 different radix modes (base 2, 8, 10, 16).