Commit Graph
7 Commits
Author SHA1 Message Date
Hamza e096b5eb9b craft-csv: a diacritic before another escape keeps it as written
An escape's diacritic took the next character as its letter even when that was the next escape (ESC N H ESC N H o gave ESC + U+0308 + NHo). A control character is no letter: the first escape is kept as written and the next one decodes on its own (ESC N H ö).
2026-11-16 19:07:27 +05:00
Hamza ab87149855 craft-csv: decode Excel's character escapes in SYLK text
Excel writes a character outside ASCII in a SYLK text value as ESC N and one byte, the character's ISO 6937 code less 0x80; a diacritic's code is followed by the letter it goes on. The reader kept those bytes, so Größe für Köln opened as Gr<ESC>NHo<ESC>N{e f<ESC>NHur K<ESC>NHoln (storytold/gridcraft#4321). Text values now decode them: a diacritic and letter become the precomposed letter (or the letter and its combining mark when Unicode has no single character), a spacing code its character; a code ISO 6937 doesn't define is kept as written.
2026-11-16 18:51:40 +05:00
Dylan M. Taylor 69e457a8eb Add strict UTF-8 text decoder 2026-11-13 21:38:11 +00:00
Dylan M. Taylor 415dc3204c fix(csv): preserve bounded delimiter sampling 2026-11-13 19:25:10 +00:00
Dylan M. Taylor 5d46565f01 test(csv): lock delimiter tie priority 2026-11-13 19:03:26 +00:00
Dylan M. Taylor 8263ccd054 fix(csv): preserve quoted delimiter coherence 2026-11-13 18:28:50 +00:00
Dylan M. Taylor 991ea7dbd6 Add craft-csv: delimited text and SYLK, from GridCraft (#889)
Moved from GridCraft at 5cf52c5f: the encoding detection, delimiter
sniffing, record parser and field quoting of crates/xlsx/src/csv.rs,
and the SYLK reader of crates/engine/src/io/sylk.rs.

Fields stay text and the SYLK reader returns its own Sheet; typed
values, dates and the workbook stay in GridCraft.
2026-11-11 18:07:00 -05:00