File: fde0020.tex

package info (click to toggle)
texlive-doc 2009-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 192,004 kB
  • ctags: 4,774
  • sloc: perl: 12,760; xml: 11,870; makefile: 1,033; lisp: 394; sh: 229; awk: 205; java: 159; sed: 4
file content (45 lines) | stat: -rw-r--r-- 1,409 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
\label{sec:fde0020}
Das Paket inputenc sorgt dafr, dass bestimmte Zeichen -- z.\,B. deutsche
Umlaute -- in entsprechenden \LaTeX{}-Code umgewandelt werden.
Diese Umwandlung ist im "`normalen"' Text durchaus gewnscht, im
JavaScript-Code jedoch nicht.

Um die Umwandlung in JavaScript-Code zu verhindern, sollten die entsprechenden
Zeichen dort nicht direkt eingegeben werden sondern als
\textsc{ecma}-Script-Unicodezeichen. Einige ausgewhlte Unicode-Codierungen
sind in Tabelle~\vref{tab:umlauts} dargestellt.

\begin{longtable}{|r|l|}\caption{JavaScript-Unicode fr deutsche Umlaute}\label{tab:umlauts}\\
\hline
&\\*[-0.9em]\multicolumn{1}{|c|}{\textbf{Zeichen}}&\multicolumn{1}{c|}{\textbf{JavaScript-Unicode}}\\
\hline
\endfirsthead
\hline
&\\*[-0.9em]\multicolumn{2}{|r|}{\textsl{Fortsetzung}}\\
\hline
\endhead
&\\*[-0.9em]\multicolumn{2}{|r|}{\textsl{wird fortgesetzt}}\\
\hline
\endfoot
\hline
\endlastfoot
\hline
&\\*[-0.9em]&\textbackslash{}u00E4\\
\hline
&\\*[-0.9em]&\textbackslash{}u00F6\\
\hline
&\\*[-0.9em]&\textbackslash{}u00FC\\
\hline
&\\*[-0.9em]A&\textbackslash{}u00C4\\
\hline
&\\*[-0.9em]&\textbackslash{}u00D6\\
\hline
&\\*[-0.9em]&\textbackslash{}u00DC\\
\hline
&\\*[-0.9em]&\textbackslash{}u00DF\\
\end{longtable}
\clearpage
Hier ein Beispiel fr die Verwendung von JavaScript-Unicode-Zeichen
(Variable \textit{theText\/}):
\lstinputlisting{../examples/ex0301.tex}
\clearpage