Mercurial > emacs
comparison man/macos.texi @ 36503:d7815b5b49d7
Minor clarifications. Explain that one normally specifies face attributes
rather than a font name.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 03 Mar 2001 20:13:13 +0000 |
parents | 7da7487bbbd8 |
children | 6a6141e694a5 |
comparison
equal
deleted
inserted
replaced
36502:3f0def4a4210 | 36503:d7815b5b49d7 |
---|---|
40 @vindex mac-keyboard-text-encoding | 40 @vindex mac-keyboard-text-encoding |
41 | 41 |
42 On the Mac, Emacs can use either the @key{option} key or the | 42 On the Mac, Emacs can use either the @key{option} key or the |
43 @key{command} key as the @key{META} key. If the value of the variable | 43 @key{command} key as the @key{META} key. If the value of the variable |
44 @code{mac-command-key-is-meta} is non-@code{nil} (its default value), | 44 @code{mac-command-key-is-meta} is non-@code{nil} (its default value), |
45 Emacs uses the @key{command} key as the @key{META} key. Otherwise it uses the | 45 Emacs uses the @key{command} key as the @key{META} key. Otherwise it |
46 @key{option} key as the @key{META} key. | 46 uses the @key{option} key as the @key{META} key. |
47 | 47 |
48 Most people should want to use the @key{command} key as the @key{META} key, | 48 Most people should want to use the @key{command} key as the @key{META} key, |
49 so that dead-key processing with the @key{option} key will still work. This is | 49 so that dead-key processing with the @key{option} key will still work. This is |
50 useful for entering non-ASCII Latin characters directly from the Mac | 50 useful for entering non-ASCII Latin characters directly from the Mac |
51 keyboard, for example. | 51 keyboard, for example. |
67 characters. | 67 characters. |
68 | 68 |
69 To enter ISO Latin-2 characters directly from the Mac keyboard, set | 69 To enter ISO Latin-2 characters directly from the Mac keyboard, set |
70 the value of @code{mac-keyboard-text-encoding} to | 70 the value of @code{mac-keyboard-text-encoding} to |
71 @code{kTextEncodingISOLatin2}. Then let Emacs know that the keyboard | 71 @code{kTextEncodingISOLatin2}. Then let Emacs know that the keyboard |
72 generates Latin-2 codes by typing @kbd{C-x RET k iso-latin-2 RET}. To | 72 generates Latin-2 codes, by typing @kbd{C-x @key{RET} k iso-latin-2 |
73 make this setting permanent, put this in your @file{.emacs} init file: | 73 @key{RET}}. To make this setting permanent, put this in your |
74 @file{.emacs} init file: | |
74 | 75 |
75 @lisp | 76 @lisp |
76 (set-keyboard-coding-system 'iso-latin-2) | 77 (set-keyboard-coding-system 'iso-latin-2) |
77 @end lisp | 78 @end lisp |
78 | 79 |
80 @section International Character Set Support on the Mac | 81 @section International Character Set Support on the Mac |
81 @cindex Mac Roman coding system | 82 @cindex Mac Roman coding system |
82 @cindex clipboard support (Mac OS) | 83 @cindex clipboard support (Mac OS) |
83 | 84 |
84 The Mac uses a non-standard encoding for the upper 128 single-byte | 85 The Mac uses a non-standard encoding for the upper 128 single-byte |
85 characters. It also deviates from the ISO 2022 standard by using code | 86 characters. It also deviates from the ISO 2022 standard by using |
86 points in the range 128-159. The coding system @code{mac-roman} is used | 87 character codes in the range 128-159. The coding system |
87 to represent this Mac encoding. It is used for editing files stored in | 88 @code{mac-roman} is used to represent this Mac encoding. It is used |
88 this native encoding, and for displaying file names in Dired mode. | 89 for editing files stored in this native encoding, and for displaying |
90 file names in Dired mode. | |
89 | 91 |
90 Any native (non-symbol) Mac font can be used to correctly display | 92 Any native (non-symbol) Mac font can be used to correctly display |
91 characters in the @code{mac-roman} coding system. | 93 characters in the @code{mac-roman} coding system. |
92 | 94 |
93 The fontset @code{fontset-mac} is created automatically when Emacs | 95 The fontset @code{fontset-mac} is created automatically when Emacs |
94 is run on the Mac. It displays characters in the @code{mac-roman} | 96 is run on the Mac. It displays characters in the @code{mac-roman} |
95 coding system using 12-point Monaco. | 97 coding system using 12-point Monaco. |
96 | 98 |
97 To insert characters directly in the @code{mac-roman} coding system, | 99 To insert characters directly in the @code{mac-roman} coding system, |
98 type @kbd{C-x RET k mac-roman RET}, or put this in your @file{.emacs} | 100 type @kbd{C-x @key{RET} k mac-roman @key{RET}}, or put this in your |
99 init file: | 101 @file{.emacs} init file: |
100 | 102 |
101 @lisp | 103 @lisp |
102 (set-keyboard-coding-system 'mac-roman) | 104 (set-keyboard-coding-system 'mac-roman) |
103 @end lisp | 105 @end lisp |
104 | 106 |
110 | 112 |
111 To use the former, see the International Character Set Support section | 113 To use the former, see the International Character Set Support section |
112 of the manual. | 114 of the manual. |
113 | 115 |
114 To use input methods provided by the Mac OS, set the keyboard coding | 116 To use input methods provided by the Mac OS, set the keyboard coding |
115 system accordingly using the @kbd{C-x RET k} command | 117 system accordingly using the @kbd{C-x @key{RET} k} command |
116 (@code{set-keyboard-coding-system}). For example, for Traditional | 118 (@code{set-keyboard-coding-system}). For example, for Traditional |
117 Chinese, use @samp{chinese-big5} as keyboard coding system; for | 119 Chinese, use @samp{chinese-big5} as keyboard coding system; for |
118 Japanese, use @samp{sjis}, etc. Then select the desired input method in | 120 Japanese, use @samp{sjis}, etc. Then select the desired input method in |
119 the keyboard layout pull-down menu. | 121 the keyboard layout pull-down menu. |
120 | 122 |
124 into the kill ring when Emacs resumes. The result is that you can yank | 126 into the kill ring when Emacs resumes. The result is that you can yank |
125 a piece of text and paste it into another Mac application, or cut or copy | 127 a piece of text and paste it into another Mac application, or cut or copy |
126 one in another Mac application and yank it into a Emacs buffer. | 128 one in another Mac application and yank it into a Emacs buffer. |
127 | 129 |
128 The encoding of text selections must be specified using the commands | 130 The encoding of text selections must be specified using the commands |
129 @kbd{C-x RET x} (@code{set-selection-coding-system}) or @kbd{C-x RET X} | 131 @kbd{C-x @key{RET} x} (@code{set-selection-coding-system}) or @kbd{C-x |
130 (@code{set-next-selection-coding-system}) (e.g., for Traditional | 132 @key{RET} X} (@code{set-next-selection-coding-system}) (e.g., for |
131 Chinese, use @samp{chinese-big5-mac} and for Japanese, | 133 Traditional Chinese, use @samp{chinese-big5-mac} and for Japanese, |
132 @samp{sjis-mac}). @xref{Specify Coding}, for more details. | 134 @samp{sjis-mac}). @xref{Specify Coding}, for more details. |
133 | 135 |
134 | 136 |
135 @node Mac Environment Variables | 137 @node Mac Environment Variables |
136 @section Environment Variables and Command Line Arguments. | 138 @section Environment Variables and Command Line Arguments. |
186 | 188 |
187 @node Mac Font Specs | 189 @node Mac Font Specs |
188 @section Specifying Fonts on the Mac | 190 @section Specifying Fonts on the Mac |
189 @cindex font names (Mac OS) | 191 @cindex font names (Mac OS) |
190 | 192 |
191 Fonts are specified to Emacs on the Mac in the form of a standard X | 193 It is rare that you need to specify a font name in Emacs; usually |
192 font name, i.e. | 194 you specify face attributes instead. But when you do need to specify |
195 a font name in Emacs on the Mac, use a standard X font name: | |
193 | 196 |
194 @smallexample | 197 @smallexample |
195 -@var{maker}-@var{family}-@var{weight}-@var{slant}-@var{widthtype}-@var{style}@dots{} | 198 -@var{maker}-@var{family}-@var{weight}-@var{slant}-@var{widthtype}-@var{style}@dots{} |
196 @dots{}-@var{pixels}-@var{height}-@var{horiz}-@var{vert}-@var{spacing}-@var{width}-@var{charset} | 199 @dots{}-@var{pixels}-@var{height}-@var{horiz}-@var{vert}-@var{spacing}-@var{width}-@var{charset} |
197 @end smallexample | 200 @end smallexample |
198 | 201 |
199 @noindent | 202 @noindent |
200 @xref{Font X}. Wildcards | 203 @xref{Font X}. Wildcards are supported as they are on X. |
201 are supported as they are on X. | |
202 | 204 |
203 Native Apple fonts in Mac Roman encoding has maker name @code{apple} | 205 Native Apple fonts in Mac Roman encoding has maker name @code{apple} |
204 and charset @code{mac-roman}. For example 12-point Monaco can be | 206 and charset @code{mac-roman}. For example 12-point Monaco can be |
205 specified by the name @samp{-apple-monaco-*-12-*-mac-roman}. | 207 specified by the name @samp{-apple-monaco-*-12-*-mac-roman}. |
206 | 208 |