-
Notifications
You must be signed in to change notification settings - Fork 7
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
Zlib support #4
Comments
The hard part about this is figuring out a consistent and concise way to read and patch the zlib strings. |
So far, I have this: https://gist.github.com/geek1011/55ca3c4e750aa1bcd497cf296ceb8cf0 , which works for extracting the css. The biggest issue is that when recompressing it, the go zlib library uses a different dict (0x8c instead of 0x8d). Once I can get it to use the proper dict, I'll be able to add it to kobopatch and implement find_zlib, replace_zlib and replace_css instructions. |
Some notes I've made for myself:
|
I think I might just end up embedding (if I can get it to cross-compile to a static binary or |
Nevermind, 😠 I missed something obvious again (just like path chars in kepubify)! Internally, python uses Now, I just need to do some more testing, then this feature should be ready! |
The text was updated successfully, but these errors were encountered: