-
Notifications
You must be signed in to change notification settings - Fork 38
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
Comments
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. |
Hi, thanks for your reply. 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 |
Found a possible solution a while back, it have been pretty stable during internal usage on iOS, Android & Windows. |
There was a problem with the WASM build that sounds vaguely similar to the ones you found. It turns out in my MathCAT demo, I set the preference
Did you try changing the value of |
Haven't tried to change CheckRuleFiles, missed that it's possible to do that. I'll check that next time we are updating MathCat for our projects. |
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
The text was updated successfully, but these errors were encountered: