summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/hyph-utf8/patterns/tex-special/spechyph-ot1-la.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/hyph-utf8/patterns/tex-special/spechyph-ot1-la.tex')
-rw-r--r--Master/texmf-dist/tex/generic/hyph-utf8/patterns/tex-special/spechyph-ot1-la.tex25
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/hyph-utf8/patterns/tex-special/spechyph-ot1-la.tex b/Master/texmf-dist/tex/generic/hyph-utf8/patterns/tex-special/spechyph-ot1-la.tex
new file mode 100644
index 00000000000..f6e0c589c26
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/hyph-utf8/patterns/tex-special/spechyph-ot1-la.tex
@@ -0,0 +1,25 @@
+\begingroup
+
+\catcode"C3=\active
+\catcode"C5=\active
+%
+\def^^c3#1{%
+ \ifx#1^^a6^^1a\else % æ - U+00E6 - ae
+ \errmessage{Hyphenation pattern file corrupted or OT1 encoding not supported!}
+\fi}
+\def^^c5#1{%
+ \ifx#1^^93^^1b\else % œ - U+0153 - oe
+ \errmessage{Hyphenation pattern file corrupted or OT1 encoding not supported!}
+\fi}
+%
+% ensure all the chars above have valid lccode values
+%
+\lccode"1A="1A % æ - U+00E6 - ae
+\lccode"1B="1B % œ - U+0153 - oe
+
+% Ligatures ae and oe (in OT1)
+\patterns{
+æ1
+œ1
+}
+\endgroup