Commit b079cdd3 authored by svilayphiou's avatar svilayphiou

A simple script to download the text from the pad, and insert a link to

a CSS file.

NOTE: I plan to test OmegaT to translate the document, but keeping the
layout as it handles HTML tags and versioning (that's why the English
text is in a "source" directory).
OSP's Collaboration Agreement
A document to inform our future collaborators about the way we work.
- - -
TO make things easier, the document is edited on an etherpad.
To download the pad as an HTML file and to insert CSS, you can run in your terminal:
It will update the file `source/collab-agreement.html`.
You can then open it in Chromium and export it as a PDF (made for an A5 8 pages booklet).
@page {
size: 148.5mm 210mm;
margin: 12mm 12mm 15mm 12mm;
html {
width: 148.5mm;
* {
font-family: Karla !important;
h1, h2, h3, h4, h5, h6 {
page-break-after: avoid;
p {
orphans: 3;
widows: 3;
#! /usr/bin/bash
# Grabs the HTML export from the pad
# Then inserts a link to a local stylesheet named collab-agreement.css
# Then saves the HTML to the file source/collab-agreement.html
curl | sed "/<head>/ {N; s/<head>\n/&<link rel=\"stylesheet\" type=\"text\/css\" href=\"..\/collab-agreement.css\">\n/ }" | sed -e 's/&lt;/</g' -e 's/&gt;/>/g' -e 's/ / /g' -e 's/<br><br>/<br>/g' >| source/collab-agreement.html
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment