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