From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: display of ancient Greek chars (after: Re: set UTF-8 for a file (HTML)) Date: Mon, 11 Feb 2008 19:17:13 -0500 Message-ID: <47B0E589.2070607@speakeasy.net> References: <47AF5A17.4090709@speakeasy.net> <2C88ADB5-83F9-4963-BC24-5F3AAA1A1FD6@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1202775494 29561 80.91.229.12 (12 Feb 2008 00:18:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 00:18:14 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 12 01:18:37 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOir1-0001ZA-5u for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2008 01:18:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOiqX-0000Cg-LY for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2008 19:18:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOiqF-0000CS-6Y for help-gnu-emacs@gnu.org; Mon, 11 Feb 2008 19:17:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOiqD-0000C2-MI for help-gnu-emacs@gnu.org; Mon, 11 Feb 2008 19:17:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOiqD-0000Bv-FZ for help-gnu-emacs@gnu.org; Mon, 11 Feb 2008 19:17:41 -0500 Original-Received: from mail6.sea5.speakeasy.net ([69.17.117.8]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JOiqD-0006OO-IE for help-gnu-emacs@gnu.org; Mon, 11 Feb 2008 19:17:41 -0500 Original-Received: (qmail 20489 invoked from network); 12 Feb 2008 00:17:38 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.26]) (gebser@[66.93.11.17]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 12 Feb 2008 00:17:38 -0000 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) In-Reply-To: <2C88ADB5-83F9-4963-BC24-5F3AAA1A1FD6@Web.DE> X-Enigmail-Version: 0.95.6 OpenPGP: id=45796D04 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51434 Archived-At: On 02/10/2008 06:11 PM Peter Dyballa wrote: > > 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")) > .... Peter, Thanks, but that didn't work. I cut-n-pasted the code you provided into its own file. Then I ran emacs -q -l emacs.d/.emacs-with-multi-langs & (emacs.d/.emacs-with-multi-langs is the file your code went into.) Then I opened up (visited) my file with the Greek chars in it and they showed up as what I can only describe as "garbage" characters, not even the blocks I had before and certainly nothing like Greek. On an optimistic note, running "fc-list :lang=el" returned 86 lines of fonts, many with multiple styles. And $ fc-list :lang=el|grep -i "courier new" Courier New:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,thường,Arrunta Courier New:style=Bold Italic,Negreta cursiva,tučné kurzíva,fed kursiv,Fett Kursiv,Έντονα Πλάγια,Negrita Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,Полужирный Курсив,Tučná kurzíva,Fet Kursiv,Kalın İtalik,Krepko poševno,Lodi etzana Courier New:style=Italic,Cursiva,kurzíva,kursiv,Πλάγια,Kursivoitu,Italique,Dőlt,Corsivo,Cursief,Kursywa,Itálico,Курсив,İtalik,Poševno,nghiêng,Etzana Courier New:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Полужирный,Fet,Kalın,Krepko,đậm,Lodia (Line wrap broke the lines above between "Courier" and "New".) So would it fix things to change somehow this line in your code: (set-fontset-font "fontset-09pt_adobe_courier" (cons (decode-char 'ucs #x0370) (decode-char 'ucs #x03cf)) '("courier new" . "iso10646-1")) ; Greek ?? Thanks again. -- The significant problems we face cannot be solved at the same level of thinking we were at when we created them. -- Albert Einstein