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