From: William Morgan Date: 2010-05-19T22:07:09+09:00 Subject: Re: wcswidth, ruby 1.9, and string encodings Reformatted excerpts from William Morgan's message of 2010-05-10: > I need one other bit of functionality too: the ability to get a > substring of a specific display width. I assume that is beyond the > scope of your terminfo package, so I am probably going to wrap the two > methods up into a gem. I've finally pulled these together into a gem: http://rubygems.org/gems/console If anyone else is interested in writing i18n-capable console applications, this should be pretty useful for you. Unfortunately I haven't quite gotten it to work with Ruby 1.8. Any help on that front would be appreciated. Blog post with a little more background: http://all-thing.net/string-width -- William