x/text: Get unicode script name in addition to script code #31862
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I want to get the
RangeTable
of a script given a specific language.The problem is that the following function returns the
script code
func (s Script) String() string
Whereas the map unicode.Scripts has all of its keys using the
script name
FIY: https://en.wikipedia.org/wiki/ISO_15924#List_of_codes
What did you expect to see?
I would expect one of those:
script name
in addition to get thescript code
.script code
andscript name
unicode.Scripts
that goes fromscript code
toRangeTable
Open thread on stack overflow here:
https://stackoverflow.com/questions/56003838/get-unicode-script-name-in-go
The text was updated successfully, but these errors were encountered: