parinfer

shaunlebron 2018-07-09T21:37:03.000176Z

@eraserhd interesting, so these larger characters should count as two?

shaunlebron 2018-07-09T21:38:04.000225Z

(foo "text" (bar
                 baz))

shaunlebron 2018-07-09T21:39:17.000055Z

I suppose it depends on how they’re displayed in monospace

eraserhd 2018-07-09T21:39:51.000300Z

Yeah, interesting question, isn't it?

shaunlebron 2018-07-09T21:39:55.000115Z

if they’re consistent in displaying two characters wide in monospace fonts, I think the change should be made

shaunlebron 2018-07-09T21:40:22.000101Z

and i wonder if firacode users see any similar problems with ligatures

eraserhd 2018-07-09T21:41:20.000085Z

I know Vim displays wide characters in two cells, which freaked me out first time I saw it.

eraserhd 2018-07-09T21:42:48.000253Z

I think firacode should be fine, since the indentation never changes with the ligatures (I used to use it all the time).

eraserhd 2018-07-09T21:43:54.000080Z

E.g. a three-character ligature is three monospaced characters wide.

shaunlebron 2018-07-09T21:52:32.000342Z

@eraserhd thanks, i’ll track this in a github issue, do you have details on what text is? just special unicode characters that are somehow double wide?

eraserhd 2018-07-09T22:18:22.000096Z

http://unicode-rs.github.io/unicode-width/unicode_width/index.html has some useful info, including a link to a Unicode annex.

eraserhd 2018-07-09T22:20:03.000260Z

I haven't figured out all the details yet, but the rust port fails on compound characters also, so I'm going to fix that first. (see https://github.com/eraserhd/parinfer-rust/issues/26 )