-
Notifications
You must be signed in to change notification settings - Fork 375
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
Zim format detection does not work in 2.12.1 and 2.12.2 #2316
Comments
That PR is closed a year ago but the issue is a recent regression. I suppose it was introduced about a month or two ago |
I can confirm that with the latest version Zim files are not detected as Zim any more, just as plaintext.
Probably this file content check for *.txt was broken somehow, so Markor just treats them as plain text files due to the ending. If #2307 fixes the issue already, nice! :) |
@harshad1 I just took a look into #2307 , and if I didn't overlook something, I think it won't fix the issue, unfortunately. It seems that this commit introduced the bug: In Document.java, you removed the if-elseif-Statements with a loop iteration over the newly introduced FormatRegistry.FORMATS: The problem here is: Just using the lower-case filename |
Ah. You're right. I will fix this today |
I have this fixed and pushed up in #2307 Please test. |
@harshad1 Ah I saw that you already changed the order of the formats in a previous commit. 👍 I just have my smartphone right now and cannot build the APK for testing, however, and I don't even have an Android dev environment set up on my computer at this time... ^^ Maybe also @Self-Perfection could do a test if it works now. Additionally I found a suspicious line in WikitextTextConverter - but this seems to have been there before in a similar form, so probably not exactly related to the issue here: |
Sorry, I can not test. Compiling from source code is beyond my capabilities now. |
testbuilsa of prs are at the github actions tab.
|
👍 Wow. Much CI. Such technology. So I tested apk from #2307 and it indeed restored zim format handling |
Nice to know that the CI pipelines includes test apks. 👍 |
Marking this done as the fix is in #2307 |
Description
Zim files are handled as plain text files. There is no format parsing, zim wiki headers are not hidden, tags are not handled.
Steps to reproduce
Information
Android version: irrelevant
Device: irrelevant
App Version: 2.12.2
Source
F-Droid
Format / File type
Wikitext, Zim
Additional info / Log
The text was updated successfully, but these errors were encountered: