bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: texi2dvi failes to encode 'a' and 'e' with ogonek


From: Karl Berry
Subject: Re: texi2dvi failes to encode 'a' and 'e' with ogonek
Date: Fri, 7 Nov 2008 15:47:14 -0600

It'll take me another day or two to write all the documentation, but
here's a patch for texinfo.tex to support @ogonek{CHAR} and also the
literal [AE]ogonek in Latin 2 and UTF-8.  (You can also get it from CVS
or ftp://tug.org/tex/texinfo.tex if the patch doesn't apply.)

Please let me know if problems.

Thanks,
Karl

--- texinfo.tex 30 Oct 2008 14:07:37 -0000      1.278
+++ texinfo.tex 7 Nov 2008 21:44:44 -0000
@@ -2753,4 +2753,16 @@ end
 %
+% This positioning is not perfect (see the ogonek LaTeX package), but
+% we have the precomposed glyphs for the most common cases.
+% ogonek is also used with other letters in Lithuanian (IOU), but using
+% the precomposed glyphs for those is not so easy since they aren't in
+% the same EC font.
+\def\ogonek#1{{\ecfont \setbox0=\hbox{#1}\ifdim\ht0=1ex\accent"0C #1%
+  \else\ooalign{\unhbox0\crcr\hidewidth\char"0C \hidewidth}\fi}}
+\def\Aogonek{{\ecfont \char"81}}
+\def\Eogonek{{\ecfont \char"86}}
+\def\aogonek{{\ecfont \char"A1}}
+\def\eogonek{{\ecfont \char"A6}}
+%
 \def\ecfont{%
-  % We can't distinguish serif/sanserif and italic/slanted, but this
+  % We can't distinguish serif/sans and italic/slanted, but this
   % is used for crude hacks anyway (like adding French and German
@@ -8025,3 +8037,3 @@ directory should work if nowhere else do
   \gdef^^a0{~}
-  \gdef^^a1{\missingcharmsg{LATIN CAPITAL LETTER A WITH OGONEK}}
+  \gdef^^a1{\Aogonek}
   \gdef^^a2{\u{}}
@@ -8042,4 +8054,4 @@ directory should work if nowhere else do
   \gdef^^b0{\textdegree}
-  \gdef^^b1{\missingcharmsg{LATIN SMALL LETTER A WITH OGONEK}}
-  \gdef^^b2{\missingcharmsg{OGONEK}}
+  \gdef^^b1{\aogonek}
+  \gdef^^b2{\ogonek{ }}
   \gdef^^b3{\l}
@@ -8068,3 +8080,3 @@ directory should work if nowhere else do
   \gdef^^c9{\'E}
-  \gdef^^ca{\missingcharmsg{LATIN CAPITAL LETTER E WITH OGONEK}}
+  \gdef^^ca{\Eogonek}
   \gdef^^cb{\"E}
@@ -8102,3 +8114,3 @@ directory should work if nowhere else do
   \gdef^^e9{\'e}
-  \gdef^^ea{\missingcharmsg{LATIN SMALL LETTER E WITH OGONEK}}
+  \gdef^^ea{\eogonek}
   \gdef^^eb{\"e}
@@ -8331,2 +8343,4 @@ directory should work if nowhere else do
   \DeclareUnicodeCharacter{0103}{\u{a}}
+  \DeclareUnicodeCharacter{0104}{\Aogonek}
+  \DeclareUnicodeCharacter{0105}{\aogonek}
   \DeclareUnicodeCharacter{0106}{\'C}
@@ -8335,2 +8349,4 @@ directory should work if nowhere else do
   \DeclareUnicodeCharacter{0109}{\^c}
+  \DeclareUnicodeCharacter{0118}{\Eogonek}
+  \DeclareUnicodeCharacter{0119}{\eogonek}
   \DeclareUnicodeCharacter{010A}{\dotaccent{C}}
@@ -8482,2 +8498,4 @@ directory should work if nowhere else do
 
+  \DeclareUnicodeCharacter{02DB}{\ogonek{ }}
+
   \DeclareUnicodeCharacter{1E02}{\dotaccent{B}}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]