hugolabe / wike Goto Github PK
View Code? Open in Web Editor NEWWikipedia Reader for the GNOME Desktop
Home Page: https://hugolabe.github.io/Wike/
License: GNU General Public License v3.0
Wikipedia Reader for the GNOME Desktop
Home Page: https://hugolabe.github.io/Wike/
License: GNU General Public License v3.0
The table of contents can be rather tricky to navigate as well as difficult to get a overview of, especially the headers are nested in multiple levels.
I would propose to add a sidebar for the table of contents such as the one in Evince.
https://linuxmasterclub.com/wp-content/uploads/2020/10/Evince.-Sidebar.-Content.png
This sidebar could be toggleable using F1 (like Evince, Nautilus, gedit, etc).
On version 1.5.7 the preview popup doesn't seem to work, i seem to only get tooltips instead of the previews. I noticed it on the flatpak version but also looked at the native fedora package and couldn't them there either
Nice idea and good feature set!
However, when I am scrolling with the mouse, it feels way too slow (same problem with epiphany).
Wike 1.1.0 from Flathub
When finding text on the page (Ctrl+F) there could be an toggle option to match diacritics.
Currently Wike always matches diacritics so if you search for "Ånger" it also finds "Anger".
It would be nice if the lengthy list of languages in the preferences dialog was filterable or searchable.
When clicking a picture to see it with the application's viewer, the bottom of the image is often hidden by the bottom-titlebar (with the author, license...). It apparently occurs when the picture is big. [picture1]
A solution is to click on the picture to make the bottom-titlebar disappear [picture2] and then to scroll down to see the bottom of the picture, but it's not very convenient, and there is a sort of blank / empty space on the left and right sides, which is not very esthetic.. [picture3]
This software is really cool, but it would be good if you add multiple tabs.
HI,
Thank you for this useful software.
I would like to search for articles in French by default. I have checked "fr" in the preferences and unchecked "en" for English but inevitably when I search for an article, I get the English article as a response.
What should I do to solve this?
Thanks
Alex
A new icon can be requested for the Icon Development Kit by opening an issue at https://gitlab.gnome.org/Teams/Design/icon-development-kit/-/issues
Is there any way to change the default search language from English to other, without having to set it every time you open a tab?
In addition to the very nice dark mode, it would be nice to have the option of a sepia mode.
Font color: #5b4636
Background color: #f4ecd8
I purpose the ability to download an article as PDF, this is not hard to do, wikipedia alredy has this feature and adding it would be just the same process as "Open Wikipedia page in browser". Simple feature that would be very useful.
Screenshots/Examples:
https://en.wikipedia.org/w/index.php?title=Special:DownloadAsPdf&page=Alexei_Navalny&action=show-download-screen
As i tested you can also download it directly without landing in the Download as PDF page with:
https://en.wikipedia.org/api/rest_v1/page/pdf/Patriot_Act
https://en.wikipedia.org/api/rest_v1/page/pdf/Name_Of_Article
Sometimes when reading an article, I would like to edit it.
It would be good with a "Open Link in Web Browser" entry in the context menu when right-clicking on a link.
Usually, these smaller pop-out windows (I don't know how to call them) like the preferences window should stick to the main parent window. Wike does this for the About window and the Keyboard Shortcuts window, but not for the preferences window.
At first I didn't quite understand what this button did. It's also used in the preferences window's view switcher. But now I've understood it's to change the language of the page. The little flag icon doesn't ring a bell here on what it's about, so maybe replacing it with globe-symbolic
would make it clearer, as that's generally the kind of icon websites use for that purpose (and anyway seeing a globe like that seems nearer to a "Language" button than a flag…).
The flag icon is sometimes used on the web to signify "report a post/flag a comment". Myself it took me a while to find where to change the language.
A few examples of language icons with better metaphors:
Some languages in Wikipedia can be displayed in multiple scripts. In Serbian, for instance, Wikipedia offers an option to display Serbian articles in Latin or Cyrillic. Likewise for Chinese, which has Traditional (for Hong Kong, Macau, and Taiwan) and Simplified (chiefly Mainland China) scripts. It would be great if we could read articles exclusively in our chosen script for such languages.
P.S. I would have asked if this app could be more than just a Wikipedia reader, since it's built on MediaWiki, but I could wholly bet that will never happen. ✌
If you press F2 or Ctrl+K it could handle URLs to Wikipedia articles.
Example if you paste in:
https://en.wikipedia.org/wiki/Linux
or
https://en.m.wikipedia.org/wiki/Linux
Then it knows you want the Linux article.
Would it be possible to have an item, when you right-click on the images, allow you to save the images to pc without having to go through the browser?
F10 to open the menu.
F11 to toggle fullscreen.
Ctrl+? show keyboard shortcuts.
Ctrl+L (in addition to Ctrl+K) for article search. Epiphany, Chrome, Edge, Firefox all support both Ctrl+K and Ctrl+L.
It is hard to read on a phone/tablet when the font size is 20. It would be great if the maximum fontsize can be increased beyond 20 (at the moment I am not sure what the upper limit should be. But 30 or 40 may be good on a small screen).
I encountered this issue in an Android phone running Ubuntu in Termux, but the same issue may be present in PinePhone or Librem 5 phone.
Is it difficult for a guy who doesn't know anything about coding? I'd like a wrapper for Notion.
Since the wikipedia pages shown by Wike will almost never have a text input area, it makes sense to provide a type-to-search feature like all GNOME apps. Searching in a page is less often useful than opening a new page I'd say (and it has Ctrl+F even then), so searching for a new page using the headerbar's entry is a reasonable behavior when typing text in the app.
In a laptop, one needs to type fn + f2 to search for articles.
It is quite awkward to quickly type this key pair (it is hard to quickly and accurately reach f2 with one finger, after pressing fn with another finger).
Something like ctrl + shift + f would be more convenient.
When building without gettext, I get this error:
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
WARNING: Gettext not found, all translation targets will be ignored.
data/meson.build:9:0: ERROR: Tried to assign an invalid value to variable.
A full log can be found at /builddir/Wike-1.5.4/build/meson-logs/meson-log.txt
Since the wikipedia page's own document outline is hidden in Wike, the only place where the outline can be accessed is from the not very visible popover in the headerbar. Since it's implemented as a popover menu, it can't be shown in a tree-like manner, making it a bit more difficult to find a particular information from the (usually) quite general top-level headings. As such, I wonder if the document outline could be moved to a sidebar (on the left?) shown in a tree-like manner for easier access. That would make it nicer to use and more accessible there IMO :)
On a related note, I'd like to thank you for making this very nice app! :) I often read wikipedia pages and this app allows me to have a more native and specialised app for reading Wikipedia, while separating it from the main browser activities (the same as e.g. a wiktionnary or software documentation app provide). I don't know trademark laws, but I wonder if a permission is needed from the Wikimedia Foundation to use the "W" in the logo. The logo already seems to respect the Visual identity guidelines, but its use here isn't explicitely in the YES section of the Trademark Policy, so maybe "getting a regular license" is needed from there? I doubt they would object to its use, but it's likely a good idea to get that sorted out.
When
the language switch does either not repopulate or does not open the suggestion popup. Looking into the source code, I suspect it is the former.
Therefore, it is required to make dummy key presses like entering a space to re-trigger the suggestion popup.
'Search «%s» in Wikipedia'
should probably be 'Search “%s” on Wikipedia'
.
Is it possible to extend Wikitionary in this application?
If not, is it feasible to make a new wikitionary application from this?
I set my language to German but despite that all the searches still happen in English and when I open Wike the program opens the english start page.
Would be awesome to get Wikipedia results when you search on GNOME Shell.
When finding text on the page (Ctrl+F) there could be an option to match case (toggle case sensitive search).
switching between languages are very boring. and somewhere (in live desktop search) is impossible.
It's better to can search in all selected languages.
Thanks!
"Use Custom Font" option in settings uses a combo box, which is awkward and not searchable. GTK has a standard font picker widget, which would be more fitting.
Please add the following:
hr
abbreviation to the LINGUA fileLog of Meson test suite run on 2021-04-12T18:46:31.340573
Inherited environment: SHELL=/bin/bash COLORTERM=truecolor SUDO_GID=0 TEXTDOMAINDIR=/usr/share/locale SUDO_COMMAND='/bin/bash -c chrootbuild wike fs' SUDO_USER=root PWD=/build/wike/src SOURCE_DATE_EPOCH=1618253190 LOGNAME=builduser CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' XAUTHORITY=/run/user/1000/gdm/Xauthority COMMAND_MODE=legacy LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now HOME=/build LANG=en_US.utf8 CPPFLAGS=-D_FORTIFY_SOURCE=2 MAKEFLAGS=-j17 TERM=xterm-256color USER=builduser DISPLAY=:0 SHLVL=2 LC_ALL=en_US.UTF-8 CHOST=x86_64-pc-linux-gnu PATH=/build/.local/bin:/build/.local/bin:/home/yochanan/bin:/home/yochanan/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' SUDO_UID=0 MAIL=/var/mail/builduser OLDPWD=/build/wike/src TEXTDOMAIN=pacman-scripts _=/usr/bin/meson
1/3 Validate desktop file FAIL 0.01s exit status 1
18:46:31 MALLOC_PERTURB_=218 /usr/bin/desktop-file-validate data/com.github.hugolabe.Wike.desktop
----------------------------------- output -----------------------------------
data/com.github.hugolabe.Wike.desktop: error: value "GNOME;GTK;Internet;" for key "Categories" in group "Desktop Entry" contains an unregistered value "Internet"; values extending the format should start with "X-"
data/com.github.hugolabe.Wike.desktop: hint: value "GNOME;GTK;Internet;" for key "Categories" in group "Desktop Entry" does not contain a registered main category; application might only show up in a "catch-all" section of the application menu
------------------------------------------------------------------------------
2/3 Validate schema file OK 0.00s
18:46:31 MALLOC_PERTURB_=61 /usr/bin/glib-compile-schemas --strict --dry-run /build/wike/src/Wike-1.1.0/data
----------------------------------- output -----------------------------------
------------------------------------------------------------------------------
3/3 Validate appstream file FAIL 0.40s exit status 1
18:46:31 MALLOC_PERTURB_=70 /usr/bin/appstream-util validate data/com.github.hugolabe.Wike.metainfo.xml
----------------------------------- output -----------------------------------
stdout:
data/com.github.hugolabe.Wike.metainfo.xml: FAILED:
• style-invalid : <ul> cannot start a description [(null)]
• style-invalid : Not enough <p> tags for a good description [0/1]
stderr:
Validation of files failed
------------------------------------------------------------------------------
Summary of Failures:
1/3 Validate desktop file FAIL 0.01s exit status 1
3/3 Validate appstream file FAIL 0.40s exit status 1
Ok: 1
Expected Fail: 0
Fail: 2
Unexpected Pass: 0
Skipped: 0
Timeout: 0
I get the following build error in Manjaro as well as Ubuntu 20.04.
$ meson builddir --prefix=/usr/local
The Meson build system
Version: 0.59.1
Source dir: /home/archisman/Wike
Build dir: /home/archisman/Wike/builddir
Build type: native build
Project name: wike
Project version: 1.5.7
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/bin/python)
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Configuring com.github.hugolabe.Wike.SearchProvider.service using configuration
Configuring wike using configuration
Configuring wike-sp using configuration
Program build-aux/meson/postinstall.py found: YES (/home/archisman/Wike/build-aux/meson/postinstall.py)
Build targets in project: 6
Found ninja-1.10.2 at /usr/bin/ninja
$ sudo ninja -C builddir install
ninja: Entering directory `builddir'
[2/4] Generating com.github.hugolabe.Wike.desktop_data_merge with a custom command
FAILED: data/com.github.hugolabe.Wike.desktop
/usr/bin/meson --internal msgfmthelper ../data/com.github.hugolabe.Wike.desktop.in data/com.github.hugolabe.Wike.desktop desktop ../data/../po
../data/../po/sv.po:432: 'msgid' and 'msgstr' entries do not both begin with '\n'
msgfmt: found 2 fatal errors
[3/4] Generating com.github.hugolabe.Wike.metainfo.xml_data_merge with a custom command
FAILED: data/com.github.hugolabe.Wike.metainfo.xml
/usr/bin/meson --internal msgfmthelper ../data/com.github.hugolabe.Wike.metainfo.xml.in data/com.github.hugolabe.Wike.metainfo.xml xml ../data/../po
../data/../po/sv.po:432: 'msgid' and 'msgstr' entries do not both begin with '\n'
msgfmt: found 2 fatal errors
ninja: build stopped: subcommand failed.
Nice idea and good feature set!
Wike 1.1.0 from Flathub
I would like a even more native look. That would mean to have Cantarell as font. I see three options here:
gsettings get org.gnome.desktop.interface document-font-name
Thank you for wike! Is a really nice little app that I am enjoying a lot.
I would like to ask for a feature: I would be really nice if wike enabled dark mode when a dark GTK theme is been used.
I have my ubuntu install configured to change to yaru-dark at sunset and many apps and webpages (all of them if using Dark Reader on Firefox) also change to dark mode when the gtk theme is changed. Wike does not and it would be really nice if it did.
It is not a big deal to enable it manually, but it would be a nice quality of life improvement if is easily doable.
Great programme!
One feature that may be a bit complicated to add but I think would make a lot of sense would be to have an offline database of articles as an addition to bookmarking (perhaps an altogether different option to download or perhaps as an option to download a bookmark).
<3
It would be really nice to be able to use this app on a linux phone like the pine phone but the AUR build lists this package as not available for aarch64. Coude the aarch64 tag be added to the AUR if it was verified to build correctly?
Would be a nice internationalization win if Wike detected the user's language and picked it for the default language to show wikipedia pages in.
If different than EN, then preselect EN as one of the languages to filter, so it would be easy to switch to it.
Reader mode should follow system light/dark theme.
The Wikipedia Android and iOS app has a feature to save wikipedia articles into a (or multiple) reading lists.
Synchronization is also possible, but an account is required for this feature.
Adding this feature would make it possible to read articles later or save important ones and be able to switch between devices when wanting to read an article.
Preferrably this would be implemented with support for not only the default list but for all the reading lists of the user.
There is also a browser extension that has this feature but the Wikipedia website itself does not yet have this, more info here: https://www.mediawiki.org/wiki/Wikimedia_Apps/Reading_list_browser_extension
Also, thanks a lot for making this!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.