Teaching and Learning with Technology

Computing With Accents and Foreign Scripts

Skip Menu

Spanish

Almost all applications support Spanish accents. Guidelines for typing and using accents are given below. lf you need to refer to additional characters, look under the Accents section.

See also the Minority Languages of Spain section and the Catalan page for additional information.

  1. Accent Codes
    1. Windows Alt Codes
    2. Windows International Keyboard
    3. Macintosh Accent Codes
  2. Spanish or International Keyboards (New Page)
  3. HTML Accent Codes
  4. Minority Languages of Spain
    1. Language Codes: es (Spanish), es-ES (Castillian/ Spain), es-MX (Latin American/Mexico)
    2. Minority Language Codes: eu (Basque), an (Aragaonese), au (Asturian/Leon), ca (Catalan), ga (Galician), ly (Ladino/Judeo-Spanish)

Windows Alt Codes

In Windows, combinations of the ALT key plus a numeric code can be used to type a non-English character (accented letter or punctuation symbol) in any Windows application. More detailed instructions about typing accents with ALT keys are available.  Additional options for entering accents in Windows are also listed in the Accents section of this Web site.

Windows ALT codes for Spanish

Capital Vowels
Vwl ALT Code
Á ALT+0193
É ALT+0201
Í ALT+0205
Ó ALT+0211
Ú ALT+0218
Ñ ALT+0209
Ü ALT+0220
Lower Vowels
Vwl ALT Code
á ALT+0225
é ALT+0233
í ALT+0237
ó ALT+0243
ú ALT+0250
ñ ALT+0241
ü ALT+0252
Other Symbols
Sym ALT Code
¿ ALT+0191
¡ ALT+0161
º ALT+0186 (Masculine Ordinal)
ª ALT+0170 (Feminine Ordinal)
« ALT+0171 (Left Angle Quote)
» ALT+0187 (Right Angle Quote)
ALT+0128
 

Top of Page

Windows International Keyboard Codes

In order to use these codes you must activate the international keyboard. Instructions are listed in the Keyboards section of this Web site.

Windows International Keyboard Codes for Spanish
Character Description
Acute Accent (e.g.Ó)

('+V) - Type apostrophe (singe quote), then the vowel.

Ñ,ñ

Type SHIFT+~, then either lowercase n or capital N.

Ü, ü

("+V) - Type apostrophe (singe quote), then lowercase or capital U.

¿

RightAlt+?     (You must use the Alt key on the Right)

¡

RightAlt+1

«, »

RightAlt+[    
RightAlt+]      

Control+RightAlt+5

Windows Spanish Keyboard

If you wish to simulate a non U.S. keyboard, follow the instructions for Activating Keyboard Locales to activate and switch Microsoft keyboards.

Top of Page

Macintosh Accent Codes

Macintosh Option Codes for Spanish
Character Description
Acute Accent (e.g.Ó)

Type Option+E, then the vowel. For instance, to type á hold down Option+E, then type lowercase A. To type Á, hold down Option+E, then type capital A.

Ñ,ñ

Type Option+N, then either lowercase N for ñ or capital N for Ñ.

Ü, ü

Type Option+U, then either lowercase U for ü or capital U for Ü.

¿

Shift+Option+?    

¡

Option+1

º, ª

Option+0 (Masculine Ordinal Number Marker)
Option+9 (Feminine Ordinal Number Marker)

«, »

Option+\  
Shift+Option+\ (Double Angle Quotes)

Shift+Option+2 (may not work for older System 9 fonts)

Top of Page

HTML Accent CodesHTML Accent Codes

Spanish Encoding and Language Tags

These are the codes which allow browsers and screen readers to process data as the appropriate language. All letters in codes are lower case.

See Using Encoding and Language Codes for more information on the meaning and implementation of these codes.

HTML Entity Codes

Use these codes to input accented letters in HTML. For instance, if you want to type señor you would type señor.

The numbers in parentheses are the numeric codes assigned in Unicode encoding. For instance, because ñ is number 241, señor can also be used to input señor. These numbers are also used with the Windows Alt codes listed above.

HTML Entity Codes for Spanish characters

Capital Vowels
Vwl Entity Code
Á Á (193)
É É (201)
Í Í (205)
Ó Ó (211)
Ú Ú (218)
Ñ Ñ (209)
Ü Ü (220)
Lower Vowel
Vwl Entity Code
á á (225)
é é (233)
í í(237)
ó ó (243)
ú ú (250)
ñ ñ (241)
ü ü (252)
Other Punctuation
Sym Entity Code
¿ ¿ (191)
¡ ¡ (161)
º º (186)
ª ª (170)
« « (171)
» » (187)
‹
›
€
 

Note: Older browsers may not the suport single angle codes (‹ / › for ‹ and ›).

Using Encoding and Language Codes

Computers process text by assuming a certain encoding or a system of matching electronic data with visual text characters. Whenever you develop a Web site you need to make sure the proper encoding is specified in the header tags; otherwise the browser may default to U.S. settings and not display the text properly.

To declare an encoding, insert or inspect the following meta-tag at the top of your HTML file, then replace "???" with one of the encoding codes listed above. If you are not sure, use utf-8 as the encoding.

Generic Encoding Template

<head>
<meta http-equiv="Content-Type" content="text/html; charset=??? ">
...
<head>

Declare Unicode

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8 ">
...
<head>

XHTML

The final close slash must be included after the final quote mark in the encoding header tag if you are using XHTML

Declare Unicode in XHTML

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
...
<head>

No Encoding Declared

If no encoding is declared, then the browser uses the default setting, which in the U.S. is typically Latin-1. In that case many Unicode characters could be displayed incorrectly. Also, older browsers such as Netscape 4.7 may not be able to process the entity codes correctly without the "utf-8" declaration.

Language Tags

Language tags are also suggested so that search engines and screen readers parse the language of a page. These are metadata tags which indicate the language of a page, not devices to trigger translation. Visit the Language Tag page to view information on where to insert it.

Top of Page

Minority Languages of Spain

There are a variety of minority languages spoken in Spain. In most cases, they use the same accented letters as Spanish, but each has its own language code. Below is some information about each language and the language code used to designate the language of a passage.

Basque (Euskara) (eu)

A non-related language spoken in the border between France and Spain. The language code is eu. For instance, the phrase bi etxe zuri 'two white houses' would be rendered in HTML as <i lang="eu">bu exte zuri</i>.

Aragonese (an)

Romance language related to Spanish and Catalan spoken in the northern province of Aragon in the Pyrynees. The language code is an.

Asturian/Leon (au)

Romance language related to Spanish and Portuguese spoken in Northwestern Spain in Asturias on the cast. The language code is au .

Catalan (ca) and Valencian (ca-valencia)

See the Catalan page for more information.

Galician (gl)

Romance language related to Spanish and Portuguese spoken on the northwestern portion of Spain north of Portugal. The language code is gl .

Ladino/Judeo-Spanish (ly)

A form of Spanish as spoken by the medieval Jewish community. Most Ladino speakers were expelled from Spain in the late 1490s, but settled elsewhere.

Links

Linux/Unix

Most content in Spanish.

 

Top of Page

Last Modified: Tuesday, 04-Jun-2013 12:40:05 EDT