diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-web-companion/apc')
10 files changed, 117 insertions, 137 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/apc/README.apc b/Master/texmf-dist/doc/latex/latex-web-companion/apc/README.apc index da64d7a3624..0e42d1eaaa0 100644 --- a/Master/texmf-dist/doc/latex/latex-web-companion/apc/README.apc +++ b/Master/texmf-dist/doc/latex/latex-web-companion/apc/README.apc @@ -1,4 +1,4 @@ -Files in Appendix C of the LaTeX Web Companion +Files in Appendix C of the LaTeX Graphics Companion Section C.3.1 +++++++++++++ @@ -8,9 +8,12 @@ invitationfr.dtd Corresponding DTD invlat1fr.xsl XSL file to transform the above to LaTeX -invitationfr.tex Resulting LaTeX file (Latin 1) +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 +++++++++++++ @@ -18,7 +21,13 @@ 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 +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" + + + -utf8.html Resulting HTML file (after xt) diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/apc/invitation.sty b/Master/texmf-dist/doc/latex/latex-web-companion/apc/invitation.sty index f66dd78463d..a27c8a05fc2 100644 --- a/Master/texmf-dist/doc/latex/latex-web-companion/apc/invitation.sty +++ b/Master/texmf-dist/doc/latex/latex-web-companion/apc/invitation.sty @@ -43,4 +43,4 @@ \newcommand{\Where}[1]{\gdef\@Where{#1}} \newcommand{\Why}[1]{\gdef\@Why{#1}} \newcommand{\Signature}[1]{\gdef\@Sig{#1}} -\ProcessOptions
\ No newline at end of file +\ProcessOptions diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/apc/invitationfr.sty b/Master/texmf-dist/doc/latex/latex-web-companion/apc/invitationfr.sty deleted file mode 100644 index f66dd78463d..00000000000 --- a/Master/texmf-dist/doc/latex/latex-web-companion/apc/invitationfr.sty +++ /dev/null @@ -1,46 +0,0 @@ -% 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
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/apc/invitationfrraw.tex b/Master/texmf-dist/doc/latex/latex-web-companion/apc/invitationfrraw.tex new file mode 100644 index 00000000000..36a8f1a300a --- /dev/null +++ b/Master/texmf-dist/doc/latex/latex-web-companion/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/Master/texmf-dist/doc/latex/latex-web-companion/apc/invlat1fr.xsl b/Master/texmf-dist/doc/latex/latex-web-companion/apc/invlat1fr.xsl index 9f5165fc4ed..fce6e7f64cf 100644 --- a/Master/texmf-dist/doc/latex/latex-web-companion/apc/invlat1fr.xsl +++ b/Master/texmf-dist/doc/latex/latex-web-companion/apc/invlat1fr.xsl @@ -1,15 +1,13 @@ <?xml version='1.0' encoding="ISO-8859-1"?> -<!-- minilatex.xsl --> -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -<xsl:output method="text" indent="no" encoding="ISO-8859-1"/> - -<xsl:strip-space elements="*"/> +<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{invitationfr} +\usepackage{invitation} \usepackage[T1]{fontenc} \begin{document} </xsl:text> @@ -18,7 +16,7 @@ </xsl:text> </xsl:template> -<xsl:template match="entte"> +<xsl:template match="invitation/entte"> <xsl:text>\begin{Front} \To{</xsl:text> <xsl:value-of select=""/> @@ -36,7 +34,7 @@ </xsl:text> </xsl:template> -<xsl:template match="corps"> +<xsl:template match="invitation/corps"> <xsl:text>\begin{Body} </xsl:text> <xsl:apply-templates/> @@ -44,18 +42,18 @@ </xsl:text> </xsl:template> -<xsl:template match="par"> +<xsl:template match="invitation/corps/par"> <xsl:text>\par</xsl:text> <xsl:apply-templates/> </xsl:template> -<xsl:template match="emph"> +<xsl:template match="invitation/corps/par/emph"> <xsl:text>\emph{</xsl:text> <xsl:apply-templates/> <xsl:text>}</xsl:text> </xsl:template> -<xsl:template match="fin"> +<xsl:template match="invitation/fin"> <xsl:text>\begin{Back} \Signature{</xsl:text> <xsl:value-of select="signature"/> @@ -65,3 +63,4 @@ </xsl:template> </xsl:stylesheet> + diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.html b/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.html index 8709c70b120..51858d102a8 100644 --- a/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.html +++ b/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.html @@ -1,36 +1,39 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> -<META http-equiv="Content-Type" content="text/html; charset=utf-8"> -<title>UTF8 file</title> +<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> + +<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>◆ Ъ ъ Э э Е е Р р Т т Й й У у И и О о П п</p> + +<p>◆ А а С с Д д Ф ф Г г Х х J j К к Л л</p> -<p>◆ А а С с Д д Ф ф Г г Х х J j К к Л л</p> +<p>◆ З з Ы ы Ь ь В в Б б Н н М м</p> -<p>◆ З з Ы ы Ь ь В в Б б Н н М м</p> +<p>◆ Я Ё Ю Э я ё ю э ч Ч ш Ш ц Ц щ Щ</p> -<p>◆ Я Ё Ю Э я ё ю э ч Ч ш Ш ц Ц щ Щ </p> <h2>Greek-English correspondence</h2> -<p>● Q q Ω ω Ε ε Ρ ρ Τ τ Υ υ Ι ι Ο ο Π π</p> +<p>● Q q Ω ω Ε ε Ρ ρ Τ τ Υ υ Ι ι Ο ο Π π</p> -<p>● Α α Σ σ Δ δ Φ φ Γ γ Η η J j Κ κ Λ λ</p> +<p>● Α α Σ σ Δ δ Φ φ Γ γ Η η J j Κ κ Λ λ</p> + +<p>● Ζ ζ Ξ ξ Χ χ V v Β β Ν ν Μ μ</p> -<p>● Ζ ζ Ξ ξ Χ χ V v Β β Ν ν Μ μ</p> <h2>Math characters</h2> -<p>And here is one of Maxwell's equations: -∇·B=0</p> + +<p>And here is one of Maxwell's equations: ∇·B=0</p> </body> </html> + diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.xml b/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.xml index 6863b87c29f..fd2cf40c58d 100644 --- a/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.xml +++ b/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.xml @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0"?> <!DOCTYPE mydoc [ <!ELEMENT mydoc (#PCDATA)> <!ENTITY % ISOcyr1 SYSTEM "ISOcyr1.pen"> diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.xsl b/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.xsl index de6b5bfaf4c..4ca722afb02 100644 --- a/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.xsl +++ b/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8.xsl @@ -1,11 +1,13 @@ -<?xml version='1.0' encoding="UTF-8"?> -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:output method="html" encoding="utf-8"/> +<?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> + <html xmlns="http://www.w3.org/Profiles/xhtml1-transitional.dtd"> <head> - <title>UTF8 file</title> + <title>UTF8 files</title> + <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> </head> <body> <h1>Handling UTF-8 files</h1> @@ -34,3 +36,4 @@ <p>● <xsl:apply-templates/></p> </xsl:template> </xsl:stylesheet> + diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8raw.html b/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8raw.html new file mode 100644 index 00000000000..7fe4b5ea656 --- /dev/null +++ b/Master/texmf-dist/doc/latex/latex-web-companion/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 (Русский) 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/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8tei.xml b/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8tei.xml deleted file mode 100644 index 6f24ea62bac..00000000000 --- a/Master/texmf-dist/doc/latex/latex-web-companion/apc/utf8tei.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE article SYSTEM - "/afs/cern.ch/user/g/goossens/passivetex/teixsl/teixlite.dtd" [ -<!ENTITY % ISOcyr1 SYSTEM "ISOcyr1.pen"> -%ISOcyr1; -]> -<TEI.2> -<teiHeader> - <fileDesc> - <titleStmt> - <title>TEI-lite, XSL and UTF8</title> - </titleStmt> - </fileDesc> -</teiHeader> -<text> -<body> -<div1><head>Playing with Cyrillic</head> -<p>The word Russian in Cyrillic is written: Русский.</p> -<p>Using ISO Cyrillic set: -Русский .</p> -<p>Using XML Unicode entities: -Русский .</p> -</div1> -<div1><head>Russian-English correspondence</head> -<p lang="eng">Q q W w E e R r T t Y y U u I i O o P p</p> -<p lang="рус"> Ъ ъ Э э Е е Р р Т т Й й У у И и О о П п</p> -<p lang="eng">A a S s D d F f G g H h J j K k L l</p> -<p lang="рус"> А а С с Д д Ф ф Г г Х х J j К к Л л</p> -<p lang="eng">Z z X x C c V v B b N n M m</p> -<p lang="рус"> З з Ы ы Ь ь В в Б б Н н М м</p> -<p lang="eng">YA YO YU EE ya yo yu ee ch CH sh SH ts TS shch SHCH </p> -<p lang="рус"> Я Ё Ю Э я ё ю э ч Ч ш Ш ц Ц щ Щ </p> -</div1> -<div1><head>Greek-English correspondence</head> -<p lang="eng">Q q W w E e R r T t Y y I i O o P p</p> -<p lang="ελλ">Q q Ω ω Ε ε Ρ ρ Τ τ Υ υ Ι ι Ο ο Π π</p> -<p lang="eng">A a S s D d F f G g H h J j K k L l</p> -<p lang="ελλ">Α α Σ σ Δ δ Φ φ Γ γ Η η J j Κ κ Λ λ</p> -<p lang="eng">Z z X x C c V v B b N n M m</p> -<p lang="ελλ">Ζ ζ Ξ ξ Χ χ V v Β β Ν ν Μ μ</p> -</div1> -<div1><head>Math characters</head> -<p>And here is one of Maxwell's equations: -∇·B=0</p> -</div1> -</body> -</text> -</TEI.2> |