2017-02-18 14:10:33 +00:00
|
|
|
ods2md
|
|
|
|
======
|
|
|
|
|
|
|
|
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
2017-02-18 15:55:35 +00:00
|
|
|
[![Build Status](https://travis-ci.org/kennytm/ods2md.svg?branch=master)](https://travis-ci.org/kennytm/ods2md)
|
2017-02-18 14:10:33 +00:00
|
|
|
|
|
|
|
Convert LibreOffice Calc Spreadsheets (*.ods) into Markdown tables
|
|
|
|
|
|
|
|
![Sample output](sample.png)
|
|
|
|
|
|
|
|
Install
|
|
|
|
-------
|
|
|
|
|
|
|
|
1. Get Python 3.
|
|
|
|
|
|
|
|
2. (Optional) Create a virtual environment.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
python3 -m venv env
|
|
|
|
. env/bin/activate
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Install `ezodf` for parsing *.ods files
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pip3 -r requirements.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./ods2md.py input_file.ods > output_file.md
|
|
|
|
```
|
|
|
|
|
|
|
|
Limitations
|
|
|
|
-----------
|
|
|
|
|
|
|
|
* This program disregards all formats. Currencies and percentages will be displayed as plain numbers.
|
|
|
|
* Merged cells are not supported, the content will be shown at the first cell (this is actually a limitation of GFM table)
|