File: sanskrit.perl

package info (click to toggle)
latex2html 2008-debian1-7
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 11,176 kB
  • sloc: perl: 30,941; makefile: 429; sh: 155
file content (99 lines) | stat: -rw-r--r-- 3,244 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# $Id: sanskrit.perl,v 1.1 1998/01/22 04:33:23 RRM Exp $
# SANSKRIT.PERL by Ross Moore <ross@mpce.mq.edu.au> 17-1-98
# Mathematics Department, Macquarie University, Sydney, Australia.
#
# Style for LaTeX2HTML v98.1 to construct images of traditional
#  Indic scripts, using:
#
#  Indica pre-processor and sinhala fonts:  sinha, sinhb, sinhc
#    by Yannis Haralambous <Yannis.Haralambous@univ-lille1.fr>
#
#  sinhala.sty  package for LaTeX-2e
#    by Dominik Wujastyk <D.Wujastyk@ucl.ac.uk>
#
#  extended for Prasad Dharmasena's <pkd@isr.umd.edu>
#  `samanala'  transliteration scheme
#    by Vasantha Saparamadu <vsaparam@ocs.mq.edu.au>
#
# These resources are *not* included with this package.
# Obtain them from CTAN:  http//ctan.tug.org/ctan
#
# ===================================================================
# This package requires the corresponding LaTeX package:  sanskrit.sty .
# It also requiress:  indica.perl  and   indica.sty .
#
# With LaTeX2HTML the options on the \usepackage line specify 
# preprocessor commands to use with Indica.
#
# Usage:
#
#  \usepackage{sanskrit}            %|  pre-process source using Indica
#  \usepackage[indica]{sanskrit}    %|  with  #ALIAS SANSKRIT S
#  \usepackage[preprocess]{sanskrit}%|  and   #ALIAS NIL N
#
#  \usepackage[san]{sanskrit}       %| also use #ALIAS SANSKRIT SAN
#
#
#  options affecting Input-forms
#
#  \usepackage[7bit]{sanskrit}    %|  Velthuis' Hindi/Sanskri transcription
#  \usepackage[csx]{sanskrit}     %|  8-bit Sanskrit extension of ISO 646
#  \usepackage[latex]{sanskrit}   %|  standardized LaTeX transcription form
#  \usepackage[unicode]{sanskrit} %|  ISO 10646-1 + Sinhalese extension
#  \usepackage[samanala]{sanskrit}%|  Prasad Dharmasena's transliteration
#
# ===================================================================
# Warning
#
#  This package works BOTH with source *before* pre-processing
#  and also *after* having pre-processed.
#  The latter may create more smaller images of individual syllabes,
#  whereas the former tends to create larger images of whole lines,
#  paragraphs, sections, etc.
# ===================================================================
#
# Change Log:
# ===========
# $Log: sanskrit.perl,v $
# Revision 1.1  1998/01/22 04:33:23  RRM
# 	LaTeX2HTML interfaces to packages and pre-processors for including
# 	traditional Indic scripts (as images) in HTML documents
#
# 	see the .perl files for documentation on usage
# 	see the corresponding .sty file for the LaTeX-2e interface
#
#

package main;


# preprocessor: indica
sub do_sanskrit_indica { &do_indica_sanskrit() }
sub do_sanskrit_preprocess { &do_indica_sanskrit() }
sub do_sanskrit_san { &do_indica_san() }

# input modes
sub do_sanskrit_7bit { &do_indica_7bit() }
sub do_sanskrit_csx { &do_indica_csx() }
sub do_sanskrit_latex { &do_indica_latex() }
sub do_sanskrit_unicode { &do_indica_unicode() }
sub do_sanskrit_samanala { &do_indica_samanala() }


# load Indica for #SANSKRIT

&do_require_package('indica'); 
if (defined &do_indica_sanskrit) {
    &do_indica_sanskrit()
} else { die "\n indica.perl was not loaded, sorry" }

# override Indica variables here
#
#  $INDICA = 'indica';
#  $INDICA_MODE = 'sevenbit';


1;				# Not really necessary...