gizlang:office
The words of an office file: a Word document (docx), a workbook (xlsx), a deck (pptx), a Hangul file (hwpx) or an OpenDocument (odt, ods, odp). Each is a zip of XML parts; words reads the parts that hold text, in reading order.
import * as Office from "gizlang:office";Types
Words
type Words = { text: string; more: bool; }The words of a file, and whether they were cut at the limit.
text:stringmore:bool
Functions
words
function words(size: i64, read: (at: i64, count: i64) => Result<bytes, string>, most: i64): Words throws DecodeErrorThe words of the office file of SIZE bytes that READ reads, at most MOST bytes: a line after each paragraph or row, a tab after each cell, no space at a line's end and no more than one empty line in a row. A sheet's cell that holds a shared string reads as its text.
Effects: fail, read, write, console, io.