Difference between revisions of "ISO-8859-15"

From Wiki
Jump to navigation Jump to search
m (category added (Fonts, International, From LaTeX), perhaps some of them are not really suitable, this should move to ConTeXt core anyway)
(Added explanation.)
Line 1: Line 1:
LaTeX:
+
[http://en.wikipedia.org/wiki/ISO_8859-15 ISO-8859-15], also known as ISO-Latin-9, is a character set that can be used for most Western European languages.  It is a revision of ISO-8859-1, replacing some less common symbols with the euro sign and some other characters that were missing.  According to [http://en.wikipedia.org/wiki/ISO_8859 Wikipedia], the ISO-8859-15 character set covers  Basque, Catalan, Danish, Dutch (except for IJ/ij), English, Faeroese, Finnish, French, German, Icelandic, Irish, Italian, Norwegian, Portuguese, Rhaeto-Romanic, Scottish Gaelic, Spanish, and Swedish, Eastern European Albanian, as well as the African languages Afrikaans and Swahili.
 +
 
 +
== LaTeX ==
 +
 
 +
In LaTeX, the ISO-8859-15 can be used as an input encoding with the <code>inputenc</code> package.  The <code>eurosym</code> package is also needed, in order to produce the Euro symbol in the output.
 +
 
 
<texcode>
 
<texcode>
 
\documentclass{article}
 
\documentclass{article}
Line 9: Line 14:
 
</texcode>
 
</texcode>
  
ConTeXt: first, you have to download [[Media:regi-il9.tex|regi-il9.tex]] and put it into texmf/tex/context/third/.
+
== ConTeXt ==
Then:
+
 
 +
First, you have to download [[Media:regi-il9.tex|regi-il9.tex]] and put it into texmf/tex/context/third/.
 +
Then, you can use ISO-8859-15 as an input encoding via the <cmd>useregime</cmd> and <cmd>enableregime</cmd> commands.
 +
 
 
<texcode>
 
<texcode>
 
\useregime[il9]
 
\useregime[il9]
Line 18: Line 26:
 
\stoptext
 
\stoptext
 
</texcode>
 
</texcode>
 +
 +
This produces the following output (which unfortunately appears to be broken in this Wiki):
 +
 +
<context>
 +
\useregime[il9]
 +
\enableregime[il9]
 +
\starttext
 +
c½ur et 100\,¤
 +
\stoptext
 +
</context>
  
 
[[Category:Fonts]]
 
[[Category:Fonts]]
 
[[Category:International]]
 
[[Category:International]]
 
[[Category:From LaTeX]]
 
[[Category:From LaTeX]]

Revision as of 00:26, 4 September 2005

ISO-8859-15, also known as ISO-Latin-9, is a character set that can be used for most Western European languages. It is a revision of ISO-8859-1, replacing some less common symbols with the euro sign and some other characters that were missing. According to Wikipedia, the ISO-8859-15 character set covers Basque, Catalan, Danish, Dutch (except for IJ/ij), English, Faeroese, Finnish, French, German, Icelandic, Irish, Italian, Norwegian, Portuguese, Rhaeto-Romanic, Scottish Gaelic, Spanish, and Swedish, Eastern European Albanian, as well as the African languages Afrikaans and Swahili.

LaTeX

In LaTeX, the ISO-8859-15 can be used as an input encoding with the inputenc package. The eurosym package is also needed, in order to produce the Euro symbol in the output.

\documentclass{article}
\usepackage[latin9]{inputenc}
\usepackage{eurosym}\def\texteuro{\euro}
\begin{document}
c½ur et 100\,¤
\end{document}

ConTeXt

First, you have to download regi-il9.tex and put it into texmf/tex/context/third/. Then, you can use ISO-8859-15 as an input encoding via the \useregime and \enableregime commands.

\useregime[il9]
\enableregime[il9]
\starttext
c½ur et 100\,¤
\stoptext

This produces the following output (which unfortunately appears to be broken in this Wiki):