Re: How to see UNICODE character number?

2007-11-15 Thread Andrew Pantyukhin
On Thu, Nov 15, 2007 at 01:27:21PM +0100, Nikola Lečić wrote:
> On Wed, 14 Nov 2007 11:51:06 -0800
> Yuri <[EMAIL PROTECTED]> wrote:
> 
> > But it's still strange that there's no GUI utility in KDE or just X
> > that would do it.
> 
> There are at least two very convenient GUI ways do to this:
> 
> (1) (g)ViM: assuming that you use UTF-8 to interptet Unicode and that
> (2) deskutils/gucharmap: GTK2 application, doesn't pull many Gnome

(3) x11/rxvt-unicode - you just press and hold Ctrl+Shift+LClick
and move cursor around. Urxvt will show info on any char you
point at.
(4) In a UTF-8 console:
iconv -l|grep UTF
echo |iconv -t UTF-32|hexdump
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to see UNICODE character number?

2007-11-15 Thread Nikola Lečić
On Wed, 14 Nov 2007 11:51:06 -0800
Yuri <[EMAIL PROTECTED]> wrote:

> But it's still strange that there's no GUI utility in KDE or just X
> that would do it.

There are at least two very convenient GUI ways do to this:

(1) (g)ViM: assuming that you use UTF-8 to interptet Unicode and that
your locale is properly set (xx_XX-UTF-8), you can paste the
character (i.e.) „來“, point the cursor over it, and then:

* key sequence 'ga' will return '<來> 20358, Hex 4f86, Octal 47606';
* key sequence 'g8' will return 'e4 be 86' (actual bytes used to
  produce that letter;
* key sequence '[Ctrl+v]u4f86' will print „來“ (in Insert mode).

(2) deskutils/gucharmap: GTK2 application, doesn't pull many Gnome
dependencies, has highly professionally made database.
'View -> Find -> 來 -> Character details' will provide you with the
following:

U+4F86 CJK UNIFIED IDEOGRAPH-4F86
General Character Properties
Unicode category: Letter, Other

Various Useful Representations
UTF-8: 0xE4 0xBE 0x86
UTF-16: 0x4F86

C octal escaped UTF-8: \344\276\206
XML decimal entity: 來

CJK Ideograph Information
Definition in English: come, coming; return, returning
Mandarin Pronunciation: LAI2 LAI4
Cantonese Pronunciation: lai4 loi4 loi6
Japanese On Pronunciation: RAI
Japanese Kun Pronunciation: KURU
Tang Pronunciation: *ləi ləi
Korean Pronunciation: LAY

Greetings.
-- 
Nikola Lečić :: Никола Лечић
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to see UNICODE character number?

2007-11-14 Thread Yuri
Thank you Richard,

This URL does the trick.

But it's still strange that there's no GUI utility in KDE or just X that would
do it.

Yuri

Quoting Richard Tobin <[EMAIL PROTECTED]>:

> > What is the easiest way to get the UNICODE number for a Chinese
> character?
> 
> Try http://www.cogsci.ed.ac.uk/~richard/utf-8.html
> 
> Paste it into the box and select "Interpret as Character".
> 
> -- Richard
> 


-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to see UNICODE character number?

2007-11-14 Thread Richard Tobin
> What is the easiest way to get the UNICODE number for a Chinese character?
> I use KDE.
> 
> All programs just show the character itself when I paste it :-)

Try http://www.cogsci.ed.ac.uk/~richard/utf-8.html

Paste it into the box and select "Interpret as Character".

-- Richard
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to see UNICODE character number?

2007-11-14 Thread Jan Henrik Sylvester

On Wednesday 14 November 2007 02:19:35 am Yuri wrote:
> > > All programs just show the character itself when I paste it :-)
> >
> > Have you tried kcharselect ?
>
> Tried it now. When I paste the character to the box in the bottom and 
press

> Enter nothing happens.
> I would like to see it's UNICODE number (like &9991;)

Have a look at the uft8 editor Yudit (in ports). The interface is kind 
of weird for a Unix program, but it shows 'Glyph Info' for each 
character (at least for 2-byte characters) and you can paste them.


Cheers,
Jan Henrik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to see UNICODE character number?

2007-11-14 Thread OutbackDingo
would utf2ascii be any help here or recode ?? both are in ports
On Wed, 2007-11-14 at 03:11 -0600, David J Brooks wrote:
> On Wednesday 14 November 2007 02:19:35 am Yuri wrote:
> > > > All programs just show the character itself when I paste it :-)
> > >
> > > Have you tried kcharselect ?
> >
> > Tried it now. When I paste the character to the box in the bottom and press
> > Enter nothing happens.
> > I would like to see it's UNICODE number (like &9991;)
> >
> > But it goes the opposite way: from UNICODE number to the character.
> > The problem though that there are ~20K Chinese characters in UNICODE table.
> 
> You can look up the character on the table and get the code point. 來 =  
> U+4f86, but with 20k characters that would be a hassle. Sorry I couldn't be 
> more helpful.
> 
> David

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to see UNICODE character number?

2007-11-14 Thread David J Brooks
On Wednesday 14 November 2007 02:19:35 am Yuri wrote:
> > > All programs just show the character itself when I paste it :-)
> >
> > Have you tried kcharselect ?
>
> Tried it now. When I paste the character to the box in the bottom and press
> Enter nothing happens.
> I would like to see it's UNICODE number (like &9991;)
>
> But it goes the opposite way: from UNICODE number to the character.
> The problem though that there are ~20K Chinese characters in UNICODE table.

You can look up the character on the table and get the code point. 來 =  
U+4f86, but with 20k characters that would be a hassle. Sorry I couldn't be 
more helpful.

David
-- 
Soon to be a major religion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to see UNICODE character number?

2007-11-14 Thread Yuri
> > All programs just show the character itself when I paste it :-)
> 
> Have you tried kcharselect ?

Tried it now. When I paste the character to the box in the bottom and press
Enter nothing happens.
I would like to see it's UNICODE number (like &9991;)

But it goes the opposite way: from UNICODE number to the character.
The problem though that there are ~20K Chinese characters in UNICODE table.

Yuri

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to see UNICODE character number?

2007-11-14 Thread David J Brooks
On Wednesday 14 November 2007 01:17:03 am Yuri wrote:
> What is the easiest way to get the UNICODE number for a Chinese character?
> I use KDE.
>
> All programs just show the character itself when I paste it :-)

Have you tried kcharselect ?

David
-- 
This message is presented in DoubleVision (where intoxicated)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"