summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/fonts/malayalam/dng/dng.tex
blob: ccfd931ab46b23a6fbb55fe44cc84e37f4abf5b4 (plain)
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
% dng.tex -- guide for using Devanagari with Malayalam-TeX
% (c) Jeroen Hellingman 1993
% Last edit: 07-JAN-1993

\input dngmacs
\input mmtrmacs
\input dntrmacs

\beginsection {\twelvebf How To Type Devanagari}

Since a package for typesetting Devanagari, 
{\tt devnag}, designed by Frans Velthuis, was already available
I~decided to adapt it to Malayalam-\TeX s input conventions.

To start using Devanagari, all you have to do is say

\medskip
{\tt \bslash input dngmacs}

{\tt \bslash input dntrmacs}
\medskip

Somewhere near the start of your document. Then you can switch to
any of the principle languages that use Devanagari-script by saying
{\tt<{}sanskrit>}, {\tt<{}hindi>}, {\tt<{}marathi>}, or {\tt<{}nepali>}.
You will then enter the mode of the indicated language --~together
called {\it Devanagari-mode}.
You can switch back to normal mode by saying respectively
{\tt<{}/sanskrit>}, {\tt<{}/hindi>}, {\tt<{}/marathi>}, or {\tt<{}/nepali>}.
If you wish to use Roman transcription for any of those
languages, you will have to append {\tt .transcription} to the language
name in the start-tag; so Hindi in transcription can be started
with {\tt<{}hindi.transcription>}. No modification of the end-tag is
required (or even allowed).

The following table shows the character(s) you have to type to produce
a Devanagari character.

\bigskip
\input dngtrans
\bigskip

If you want to view or print your document after typing (a part of) it,
you will have to do some extra pre-processing\footnote*{I admit, if you
use several languages in one document, this can get pretty booring.}.
Saying

\medskip
{\tt patc -p dng.pat {\it input-file}.dng {\it temporary-file}.dn }

{\tt devnag {\it temporary-file}.dn {\it output-file}.tex}
\medskip

{\it after} pre-processing for Malayalam, if it is used, 
will do all the neccessary pre-processing for Devanagari. As you
can see, you will still have to use Frans Velthuis'
pre-processor\footnote{**}{As a matter of fact, I have only changed 
the transcription --~all functionality of {\tt devnag}, including 
{\tt@}-directives to it is still there.}.
To find out how it should be used exactly, read the manual that
comes with {\tt devnag}. 

\endinput