-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Space key in simple table input method #84
Comments
I don't think there's currently a way to allow this in the text file format, though binary data format wise, it is allowed. Right now, if you create a table with a line (Do not put space in the end otherwise it will be trimmed), key code will be containing space.
Then, if you just use code to insert data one by one, then you should be able to get a table with space in the key. On adding support to the libime_tabledict, it's a little bit tricky introduce this with compatibility on existing files. How can we support this since every line is pre-trimmed for any white space character. since we allow quotation mark " to be valid key code. Maybe, we can change the code to avoid consume white space character in the KeyCode. |
I am currently using libime_tabledict, and I am not sure how to edit the binary directly; I think that something I do not want to do anyway. Perhaps one way to get around this is to add an A silly example
Another option which might be easier is just add some special
|
I tried to do the my fork: https://git.sr.ht/~charje/libime. |
@githubforced2fabad adding a new field would require you to serialize a new field to binary |
By new field, do you mean |
Because Without that, it is possible you're printing out a dict that can not be converted back. |
Okay. I tried to add the serialization for both text and binary as well as parsing binary. I am getting this error in test |
Summary
How can I use space key in the left side of the a simple table input method. I imagine it needs to be in
KeyCode
somehow and also in the table itself. Is there some escape sequence for space since it is used as the table column separator?The text was updated successfully, but these errors were encountered: