Convert XLS, ODS and TSV spreadsheets without LibreOffice - #9
Merged
Merged
Conversation
XLS (Excel 97-2003, also .xlt and Excel 5/95) is read with ExcelDataReader (MIT): values formatted with the same number formats as XLSX, merged cells and alignment. Column widths, custom row heights and hidden rows/columns come from the BIFF records themselves (XlsLayout), because ExcelDataReader drops widths LibreOffice writes without the "user set" flag. Encrypted workbooks stop with a clear message. ODS is read and written by our own code: repeated rows and columns (the empty repeats to the end of the sheet are skipped), spans, every value type with the text Calc shows, cell styles, widths, heights, hidden rows, columns and sheets, frozen rows. Excel number format codes and ODF data styles are converted both ways, so numbers, dates and percentages keep their formats in XLSX <-> ODS. Cells now carry their value and number format besides the shown text, so XLSX output keeps real numbers and dates; XlsxWriter writes every sheet with styles, merges, widths, heights and frozen rows. TSV is read and written like CSV with a tab delimiter. The spreadsheet engine converts xlsx/xls/ods/csv/tsv to xlsx/ods/csv/tsv, and the HWPX writer takes xls/ods/tsv, so these formats reach PDF and images through rhwp; built-in routes win over LibreOffice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # Directory.Packages.props # docs/ENGINES.md # src/Filee.Engines/Filee.Engines.csproj # src/Filee.Engines/Office/SpreadsheetConverter.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
XLS (ExcelDataReader), ODS and TSV readers, an ODS writer and a full XLSX writer that keeps numbers, dates, formats, styles, merges and widths. XLS/ODS/TSV → PDF and HWPX go through the HWPX writer.
🤖 Generated with Claude Code