For some time now, I wanted to put the presentations I did in the past to be available, and since I’ve added support to my blog to render revealjs slides, I wanted to also put other presentations that I did in the past, probably (or for sure) outdated, but that were sitting in my computer drive.
The presentations already got several transformations, but in the actual status they are stored as LibreOffice ODP files, that made it a bit difficult.
Some software for the conversion, did generate them as ‘screenshoots’ for each slide, this however had some cons/pros:
- Format was kept almost 100%
- Easy to showcase with any ‘gallery’ plugin
- Text was lost, so no links, no indexation, etc
Alternatively, I could add and attach via a link to the odp file for end users to download and reproduce, but that will increase blog size (no constrains, but sounded like nonsense to me), so I continued my research for a solution or workaround to use.
Thanks to https://github.com/cliffe/AwesomeSlides, which uses perl and a set of common available libraries on any distro to do the job, I was able to convert my presentations from
html quite easily:
1 2 3
This resulted in ‘master’ html files in the
slides_out folder, plus a folder containing the images and other media used by the presentation.
AwesomeSlides does the conversion to ‘revealjs’ format, plus adds extra features, transitions, etc to make them fancier, but in my case I was interested in plain markdown, so the next one to the rescue has been
1 2 3
The end result of course is not clean at all and not directly usable by the pelican plugin to render the images, etc.
One of the things needed (and that I used for other slides) is to move the resulting ‘md’ file to the same folder as the images and move them into the
content/presentations folder of my website source.
Once there, a set of find/replacements was required:
||Define images included as
|————-||Remove underlining after titles|
|stangechars||normalchar||Some characters were lost (accents, etc), replaced by another one, to later spellcheck|
||Remove extra new lines|
||Remove extra spaces before paragraph|
Other manual steps involved
- Put ## in front of each title
- Adjust empty slides (—- followed by another —-)
- And a lot more :-)
The good thing, in the end, is that with some additional work, I was able to bring back ‘online’ my older presentations, now listed in the presentations category.