Scripts pour La Quadrature du Net
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
old
samples
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE.txt
README.md
bootstrap.min.css
config.ru
extract_amendments.rb
server.rb
template.erb

README.md

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 git, Ruby 1.9+ and the gem bundler.

git clone git://github.com/piglop/quadrature.git
cd quadrature
bundle

Usage

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

Then you can run the command line version:

ruby extract_amendments.rb your_document.odt >result.mediawiki

Or you can use the web server :

Run the server with ruby server.rb (or rerun 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.