summaryrefslogtreecommitdiff
path: root/info/examples/lwc/apc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/lwc/apc
Initial commit
Diffstat (limited to 'info/examples/lwc/apc')
-rw-r--r--info/examples/lwc/apc/ISOcyr1.pen84
-rw-r--r--info/examples/lwc/apc/README.apc33
-rw-r--r--info/examples/lwc/apc/invitation.sty46
-rw-r--r--info/examples/lwc/apc/invitationfr.dtd14
-rw-r--r--info/examples/lwc/apc/invitationfr.tex25
-rw-r--r--info/examples/lwc/apc/invitationfr.xml30
-rw-r--r--info/examples/lwc/apc/invitationfrraw.tex25
-rw-r--r--info/examples/lwc/apc/invlat1fr.xsl66
-rw-r--r--info/examples/lwc/apc/utf8.html39
-rw-r--r--info/examples/lwc/apc/utf8.xml33
-rw-r--r--info/examples/lwc/apc/utf8.xsl39
-rw-r--r--info/examples/lwc/apc/utf8raw.html35
12 files changed, 469 insertions, 0 deletions
diff --git a/info/examples/lwc/apc/ISOcyr1.pen b/info/examples/lwc/apc/ISOcyr1.pen
new file mode 100644
index 0000000000..e8248d41b7
--- /dev/null
+++ b/info/examples/lwc/apc/ISOcyr1.pen
@@ -0,0 +1,84 @@
+<!-- (C) International Organization for Standardization 1986
+ Permission to copy in any form is granted for use with
+ conforming SGML systems and applications as defined in
+ ISO 8879, provided this notice is included in all copies.
+-->
+<!-- Character entity set. Typical invocation:
+ <!ENTITY % ISOcyr1 PUBLIC
+ "ISO 8879-1986//ENTITIES Russian Cyrillic//EN//XML">
+ %ISOcyr1;
+-->
+<!-- This version of the entity set can be used with any SGML document
+ which uses ISO 10646 as its document character set.
+ This includes XML documents and ISO HTML documents.
+
+ Version created from ISO set on 11/11/98 (mg)
+-->
+<!ENTITY acy "&#x430;"> <!--small a, Cyrillic -->
+<!ENTITY Acy "&#x410;"> <!--capital A, Cyrillic -->
+<!ENTITY bcy "&#x431;"> <!--small be, Cyrillic -->
+<!ENTITY Bcy "&#x411;"> <!--capital BE, Cyrillic -->
+<!ENTITY vcy "&#x432;"> <!--small ve, Cyrillic -->
+<!ENTITY Vcy "&#x412;"> <!--capital VE, Cyrillic -->
+<!ENTITY gcy "&#x433;"> <!--small ghe, Cyrillic -->
+<!ENTITY Gcy "&#x413;"> <!--capital GHE, Cyrillic -->
+<!ENTITY dcy "&#x434;"> <!--small de, Cyrillic -->
+<!ENTITY Dcy "&#x414;"> <!--capital DE, Cyrillic -->
+<!ENTITY iecy "&#x435;"> <!--small ie, Cyrillic -->
+<!ENTITY IEcy "&#x415;"> <!--capital IE, Cyrillic -->
+<!ENTITY iocy "&#x451;"> <!--small io, Russian -->
+<!ENTITY IOcy "&#x401;"> <!--capital IO, Russian -->
+<!ENTITY zhcy "&#x436;"> <!--small zhe, Cyrillic -->
+<!ENTITY ZHcy "&#x416;"> <!--capital ZHE, Cyrillic -->
+<!ENTITY zcy "&#x437;"> <!--small ze, Cyrillic -->
+<!ENTITY Zcy "&#x417;"> <!--capital ZE, Cyrillic -->
+<!ENTITY icy "&#x438;"> <!--small i, Cyrillic -->
+<!ENTITY Icy "&#x418;"> <!--capital I, Cyrillic -->
+<!ENTITY jcy "&#x439;"> <!--small short i, Cyrillic -->
+<!ENTITY Jcy "&#x419;"> <!--capital short I, Cyrillic -->
+<!ENTITY kcy "&#x43A;"> <!--small ka, Cyrillic -->
+<!ENTITY Kcy "&#x41A;"> <!--capital KA, Cyrillic -->
+<!ENTITY lcy "&#x43B;"> <!--small el, Cyrillic -->
+<!ENTITY Lcy "&#x41B;"> <!--capital EL, Cyrillic -->
+<!ENTITY mcy "&#x43C;"> <!--small em, Cyrillic -->
+<!ENTITY Mcy "&#x41C;"> <!--capital EM, Cyrillic -->
+<!ENTITY ncy "&#x43D;"> <!--small en, Cyrillic -->
+<!ENTITY Ncy "&#x41D;"> <!--capital EN, Cyrillic -->
+<!ENTITY ocy "&#x43E;"> <!--small o, Cyrillic -->
+<!ENTITY Ocy "&#x41E;"> <!--capital O, Cyrillic -->
+<!ENTITY pcy "&#x43F;"> <!--small pe, Cyrillic -->
+<!ENTITY Pcy "&#x41F;"> <!--capital PE, Cyrillic -->
+<!ENTITY rcy "&#x440;"> <!--small er, Cyrillic -->
+<!ENTITY Rcy "&#x420;"> <!--capital ER, Cyrillic -->
+<!ENTITY scy "&#x441;"> <!--small es, Cyrillic -->
+<!ENTITY Scy "&#x421;"> <!--capital ES, Cyrillic -->
+<!ENTITY tcy "&#x442;"> <!--small te, Cyrillic -->
+<!ENTITY Tcy "&#x422;"> <!--capital TE, Cyrillic -->
+<!ENTITY ucy "&#x443;"> <!--small u, Cyrillic -->
+<!ENTITY Ucy "&#x423;"> <!--capital U, Cyrillic -->
+<!ENTITY fcy "&#x444;"> <!--small ef, Cyrillic -->
+<!ENTITY Fcy "&#x424;"> <!--capital EF, Cyrillic -->
+<!ENTITY khcy "&#x445;"> <!--small ha, Cyrillic -->
+<!ENTITY KHcy "&#x425;"> <!--capital HA, Cyrillic -->
+<!ENTITY tscy "&#x446;"> <!--small tse, Cyrillic -->
+<!ENTITY TScy "&#x426;"> <!--capital TSE, Cyrillic -->
+<!ENTITY chcy "&#x447;"> <!--small che, Cyrillic -->
+<!ENTITY CHcy "&#x427;"> <!--capital CHE, Cyrillic -->
+<!ENTITY shcy "&#x448;"> <!--small sha, Cyrillic -->
+<!ENTITY SHcy "&#x428;"> <!--capital SHA, Cyrillic -->
+<!ENTITY shchcy "&#x449;"> <!--small shcha, Cyrillic -->
+<!ENTITY SHCHcy "&#x429;"> <!--capital SHCHA, Cyrillic -->
+<!ENTITY hardcy "&#x44A;"> <!--small hard sign, Cyrillic -->
+<!ENTITY HARDcy "&#x42A;"> <!--capital HARD sign, Cyrillic -->
+<!ENTITY ycy "&#x44B;"> <!--small yeru, Cyrillic -->
+<!ENTITY Ycy "&#x42B;"> <!--capital YERU, Cyrillic -->
+<!ENTITY softcy "&#x44C;"> <!--small soft sign, Cyrillic -->
+<!ENTITY SOFTcy "&#x42C;"> <!--capital SOFT sign, Cyrillic -->
+<!ENTITY ecy "&#x44D;"> <!--small e, Cyrillic -->
+<!ENTITY Ecy "&#x42D;"> <!--capital E, Cyrillic -->
+<!ENTITY yucy "&#x44E;"> <!--small yu, Cyrillic -->
+<!ENTITY YUcy "&#x42E;"> <!--capital YU, Cyrillic -->
+<!ENTITY yacy "&#x44F;"> <!--small ya, Cyrillic -->
+<!ENTITY YAcy "&#x42F;"> <!--capital YA, Cyrillic -->
+<!ENTITY numero "&#x2116;"><!--numero sign -->
+ \ No newline at end of file
diff --git a/info/examples/lwc/apc/README.apc b/info/examples/lwc/apc/README.apc
new file mode 100644
index 0000000000..0e42d1eaaa
--- /dev/null
+++ b/info/examples/lwc/apc/README.apc
@@ -0,0 +1,33 @@
+Files in Appendix C of the LaTeX Graphics Companion
+
+Section C.3.1
++++++++++++++
+
+invitationfr.xml XML source of French version of invitation example
+invitationfr.dtd Corresponding DTD
+
+invlat1fr.xsl XSL file to transform the above to LaTeX
+
+invitationfrraw.tex Raw (UTF-8) resulting LaTeX file after running with xt
+invitationfr.tex Filtered resulting LaTeX file (Latin 1)
+invitation.sty Augmented package file to run the above with LaTeX
+
+utf8tolatin1.java A java program to translate a UTF-8 file into Latin 1
+ (used to invitationfrraw.tex -> invitationfr.tex)
+Section C.3.2
++++++++++++++
+
+For the following a Unicode editor is, such as Yudit on Linux, is
+useful to visualize the files.
+
+utf8.xml XML example with UTF8 characters
+utf8.xsl accompanying XSL file to generate HTML output
+ISOcyr1.pen entity definitions for Cyrillic in utf8.xml
+
+utf8raw.html resulting HTML file (after xt)
+utf8.html HTML file after processing utf8raw.html with tidy
+ "tidy -utf8 utf8raw.html utf8.html"
+
+
+
+
diff --git a/info/examples/lwc/apc/invitation.sty b/info/examples/lwc/apc/invitation.sty
new file mode 100644
index 0000000000..a27c8a05fc
--- /dev/null
+++ b/info/examples/lwc/apc/invitation.sty
@@ -0,0 +1,46 @@
+% invitation.sty
+% Package to format invitation.xml
+\setlength{\textwidth}{22pc}
+\setlength{\parskip}{1ex}
+\setlength{\parindent}{0pt}
+\pagestyle{empty}%% Turn off page numbering
+\RequirePackage{array,calc}
+\newcommand{\ToTitle}{To whom}
+\newcommand{\WhyTitle}{Occasion}
+\newcommand{\WhereTitle}{Venue}
+\newcommand{\DateTitle}{When}
+\newcommand{\SignatureTitle}{From}
+\DeclareOption{francais}{% French text for fixed texts
+ \renewcommand{\ToTitle}{}
+ \renewcommand{\WhyTitle}{ l'occasion de}
+ \renewcommand{\WhereTitle}{O}
+ \renewcommand{\DateTitle}{Quand}
+ \renewcommand{\SignatureTitle}{De la part de}}
+\newenvironment{Front}%
+ {\begin{center}
+ \Huge\sffamily INVITATION
+ \end{center}
+ }
+ {\begin{flushleft}
+ \rule{\linewidth}{1pt}\\[2mm]
+ \begin{tabular}{@{}>{\bfseries}ll@{}}
+ \ToTitle: & \@To \\
+ \WhyTitle: & \@Why \\
+ \WhereTitle: & \@Where \\
+ \DateTitle: & \@Date
+ \end{tabular}\\[2mm]
+ \rule{\linewidth}{1pt}
+ \end{flushleft}
+ }
+\newenvironment{Body}{\vspace*{\parskip}}{\vspace*{\parskip}}
+\newenvironment{Back}
+ {\begin{flushleft}}
+ {\hspace*{.5\linewidth}\fbox{\SignatureTitle: \emph{\@Sig}}
+ \end{flushleft}
+ }
+\newcommand{\To}[1]{\gdef\@To{#1}}
+\newcommand{\Date}[1]{\gdef\@Date{#1}}
+\newcommand{\Where}[1]{\gdef\@Where{#1}}
+\newcommand{\Why}[1]{\gdef\@Why{#1}}
+\newcommand{\Signature}[1]{\gdef\@Sig{#1}}
+\ProcessOptions
diff --git a/info/examples/lwc/apc/invitationfr.dtd b/info/examples/lwc/apc/invitationfr.dtd
new file mode 100644
index 0000000000..51ad42db85
--- /dev/null
+++ b/info/examples/lwc/apc/invitationfr.dtd
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding="ISO-8859-1"?>
+<!-- DTD invitation (version franaise) -->
+<!-- 11 novembre 1998 mg -->
+<!ELEMENT invitation (entte, corps, fin) >
+<!ELEMENT entte (, date, o, pourquoi?) >
+<!ELEMENT date (#PCDATA) >
+<!ELEMENT (#PCDATA) >
+<!ELEMENT o (#PCDATA) >
+<!ELEMENT pourquoi (#PCDATA) >
+<!ELEMENT corps (par+) >
+<!ELEMENT par (#PCDATA|emph)* >
+<!ELEMENT emph (#PCDATA) >
+<!ELEMENT fin (signature) >
+<!ELEMENT signature (#PCDATA) >
diff --git a/info/examples/lwc/apc/invitationfr.tex b/info/examples/lwc/apc/invitationfr.tex
new file mode 100644
index 0000000000..1c3f19980e
--- /dev/null
+++ b/info/examples/lwc/apc/invitationfr.tex
@@ -0,0 +1,25 @@
+\documentclass[francais]{article}
+\usepackage{invitation}
+\usepackage[T1]{fontenc}
+\begin{document}
+\begin{Front}
+\To{Anna, Bernard, Didier, Johanna}
+\Date{Vendredi prochain 20 heures}
+\Where{Le Caf du Web}
+\Why{Mon premier bb XML}
+\end{Front}
+\begin{Body}
+\par
+J'ai le plaisir de vous inviter la clbration
+de la naissance d'\emph{Invitation}, mon
+premier enfant document XML.
+\par
+S'il vous plat, faites tout votre possible pour me rejoindre
+vendredi prochain. Et n'oubliez pas d'emmener vos amis.
+\par
+Je me rjouis \emph{vraiment} d'avance de votre prsence.
+\end{Body}
+\begin{Back}
+\Signature{Michel}
+\end{Back}
+\end{document}
diff --git a/info/examples/lwc/apc/invitationfr.xml b/info/examples/lwc/apc/invitationfr.xml
new file mode 100644
index 0000000000..cb504038ed
--- /dev/null
+++ b/info/examples/lwc/apc/invitationfr.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE invitation SYSTEM "invitationfr.dtd">
+<invitation>
+<!-- ++++ Partie entte ++++ -->
+<entte>
+<>Anna, Bernard, Didier, Johanna</>
+<date>Vendredi prochain 20 heures</date>
+<o>Le Caf du Web</o>
+<pourquoi>Mon premier bb XML</pourquoi>
+</entte>
+<!-- ++++ Partie corps ++++ -->
+<corps>
+<par>
+J'ai le plaisir de vous inviter la clbration
+de la naissance d'<emph>Invitation</emph>, mon
+premier enfant document XML.
+</par>
+<par>
+S'il vous plat, faites tout votre possible pour me rejoindre
+vendredi prochain. Et n'oubliez pas d'emmener vos amis.
+</par>
+<par>
+Je me rjouis <emph>vraiment</emph> d'avance de votre prsence.
+</par>
+</corps>
+<!-- ++++ Partie finale ++++ -->
+<fin>
+<signature>Michel</signature>
+</fin>
+</invitation>
diff --git a/info/examples/lwc/apc/invitationfrraw.tex b/info/examples/lwc/apc/invitationfrraw.tex
new file mode 100644
index 0000000000..36a8f1a300
--- /dev/null
+++ b/info/examples/lwc/apc/invitationfrraw.tex
@@ -0,0 +1,25 @@
+\documentclass[francais]{article}
+\usepackage{invitation}
+\usepackage[T1]{fontenc}
+\begin{document}
+\begin{Front}
+\To{Anna, Bernard, Didier, Johanna}
+\Date{Vendredi prochain à 20 heures}
+\Where{Le Café du Web}
+\Why{Mon premier bébé XML}
+\end{Front}
+\begin{Body}
+\par
+J'ai le plaisir de vous inviter à la célébration
+de la naissance d'\emph{Invitation}, mon
+premier enfant document XML.
+\par
+S'il vous plaît, faites tout votre possible pour me rejoindre
+vendredi prochain. Et n'oubliez pas d'emmener vos amis.
+\par
+Je me réjouis \emph{vraiment} d'avance de votre présence.
+\end{Body}
+\begin{Back}
+\Signature{Michel}
+\end{Back}
+\end{document}
diff --git a/info/examples/lwc/apc/invlat1fr.xsl b/info/examples/lwc/apc/invlat1fr.xsl
new file mode 100644
index 0000000000..fce6e7f64c
--- /dev/null
+++ b/info/examples/lwc/apc/invlat1fr.xsl
@@ -0,0 +1,66 @@
+<?xml version='1.0' encoding="ISO-8859-1"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
+ xmlns="http://www.tug.org/latex"
+ default-space="strip"
+ indent-result="no"
+ result-ns="">
+
+<xsl:template match="/">
+<xsl:text>\documentclass[francais]{article}
+\usepackage{invitation}
+\usepackage[T1]{fontenc}
+\begin{document}
+</xsl:text>
+<xsl:apply-templates/>
+<xsl:text>\end{document}
+</xsl:text>
+</xsl:template>
+
+<xsl:template match="invitation/entte">
+<xsl:text>\begin{Front}
+\To{</xsl:text>
+<xsl:value-of select=""/>
+<xsl:text>}
+\Date{</xsl:text>
+<xsl:value-of select="date"/>
+<xsl:text>}
+\Where{</xsl:text>
+<xsl:value-of select="o"/>
+<xsl:text>}
+\Why{</xsl:text>
+<xsl:value-of select="pourquoi"/>
+<xsl:text>}
+\end{Front}
+</xsl:text>
+</xsl:template>
+
+<xsl:template match="invitation/corps">
+<xsl:text>\begin{Body}
+</xsl:text>
+ <xsl:apply-templates/>
+<xsl:text>\end{Body}
+</xsl:text>
+</xsl:template>
+
+<xsl:template match="invitation/corps/par">
+<xsl:text>\par</xsl:text>
+<xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="invitation/corps/par/emph">
+<xsl:text>\emph{</xsl:text>
+<xsl:apply-templates/>
+<xsl:text>}</xsl:text>
+</xsl:template>
+
+<xsl:template match="invitation/fin">
+<xsl:text>\begin{Back}
+\Signature{</xsl:text>
+<xsl:value-of select="signature"/>
+<xsl:text>}
+\end{Back}
+</xsl:text>
+</xsl:template>
+
+</xsl:stylesheet>
+
diff --git a/info/examples/lwc/apc/utf8.html b/info/examples/lwc/apc/utf8.html
new file mode 100644
index 0000000000..51858d102a
--- /dev/null
+++ b/info/examples/lwc/apc/utf8.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+<title>UTF8 files</title>
+<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+</head>
+<body>
+<h1>Handling UTF-8 files</h1>
+
+<p>The word Russian (Русский) in Cyrillic:
+<br>
+Using ISO Cyrillic set: Русский
+<br>
+ Using XML Unicode entities: Русский</p>
+
+<h2>Russian-English correspondence</h2>
+
+<p>◆  Ъ ъ Э э Е е Р р Т т Й й У у И и О о П п</p>
+
+<p>◆  А а С с Д д Ф ф Г г Х х J j К к Л л</p>
+
+<p>◆  З з Ы ы Ь ь В в Б б Н н М м</p>
+
+<p>◆  Я Ё Ю Э я ё ю э ч Ч ш Ш ц Ц щ Щ</p>
+
+<h2>Greek-English correspondence</h2>
+
+<p>● Q q Ω ω Ε ε Ρ ρ Τ τ Υ υ Ι ι Ο ο Π π</p>
+
+<p>● Α α Σ σ Δ δ Φ φ Γ γ Η η J j Κ κ Λ λ</p>
+
+<p>● Ζ ζ Ξ ξ Χ χ V v Β β Ν ν Μ μ</p>
+
+<h2>Math characters</h2>
+
+<p>And here is one of Maxwell's equations: ∇·B=0</p>
+</body>
+</html>
+
diff --git a/info/examples/lwc/apc/utf8.xml b/info/examples/lwc/apc/utf8.xml
new file mode 100644
index 0000000000..fd2cf40c58
--- /dev/null
+++ b/info/examples/lwc/apc/utf8.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!DOCTYPE mydoc [
+<!ELEMENT mydoc (#PCDATA)>
+<!ENTITY % ISOcyr1 SYSTEM "ISOcyr1.pen">
+%ISOcyr1;
+]>
+<mydoc>
+<par>The word Russian (Русский) in Cyrillic: <br/>
+Using ISO Cyrillic set:
+&Rcy;&ucy;&scy;&scy;&kcy;&icy;&jcy; <br/>
+Using XML Unicode entities:
+&#x0420;&#x0443;&#x0441;&#x0441;&#x043a;&#x0438;&#x0439;
+</par>
+<head>Russian-English correspondence</head>
+<eng>Q q W w E e R r T t Y y U u I i O o P p</eng>
+<рус> Ъ ъ Э э Е е Р р Т т Й й У у И и О о П п</рус>
+<eng>A a S s D d F f G g H h J j K k L l</eng>
+<рус> А а С с Д д Ф ф Г г Х х J j К к Л л</рус>
+<eng>Z z X x C c V v B b N n M m</eng>
+<рус> З з Ы ы Ь ь В в Б б Н н М м</рус>
+<eng>YA YO YU EE ya yo yu ee ch CH sh SH ts TS shch SHCH </eng>
+<рус> Я Ё Ю Э я ё ю э ч Ч ш Ш ц Ц щ Щ </рус>
+<head>Greek-English correspondence</head>
+<eng>Q q W w E e R r T t Y y I i O o P p</eng>
+<ελλ>Q q Ω ω Ε ε Ρ ρ Τ τ Υ υ Ι ι Ο ο Π π</ελλ>
+<eng>A a S s D d F f G g H h J j K k L l</eng>
+<ελλ>Α α Σ σ Δ δ Φ φ Γ γ Η η J j Κ κ Λ λ</ελλ>
+<eng>Z z X x C c V v B b N n M m</eng>
+<ελλ>Ζ ζ Ξ ξ Χ χ V v Β β Ν ν Μ μ</ελλ>
+<head>Math characters</head>
+<par>And here is one of Maxwell's equations:
+&#x2207;&#x00B7;&#x0042;&#x003d;&#x0030;</par>
+</mydoc>
diff --git a/info/examples/lwc/apc/utf8.xsl b/info/examples/lwc/apc/utf8.xsl
new file mode 100644
index 0000000000..4ca722afb0
--- /dev/null
+++ b/info/examples/lwc/apc/utf8.xsl
@@ -0,0 +1,39 @@
+<?xml version='1.0'?>
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
+ xmlns="http://www.w3.org/TR/REC-html40"
+ result-ns="">
+<xsl:template match="/">
+ <html xmlns="http://www.w3.org/Profiles/xhtml1-transitional.dtd">
+ <head>
+ <title>UTF8 files</title>
+ <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+ </head>
+ <body>
+ <h1>Handling UTF-8 files</h1>
+ <xsl:apply-templates/>
+ </body>
+ </html>
+</xsl:template>
+<xsl:template match="br">
+ <br />
+</xsl:template>
+<xsl:template match="par">
+ <p><xsl:apply-templates/></p>
+</xsl:template>
+<xsl:template match="head">
+ <h2><xsl:apply-templates/></h2>
+</xsl:template>
+<!-- eliminate English keyboard input -->
+<xsl:template match="eng">
+</xsl:template>
+<!-- transmit Russian keyboard input -->
+<xsl:template match="&#x0440;&#x0443;&#x0441;">
+<p>&#x25c6;&#x00a0;<xsl:apply-templates/></p>
+</xsl:template>
+<!-- transmit Greek keyboard input -->
+<xsl:template match="ελλ">
+<p>●&#x00a0;<xsl:apply-templates/></p>
+</xsl:template>
+</xsl:stylesheet>
+
diff --git a/info/examples/lwc/apc/utf8raw.html b/info/examples/lwc/apc/utf8raw.html
new file mode 100644
index 0000000000..7fe4b5ea65
--- /dev/null
+++ b/info/examples/lwc/apc/utf8raw.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html>
+<head>
+<title>UTF8 files</title>
+<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+</head>
+<body>
+<h1>Handling UTF-8 files</h1>
+<p>The word Russian (&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;) in Cyrillic: <br>
+Using ISO Cyrillic set:
+&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081; <br>
+Using XML Unicode entities:
+&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;
+</p>
+<h2>Russian-English correspondence</h2>
+
+<p>&#9670;&nbsp; &#1066; &#1098; &#1069; &#1101; &#1045; &#1077; &#1056; &#1088; &#1058; &#1090; &#1049; &#1081; &#1059; &#1091; &#1048; &#1080; &#1054; &#1086; &#1055; &#1087;</p>
+
+<p>&#9670;&nbsp; &#1040; &#1072; &#1057; &#1089; &#1044; &#1076; &#1060; &#1092; &#1043; &#1075; &#1061; &#1093; J j &#1050; &#1082; &#1051; &#1083;</p>
+
+<p>&#9670;&nbsp; &#1047; &#1079; &#1067; &#1099; &#1068; &#1100; &#1042; &#1074; &#1041; &#1073; &#1053; &#1085; &#1052; &#1084;</p>
+
+<p>&#9670;&nbsp; &#1071; &#1025; &#1070; &#1069; &#1103; &#1105; &#1102; &#1101; &#1095; &#1063; &#1096; &#1064; &#1094; &#1062; &#1097; &#1065; </p>
+<h2>Greek-English correspondence</h2>
+
+<p>&#9679;&nbsp;Q q &Omega; &omega; &Epsilon; &epsilon; &Rho; &rho; &Tau; &tau; &Upsilon; &upsilon; &Iota; &iota; &Omicron; &omicron; &Pi; &pi;</p>
+
+<p>&#9679;&nbsp;&Alpha; &alpha; &Sigma; &sigma; &Delta; &delta; &Phi; &phi; &Gamma; &gamma; &Eta; &eta; J j &Kappa; &kappa; &Lambda; &lambda;</p>
+
+<p>&#9679;&nbsp;&Zeta; &zeta; &Xi; &xi; &Chi; &chi; V v &Beta; &beta; &Nu; &nu; &Mu; &mu;</p>
+<h2>Math characters</h2>
+<p>And here is one of Maxwell's equations:
+&nabla;&middot;B=0</p>
+</body>
+</html>