all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* EURO-Symbol in GNU Emacs
@ 2006-06-15 10:25 juergen melzer
  0 siblings, 0 replies; 5+ messages in thread
From: juergen melzer @ 2006-06-15 10:25 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1219 bytes --]

Hi there,

I am really stuck getting the EURO-Symbol shown and written in Emacs.

My Emacs-version is: GNU Emac 21.3.1 (i386-mingw-nt5.1.2600) on a MS Windows XP (SP2) system (bad habbit, I know ;-) )

For displaying the symbol, I first tried using the ms-latn-ex.el package by this commands .emacs:
a) (autoload 'ms-latn-ex "latin-extra") and 
b) (set-face-font 'default '"latin-extra")

My second try was to use the following (also in .emacs):
(set-w32-system-coding-system 'iso-8859-15)

Both approaches ran without errors when emacs starts.
Even so, what I am shown in emacs is: \200 for the EURO-Symbol inserted by an regular text-editor.

Secondly I tryd something to write the EURO-Symbol by following function:
(defun insert-euro ()
  "insert the euro sign"
  (interactive "*")
  (insert (string (make-char 'latin-iso8859-15 164))))

It actually shows me an EURO-Symbol, but a regular text-editor is showing me the following: Ž¤

Please help me, I really spend hours an that problem and did'nt fix anything.

Thanks so much in advance,


Juergen Melzer




 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[-- Attachment #1.2: Type: text/html, Size: 1351 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: EURO-Symbol in GNU Emacs
       [not found] <mailman.2909.1150378833.9609.help-gnu-emacs@gnu.org>
@ 2006-06-15 14:05 ` Mathias Dahl
  2006-06-15 21:58 ` RjjdBae
  2006-06-16  3:06 ` B. T. Raven
  2 siblings, 0 replies; 5+ messages in thread
From: Mathias Dahl @ 2006-06-15 14:05 UTC (permalink / raw)


juergen melzer <juergenmelzer@yahoo.com> writes:

>    Hi there,
>    I am really stuck getting the EURO-Symbol shown and written in Emacs.
>    My Emacs-version is: GNU Emac 21.3.1 (i386-mingw-nt5.1.2600) on a MS
>    Windows XP (SP2) system (bad habbit, I know ;-) )

I am using CVS Emacs on an English Windows XP with Swedish keyboard
layout and to enter a EURO sign, all I have to do is to type AltGr +
e.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: EURO-Symbol in GNU Emacs
       [not found] <mailman.2909.1150378833.9609.help-gnu-emacs@gnu.org>
  2006-06-15 14:05 ` EURO-Symbol in GNU Emacs Mathias Dahl
@ 2006-06-15 21:58 ` RjjdBae
  2006-06-16  8:50   ` Peter Dyballa
  2006-06-16  3:06 ` B. T. Raven
  2 siblings, 1 reply; 5+ messages in thread
From: RjjdBae @ 2006-06-15 21:58 UTC (permalink / raw)


I ran your insert-euro (Thanks!) using Windows emacs (21.3.1
(i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO), and it showed a Euro
in the emacs buffer.
I saved the file, and opened it with Microsoft Word 2003.  Most of the
font choices that appeared in the little window that popped up when I
opened the file showed a little Sputnik, but Latin 9 showed a Euro.

I couldn't find a font in Notepad or Wordpad that would draw a Euro.
Neither had Latin 9.

What is your "regular text-editor"?

Regards, Bob


juergen melzer wrote:
> Hi there,
>
> I am really stuck getting the EURO-Symbol shown and written in Emacs.
>
> My Emacs-version is: GNU Emac 21.3.1 (i386-mingw-nt5.1.2600) on a MS Windows XP (SP2) system (bad habbit, I know ;-) )
>
> For displaying the symbol, I first tried using the ms-latn-ex.el package by this commands .emacs:
> a) (autoload 'ms-latn-ex "latin-extra") and
> b) (set-face-font 'default '"latin-extra")
>
> My second try was to use the following (also in .emacs):
> (set-w32-system-coding-system 'iso-8859-15)
>
> Both approaches ran without errors when emacs starts.
> Even so, what I am shown in emacs is: \200 for the EURO-Symbol inserted by an regular text-editor.
>
> Secondly I tryd something to write the EURO-Symbol by following function:
> (defun insert-euro ()
>   "insert the euro sign"
>   (interactive "*")
>   (insert (string (make-char 'latin-iso8859-15 164))))
>
> It actually shows me an EURO-Symbol, but a regular text-editor is showing me the following: Ž¤
>
> Please help me, I really spend hours an that problem and did'nt fix anything.
>
> Thanks so much in advance,
>
>
> Juergen Melzer
>
>
>
>
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> --0-1438043103-1150367121=:57529
> Content-Type: text/html; charset=iso-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 1350
>
> Hi there,<br><br>I am really stuck getting the EURO-Symbol shown and written in Emacs.<br><br>My Emacs-version is: GNU Emac 21.3.1 (i386-mingw-nt5.1.2600) on a MS Windows XP (SP2) system (bad habbit, I know ;-) )<br><br>For displaying the symbol, I first tried using the ms-latn-ex.el package by this commands .emacs:<br>a) (autoload 'ms-latn-ex "latin-extra") and <br>b) (set-face-font 'default '"latin-extra")<br><br>My second try was to use the following (also in .emacs):<br>(set-w32-system-coding-system 'iso-8859-15)<br><br>Both approaches ran without errors when emacs starts.<br>Even so, what I am shown in emacs is: \200 for the EURO-Symbol inserted by an regular text-editor.<br><br>Secondly I tryd something to write the EURO-Symbol by following function:<br>(defun insert-euro ()<br>&nbsp; "insert the euro sign"<br>&nbsp; (interactive "*")<br>&nbsp; (insert (string (make-char 'latin-iso8859-15 164))))<br><br>It actually shows me an EURO-Symbol, but a regular text-editor is
>  showing me the following: Ž¤<br><br>Please help me, I really spend hours an that problem and did'nt fix anything.<br><br>Thanks so much in advance,<br><br><br>Juergen Melzer<br><br><br><br><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com
> --0-1438043103-1150367121=:57529--

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: EURO-Symbol in GNU Emacs
       [not found] <mailman.2909.1150378833.9609.help-gnu-emacs@gnu.org>
  2006-06-15 14:05 ` EURO-Symbol in GNU Emacs Mathias Dahl
  2006-06-15 21:58 ` RjjdBae
@ 2006-06-16  3:06 ` B. T. Raven
  2 siblings, 0 replies; 5+ messages in thread
From: B. T. Raven @ 2006-06-16  3:06 UTC (permalink / raw)



At least one representation of the Euro character in this (in 21.3 w32):
Char: ^[$,1tL^[(B (01235114, 342604, 0x53a4c, file ...)

If you can see the glyph in emacs, then save the file as utf-8 and then
open or insert it in the "regular text-editor" as encoded text. (Probably
really a word processor.)
If you put something like the followning in your emacs, you will be able
to insert it easily:

(global-set-key "\C-cL" (lambda () (interactive)  (insert  ?£ )))
(global-set-key "\C-c$" (lambda () (interactive)  (insert  ?€ )))

Problems with exotic characters are usually due to either inappropriate
fonts or encodings. For instance, a-acute is represented differently in
emacs depending on whether it is taken from character set latin-1 or
latin-4. After saving the file as utf-8 and then re-opening it the
character should be unified to the same byte representation. The \200
should be selectable as a single character, so you can run query-replace
on all of them and substitute with € . I just pasted the Euro symbol from
this posting back into Emacs, where it started, and it appeared as \200.
Another problem is that MS uses a byte order mark in its Unicode files
whereas the rest of the world does not.
"juergen melzer" <juergenmelzer@yahoo.com> wrote in message
news:mailman.2909.1150378833.9609.help-gnu-emacs@gnu.org...
Hi there,

I am really stuck getting the EURO-Symbol shown and written in Emacs.

My Emacs-version is: GNU Emac 21.3.1 (i386-mingw-nt5.1.2600) on a MS
Windows XP (SP2) system (bad habbit, I know ;-) )

For displaying the symbol, I first tried using the ms-latn-ex.el package
by this commands .emacs:
a) (autoload 'ms-latn-ex "latin-extra") and
b) (set-face-font 'default '"latin-extra")

My second try was to use the following (also in .emacs):
(set-w32-system-coding-system 'iso-8859-15)

Both approaches ran without errors when emacs starts.
Even so, what I am shown in emacs is: \200 for the EURO-Symbol inserted by
an regular text-editor.

Secondly I tryd something to write the EURO-Symbol by following function:
(defun insert-euro ()
  "insert the euro sign"
  (interactive "*")
  (insert (string (make-char 'latin-iso8859-15 164))))

It actually shows me an EURO-Symbol, but a regular text-editor is showing
me the following: Ž¤

Please help me, I really spend hours an that problem and did'nt fix
anything.

Thanks so much in advance,


Juergen Melzer




__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: EURO-Symbol in GNU Emacs
  2006-06-15 21:58 ` RjjdBae
@ 2006-06-16  8:50   ` Peter Dyballa
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2006-06-16  8:50 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 15.06.2006 um 23:58 schrieb RjjdBae:

> the file showed a little Sputnik, but Latin 9 showed a Euro.

This little Sputnik is

;   oct   dec   hex    UCS2    UTF-8
;=====================================
¤ = 244 = 164 = A4 = U+00A4 =    C2 A4 : CURRENCY SIGN

in most ISO Latin/ISO 8859 encodings. Only in ISO 8859-15/ISO Latin-9  
or ISO Latin-0 and in ISO 8859-16/ISO Latin-10 we have the €:

;   oct   dec   hex    UCS2    UTF-8
;=====================================
€ = 244 = 164 = A4 = U+20AC = E2 82 AC : EURO SIGN

Other exceptions at this position (slot) are in:

ISO 8859-10: Ī = U+012A =    C4 AA : LATIN CAPITAL LETTER I WITH  
MACRON		(Latin 6)
ISO 8859-14: Ċ = U+010A =    C4 8A : LATIN CAPITAL LETTER C WITH DOT  
ABOVE	(Latin 8)
ISO 8859-5:  Є = U+0404 =    D0 84 : CYRILLIC CAPITAL LETTER  
UKRAINIAN IE
ISO 8859-11: ค = U+0E04 = E0 B8 84 : THAI CHARACTER KHO KHWAI		(thai- 
tis620)

You can see that the € is encoded 'in a far away' position in an  
Unicode encoded TrueType or OpenType font. So the font needs to be re- 
encoded to display the bit sequence (1, 2, or 3 bytes) in the file  
correctly. In UNIX I add as first line:

	;;; -*- mode: Text; coding: iso-8859-16; -*-

Here ;;; is a Lisp comment. In a (La)TeX file it would be %%%. A  
different approach is with buffer-local variables at the end of the  
file (or buffer):

	%%% Local Variables:
	%%% mode: latex
	%%% coding: utf-8
	%%% TeX-master: t
	%%% End:

Both these ways a particular file encoding for use in GNU Emacs can  
be set successfully – which other editors won't understand! An  
editor that can switch encodings is a good thing.

--
Greetings

   Pete
               <\
                 \__     O                       __O
                 | O\   _\\/\-%                _`\<,
                 '()-'-(_)--(_)               (_)/(_)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-16  8:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2909.1150378833.9609.help-gnu-emacs@gnu.org>
2006-06-15 14:05 ` EURO-Symbol in GNU Emacs Mathias Dahl
2006-06-15 21:58 ` RjjdBae
2006-06-16  8:50   ` Peter Dyballa
2006-06-16  3:06 ` B. T. Raven
2006-06-15 10:25 juergen melzer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.