Ed
.
--
You received this message because you are subscribed to the Google Groups "Plover" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ploversteno...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I might be alone in this, but I hope that even if we change the dictionary format away from json it will continue to be editable/searchable in a text editor. The dictionary manager in my proprietary steno software is pretty powerful, but I still resent not being able to just open my Eclipse-formatted dictionary in Vim and go to town on it.Â
I might be alone in this, but I hope that even if we change the dictionary format away from json it will continue to be editable/searchable in a text editor. The dictionary manager in my proprietary steno software is pretty powerful, but I still resent not being able to just open my Eclipse-formatted dictionary in Vim and go to town on it.Â
--
Let me suggest YAML as a transitional format: for the purposes here, it is effectively a more forgiving JSON - you can drop a y'all parser in place of the JSON parser.
But YAML also supports comments, and far more.
Jeremy
How to add two Python dictionaries:
domains.update(domains2)
That is, the domains2 dictionary is added to the domains dictionary with the update() method.
https://github.com/plover/plover/issues/27
For syntax errors, or parsing errors, the parser naturally would, in this case too, repeat the offending line and display a little 'arrow', pointing at the earliest point in the line, where the error was detected. Â
The two big disadvantages of encoding dictionaries as python files:
1) security: python code can include arbitrary python code, which would mean trying out dictionaries from an untrusted source is risky.
(Ruby went through a fiasco this last season because Ruby on Rails sites were all accepting arbitrary YAML as data upload, and the "unsafe" YAML superset includes the ability to include executable code.)
2) Portability: I love python, but if I ever wanted to edit or otherwise work with a plover dictionary with a tool, I might want to be able to use tools that aren't themselves in python. One list member just this week even used Java! But if the dictionaries are in python syntax, we'd need to parse them with python, all the time.
Also, automatic generation and pretty printing of python-syntax dictionaries, even *in* python, is surprisingly hard, compared to YAML or JSON.
Jeremy
The two big disadvantages of encoding dictionaries as python files:
1) security: python code can include arbitrary python code, which would mean trying out dictionaries from an untrusted source is risky.
(Ruby went through a fiasco this last season because Ruby on Rails sites were all accepting arbitrary YAML as data upload, and the "unsafe" YAML superset includes the ability to include executable code.)
2) Portability: I love python, but if I ever wanted to edit or otherwise work with a plover dictionary with a tool, I might want to be able to use tools that aren't themselves in python. One list member just this week even used Java! But if the dictionaries are in python syntax, we'd need to parse them with python, all the time.
Also, automatic generation and pretty printing of python-syntax dictionaries, even *in* python, is surprisingly hard, compared to YAML or JSON.