// // Copyright RIME Developers // Distributed under the BSD License // // 2012-01-19 GONG Chen // #ifndef RIME_ALGEBRA_H_ #define RIME_ALGEBRA_H_ #include #include #include "spelling.h" namespace rime { class Calculation; class Schema; class Script : public map> { public: RIME_DLL bool AddSyllable(const string& syllable); void Merge(const string& s, const SpellingProperties& sp, const vector& v); void Dump(const path& file_path) const; }; class Projection { public: RIME_DLL bool Load(an settings); // "spelling" -> "gnilleps" RIME_DLL bool Apply(string* value); // {z, y, x} -> {a, b, c, d} RIME_DLL bool Apply(Script* value); protected: vector> calculation_; }; } // namespace rime #endif // RIME_ALGEBRA_H_