~ubuntu-branches/debian/sid/tex4ht/sid

« back to all changes in this revision

Viewing changes to texmf/tex/generic/tex4ht/spanish.4ht

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2008-09-12 10:32:36 UTC
  • mfrom: (1.3.2 upstream) (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080912103236-tgw2q5g6f5hp2pnm
Tags: 20080701-2
* debian/patches/add_manpage.diff: Modified the man page
  to recommend that "mk4ht" be used for conversions other than
  from TeX/LaTeX to HTML. This is in response to #495768.
* debian/control: Replaced "sun-java5-jre" with "openjdk-6-jre-headless"
  in the "Suggests" field for "tex4ht-common". The latter java runtime
  seems to work with "xtpipes.jar" and the former is non-free.
  (Closes: #486482)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
 
% spanish.4ht                          2006-08-29-04:36 %
3
 
% Copyright (C) 2000--2006       Eitan M. Gurari         %
 
2
% spanish.4ht                          2008-07-01-10:26 %
 
3
% Copyright (C) 2000--2008       Eitan M. Gurari         %
4
4
%                                                        %
5
5
% This work may be distributed and/or modified under the %
6
6
% conditions of the LaTeX Project Public License, either %
7
 
% version 1.3 of this license or (at your option) any    %
 
7
% version 1.3c of this license or (at your option) any   %
8
8
% later version. The latest version of this license is   %
9
9
% in                                                     %
10
10
%   http://www.latex-project.org/lppl.txt                %
11
 
% and version 1.3 or later is part of all distributions  %
12
 
% of LaTeX version 2003/12/01 or later.                  %
 
11
% and version 1.3c or later is part of all distributions %
 
12
% of LaTeX version 2005/12/01 or later.                  %
13
13
%                                                        %
14
14
% This work has the LPPL maintenance status "maintained".%
15
15
%                                                        %
24
24
%                             gurari@cse.ohio-state.edu  %
25
25
%                 http://www.cse.ohio-state.edu/~gurari  %
26
26
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27
 
\immediate\write-1{version 2006-08-29-04:36}
 
27
\immediate\write-1{version 2008-07-01-10:26}
28
28
 
29
 
  \def\spanish:shorthand#1{\leavevmode \hbox{\csname a:spanish"#1\endcsname}}
30
 
\def\:temp{\spanish:shorthand o}
31
 
\expandafter\HLet\csname spanish@sh@\string"@o@\endcsname=\:temp
32
 
\def\:temp{\spanish:shorthand a}
 
29
  \expandafter\def\csname spanish:"shorthand\endcsname
 
30
               #1{\leavevmode \hbox{\csname a:spanish"#1\endcsname}}
 
31
\edef\:temp{\expandafter\noexpand
 
32
               \csname spanish:"shorthand\endcsname\space a}
33
33
\expandafter\HLet\csname spanish@sh@\string"@a@\endcsname=\:temp
34
34
\NewConfigure{spanish"a}{1}
 
35
\edef\:temp{\expandafter\noexpand
 
36
               \csname spanish:"shorthand\endcsname\space o}
 
37
\expandafter\HLet\csname spanish@sh@\string"@o@\endcsname=\:temp
35
38
\NewConfigure{spanish"o}{1}
36
 
\pend:defIII\es@accent{%
 
39
\edef\:temp{\expandafter\noexpand
 
40
               \csname spanish:"shorthand\endcsname\space e}
 
41
\expandafter\HLet\csname spanish@sh@\string"@e@\endcsname=\:temp
 
42
\NewConfigure{spanish"e}{1}
 
43
\edef\:temp{\expandafter\noexpand
 
44
               \csname spanish:"shorthand\endcsname\space A}
 
45
\expandafter\HLet\csname spanish@sh@\string"@A@\endcsname=\:temp
 
46
\NewConfigure{spanish"A}{1}
 
47
\edef\:temp{\expandafter\noexpand
 
48
               \csname spanish:"shorthand\endcsname\space O}
 
49
\expandafter\HLet\csname spanish@sh@\string"@O@\endcsname=\:temp
 
50
\NewConfigure{spanish"O}{1}
 
51
\edef\:temp{\expandafter\noexpand
 
52
               \csname spanish:"shorthand\endcsname\space E}
 
53
\expandafter\HLet\csname spanish@sh@\string"@E@\endcsname=\:temp
 
54
\NewConfigure{spanish"E}{1}
 
55
\edef\:tempc{\expandafter\noexpand
 
56
               \csname spanish:'shorthand\endcsname\space i}
 
57
\expandafter\HLet\csname spanish@sh@\string'@i@\endcsname=\:tempc
 
58
\NewConfigure{spanish'i}{1}
 
59
\def\:tempc{\csname a:spanish'i\endcsname}
 
60
\expandafter\HLet\csname \string\OT1\string\'-i\endcsname\:tempc
 
61
\AtBeginDocument{
 
62
   \def\:tempc{\a:guillemotright}
 
63
   \HLet\guillemotright\:tempc
 
64
   \def\:tempc{\a:guillemotleft}
 
65
   \HLet\guillemotleft\:tempc
 
66
}
 
67
\NewConfigure{guillemotright}{1}
 
68
\Configure{guillemotright}{\o:guillemotright:}
 
69
\NewConfigure{guillemotleft}{1}
 
70
\Configure{guillemotleft}{\o:guillemotright:}
 
71
\let\:tempc\es@accent
 
72
\pend:defIII\:tempc{%
37
73
    \expandafter\:text@composite@x
38
74
    \csname OT1\string##1\endcsname##3\@empty}
 
75
\HLet\es@accent\:tempc
39
76
\def\:text@composite@x#1#2{%
40
77
   \expandafter\ifx \csname \string#1-\string#2\endcsname\relax
41
78
      \expandafter\ifx \csname \string#1- :\endcsname\relax
52
89
   }
53
90
\def\chk:acc#1#2#3{%
54
91
   \if !#2!\expandafter\:gobbleIII \else
55
 
       \if \string#1\string#2%
 
92
       \if \noexpand#1\noexpand#2%
56
93
          \a:es@accents#3\b:es@accents
57
94
          \expandafter\expandafter\expandafter\gob:accc
58
95
       \else
73
110
\NewConfigure{es@accent}[2]{\expandafter
74
111
   \def\csname #1- :\endcsname##1{\chk:acc{##1}#2{}{}}}
75
112
\NewConfigure{es@accents}{2}
 
113
\AtBeginDocument{%
 
114
   \def\bbl@umlauta{\ifx \EndPicture \:UnDef \expandafter \n:bbl@umlauta:
 
115
                    \else \expandafter \o:bbl@umlauta: \fi }%
 
116
}
76
117
 
77
118
\Hinput{spanish}
78
119
\endinput