Skip to content

Invoke Web Assembly-specific dependencies when building for Wasm. - #10

Closed
jasonjgw wants to merge 1 commit into
daisy:mainfrom
jasonjgw:wasm-build
Closed

jasonjgw wants to merge 1 commit into
daisy:mainfrom
jasonjgw:wasm-build

Conversation

@jasonjgw

Copy link
Copy Markdown

The purpose of the proposed change is to allow MatCAT to be compiled to Web Assembly without modification.

This isn't compiling yet. Changes may be necessary before it can be merged.

On my system, at least, compiling dependencies that include C code fails, as Clang can't find the Standard C library (specifically, a file not found error is returned when opening stdlib.h).

The command line was:
cargo build --target wasm32-unknown-unknown

@NSoiffer

NSoiffer commented Apr 8, 2022

Copy link
Copy Markdown
Collaborator

Sorry -- missed this PR for some reason.

A prior commit changed the zip compression algorithm to avoid the need to use Clang. Between that and publishing MathCAT, I believe MathCATDemo should build MathCAT without a problem now.

@jasonjgw: is your proposed change still useful?

@jasonjgw

jasonjgw commented Apr 8, 2022

Copy link
Copy Markdown
Author

I wasn't able to complete the compilation process for WebAssembly even with this change, but that was prior to the revision you mentioned regarding zip compression.

If it builds for WebAssembly without modification, then I'd leave this change out for the moment and close the pull request, but if you think it would be better to include those dependencies conditionally (in WebAssembly only) for the future then the approach taken is this PR could be a good starting point.

@jasonjgw jasonjgw closed this by deleting the head repository Dec 16, 2024
NSoiffer pushed a commit that referenced this pull request Jun 23, 2026
* first updates

unicode, general and part of default

* Test update

* Updated geometry.yaml

#2

* Updated linear-algebra and calculus

#3 #4

* ClearSpeak_rules.yaml updated

* Update overview.yaml

Close #10

* Update navigate.yaml

* Update SimpleSpeak_Rules.yaml

* Update definitions.yaml

Closes #14

* Updated SimpleSpeakl and ClearSpeak

Finished the update of SimpleSpeak and corrected a rule in both SimpleSpeak and ClearSpeak that made mixed numbers be spoken incorrectly.

* Bug fix in SimpleSpeak and ClearSpeak

Fixed a bug concerning common fractions used in mixed numbers.

* Fixed a bug in general.yaml

Fixed a bug concerning how one is spoken in combination with a unit.

* Unicode-full & navigate

Updated unicode-full and navigate, plus fixed a couple of typos in the english unicode-full.

* Fixed a corrupt file

There was some problem with general.yaml, which should now be fixed.

* Update default.yaml

* Update general.yaml

Hopefully this fix will solve a lot of the failed tests. #15

* Updated functions.rs

Both for ClearSpeak and SimpleSpeak

* Fixed a multiline test fail

Both ClearSpeak_rules.yaml and multiline.rs needed an update.

* Fixed linear-algebra fails

Restored language-specific rules for homomorphism and kernel.

* Tests updated

Updated tests to conform to slight changes in speaking (pausing and 1/en)

* Fixed some small errors

* Bug fix

* Update navigate.yaml

* Fixed a language-dependent issue

* Added audit-ignore to reintroduced rules

* Fixed laplacian

* Minor typo fix

Added missing "bråk" to "slut bråk" announcement

---------

Co-authored-by: AndersEkl <anders.eklund@spsm.se>
NSoiffer added a commit that referenced this pull request Aug 13, 2026
* first updates

unicode, general and part of default

* Test update

* Updated geometry.yaml

#2

* Updated linear-algebra and calculus

#3 #4

* ClearSpeak_rules.yaml updated

* Update overview.yaml

Close #10

* Update navigate.yaml

* Update SimpleSpeak_Rules.yaml

* Update definitions.yaml

Closes #14

* Updated SimpleSpeakl and ClearSpeak

Finished the update of SimpleSpeak and corrected a rule in both SimpleSpeak and ClearSpeak that made mixed numbers be spoken incorrectly.

* Bug fix in SimpleSpeak and ClearSpeak

Fixed a bug concerning common fractions used in mixed numbers.

* Fixed a bug in general.yaml

Fixed a bug concerning how one is spoken in combination with a unit.

* Unicode-full & navigate

Updated unicode-full and navigate, plus fixed a couple of typos in the english unicode-full.

* Fixed a corrupt file

There was some problem with general.yaml, which should now be fixed.

* Update default.yaml

* Update general.yaml

Hopefully this fix will solve a lot of the failed tests. #15

* Updated functions.rs

Both for ClearSpeak and SimpleSpeak

* Fixed a multiline test fail

Both ClearSpeak_rules.yaml and multiline.rs needed an update.

* Fixed linear-algebra fails

Restored language-specific rules for homomorphism and kernel.

* Tests updated

Updated tests to conform to slight changes in speaking (pausing and 1/en)

* Fixed some small errors

* Bug fix

* Update navigate.yaml

* Fixed a language-dependent issue

* Added audit-ignore to reintroduced rules

* Fixed laplacian

* Minor typo fix

Added missing "bråk" to "slut bråk" announcement

* Fixes for failed tests

Changed functions.rs in both ClearSpeak and SimpleSpeak as well as tweaked a rule for equillibrium arrows in general.yaml.

---------

Co-authored-by: Tim Arborealis Lötberg <143188129+TimArborealis@users.noreply.github.com>
Co-authored-by: NSoiffer <NSoiffer@users.noreply.github.com>
NSoiffer added a commit that referenced this pull request Aug 13, 2026
* Update of Swedish translation (#605)

* first updates

unicode, general and part of default

* Test update

* Updated geometry.yaml

#2

* Updated linear-algebra and calculus

#3 #4

* ClearSpeak_rules.yaml updated

* Update overview.yaml

Close #10

* Update navigate.yaml

* Update SimpleSpeak_Rules.yaml

* Update definitions.yaml

Closes #14

* Updated SimpleSpeakl and ClearSpeak

Finished the update of SimpleSpeak and corrected a rule in both SimpleSpeak and ClearSpeak that made mixed numbers be spoken incorrectly.

* Bug fix in SimpleSpeak and ClearSpeak

Fixed a bug concerning common fractions used in mixed numbers.

* Fixed a bug in general.yaml

Fixed a bug concerning how one is spoken in combination with a unit.

* Unicode-full & navigate

Updated unicode-full and navigate, plus fixed a couple of typos in the english unicode-full.

* Fixed a corrupt file

There was some problem with general.yaml, which should now be fixed.

* Update default.yaml

* Update general.yaml

Hopefully this fix will solve a lot of the failed tests. #15

* Updated functions.rs

Both for ClearSpeak and SimpleSpeak

* Fixed a multiline test fail

Both ClearSpeak_rules.yaml and multiline.rs needed an update.

* Fixed linear-algebra fails

Restored language-specific rules for homomorphism and kernel.

* Tests updated

Updated tests to conform to slight changes in speaking (pausing and 1/en)

* Fixed some small errors

* Bug fix

* Update navigate.yaml

* Fixed a language-dependent issue

* Added audit-ignore to reintroduced rules

* Fixed laplacian

* Minor typo fix

Added missing "bråk" to "slut bråk" announcement

---------

Co-authored-by: AndersEkl <anders.eklund@spsm.se>

* Sv update - fixes for failed tests (#678)

* first updates

unicode, general and part of default

* Test update

* Updated geometry.yaml

#2

* Updated linear-algebra and calculus

#3 #4

* ClearSpeak_rules.yaml updated

* Update overview.yaml

Close #10

* Update navigate.yaml

* Update SimpleSpeak_Rules.yaml

* Update definitions.yaml

Closes #14

* Updated SimpleSpeakl and ClearSpeak

Finished the update of SimpleSpeak and corrected a rule in both SimpleSpeak and ClearSpeak that made mixed numbers be spoken incorrectly.

* Bug fix in SimpleSpeak and ClearSpeak

Fixed a bug concerning common fractions used in mixed numbers.

* Fixed a bug in general.yaml

Fixed a bug concerning how one is spoken in combination with a unit.

* Unicode-full & navigate

Updated unicode-full and navigate, plus fixed a couple of typos in the english unicode-full.

* Fixed a corrupt file

There was some problem with general.yaml, which should now be fixed.

* Update default.yaml

* Update general.yaml

Hopefully this fix will solve a lot of the failed tests. #15

* Updated functions.rs

Both for ClearSpeak and SimpleSpeak

* Fixed a multiline test fail

Both ClearSpeak_rules.yaml and multiline.rs needed an update.

* Fixed linear-algebra fails

Restored language-specific rules for homomorphism and kernel.

* Tests updated

Updated tests to conform to slight changes in speaking (pausing and 1/en)

* Fixed some small errors

* Bug fix

* Update navigate.yaml

* Fixed a language-dependent issue

* Added audit-ignore to reintroduced rules

* Fixed laplacian

* Minor typo fix

Added missing "bråk" to "slut bråk" announcement

* Fixes for failed tests

Changed functions.rs in both ClearSpeak and SimpleSpeak as well as tweaked a rule for equillibrium arrows in general.yaml.

---------

Co-authored-by: Tim Arborealis Lötberg <143188129+TimArborealis@users.noreply.github.com>
Co-authored-by: NSoiffer <NSoiffer@users.noreply.github.com>

---------

Co-authored-by: Tim Arborealis Lötberg <143188129+TimArborealis@users.noreply.github.com>
Co-authored-by: AndersEkl <anders.eklund@spsm.se>
Co-authored-by: AndersEkl <39799609+AndersEkl@users.noreply.github.com>
hammera pushed a commit to hammera/MathCAT that referenced this pull request Aug 13, 2026
* Update of Swedish translation (daisy#605)

* first updates

unicode, general and part of default

* Test update

* Updated geometry.yaml

daisy#2

* Updated linear-algebra and calculus

daisy#3 daisy#4

* ClearSpeak_rules.yaml updated

* Update overview.yaml

Close daisy#10

* Update navigate.yaml

* Update SimpleSpeak_Rules.yaml

* Update definitions.yaml

Closes daisy#14

* Updated SimpleSpeakl and ClearSpeak

Finished the update of SimpleSpeak and corrected a rule in both SimpleSpeak and ClearSpeak that made mixed numbers be spoken incorrectly.

* Bug fix in SimpleSpeak and ClearSpeak

Fixed a bug concerning common fractions used in mixed numbers.

* Fixed a bug in general.yaml

Fixed a bug concerning how one is spoken in combination with a unit.

* Unicode-full & navigate

Updated unicode-full and navigate, plus fixed a couple of typos in the english unicode-full.

* Fixed a corrupt file

There was some problem with general.yaml, which should now be fixed.

* Update default.yaml

* Update general.yaml

Hopefully this fix will solve a lot of the failed tests. daisy#15

* Updated functions.rs

Both for ClearSpeak and SimpleSpeak

* Fixed a multiline test fail

Both ClearSpeak_rules.yaml and multiline.rs needed an update.

* Fixed linear-algebra fails

Restored language-specific rules for homomorphism and kernel.

* Tests updated

Updated tests to conform to slight changes in speaking (pausing and 1/en)

* Fixed some small errors

* Bug fix

* Update navigate.yaml

* Fixed a language-dependent issue

* Added audit-ignore to reintroduced rules

* Fixed laplacian

* Minor typo fix

Added missing "bråk" to "slut bråk" announcement

---------

Co-authored-by: AndersEkl <anders.eklund@spsm.se>

* Sv update - fixes for failed tests (daisy#678)

* first updates

unicode, general and part of default

* Test update

* Updated geometry.yaml

daisy#2

* Updated linear-algebra and calculus

daisy#3 daisy#4

* ClearSpeak_rules.yaml updated

* Update overview.yaml

Close daisy#10

* Update navigate.yaml

* Update SimpleSpeak_Rules.yaml

* Update definitions.yaml

Closes daisy#14

* Updated SimpleSpeakl and ClearSpeak

Finished the update of SimpleSpeak and corrected a rule in both SimpleSpeak and ClearSpeak that made mixed numbers be spoken incorrectly.

* Bug fix in SimpleSpeak and ClearSpeak

Fixed a bug concerning common fractions used in mixed numbers.

* Fixed a bug in general.yaml

Fixed a bug concerning how one is spoken in combination with a unit.

* Unicode-full & navigate

Updated unicode-full and navigate, plus fixed a couple of typos in the english unicode-full.

* Fixed a corrupt file

There was some problem with general.yaml, which should now be fixed.

* Update default.yaml

* Update general.yaml

Hopefully this fix will solve a lot of the failed tests. daisy#15

* Updated functions.rs

Both for ClearSpeak and SimpleSpeak

* Fixed a multiline test fail

Both ClearSpeak_rules.yaml and multiline.rs needed an update.

* Fixed linear-algebra fails

Restored language-specific rules for homomorphism and kernel.

* Tests updated

Updated tests to conform to slight changes in speaking (pausing and 1/en)

* Fixed some small errors

* Bug fix

* Update navigate.yaml

* Fixed a language-dependent issue

* Added audit-ignore to reintroduced rules

* Fixed laplacian

* Minor typo fix

Added missing "bråk" to "slut bråk" announcement

* Fixes for failed tests

Changed functions.rs in both ClearSpeak and SimpleSpeak as well as tweaked a rule for equillibrium arrows in general.yaml.

---------

Co-authored-by: Tim Arborealis Lötberg <143188129+TimArborealis@users.noreply.github.com>
Co-authored-by: NSoiffer <NSoiffer@users.noreply.github.com>

---------

Co-authored-by: Tim Arborealis Lötberg <143188129+TimArborealis@users.noreply.github.com>
Co-authored-by: AndersEkl <anders.eklund@spsm.se>
Co-authored-by: AndersEkl <39799609+AndersEkl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants