Comments (6)
Yes, I agree on the feature request. On my side I do not know how to resolve agnosticaly that problem.
from kiwix-apple.
Senario:
Consider this external link: https://en.wikipedia.org/wiki/Abraham%20Lincoln
After remove percentage encoding: https://en.wikipedia.org/wiki/Abraham Lincoln
Kiwix URL: kiwix://zimID/A/Abraham_Lincoln.html
Proposed approach A
Add associatedDomains array to zim files.
Example:
add "en.wikipedia.org" as associatedDomains, so app can map "en.wikipedia.org" to zimID
Things to figure out:
- Correct way to construct Kiwix URL based on external URL:
- Percentage encoding, "%20" -> "_", etc
- wiki -> A? I need to understand why it is "A", and will there be "B" or "C", etc?
- should I always make sure suffix ".html" exist?
- in libkiwix, make sure
bool getContentByURL
is cheap if I just need to check the existence of a URL, or a new API just to check if URL exist
Proposed approach B
In zim files, add redirections, or canonical url solver
Example:
wiki/Abraham%20Lincoln
-> A/Abraham_Lincoln.html
, app will simplify replace en.wikipedia.org with zimID
from kiwix-apple.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
from kiwix-apple.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
from kiwix-apple.
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
from kiwix-apple.
This ticket is a discussion / proposal (that hasn't had any actions or updates for a long period of time). Closing it as nothing needs to be fixed or done.
from kiwix-apple.
Related Issues (20)
- Fix FTP target folder for macOS releases
- Should we use phased release? HOT 5
- Should we rename DMG files and corresponding folder? HOT 10
- Unable to search with 人 as the third or later character HOT 3
- Video playback status HOT 2
- Document known issues with video handling in the wiki HOT 1
- Support range requests for video content
- After resuming app (iOS) video displayed black HOT 3
- Streaming uncompressed data (with direct access) HOT 7
- PDF in Nautilus made ZIM are not open via simple click HOT 9
- `Unable to load the article requested` when opening a ZIM HOT 4
- `mailto:` links are not opening the OS-configured mail application
- Test zimit2 support HOT 2
- Document how to get Kiwix debug log in Chrome HOT 1
- Stream data "in chunks" for compressed data via libzim
- On macOS the video is not "taking up" the full screen HOT 1
- Stop ignoring SW based ZIM files (from the library)
- Release 3.4.0
- Document in the README how to debug the webview
- ZIM metadata „illustration“ is not read properly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwix-apple.