Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Composite char
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Manny Calavera  
View profile  
 More options Jul 18 2012, 1:06 pm
Newsgroups: comp.lang.ruby
From: "Manny Calavera" <leggi.n...@fir.ma.invalid>
Date: Wed, 18 Jul 2012 19:06:44 +0200
Local: Wed, Jul 18 2012 1:06 pm
Subject: Composite char
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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Klemme  
View profile  
 More options Jul 19 2012, 8:22 am
Newsgroups: comp.lang.ruby
From: Robert Klemme <shortcut...@googlemail.com>
Date: Thu, 19 Jul 2012 14:22:28 +0200
Local: Thurs, Jul 19 2012 8:22 am
Subject: Re: Composite char
On 07/18/2012 07:06 PM, Manny Calavera wrote:

> 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »