Giter VIP home page Giter VIP logo

fxl's People

Contributors

anthony-khong avatar burinc avatar ivokun avatar zackteo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fxl's Issues

Support more data formats?

This was another data format from reading the previous dummy-spreadsheet.xslx but seems like 0.00 does exactly this already. Not sure what is different per se

"0.00_ ;\\-0.00\\ "

Create test for prune-cell-style

Previous was implied by (fact "Font style should be preserved") by removal of font-size 11 since it was a default
but have since changed it as the default font size was changed in 3979812 .

And I think a separate test would reflect better clarity

Font size not being preserved for :font-size 12

If you read and write and read a file, the font size will be converted from 12 to 11 (Microsoft Office Excel 2007 uses the Calibri font in font size 11 - https://poi.apache.org/apidocs/dev/org/apache/poi/xssf/usermodel/XSSFFont.html#getFontHeightInPoints--)

Because of prune-cell-style and the :font-size 12 doesn't get added in the read-xlsx!. Thus, when you do a read then write, the lack of font-size will change to the apache poi default of 11.

In this case since the true default is 11, should we just change fxl's font-size default from 12 to 11 - if we are keeping prune-cell-style?

Undetected background-colour (support xslx created outside of fxl)

;; TODO: background-colour seems to be undetected!

Based on some tests, it seems that the colours in the test/resources/dummy-spreadsheet.xslx are incompatible with .getFillForegroundColor. Colours are however read correctly from files generated with fxl.

This might be a limitation of org.apache.poi.xssf.usermodel? Have to see how dummy-spreadsheet.xslx was created. Proprietary excel issues?

tmd dataset to fxl->cells

I see an opportunity to shape a dataset into fxl cells. Would the project take on tech.ml.dataset as a dependency? Perhaps it's best as a utility namespace or other library.

New dummy-spreadsheet.xslx for testing (particularly for colour)

Due to #15, a good current solution is to produce a new test/resources/dummy-spreadsheet.xslx from within fxl. This allows the colours to be read in and tested.

Based on the specifications to support formula cells in #18. I have done a tracer bullet to create a replica of the dummy-spreadsheet.xslx.

The only part which I am unable to replicate as of now is cell decimal place formatting - such that 2.4247 only appears with 2 d.p. 2.42. This however, does not seem to be supported in fxl as of now anyway, so it seems like it could be ignored for now

Support Formula cells

I propose we change the spec of a cell to

(s/def ::cell
  (s/keys :req-un [::value ::coord ::style ::formula]))

this seems like it would be inline with the underlining Apache POI (Java API)
https://poi.apache.org/apidocs/4.1/org/apache/poi/ss/usermodel/CellBase.html#setCellFormula-java.lang.String-
as setCellFormula and setCellValue are on the same level

This seems to be the simpler implementation, as the underlying logic of the code does not really change. It will just be an inclusion of :formula nil in the hashmap

We will however need to make changes to

  • core.clj (helper functions

  • spec.clj (include ::formula definition and add to ::cell)

  • defaults.clj (add :formula to be included in defaults

  • read_xlsx.clj

  • write_xlsx.clj

  • many tests

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.