Re: How to enter unicode in F9
Dave Feustel wrote: ... Is there a way to enter unicode characters in xterm? Not for xterm specifically, but in gnome-terminal or other gtk applications, you can type Unicode characters using Ctrl+Shift+U, hex digits, space. https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
Dave Feustel wrote: > On Sun, Nov 09, 2008 at 09:38:48AM -0500, Matthew Flaschen wrote: >> Gene Heskett wrote: >>> Except that is a 'frownie' as displayed here, and in this email. >> ☺ >> > When I try this on F9 using ksh, I get blank lines. > What font(s) need to be installed? It works for me in ksh with xterm or konsole. The smileys are in DejaVu-Sans, which I believe is installed by default. Matt Flaschen -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
Alan Cox wrote: > For example, there is umlaut - and that could be transliterated into > `u' for example. Others may have strange looking unicode and I have That depends on the language. Unicode is just character encoding rules. You need more context to do transliterations. Not that you should need to as you can just install the relevant fonts. DejaVu has pretty good European coverage for example and is one of the standard installed fonts in current Fedora. You also have to watch the encodings. Its not uncommon to find mis-coded information in OGG and similar files where the track data is mis-encoded in one of the legacy ISO-8859 code pages not UTF-8 and that produces invalid utf-8 sequences so will be displayed as the symbol for an invalid character. > no idea what it is supposed to me - so I cannot transliterate w/o knowing > what it is in the first place - so how do I find out? The unlaut is > sometimes > obvious - but others are not. So is there a way to show this? As I said, Load the right fonts and they will be rendered correctly. > I get binary icons so how do I get the unicode decimal representation so > that I can match against the unicode character table to see what it is? The 'four squares' shown for an unknown symbol should each contain a hex digit which together give you the symbol code which you can look up on the unicode web site. > Would it be: print \\%d, $1 ? It's UTF-8 so a variable length encoding of the full unicode symbol space. See www.unicode.org if you want to the full details but basically each symbol is encoded as a series of bytes such that C special symbol \0 is never found mid-character and so that the ASCII range of symbols for American English is mapped 1:1 with UTF-8. Alan Thanks for the tip! I will review the link you gave me (already started!) Dan -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
> For example, there is umlaut - and that could be transliterated into > `u' for example. Others may have strange looking unicode and I have That depends on the language. Unicode is just character encoding rules. You need more context to do transliterations. Not that you should need to as you can just install the relevant fonts. DejaVu has pretty good European coverage for example and is one of the standard installed fonts in current Fedora. You also have to watch the encodings. Its not uncommon to find mis-coded information in OGG and similar files where the track data is mis-encoded in one of the legacy ISO-8859 code pages not UTF-8 and that produces invalid utf-8 sequences so will be displayed as the symbol for an invalid character. > no idea what it is supposed to me - so I cannot transliterate w/o knowing > what it is in the first place - so how do I find out? The unlaut is > sometimes > obvious - but others are not. So is there a way to show this? As I said, Load the right fonts and they will be rendered correctly. > I get binary icons so how do I get the unicode decimal representation so > that I can match against the unicode character table to see what it is? The 'four squares' shown for an unknown symbol should each contain a hex digit which together give you the symbol code which you can look up on the unicode web site. > Would it be: print \\%d, $1 ? It's UTF-8 so a variable length encoding of the full unicode symbol space. See www.unicode.org if you want to the full details but basically each symbol is encoded as a series of bytes such that C special symbol \0 is never found mid-character and so that the ASCII range of symbols for American English is mapped 1:1 with UTF-8. Alan -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
Alan Cox wrote: > How about the other way around? What if you want to, > say translate unicode characters to english? I have I'm not sure what you mean by "to English", Unicode is a character encoding not a language dependant encoding. You can look up unicode symbols on www.unicode.org, you probably need the right fonts installed that is all. Alan -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines For example, there is umlaut - and that could be transliterated into `u' for example. Others may have strange looking unicode and I have no idea what it is supposed to me - so I cannot transliterate w/o knowing what it is in the first place - so how do I find out? The unlaut is sometimes obvious - but others are not. So is there a way to show this? As I said, I get binary icons so how do I get the unicode decimal representation so that I can match against the unicode character table to see what it is? Would it be: print \\%d, $1 ? Thanks! Dan -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
> How about the other way around? What if you want to, > say translate unicode characters to english? I have I'm not sure what you mean by "to English", Unicode is a character encoding not a language dependant encoding. You can look up unicode symbols on www.unicode.org, you probably need the right fonts installed that is all. Alan -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
Patrick O'Callaghan wrote: On Sun, 2008-11-09 at 09:38 -0500, Matthew Flaschen wrote: > Gene Heskett wrote: > > Except that is a 'frownie' as displayed here, and in this email. > > ☺ ☹ poc Maybe off topic? How about the other way around? What if you want to, say translate unicode characters to english? I have song files that have unicode characters and some for which I have no idea what it is supposed to represent. For example, some song files have this image of a box with binary numbers in them, supposedly a unicode character, and I thought of simply deleting them, but I'd like to know what they really are and if they can be translated into english? Thanks! Dan -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
> "Matthew" == Matthew Flaschen <[EMAIL PROTECTED]> writes: Matthew> Colin Paul Adams wrote: >> I just tried this, and I get presented with a >> >> >> prompt. Matthew> Can you clarify? What shell are you using, and what kind Matthew> of prompt did you see?? Did you paste exactly: Matthew> uc() { /usr/bin/printf \\u$1; }; Matthew> as the first line and Matthew> echo $(uc 2639) Matthew> as the second? You should see a smiley face (☹) for this Matthew> example. I made a few mistakes. Works now. Thanks. -- Colin Adams Preston Lancashire -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
oops. didnt paste the first line. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
Colin Paul Adams wrote: > I just tried this, and I get presented with a > >> > > prompt. I am using the bash shell, and I get: $ echo $(uc 2639) bash: uc: command not found -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
On Sun, Nov 09, 2008 at 09:38:48AM -0500, Matthew Flaschen wrote: > Gene Heskett wrote: > > Except that is a 'frownie' as displayed here, and in this email. > > ⺠> When I try this on F9 using ksh, I get blank lines. What font(s) need to be installed? -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
On Sun, 2008-11-09 at 09:38 -0500, Matthew Flaschen wrote: > Gene Heskett wrote: > > Except that is a 'frownie' as displayed here, and in this email. > > ☺ ☹ poc -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
Gene Heskett wrote: > Except that is a 'frownie' as displayed here, and in this email. ☺ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
On Sunday 09 November 2008, Matthew Flaschen wrote: >Colin Paul Adams wrote: >> I just tried this, and I get presented with a >> >> >> prompt. > >Can you clarify? What shell are you using, and what kind of prompt did >you see?? Did you paste exactly: > >uc() { /usr/bin/printf \\u$1; }; > >as the first line and > >echo $(uc 2639) > >as the second? You should see a smiley face (☹) for this example. > >Matt Flaschen Except that is a 'frownie' as displayed here, and in this email. -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) "I'd love to go out with you, but I'm converting my calendar watch from Julian to Gregorian." -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
Colin Paul Adams wrote: > I just tried this, and I get presented with a > > > prompt. Can you clarify? What shell are you using, and what kind of prompt did you see?? Did you paste exactly: uc() { /usr/bin/printf \\u$1; }; as the first line and echo $(uc 2639) as the second? You should see a smiley face (☹) for this example. Matt Flaschen -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
> "Matthew" == Matthew Flaschen <[EMAIL PROTECTED]> writes: Matthew> Dave Feustel wrote: >> In vim, entering ctl-V u works. This does not work for me >> on the xterm command line (ksh is shell). >> >> Is there a way to enter unicode characters in xterm? Matthew> One way that will work in any shell is: Matthew> uc() { /usr/bin/printf \\u$1; }; Matthew> Then, use e.g. Matthew> echo $(uc 2639) Matthew> You can export uc from your initialization file. I just tried this, and I get presented with a > prompt. -- Colin Adams Preston Lancashire -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to enter unicode in F9
Dave Feustel wrote: > In vim, entering ctl-V u works. This does not > work for me on the xterm command line (ksh is shell). > > Is there a way to enter unicode characters in xterm? One way that will work in any shell is: uc() { /usr/bin/printf \\u$1; }; Then, use e.g. echo $(uc 2639) You can export uc from your initialization file. Matt Flaschen -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
How to enter unicode in F9
In vim, entering ctl-V u works. This does not work for me on the xterm command line (ksh is shell). Is there a way to enter unicode characters in xterm? Thanks. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines