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

gloobus-preview (linux) does not support .html files #28

Open
leodido opened this issue Oct 15, 2012 · 1 comment
Open

gloobus-preview (linux) does not support .html files #28

leodido opened this issue Oct 15, 2012 · 1 comment

Comments

@leodido
Copy link

leodido commented Oct 15, 2012

Hi,
how stated in the subject, gloobus-preview doesn't support html file.

So , imho, there is a way to get SublimePeek working in linux distros: use pdf file (supported by gloobus-preview).

Details:
1 - Directly generate .pdf documentation file using R CMD Rd2pdf utility (basic infos here: http://stat.ethz.ch/R-manual/R-devel/library/base/html/RdUtils.html)

OR

2 - Convert the .html generated file through wkhtmltopdf software (sudo apt-get install wkhtmltopdf) calling it directly from R (e.g. system(..)).
Pro: we can embed the css styled page into the pdf file.
Contro: SublimePeek has another requirement for Linux systems.

Then, adapt the SublimePeek.py script to search for pdf files when on linux (and R function ..).

Ah, I'm thinking also to another way to achieve this task.
3 - Call wkhtmltopdf from python only when required to convert the html into pdf e pass this to gloobus-preview. Then can be implemented a "caching" mechanism for the generated pdf files or not.

Sources:
1 - File type supported by: http://gloobus.net/gloobus-preview/
2 - Some tests

I hope to be helpful. Let me know what you think about, please. If you need help, I am.

Leo.

P.S.: I'm using SublimePeek from the dev branch.

@jlegewie
Copy link
Owner

I won't have time to work on SublimePeek anytime soon but feel free to send a pull request...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants