diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/pdf-forms-tutorial/en/forms-src/fde0020.tex |
Initial commit
Diffstat (limited to 'info/pdf-forms-tutorial/en/forms-src/fde0020.tex')
-rw-r--r-- | info/pdf-forms-tutorial/en/forms-src/fde0020.tex | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/info/pdf-forms-tutorial/en/forms-src/fde0020.tex b/info/pdf-forms-tutorial/en/forms-src/fde0020.tex new file mode 100644 index 0000000000..981bc76751 --- /dev/null +++ b/info/pdf-forms-tutorial/en/forms-src/fde0020.tex @@ -0,0 +1,45 @@ +\label{sec:fde0020} +The inputenc package replaces some characters -- i.\,e. german umlauts -- +by \LaTeX{} code sequences. This is a good idea for ``normal'' text but not +for JavaScript code. + +To avoid the conversion in JavaScript code the characters must not be added +directly to strings, add the corresponding JavaScript-Unicode notation +instead. + +Table~\vref{tab:umlauts} contains some example Unicode notations for german +umlauts and ligatures. +\begin{longtable}{|r|l|}\caption{JavaScript-Unicode notation for german umlauts}\label{tab:umlauts}\\ +\hline +&\\*[-0.9em]\multicolumn{1}{|c|}{\textbf{umlaut/ligature}}&\multicolumn{1}{c|}{\textbf{JavaScript-Unicode notation}}\\ +\hline +\endfirsthead +\hline +&\\*[-0.9em]\multicolumn{2}{|r|}{\textsl{Continuation}}\\ +\hline +\endhead +&\\*[-0.9em]\multicolumn{2}{|r|}{\textsl{to be continued}}\\ +\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 +Here is an example how to use the Unicode notation +(see variable \textit{theText\/}): +\lstinputlisting{../examples/ex0301.tex} +\clearpage |