mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 21:42:59 -05:00
File > Open reads .txt, .rtf, .docx and .doc files. Each opens as a new untitled letter-size document named after the file, with its text set as area type 36 pt inside the artboard, read by the same readers File > Place uses. Save then asks for a name. - A .txt file asks for Text Import Options first (character set, platform and the clean-up options), starting from the options confirmed last; OK opens it and remembers them. Text files opened together are asked about one at a time. document.open takes the same options as `text`. - A file with no text, bad text options or a damaged file opens no document and reports the error. - The Open dialog lists the four extensions in "All readable files" and in Text, RTF and Word filters. Batch source files and openExtensions leave them out. - An importer plug-in that lists one of these extensions reads the file only when `importer` names it. Docs: docs/mcp.md (open_file), document.open's params text.