JBenda / inkcpp

Inkle Ink C++ Runtime with JSON>Binary Compiler
MIT License
70 stars 13 forks source link

feature/TranslationTable #28

Closed JBenda closed 9 months ago

JBenda commented 3 years ago

Store static strings in separate file to allow translation of story without recompilation.

JBenda commented 3 years ago

The string lookup is inefficient, but therefore without extra allocation, and the string file format is quite simple ^^ But no utf8 support now! Also added a few helper classes to simplify compiler and story construction calls.

JBenda commented 9 months ago

The current point of discussion is: Is a translation table even sensible? Since different languages have different grammars, and the translation table is very fragmented and difficult to deduce what was a sentence in the beginning (at least if the ink syntax is used to an extent). New ideas are welcome!