summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xmltex/xmlplay/play.xmt
blob: 966cd7c2db07b68eaa9d8605dc948556abd21761 (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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
\XMLentity{amp}{\&}

\XMLname{PLAY}{\PLAY}
\XMLname{PERSONAE}{\PERSONAE}
\XMLname{INDUCT}{\INDUCT}
\XMLname{SCENE}{\SCENE}
\XMLname{ACT}{\ACT}
\XMLname{PROLOGUE}{\PROLOGUE}
\XMLname{EPILOGUE}{\EPILOGUE}
\XMLname{LINE}{\LINE}



\XMLelement{PLAY}{}
   {\documentclass[11pt,a4paper]{play}
    \usepackage[margin=2.5cm,twosideshift=-.5cm]{geometry}
    \begin{document}
    \frontmatter}
   {\end{document}}

\XMLelement{FM}{}
   {\begin{titlepage}
    \vspace*{\fill}}
   {\vspace*{\fill}
    \end{titlepage}}

\XMLelement{P}{}{}{\par}

\XMLelement{PERSONAE}{}
    {\xmlgrab}
    {\chapter*{\xmltexfirstchild#1\@}
     \let\chapter=\@gobbletwo
     \begin{description}
       #1
     \end{description}}

\XMLelement{PERSONA}{}
    {\item}
    {}

\XMLelement{PGROUP}{}
    {\begin{description}}
    {}  %To be closed by GRPSESCR

\XMLelement{GRPDESCR}{}
    {\end{description}
     \item[\hspace{8em}]}{}

\XMLelement{PLAYSUBT}{}
    {\mainmatter\vspace*{.3\textheight}\huge\bfseries\centering}
    {\par}

\XMLelement{SCNDESCR}{}
    {\begin{thesetting}}
    {\end{thesetting}}

\XMLelement{TITLE}{}
   {\xmlgrab}
   {\ifx\XML@parent\PLAY
       \begin{titlepage}
       \vspace*{\fill}\centering #1\par
       \vspace*{\fill}\end{titlepage}
    \fi
   \ifx\XML@parent\PERSONAE\chapter*{#1}\fi
   \ifx\XML@parent\INDUCT\chapter*{#1}\fi
   \ifx\XML@parent\SCENE\scene*{#1}\fi
   \ifx\XML@parent\ACT\act*{#1}\fi
   \ifx\XML@parent\PROLOGUE\scene*{#1}\fi
   \ifx\XML@parent\EPILOGUE\scene*{#1}\fi}

\XMLelement{SUBTITLE}{}
    {\xmlgrab}
    {\ifx\XML@parent\ACT\section*{#1}
     \else \item #1 \fi}

\XMLelement{ACT}{}
    {}
    {}

\XMLelement{SCENE}{}
    {\begin{verseplay}}
    {\end{verseplay}}

 
\XMLelement{SPEECH}{}
   {\xmlgrab}
   {\let\idorgobble\relax
    \speaker{\xmltexfirstchild#1\@}
   \let\idorgobble\@gobble #1}

\XMLelement{SPEAKER}{}
   {\xmlgrab}
   {\idorgobble{#1}}

\XMLelement{LINE}{}
   {}
   {\\}

\XMLelement{STAGEDIR}{}
   {\xmlgrab}
   {\ifx\XML@parent\SCENE 
      \item\fi
    \ifx\XML@parent\ACT
      \item\fi
    \ifx\XML@parent\LINE\shortdirection{#1}
    \else\longdirection{#1}\fi}
    
\XMLelement{EPILOGUE}{}
    {\begin{verseplay}}
    {\end{verseplay}}

\XMLelement{PROLOGUE}{}
    {\begin{verseplay}}
    {\end{verseplay}}

\XMLelement{SUBTITLE}{}
    {\xmlgrab}
    {\PackageWarningNoLine{xmltex play}{Subtitles are not supported. Sorry}}

\XMLelement{SUBHEAD}{}
    {\xmlgrab}
    {\PackageWarningNoLine{xmltex play}{Sub-headings are not supported. Sorry}}