[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display of ancient Greek chars (after: Re: set UTF-8 for a file (HTM

From: Peter Dyballa
Subject: Re: display of ancient Greek chars (after: Re: set UTF-8 for a file (HTML))
Date: Mon, 11 Feb 2008 00:11:57 +0100

Am 10.02.2008 um 21:09 schrieb ken:

Is there another variable:value pair I can include in the first line (specified above) to make the Greek characters display correctly in emacs?

No, not that easily (there were rich or augmented text modes mentioned on this list, but I don't remember). The problem you have in GNU Emacs is that you either need a (mono-spaced) font that has Latin and Greek glyphs (xfd can display a font's contents, you could also set for xfontsel a sampleTextUCS resource that combines Greek and some Latin to instantly show whether the chosen font is able to display it, you also can use fc-list to display only fonts that have Greek support: 'fc-list :lang=el', the "word" ``el´´ is from RFC-3066/ ISO 639, which you should know as HTML programmer) or you need to setup a fontset in which you combine font A to serve for Latin and font B to serve for Greek (and font C for Indic ...). Something like this might work (for one font size):

(create-fontset-from-fontset-spec "-adobe-courier-medium-r-*-*-9- *-*-*-*-*-fontset-09pt_adobe_courier" t 'noerror) (set-fontset-font "fontset-09pt_adobe_courier" 'latin- iso8859-1 '("adobe-courier" . "iso8859-1")) (set-fontset-font "fontset-09pt_adobe_courier" 'latin- iso8859-2 '("adobe-courier" . "iso8859-2")) (set-fontset-font "fontset-09pt_adobe_courier" 'latin- iso8859-3 '("adobe-courier" . "iso8859-3")) (set-fontset-font "fontset-09pt_adobe_courier" 'latin- iso8859-4 '("adobe-courier" . "iso8859-4")) (set-fontset-font "fontset-09pt_adobe_courier" 'latin- iso8859-9 '("adobe-courier" . "iso8859-9")) (set-fontset-font "fontset-09pt_adobe_courier" 'latin- iso8859-14 '("adobe-courier" . "iso8859-14")) (set-fontset-font "fontset-09pt_adobe_courier" 'latin- iso8859-15 '("adobe-courier" . "iso8859-15")) (set-fontset-font "fontset-09pt_adobe_courier" 'mule- unicode-0100-24ff '("adobe-courier" . "iso10646-1")) (set-fontset-font "fontset-09pt_adobe_courier" 'mule- unicode-2500-33ff '("adobe-courier" . "iso10646-1")) (set-fontset-font "fontset-09pt_adobe_courier" 'mule-unicode-e000- ffff '("adobe-courier" . "iso10646-1")) (set-fontset-font "fontset-09pt_adobe_courier" (cons (decode-char 'ucs #x0370) (decode-char 'ucs #x03cf)) '("courier new" . "iso10646-1")) ; Greek (set-fontset-font "fontset-09pt_adobe_courier" (cons (decode-char 'ucs #x03d0) (decode-char 'ucs #x03ff)) '("lucida sans typewriter" . "iso10646-1")) ; Coptic (set-fontset-font "fontset-09pt_adobe_courier" (cons (decode-char 'ucs #x0400) (decode-char 'ucs #x04ff)) '("lucida sans typewriter" . "iso10646-1")) ; Cyrillic (set-fontset-font "fontset-09pt_adobe_courier" (cons (decode-char 'ucs #x0500) (decode-char 'ucs #x052f)) '("lucida sans typewriter" . "iso10646-1")) ; Cyrillic Suppl (set-fontset-font "fontset-09pt_adobe_courier" (cons (decode-char 'ucs #x0530) (decode-char 'ucs #x058f)) '("aramian unicode" . "iso10646-1")) ; Armenian (sylfaen (set-fontset-font "fontset-09pt_adobe_courier" (cons (decode-char 'ucs #x0590) (decode-char 'ucs #x05ff)) '("courier new" . "iso10646-1")) ; Hebrew (set-fontset-font "fontset-09pt_adobe_courier" (cons (decode-char 'ucs #x0600) (decode-char 'ucs #x06ff)) '("lucida sans typewriter" . "iso10646-1")) ; Arabic (set-fontset-font "fontset-09pt_adobe_courier" (cons (decode-char 'ucs #x0700) (decode-char 'ucs #x074f)) '("courier new" . "iso10646-1")) ; Syriac



Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we.
                                – Georges W. Bush

reply via email to

[Prev in Thread] Current Thread [Next in Thread]