From c484829272cd13a738e35412498e12f2c9a194ac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 07:48:59 +0200 Subject: Adding upstream version 0.19.2. Signed-off-by: Daniel Baumann --- misc/notes/column-width-and-row-height.txt | 69 ++++++++++++++++++++++++++++++ misc/notes/zlib-in-memory-gzip.txt | 8 ++++ 2 files changed, 77 insertions(+) create mode 100644 misc/notes/column-width-and-row-height.txt create mode 100644 misc/notes/zlib-in-memory-gzip.txt (limited to 'misc/notes') diff --git a/misc/notes/column-width-and-row-height.txt b/misc/notes/column-width-and-row-height.txt new file mode 100644 index 0000000..336d9c9 --- /dev/null +++ b/misc/notes/column-width-and-row-height.txt @@ -0,0 +1,69 @@ +== XLSX == + +Spec name: Office Open XML Part 4 - Markup Language Reference.pdf + +=== Column Width === + + + + + + +Spec location: 3.3.1.12 col (Column Width & Formatting) (page 1946) + + Column width measured as the number of characters of the maximum + digit width of the numbers 0, 1, 2, ..., 9 as rendered in the normal + style's font. There are 4 pixels of margin padding (two on each + side), plus 1 pixel padding for the gridlines. + + width = Truncate([{Number of Characters} * {Maximum Digit Width} + + {5 pixel padding}]/{Maximum Digit Width}*256)/256 + + Using the Calibri font as an example, the maximum digit width of 11 + point font size is 7 pixels (at 96 dpi). In fact, each digit is the + same width for this font. Therefore if the cell width is 8 + characters wide, the value of this attribute shall be + Truncate([8*7+5]/7*256)/256 = 8.7109375. + +=== Row Height === + + + + 11.1 + + + +Spec location: 3.3.1.71 row (Row) (page 2012) + + Row height measured in point size. There is no margin padding on + row height. + +== ODS == + +=== Column Width & Row Height === + + + + + + + + + + + + + + + Name + + + Value + + + + + +Spec doesn't say much, but it appears that the order of these + elements is significant & determines which column +gets which automatic style, from left to right. diff --git a/misc/notes/zlib-in-memory-gzip.txt b/misc/notes/zlib-in-memory-gzip.txt new file mode 100644 index 0000000..acba449 --- /dev/null +++ b/misc/notes/zlib-in-memory-gzip.txt @@ -0,0 +1,8 @@ +Some notes on future implementation of in-memory compression and decompression +of gzip format. + +http://www.experts-exchange.com/Programming/System/Windows__Programming/A_3189-In-Memory-Compression-and-Decompression-Using-ZLIB.html + +http://www.gzip.org/zlib/zlib_faq.html#faq20 + +http://stackoverflow.com/questions/16682719/uncompress-data-in-memory-using-boost-gzip-decompressor -- cgit v1.2.3