Skip to content
Extraits de code Groupes Projets
avatar de l'utilisateur
Michael Witrant rédigé
b1502ad5
Historique

Amendment extraction

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.

It's also available here: http://quadrature.herokuapp.com/

Installation

You need Ruby 1.9+.

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 :

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.