Discussion:
Zim for Android
Pascal Martin
2010-09-13 13:49:43 UTC
Permalink
Hello all,

We worked on porting Okawix ( http://okawix.com ) to the Android platform. So far we included Zeno files support with both gzip and bz2 compression formats.

Now, we wants to add Zim files support but we're stuck due to the compression format: Zim files are generated using the LZMA2 format which is not easily available on the Android / Java platform. On the other hand, the OpenZim website lists gzip and bz2 as possible compression format for Zim files. Would it be possible to generate a Zim file with of those compression formats? Or is the documentation on the website out of date?

We only have two weeks left to port Okawix to the Android platform and if we can't get Zim support working in this delay, we would have to release Okawix with Zeno files support only.

Thank you for your help to developp an opensource offline reader including ZIM for Java Android.

Sincerely
Pascal Martin
Emmanuel Engelhart
2010-09-13 18:40:31 UTC
Permalink
Post by Pascal Martin
Now, we wants to add Zim files support but we're stuck due to the compression format: Zim files are generated using the LZMA2 format which is not easily available on the Android / Java platform. On the other hand, the OpenZim website lists gzip and bz2 as possible compression format for Zim files. Would it be possible to generate a Zim file with of those compression formats? Or is the documentation on the website out of date?
Documentation is not up to date :(

To simplify the dependences, the last version of the ZIM format only
recognizes one container/algorithm and this is xz/lzma2. This has been
decided at last dev. meeting. Please correct me Tommi if I'm wrong.

I think if we want to support another couple container/algorithm, this
newcomer has to bring really technical advantages. We should not switch
or add dependences only because one language/platform requires it...
Otherwise we will never find a sustainable solution.

So, my approach would be here to try to support the xz/lzma2 couple in java.

I see here two possibilities:
* Code the library directly in java
* Use libxz native code in java

What about these strategies?

Emmanuel
Pascal Martin
2010-09-13 18:46:41 UTC
Permalink
Thank you for your answer Emmanuel.

I send your answer to my team, to see it s possible to do this in 7 Work day
.


----- Original Message -----
From: "Emmanuel Engelhart" <emmanuel-***@public.gmane.org>
To: <dev-l-***@public.gmane.org>
Cc: "Pascal Martin" <pmartin-pVqOAeOrUpg4HJA+***@public.gmane.org>
Sent: Monday, September 13, 2010 8:40 PM
Subject: Re: [openZIM dev-l] Zim for Android
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Pascal Martin
Now, we wants to add Zim files support but we're stuck due to the
compression format: Zim files are generated using the LZMA2 format which
is not easily available on the Android / Java platform. On the other
hand, the OpenZim website lists gzip and bz2 as possible compression
format for Zim files. Would it be possible to generate a Zim file with of
those compression formats? Or is the documentation on the website out of
date?
Documentation is not up to date :(
To simplify the dependences, the last version of the ZIM format only
recognizes one container/algorithm and this is xz/lzma2. This has been
decided at last dev. meeting. Please correct me Tommi if I'm wrong.
I think if we want to support another couple container/algorithm, this
newcomer has to bring really technical advantages. We should not switch
or add dependences only because one language/platform requires it...
Otherwise we will never find a sustainable solution.
So, my approach would be here to try to support the xz/lzma2 couple in java.
* Code the library directly in java
* Use libxz native code in java
What about these strategies?
Emmanuel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyOcB4ACgkQn3IpJRpNWtO0WACdHJUJD7I7Iv4H2z5SbhvqWhcN
hiIAn16940KyZu9mfuScwnj0nDtOh7qV
=L+D0
-----END PGP SIGNATURE-----
Tommi Mäkitalo
2010-09-13 18:58:40 UTC
Permalink
http://www.7-zip.org/sdk.html

There you get a lzma library for java with xz support. I think with that it
should be possible to implement a reader for zim files with lzma.

Emmanuel is right - we dropped zlib and bzip2 support since lzma is widely
available and it is better than zlib and bzip2. Dropping the support reduces
dependencies.

Unfortunately the documentation about zim format is not yet up to date.

Tommi
Post by Pascal Martin
Thank you for your answer Emmanuel.
I send your answer to my team, to see it s possible to do this in 7 Work
day .
----- Original Message -----
Sent: Monday, September 13, 2010 8:40 PM
Subject: Re: [openZIM dev-l] Zim for Android
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Pascal Martin
Now, we wants to add Zim files support but we're stuck due to the
compression format: Zim files are generated using the LZMA2 format which
is not easily available on the Android / Java platform. On the other
hand, the OpenZim website lists gzip and bz2 as possible compression
format for Zim files. Would it be possible to generate a Zim file with
of those compression formats? Or is the documentation on the website
out of date?
Documentation is not up to date :(
To simplify the dependences, the last version of the ZIM format only
recognizes one container/algorithm and this is xz/lzma2. This has been
decided at last dev. meeting. Please correct me Tommi if I'm wrong.
I think if we want to support another couple container/algorithm, this
newcomer has to bring really technical advantages. We should not switch
or add dependences only because one language/platform requires it...
Otherwise we will never find a sustainable solution.
So, my approach would be here to try to support the xz/lzma2 couple in java.
* Code the library directly in java
* Use libxz native code in java
What about these strategies?
Emmanuel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyOcB4ACgkQn3IpJRpNWtO0WACdHJUJD7I7Iv4H2z5SbhvqWhcN
hiIAn16940KyZu9mfuScwnj0nDtOh7qV
=L+D0
-----END PGP SIGNATURE-----
_______________________________________________
dev-l mailing list
https://intern.openzim.org/mailman/listinfo/dev-l
Loading...