unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Special Characters on Mac Emacs
@ 2005-03-09 22:28 Ulrich Hobelmann
  2005-03-10  4:22 ` Stefan Monnier
  0 siblings, 1 reply; 13+ messages in thread
From: Ulrich Hobelmann @ 2005-03-09 22:28 UTC (permalink / raw)


Okay, let me wrap up how things work out for me:

(set-keyboard-coding-system 'mac-roman)

seems to be an easy way to make Emacs behave like one would expect it 
to: all special combinations (umlauts, euro symbol, accents) work.

To make Emacs display the stuff the following works:

(create-fontset-from-fontset-spec

"-apple-monaco-medium-r-normal--12-*-*-*-*-*-fontset-monaco,
         ascii:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman,
         mule-unicode-0100-24ff:-apple-lucida 
grande-medium-r-normal--0-0-75-75-m-0-mac-roman,
         mule-unicode-2500-33ff:-apple-bitstream vera sans mono 
bold-medium-r-normal--0-0-75-75-m-0-mac-roman,
 
latin-iso8859-15:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman,
 
latin-iso8859-1:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman"
)

(set-face-font
  'default "-apple-monaco-medium-r-normal--12-*-*-*-*-*-fontset-monaco")

It seems, however, that Emacs really only uses the first (ascii) part, 
so I tried changing it to:

(create-fontset-from-fontset-spec

"-apple-Bitstream Vera Sans 
Mono-regular-r-normal--13-*-*-*-*-*-fontset-monaco,
         ascii:-apple-Bitstream Vera Sans 
Mono-regular-r-normal--13-140-75-75-m-120-mac-roman,
         mule-unicode-0100-24ff:-apple-lucida 
grande-medium-r-normal--0-0-75-75-m-0-mac-roman,
         mule-unicode-2500-33ff:-apple-bitstream vera sans mono 
bold-medium-r-normal--0-0-75-75-m-0-mac-roman,
 
latin-iso8859-15:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman,
 
latin-iso8859-1:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman"
)

Interestingly now Emacs explodes into the debugger and claims that no 
font matches.  For some reason the very same font works fine with:

(set-face-font 'default "-apple-Bitstream Vera Sans 
Mono-regular-r-normal--13-140-75-75-m-120-mac-roman").  Only then the 
special characters don't display correctly.

What is it that makes Emacs find the font in one instance and not in the 
  other?  And what makes Emacs accept the fontset containing a Monaco 
with mac-roman encoding(!) but display special characters, while loading 
the Bitstream font (also with mac-roman encoding) can't display special 
characters?

The emacs info pages can't really help me.  I don't really understand 
what all those characters and numbers in a fontset stand for...  But 
this doesn't change the fact that emacs doesn't even find my font to 
include it in the fontset.

Regards, Ulrich

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

* Re: Special Characters on Mac Emacs
  2005-03-09 22:28 Special Characters on Mac Emacs Ulrich Hobelmann
@ 2005-03-10  4:22 ` Stefan Monnier
  2005-03-10  6:39   ` Ulrich Hobelmann
                     ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Stefan Monnier @ 2005-03-10  4:22 UTC (permalink / raw)


Discussion of development versions of Emacs, as explained in INSTALL.CVS
should take place in emacs-devel or emacs-pretest-bug so that problems may
have a chance of getting fixed before the release.

Please,


        Stefan


>>>>> "Ulrich" == Ulrich Hobelmann <u.hobelmann@web.de> writes:

> Okay, let me wrap up how things work out for me:

> (set-keyboard-coding-system 'mac-roman)

> seems to be an easy way to make Emacs behave like one would expect it to:
> all special combinations (umlauts, euro symbol, accents) work.

> To make Emacs display the stuff the following works:

> (create-fontset-from-fontset-spec

> "-apple-monaco-medium-r-normal--12-*-*-*-*-*-fontset-monaco,
>          ascii:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman,
>          mule-unicode-0100-24ff:-apple-lucida
>          grande-medium-r-normal--0-0-75-75-m-0-mac-roman,
>          mule-unicode-2500-33ff:-apple-bitstream vera sans mono
>          bold-medium-r-normal--0-0-75-75-m-0-mac-roman,
>  latin-iso8859-15:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman,
>  latin-iso8859-1:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman"
> )

> (set-face-font
>   'default "-apple-monaco-medium-r-normal--12-*-*-*-*-*-fontset-monaco")

> It seems, however, that Emacs really only uses the first (ascii) part, so
> I tried changing it to:

> (create-fontset-from-fontset-spec

> "-apple-Bitstream Vera Sans
> Mono-regular-r-normal--13-*-*-*-*-*-fontset-monaco,
>          ascii:-apple-Bitstream Vera Sans
>          Mono-regular-r-normal--13-140-75-75-m-120-mac-roman,
>          mule-unicode-0100-24ff:-apple-lucida
>          grande-medium-r-normal--0-0-75-75-m-0-mac-roman,
>          mule-unicode-2500-33ff:-apple-bitstream vera sans mono
>          bold-medium-r-normal--0-0-75-75-m-0-mac-roman,
>  latin-iso8859-15:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman,
>  latin-iso8859-1:-apple-monaco-medium-r-normal--12-120-75-75-m-120-mac-roman"
> )

> Interestingly now Emacs explodes into the debugger and claims that no font
> matches.  For some reason the very same font works fine with:

> (set-face-font 'default "-apple-Bitstream Vera Sans
> Mono-regular-r-normal--13-140-75-75-m-120-mac-roman").  Only then the
> special characters don't display correctly.

> What is it that makes Emacs find the font in one instance and not in the
> other?  And what makes Emacs accept the fontset containing a Monaco with
> mac-roman encoding(!) but display special characters, while loading the
> Bitstream font (also with mac-roman encoding) can't display
> special characters?

> The emacs info pages can't really help me.  I don't really understand what
> all those characters and numbers in a fontset stand for...  But this doesn't
> change the fact that emacs doesn't even find my font to include it in
> the fontset.

> Regards, Ulrich

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

* Re: Special Characters on Mac Emacs
  2005-03-10  4:22 ` Stefan Monnier
@ 2005-03-10  6:39   ` Ulrich Hobelmann
  2005-03-10  8:50     ` Sébastien Kirche
  2005-03-10 10:49   ` Peter Dyballa
       [not found]   ` <mailman.3264.1110455297.32256.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 13+ messages in thread
From: Ulrich Hobelmann @ 2005-03-10  6:39 UTC (permalink / raw)


Stefan Monnier wrote:
> Discussion of development versions of Emacs, as explained in INSTALL.CVS
> should take place in emacs-devel or emacs-pretest-bug so that problems may
> have a chance of getting fixed before the release.
> 
> Please,
> 
> 
>         Stefan

Is there also a newsgroup for that?  There's nothing more annoying than 
cluttering my mailbox with stuff and un/subscribing to all kinds of 
mailing lists.

In general, I already reported the "font problem" as a bug, so the 
dev-team should be informed by now that people have problems in that area.

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

* Re: Special Characters on Mac Emacs
  2005-03-10  6:39   ` Ulrich Hobelmann
@ 2005-03-10  8:50     ` Sébastien Kirche
  0 siblings, 0 replies; 13+ messages in thread
From: Sébastien Kirche @ 2005-03-10  8:50 UTC (permalink / raw)


Le 10 Mar 2005, Ulrich Hobelmann a dit :

> Is there also a newsgroup for that?  There's nothing more annoying
> than cluttering my mailbox with stuff and un/subscribing to all kinds
> of mailing lists.

With the  news.gmane.org gateway (managed by Lars  Magne Ingebrigtsen author
of Gnus) you  can subscribe to a newsgroup that is  bound to the emacs-devel
mailing list.

Actually many other mailing lists are available that way.

You can  read with no  limitation, but posting  needs to use either  a valid
from: or  a valid reply-to:  header as the  gataway send a mail  request the
first time you post into a group.

HTH.

-- 
Sébastien Kirche

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

* Re: Special Characters on Mac Emacs
  2005-03-10  4:22 ` Stefan Monnier
  2005-03-10  6:39   ` Ulrich Hobelmann
@ 2005-03-10 10:49   ` Peter Dyballa
       [not found]   ` <mailman.3264.1110455297.32256.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 13+ messages in thread
From: Peter Dyballa @ 2005-03-10 10:49 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 10.03.2005 um 05:22 schrieb Stefan Monnier:

> Discussion of development versions of Emacs

I don't think that this fonts issue is a discussion on that. Handling 
of fonts and fontsets and scripts is too complicated and too imperfect 
although mule is about ten years old. And although from invoking 
configure it is known on which platform and in which (language and 
script) environment this GNU Emacs will run nothing is done to put it 
as a grown-up and ready to use application into this field. You have to 
spend hours and years until something sufficient is at your finger tips 
-- at least outside northern america. And this is quite a wide area ...

I would like to donate my font and fontset files and other settings as 
components/add-ons/examples of stable versions of GNU Emacs and of 
those still in development! I'll have to write some comments, add URLs 
to fetch the fonts, include photographs of the HELLO buffer, test that 
it all works ...

--
Greetings

   Pete

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

* Re: Special Characters on Mac Emacs
       [not found]   ` <mailman.3264.1110455297.32256.help-gnu-emacs@gnu.org>
@ 2005-03-10 13:39     ` Stefan Monnier
  2005-03-10 14:37       ` Peter Dyballa
       [not found]       ` <mailman.3293.1110466438.32256.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 13+ messages in thread
From: Stefan Monnier @ 2005-03-10 13:39 UTC (permalink / raw)


>> Discussion of development versions of Emacs
> I don't think that this fonts issue is a discussion on that.

Of course it is.  The Carbon Emacs code is a development version of Emacs.
If he keeps his discussion here, at best he'll end up with some workaround
in his .emacs and the next upcoming release will still require other people
to use the same workaround.  A development version, contrary to a released
version, is a malleable thing where problems can be fixed rather than
worked around.

There doesn't seem to be any good reason why a user should do anything
special under Carbon Emacs to use the mac-roman encoding/fonts if it's the
default in the system.  So maybe the defaults under Carbon Emacs should be
changed accordingly.


        Stefan

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

* Re: Special Characters on Mac Emacs
  2005-03-10 13:39     ` Stefan Monnier
@ 2005-03-10 14:37       ` Peter Dyballa
       [not found]       ` <mailman.3293.1110466438.32256.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 13+ messages in thread
From: Peter Dyballa @ 2005-03-10 14:37 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 10.03.2005 um 14:39 schrieb Stefan Monnier:

> The Carbon Emacs code is a development version of Emacs.
> If he keeps his discussion here, at best he'll end up with some 
> workaround
> in his .emacs and the next upcoming release will still require other 
> people
> to use the same workaround.

Yes, you're write, the situation needs improvement and therefore 
bug-reports need to be filed. There too a useful discussion forum is 
needed. Emacs-pretest-bug is not suitable for that. What's left for 
discussion of work-arounds etc?

List Post: <mailto:macosx-emacs@email.esm.psu.edu>
List Archives: <http://www.esm.psu.edu/mac-tex/MacOSX-Emacs-Digests/>

--
Greetings

   Pete

Build a man a fire and he'll be warm for a night, but set a man on fire 
and he'll  be warm for the rest of his life.

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

* Re: Special Characters on Mac Emacs
       [not found]       ` <mailman.3293.1110466438.32256.help-gnu-emacs@gnu.org>
@ 2005-03-10 14:50         ` Stefan Monnier
  2005-03-10 15:50           ` Peter Dyballa
                             ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Stefan Monnier @ 2005-03-10 14:50 UTC (permalink / raw)


>> The Carbon Emacs code is a development version of Emacs.  If he keeps his
>> discussion here, at best he'll end up with some workaround in his .emacs
>> and the next upcoming release will still require other people to use the
>> same workaround.

> Yes, you're write, the situation needs improvement and therefore bug-reports
> need to be filed.  There too a useful discussion forum is
> needed. Emacs-pretest-bug is not suitable for that.  What's left for
> discussion of work-arounds etc?

INSTALL.CVS suggests emacs-devel.


        Stefan

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

* Re: Special Characters on Mac Emacs
  2005-03-10 14:50         ` Stefan Monnier
@ 2005-03-10 15:50           ` Peter Dyballa
  2005-03-10 16:58             ` Stefan Monnier
  2005-03-10 16:21           ` Ulrich Hobelmann
       [not found]           ` <mailman.3306.1110471038.32256.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 13+ messages in thread
From: Peter Dyballa @ 2005-03-10 15:50 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 10.03.2005 um 15:50 schrieb Stefan Monnier:

> INSTALL.CVS suggests emacs-devel.

Isn't this about *development*, i.e. avoiding work-arounds, and not 
about getting some help, including work-arounds?

--
Greetings

   Pete

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

* Re: Special Characters on Mac Emacs
  2005-03-10 14:50         ` Stefan Monnier
  2005-03-10 15:50           ` Peter Dyballa
@ 2005-03-10 16:21           ` Ulrich Hobelmann
       [not found]           ` <mailman.3306.1110471038.32256.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 13+ messages in thread
From: Ulrich Hobelmann @ 2005-03-10 16:21 UTC (permalink / raw)


Stefan Monnier wrote:
>>Yes, you're write, the situation needs improvement and therefore bug-reports
>>need to be filed.  There too a useful discussion forum is
>>needed. Emacs-pretest-bug is not suitable for that.  What's left for
>>discussion of work-arounds etc?
> 
> 
> INSTALL.CVS suggests emacs-devel.

I posted to emacs-devel (over the gmane.org gateway; thanks Sébastian!).

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

* Re: Special Characters on Mac Emacs
       [not found]           ` <mailman.3306.1110471038.32256.help-gnu-emacs@gnu.org>
@ 2005-03-10 16:23             ` Ulrich Hobelmann
  2005-03-10 16:25             ` Thien-Thi Nguyen
  1 sibling, 0 replies; 13+ messages in thread
From: Ulrich Hobelmann @ 2005-03-10 16:23 UTC (permalink / raw)


Peter Dyballa wrote:
> 
> Am 10.03.2005 um 15:50 schrieb Stefan Monnier:
> 
>> INSTALL.CVS suggests emacs-devel.
> 
> 
> Isn't this about *development*, i.e. avoiding work-arounds, and not 
> about getting some help, including work-arounds?
> 

Well, we might hope the dev-people will take inspiration and think over 
the font-system :)

Anyway, I'll keep writing my text files in TextEdit; Emacs is for Lisp, 
and there I don't need lots of foreign characters.

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

* Re: Special Characters on Mac Emacs
       [not found]           ` <mailman.3306.1110471038.32256.help-gnu-emacs@gnu.org>
  2005-03-10 16:23             ` Ulrich Hobelmann
@ 2005-03-10 16:25             ` Thien-Thi Nguyen
  1 sibling, 0 replies; 13+ messages in thread
From: Thien-Thi Nguyen @ 2005-03-10 16:25 UTC (permalink / raw)


Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Isn't this about *development*, i.e. avoiding work-arounds, and not
> about getting some help, including work-arounds?

the best work-around is the one understood enough so that it becomes
unnecesary, but that only happens if the control graph has a back edge.
generally, to help the most, you try to help the earliest.  you are not
stuck in some proprietary software hell where earliest is artificially
bounded.  when you understand this, you may may come to consider that
*everything* (impermanent ;-) is about "development", although it is
known by many other names as well.

thi

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

* Re: Special Characters on Mac Emacs
  2005-03-10 15:50           ` Peter Dyballa
@ 2005-03-10 16:58             ` Stefan Monnier
  0 siblings, 0 replies; 13+ messages in thread
From: Stefan Monnier @ 2005-03-10 16:58 UTC (permalink / raw)
  Cc: help-gnu-emacs

>> INSTALL.CVS suggests emacs-devel.

> Isn't this about *development*, i.e. avoiding work-arounds, and not about
> getting some help, including work-arounds?

Two possibilities:

- it's a problem that has never showed up on emacs-devel: it might be a bug
  or misfeature that needs to be fixed: post it on emacs-devel.
  In return you'll either get a fix, a workaround (if it is decided that
  it's not a bug or that the bug can't be fixed right away), or be ignored.
  Hopefully the "ignored" case is rare.

- the problem has already been mentioned on emacs-devel: check the archive.

What else do you want?


        Stefan

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

end of thread, other threads:[~2005-03-10 16:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 22:28 Special Characters on Mac Emacs Ulrich Hobelmann
2005-03-10  4:22 ` Stefan Monnier
2005-03-10  6:39   ` Ulrich Hobelmann
2005-03-10  8:50     ` Sébastien Kirche
2005-03-10 10:49   ` Peter Dyballa
     [not found]   ` <mailman.3264.1110455297.32256.help-gnu-emacs@gnu.org>
2005-03-10 13:39     ` Stefan Monnier
2005-03-10 14:37       ` Peter Dyballa
     [not found]       ` <mailman.3293.1110466438.32256.help-gnu-emacs@gnu.org>
2005-03-10 14:50         ` Stefan Monnier
2005-03-10 15:50           ` Peter Dyballa
2005-03-10 16:58             ` Stefan Monnier
2005-03-10 16:21           ` Ulrich Hobelmann
     [not found]           ` <mailman.3306.1110471038.32256.help-gnu-emacs@gnu.org>
2005-03-10 16:23             ` Ulrich Hobelmann
2005-03-10 16:25             ` Thien-Thi Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).