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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2005-04-05 14:14:41 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050405141441-x4dojdgz3frkfyet
Tags: 20050402.1817-1
* New upstream release (2005-04-02-18:17). Closes: #299934.
* See README.src, README.validate, README.Debian and copyright
  for information on minor changes.
* This upload fixes a some .htf files. Closes: #295109.
* Updated the description to reflect recent changes.
* Fixed some typos in src/tex4ht-mkht.tex and consequently
  in the mk4ht script.
* Updated the man page to include mk4ht. 
* Updated the description of options for the scripts in the man page.
  Put more information in the man page about the way the system works.
  Closes: #219348, #219347.
* Added debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
2
% javahelp.4ht                          2005-03-30-23:36 %
 
3
% Copyright (C) 2003--2005       Eitan M. Gurari         %
 
4
%                                                        %
 
5
% This work may be distributed and/or modified under the %
 
6
% conditions of the LaTeX Project Public License, either %
 
7
% version 1.3 of this license or (at your option) any    %
 
8
% later version. The latest version of this license is   %
 
9
% in                                                     %
 
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.                  %
 
13
%                                                        %
 
14
% This work has the LPPL maintenance status "maintained".%
 
15
%                                                        %
 
16
% This Current Maintainer of this work                   %
 
17
% is Eitan M. Gurari.                                    %
 
18
%                                                        %
 
19
% If you modify this program your changing its signature %
 
20
% with a directive of the following form will be         %
 
21
% appreciated.                                           %
 
22
%            \message{signature}                         %
 
23
%                                                        %
 
24
%                             gurari@cse.ohio-state.edu  %
 
25
%                 http://www.cse.ohio-state.edu/~gurari  %
 
26
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
27
\immediate\write-1{version 2005-03-30-23:36}
 
28
 
 
29
\immediate\write-1{--------------- JavaHelp -----------------}
 
30
\immediate\write-1{The entry (HelpSet) file for the java program
 
31
                                         is at `\jobname.hs'}
 
32
\immediate\write-1{Generate a search database
 
33
                             with, for instance, the command}
 
34
  \immediate\write-1{ java -jar
 
35
    ...../jh1.1.3/javahelp/bin/jhindexer.jar
 
36
    -db \jobname-jhs \jobname*.html}
 
37
\immediate\write-1{Compile the java program with a command similar to}
 
38
  \immediate\write-1{ javac -classpath
 
39
    ...../jh1.1.3/javahelp/lib/jh.jar  program.java}
 
40
\immediate\write-1{Run the java program with a command similar to}
 
41
  \immediate\write-1{ java -classpath
 
42
    ...../jh1.1.3/javahelp/lib/jh.jar;. program}
 
43
\immediate\write-1{JavaHelp might require a compilation for HTML 3.2,
 
44
     for instance,}
 
45
\immediate\write-1{ htlatex \jobname\space "html,javahelp,3.2,3"}
 
46
\immediate\write-1{------------------------------------------}
 
47
 
 
48
\def\Write:File#1#2{%
 
49
  \special{t4ht>#1}%
 
50
  \special{t4ht=#2}%
 
51
  \special{t4ht*>#1}%
 
52
  \special{t4ht*>}%
 
53
}
 
54
\def\jhNote{%
 
55
     Created for JavaHelp
 
56
     (http://java.sun.com/products/javahelp/)\Hnewline
 
57
     by TeX4ht (http://www.cse.ohio-state.edu/\string
 
58
     ~gurari/TeX4ht/)\Hnewline from \jobname.tex at \:today \space
 
59
  }
 
60
\Configure{crosslinks}{}{}{}{}{}{}{}{}{}
 
61
\def\dTdLaNg{\expandafter
 
62
  \ifx \csname a:dtd-lang\endcsname\relax EN\else
 
63
    \csname a:dtd-lang\endcsname
 
64
  \fi   }
 
65
\HAssign\mapEntry=0
 
66
\AtBeginDocument{%
 
67
  \let\jh:toc=\auto:toc
 
68
  \expandafter\append:defI\csname tableofcontents*\endcsname{%
 
69
     \global\let\jh:toc=\auto:toc }%
 
70
}
 
71
\HAssign\indexEntry=0
 
72
\append:defI\@wrindex{%
 
73
   \gHAdvance\mapEntry by 1
 
74
\Write:File
 
75
   {\jobname.jhm}%
 
76
   {<mapID target="indexentry-\mapEntry"
 
77
             url="\RefFileNumber\FileNumber
 
78
       \#\title:chs {dx\last:haddr}{\cur:th\:currentlabel}%
 
79
           " />\Hnewline}%
 
80
%
 
81
}
 
82
\:CheckOption{jh1.0} \if:Option
 
83
   \def\dotVersion{1.0}
 
84
   \def\subVersion{1\string_0}
 
85
\else
 
86
   \def\dotVersion{2.0}
 
87
   \def\subVersion{2\string_0}
 
88
\fi
 
89
 
 
90
\Configure{Preamble}
 
91
  {}
 
92
  {\Write:File
 
93
   {\jobname.jhm}
 
94
   {<?xml version="1.0" encoding="ISO-8859-1" ?>\Hnewline
 
95
<!DOCTYPE map PUBLIC\Hnewline
 
96
     "-//Sun Microsystems Inc.//DTD
 
97
                    JavaHelp Map Version \dotVersion//\dTdLaNg"\Hnewline
 
98
     "http://java.sun.com/products/javahelp/map_\subVersion.dtd">  
 
99
\Hnewline <!-- \jhNote
 
100
 -->\Hnewline
 
101
<map version="\dotVersion">\Hnewline
 
102
<mapID target="\jobname" url="\jobname.html"/>\Hnewline
 
103
}
 
104
}
 
105
\Configure{@/BODY}
 
106
  {\relax
 
107
   \ifnum \FileNumber=1
 
108
        \input javahelp-a.4ht
 
109
   \fi
 
110
  }
 
111