| 1 |
% -*- coding: utf-8 -*- |
| 2 |
\documentclass{article} |
| 3 |
\usepackage[b5paper]{geometry} |
| 4 |
\usepackage{interchar,xcolor} |
| 5 |
\begin{document} |
| 6 |
|
| 7 |
\newintercharscheme{FOO} |
| 8 |
|
| 9 |
\newintercharclass[FOO]{\myclassU} |
| 10 |
\intercharclass[FOO]{`\o}{\myclassU} |
| 11 |
|
| 12 |
\interchartoks[FOO]{0}{\myclassU}{\bgroup\color{red}} |
| 13 |
\interchartoks[FOO]{255}{\myclassU}{\bgroup\color{red}} |
| 14 |
\interchartoks[FOO]{\myclassU}{0}{\egroup} |
| 15 |
\interchartoks[FOO]{\myclassU}{255}{\egroup} |
| 16 |
|
| 17 |
\intercharstate[FOO]{1} |
| 18 |
|
| 19 |
The quick brown fox jumps over the lazy dog. |
| 20 |
The quick brown fox jumps over the lazy dog. |
| 21 |
The quick brown fox jumps over the lazy dog. |
| 22 |
The quick brown fox jumps over the lazy dog. |
| 23 |
|
| 24 |
\newintercharscheme{BAR} |
| 25 |
|
| 26 |
\newintercharclass[BAR]{\myclassX} |
| 27 |
\intercharclass[BAR]{`\u}{\myclassX} |
| 28 |
\intercharclass[BAR]{`\e}{\myclassX} |
| 29 |
|
| 30 |
\interchartoks[BAR]{0}{\myclassX}{\bgroup\color{blue}} |
| 31 |
\interchartoks[BAR]{255}{\myclassX}{\bgroup\color{blue}} |
| 32 |
\interchartoks[BAR]{\myclassX}{0}{\egroup} |
| 33 |
\interchartoks[BAR]{\myclassX}{255}{\egroup} |
| 34 |
|
| 35 |
\intercharstate[BAR]{1} |
| 36 |
|
| 37 |
The quick brown fox jumps over the lazy dog. |
| 38 |
The quick brown fox jumps over the lazy dog. |
| 39 |
The quick brown fox jumps over the lazy dog. |
| 40 |
The quick brown fox jumps over the lazy dog. |
| 41 |
|
| 42 |
\intercharstate[BAR]{0} |
| 43 |
|
| 44 |
The quick brown fox jumps over the lazy dog. |
| 45 |
The quick brown fox jumps over the lazy dog. |
| 46 |
The quick brown fox jumps over the lazy dog. |
| 47 |
The quick brown fox jumps over the lazy dog. |
| 48 |
|
| 49 |
\end{document} |