Librarian in regular requirements.
[redakcja.git] / apps / toolbar / fixtures / initial_toolbar.yaml
1 -   fields: {name: "Nag\u0142\xF3wki", position: 0, slug: naglowki}
2     model: toolbar.buttongroup
3     pk: 1
4 -   fields: {name: Autokorekta, position: 0, slug: autokorekta}
5     model: toolbar.buttongroup
6     pk: 2
7 -   fields: {name: Mastery, position: 0, slug: mastery}
8     model: toolbar.buttongroup
9     pk: 11
10 -   fields: {name: 'Dramat ', position: 0, slug: dramat}
11     model: toolbar.buttongroup
12     pk: 12
13 -   fields: {name: "Elementy pocz\u0105tkowe", position: 0, slug: elementy-poczatkowe}
14     model: toolbar.buttongroup
15     pk: 13
16 -   fields: {name: Akapity, position: 0, slug: akapity}
17     model: toolbar.buttongroup
18     pk: 14
19 -   fields: {name: Style znakowe, position: 0, slug: style-znakowe}
20     model: toolbar.buttongroup
21     pk: 15
22 -   fields: {name: Separatory, position: 0, slug: separatory}
23     model: toolbar.buttongroup
24     pk: 16
25 -   fields: {name: Wersy, position: 0, slug: wersy}
26     model: toolbar.buttongroup
27     pk: 17
28 -   fields: {name: Bloki, position: 0, slug: bloki}
29     model: toolbar.buttongroup
30     pk: 21
31 -   fields: {name: "Pocz\u0105tek dramatu", position: 0, slug: poczatek-dramatu}
32     model: toolbar.buttongroup
33     pk: 22
34 -   fields: {name: Przypisy, position: 0, slug: przypisy}
35     model: toolbar.buttongroup
36     pk: 26
37 -   fields: {name: Autotagowanie, position: 0, slug: autotagowanie}
38     model: toolbar.buttongroup
39     pk: 28
40 -   fields: {name: Uwaga, position: 0, slug: uwaga}
41     model: toolbar.buttongroup
42     pk: 29
43 -   fields:
44         accesskey: ''
45         group: [2]
46         label: ",,\u2026\" na \xAB\u2026\xBB"
47         link: ''
48         params: '{"exprs": [[",,", "\u00ab"], ["\"", "\u00bb"]]}'
49         scriptlet: fulltextregexp
50         slug: na-francuskie
51         tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na francuskie"
52     model: toolbar.button
53     pk: 2
54 -   fields:
55         accesskey: ''
56         group: [2]
57         label: ",,\u2026\" na \xBB\u2026\xAB"
58         link: ''
59         params: '{"exprs": [[",,", "\u00bb"], ["\"", "\u00ab"]]}'
60         scriptlet: fulltextregexp
61         slug: na-niemieckie
62         tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na niemieckie"
63     model: toolbar.button
64     pk: 3
65 -   fields:
66         accesskey: ''
67         group: [2]
68         label: Podstawowa
69         link: ''
70         params: '[["fulltextregexp", {"exprs": [["\ufeff", ""], ["$[\\s]*\\d+[\\s]*^",
71             ""], ["-\\s*^", ""], ["\\,\\.\\.|\\.\\,\\.|\\.\\.\\,", "..."], ["<(/?)P([aert])",
72             "<$1p$2"], ["[\u2014\u2013\u2010-]{2,}|[\u2014\u2013\u2010]+", "---"],
73             ["(\\s)-([^-])", "$1---$2"], ["([^-])-(\\s)", "$1---$2"], ["(\\d)-+(\\d)",
74             "$1--$2"], ["---(\\S)", "--- $1"], ["(\\S)---", "$1 ---"], ["<akap_dialog>\\s*-+\\s*",
75             "<akap_dialog>--- "]]}], ["lineregexp", {"exprs": [["^\\s+|\\s+$", ""],
76             ["\\s+", " "], ["(,,)\\s+", "$1"], ["\\s+(\")", "$1"], ["([^\\.])(\\s*)</p",
77             "$1.$2</p"], ["([\\.:;!\\?])([^\\s\\\\])", "$1 $2"], ["([^\\s])\\s+([\\.:;!\\?])",
78             "$1$2"], ["\\s+,([^,])", ",$1"], ["([^,]),([^\\s\\\\,])", "$1, $2"], ["([A-Za-z])0",
79             "$1o"], ["(\\. )0([A-Za-z])", "$1O$2"], [" 0([A-Za-z])", " o$1"], ["([A-Za-z])1",
80             "$1l"], ["(\\. )1([A-Za-z])", "$1L$2"], [" 1([A-Za-z])", " l$1"]]}]]'
81         scriptlet: macro
82         slug: basic_correction
83         tooltip: "Wykonuj\u0119 podstawow\u0105 korekt\u0119 tekstu."
84     model: toolbar.button
85     pk: 4
86 -   fields:
87         accesskey: ''
88         group: [1]
89         label: "cz\u0119\u015B\u0107/ksi\u0119ga"
90         link: ''
91         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_czesc"}'
92         scriptlet: insert_tag
93         slug: czesc
94         tooltip: ''
95     model: toolbar.button
96     pk: 10
97 -   fields:
98         accesskey: ''
99         group: [1]
100         label: "rozdzia\u0142"
101         link: ''
102         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_rozdzial"}'
103         scriptlet: insert_tag
104         slug: rozdzial
105         tooltip: ''
106     model: toolbar.button
107     pk: 11
108 -   fields:
109         accesskey: ''
110         group: [1]
111         label: "podrozdzia\u0142"
112         link: ''
113         params: '{"tag": "naglowek_podrozdzial"}'
114         scriptlet: insert_tag
115         slug: podrozdzial
116         tooltip: ''
117     model: toolbar.button
118     pk: 12
119 -   fields:
120         accesskey: ''
121         group: [1]
122         label: "\u015Br\xF3dtytu\u0142"
123         link: ''
124         params: '{"tag": "srodtytul"}'
125         scriptlet: insert_tag
126         slug: srodtytul
127         tooltip: ''
128     model: toolbar.button
129     pk: 13
130 -   fields:
131         accesskey: ''
132         group: [1]
133         label: akt
134         link: ''
135         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_akt"}'
136         scriptlet: insert_tag
137         slug: akt
138         tooltip: ''
139     model: toolbar.button
140     pk: 14
141 -   fields:
142         accesskey: ''
143         group: [1]
144         label: scena
145         link: ''
146         params: '{"tag": "naglowek_scena"}'
147         scriptlet: insert_tag
148         slug: scena
149         tooltip: ''
150     model: toolbar.button
151     pk: 15
152 -   fields:
153         accesskey: ''
154         group: [12]
155         label: "nag\u0142\xF3wek kwestii"
156         link: ''
157         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_osoba"}'
158         scriptlet: insert_tag
159         slug: naglowek-kwestii
160         tooltip: "nag\u0142\xF3wek kwestii - nazwa osoby"
161     model: toolbar.button
162     pk: 16
163 -   fields:
164         accesskey: ''
165         group: [11]
166         label: "tag g\u0142\xF3wny"
167         link: ''
168         params: '{"tag": "utwor"}'
169         scriptlet: insert_tag
170         slug: tag-glowny
171         tooltip: ''
172     model: toolbar.button
173     pk: 17
174 -   fields:
175         accesskey: ''
176         group: [11]
177         label: opowiadanie
178         link: ''
179         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "opowiadanie"}'
180         scriptlet: insert_tag
181         slug: opowiadanie
182         tooltip: ''
183     model: toolbar.button
184     pk: 18
185 -   fields:
186         accesskey: ''
187         group: [11]
188         label: "powie\u015B\u0107"
189         link: ''
190         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "powiesc"}'
191         scriptlet: insert_tag
192         slug: powiesc
193         tooltip: ''
194     model: toolbar.button
195     pk: 19
196 -   fields:
197         accesskey: ''
198         group: [11]
199         label: dramat wiersz.
200         link: ''
201         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wierszowany_l"}'
202         scriptlet: insert_tag
203         slug: dramat-wiersz
204         tooltip: ''
205     model: toolbar.button
206     pk: 20
207 -   fields:
208         accesskey: ''
209         group: [11]
210         label: "dramat wsp\xF3\u0142czesny"
211         link: ''
212         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wspolczesny"}'
213         scriptlet: insert_tag
214         slug: dramat-wspolczesny
215         tooltip: "dramat wsp\xF3\u0142czesny (proz\u0105)"
216     model: toolbar.button
217     pk: 21
218 -   fields:
219         accesskey: ''
220         group: [11]
221         label: "dramat wiersz./w. \u0142am"
222         link: ''
223         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wierszowany_lp"}'
224         scriptlet: insert_tag
225         slug: dramat-wiersz-w-lam
226         tooltip: "dramat wierszowany o zw\u0119\u017Conej szeroko\u015Bci \u0142amu"
227     model: toolbar.button
228     pk: 22
229 -   fields:
230         accesskey: ''
231         group: [11]
232         label: liryka
233         link: ''
234         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "liryka_l"}'
235         scriptlet: insert_tag
236         slug: liryka
237         tooltip: ''
238     model: toolbar.button
239     pk: 23
240 -   fields:
241         accesskey: ''
242         group: [11]
243         label: "liryka/w. \u0142am"
244         link: ''
245         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "liryka_lp"}'
246         scriptlet: insert_tag
247         slug: liryka-w-lam
248         tooltip: "utw\xF3r liryczny o zw\u0119\u017Conej szeroko\u015Bci \u0142amu"
249     model: toolbar.button
250     pk: 24
251 -   fields:
252         accesskey: ''
253         group: [11]
254         label: wywiad
255         link: ''
256         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "wywiad"}'
257         scriptlet: insert_tag
258         slug: wywiad
259         tooltip: ''
260     model: toolbar.button
261     pk: 25
262 -   fields:
263         accesskey: ''
264         group: [13]
265         label: autor
266         link: ''
267         params: '{"padding_top": 1, "padding_bottom": 2, "tag": "autor_utworu"}'
268         scriptlet: insert_tag
269         slug: autor
270         tooltip: ''
271     model: toolbar.button
272     pk: 32
273 -   fields:
274         accesskey: ''
275         group: [13]
276         label: nazwa utworu
277         link: ''
278         params: '{"padding_top": 1, "padding_bottom": 2, "tag": "nazwa_utworu"}'
279         scriptlet: insert_tag
280         slug: nazwa-utworu
281         tooltip: ''
282     model: toolbar.button
283     pk: 33
284 -   fields:
285         accesskey: ''
286         group: [1]
287         label: "podtytu\u0142"
288         link: ''
289         params: '{"tag": "podtytul"}'
290         scriptlet: insert_tag
291         slug: podtytul
292         tooltip: ''
293     model: toolbar.button
294     pk: 34
295 -   fields:
296         accesskey: v
297         group: [13]
298         label: nota
299         link: ''
300         params: '{"tag": "nota"}'
301         scriptlet: insert_tag
302         slug: nota
303         tooltip: ''
304     model: toolbar.button
305     pk: 35
306 -   fields:
307         accesskey: ''
308         group: [13, 22]
309         label: motto podpis
310         link: ''
311         params: '{"padding_top": 1, "padding_bottom": 2, "tag": "motto_podpis"}'
312         scriptlet: insert_tag
313         slug: motto-podpis
314         tooltip: ''
315     model: toolbar.button
316     pk: 37
317 -   fields:
318         accesskey: ''
319         group: [13]
320         label: "dzie\u0142o nadrz\u0119dne"
321         link: ''
322         params: '{"padding_top": 1, "padding_bottom": 2, "tag": "dzielo_nadrzedne"}'
323         scriptlet: insert_tag
324         slug: dzielo-nadrzedne
325         tooltip: ''
326     model: toolbar.button
327     pk: 38
328 -   fields:
329         accesskey: a
330         group: [14, 12]
331         label: akapit
332         link: ''
333         params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap"}'
334         scriptlet: insert_tag
335         slug: akapit
336         tooltip: wstawia akapit
337     model: toolbar.button
338     pk: 39
339 -   fields:
340         accesskey: ''
341         group: [14]
342         label: akapit cd.
343         link: ''
344         params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap_cd"}'
345         scriptlet: insert_tag
346         slug: akapit-cd
347         tooltip: "ci\u0105g dalszy akapitu po wewn\u0105trzakapitowym wtr\u0105ceniu"
348     model: toolbar.button
349     pk: 40
350 -   fields:
351         accesskey: d
352         group: [14]
353         label: akapit dialogowy
354         link: ''
355         params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap_dialog"}'
356         scriptlet: insert_tag
357         slug: akapit-dialogowy
358         tooltip: wstawia akapit dialogowy
359     model: toolbar.button
360     pk: 41
361 -   fields:
362         accesskey: ''
363         group: [21]
364         label: "d\u0142ugi cytat"
365         link: ''
366         params: '{"tag": "dlugi_cytat"}'
367         scriptlet: insert_tag
368         slug: dlugi-cytat
369         tooltip: "d\u0142ugi cytat wyr\xF3\u017Cniony sk\u0142adem"
370     model: toolbar.button
371     pk: 42
372 -   fields:
373         accesskey: ''
374         group: [21]
375         label: "ramka"
376         link: ''
377         params: '{"tag": "ramka"}'
378         scriptlet: insert_tag
379         slug: ramka
380         tooltip: "tekst otoczony ramkÄ…"
381     model: toolbar.button
382     pk: 43
383 -   fields:
384         accesskey: f
385         group: [12, 15]
386         label: "wyr\xF3\u017Cnienie"
387         link: ''
388         params: '{"tag": "wyroznienie"}'
389         scriptlet: insert_tag
390         slug: wyroznienie
391         tooltip: "wyr\xF3\u017Cnienie autorskie"
392     model: toolbar.button
393     pk: 44
394 -   fields:
395         accesskey: ''
396         group: [15]
397         label: "tytu\u0142 dzie\u0142a typ 1"
398         link: ''
399         params: '{"tag": "tytul_dziela", "attrs": {"typ": "1"}}'
400         scriptlet: insert_tag
401         slug: tytul-dziela-typ
402         tooltip: "tytu\u0142 dzie\u0142a w cytowanym tytule dzie\u0142a"
403     model: toolbar.button
404     pk: 45
405 -   fields:
406         accesskey: e
407         group: [15]
408         label: "s\u0142owo obce"
409         link: ''
410         params: '{"tag": "slowo_obce"}'
411         scriptlet: insert_tag
412         slug: slowo-obce
413         tooltip: "frazy w j\u0119zykach innych ni\u017C polski/definiendum w przypisie"
414     model: toolbar.button
415     pk: 46
416 -   fields:
417         accesskey: ''
418         group: [15]
419         label: matemat.
420         link: ''
421         params: '{"tag": "mat"}'
422         scriptlet: insert_tag
423         slug: matemat
424         tooltip: "wyra\u017Cenia matematyczne lub zmienne symboliczne"
425     model: toolbar.button
426     pk: 47
427 -   fields:
428         accesskey: ''
429         group: [15]
430         label: www
431         link: ''
432         params: '{"tag": "www"}'
433         scriptlet: insert_tag
434         slug: www
435         tooltip: ''
436     model: toolbar.button
437     pk: 48
438 -   fields:
439         accesskey: ''
440         group: [15]
441         label: indeks dolny
442         link: ''
443         params: '{"tag": "indeks_dolny"}'
444         scriptlet: insert_tag
445         slug: indeks-dolny
446         tooltip: ''
447     model: toolbar.button
448     pk: 49
449 -   fields:
450         accesskey: ''
451         group: [15]
452         label: "wi\u0119ksze odst\u0119py"
453         link: ''
454         params: '{"tag": "wieksze_odstepy"}'
455         scriptlet: insert_tag
456         slug: wieksze-odstepy
457         tooltip: "wi\u0119ksze odst\u0119py mi\u0119dzy s\u0142owami"
458     model: toolbar.button
459     pk: 50
460 -   fields:
461         accesskey: ''
462         group: [29]
463         label: uwaga
464         link: ''
465         params: '{"tag": "uwaga"}'
466         scriptlet: insert_tag
467         slug: uwaga
468         tooltip: 'uwagi redaktorsko-korektorskie '
469     model: toolbar.button
470     pk: 51
471 -   fields:
472         accesskey: ''
473         group: [16]
474         label: "\u015Bwiat\u0142o"
475         link: ''
476         params: '{"nocontent": "true", "tag": "sekcja_swiatlo"}'
477         scriptlet: insert_tag
478         slug: sep-swiatlo
479         tooltip: "\u015Bwiat\u0142o rozdzielaj\u0105ce sekcje tekstu"
480     model: toolbar.button
481     pk: 53
482 -   fields:
483         accesskey: ''
484         group: [16]
485         label: asterysk
486         link: ''
487         params: '{"nocontent": "true", "tag": "sekcja_asterysk"}'
488         scriptlet: insert_tag
489         slug: sep-asterysk
490         tooltip: rozdzielenie partii tekstu asteryskiem
491     model: toolbar.button
492     pk: 54
493 -   fields:
494         accesskey: ''
495         group: [16]
496         label: linia
497         link: ''
498         params: '{"nocontent": "true", "tag": "separator_linia"}'
499         scriptlet: insert_tag
500         slug: sep-linia
501         tooltip: "rozdzielenie partii tekstu pozioma lini\u0105"
502     model: toolbar.button
503     pk: 55
504 -   fields:
505         accesskey: ''
506         group: [16]
507         label: "zast\u0119pnik wersu"
508         link: ''
509         params: '{"tag": "zastepnik_wersu"}'
510         scriptlet: insert_tag
511         slug: zastepnik-wersu
512         tooltip: wykropkowanie wersu
513     model: toolbar.button
514     pk: 56
515 -   fields:
516         accesskey: ''
517         group: [12]
518         label: didaskalia
519         link: ''
520         params: '{"padding_top": 1, "padding_bottom": 2, "tag": "didaskalia"}'
521         scriptlet: insert_tag
522         slug: didaskalia
523         tooltip: ''
524     model: toolbar.button
525     pk: 62
526 -   fields:
527         accesskey: ''
528         group: [12]
529         label: didaskalia tekstowe
530         link: ''
531         params: '{"tag": "didask_tekst"}'
532         scriptlet: insert_tag
533         slug: didaskalia-tekstowe
534         tooltip: "didaskalia umieszczone w obr\u0119bie innego tekstu"
535     model: toolbar.button
536     pk: 63
537 -   fields:
538         accesskey: b
539         group: [12]
540         label: osoba
541         link: ''
542         params: '{"tag": "osoba"}'
543         scriptlet: insert_tag
544         slug: osoba
545         tooltip: "wstawia nazw\u0119 osoby w didaskaliach"
546     model: toolbar.button
547     pk: 64
548 -   fields:
549         accesskey: ''
550         group: [21]
551         label: "d\u0142ugi cyt. poet."
552         link: ''
553         params: '{"tag": "poezja_cyt"}'
554         scriptlet: insert_tag
555         slug: dlugi-cyt-poet
556         tooltip: "d\u0142ugi cytat wierszowany wyr\xF3\u017Cniony sk\u0142adem"
557     model: toolbar.button
558     pk: 67
559 -   fields:
560         accesskey: ''
561         group: [26]
562         label: przypis autorski
563         link: ''
564         params: '{"tag": "pa"}'
565         scriptlet: insert_tag
566         slug: przypis-autorski
567         tooltip: ''
568     model: toolbar.button
569     pk: 68
570 -   fields:
571         accesskey: ''
572         group: [26]
573         label: "przypis t\u0142umacza"
574         link: ''
575         params: '{"tag": "pt"}'
576         scriptlet: insert_tag
577         slug: przypis-tlumacza
578         tooltip: ''
579     model: toolbar.button
580     pk: 69
581 -   fields:
582         accesskey: ''
583         group: [26]
584         label: przypis redaktorski
585         link: ''
586         params: '{"tag": "pr"}'
587         scriptlet: insert_tag
588         slug: przypis-redaktorski
589         tooltip: ''
590     model: toolbar.button
591     pk: 70
592 -   fields:
593         accesskey: ''
594         group: [26]
595         label: przypis edytorski
596         link: ''
597         params: '{"tag": "pe"}'
598         scriptlet: insert_tag
599         slug: przypis-edytorski
600         tooltip: ''
601     model: toolbar.button
602     pk: 71
603 -   fields:
604         accesskey: ''
605         group: [21]
606         label: wywiad pytanie
607         link: ''
608         params: '{"tag": "wywiad_pyt"}'
609         scriptlet: insert_tag
610         slug: wywiad-pytanie
611         tooltip: ''
612     model: toolbar.button
613     pk: 72
614 -   fields:
615         accesskey: ''
616         group: [21]
617         label: "wywiad odpowied\u017A"
618         link: ''
619         params: '{"tag": "wywiad_odp"}'
620         scriptlet: insert_tag
621         slug: wywiad-odpowiedz
622         tooltip: ''
623     model: toolbar.button
624     pk: 73
625 -   fields:
626         accesskey: ''
627         group: [13, 22]
628         label: dedykacja
629         link: ''
630         params: '{"tag": "dedykacja"}'
631         scriptlet: insert_tag
632         slug: dedykacja
633         tooltip: ''
634     model: toolbar.button
635     pk: 74
636 -   fields:
637         accesskey: ''
638         group: [13, 22]
639         label: motto
640         link: ''
641         params: '{"padding_top": 1, "padding_bottom": 3, "tag": "motto"}'
642         scriptlet: insert_tag
643         slug: motto
644         tooltip: ''
645     model: toolbar.button
646     pk: 75
647 -   fields:
648         accesskey: u
649         group: [2]
650         label: "A<sup>\u2193</sup>"
651         link: ''
652         params: '[]'
653         scriptlet: lowercase
654         slug: tolowercase
655         tooltip: "Zamie\u0144 wielkie litery na ma\u0142e"
656     model: toolbar.button
657     pk: 76
658 -   fields:
659         accesskey: ''
660         group: [2]
661         label: "zamiana cudzys\u0142ow\xF3w 2"
662         link: ''
663         params: '{"exprs": [["\u00bb|\u201e", ",,"], ["\u00ab", "\""], ["([^=])\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
664             "$1,,$2"], ["^\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
665             ",,$1"], ["(,,)\\s+|\\s+(\")", "$1"]]}'
666         scriptlet: lineregexp
667         slug: cudzyslow-niemiecki
668         tooltip: "zamienia \" na ,, oraz \xBBa\xAB na ,,a\""
669     model: toolbar.button
670     pk: 77
671 -   fields:
672         accesskey: ''
673         group: [22]
674         label: 'typ osoby '
675         link: ''
676         params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba", "attrs":
677             {"typ": ""}}'
678         scriptlet: insert_tag
679         slug: lista-osob-pole
680         tooltip: osoby z takim samym opisem
681     model: toolbar.button
682     pk: 78
683 -   fields:
684         accesskey: ''
685         group: [22]
686         label: "didaskalia pocz\u0105tkowe"
687         link: ''
688         params: '{"padding_top": 1, "padding_bottom": 3, "tag": "miejsce_czas"}'
689         scriptlet: insert_tag
690         slug: didaskalia-poczatkowe
691         tooltip: "komentarze wprowadzaj\u0105ce przed tekstem dramatu"
692     model: toolbar.button
693     pk: 79
694 -   fields:
695         accesskey: s
696         group: [12, 17]
697         label: strofa
698         link: ''
699         params: '{"padding_top": 1, "padding_bottom": 3, "tag": "strofa"}'
700         scriptlet: insert_stanza
701         slug: strofa
702         tooltip: "wstawia strof\u0119"
703     model: toolbar.button
704     pk: 81
705 -   fields:
706         accesskey: k
707         group: [12]
708         label: kwestia
709         link: ''
710         params: '{"padding_top": 1, "padding_bottom": 1, "tag": "kwestia"}'
711         scriptlet: insert_tag
712         slug: kwestia
713         tooltip: "wstawia kwesti\u0119"
714     model: toolbar.button
715     pk: 82
716 -   fields:
717         accesskey: w
718         group: [12, 17]
719         label: "wers mocno wci\u0119ty"
720         link: ''
721         params: '{"tag": "wers_wciety", "attrs": {"typ": ""}}'
722         scriptlet: insert_tag
723         slug: wers-mocno-wciety
724         tooltip: "argumenty wersu wci\u0119tego: od 2 do 6"
725     model: toolbar.button
726     pk: 84
727 -   fields:
728         accesskey: ''
729         group: [12, 17]
730         label: wers cd.
731         link: ''
732         params: '{"tag": "wers_cd"}'
733         scriptlet: insert_tag
734         slug: wers-cd
735         tooltip: "cz\u0119\u015B\u0107 wersu przeniesiona do innego wiersza"
736     model: toolbar.button
737     pk: 85
738 -   fields:
739         accesskey: ''
740         group: [12, 17]
741         label: wers do prawej
742         link: ''
743         params: '{"tag": "wers_do_prawej"}'
744         scriptlet: insert_tag
745         slug: wers-do-prawej
746         tooltip: "wers wyr\xf3wnany do prawej"
747     model: toolbar.button
748     pk: 109
749 -   fields:
750         accesskey: ''
751         group: []
752         label: Wydrukuj
753         link: print/xml
754         params: '[]'
755         scriptlet: insert_tag
756         slug: print-xml
757         tooltip: ''
758     model: toolbar.button
759     pk: 86
760 -   fields:
761         accesskey: ''
762         group: []
763         label: Wydrukuj
764         link: print/html
765         params: '[]'
766         scriptlet: insert_tag
767         slug: htmleditor-print
768         tooltip: ''
769     model: toolbar.button
770     pk: 87
771 -   fields:
772         accesskey: ''
773         group: [2]
774         label: "zamiana cudzys\u0142ow\xF3w 1"
775         link: ''
776         params: '{"exprs": [["\u00ab|\u201e", ",,"], ["\u00bb", "\""], ["([^=])\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
777             "$1,,$2"], ["^\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])",
778             ",,$1"], ["(,,)\\s+|\\s+(\")", "$1"]]}'
779         scriptlet: lineregexp
780         slug: cudzyslow-francuski
781         tooltip: "zamiana \" na ,, oraz  \xABa\xBB na ,,a\""
782     model: toolbar.button
783     pk: 89
784 -   fields:
785         accesskey: q
786         group: [12, 17]
787         label: "wers wci\u0119ty"
788         link: ''
789         params: '{"tag": "wers_wciety", "attrs": {"typ": "1"}}'
790         scriptlet: insert_tag
791         slug: wers-wciety
792         tooltip: "wstawia wers wci\u0119ty"
793     model: toolbar.button
794     pk: 91
795 -   fields:
796         accesskey: r
797         group: [15]
798         label: "tytu\u0142 dzie\u0142a"
799         link: ''
800         params: '{"tag": "tytul_dziela"}'
801         scriptlet: insert_tag
802         slug: tytul-dziela
803         tooltip: ''
804     model: toolbar.button
805     pk: 92
806 -   fields:
807         accesskey: ''
808         group: [22]
809         label: "lista os\xF3b"
810         link: ''
811         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "lista_osob"}'
812         scriptlet: insert_tag
813         slug: lista-osob
814         tooltip: "lista os\xF3b poprzedzaj\u0105ca tekst dramatu"
815     model: toolbar.button
816     pk: 93
817 -   fields:
818         accesskey: ''
819         group: [22]
820         label: "nag\u0142\xF3wek listy"
821         link: ''
822         params: '{"padding_top": 1, "padding_bottom": 2, "tag": "naglowek_listy"}'
823         scriptlet: insert_tag
824         slug: naglowek-listy
825         tooltip: "nag\u0142\xF3wek listy os\xF3b"
826     model: toolbar.button
827     pk: 94
828 -   fields:
829         accesskey: ''
830         group: [22]
831         label: osoba na liscie
832         link: ''
833         params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba"}'
834         scriptlet: insert_tag
835         slug: osoba-na-liscie
836         tooltip: "nazwa osoby na liscie os\xF3b"
837     model: toolbar.button
838     pk: 95
839 -   fields:
840         accesskey: ''
841         group: []
842         label: extra
843         link: ''
844         params: '{"tag": "extra"}'
845         scriptlet: insert_tag
846         slug: extra
847         tooltip: "uwagi dotycz\u0105ce sk\u0142adu"
848     model: toolbar.button
849     pk: 96
850 -   fields:
851         accesskey: ''
852         group: [28]
853         label: akapity
854         link: ''
855         params: '{"tag": "akap"}'
856         scriptlet: autotag
857         slug: akapity
858         tooltip: "autotagowanie akapit\xF3w"
859     model: toolbar.button
860     pk: 97
861 -   fields:
862         accesskey: ''
863         group: [28]
864         label: strofy
865         link: ''
866         params: '{"tag": "strofa"}'
867         scriptlet: autotag
868         slug: strofy
869         tooltip: autotagowanie strof
870     model: toolbar.button
871     pk: 99
872 -   fields:
873         accesskey: ''
874         group: [28]
875         label: "wersy wci\u0119te"
876         link: ''
877         params: '{"padding": 1, "tag": "wers_wciety", "split": 1}'
878         scriptlet: autotag
879         slug: wersy-wciete
880         tooltip: "autotagowanie wers\xF3w wci\u0119tych"
881     model: toolbar.button
882     pk: 100
883 -   fields:
884         accesskey: g
885         group: [12]
886         label: kwestioakapit
887         link: ''
888         params: '[["insert_tag", {"tag": "akap"}], ["insert_tag", {"padding_top":
889             1, "padding_bottom": 1, "tag": "kwestia"}]]'
890         scriptlet: macro
891         slug: kwestioakapit
892         tooltip: ''
893     model: toolbar.button
894     pk: 101
895 -   fields:
896         accesskey: ''
897         group: [12]
898         label: kwestiostrofa
899         link: ''
900         params: '[["insert_stanza", {"tag": "strofa"}], ["insert_tag", {"padding_top":
901             1, "padding_bottom": 1, "tag": "kwestia"}]]'
902         scriptlet: macro
903         slug: kwestiostrofa
904         tooltip: ''
905     model: toolbar.button
906     pk: 102
907 -   fields:
908         accesskey: ''
909         group: [28]
910         label: "nag\u0142. dramatu"
911         link: ''
912         params: '{"exprs": [["^AKT(\\s\\w*)$", "<naglowek_akt>AKT$1</naglowek_akt>"],
913             ["^SCENA(\\s\\w*)$", "<naglowek_scena>SCENA$1</naglowek_scena>"], ["([A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179]{2}[A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179\\s]+)$",
914             "<naglowek_osoba>$1</naglowek_osoba>"]]}'
915         scriptlet: lineregexp
916         slug: nagl-dramatu
917         tooltip: "autotagowanie akt\xF3w, scen, nag\u0142\xF3wk\xF3w os\xF3b"
918     model: toolbar.button
919     pk: 103
920 -   fields:
921         accesskey: x
922         group: [13]
923         label: nota red.
924         link: ''
925         params: '{"padding_top": 1, "padding_bottom": 3, "tag": "nota_red"}'
926         scriptlet: insert_tag
927         slug: nota-red
928         tooltip: nota redakcyjna
929     model: toolbar.button
930     pk: 104
931 -   fields:
932         accesskey: ''
933         group: [2]
934         label: slug
935         link: ''
936         params: '[]'
937         scriptlet: slugify
938         slug: slug
939         tooltip: slugifikacja
940     model: toolbar.button
941     pk: 105
942 -   fields:
943         accesskey: ''
944         group: [11]
945         label: trim begin
946         link: ''
947         params: '{"text": "\n<!-- TRIM_BEGIN -->\n"}'
948         scriptlet: insert_text
949         slug: trim-begin
950         tooltip: "Wstawia pocz\u0105tkowy znacznik ci\u0119cia cz\u0119\u015Bci"
951     model: toolbar.button
952     pk: 106
953 -   fields:
954         accesskey: ''
955         group: [11]
956         label: trim end
957         link: ''
958         params: '{"text": "\n<!-- TRIM_END -->\n"}'
959         scriptlet: insert_text
960         slug: trim-end
961         tooltip: "Wstawia ko\u0144cowy znacznik ci\u0119cia cz\u0119\u015Bci"
962     model: toolbar.button
963     pk: 107
964 -   fields:
965         accesskey: ''
966         group: [11]
967         label: etap
968         link: ''
969         params: '{"tag": "developmentStage"}'
970         scriptlet: insert_tag
971         slug: etap
972         tooltip: "wymaga uwsp\xF3\u0142czesnienia: 0.3"
973     model: toolbar.button
974     pk: 108
975 -   fields: {code: '-'}
976     model: toolbar.scriptlet
977     pk: autotag
978 -   fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
979             \ '', -1);\n$.log(editor, panel, params);\nvar cm = panel.texteditor;\n\
980             var exprs = $.map(params.exprs, function(expr) {\n    var opts = \"mg\"\
981             ;\n    if(expr.length > 2)\n        opts = expr[2];\n\n    return {rx:\
982             \ new RegExp(expr[0], opts), repl: expr[1]};\n});\n\nvar partial = true;\n\
983             var text = cm.selection();\n\nif(!text) {\n    var cpos = cm.cursorPosition();\n\
984             \    cpos.line = cm.lineNumber(cpos.line)\n    cm.selectLines(cm.firstLine(),\
985             \ 0, cm.lastLine(), 0);\n\n    text = cm.selection();\n    partial = false;\n\
986             }\n\nvar original = text;\n$(exprs).each(function() { \n    text = text.replace(this.rx,\
987             \ this.repl);\n});\n\nif( original != text) \n{    \n    cm.replaceSelection(text);\n\
988             \    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes',\
989             \ 'Zmieniono tekst' );\n    editor.advancePopupQueue();\n}\nelse {\n \
990             \   editor.showPopup('generic-info', 'Brak zmian w tek\u015Bcie.');\n\
991             \    editor.advancePopupQueue();\n}\n\nif(!partial) {\n    cm.selectLines(\
992             \ cm.nthLine(cpos.line), cpos.character );\n}"}
993     model: toolbar.scriptlet
994     pk: fulltextregexp
995 -   fields: {code: "var texteditor = panel.texteditor;\r\nvar text = texteditor.selection();\r\
996             \n\r\nif(text) {\r\n  var verses = text.split('\\n');\r\n  var text =\
997             \ ''; var buf = ''; var ebuf = '';\r\n  var first = true;\r\n\r\n  for(var\
998             \ i=0;  i < verses.length; i++) {\r\n    verse = verses[i].replace(/^\\\
999             s+/, \"\").replace(/\\s+$/, \"\");   \r\n    if(verse) {\r\n      text\
1000             \ += (buf ? buf + '/\\n' : '') + ebuf;\r\n      buf = (first ? '<strofa>\\\
1001             n' : '') + verses[i];\r\n      ebuf = '';\r\n      first = false;\r\n\
1002             \    } else {    \r\n      ebuf += '\\n' + verses[i];\r\n    }\r\n  };\r\
1003             \n  text = text + buf + '\\n</strofa>' + ebuf; \r\n  texteditor.replaceSelection(text);\r\
1004             \n}\r\n\r\nif (!text) {\r\n    var pos = texteditor.cursorPosition();\r\
1005             \n    texteditor.selectLines(pos.line, pos.character + 6 + 2);\r\n}\r\n\
1006             \r\n\r\n\r\n\r\n\r\n\r\n\r\npanel.fireEvent('contentChanged');"}
1007     model: toolbar.scriptlet
1008     pk: insert_stanza
1009 -   fields: {code: "var texteditor = panel.texteditor;\nvar text = texteditor.selection();\n\
1010             var start_tag = '<'+params.tag;\nfor (var attr in params.attrs) {\n  \
1011             \  start_tag += ' '+attr+'=\"' + params.attrs[attr] + '\"';\n};\nstart_tag\
1012             \ += '>';\nvar end_tag = '</'+params.tag+'>';\n\nif(text.length > 0) {\n\
1013             // tokenize\nvar output = ''\nvar token = ''\nfor(var index=0; index <\
1014             \ text.length; index++)\n{\n    if (text[index].match(/\\s/)) { // whitespace\n\
1015             \        token += text[index];\n    }\n    else { // character\n     \
1016             \   output += token;\n        if(output == token) output += start_tag;\n\
1017             \        token = ''\n        output += text[index];\n    }\n}\n\nif( output[output.length-1]\
1018             \ == '\\\\' ) {\n    output = output.substr(0, output.length-1) + end_tag\
1019             \ + '\\\\';\n} else {\n    output += end_tag;\n}\noutput += token;\n}\n\
1020             else {\n output = start_tag + end_tag;\n}\n\ntexteditor.replaceSelection(output);\n\
1021             \nif (text.length == 0) {\n    var pos = texteditor.cursorPosition();\n\
1022             \    texteditor.selectLines(pos.line, pos.character + params.tag.length\
1023             \ + 2);\n}\n\npanel.fireEvent('contentChanged');"}
1024     model: toolbar.scriptlet
1025     pk: insert_tag
1026 -   fields: {code: '-'}
1027     model: toolbar.scriptlet
1028     pk: insert_text
1029 -   fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
1030             \ '', -1);\n\nvar cm = panel.texteditor;\nvar exprs = $.map(params.exprs,\
1031             \ function(expr) {\n\n    var opts = \"g\";\n\n    if(expr.length > 2)\n\
1032             \n        opts = expr[2];\n\n    return {rx: new RegExp(expr[0], opts),\
1033             \ repl: expr[1]};\n\n});\n\n\n\nvar partial = true;\n\nvar text = cm.selection();\n\
1034             \n\n\nif(!text) {\n\n    var cpos = cm.cursorPosition();\n\n    cpos.line\
1035             \ = cm.lineNumber(cpos.line)\n\n    cm.selectLines(cm.firstLine(), 0,\
1036             \ cm.lastLine(), 0);\n\n    text = cm.selection();\n\n    partial = false;\n\
1037             \n}\n\n\n\nvar changed = 0;\nvar lines = text.split('\\n');\nvar lines\
1038             \ = $.map(lines, function(line) { \n    var old_line = line;\n    $(exprs).each(function()\
1039             \ { \n        var expr = this;\n        line = line.replace(expr.rx, expr.repl);\n\
1040             \    });\n\n    if(old_line != line) changed += 1;\n    return line;\n\
1041             });\n\nif(changed > 0) \n{\n    cm.replaceSelection( lines.join('\\n')\
1042             \ );\n    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes',\
1043             \ 'Zmieniono ' + changed + ' linii.', 1500);\n    editor.advancePopupQueue();\n\
1044             }\nelse {\n    editor.showPopup('generic-info',  'Brak zmian w tek\u015B\
1045             cie', 1500);\n    editor.advancePopupQueue();\n}\n\nif(!partial)\n   \
1046             \ cm.selectLines( cm.nthLine(cpos.line), cpos.character )"}
1047     model: toolbar.scriptlet
1048     pk: lineregexp
1049 -   fields: {code: "var cm = panel.texteditor;\r\nvar text = cm.selection();\r\n\r\
1050             \nif(!text) return;\r\nvar repl = '';\r\nvar lcase = text.toLowerCase();\r\
1051             \nvar ucase = text.toUpperCase();\r\n\r\nif(lcase == text) repl = ucase;\
1052             \ /* was lowercase */\r\nelse if(ucase != text) repl = lcase; /* neither\
1053             \ lower- or upper-case */\r\nelse { /* upper case -> title-case */\r\n\
1054             \   var words = $(lcase.split(/\\s/)).map(function() { \r\n        if(this.length\
1055             \ > 0) { return this[0].toUpperCase() + this.slice(1); } else { return\
1056             \ ''}\r\n   }); \r\n   repl = words.join(' ');\r\n} \r\n\r\nif(repl !=\
1057             \ text) {\r\n    cm.replaceSelection(repl);\r\n    panel.fireEvent('contentChanged');\r\
1058             \n};"}
1059     model: toolbar.scriptlet
1060     pk: lowercase
1061 -   fields: {code: "$(params).each(function() {\n    $.log(this[0], this[1]);\n  \
1062             \  editor.callScriptlet(this[0], panel, this[1]);\n\n});"}
1063     model: toolbar.scriptlet
1064     pk: macro
1065 -   fields: {code: '-'}
1066     model: toolbar.scriptlet
1067     pk: slugify