[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#842191: ITP: node-is-fullwidth-code-point -- Check if the character represented by a given Unicode code point is fullwidth



On Thu, Oct 27, 2016 at 12:49:31AM +0530, suhail_p wrote:
> * Package name    : node-is-fullwidth-code-point
>   Upstream Author : Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com
> )
> * URL             :
> https://github.com/sindresorhus/is-fullwidth-code-point#readme
>   Description     : Check if a given Unicode point is fullwidth
> 
>  A Nodejs modeule to check if the character represented by a given Unicode
> code point is fullwidth

Wouldn't it be better to replace this with full wcwidth()?  That'd give you
not only double-width chars but also controls ("width" -1), combining and
non-spacing (width 0).

-- 
A MAP07 (Dead Simple) raspberry tincture recipe: 0.5l 95% alcohol, 1kg
raspberries, 0.4kg sugar; put into a big jar for 1 month.  Filter out and
throw away the fruits (can dump them into a cake, etc), let the drink age
at least 3-6 months.


Reply to: