ScriptJson.h header
#include <ew/app/ScriptJson.h>
Namespace ew::app
Functions
std::vector< ew::core::conlang::GlyphArticulation > ew::app::script::articulationsFromJson(const QJsonArray &array)
The articulations array describes (the inverse of articulationsToJson).
QJsonArray ew::app::script::articulationsToJson(const std::vector< ew::core::conlang::GlyphArticulation > &list)
list as a JSON array.
ew::core::conlang::WritingSystem ew::app::script::writingSystemFromJson(const QJsonObject &json)
The writing system json describes (the inverse of writingSystemToJson).
QJsonObject ew::app::script::writingSystemToJson(const ew::core::conlang::WritingSystem &writing)
writing as JSON.
The JSON form of a constructed writing system, and of the articulations that derived its glyphs.
ONE serializer, used by the project store and by export alike. Two would drift: an export written separately would gradually stop matching what the store writes, and a script exported from one version would fail to import into another for reasons nobody could see. Sharing it also makes the export/import round-trip true by construction rather than by testing every field twice.