README.md 732 Bytes
Newer Older
Michael Witrant's avatar
Michael Witrant committed
1
2
3
Amendment extraction
====================

Michael Witrant's avatar
Michael Witrant committed
4
5
6
It's a tool to extract amendment texts from EU documents and output them in mediawiki format.

It was made for [La Quadrature du Net](http://www.laquadrature.net/).
Michael Witrant's avatar
Michael Witrant committed
7
8
9
10
11

Installation
------------

You need Ruby 1.9+.
Michael Witrant's avatar
Michael Witrant committed
12

Michael Witrant's avatar
Michael Witrant committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Clone the repository and run "bundle" to install the gems.

Usage
-----

First you must save the doc file to OpenDocument text (.odt) with OpenOffice or LibreOffice.

Then you can run the command line version:

    ./extract_amendments.rb <odt file> >result.mediawiki


Or you can use the web server :

Michael Witrant's avatar
Michael Witrant committed
27
Run the server with `ruby server.rb` and go to http://localhost:4567/. Then select your odt file and submit. Your browser should display the mediawiki text to copy/paste.
Michael Witrant's avatar
Michael Witrant committed
28