Fork me on GitHub
#parinfer
<
2018-07-09
>
shaunlebron21:07:03

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

shaunlebron21:07:04

(foo "text" (bar
                 baz))

shaunlebron21:07:17

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

eraserhd21:07:51

Yeah, interesting question, isn't it?

shaunlebron21:07:55

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

shaunlebron21:07:22

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

eraserhd21:07:20

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

eraserhd21:07:48

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

eraserhd21:07:54

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

shaunlebron21:07:32

@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?

eraserhd22:07:22

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

eraserhd22:07:03

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 )