Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download description as well #53

Open
lquenti opened this issue Jul 18, 2022 · 1 comment
Open

Download description as well #53

lquenti opened this issue Jul 18, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@lquenti
Copy link

lquenti commented Jul 18, 2022

First of all: Great program!

I code on a pretty old thinkpad with a 1366x768 resolution.

I haven't looked at the code yet. If you use the API, do they provide access to the problem description as well?

If that's possible and if you think that it would be a useful feature, I could implement it as well.

Would that be an acceptable feature or too bloaty?

@avborup
Copy link
Owner

avborup commented Sep 7, 2022

My apologies @lquenti, I simply haven't seen that this issue was created. It sounds like a great idea!

I would suggest putting this feature behind a flag to not confuse current users - and maybe allow setting the default in kitty.yml. Totally up you.

What do you think is the best format to save the problem statement in? Markdown would be wonky to look at in the terminal with the math symbols and missing images - however, you could just expect the user to use a markdown viewer. PDF would be able to embed math symbols and images but requires a way to create the PDF file. What are your thoughts?

I found the official Kattis Github organisation, and they have a repository Kattis/problemtools that converts the problem statement to HTML or PDF (via LaTeX).

I haven't looked at the code yet. If you use the API, do they provide access to the problem description as well?

As far as I know, there is no Kattis API. Looking at the web page, it seems to be server rendered - so I assume there is no public HTTP endpoint we can use. The solution might have to be web scraping, which shouldn't be too bad. Maybe have a look at Kattis/problemtools - they might have a way to get the problem statement.

If that's possible and if you think that it would be a useful feature, I could implement it as well.

That would be lovely!

Would that be an acceptable feature or too bloaty?

This depends on how it's implemented. If the final solution requires you to install LaTeX and all sorts of dependencies, then yes - that would be too bloaty. However, if no extra dependencies are needed, and the file size of the executable isn't insane - all good.

@avborup avborup added the enhancement New feature or request label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants