[Haskell-cafe] ANN: wcwidth-0.0.1

Jason Dusek jason.dusek at gmail.com
Mon Nov 16 21:54:07 EST 2009


  A small package with bindings to a function in <wchar.h> that
  assigns a column width to Unicode characters.

    http://hackage.haskell.org/package/wcwidth-0.0.1

  This is the function that tells your terminal to make Chinese
  characters two columns wide while making the letter 'a' but
  one column wide.

  In addition, a little utility is provided that constructs a
  table of widths by character and a listing of character ranges
  with the same width. On different systems, `wcwidth` may
  assign different widths to the same character for some obscure
  characters.

--
Jason Dusek


More information about the Haskell-Cafe mailing list