rivo / uniseg

Unicode Text Segmentation, Word Wrapping, and String Width Calculation in Go
MIT License
581 stars 60 forks source link

Support for Unicode 13 #6

Closed Delta456 closed 4 years ago

Delta456 commented 4 years ago

Unicode 13.0 was released on 10th March 2020 so I think this repo should be updated accordingly.

psampaz commented 4 years ago

GraphemeBreakTest case for 12 and 13 are the same

https://www.unicode.org/Public/12.0.0/ucd/auxiliary/GraphemeBreakTest.txt https://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakTest.txt https://www.diffchecker.com/WABrkByc

Uniseg already passes the 12 version tests https://github.com/rivo/uniseg/blob/master/grapheme_test.go#L44, so I suppose it is a matter of updating the text on readme and test file

btw current Go stable version 1.14 supports Unicode 12

Delta456 commented 4 years ago

Oh I see didn't know!

Go 1.15 will support Unicode 13 right?

psampaz commented 4 years ago

I have no idea. Try to ask at https://groups.google.com/forum/#!forum/golang-nuts

Delta456 commented 4 years ago

I will reopen this when Go officially will support Unicode 13!

shogo82148 commented 3 years ago

FYI, Go 1.16 has been released and the unicode package support Unicode 13 now. https://golang.org/doc/go1.16#unicode