]> git.lyx.org Git - features.git/blob - lib/layouts/linguistics.module
Update status of layouttranslations
[features.git] / lib / layouts / linguistics.module
1 #\DeclareLyXModule[covington.sty,drs.sty,forest.sty,pict2e.sty]{Linguistics}
2 #\DeclareCategory{Academic Field Specifics}
3 #DescriptionBegin
4 #Defines some special environments useful for linguistics (numbered examples,
5 #glosses, semantic markup, tableau floats).
6 #See linguistics.lyx file in examples.
7 #DescriptionEnd
8
9 # Author: Jürgen Spitzmüller <spitz@lyx.org>
10
11 Format 95
12
13 #
14 # Counters
15 #
16
17 Counter example
18         GuiName Example
19         Within               chapter
20         LabelString          "(\arabic{example})"
21 End
22
23 Counter examplei
24         GuiName              "Numbered Example (Multiline)"
25         Within               chapter
26         LabelString          "(\arabic{examplei})"
27 End
28
29 Counter subexample
30         GuiName              Subexample
31         Within               examplei
32         LabelString          "\theexamplei (\alph{subexample})"
33 End
34
35 Counter subexamplei
36         GuiName              Subexample
37         Within               examplei
38         LabelString          "\theexamplei (\alph{subexamplei})"
39 End
40
41 Counter subexampleii
42         GuiName              Subexample
43         Within               examplei
44         LabelString          "\theexamplei (\alph{subexampleii})"
45 End
46
47 Counter subexampleiii
48         GuiName              Subexample
49         Within               examplei
50         LabelString          "\theexamplei (\alph{subexampleiii})"
51 End
52
53 Counter subexampleiv
54         GuiName              Subexample
55         Within               examplei
56         LabelString          "\theexamplei (\alph{subexampleiv})"
57 End
58
59 #
60 # Numbered Examples
61 #
62
63 # Single numbered example with covington.sty
64 Style Numbered_Example_(multiline)
65         LatexType             Environment
66         LatexName             covexample
67         NextNoIndent          1
68         Margin                First_Dynamic
69         ParIndent             (1)x
70         LabelSep              xx
71         ParSkip               0.0
72         ItemSep               0.2
73         TopSep                0.7
74         BottomSep             0.7
75         ParSep                0.3
76         Align                 Block
77         AlignPossible         Block, Left
78         LabelType             Static
79         LabelCounter          "examplei"
80         LabelFont
81                 Color         textlabel1
82         EndFont
83         Requires              covington
84         Category              Linguistics
85         DocBookWrapperTag     informalexample
86         DocBookWrapperAttr    role='numbered'
87         DocBookWrapperMergeWithPrevious  true
88         DocBookTag            para
89 End
90
91
92 # Multiple numbered examples with covington.sty
93 Style Numbered_Examples_(consecutive)
94         CopyStyle             Numbered_Example_(multiline)
95         LatexType             Item_Environment
96         LatexName             covexamples
97         LabelType             Enumerate
98         LabelCounter          "example"
99         ResumeCounter         true
100         Argument listpreamble:1
101                 LabelString    "List preamble"
102                 MenuString     "List Preamble"
103                 Tooltip        "LaTeX code to be inserted before the first item"
104                 PassThru       1
105                 Font
106                         Family typewriter
107                         Color latex
108                 EndFont
109         EndArgument
110         Argument item:1
111                 LabelString   "Custom Numbering|s"
112                 Tooltip       "Customize the numeration"
113         EndArgument
114         DocBookWrapperTag     informalexample
115         DocBookWrapperAttr    role='consecutive'
116         DocBookWrapperMergeWithPrevious  true
117         DocBookTag            para
118 End
119
120
121 # Sub-examples with covington.sty
122 Style Subexample
123         CopyStyle             Numbered_Examples_(consecutive)
124         LatexName             covsubexamples
125         LabelCounter          "subexample"
126         StepParentCounter     true
127         Requires              covington
128         Argument 1
129                 LabelString   "Subexamples options"
130                 MenuString    "Subexamples options|s"
131                 Tooltip       "Add subexamples options here"
132                 PassThru       1
133         EndArgument
134 End
135
136
137 #
138 # Interlinear Glosses
139 #
140
141 # Two-Line gloss with covington.sty
142 InsetLayout Flex:Interlinear_Gloss_(2_Lines)
143         LyXType               custom
144         LabelString           Gloss
145         LatexType             command
146         LatexName             digloss
147         Decoration            minimalistic
148         LabelFont
149           Size                Small
150         EndFont
151         MultiPar              true
152         CustomPars            false
153         ForcePlain            true
154         ParbreakIgnored       true
155         FreeSpacing           true
156         Requires              covington,csquotes
157         InToc                 true
158         ResetsFont            true
159         Argument 1
160                 LabelString   "Gloss options"
161                 MenuString    "Gloss Options|s"
162                 Tooltip       "Add digloss options here"
163         EndArgument
164         Argument post:1
165                 Decoration    conglomerate
166                 LabelString   "Interlinear Gloss"
167                 MenuString    "Interlinear Gloss"
168                 Tooltip       "Add the inter-linear gloss here"
169                 AutoInsert    true
170                 Mandatory     true
171                 FreeSpacing   true
172                 InsertOnNewline true
173         EndArgument
174         Argument post:2
175                 Decoration    conglomerate
176                 LabelString   "Translation"
177                 MenuString    "Gloss Translation"
178                 Tooltip       "Add a free translation for the gloss"
179                 AutoInsert    true
180                 Mandatory     true
181                 FreeSpacing   true
182                 InsertOnNewline true
183         EndArgument
184 End
185
186
187 # Three-Line gloss with covington.sty
188 InsetLayout Flex:Interlinear_Gloss_(3_Lines)
189         LyXType               custom
190         LabelString           Tri-Gloss
191         LatexType             command
192         LatexName             trigloss
193         Decoration            minimalistic
194         LabelFont
195           Size                Small
196         EndFont
197         MultiPar              true
198         CustomPars            false
199         ForcePlain            true
200         ParbreakIgnored       true
201         FreeSpacing           true
202         InToc                 true
203         Requires              covington,csquotes
204         ResetsFont            true
205         Argument 1
206                 LabelString   "Gloss options"
207                 MenuString    "Gloss Options|s"
208                 Tooltip       "Add trigloss options here"
209         EndArgument
210         Argument post:1
211                 Decoration    conglomerate
212                 LabelString   "Interlinear Gloss (1)"
213                 MenuString    "Interlinear Gloss (Line 1)|1"
214                 Tooltip       "Add the first inter-linear gloss line here"
215                 Mandatory     true
216                 AutoInsert    true
217                 FreeSpacing   true
218                 InsertOnNewline true
219         EndArgument
220         Argument post:2
221                 Decoration    conglomerate
222                 LabelString   "Interlinear Gloss (2)"
223                 MenuString    "Interlinear Gloss (Line 2)|2"
224                 Tooltip       "Add the first inter-linear gloss line here"
225                 Mandatory     true
226                 AutoInsert    true
227                 FreeSpacing   true
228                 InsertOnNewline true
229         EndArgument
230         Argument post:3
231                 Decoration    conglomerate
232                 LabelString   "Translation"
233                 MenuString    "Gloss Translation"
234                 Tooltip       "Add a translation for the glosse"
235                 Mandatory     true
236                 AutoInsert    true
237                 InsertOnNewline true
238         EndArgument
239 End
240
241
242 # A helper to group words in glosses
243 InsetLayout Flex:GroupGlossedWords
244         LyxType               charstyle
245         LabelString           Group
246         LeftDelim             {
247         RightDelim            }
248         ResetsFont            true
249 End
250
251
252 #
253 # Trees
254 #
255
256 # Structure trees via the forest package
257 InsetLayout Flex:Structure_Tree
258         LyXType               custom
259         LabelString           Tree
260         LatexType             environment
261         LatexName             forest
262         Decoration            classic
263         LabelFont
264           Size                Small
265         EndFont
266         MultiPar              true
267         CustomPars            false
268         ParbreakIsNewline     true
269         FreeSpacing           true
270         Requires              forest
271         ResetsFont            true
272         PassThruChars         []
273         Preamble
274         % Load forest linguistics library, if available
275         \@ifpackagelater{forest}{2016/02/20}{%
276         \useforestlibrary*{linguistics}
277         }{}
278         EndPreamble
279     DocBookRenderAsImage  true
280 End
281
282
283 #
284 # Discourse Representation Structures
285 #
286
287 InsetLayout Flex:DRS
288         LyXType               custom
289         LabelString           DRS
290         MenuString            "Discourse Representation Structure|D"
291         LatexType             command
292         LatexName             drs
293         Decoration            classic
294         MultiPar              true
295         CustomPars            false
296         ParbreakIsNewline     true
297         FreeSpacing           true
298         Requires              drs
299         ResetsFont            true
300         Argument 1
301                 Decoration    conglomerate
302                 LabelString   "Referents"
303                 MenuString    "DRS Referents"
304                 Tooltip       "Add the DRS referents (universe) here"
305                 Mandatory     true
306                 AutoInsert    true
307         EndArgument
308 End
309
310
311 InsetLayout Flex:DRS*
312         CopyStyle             Flex:DRS
313         LabelString           DRS*
314         MenuString            "Discourse Representation Structure (unspaced)|u"
315         LatexName             drs*
316 End
317
318
319 InsetLayout Flex:IfThen-DRS
320         CopyStyle             Flex:DRS
321         LabelString           "If-Then DRS"
322         MenuString            "If-Then DRS"
323         LatexName             ifdrs
324         Argument post:1
325                 Decoration    classic
326                 LabelString   "Then-Referents"
327                 MenuString    "DRS Then-Referents"
328                 Tooltip       "Add the DRS then-referents (universe) here"
329                 Mandatory     true
330                 AutoInsert    true
331                 InsertOnNewline true
332         EndArgument
333         Argument post:2
334                 Decoration    classic
335                 LabelString   "Then-Conditions"
336                 MenuString    "DRS Then-Referents"
337                 Tooltip       "Add the DRS then-conditions here"
338                 Mandatory     true
339                 AutoInsert    true
340                 InsertOnNewline true
341         EndArgument
342 End
343
344
345 InsetLayout Flex:Cond-DRS
346         CopyStyle             Flex:DRS
347         LabelString           "Cond. DRS"
348         MenuString            "Conditional DRS"
349         LatexName             condrs
350         Argument post:1
351                 Decoration    classic
352                 LabelString   "Cond."
353                 MenuString    "DRS Condition"
354                 Tooltip       "Add the DRS condition here"
355                 Mandatory     true
356                 AutoInsert    true
357                 InsertOnNewline true
358         EndArgument
359         Argument post:2
360                 Decoration    classic
361                 LabelString   "Then-Referents"
362                 MenuString    "DRS Then-Referents"
363                 Tooltip       "Add the DRS then-referents (universe) here"
364                 Mandatory     true
365                 AutoInsert    true
366                 InsertOnNewline true
367         EndArgument
368         Argument post:3
369                 Decoration    classic
370                 LabelString   "Then-Conditions"
371                 MenuString    "DRS Then-Referents"
372                 Tooltip       "Add the DRS then-conditions here"
373                 Mandatory     true
374                 AutoInsert    true
375                 InsertOnNewline true
376         EndArgument
377 End
378
379
380 InsetLayout Flex:QDRS
381         CopyStyle             Flex:DRS
382         LabelString           "Dupl. Cond. DRS"
383         MenuString            "Duplex Condition DRS"
384         LatexName             qdrs
385         Argument post:1
386                 Decoration    classic
387                 LabelString   "Quant."
388                 MenuString    "DRS Quantifier"
389                 Tooltip       "Add the DRS duplex quantifier here"
390                 Mandatory     true
391                 AutoInsert    true
392                 InsertOnNewline true
393         EndArgument
394         Argument post:2
395                 Decoration    classic
396                 LabelString   "Quant. Var."
397                 MenuString    "DRS Quantifier Variable"
398                 Tooltip       "Add the DRS duplex quantifier variables here"
399                 Mandatory     true
400                 AutoInsert    true
401                 InsertOnNewline true
402         EndArgument
403         Argument post:3
404                 Decoration    classic
405                 LabelString   "Then-Referents"
406                 MenuString    "DRS Then-Referents"
407                 Tooltip       "Add the DRS then-referents (universe) here"
408                 Mandatory     true
409                 AutoInsert    true
410                 InsertOnNewline true
411         EndArgument
412         Argument post:4
413                 Decoration    classic
414                 LabelString   "Then-Conditions"
415                 MenuString    "DRS Then-Referents"
416                 Tooltip       "Add the DRS then-conditions here"
417                 Mandatory     true
418                 AutoInsert    true
419                 InsertOnNewline true
420         EndArgument
421         Requires              drs,pict2e
422 End
423
424
425 InsetLayout Flex:NegDRS
426         CopyStyle             Flex:DRS
427         LabelString           "Neg. DRS"
428         MenuString            "Negated DRS"
429         LatexName             negdrs
430 End
431
432
433 InsetLayout Flex:SDRS
434         CopyStyle             Flex:DRS
435         LabelString           "Sent. DRS"
436         MenuString            "DRS with Sentence above"
437         LatexName             sdrs
438         Argument 1
439                 Decoration    conglomerate
440                 LabelString   "Sentence"
441                 MenuString    "DRS Sentence"
442                 Tooltip       "Add the sentence here"
443                 Mandatory     true
444                 AutoInsert    true
445                 InsertOnNewline true
446         EndArgument
447         Argument 2
448                 Decoration    conglomerate
449                 LabelString   "Referents"
450                 MenuString    "DRS Referents"
451                 Tooltip       "Add the DRS referents (universe) here"
452                 Mandatory     true
453                 AutoInsert    true
454                 InsertOnNewline true
455         EndArgument
456 End
457
458
459 #
460 # Semantic Markup
461 #
462
463 InsetLayout Flex:Expression
464         LyxType               charstyle
465         LabelString           expr.
466         LatexType             command
467         LatexName             lexp
468         Requires              covington
469         Font
470           Shape               Italic
471         EndFont
472         InToc                 true
473         ResetsFont            true
474 End
475
476
477 InsetLayout Flex:Concepts
478         LyxType               charstyle
479         LabelString           concept
480         LatexType             command
481         LatexName             lcon
482         Requires              covington
483         Font
484           Shape               Smallcaps
485         EndFont
486         InToc                 true
487         ResetsFont            true
488 End
489
490
491 InsetLayout Flex:Meaning
492         LyxType               charstyle
493         LabelString           meaning
494         LatexType             command
495         LatexName             lmean
496         Requires              covington,csquotes
497         InToc                 true
498         ResetsFont            true
499 End
500
501
502 #
503 # OT Tableaux
504 #
505
506 OutlinerName tableau        "Tableaux" #no AddToToc
507
508 Float
509         Type                  tableau
510         GuiName               Tableau
511         Placement             tbp
512         Extension             otl
513         NumberWithin          none
514         Style                 plain
515         ListName              "List of Tableaux"
516         IsPredefined          false
517         UsesFloatPkg          true
518 End
519