hugolabe / Wike

Wikipedia Reader for the GNOME Desktop
https://hugolabe.github.io/Wike/
GNU General Public License v3.0
231 stars 32 forks source link

Support custom MediaWiki sites #134

Closed bbb651 closed 1 year ago

bbb651 commented 1 year ago

There are a lot of other MediaWiki sites that can make the app a lot more useful, like game wikis (mostly fandom), disto wikis (like the arch wiki), other wikimedia foundations sites (like wiktionary), etc. As far as I know all of these share the same wikimedia api that wikipedia uses. Although it would still require a major rework to the way interacting with the api is currently done.

There are a number of potential issues I can think of:

hugolabe commented 1 year ago

Sorry, but I don't intend to add new services. Technically it poses many problems and would add a very high level of complexity, making the development and maintenance of the app more difficult.

I prefer to keep the app simple and manageable.

antoine-royer commented 1 year ago

I'ts quite fun because I've discovered this soft some days ago and I've exactly the same idea!

I've actually made a fork, I'm not familiar with CSS but the wikimedia API are all the same so by just modifying the URL in wikipedia.py I can access wiktionnary very easily: Capture d’écran du 2023-05-10 10-18-57 I don't try others wikimedia projects but I guess it's the same…

However the dark theme is broken and there is some fixes on the display (e.g. the left column). Maybe we can also select the Wikimedia project in the search bar as the language.

I understand that it makes a lot of additionnal work but I'm ready to work with you. I'll tell you if I get anywhere. Maybe we can also imagine several Wike projects with one project per Wikimedia project? It's maybe more simple than all in one…

antoine-royer commented 1 year ago

I know that this issue is closed but I think I've the begenning of something interesting! I'm very unfamiliar with gtk2 (I commonly use gtk3 with glade) so I think the GUI can be improved Capture d’écran du 2023-05-11 17-09-52 Capture d’écran du 2023-05-11 17-09-28 I'ts an additional setting into the search settings.

Here is a screen from a normal request: Capture d’écran du 2023-05-11 17-09-12

And there is a Wiktionnary requests with another language: Capture d’écran du 2023-05-11 17-10-49

I haven't tried yet but I think I can add other mediawiki ^^

antoine-royer commented 1 year ago

For the fun I tried Wikinews and it seems to work pretty well! Capture d’écran du 2023-05-11 17-19-31

The search suggestion works too.

antoine-royer commented 1 year ago

I forgot to give a screenshot of the modified search settings: image