GithubHelp home page GithubHelp logo

mkiol / zimpedia Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 7.0 156.1 MB

Offline reader for Wikipedia

License: Mozilla Public License 2.0

C 39.24% C++ 45.67% QMake 1.73% QML 12.01% Python 0.57% JavaScript 0.78%
sailfishos wikipedia zim

zimpedia's People

Contributors

carmenfdezb avatar eson57 avatar mkiol avatar popanz avatar quenty31 avatar rikudousage avatar s8321414 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zimpedia's Issues

Which IDE you use

Which IDE you use to develop to BB10 and Sailfish?

Sorry to ask here

FeatureRequest: Improve Zimpedia

Hi mkiol
i like zimpedia a lot, so i want to know if is there are plans to improve this wonderful app?
i wish zimpedia more powerful on renderer and without webview,
i will contribute with 50EU : )
thanks

Request COMPILE file

I wanted to compile it to give it a try - on Ubuntu. But there is no compilation instructions and I was quickly stuck with the following error message:

g++ -m64 -o Zimpedia http_parser.o qhttpconnection.o qhttprequest.o qhttpresponse.o qhttpserver.o article.o articlesearch.o articlesource.o bunzip2stream.o bzip2.o bzip2stream.o cluster.o deflatestream.o dirent.o envvalue.o file.o fileheader.o fileimpl.o fstream.o indexarticle.o inflatestream.o lzmastream.o md5stream.o ptrstream.o search.o tee.o template.o unicode.o unlzmastream.o uuid.o zimcreator.o zintstream.o md5.o moc_qhttpconnection.o moc_qhttprequest.o moc_qhttpresponse.o moc_qhttpserver.o -L/usr/X11R6/lib64 -lbbplatform -lbbsystem -lbbdevice -lz -llzma -lbz2 -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread
Makefile:292: recipe for target 'Zimpedia' failed
/usr/bin/ld: cannot find -lbbplatform
/usr/bin/ld: cannot find -lbbsystem
/usr/bin/ld: cannot find -lbbdevice
collect2: error: ld returned 1 exit status
make: *** [Zimpedia] Error 1

I can't open Zimpedia file in my Jolla Tablet

I use Zimpedia in my phone without problems (I can open 11.16 Gb zim file from my sdcard). However, if I put this sdcard in my Jolla Tablet and open Zimpedia app, I can select the zim file but nothing is happend.

If I open zimpedia on terminal, I get the following output:

[nemo@Jolla ~]$ harbour-zimpedia
[D] QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62 - Using Wayland-EGL
[W] ZimServer::loadZimFile:85 - Unable to open ZIM file "/media/sdcard/ee635fc8-8b15-48c0-8c30-50606c3
af071/Wikipedia/wikipedia_es_all_2015-11.zim" !
[W] ZimServer::loadZimFile:86 - Details: error 11 seeking to end in file /media/sdcard/ee635fc8-8b15-4
8c0-8c30-50606c3af071/Wikipedia/wikipedia_es_all_2015-11.zim: Recurso no disponible temporalmente

Blank screen when I open zimpedia

I get next error when I open zimpedia from Terminal:

,---
| Sailfish OS 3.1.0.11 (Seitseminen)
'---
[nemo@Sailfish ~]$ harbour-zimpedia
[D] unknown:0 - Using Wayland-EGL
[W] unknown:0 - "Couldn't load translation for locale C from /usr/share/harbour-zimpedia/translations"
[D] unknown:0 - Scanning file: "/media/sdcard/TarjetaSD/Diccionario/wikipedia_es_all_novid_2018-04.zim"
[D] unknown:0 - ZIM major version: 5
[D] unknown:0 - ZIM minor version: 0
[D] unknown:0 - multipart: false
[W] modifyPageStack:113 - Error while modifying page stack: Error: Error while loading page: file:///usr/share/harbour-zimpedia/qml/FilesPage.qml:81 Cannot assign to non-existent property "text"

[W] unknown:483 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.js:483: Error: Error while loading page: file:///usr/share/harbour-zimpedia/qml/FilesPage.qml:81 Cannot assign to non-existent property "text"

[W] unknown:0 - Cannot open bookmarks file
[W] unknown:0 - No items

And zimpedia shows blank screen

Problem opening big zimfiles

Hi,

thanks for your effort creating zimpedia! I found an issue with opening big files (German wikipedia, about 4.2GB in my case). I can select the file, but nothing happens. On the terminal I get the following output:

[D] QWaylandEglClientBufferIntegration::QWaylandEglClientBu
fferIntegration:62 - Using Wayland-EGL
[D] main:53 - "Couldn't load translation for locale C from
/usr/share/harbour-zimpedia/translations"
[W] ZimServer::loadZimFile:74 - Unable to open ZIM file "/h
ome/nemo/wikipedia/wikipedia_de_all_nopic_2015-11.zim" !
[W] ZimServer::loadZimFile:75 - Details: error 75 seeking t
o end in file /home/nemo/wikipedia/wikipedia_de_all_nopic_2
015-11.zim: Value too large for defined data type

So it seems there is some problem with to small variable types in the zimfile reading code.

I can't open zim file

I've updated zim file to last version from https://dumps.wikimedia.org/other/kiwix/zim/wikipedia/wikipedia_es_all_maxi_2020-07.zim, but I can't open with Zimpedia.
I get next error if I open Zimpedia from Terminal:

nemo ~ $ harbour-zimpedia
[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Device pixel ratio: 1.75
[W] unknown:0 - "Couldn't load translation for locale C from /usr/share/harbour-zimpedia/translations"
[D] unknown:0 - Scanning file: "/media/sdcard/TarjetaSD/Diccionario/wikipedia_es_all_maxi_2020-07.zim"

Assertion failed at ../src/buffer.h:42
 size_.v[25971181513] < SIZE_MAX[4294967295]
/usr/share/harbour-zimpedia/lib/libzim.so.4(_Z15_on_assert_failIyjEvPKcS1_S1_T_T0_S1_i+0xfd) [0xf1d40dfa]
/usr/share/harbour-zimpedia/lib/libzim.so.4(_ZN3zim6BufferC1ENS_7zsize_tE+0x81) [0xf1d406c2]
/usr/share/harbour-zimpedia/lib/libzim.so.4(_ZN3zim10MMapBufferC2EiNS_8offset_tENS_7zsize_tE+0x1f) [0xf1d4b8b8]
/usr/share/harbour-zimpedia/lib/libzim.so.4(_ZNK3zim10FileReader10get_bufferENS_8offset_tENS_7zsize_tE+0x1dd) [0xf1d4938a]
/usr/share/harbour-zimpedia/lib/libzim.so.4(_ZN3zim8FileImplC2ERKSs+0xa99) [0xf1d3e776]
/usr/share/harbour-zimpedia/lib/libzim.so.4(_ZN3zim4FileC2ERKSs+0x1d) [0xf1d3b17e]
harbour-zimpedia(+0x1e83c) [0x436683c]
harbour-zimpedia(+0x208da) [0x43688da]
harbour-zimpedia(+0x20668) [0x4368668]
harbour-zimpedia(+0x20668) [0x4368668]
harbour-zimpedia(+0x21184) [0x4369184]
harbour-zimpedia(+0x293ee) [0x43713ee]
/usr/lib/libQt5Core.so.5(+0x8f27e) [0xef51727e]
/lib/libpthread.so.0(+0x6e6a) [0xef451e6a]
[W] unknown:0 - QMutex: destroying locked mutex
QObject::connect: invalid null parameter
Segmentation fault 

This file works fine in my PC using Kiwix, so I guess this issue is because of size of zim file. Is that the case? If nothing can be done I will use old zim file.

Thanks for your attention!

Few remarks & questions

Hi, I'm lead dev at Kiwix and maintain also the openZIM project. I'm really happy to see your effort starting. Not only because this offers a solution to read ZIM files on an additional system but also because we plan to rewrite our desktop port (OSX/Win/Linux) using Qt and that's what you use. I see that you have rewritten a lot from scratch (you don't seem to reuse neither the zimlib nor the Kiwx HTTP server kiwix-serve), may I ask why? Anyway, you are more than welcome to talked about Zimpedia on #kiwix IRC channel (Freenode), I would be really happy to exchange with you about these topics.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.