Git Product home page Git Product logo

Comments (3)

E-Sh4rk avatar E-Sh4rk commented on August 19, 2024 1

@AliaumeL it seems to work, I've added some instructions in the readme.
What commands should I try in order to be sure that everything works?

from akl.

E-Sh4rk avatar E-Sh4rk commented on August 19, 2024 1

Everything worked captain! My PDF viewer doesn't show the boxes but they are here, I can click on them and get the notification. Maybe there is a setting to show them, I'll take a look later.

from akl.

AliaumeL avatar AliaumeL commented on August 19, 2024

Ok, this is the time to write a minimal test suite ^^

The basic commands that should do something without failing are

# try to convert a pdf file explicitly
# this should write a pdf that can be viewed on the operating system
akl convert --uri "input.pdf" --output "output.pdf"

# test if an arxiv import (with automatic download) works
akl import --uri "https://arxiv.org/abs/2306.06420" --title "Test Title" --authors "Test" --authors "Test" --identifiers "arxiv:2306.06420" --identifiers "doi:10.48550/arXiv.2306.06420" 

# Test if the pdf can be resolved afterwards using the various identifiers
# all of the commands below should output the same value
akl resolve --uri "doi:10.48550/arXiv.2306.06420"
akl resolve --uri "https://arxiv.org/abs/2306.06420"
akl resolve --uri "arxiv:2306.06420"

# See that you have only one pdf in the library
# this should output 1
akl find | wc -l

# Test if akl is able to successfully access the clipboard of the host system
# this should put the following string in the system clipboard and produce
# a notification 
# "arXiv:2207.07614?page=17&dest=thm.1"
akl cite --uri "doi:10.48550/arXiv.2306.06420" --page "17" --dest "thm.1"


# Now test if akl is able to correctly call the pdf viewer 
# of the given platform ...
akl open --uri "doi:10.48550/arXiv.2306.06420"

If some of the above fail, there already is a big problem ^^.

If they do not fail, the next step is to check if the pdf viewer correctly calls the akl program. For that, it suffices to open a pdf using akl open --uri "doi:10.48550/arXiv.2306.06420" and check that clicking on the blue boxes triggers notifications.

from akl.

Related Issues (15)

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.