{"id":16304810,"url":"https://github.com/moznion/go-unicode-east-asian-width","last_synced_at":"2025-10-25T14:30:26.274Z","repository":{"id":18044477,"uuid":"21090775","full_name":"moznion/go-unicode-east-asian-width","owner":"moznion","description":"Provides width properties of East Asian Characters","archived":false,"fork":false,"pushed_at":"2014-06-22T12:43:13.000Z","size":152,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T07:34:19.191Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moznion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-22T10:12:45.000Z","updated_at":"2023-06-14T07:48:42.000Z","dependencies_parsed_at":"2022-08-25T13:51:12.183Z","dependency_job_id":null,"html_url":"https://github.com/moznion/go-unicode-east-asian-width","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fgo-unicode-east-asian-width","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fgo-unicode-east-asian-width/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fgo-unicode-east-asian-width/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fgo-unicode-east-asian-width/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moznion","download_url":"https://codeload.github.com/moznion/go-unicode-east-asian-width/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238155429,"owners_count":19425709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T21:04:53.385Z","updated_at":"2025-10-25T14:30:25.977Z","avatar_url":"https://github.com/moznion.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/moznion/go-unicode-east-asian-width.svg?branch=master)](https://travis-ci.org/moznion/go-unicode-east-asian-width)\n\n# go-unicode-east-asian-width\n\nProvides width properties of East Asian Characters.  \nThis package is port of [Unicode::EastAsianWidth](http://search.cpan.org/~audreyt/Unicode-EastAsianWidth/lib/Unicode/EastAsianWidth.pm) from Perl to Go.\n\n[https://godoc.org/github.com/moznion/go-unicode-east-asian-width](https://godoc.org/github.com/moznion/go-unicode-east-asian-width)\n\n## Getting Started\n\n```\ngo get github.com/moznion/go-unicode-east-asian-width\n```\n\n## Synopsis\n\n```go\nimport (\n\t\"unicode\"\n\n\t\"github.com/moznion/go-unicode-east-asian-width\"\n)\n\nfunc main() {\n\teastasianwidth.IsFullwidth('世') // true\n\teastasianwidth.IsHalfwidth('界') // false\n\teastasianwidth.IsHalfwidth('w') // true\n\n\tunicode.Is(eastasianwidth.EastAsianWide, '禅') // true\n}\n```\n\n## Provided Variables\n\n- `EastAsian bool`\n\nEastAsian is the flag for ambiguous character.  \nIf this flag is `true`, ambiguous characters are treated as full width.\nElsewise, ambiguous characters are treated as half width.  \nDefault value is `false`.\n\n- `EastAsianAmbiguous unicode.RangeTable`\n- `EastAsianFullwidth unicode.RangeTable`\n- `EastAsianHalfwidth unicode.RangeTable`\n- `EastAsianNarrow unicode.RangeTable`\n- `EastAsianNeutral unicode.RangeTable`\n- `EastAsianWide unicode.RangeTable`\n- `Fullwidth unicode.RangeTable`\n- `Halfwidth unicode.RangeTable`\n\n[RangeTable](http://golang.org/pkg/unicode/#RangeTable) for East Asian characters.\n\n## Functions\n\n- `func Fullwidth() map[string]*unicode.RangeTable`\n\nReturns the map of [RangeTable](http://golang.org/pkg/unicode/#RangeTable) of full width East Asian characters.\n\n- `func Halfwidth() map[string]*unicode.RangeTable`\n\nReturns the map of [RangeTable](http://golang.org/pkg/unicode/#RangeTable) of half width East Asian characters.\n\n- `func IsFullwidth(r rune) bool`\n\nReports whether the rune is in range of full width character of East Asian.\n\n- `func IsHalfwidth(r rune) bool`\n\nReports whether the rune is in range of half width character of East Asian.\n\n## See Also\n\n- [unicode](http://golang.org/pkg/unicode/)\n- [Unicode::EastAsianWidth](http://search.cpan.org/~audreyt/Unicode-EastAsianWidth/lib/Unicode/EastAsianWidth.pm)\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fgo-unicode-east-asian-width","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoznion%2Fgo-unicode-east-asian-width","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fgo-unicode-east-asian-width/lists"}