123456789101112131415161718192021222324(* Charset conversion alone, with only the data it needs embedded:
CharEncoding reads charmapdir and unimapdir and nothing else, so
database/ and locales/ are left out. Use camomile-embedded for the
full API. *)moduleConfig:CamomileLib.Config.Type=structletdatadir="database"letcharmapdir="charmaps"letunimapdir="mappings"letlocaledir="locales"letgetpath=letdata=match(Filename.dirnamepath,Filename.basenamepath)with|"charmaps",name->Charmaps_data.readname|"mappings",name->Unimaps_data.readname|_->Noneinmatchdatawith|Somedata->Marshal.from_stringdata0|None->raiseNot_foundendmoduleCharEncoding=CamomileLib.CharEncoding.Configure(Config)