Browsing Unicode Symbols
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Browsing Unicode Symbols         


Author: Nordlöw
Date: Jul 8, 2008 05:58

Is there a way to visually browse/explore the Unicode symbols
available in GNU Emacs (CVS) either globally or locally defined by a
specific/current font? Compare list-colors-display().

Thanks in advance,
Nordlöw
6 Comments
Re: Browsing Unicode Symbols         


Author: Peter Dyballa
Date: Jul 8, 2008 08:37

Am 08.07.2008 um 14:58 schrieb Nordlöw:
> Is there a way to visually browse/explore the Unicode symbols
> available in GNU Emacs (CVS) either globally or locally defined by a
> specific/current font? Compare list-colors-display().

Yes. Open utf8.txt from the Kermit distribution. When you're using
only fonts (as opposed to fontsets) then you'll see, what this font
can offer for you.

--
Greetings

Pete

The mathematician who pursues his studies without clear views of this
matter, must often have the uncomfortable feeling that his paper and
pencil surpass him in intelligence.
– Ernst Mach
no comments
Re: Browsing Unicode Symbols         


Author: Florian Beck
Date: Jul 8, 2008 15:52

Peter Dyballa writes:
> Am 08.07.2008 um 14:58 schrieb Nordlöw:
>
>> Is there a way to visually browse/explore the Unicode symbols
>> available in GNU Emacs (CVS) either globally or locally defined by a
>> specific/current font? Compare list-colors-display().
>
> Yes. Open utf8.txt from the Kermit distribution. When you're using
> only fonts (as opposed to fontsets) then you'll see, what this font
> can offer for you.

How exactly do I do this: »using only fonts (as opposed to fontsets)«?
As far as I can see I am always using a fontset.

Anyway, to see how a certain character is displayed, simply insert it:

(insert (propertize STRING 'face `(:family ,(format "%%s" FONT))))

To visualise how a certain character is displayed by all your fonts, you
can use something like this:
Show full article (1.61Kb)
no comments
Re: Browsing Unicode Symbols         


Author: Xah
Date: Jul 9, 2008 00:43

On Jul 8, 5:58 am, Nordlöw gmail.com> wrote:
> Is there a way to visually browse/explore the Unicode symbols
> available in GNU Emacs (CVS) either globally or locally defined by a
> specific/current font? Compare list-colors-display().

I'm not aware of one... (not that i would know...)

However, you could easly create your own by several means. Here's few
possibilities.

• Just create a file and insert unicode you use often. Then, you can
easily define a command and bind it to f6, so pressing a buttons shows
it.

For some symbols i use, i have

http://xahlee.org/emacs/unicode.txt
http://xahlee.org/Periodic_dosage_dir/t1/20040505_unicode.html

; open my unicode template with F8 key
(global-set-key (kbd "")
(lambda () (interactive) (find-file "~/my_unicode_template.txt")))

• here's a code that insert unicode chars 32 to 128
Show full article (0.98Kb)
no comments
Re: Browsing Unicode Symbols         


Author: Peter Dyballa
Date: Jul 9, 2008 01:08

Am 09.07.2008 um 00:52 schrieb Florian Beck:
> Peter Dyballa writes:
>
>> Am 08.07.2008 um 14:58 schrieb Nordlöw:
>>
>>> Is there a way to visually browse/explore the Unicode symbols
>>> available in GNU Emacs (CVS) either globally or locally defined by a
>>> specific/current font? Compare list-colors-display().
>>
>> Yes. Open utf8.txt from the Kermit distribution. When you're using
>> only fonts (as opposed to fontsets) then you'll see, what this font
>> can offer for you.
>
> How exactly do I do this: »using only fonts (as opposed to fontsets)«?
> As far as I can see I am always using a fontset.

I don't know for sure. Maybe it works to select a certain font from
the fonts menu (S-mouse-1).
Show full article (1.28Kb)
no comments
Re: Browsing Unicode Symbols         


Author: Florian Beck
Date: Jul 9, 2008 07:32

Peter Dyballa writes:
>> To see how a specific font renders all characters, dolist the
>> characters
>> defined in the the unicode standard (/admin/unidata/UnicodeData.txt in
>> the emacs sources).
>
> How do *you* see these? The file is just a description of Unicode
> characters in US-ASCII

Well, yes, but you can use it to get the data you need.

I do it with this function:

(defun test-unicode (&optional font)
(interactive)
(let (unidata)
(with-temp-buffer
(insert-file-contents "/home/fb/src/emacs/admin/unidata/UnicodeData.txt")
(goto-char (point-min)...
Show full article (8.87Kb)
no comments
Re: Browsing Unicode Symbols         


Author: Peter Dyballa
Date: Jul 10, 2008 04:04

Am 09.07.2008 um 16:32 schrieb Florian Beck:
> I do it with this function:

Impressive!

--
Mit friedvollen Grüßen

Pete

To drink without thirst and to make love all the time, madam, it is
only these which distinguish us from the other beasts.
– Beaumarchais
no comments