mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 05:32:44 +00:00
1.6 KiB
1.6 KiB
Plan
- Format and reader:
zipdetected by its local file header or an empty classic/Zip64 archive signature; the text, JSON, key file and XML readers shared astextualView, so a file and an entry read alike; a domain module for the entry limits, the entry view and the archive view, and an application reader that walks the verified bytes with zip.js under the options and name decodingZipArtifactReaderuses. - Selectors:
locatePointerinsrc/domain/desktop/viewPointer.ts, used by REA's evaluator and the draft, and_locatein the exported verifier, with the same messages;tolerancein the task schema and both evaluators. - Changes and draft: member keys chosen per array from the candidate
selectors of both versions, a keyed walk for zip views in
compareTrees, and a walk that notes a member added or removed whole once for the draft's archive suggestions. - Exported module:
_zipand_entry_viewbeside_view, withzipfile,zlibandhashlibimported at the top. - Docs and tests: real FreeCAD 0.21 and 1.0
Document.xmlfiles zipped into.FCStdarchives and checked by both evaluators, an.odtbuilt in the test, archives crafted for each limit, and the shared check cases run through both evaluators. - Namespaced XML: the exported module reads XML with
expatrather thanElementTree, one pass with namespace processing to check the document and one without to build the view as REA's DOM does, names and text nodes alike; the export's namespace refusal and the draft's namespace gate go. Parity tests read real Inkscape and LibreOffice Writer saves.