Commit Graph

482 Commits

Author SHA1 Message Date
rgaudin 38108f064e moved loadICUExternalTables code to stringTools so it can be used by kiwix-serve 2014-05-16 01:19:27 +00:00
Kelson42 c3ae9d06b1 + Windows fix 2014-05-14 18:43:49 +02:00
Kelson42 1209e27e8c + Fix path computation functions for Windows 2014-05-14 18:33:11 +02:00
rgaudin 9b32647fa4 Added ICU external dat table support for components (req. check for binaries) 2014-05-08 20:22:23 +00:00
rgaudin 8c574270cf merged with master on zimAccessor/VMStringLoader/configure.ac 2014-05-06 08:40:19 +00:00
kelson42 587b76bf6d + Fix deal with relative urls 2014-05-07 17:33:38 +02:00
kelson42 005b75f7ab + Introduction of base url in kiwix-serve (to handle relative urls in ZIM files) 2014-05-07 16:08:43 +02:00
rgaudin f1dc03d5aa removed duplicate type declaration on OSX (needed by c++11) 2014-05-06 08:09:25 +00:00
kelson42 4e05d0dea6 Change CTPP2 #include paths (add 'ctpp2/') 2014-05-05 14:14:11 +02:00
rgaudin 26b2e504f3 fixed includes for CTPP2 2014-05-04 20:11:48 +00:00
Kelson42 8573f9eda0 make kiwix::urlDecode() available for Android 2014-05-04 14:41:48 +02:00
kelson42 9a5e6d70d6 + Change license header 2014-05-03 18:00:54 +02:00
kelson42 1c2a03e287 + getContentByEncodedUrl() and getContentByDecodedUrl() 2014-04-29 17:42:46 +02:00
kelson42 8397c81e6f * merge unescapeurl() with the kiwix:urlDecode()
* create getContentByDecodedUrl() and getContentByEncodedUrl()
2014-04-29 17:41:52 +02:00
kelson42 5e974f67c6 + merge Reader::unescapeUrl() and Kiwix::urlDecode() 2014-04-29 17:40:12 +02:00
kelson42 3265de1579 + Use now kiwix::sleep(0 2014-04-02 17:04:19 +02:00
kelson42 69684009e3 + Add necessary header includes 2014-04-02 17:03:53 +02:00
kelson42 aeaede3834 + add kiwix::sleep() method 2014-04-02 16:55:35 +02:00
kelson42 ae390de24b + Stub class to store custom generic varia functions 2014-04-02 16:43:56 +02:00
kelson42 71082cf581 + Add indexer destructor (to avoid compilation warning with "non-virtual destructor") 2014-04-02 16:38:15 +02:00
kelson42 84b8a86c3e Try to fix some problem with unicode path loading on windows 2014-01-06 03:27:03 +01:00
kelson42 fc6254090a + remove clucene source files 2013-12-16 15:22:21 +01:00
kelson42 840442fccd + remove debug messages 2013-12-16 13:33:29 +01:00
renaud gaudin 6ed0acfde4 Merge branch 'master' into extern_zimlib 2013-12-09 12:07:38 +00:00
renaud gaudin fd9c9ac17e catching up with master 2013-12-09 12:02:58 +00:00
rgaudin fcf84811c6 Fixed extern compile (static) on linux and removed Clucene dependency 2013-12-09 10:51:06 +00:00
Kelson42 bf4381d4f4 Remove usage of UnicodeString.tempSubString() which is only available in recent versions of ICU 2013-11-24 13:22:05 +01:00
renaud gaudin 8bb7c040b1 Fixed CTPP2 loader to use resource instead of file 2013-11-14 18:50:26 +00:00
renaud gaudin 2a8d7fde56 Fixed CTPP2 not working
* Fixed templates
* Changed behavior of getHtml() to use higher level VM API
2013-11-13 19:58:56 +00:00
kelson42 ad20fde08f + android integrates now libicu 2013-11-12 02:03:34 +01:00
kelson42 39fa510af5 + improve suggestions search, search also entitled words 2013-11-10 17:54:11 +01:00
kelson42 987d6f672f + take care the nore than maxsuggestions is delivered 2013-11-10 17:42:52 +01:00
kelson42 2ad238f095 + fix kiwix:ucFirst and kiwix:lcFirst 2013-11-05 12:08:43 +01:00
kelson42 835388daf9 cleaner unescapeUrl() 2013-10-07 13:10:37 +02:00
kelson42 48fa26028f + fix small regression in the unescape_url() code 2013-10-06 20:58:20 +02:00
kelson42 696cfc90c3 + small beautifying of the code 2013-09-22 16:56:16 +02:00
kelson42 0bab890203 + fix small regression 2013-09-22 13:17:11 +02:00
kelson42 c9d1f562ff + fix a few typo/style stuff 2013-09-22 13:11:19 +02:00
Kiran Mathew Koshy 1299c4c264 wix::Manager::getBooksIDs() now returns diff files too. 2013-09-22 15:09:23 +05:30
Kiran Mathew Koshy 14a4394f6d Permanant fix for bug651.
Kiwix manager class is back to original state, additional function for obtaining origID has been added to Kiwix::Reader class.
Kiwix-manage and Kiwix-serve back to normal.
2013-09-20 18:35:20 +05:30
Kiran Mathew Koshy 2f89926616 Updated Kiwix::Manager class to accept origID as the last optional parameter, so as not to break existing tools which use Kiwix::Manager 2013-09-20 02:52:29 +05:30
Kiran Mathew Koshy c22b5a1d4c Rmoved title, favicon, faviconmimetype,description,author, publisher, date, language parameters from library file for diff files. 2013-09-18 15:55:29 +05:30
Kiran Mathew Koshy 7fbf20936e Updated kiwix::manager class to prevent it from returning a diff file as a normal book. 2013-09-13 14:59:44 +05:30
Kiran Mathew Koshy 7fd2dce1fa Modified Kiwix-manage to incorporate origID parameter for diff files in the kiwix library.
Book class and Manager class modified.

-Kiran
2013-09-06 04:09:35 +05:30
renaud gaudin d2a2802897 ctpp2 as external lib on unix 2013-08-10 22:14:18 +08:00
kelson42 75130b883b + load custom ctpp2 class 2013-08-07 12:24:48 +08:00
kelson42 80750edbdd + Isolation of a custom CTPP2 class 2013-08-07 12:24:16 +08:00
kelson42 bd81a2c662 + fix mgmt of custom libraries with relative paths 2013-08-06 13:43:26 +08:00
kelson42 435e7ac76f + fix in ro library mgmt 2013-08-06 13:09:34 +08:00
kelson42 c80914b774 + fix library update with readonly libraries 2013-08-06 12:41:14 +08:00
kelson42 34d69ae2c2 + better deal with relative/absolute paths 2013-08-05 19:08:50 +08:00
kelson42 cb95e1f2ee addBook() save also books pathAbsolute&indexPathAbsolute 2013-08-05 19:07:10 +08:00
kelson42 58f30fd0e5 + fix escaping character (%) parser in url parsing 2013-08-05 16:40:40 +08:00
kelson42 5d8593805f + fixes for Android 2013-08-05 13:11:35 +08:00
kelson42 2a13f2a177 + add kiwix string split() functions in android builds 2013-08-05 11:38:27 +08:00
kelson42 9b3064d945 + better deal with paths 2013-08-04 15:26:09 +08:00
kelson42 acc78f585b + replace a few variables with a CONSTANT
+ new method computeRelativePath()
2013-08-04 14:26:33 +08:00
kelson42 15b6c4f8b2 + move "intelligent" getTitle() code from library.cpp to reader.cpp 2013-06-22 00:39:10 +02:00
kelson42 4ab6898586 + replace POST method with GET method in kiwix-serve UI 2013-06-17 14:56:15 +02:00
kelson42 d38bc834c5 + new trial to fix the bug with the failing onclick on the kiwiwx-serve suggestion list 2013-05-21 11:09:35 +02:00
kelson42 d068ed9037 + last fix in the suggestion bug (with click) 2013-05-20 12:50:53 +02:00
kelson42 ae44b87f82 * FIXED: Buggy kiwix-serve suggestion click handling 2013-05-20 12:40:30 +02:00
kelson42 09a6877012 + avoid return pointer of a stack allocated memory block 2013-05-13 13:01:57 +02:00
kelson42 8b4941b55a + fix duplicate suggestion under certain conditions 2013-05-11 20:34:47 +02:00
kelson42 610257e4fd + include stdint.h on OSX 2013-05-07 21:21:49 +02:00
kelson42 2554f3e93a + try to fix compilation issue on OSX 2013-05-07 20:24:54 +02:00
kelson42 c67bbf3922 + fix for MSVC2010 2013-05-06 21:26:31 +02:00
renaud gaudin ea3f698d6f Fixed compilation on OSX [broken long ago by attempting to support OSX10.5] 2013-05-01 15:29:21 +00:00
renaud gaudin 8fcd9583c4 Added ifdef to exclude ICU/unicode code from Android build 2013-04-04 10:48:33 +02:00
kelson42 2d88190f28 * FIXED: Abstruse index names (#84) 2013-03-29 02:03:18 +01:00
kelson42 499b50172f + small visual UI fixes 2013-02-12 19:33:00 +00:00
kelson42 3784118bb2 * FIXED: kiwix-serve crahs if really long URL (#400) 2013-02-12 18:55:09 +00:00
kelson42 36f0b977f7 * FIXED: kiwix-serve UI for non-javascript browsers like Dillo (#587) 2013-02-12 18:13:01 +00:00
kelson42 fd9c259d2a + fix problems on windows with relative paths 2013-01-11 10:53:17 +00:00
kelson42 c0847edec9 + remove useless debug message 2013-01-05 16:20:43 +00:00
kelson42 306b7ebbb0 + fix fulltext result page for pattern including mustbeurlencoded characters 2012-12-30 16:55:08 +00:00
kelson42 bb62f3aa94 + kiwix-serve page margin-top a little bit bigger 2012-12-20 22:30:35 +00:00
kelson42 5bf6988e24 * FIXED: Buggy filtering by size in the library 2012-11-25 11:29:06 +00:00
kelson42 9dc430b07c + remove useless comments 2012-11-20 00:11:56 +00:00
kelson42 5b5abceda4 + some fixes in static pages 2012-11-15 14:06:30 +00:00
kelson42 76596f8f35 + improve a few static html templates 2012-11-15 14:00:32 +00:00
kelson42 c74bb9c939 + better html conformance for static pages 2012-11-15 13:51:33 +00:00
kelson42 1823771770 + lang. fix in the result page template 2012-11-10 22:48:30 +00:00
kelson42 c90d2238d0 STD style tree code (for a better suggestion system) 2012-11-06 16:39:04 +00:00
kelson42 249f9ccf6b + port ip detection for server mode to MS/Windows 2012-10-22 07:12:22 +00:00
kelson42 6e0b99a32f + better computer ip detection for computing server url 2012-10-21 18:53:38 +00:00
kelson42 1acb7b4d29 * NEW: Indexing progression more accurate 2012-10-19 18:47:02 +00:00
kelson42 49ec0b5652 + small fix for better support of Windows 2012-10-15 17:53:18 +00:00
kelson42 956d37dee8 better deal with *.zimaa paths 2012-10-14 12:18:57 +00:00
kelson42 63c210db1c + better exception management 2012-10-14 11:39:21 +00:00
kelson42 f165747f16 NEW: if "/M/Description" empty, check "/M/Subtitle" (used by Mediawiki Collection ext.) 2012-10-08 10:42:34 +00:00
kelson42 2240b11224 + better alloc memory 2012-10-08 10:27:30 +00:00
kelson42 7a0aab3917 + more article to index at the same time 2012-09-06 05:34:30 +00:00
kelson42 dbbab7622e + delete a pointer 2012-09-05 17:55:18 +00:00
kelson42 3e24b168da + fix sync. bug in multithreading indexer 2012-09-05 15:43:53 +00:00
kelson42 3a884083de + small fix of a typing error 2012-09-05 11:49:57 +00:00
kelson42 65b6efc307 + more debug informtion in the indexer 2012-09-05 11:06:42 +00:00
kelson42 ebd9ee6c01 + code fix 2012-09-04 05:33:37 +00:00
kelson42 f48f059d99 + few compilation fixes 2012-09-03 09:07:58 +00:00
kelson42 4f692eabd1 + clean code 2012-09-02 08:15:56 +00:00
kelson42 10d855ced5 + first version of stopwords support 2012-09-01 11:54:23 +00:00
kelson42 e4f52e355d + improve the verbose messages 2012-08-29 22:25:28 +00:00
kelson42 a0b8ef99fc + replace sleep() by usleep(0 2012-08-29 22:21:41 +00:00
kelson42 0c6bf971bf + size initialisation (=0)x 2012-08-26 09:29:44 +00:00
kelson42 8de4dd9ce0 + move improved suggestion system (check also variations of the prefix) to reader.cpp 2012-08-25 15:36:41 +00:00
kelson42 f3bdf98a51 + size in KB (not in Bytes) 2012-08-22 15:11:40 +00:00
kelson42 ea8f560c76 + fix escaping problem by kiwix-serve suggestions 2012-08-15 19:17:45 +00:00
kelson42 f8bb4a9998 + ucFirst() and lcFirst() functions 2012-08-15 18:50:24 +00:00
kelson42 59d67aa036 + remove js warning in kiwix-serve autosuggest 2012-08-14 16:36:18 +00:00
kelson42 68cf5e4977 + move unaccent.[h|cpp] to stringTools.[h|cpp]
+ remove unaccent.[h|cpp]
+ put stringTools.[h|cpp] methods in the "kiwix" namespace
+ modify code & compilation script to keep everything compiling
2012-08-14 10:58:03 +00:00
kelson42 6cac5e6320 + remove useless js code 2012-08-14 07:11:45 +00:00
kelson42 c55de68072 + implement the suggestion in kiwix-serve 2012-08-13 23:37:51 +00:00
kelson42 d37e2355f8 + in computeAbsolutePath(), if "root" path is empty, compute with the current path 2012-08-13 22:47:09 +00:00
kelson42 0305c3fff5 + buffer of 5000 instead of 10000 for the indexer 2012-08-08 21:57:10 +00:00
kelson42 6067fab7f3 + better "verbose" mode 2012-08-08 14:39:40 +00:00
kelson42 67211be8ad + better computation of ZIM files sizes 2012-08-05 18:44:05 +00:00
kelson42 cef66b20e1 + getFileSize() method 2012-08-05 18:34:44 +00:00
kelson42 e9740183c2 + replace C code with C++ 2012-08-05 18:03:44 +00:00
kelson42 f4dc0a43e0 * FIXED: kiwix-serve memory leak on ARM (ID: 3538663) 2012-07-29 22:56:07 +00:00
kelson42 4d15525dca + remove a few function attribute references 2012-07-25 16:29:49 +00:00
kelson42 6ae3c27195 + fix small regression in indexinv (title were without accents) 2012-07-12 17:51:23 +00:00
kelson42 d1ccecc5f7 + fixed indexing progression > 100% (ID: 3539572) 2012-07-05 10:30:10 +00:00
kelson42 28138e7ff9 + change call of function appendToFirstOccurence() and replaceRegex() 2012-06-28 12:53:06 +00:00
kelson42 084af011dd + try to fix ZIM loading problem on Windows with library relative paths 2012-06-14 18:32:41 +00:00
reg_ 3a5b7fabc1 added #include <unistd.h> for GCC 4.7+ 2012-06-07 15:21:10 +00:00
kelson42 2cd537fd02 + try to fix the problem with corrupted resources on arm kiwix-serve 2012-05-20 10:53:00 +00:00
kelson42 f29a845682 + realloc values before creating the string 2012-05-19 19:16:26 +00:00
kelson42 ae8882bd58 + new version of the resources 2012-05-12 21:27:24 +00:00
kelson42 4259de99f2 + change HTML ids of kiwix taskbar 2012-05-03 10:11:05 +00:00
kelson42 fd87db6844 + xapian writabledatabase::close() only for Windows 2012-04-28 17:22:33 +00:00
kelson42 4dd4d510c9 + Move beautifyInteger() to stringTools.[h|cpp] 2012-04-28 16:16:54 +00:00
kelson42 f48df4a960 + move splitString.[h|cpp] to stringTools.[h|cpp] 2012-04-28 16:01:27 +00:00
kelson42 508fd68958 + fix small regression in kiwix-serve search engine display 2012-04-24 18:09:09 +00:00
kelson42 b61db587ac + new resources 2012-04-24 16:35:10 +00:00
reg_ 91245974e2 fixed indexer UI on OSX 2012-04-24 16:25:03 +00:00
kelson42 2acadfb0c9 + remove small -reorder compilation warning 2012-04-24 15:20:09 +00:00
kelson42 040ace5091 + replace in the searcher the usage of dynamic loaded template file by the usage of a resource 2012-04-23 21:20:25 +00:00
kelson42 359f386ebe + first version of the resourceTools 2012-04-23 17:36:09 +00:00
kelson42 d00142d1cd small improvement of getHumanReadableIdFromPath() 2012-04-23 11:15:32 +00:00
kelson42 b8a13ede0a + small windows adaptation to the function to get the exe full path 2012-04-19 16:22:45 +00:00
reg_ 17a4c42eb3 fixed getExecutablePath() on OSX 2012-04-19 16:10:34 +00:00
kelson42 bec68ffa13 + close cleanly the writabledatabse at the end of the indexing process 2012-04-19 13:31:15 +00:00
kelson42 b40a317bf0 + introduce Sleep() for Windows 2012-04-19 12:10:05 +00:00
kelson42 9c3c3a1f68 Manager::readFile() returns now false if the file can not be found/open/read 2012-04-19 08:18:50 +00:00
kelson42 8f69987929 + last improvement of the new kiwix-serve 2012-04-16 23:21:37 +00:00
kelson42 54cb99d074 + add unaccent.[c[[|h] to Makefile.am
+ fix some regression added few hours ago
2012-04-16 22:48:12 +00:00
kelson42 179ed1917d + Book.getHumanReadableIdFromPath() 2012-04-16 19:32:24 +00:00
kelson42 2e8806e4d7 + sort contents by date DESC 2012-04-16 16:18:42 +00:00
kelson42 12fd7eb06a + comment a xapian commit(), not mandatory and not available in old xapian versions 2012-04-16 14:31:25 +00:00
kelson42 52348ef11c + fix different stuff related to the new indexer 2012-04-07 20:48:55 +00:00
kelson42 1fd0314f1e + small fix to avoid system error by "killing" the indexing 2012-04-07 20:27:56 +00:00
kelson42 6e5d8f717e + clucene fix for the new indexer 2012-04-07 19:31:11 +00:00
kelson42 5aacc01d65 + imp. of the new indexing process 2012-04-07 15:00:15 +00:00
kelson42 65b4015f03 + new indexer 2012-04-07 14:09:47 +00:00
kelson42 62daa9ffe5 + new indexer code 2012-04-06 21:48:43 +00:00
kelson42 735d9afd3a + imp. of the new indexer 2012-04-03 10:55:49 +00:00
kelson42 9ead81ca0c + compute "default" title if not specified in the ZIM file metadata 2012-04-02 19:52:19 +00:00
kelson42 2ae7112a32 + fix small bug in the new indexer 2012-04-02 19:49:16 +00:00
kelson42 9e8d6f3c25 + first working version of the multithreaded indexer 2012-04-02 18:25:10 +00:00
kelson42 6e66fd176d + further dev of the multithreader indexer 2012-03-29 13:33:15 +00:00
kelson42 e930f65297 + further multithreaded indexer dev. 2012-03-29 09:42:35 +00:00
kelson42 20daa92b65 + start of the work on the multithreading indexer 2012-03-28 14:59:57 +00:00
kelson42 81424fedf3 + new function def. for the indexer 2012-03-15 19:18:48 +00:00
kelson42 e6299aaeab + stub of new functions 2012-03-15 18:41:46 +00:00
kelson42 1455c1bfbc FIXED: Library filtering by language with ISO639-1 language ZIM metadata 2012-03-08 21:13:09 +00:00
kelson42 288b0018fa + exception include 2012-03-07 17:25:33 +00:00
kelson42 b17f6a6d01 FIXED: Kiwix-serve sporadic invisible search box with non-latin contents 2012-02-27 17:57:26 +00:00
kelson42 8f89edf17c + fix bug in regex insertion (string was inserted in wrong place) 2012-02-27 17:25:01 +00:00
kelson42 bc8a400fd1 FIXED: Number of articles to high in the library (ID: 3396763) 2012-02-27 11:32:06 +00:00
kelson42 0b50729e03 + fixed compilation with clucene 2.3 2012-02-07 23:41:03 +00:00
kelson42 1fb5194906 + new getCurrentBook() method 2012-01-24 12:45:22 +00:00
reg_ 19c355241c fixed OSX indexing never ending 2011-12-22 14:07:28 +00:00
kelson42 d0d08c4f96 + better default page loading 2011-12-22 11:54:19 +00:00
kelson42 fb1d0893e3 + remove useless comment 2011-12-22 11:25:59 +00:00
kelson42 72e62fab6b + move appendToFirstOccurence() to regexTools.cpp and use now ICU as regex engine 2011-12-22 11:25:24 +00:00
kelson42 73217d5e49 + small bug fix for windows 2011-12-20 20:11:56 +00:00
kelson42 784f87e715 + port to windows 2011-12-17 14:59:43 +00:00
kelson42 4b545b8ae2 2011-12-12 14:49:49 +00:00
kelson42 faff227365 + port makeDirectory to WIN32 2011-12-10 18:52:11 +00:00
kelson42 8df9c53878 + fix the implementation of the arrows in the search restult page 2011-12-04 15:11:38 +00:00
kelson42 aa9ebdb87e + * Add "First" and "Last" arrows in the search result page (ID: 3442313) 2011-12-04 13:40:22 +00:00
kelson42 d851d065e8 + small modification in the behaviour of addBook() 2011-11-28 10:50:57 +00:00
kelson42 74caed4811 Fix a wrong behaviour in case of two portable kiwix consecutive runs (ID: 3442083) 2011-11-26 09:32:02 +00:00
kelson42 fb12ac5eb1 + small improvment of getMainPageUrl() 2011-11-26 07:14:09 +00:00
kelson42 9d4fd28ba6 * In the library, pressing <ENTER> in your local library directly open the file
* Greying "Load random article" menu entry if no content is loaded (ID: 3439112)
* Add the support of the "publisher" ZIM Metadata
2011-11-18 14:25:21 +00:00
kelson42 97548d4798 + better deal by SetIndexBook() and SetBookPath() with relative paths.
+ Add addBookFromPathAndGetId() to know which book id has the added book
2011-11-01 15:07:30 +00:00
kelson42 bf58cf6b76 + small fix to be able to save relative path in addBookFromPath() 2011-11-01 12:58:34 +00:00
kelson42 79d00c2b36 + small fix to avoid duplicate slashes in paths 2011-11-01 12:58:00 +00:00
kelson42 5922808e12 + copyFile() & getLastPathElement() 2011-11-01 12:25:33 +00:00
kelson42 f2280a6b02 + bool makeDirectory(const string &path); 2011-11-01 10:57:51 +00:00
kelson42 cfa00c33f2 + fix bug in path computation in computeAbsolutePath() 2011-11-01 10:04:16 +00:00
kelson42 9d371f295c + use libicu in regexTools 2011-10-31 09:55:34 +00:00
kelson42 9c9b32f897 + fixed a regression I added one week ago 2011-10-31 09:46:38 +00:00
kelson42 5bd84c8db7 + add the fileExists() function 2011-10-28 16:13:44 +00:00
kelson42 400cf57343 + remove a few warnings with better parentheses and a cast 2011-10-28 16:06:19 +00:00
kelson42 98bf706297 + better factorisation of the code (moved from manager.cpp to pathTools.cpp) -> creation of functions getFileSize() and getFileSizeAsString() 2011-10-28 15:54:31 +00:00
kelson42 9182f4e529 + reorganisation of the code: creation of componentTools.[h|cpp] with two methods for charset manipulation (only used in contentManager XPCOM) and move of 3 path manipulations functions from manager.cpp to pathTools.cpp 2011-10-28 15:40:17 +00:00
kelson42 7e00a3339d + introduction of ternary operators 2011-10-24 13:26:53 +00:00
kelson42 8dce6d645e + remove useless string init. (string foobar="") 2011-10-24 13:13:50 +00:00
kelson42 c40a87837e + less if, more efficient 2011-10-24 12:55:12 +00:00