fixes #953: Leave users' whitespace alone. I'm serious!
[redakcja.git] / apps / toolbar / fixtures / initial_data.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 cyt. poet."
213         link: ''
214         params: '{"tag": "poezja_cyt"}'
215         scriptlet: insert_tag
216         slug: dlugi-cyt-poet
217         tooltip: "d\u0142ugi cytat wierszowany wyr\xF3\u017Cniony sk\u0142adem"
218     model: toolbar.button
219     pk: 67
220 -   fields:
221         accesskey: ''
222         group: [21]
223         label: "d\u0142ugi cytat"
224         link: ''
225         params: '{"tag": "dlugi_cyt"}'
226         scriptlet: insert_tag
227         slug: dlugi-cytat
228         tooltip: "d\u0142ugi cytat wyr\xF3\u017Cniony sk\u0142adem"
229     model: toolbar.button
230     pk: 42
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: [2]
424         label: ",,\u2026\" na \xBB\u2026\xAB"
425         link: ''
426         params: '{"exprs": [[",,", "\u00bb"], ["\"", "\u00ab"]]}'
427         scriptlet: fulltextregexp
428         slug: na-niemieckie
429         tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na niemieckie"
430     model: toolbar.button
431     pk: 3
432 -   fields:
433         accesskey: ''
434         group: [28]
435         label: "nag\u0142. dramatu"
436         link: ''
437         params: '{"exprs": [["^AKT(\\s\\w*)$", "<naglowek_akt>AKT$1</naglowek_akt>"],
438             ["^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]+)$",
439             "<naglowek_osoba>$1</naglowek_osoba>"]]}'
440         scriptlet: lineregexp
441         slug: nagl-dramatu
442         tooltip: "autotagowanie akt\xF3w, scen, nag\u0142\xF3wk\xF3w os\xF3b"
443     model: toolbar.button
444     pk: 103
445 -   fields:
446         accesskey: ''
447         group: [12]
448         label: "nag\u0142\xF3wek kwestii"
449         link: ''
450         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_osoba"}'
451         scriptlet: insert_tag
452         slug: naglowek-kwestii
453         tooltip: "nag\u0142\xF3wek kwestii - nazwa osoby"
454     model: toolbar.button
455     pk: 16
456 -   fields:
457         accesskey: ''
458         group: [22]
459         label: "nag\u0142\xF3wek listy"
460         link: ''
461         params: '{"padding_top": 1, "padding_bottom": 2, "tag": "naglowek_listy"}'
462         scriptlet: insert_tag
463         slug: naglowek-listy
464         tooltip: "nag\u0142\xF3wek listy os\xF3b"
465     model: toolbar.button
466     pk: 94
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: [11]
492         label: opowiadanie
493         link: ''
494         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "opowiadanie"}'
495         scriptlet: insert_tag
496         slug: opowiadanie
497         tooltip: ''
498     model: toolbar.button
499     pk: 18
500 -   fields:
501         accesskey: b
502         group: [12]
503         label: osoba
504         link: ''
505         params: '{"tag": "osoba"}'
506         scriptlet: insert_tag
507         slug: osoba
508         tooltip: "wstawia nazw\u0119 osoby w didaskaliach"
509     model: toolbar.button
510     pk: 64
511 -   fields:
512         accesskey: ''
513         group: [22]
514         label: osoba na liscie
515         link: ''
516         params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba"}'
517         scriptlet: insert_tag
518         slug: osoba-na-liscie
519         tooltip: "nazwa osoby na liscie os\xF3b"
520     model: toolbar.button
521     pk: 95
522 -   fields:
523         accesskey: ''
524         group: [1]
525         label: "podrozdzia\u0142"
526         link: ''
527         params: '{"tag": "naglowek_podrozdzial"}'
528         scriptlet: insert_tag
529         slug: podrozdzial
530         tooltip: ''
531     model: toolbar.button
532     pk: 12
533 -   fields:
534         accesskey: ''
535         group: [1]
536         label: "podtytu\u0142"
537         link: ''
538         params: '{"tag": "podtytul"}'
539         scriptlet: insert_tag
540         slug: podtytul
541         tooltip: ''
542     model: toolbar.button
543     pk: 34
544 -   fields:
545         accesskey: ''
546         group: [11]
547         label: "powie\u015B\u0107"
548         link: ''
549         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "powiesc"}'
550         scriptlet: insert_tag
551         slug: powiesc
552         tooltip: ''
553     model: toolbar.button
554     pk: 19
555 -   fields:
556         accesskey: ''
557         group: []
558         label: Wydrukuj
559         link: print/xml
560         params: '[]'
561         scriptlet: insert_tag
562         slug: print-xml
563         tooltip: ''
564     model: toolbar.button
565     pk: 86
566 -   fields:
567         accesskey: ''
568         group: [26]
569         label: przypis autorski
570         link: ''
571         params: '{"tag": "pa"}'
572         scriptlet: insert_tag
573         slug: przypis-autorski
574         tooltip: ''
575     model: toolbar.button
576     pk: 68
577 -   fields:
578         accesskey: ''
579         group: [26]
580         label: przypis edytorski
581         link: ''
582         params: '{"tag": "pe"}'
583         scriptlet: insert_tag
584         slug: przypis-edytorski
585         tooltip: ''
586     model: toolbar.button
587     pk: 71
588 -   fields:
589         accesskey: ''
590         group: [26]
591         label: przypis redaktorski
592         link: ''
593         params: '{"tag": "pr"}'
594         scriptlet: insert_tag
595         slug: przypis-redaktorski
596         tooltip: ''
597     model: toolbar.button
598     pk: 70
599 -   fields:
600         accesskey: ''
601         group: [26]
602         label: "przypis t\u0142umacza"
603         link: ''
604         params: '{"tag": "pt"}'
605         scriptlet: insert_tag
606         slug: przypis-tlumacza
607         tooltip: ''
608     model: toolbar.button
609     pk: 69
610 -   fields:
611         accesskey: ''
612         group: [1]
613         label: "rozdzia\u0142"
614         link: ''
615         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_rozdzial"}'
616         scriptlet: insert_tag
617         slug: rozdzial
618         tooltip: ''
619     model: toolbar.button
620     pk: 11
621 -   fields:
622         accesskey: ''
623         group: [1]
624         label: scena
625         link: ''
626         params: '{"tag": "naglowek_scena"}'
627         scriptlet: insert_tag
628         slug: scena
629         tooltip: ''
630     model: toolbar.button
631     pk: 15
632 -   fields:
633         accesskey: ''
634         group: [16]
635         label: asterysk
636         link: ''
637         params: '{"nocontent": "true", "tag": "sekcja_asterysk"}'
638         scriptlet: insert_tag
639         slug: sep-asterysk
640         tooltip: rozdzielenie partii tekstu asteryskiem
641     model: toolbar.button
642     pk: 54
643 -   fields:
644         accesskey: ''
645         group: [16]
646         label: linia
647         link: ''
648         params: '{"nocontent": "true", "tag": "separator_linia"}'
649         scriptlet: insert_tag
650         slug: sep-linia
651         tooltip: "rozdzielenie partii tekstu pozioma lini\u0105"
652     model: toolbar.button
653     pk: 55
654 -   fields:
655         accesskey: ''
656         group: [16]
657         label: "\u015Bwiat\u0142o"
658         link: ''
659         params: '{"nocontent": "true", "tag": "sekcja_swiatlo"}'
660         scriptlet: insert_tag
661         slug: sep-swiatlo
662         tooltip: "\u015Bwiat\u0142o rozdzielaj\u0105ce sekcje tekstu"
663     model: toolbar.button
664     pk: 53
665 -   fields:
666         accesskey: ''
667         group: [15]
668         label: "s\u0142owo obce"
669         link: ''
670         params: '{"tag": "slowo_obce"}'
671         scriptlet: insert_tag
672         slug: slowo-obce
673         tooltip: "frazy w j\u0119zykach innych ni\u017C polski/definiendum w przypisie"
674     model: toolbar.button
675     pk: 46
676 -   fields:
677         accesskey: ''
678         group: [1]
679         label: "\u015Br\xF3dtytu\u0142"
680         link: ''
681         params: '{"tag": "srodtytul"}'
682         scriptlet: insert_tag
683         slug: srodtytul
684         tooltip: ''
685     model: toolbar.button
686     pk: 13
687 -   fields:
688         accesskey: s
689         group: [12, 17]
690         label: strofa
691         link: ''
692         params: '{"padding_top": 1, "padding_bottom": 3, "tag": "strofa"}'
693         scriptlet: insert_stanza
694         slug: strofa
695         tooltip: "wstawia strof\u0119"
696     model: toolbar.button
697     pk: 81
698 -   fields:
699         accesskey: ''
700         group: [28]
701         label: strofy
702         link: ''
703         params: '{"tag": "strofa"}'
704         scriptlet: autotag
705         slug: strofy
706         tooltip: autotagowanie strof
707     model: toolbar.button
708     pk: 99
709 -   fields:
710         accesskey: ''
711         group: [11]
712         label: "tag g\u0142\xF3wny"
713         link: ''
714         params: '{"tag": "utwor"}'
715         scriptlet: insert_tag
716         slug: tag-glowny
717         tooltip: ''
718     model: toolbar.button
719     pk: 17
720 -   fields:
721         accesskey: u
722         group: [2]
723         label: "A<sup>\u2193</sup>"
724         link: ''
725         params: '[]'
726         scriptlet: lowercase
727         slug: tolowercase
728         tooltip: "Zamie\u0144 wielkie litery na ma\u0142e"
729     model: toolbar.button
730     pk: 76
731 -   fields:
732         accesskey: ''
733         group: [15]
734         label: "tytu\u0142 dzie\u0142a"
735         link: ''
736         params: '{"tag": "tytul_dziela"}'
737         scriptlet: insert_tag
738         slug: tytul-dziela
739         tooltip: ''
740     model: toolbar.button
741     pk: 92
742 -   fields:
743         accesskey: ''
744         group: [15]
745         label: "tytu\u0142 dzie\u0142a typ 1"
746         link: ''
747         params: '{"tag": "tytul_dziela", "attrs": {"typ": "1"}}'
748         scriptlet: insert_tag
749         slug: tytul-dziela-typ
750         tooltip: "tytu\u0142 dzie\u0142a w cytowanym tytule dzie\u0142a"
751     model: toolbar.button
752     pk: 45
753 -   fields:
754         accesskey: ''
755         group: [29]
756         label: uwaga
757         link: ''
758         params: '{"tag": "uwaga"}'
759         scriptlet: insert_tag
760         slug: uwaga
761         tooltip: 'uwagi redaktorsko-korektorskie '
762     model: toolbar.button
763     pk: 51
764 -   fields:
765         accesskey: ''
766         group: [14, 17]
767         label: wers akap.
768         link: ''
769         params: '{"tag": "wers_akap"}'
770         scriptlet: insert_tag
771         slug: wers-akap
772         tooltip: "wers rozpoczynaj\u0105cy si\u0119 wci\u0119ciem akapitowym"
773     model: toolbar.button
774     pk: 83
775 -   fields:
776         accesskey: ''
777         group: [12, 17]
778         label: wers cd.
779         link: ''
780         params: '{"tag": "wers_cd"}'
781         scriptlet: insert_tag
782         slug: wers-cd
783         tooltip: "cz\u0119\u015B\u0107 wersu przeniesiona do innego wiersza"
784     model: toolbar.button
785     pk: 85
786 -   fields:
787         accesskey: w
788         group: [12, 17]
789         label: "wers mocno wci\u0119ty"
790         link: ''
791         params: '{"tag": "wers_wciety", "attrs": {"typ": ""}}'
792         scriptlet: insert_tag
793         slug: wers-mocno-wciety
794         tooltip: "argumenty wersu wci\u0119tego: od 2 do 6"
795     model: toolbar.button
796     pk: 84
797 -   fields:
798         accesskey: q
799         group: [12, 17]
800         label: "wers wci\u0119ty"
801         link: ''
802         params: '{"tag": "wers_wciety", "attrs": {"typ": "1"}}'
803         scriptlet: insert_tag
804         slug: wers-wciety
805         tooltip: "wstawia wers wci\u0119ty"
806     model: toolbar.button
807     pk: 91
808 -   fields:
809         accesskey: ''
810         group: [28]
811         label: "wersy wci\u0119te"
812         link: ''
813         params: '{"padding": 1, "tag": "wers_wciety", "split": 1}'
814         scriptlet: autotag
815         slug: wersy-wciete
816         tooltip: "autotagowanie wers\xF3w wci\u0119tych"
817     model: toolbar.button
818     pk: 100
819 -   fields:
820         accesskey: ''
821         group: [15]
822         label: www
823         link: ''
824         params: '{"tag": "www"}'
825         scriptlet: insert_tag
826         slug: www
827         tooltip: ''
828     model: toolbar.button
829     pk: 48
830 -   fields:
831         accesskey: ''
832         group: [12, 15]
833         label: "wyr\xF3\u017Cnienie"
834         link: ''
835         params: '{"tag": "wyroznienie"}'
836         scriptlet: insert_tag
837         slug: wyroznienie
838         tooltip: "wyr\xF3\u017Cnienie autorskie"
839     model: toolbar.button
840     pk: 44
841 -   fields:
842         accesskey: ''
843         group: [11]
844         label: wywiad
845         link: ''
846         params: '{"padding_top": 1, "padding_bottom": 4, "tag": "wywiad"}'
847         scriptlet: insert_tag
848         slug: wywiad
849         tooltip: ''
850     model: toolbar.button
851     pk: 25
852 -   fields:
853         accesskey: ''
854         group: [21]
855         label: "wywiad odpowied\u017A"
856         link: ''
857         params: '{"tag": "wywiad_odp"}'
858         scriptlet: insert_tag
859         slug: wywiad-odpowiedz
860         tooltip: ''
861     model: toolbar.button
862     pk: 73
863 -   fields:
864         accesskey: ''
865         group: [21]
866         label: wywiad pytanie
867         link: ''
868         params: '{"tag": "wywiad_pyt"}'
869         scriptlet: insert_tag
870         slug: wywiad-pytanie
871         tooltip: ''
872     model: toolbar.button
873     pk: 72
874 -   fields:
875         accesskey: ''
876         group: [16]
877         label: "zast\u0119pnik wersu"
878         link: ''
879         params: '{"tag": "zastepnik_wersu"}'
880         scriptlet: insert_tag
881         slug: zastepnik-wersu
882         tooltip: wykropkowanie wersu
883     model: toolbar.button
884     pk: 56
885 -   fields: {code: "$(params).each(function() {\n    $.log(this[0], this[1]);\n  \
886             \  editor.callScriptlet(this[0], panel, this[1]);\n\n});"}
887     model: toolbar.scriptlet
888     pk: macro
889 -   fields: {code: "var texteditor = panel.texteditor;\nvar text = texteditor.selection();\n\
890             var start_tag = '<'+params.tag;\nfor (var attr in params.attrs) {\n  \
891             \  start_tag += ' '+attr+'=\"' + params.attrs[attr] + '\"';\n};\nstart_tag\
892             \ += '>';\nvar end_tag = '</'+params.tag+'>';\n\nif(text.length > 0) {\n\
893             // tokenize\nvar output = ''\nvar token = ''\nfor(var index=0; index <\
894             \ text.length; index++)\n{\n    if (text[index].match(/\\s/)) { // whitespace\n\
895             \        token += text[index];\n    }\n    else { // character\n     \
896             \   output += token;\n        if(output == token) output += start_tag;\n\
897             \        token = ''\n        output += text[index];\n    }\n}\n\nif( output[output.length-1]\
898             \ == '\\\\' ) {\n    output = output.substr(0, output.length-1) + end_tag\
899             \ + '\\\\';\n} else {\n    output += end_tag;\n}\noutput += token;\n}\n\
900             else {\n output = start_tag + end_tag;\n}\n\ntexteditor.replaceSelection(output);\n\
901             \nif (text.length == 0) {\n    var pos = texteditor.cursorPosition();\n\
902             \    texteditor.selectLines(pos.line, pos.character + params.tag.length\
903             \ + 2);\n}\n\npanel.fireEvent('contentChanged');"}
904     model: toolbar.scriptlet
905     pk: insert_tag
906 -   fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
907             \ '', -1);\n\nvar cm = panel.texteditor;\nvar exprs = $.map(params.exprs,\
908             \ function(expr) {\n\n    var opts = \"g\";\n\n    if(expr.length > 2)\n\
909             \n        opts = expr[2];\n\n    return {rx: new RegExp(expr[0], opts),\
910             \ repl: expr[1]};\n\n});\n\n\n\nvar partial = true;\n\nvar text = cm.selection();\n\
911             \n\n\nif(!text) {\n\n    var cpos = cm.cursorPosition();\n\n    cpos.line\
912             \ = cm.lineNumber(cpos.line)\n\n    cm.selectLines(cm.firstLine(), 0,\
913             \ cm.lastLine(), 0);\n\n    text = cm.selection();\n\n    partial = false;\n\
914             \n}\n\n\n\nvar changed = 0;\nvar lines = text.split('\\n');\nvar lines\
915             \ = $.map(lines, function(line) { \n    var old_line = line;\n    $(exprs).each(function()\
916             \ { \n        var expr = this;\n        line = line.replace(expr.rx, expr.repl);\n\
917             \    });\n\n    if(old_line != line) changed += 1;\n    return line;\n\
918             });\n\nif(changed > 0) \n{\n    cm.replaceSelection( lines.join('\\n')\
919             \ );\n    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes',\
920             \ 'Zmieniono ' + changed + ' linii.', 1500);\n    editor.advancePopupQueue();\n\
921             }\nelse {\n    editor.showPopup('generic-info',  'Brak zmian w tek\u015B\
922             cie', 1500);\n    editor.advancePopupQueue();\n}\n\nif(!partial)\n   \
923             \ cm.selectLines( cm.nthLine(cpos.line), cpos.character )"}
924     model: toolbar.scriptlet
925     pk: lineregexp
926 -   fields: {code: '-'}
927     model: toolbar.scriptlet
928     pk: autotag
929 -   fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
930             \ '', -1);\n$.log(editor, panel, params);\nvar cm = panel.texteditor;\n\
931             var exprs = $.map(params.exprs, function(expr) {\n    var opts = \"mg\"\
932             ;\n    if(expr.length > 2)\n        opts = expr[2];\n\n    return {rx:\
933             \ new RegExp(expr[0], opts), repl: expr[1]};\n});\n\nvar partial = true;\n\
934             var text = cm.selection();\n\nif(!text) {\n    var cpos = cm.cursorPosition();\n\
935             \    cpos.line = cm.lineNumber(cpos.line)\n    cm.selectLines(cm.firstLine(),\
936             \ 0, cm.lastLine(), 0);\n\n    text = cm.selection();\n    partial = false;\n\
937             }\n\nvar original = text;\n$(exprs).each(function() { \n    text = text.replace(this.rx,\
938             \ this.repl);\n});\n\nif( original != text) \n{    \n    cm.replaceSelection(text);\n\
939             \    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes',\
940             \ 'Zmieniono tekst' );\n    editor.advancePopupQueue();\n}\nelse {\n \
941             \   editor.showPopup('generic-info', 'Brak zmian w tek\u015Bcie.');\n\
942             \    editor.advancePopupQueue();\n}\n\nif(!partial) {\n    cm.selectLines(\
943             \ cm.nthLine(cpos.line), cpos.character );\n}"}
944     model: toolbar.scriptlet
945     pk: fulltextregexp
946 -   fields: {code: "var cm = panel.texteditor;\r\nvar text = cm.selection();\r\n\r\
947             \nif(!text) return;\r\nvar repl = '';\r\nvar lcase = text.toLowerCase();\r\
948             \nvar ucase = text.toUpperCase();\r\n\r\nif(lcase == text) repl = ucase;\
949             \ /* was lowercase */\r\nelse if(ucase != text) repl = lcase; /* neither\
950             \ lower- or upper-case */\r\nelse { /* upper case -> title-case */\r\n\
951             \   var words = $(lcase.split(/\\s/)).map(function() { \r\n        if(this.length\
952             \ > 0) { return this[0].toUpperCase() + this.slice(1); } else { return\
953             \ ''}\r\n   }); \r\n   repl = words.join(' ');\r\n} \r\n\r\nif(repl !=\
954             \ text) {\r\n    cm.replaceSelection(repl);\r\n    panel.fireEvent('contentChanged');\r\
955             \n};"}
956     model: toolbar.scriptlet
957     pk: lowercase
958 -   fields: {code: "var texteditor = panel.texteditor;\r\nvar text = texteditor.selection();\r\
959             \n\r\nif(text) {\r\n  var verses = text.split('\\n');\r\n  var text =\
960             \ ''; var buf = ''; var ebuf = '';\r\n  var first = true;\r\n\r\n  for(var\
961             \ i=0;  i < verses.length; i++) {\r\n    verse = verses[i].replace(/^\\\
962             s+/, \"\").replace(/\\s+$/, \"\");   \r\n    if(verse) {\r\n      text\
963             \ += (buf ? buf + '/\\n' : '') + ebuf;\r\n      buf = (first ? '<strofa>\\\
964             n' : '') + verses[i];\r\n      ebuf = '';\r\n      first = false;\r\n\
965             \    } else {    \r\n      ebuf += '\\n' + verses[i];\r\n    }\r\n  };\r\
966             \n  text = text + buf + '\\n</strofa>' + ebuf; \r\n  texteditor.replaceSelection(text);\r\
967             \n}\r\n\r\nif (!text) {\r\n    var pos = texteditor.cursorPosition();\r\
968             \n    texteditor.selectLines(pos.line, pos.character + 6 + 2);\r\n}\r\n\
969             \r\n\r\n\r\n\r\n\r\n\r\n\r\npanel.fireEvent('contentChanged');"}
970     model: toolbar.scriptlet
971     pk: insert_stanza
972