Comments (7)
@paddor after some investigation I think I might be able to add the support, however it would need to be tested in practical usage. Without that I do not think it is good to include it in production verions. Are you willing to do some testing, as you seem to work with fods? I personally do not use them at all.
from rspreadsheet.
I have never worked with FODS, but if you fill in the issue with expected usecase and some examples I can have a look at it. If you are able to file failing test, than it is even better.
from rspreadsheet.
Use case: I don’t wanna check binary files into my Git repository. ODS files are compressed and thus binary. Git can’t work out diffs of binary files.
In LibreOffice under “Save as...” I choose the FODS (Flat ODS) file format, which is an uncompressed XML file. Unfortunately this project assumes all files to be compressed and thus always uses Zip::File
IIRC.
Suggestion: When opening a file, check BOM of file or simply the extension in the filename provided. If it’s not compressed, don’t run it through Zip::File
.
from rspreadsheet.
I just briefly looked at FODS file created as you describe. It seems to me in quite different format that usual ods files. Usual OSD is not only zipped, but also contains several separate files, so handeling of for example pictures is realtively easy (they are just stored in zip and referenced). We would need to find more documentation of FODS and its differencies / simmilarities to ODS before it can be implemented. Any help with this is appreciated.
from rspreadsheet.
Thanks, that’s great news! Yes, I’d be willing to do some testing and give feedback. To be honest though, that particular application is not reading the FODS file yet, so there’s no need to hurry. But I’d still fairly easily be able to perform some testing, whenever this feature is ready.
from rspreadsheet.
Ok, I have implemented basic functionality for fods files and released as version 0.5. It needs to be tested however, there might easily be some missing parts. Will you have a look at it @paddor ?
I know that it can not covert one format to the other and does not support images yet. Let me know.
from rspreadsheet.
I am closing this for now, but I would still be interested if @paddor or anyone else can test new functions. It works for me at the moment.
from rspreadsheet.
Related Issues (20)
- Setting background color get more cells colorized HOT 13
- Tests failing for ruby >= 2.4.6 HOT 1
- Cells table:covered-table-cell ignored.
- Repeated header rows (contained in table:table-header-rows) are ignored.
- method mispelled: Rspreadsheet::Row#lenght should be #length HOT 1
- Existing formulas do not calculate fields set by rspreadsheet HOT 9
- libxml gem not installed automatically on windows HOT 9
- Header rows are not respected HOT 1
- Rubyzip 1.3.0 and 2.0.0
- rewriting cell addresses in formulas when inserting rows / cells HOT 1
- Size does not ignore formatted cells without content HOT 9
- Randomly crash HOT 1
- Bundler doesn't detect libxml-ruby as a transitive dependency on macOS
- Can we open password protected file HOT 1
- Uncaught exception: cannot load such file -- libxml_ruby even if it's installed. HOT 2
- Problem writing cell with a drop-down list
- Unclear how to set cell number format for date etc.
- Charts in source .ods file cause an error when trying to save. HOT 1
- Iterate worksheets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspreadsheet.