Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Cannot change language through the API. #277

Open
EL-Dol opened this issue Sep 4, 2024 · 2 comments
Open

Android: Cannot change language through the API. #277

EL-Dol opened this issue Sep 4, 2024 · 2 comments

Comments

@EL-Dol
Copy link
Contributor

EL-Dol commented Sep 4, 2024

Issue: Android, Cannot change language through the API.

Expected
The language should be set to what I provide, like “es”.
Actual
Uses the default language “en”

Issue confirmed in version: MathCat v0.6.3
Working in version: MathCat v0.5.3

Target OS: Android API 21 (Fire OS & Google Android)
Build OS: Mac (Sonma) & Windows 11
Rust-C: Mac x86_64 (1.80.1) & Windows MSVC (1.80.1),
Build tools: NDK 27, Cargo-NDK, MathCat_C

Message

Hi, I’m having trouble changing the language from the default language “en” (English) on Android trough MathCat_c with the latest MathCat v0.6.3, the default language “en” (English) works fine as it’s correctly parsing the MathML code. It worked fine with the old MathCat v0.5.3 which was before the zipped Rules items. So, I guess there have been more changes under the hood.

I can confirm that unzipping the Language works fine, as I can see the unzipped files in “es” (Spanish). So, I enabled logs on Android to see what’s happening. The summary from the logs is that it seems to be changing between “Auto” and “en” (English) for some reason in “fn find_file” inside prefs.rs, and it loads something from “Rules/prefs.yaml”.

Files

MathCat - logs.txt

studio64_2024-09-04_08-12-47

@NSoiffer
Copy link
Owner

I confirmed the problem with 0.6.3, but it doesn't happen in 0.6.4. I haven't published that yet. If you checkout both MathCAT and MathCATForC and make them sibling dirs, then the current versions of the files will build correctly. If this doesn't work for you, I can "publish" 0.6.4, but I'd rather hold off until after I finish triaging issues.

Let me know if I need to publish 0.6.4.

@EL-Dol
Copy link
Contributor Author

EL-Dol commented Sep 13, 2024

Hi, thanks for your reply.
I've tried using the latest code in MathCat & MathCat_c, and unfortunately it seems to be more broken. Because it can no longer read the default language "en". I was able to trace that issue down to "Add support for wasm with language conductor unpacking." (96f794d), but what inside it is causing the problem is still a mystery. If you want more logs in specific areas or want to run a specific branch, feel free to ask.

It could be connected to that I'm now getting a on Auto/Auto.zip not found error when trying to parse MathML. There is no Auto.zip in the build folder among the Languages from what I can see.

More logs:

Summary: It worked like before until 96f794d after that it stopped responding to parsing requests
add test for fixed bug #272.txt
latest.txt

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

No branches or pull requests

2 participants