Git Product home page Git Product logo

Comments (6)

kelson42 avatar kelson42 commented on June 3, 2024

Yes, I agree on the feature request. On my side I do not know how to resolve agnosticaly that problem.

from kiwix-apple.

automactic avatar automactic commented on June 3, 2024

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.

stale avatar stale commented on June 3, 2024

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.

stale avatar stale commented on June 3, 2024

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.

stale avatar stale commented on June 3, 2024

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.

automactic avatar automactic commented on June 3, 2024

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)

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.