Skip to content

Instantly share code, notes, and snippets.

View paultsr's full-sized avatar
🤗

-shaiju paultsr

🤗
View GitHub Profile

Ophir.php

PHP script that converts ODT to HTML

ophir.php is a lightweight script that parses an open document file and outputs a simple HTML file, with very few tags (contrarily to most other tools that do the same).

Features

Currently, the script parses bold (b tag), italic (i tag), underline (u tag), quotations (blockquote tag), images (using data URIs), links, headings (h1, h2, ...), lists (ul and li), tables (table tr and td) annotations and footnotes. Ophir.php can also ignore or remove some tags on demand. This can be useful if you want to extract only unformatted text from a document, or if you don't want tables, footnotes or annotations in the resulting HTML, or if the application that generated the ODT file produced unnecessary formatting informations ...

Limitations

Everything that is not mentioned in the feature section is not supported.
@paultsr
paultsr / Script post-install para debian 9
Created September 24, 2017 07:15
Debian 9 post-install
#Script para configurar debian 9 (stretch)
#No está automatizado, para revisar las instalaciones y prevenir errores
##Incluye instalación de:
###Drivers NVIDIA
###Wine (Activado desde repositorios)
###Spotify de repositorio externo
###Autodesk Maya 2017 (modificar rutas cd para otros usuarios)
### COMPILACIÓN ###
apt-get install aptitude linux-headers-$(uname -r) build-essential checkinstall make automake cmake autoconf git git-core apmd firmware-linux firmware-realtek gcc libssl-dev libjpeg62 alien csh tcsh libaudiofile-dev libglw1-mesa elfutils libglw1-mesa-dev mesa-utils xfstt ttf-liberation xfonts-100dpi xfonts-75dpi libfam0 libfam-dev