Skip to content

Commit b6715c4

Browse files
committed
Update to new MathCAT
1 parent 627fc0e commit b6715c4

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

Cargo.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
[package]
88
name = "MathCatForPython"
9-
version = "0.5.6"
9+
version = "0.6.2"
1010
authors = ["Neil Soiffer <soiffer@alum.mit.edu>"]
1111
edition = "2018"
12+
resolver = "2" # allows different build dependency features
13+
1214

1315
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1416

@@ -19,19 +21,21 @@ name = "libmathcat_py"
1921
crate-type = ["cdylib"]
2022

2123
[dependencies.mathcat]
22-
version = "0.5.6"
24+
version = "0.6.2"
2325
# for testing MathCAT without having to publish a new version (change two occurences)
24-
# path = "../MathCAT/"
26+
path = "../MathCAT/"
27+
# features = ["include-zip"] # for building, we want the zip files so we can include them separately
2528

2629
[dependencies.pyo3]
2730
version = "0.15.1"
2831
features = ["extension-module", "abi3"]
2932

3033
[build-dependencies]
31-
zip = { version = "0.6.2", default-features = false, features = ["deflate"] }
32-
mathcat = "0.5.6"
34+
zip = { version = "2.1", default-features = false, features = ["bzip2"] }
35+
# mathcat = { version = "0.6.2", features = ["include-zip"]} # for building, we want the zip files so we can include them separately
36+
mathcat = { path = "../MathCAT/", features = ["include-zip"]} # for building, we want the zip files so we can include them separately
3337
# for testing MathCAT without having to publish a new version (change two occurences)
34-
# mathcat = {path = "../MathCAT/"}
38+
3539

3640

3741
[profile.release]

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@ MathCAT's rules for speech are not yet as extensive as MathPlayer's rules -- tha
3030

3131
## MathCAT Update Log
3232

33+
### Version 0.6.2
34+
* All the language and braille Rule files are zipped up per directory and unzipped on demand.
35+
* This currently saves ~5mb when Rules.zip is unzipped, and will save even more as more languages and braille codes are added.
36+
* This is in preparation for MathCAT being built into NVDA 2024.3
37+
* Added new preference `DecimalSeparator`.
38+
* The default value is `Auto`, with other values being ".", ",", and "Custom". The first three values set `DecimalSeparators` and `BlockSeparators`.
39+
* `Auto` sets those preferences based on the value of the `Language` pref. For some language such as Spanish, `,` is used in some countries and `.` is used in others. In this case, it is best to set the language to also include the country code (e.g, `es-es` or `es-mx`) to ensure the right value is used.
40+
* Added Swedish to supported languages.
41+
* Added more Unicode chars to include both all Unicode chars marked as "Sm" and those with a mathclass (except Alphabetic and Glyph classes) in the Unicode standard.
42+
* After changing how prefs work in a previous version, I forgot to change `MathRate` and `PauseFactor` to be numbers, not strings.
43+
* Fixed bug in the braille Rules (missed change from earlier) where a third argument should have been given to say to look in the _Braille_ `definitions.yaml` files and not the speech ones when looking up the value of a definition.
44+
* Cleaned up use of `definitions.yaml`.
45+
* Fixed some bugs in the MathML cleanup for "," decimal separators.
46+
* Found a bug in braille highlighting when nothing is highlighted (maybe never happens which is why I didn't see it in practice?)
47+
* Fixed "Describe" mode so that it works -- it is still very minimal and probably not useful yet
48+
3349
### Version 0.5.6
3450
* Added Copy As... to the MathCAT dialog (in the "Navagation" pane).
3551
* Fixed a bug where the language reverted to English when changing speech styles.

buildVars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _(arg):
3232
and other translations are in progress."""
3333
),
3434
# version
35-
"addon_version": "0.5.6",
35+
"addon_version": "0.6.2",
3636
# Author(s)
3737
"addon_author": "Neil Soiffer <soiffer@alum.mit.edu>",
3838
# URL for the add-on documentation support
@@ -42,7 +42,7 @@ def _(arg):
4242
# Documentation file name
4343
"addon_docFileName": "readme.html",
4444
# Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional)
45-
"addon_minimumNVDAVersion": "2019.3",
45+
"addon_minimumNVDAVersion": "2024.1",
4646
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version)
4747
"addon_lastTestedNVDAVersion": "2024.1",
4848
# Add-on update channel (default is None, denoting stable releases,

0 commit comments

Comments
 (0)