Composite char

M

Manny Calavera

Hi,
there is a ruby gem to manipulate composite characters (0300-036f) like
single char?
I need something like this
s="VÌ…IXÌ£" # V with overline (U0305), I, X with dot below (U0323)
s.length #=> 3
s[0] #=> 'VÌ…' # V with overline (0305)
thanks, and sorry for my bad english
 
R

Robert Klemme

Hi,
there is a ruby gem to manipulate composite characters (0300-036f) like
single char?

What kind of manipulations do you have in mind?
I need something like this
s="VÌ…IXÌ£" # V with overline (U0305), I, X with dot below (U0323)
s.length #=> 3
s[0] #=> 'VÌ…' # V with overline (0305)
thanks, and sorry for my bad english

What's wrong with

irb(main):009:0> ["\u0305", "\u0323"].each {|s| puts s.length, s.bytesize}
1
2
1
2
=> ["Ì…", "Ì£"]

Kind regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top