Kelson
cf21f1793c
Merge pull request #158 from kiwix/compilation_fix
...
Use -llog only for Android
2018-07-07 22:08:11 +02:00
Kelson
c0d5e091d3
Small update of the README
2018-07-07 21:15:48 +02:00
Kelson
620f1b5e13
Use -llog only for Android
2018-07-07 20:19:34 +02:00
Kelson
1e8e897f4a
Merge pull request #155 from kiwix/mhutti1/jni-corrupt-zim
...
JNI better log & stop crashing if exception thrown at ZIM file opening
2018-06-29 22:13:16 +02:00
Isaac Hutt
76ca4b0cee
Add -llog
2018-06-29 16:57:32 +02:00
mhutti1
709baae934
Convert all JNI cerrs to Android log messages
2018-06-29 16:35:11 +02:00
mhutti1
ea8cd9f1a9
Correctly pass 0 through JNI if ZIM file is corrupted
2018-06-29 15:30:13 +02:00
Kelson
452e7f8883
Merge pull request #152 from kiwix/updated_readme
...
Update README
2018-06-25 06:14:36 +02:00
Emmanuel Engelhart
a66b178633
Update README
2018-06-24 22:16:16 +02:00
Matthieu Gautier
0c26b08dce
Merge pull request #149 from kiwix/version_2.0.1
...
New version 2.0.1
2018-06-15 18:22:04 +02:00
Matthieu Gautier
2a03147662
New version 2.0.1
2018-06-15 18:07:51 +02:00
Matthieu Gautier
1164cf7444
Merge pull request #150 from kiwix/gcc4.8
...
[TRAVIS] Compile using the default compiler version 4.8.
2018-06-15 18:07:22 +02:00
Matthieu Gautier
6ef2d5ff4b
[TRAVIS] Compile using the default compiler version 4.8.
2018-06-15 08:47:28 +02:00
Matthieu Gautier
3a00c4d671
Merge pull request #147 from kiwix/icu_namespace
...
Icu namespace
2018-06-11 15:21:30 +02:00
Matthieu Gautier
5025ee4963
Fix icudt version.
...
We have move to icu version 58 a while ago.
2018-06-11 14:38:32 +02:00
Matthieu Gautier
9aaf82a36d
Explicitly use icu namespace.
...
Fix #145
2018-06-11 14:36:34 +02:00
Kelson
2e38aa796f
Merge pull request #141 from kiwix/mhutti1/url-decoding
...
Decode reserved characters in URLs
2018-06-01 11:28:37 +02:00
mhutti1
fa99cce68d
Decode reserved characters in URLs
2018-05-20 18:41:39 +01:00
Matthieu Gautier
fc6a0bcea2
Merge pull request #140 from kiwix/no_stopwords_resources
...
Remove unused static resources.
2018-05-15 11:37:35 +02:00
Matthieu Gautier
622d2fc23d
Remove unused static resources.
...
Stop words are not use anymore since a long time now that indexing has
been moved to libzim. No need to embedded them in kiwix-lib.
2018-05-15 11:30:30 +02:00
Matthieu Gautier
48933a3b3e
Merge pull request #139 from kiwix/fix_parseUrl
...
Fix parse url
2018-05-14 18:33:59 +02:00
Matthieu Gautier
c0b1c6013e
Fix parsing of url
...
Fix kiwix/kiwix-tools#193
2018-05-14 17:41:05 +02:00
Matthieu Gautier
433a47c3fe
Add unittest structure.
...
No tests, just everything to add tests later.
2018-05-14 17:40:43 +02:00
Matthieu Gautier
e9ab074b5d
Merge pull request #136 from kiwix/2.0.0
...
2.0.0
2018-04-23 20:15:45 +02:00
Matthieu Gautier
45a000edaa
New version 2.0.0
2018-04-23 18:06:49 +02:00
Matthieu Gautier
e216c44034
kiwix-lib needs libzim>=3.3.0
2018-04-23 18:06:49 +02:00
Matthieu Gautier
59661626e9
Merge pull request #135 from kiwix/update_README
...
Add dependency `libaria2` in the README.
2018-04-23 18:06:24 +02:00
Matthieu Gautier
6b0d2788aa
Add dependency `libaria2` in the README.
2018-04-23 17:40:21 +02:00
Matthieu Gautier
1b49c632b3
Merge pull request #123 from kiwix/new_api
...
New api
2018-04-23 17:07:45 +02:00
Chris Li
68665693c5
fixed some typos in the docs string
2018-04-19 18:04:07 +02:00
Matthieu Gautier
1dd828e79c
Fix pathExists and check for correct path for xapian index.
...
The correct path for xapian database should be "X/fulltext/xapian",
not "Z//fulltextIndex/xapian".
So lets check for the right path and fallback to the wrong one (but
used in old zims).
The double '/' in the path is a bug of zimwriterfs and is specific
to the xapian database.
We must handle this correctly in `hasFulltextIndex` and not (buggly) in
`pathExists`.
(Hopefully, it seems that pathExists were used only by hasFulltextIndex)
2018-04-19 18:04:07 +02:00
Matthieu Gautier
135028c16a
Introduce better API to manipulate entries in a zim file.
...
The previous API suffer different problems:
- It was difficult to handle articles redirecting to other article.
- It was not possible to get few information (title) without getting
the whole content.
The new API introduce the new class `Entry` that act as a proxy to an
article in the zim file.
Methods of `Reader` now return an `Entry` and the user has to call
`Entry`'s methods to get useful information.
No redirection is made explicitly.
If an entry is not found, an exception is raised instead of returning
an invalid `Entry`.
The common pattern to get the content of an entry become :
```
std::string content;
try {
auto entry = reader.getEntryFromPath(path);
entry = entry.getFinalEntry();
content = entry.getContent();
} catch (NoEntry& e) {
...
}
```
Older methods are keep (with the same behavior) but are marked as
deprecated.
2018-04-19 18:04:07 +02:00
Matthieu Gautier
1f3fcd85a0
Allow us to declare method to be deprecated.
2018-04-19 18:04:07 +02:00
Matthieu Gautier
6e13d44459
Merge pull request #129 from kiwix/opds
...
Opds
2018-04-19 18:02:59 +02:00
Matthieu Gautier
47ce044e3e
Add method to `Manager` to populate the library from a opds stream.
...
The library's books are created in the metadata in the opds.
As the opds stream is by definition a distant "library", there is no
zim to read to complete missing information.
This can lead to incomplete `library.xml`.
2018-04-19 17:53:08 +02:00
Matthieu Gautier
1f091da3f4
Add a downloader tools to download files.
...
The downloader is using libaria2.
For now, only one download can be run a the time.
A download will start only if (and as soon as) no download is running.
2018-04-19 17:53:08 +02:00
Matthieu Gautier
d4fefd1a57
Add a function to create a temporary directory.
2018-04-19 17:53:05 +02:00
Matthieu Gautier
9f86b59d1d
Add a function to get the content of a file.
2018-04-19 17:53:02 +02:00
Matthieu Gautier
2164faba44
Add a potential search description link in the opds stream.
2018-04-19 17:08:01 +02:00
Matthieu Gautier
b48428e443
Be able to create a OPDSDumper without library and associate it later.
2018-04-19 17:08:01 +02:00
Matthieu Gautier
ad92af928b
Be able to filter a library.
...
This generate a new library only with the corresponding books.
2018-04-19 17:08:01 +02:00
Matthieu Gautier
ee51c470b4
Allow the manager to dump the opds feed of the whole library.
2018-04-19 17:08:01 +02:00
Matthieu Gautier
5398d69231
Merge pull request #134 from kiwix/macos
...
Build kiwix-lib on macos.
2018-04-19 15:37:22 +02:00
Matthieu Gautier
c0bc2ed111
Build kiwix-lib on macos.
...
Also try to speed up a bit the build by :
- installing packages using the travis apt plugin and do not use sudo
- Use prebuild ninja binary.
2018-04-19 15:29:48 +02:00
Matthieu Gautier
10893ae19f
Merge pull request #125 from kiwix/no_warning
...
Try to compile kiwix-lib without warning.
2018-04-18 17:05:50 +02:00
Matthieu Gautier
ec097ab267
Try to compile kiwix-lib without warning.
2018-04-18 16:57:27 +02:00
Matthieu Gautier
32ad40a5b0
Merge pull request #133 from kiwix/rpath
...
Set the RPATH of kiwix-lib.
2018-04-17 17:09:43 +02:00
Matthieu Gautier
d686de7ec3
Set the RPATH of kiwix-lib.
...
As we cannot change (DY)LD_LIBRARY_PATH on macos, we have to use rpath.
2018-04-17 16:27:31 +02:00
Matthieu Gautier
8d6f1196de
Merge pull request #132 from kiwix/ctpp2_lib_dir
...
Find ctpp2 lib in the normal lib dir and fallback to 'lib'.
2018-04-17 15:35:58 +02:00
Matthieu Gautier
a216ad5a6f
Find ctpp2 lib in the normal lib dir and fallback to 'lib'.
...
ctpp2 libs should be in the "normal" lib dir, so search in it.
The 'lib' dir should only be used as a fallback.
2018-04-17 14:37:19 +02:00