Skip to content
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

Not happy with my beautiful json. #48

Open
iandoug opened this issue May 14, 2022 · 4 comments
Open

Not happy with my beautiful json. #48

iandoug opened this issue May 14, 2022 · 4 comments

Comments

@iandoug
Copy link

iandoug commented May 14, 2022

Hi

Am trying to write your format file from KLA json.

It would be convenient to specify all 4 slots on a key at the same time, even if some are empty.

Your program does not like my input, but I can't see what the error is.

Error in $: Failed reading: Cannot decode input: Data.Text.Internal.Encoding.decodeUtf8: Invalid UTF-8 stream. Expecting object value at ',,,]},'
zxcv-fingers.en.ansi.txt

Any ideas?

Thanks, Ian

@39aldo39
Copy link
Owner

While your JSON is indeed beautiful, it is also invalid :( The ' at key AC11 is not allowed to be escaped. That fixes the error, after also changing localeID to localeId, but that error is clearer.

@iandoug
Copy link
Author

iandoug commented May 19, 2022

So noted, thanks.

I was using PHP addslashes function, instead of manually checking each of the four slots for chars to escape.

PHP and Json have different ideas about what needs to be escaped ...

Thanks, Ian

@iandoug
Copy link
Author

iandoug commented May 19, 2022

Ok, PHP was FOS with the escaping so I programmed around it and it works now.

What exactly do the scripts do with XCompose? I can't quite figure it out ... or why they need to do anything with it.

I'm only going to do the "conventional ANSI" layouts for now, need to figure out how to specify things that make creative use of non-letter keys.

Thanks, Ian

@iandoug
Copy link
Author

iandoug commented May 19, 2022

BTW good job on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants