How can i add other characters from the charset? F.i. the euro-sign. This
is number 162 in the Latin-1 charset.
greetings Dean.
Dean> I want to add some special characters in my documents. In the
Dean> documentation i found how to insert many characters with
Dean> Ctrl-x-8 xxxx.
Dean> How can i add other characters from the charset? F.i. the
Dean> euro-sign. This is number 162 in the Latin-1 charset.
There is no euro sign in Latin-1. 162=0xA2 is cent sign:
,----
| ¢
| unicode-a (Unicode A): #x2042, 00-34
| UCS: 000000A2 (CENT SIGN)
| General Category: Symbol, Currency
| Canonical Combining Classes: 0
| Bidirectional Category: ET
| Mirror-able: N
| Title-case = nil
`----
Euro sign is in Unicode at
,----
| €
| unicode-a (Unicode A): #x756C, 85-76
| UCS: 000020AC (EURO SIGN)
| General Category: Symbol, Currency
| Canonical Combining Classes: 0
| Bidirectional Category: ET
| Mirror-able: N
| Title-case = nil
`----
together with
,----
| ₠
| unicode-a (Unicode A): #x7560, 85-64
| UCS: 000020A0 (EURO-CURRENCY SIGN)
| General Category: Symbol, Currency
| Canonical Combining Classes: 0
| Bidirectional Category: ET
| Mirror-able: N
| Title-case = nil
`----
--
Sergei
> How can i add other characters from the charset? F.i. the
> euro-sign. This is number 162 in the Latin-1 charset.
The euro sign is in iso-8859-15 (or was it -10 or -11? I can't
remember), not in iso-8859-1. Number 162 in iso-8859-1 is the generic
currency symbol.
kai
--
Be indiscrete. Do it continuously.
Kai> On Tue, 16 Jan 2001, Dean Buhrmann wrote:
>> How can i add other characters from the charset? F.i. the
>> euro-sign. This is number 162 in the Latin-1 charset.
Kai> The euro sign is in iso-8859-15 (or was it -10 or -11? I can't
Kai> remember), not in iso-8859-1. Number 162 in iso-8859-1 is the
Kai> generic currency symbol.
No, the generic currency symbol is at 0xa4=164. 162 is the cent sign.
--
Sergei
You are both right, because the Euro's code in iso-8859-15 is 164, not
162. And 164 in iso-8859-1 is the currency symbol.
> No, the generic currency symbol is at 0xa4=164. 162 is the cent sign.
You made that clear Sergei in your previous message. I don't know if you
received my reply on that. This reply didn't show up on the Newsserver i
posted it. Neither can i read the the message from Eli Zaretskii.
Can you tell me how to insert the characters you mentioned, or how to
insert in general characters from the Unicode set in a document.
greetings Dean.
Dean> Sergei Pokrovsky wrote:
>> No, the generic currency symbol is at 0xa4=164. 162 is the cent
>> sign.
Dean> You made that clear Sergei in your previous message. I don't
Dean> know if you received my reply on that.
No, I didn't.
Dean> This reply didn't show up on the Newsserver i posted
Dean> it. Neither can i read the the message from Eli Zaretskii.
Big Brother?
Dean> Can you tell me how to insert the characters you mentioned, or
Dean> how to insert in general characters from the Unicode set in a
Dean> document.
There are two typical situations:
1. I am typing in Russian and English. There are several "input
methods" in Mule well suited for typing in these languages. The
resulting text fits some 8-bit encoding, e.g. koi8-r or iso-8859-1.
2. Sometimes I add extra characters from, say, Polish or French; the
mix cannot be accommodated in any widely used encoding, and it is
saved in Unicode (UTF-8).
In such a case the Unicode encoding appears only when I try to save
the buffer or to post a message; before that the individual character
bears the attributes of the input mode: Russian "привет" is in
iso-8859-5, the Polish "cześć" is in Latin-2; but you shall see them
after I post it, so it should be in UTF-8.
OTOH it is possible to input Unicode directly with my package
u8tex.el, e.g. if I activate this input method, typing /euro produces
€, typing /forall produces ∀ (universal quantifier), /schwa produces ə
etc -- see
;;; quail/u8tex.el -- Quail package to input in -*- coding: utf-8 -*-
;; Copyright (C) 2000 Sergei Pokrovsky
;; Time-stamp: <2001-01-14 14:43:26 pok>, v. 1.2
;; Keywords: mule, multilingual, unicode, input method, TeX
;; Based on definitions stolen from "unicode-input.el" by
;; Florian Weimer <f...@s.netic.de>.
;; The latest version is to be found at CTAN/support/emacs-modes/u8tex.el;
;; e.g. <ftp://ftp.dante.de/tex-archive/support/emacs-modes/u8tex.el>.
;;; Commentary:
;;
;; This file is intended for use with Markus Kuhn's Unicode fonts,
;; see <http://www.cl.cam.ac.uk/~mgk25/unicode.html>, and the
;; Otfried Cheong's extension of Mule-UCS, available at
;; <http://www.cs.uu.nl/~otfried/Mule/>.
;; The idea is to provide a routine way to input the many TeX
;; characters (and some more) using the familiar TeX notation. Surely
;; it is not convenient for typing a French or German text, for which
;; there are special packages; but I prefer to use it for a mixed
;; text, where some accented characters from various languages occur
;; sporadically, and it is better to type a longer key sequence
;; /"Arger for Ärger rather than suffer from unexpected äny" when
;; typing "any" (as it is usual with the shorter `"Arger' manner, or
;; with o'clock becoming oćlock etc).
;; I've taken some liberties with the TeX notation:
;; 1. Backslash is replaced with solidus in its escape function. The
;; reason is obvious: TeX users heavily use backspace for many other
;; purposes as well.
;; 2. The prefix "text" is systematically dropped; just /euro rather
;; than /texteuro, /perthousand rather than \textperthousand.
;; 3. No internal spaces, e.g. /cC rather than {/c C} or /c{C}.
;; 4. /! and /? are used instead of !` and ?` -- like in EuroTeX,
;; just to reduce the number of escape characters.
;; 5. /3/4 etc is used instead of \textthreequarters.
;; 6. If HTML offers a shorter Latin-1 name, it is preferred:
;; /reg rather than \textregistered, /nbsp rather than \nobreakspace,
;; /copy rather than \copyright etc.
--
Sergei