autotagging
[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: Polecenia, position: 0, slug: polecenia}
29     model: toolbar.buttongroup
30     pk: 27
31 -   fields: {name: Przypisy, position: 0, slug: przypisy}
32     model: toolbar.buttongroup
33     pk: 26
34 -   fields: {name: Separatory, position: 0, slug: separatory}
35     model: toolbar.buttongroup
36     pk: 16
37 -   fields: {name: Style znakowe, position: 0, slug: style-znakowe}
38     model: toolbar.buttongroup
39     pk: 15
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: '{"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: '{"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: '{"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: '{"tag": "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: '{"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: '{"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: '{"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: '{"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: '{"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: '{"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: '{"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: '{"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: [27]
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: '{"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: [11]
311         label: liryka
312         link: ''
313         params: '{"tag": "liryka_l"}'
314         scriptlet: insert_tag
315         slug: liryka
316         tooltip: ''
317     model: toolbar.button
318     pk: 23
319 -   fields:
320         accesskey: ''
321         group: [11]
322         label: "liryka/w. \u0142am"
323         link: ''
324         params: '{"tag": "liryka_lp"}'
325         scriptlet: insert_tag
326         slug: liryka-w-lam
327         tooltip: "utw\xF3r liryczny o zw\u0119\u017Conej szeroko\u015Bci \u0142amu"
328     model: toolbar.button
329     pk: 24
330 -   fields:
331         accesskey: ''
332         group: [22]
333         label: "lista os\xF3b"
334         link: ''
335         params: '{"tag": "lista_osob"}'
336         scriptlet: insert_tag
337         slug: lista-osob
338         tooltip: "lista os\xF3b poprzedzaj\u0105ca tekst dramatu"
339     model: toolbar.button
340     pk: 93
341 -   fields:
342         accesskey: ''
343         group: [22]
344         label: 'typ osoby '
345         link: ''
346         params: '{"tag": "lista_osoba", "attrs": {"typ": ""}}'
347         scriptlet: insert_tag
348         slug: lista-osob-pole
349         tooltip: osoby z takim samym opisem
350     model: toolbar.button
351     pk: 78
352 -   fields:
353         accesskey: ''
354         group: [15]
355         label: matemat.
356         link: ''
357         params: '{"tag": "mat"}'
358         scriptlet: insert_tag
359         slug: matemat
360         tooltip: "wyra\u017Cenia matematyczne lub zmienne symboliczne"
361     model: toolbar.button
362     pk: 47
363 -   fields:
364         accesskey: ''
365         group: [13, 22]
366         label: motto
367         link: ''
368         params: '{"tag": "motto"}'
369         scriptlet: insert_tag
370         slug: motto
371         tooltip: ''
372     model: toolbar.button
373     pk: 75
374 -   fields:
375         accesskey: ''
376         group: [13, 22]
377         label: motto podpis
378         link: ''
379         params: '{"tag": "motto_podpis"}'
380         scriptlet: insert_tag
381         slug: motto-podpis
382         tooltip: ''
383     model: toolbar.button
384     pk: 37
385 -   fields:
386         accesskey: ''
387         group: [2]
388         label: ",,\u2026\" na \xAB\u2026\xBB"
389         link: ''
390         params: '{"exprs": [[",,", "\u00ab"], ["\"", "\u00bb"]]}'
391         scriptlet: fulltextregexp
392         slug: na-francuskie
393         tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na francuskie"
394     model: toolbar.button
395     pk: 2
396 -   fields:
397         accesskey: ''
398         group: [2]
399         label: ",,\u2026\" na \xBB\u2026\xAB"
400         link: ''
401         params: '{"exprs": [[",,", "\u00bb"], ["\"", "\u00ab"]]}'
402         scriptlet: fulltextregexp
403         slug: na-niemieckie
404         tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na niemieckie"
405     model: toolbar.button
406     pk: 3
407 -   fields:
408         accesskey: ''
409         group: [12]
410         label: "nag\u0142\xF3wek kwestii"
411         link: ''
412         params: '{"tag": "naglowek_osoba"}'
413         scriptlet: insert_tag
414         slug: naglowek-kwestii
415         tooltip: "nag\u0142\xF3wek kwestii - nazwa osoby"
416     model: toolbar.button
417     pk: 16
418 -   fields:
419         accesskey: ''
420         group: [22]
421         label: "nag\u0142\xF3wek listy"
422         link: ''
423         params: '{"tag": "naglowek_listy"}'
424         scriptlet: insert_tag
425         slug: naglowek-listy
426         tooltip: "nag\u0142\xF3wek listy os\xF3b"
427     model: toolbar.button
428     pk: 94
429 -   fields:
430         accesskey: ''
431         group: [13]
432         label: nazwa utworu
433         link: ''
434         params: '{"tag": "nazwa_utworu"}'
435         scriptlet: insert_tag
436         slug: nazwa-utworu
437         tooltip: ''
438     model: toolbar.button
439     pk: 33
440 -   fields:
441         accesskey: ''
442         group: [13]
443         label: nota
444         link: ''
445         params: '{"tag": "nota"}'
446         scriptlet: insert_tag
447         slug: nota
448         tooltip: ''
449     model: toolbar.button
450     pk: 35
451 -   fields:
452         accesskey: ''
453         group: [11]
454         label: opowiadanie
455         link: ''
456         params: '{"tag": "opowiadanie"}'
457         scriptlet: insert_tag
458         slug: opowiadanie
459         tooltip: ''
460     model: toolbar.button
461     pk: 18
462 -   fields:
463         accesskey: b
464         group: [12]
465         label: osoba
466         link: ''
467         params: '{"tag": "osoba"}'
468         scriptlet: insert_tag
469         slug: osoba
470         tooltip: "wstawia nazw\u0119 osoby w didaskaliach"
471     model: toolbar.button
472     pk: 64
473 -   fields:
474         accesskey: ''
475         group: [22]
476         label: osoba na liscie
477         link: ''
478         params: '{"tag": "lista_osoba"}'
479         scriptlet: insert_tag
480         slug: osoba-na-liscie
481         tooltip: "nazwa osoby na liscie os\xF3b"
482     model: toolbar.button
483     pk: 95
484 -   fields:
485         accesskey: ''
486         group: [1]
487         label: "podrozdzia\u0142"
488         link: ''
489         params: '{"tag": "naglowek_podrozdzial"}'
490         scriptlet: insert_tag
491         slug: podrozdzial
492         tooltip: ''
493     model: toolbar.button
494     pk: 12
495 -   fields:
496         accesskey: ''
497         group: [1]
498         label: "podtytu\u0142"
499         link: ''
500         params: '{"tag": "podtytul"}'
501         scriptlet: insert_tag
502         slug: podtytul
503         tooltip: ''
504     model: toolbar.button
505     pk: 34
506 -   fields:
507         accesskey: ''
508         group: [11]
509         label: "powie\u015B\u0107"
510         link: ''
511         params: '{"tag": "powiesc"}'
512         scriptlet: insert_tag
513         slug: powiesc
514         tooltip: ''
515     model: toolbar.button
516     pk: 19
517 -   fields:
518         accesskey: ''
519         group: []
520         label: Wydrukuj
521         link: print/xml
522         params: '[]'
523         scriptlet: insert_tag
524         slug: print-xml
525         tooltip: ''
526     model: toolbar.button
527     pk: 86
528 -   fields:
529         accesskey: ''
530         group: [26]
531         label: przypis autorski
532         link: ''
533         params: '{"tag": "pa"}'
534         scriptlet: insert_tag
535         slug: przypis-autorski
536         tooltip: ''
537     model: toolbar.button
538     pk: 68
539 -   fields:
540         accesskey: ''
541         group: [26]
542         label: przypis edytorski
543         link: ''
544         params: '{"tag": "pe"}'
545         scriptlet: insert_tag
546         slug: przypis-edytorski
547         tooltip: ''
548     model: toolbar.button
549     pk: 71
550 -   fields:
551         accesskey: ''
552         group: [26]
553         label: przypis redaktorski
554         link: ''
555         params: '{"tag": "pr"}'
556         scriptlet: insert_tag
557         slug: przypis-redaktorski
558         tooltip: ''
559     model: toolbar.button
560     pk: 70
561 -   fields:
562         accesskey: ''
563         group: [26]
564         label: "przypis t\u0142umacza"
565         link: ''
566         params: '{"tag": "pt"}'
567         scriptlet: insert_tag
568         slug: przypis-tlumacza
569         tooltip: ''
570     model: toolbar.button
571     pk: 69
572 -   fields:
573         accesskey: ''
574         group: [1]
575         label: "rozdzia\u0142"
576         link: ''
577         params: '{"tag": "naglowek_rozdzial"}'
578         scriptlet: insert_tag
579         slug: rozdzial
580         tooltip: ''
581     model: toolbar.button
582     pk: 11
583 -   fields:
584         accesskey: ''
585         group: [1]
586         label: scena
587         link: ''
588         params: '{"tag": "naglowek_scena"}'
589         scriptlet: insert_tag
590         slug: scena
591         tooltip: ''
592     model: toolbar.button
593     pk: 15
594 -   fields:
595         accesskey: ''
596         group: [16]
597         label: asterysk
598         link: ''
599         params: '{"nocontent": "true", "tag": "sekcja_asterysk"}'
600         scriptlet: insert_tag
601         slug: sep-asterysk
602         tooltip: rozdzielenie partii tekstu asteryskiem
603     model: toolbar.button
604     pk: 54
605 -   fields:
606         accesskey: ''
607         group: [16]
608         label: linia
609         link: ''
610         params: '{"nocontent": "true", "tag": "separator_linia"}'
611         scriptlet: insert_tag
612         slug: sep-linia
613         tooltip: "rozdzielenie partii tekstu pozioma lini\u0105"
614     model: toolbar.button
615     pk: 55
616 -   fields:
617         accesskey: ''
618         group: [16]
619         label: "\u015Bwiat\u0142o"
620         link: ''
621         params: '{"nocontent": "true", "tag": "sekcja_swiatlo"}'
622         scriptlet: insert_tag
623         slug: sep-swiatlo
624         tooltip: "\u015Bwiat\u0142o rozdzielaj\u0105ce sekcje tekstu"
625     model: toolbar.button
626     pk: 53
627 -   fields:
628         accesskey: ''
629         group: [15]
630         label: "s\u0142owo obce"
631         link: ''
632         params: '{"tag": "slowo_obce"}'
633         scriptlet: insert_tag
634         slug: slowo-obce
635         tooltip: "frazy w j\u0119zykach innych ni\u017C polski/definiendum w przypisie"
636     model: toolbar.button
637     pk: 46
638 -   fields:
639         accesskey: ''
640         group: [1]
641         label: "\u015Br\xF3dtytu\u0142"
642         link: ''
643         params: '{"tag": "srodtytul"}'
644         scriptlet: insert_tag
645         slug: srodtytul
646         tooltip: ''
647     model: toolbar.button
648     pk: 13
649 -   fields:
650         accesskey: s
651         group: [12, 17]
652         label: strofa
653         link: ''
654         params: '{"tag": "strofa"}'
655         scriptlet: insert_stanza
656         slug: strofa
657         tooltip: "wstawia strof\u0119"
658     model: toolbar.button
659     pk: 81
660 -   fields:
661         accesskey: ''
662         group: [28]
663         label: strofy
664         link: ''
665         params: '{"tag": "strofa"}'
666         scriptlet: autotag
667         slug: strofy
668         tooltip: autotagowanie strof
669     model: toolbar.button
670     pk: 99
671 -   fields:
672         accesskey: ''
673         group: [11]
674         label: "tag g\u0142\xF3wny"
675         link: ''
676         params: '{"tag": "utwor"}'
677         scriptlet: insert_tag
678         slug: tag-glowny
679         tooltip: ''
680     model: toolbar.button
681     pk: 17
682 -   fields:
683         accesskey: u
684         group: [2]
685         label: "A<sup>\u2193</sup>"
686         link: ''
687         params: '[]'
688         scriptlet: lowercase
689         slug: tolowercase
690         tooltip: "Zamie\u0144 wielkie litery na ma\u0142e"
691     model: toolbar.button
692     pk: 76
693 -   fields:
694         accesskey: ''
695         group: [15]
696         label: "tytu\u0142 dzie\u0142a"
697         link: ''
698         params: '{"tag": "tytul_dziela"}'
699         scriptlet: insert_tag
700         slug: tytul-dziela
701         tooltip: ''
702     model: toolbar.button
703     pk: 92
704 -   fields:
705         accesskey: ''
706         group: [15]
707         label: "tytu\u0142 dzie\u0142a typ 1"
708         link: ''
709         params: '{"tag": "tytul_dziela", "attrs": {"typ": "1"}}'
710         scriptlet: insert_tag
711         slug: tytul-dziela-typ
712         tooltip: "tytu\u0142 dzie\u0142a w cytowanym tytule dzie\u0142a"
713     model: toolbar.button
714     pk: 45
715 -   fields:
716         accesskey: ''
717         group: [27]
718         label: uwaga
719         link: ''
720         params: '{"tag": "uwaga"}'
721         scriptlet: insert_tag
722         slug: uwaga
723         tooltip: 'uwagi redaktorsko-korektorskie '
724     model: toolbar.button
725     pk: 51
726 -   fields:
727         accesskey: ''
728         group: [14, 17]
729         label: wers akap.
730         link: ''
731         params: '{"tag": "wers_akap"}'
732         scriptlet: insert_tag
733         slug: wers-akap
734         tooltip: "wers rozpoczynaj\u0105cy si\u0119 wci\u0119ciem akapitowym"
735     model: toolbar.button
736     pk: 83
737 -   fields:
738         accesskey: ''
739         group: [12, 17]
740         label: wers cd.
741         link: ''
742         params: '{"tag": "wers_cd"}'
743         scriptlet: insert_tag
744         slug: wers-cd
745         tooltip: "cz\u0119\u015B\u0107 wersu przeniesiona do innego wiersza"
746     model: toolbar.button
747     pk: 85
748 -   fields:
749         accesskey: w
750         group: [12, 17]
751         label: "wers mocno wci\u0119ty"
752         link: ''
753         params: '{"tag": "wers_wciety", "attrs": {"typ": ""}}'
754         scriptlet: insert_tag
755         slug: wers-mocno-wciety
756         tooltip: "argumenty wersu wci\u0119tego: od 2 do 6"
757     model: toolbar.button
758     pk: 84
759 -   fields:
760         accesskey: q
761         group: [12, 17]
762         label: "wers wci\u0119ty"
763         link: ''
764         params: '{"tag": "wers_wciety", "attrs": {"typ": "1"}}'
765         scriptlet: insert_tag
766         slug: wers-wciety
767         tooltip: "wstawia wers wci\u0119ty"
768     model: toolbar.button
769     pk: 91
770 -   fields:
771         accesskey: ''
772         group: [28]
773         label: "wersy wci\u0119te"
774         link: ''
775         params: '{"padding": 1, "tag": "wers_wciety", "split": 1}'
776         scriptlet: autotag
777         slug: wersy-wciete
778         tooltip: "autotagowanie wers\xF3w wci\u0119tych"
779     model: toolbar.button
780     pk: 100
781 -   fields:
782         accesskey: ''
783         group: [15]
784         label: www
785         link: ''
786         params: '{"tag": "www"}'
787         scriptlet: insert_tag
788         slug: www
789         tooltip: ''
790     model: toolbar.button
791     pk: 48
792 -   fields:
793         accesskey: ''
794         group: [15]
795         label: "wyr\xF3\u017Cnienie"
796         link: ''
797         params: '{"tag": "wyroznienie"}'
798         scriptlet: insert_tag
799         slug: wyroznienie
800         tooltip: "wyr\xF3\u017Cnienie autorskie"
801     model: toolbar.button
802     pk: 44
803 -   fields:
804         accesskey: ''
805         group: [11]
806         label: wywiad
807         link: ''
808         params: '{"tag": "wywiad"}'
809         scriptlet: insert_tag
810         slug: wywiad
811         tooltip: ''
812     model: toolbar.button
813     pk: 25
814 -   fields:
815         accesskey: ''
816         group: [21]
817         label: "wywiad odpowied\u017A"
818         link: ''
819         params: '{"tag": "wywiad_odp"}'
820         scriptlet: insert_tag
821         slug: wywiad-odpowiedz
822         tooltip: ''
823     model: toolbar.button
824     pk: 73
825 -   fields:
826         accesskey: ''
827         group: [21]
828         label: wywiad pytanie
829         link: ''
830         params: '{"tag": "wywiad_pyt"}'
831         scriptlet: insert_tag
832         slug: wywiad-pytanie
833         tooltip: ''
834     model: toolbar.button
835     pk: 72
836 -   fields:
837         accesskey: ''
838         group: [16]
839         label: "zast\u0119pnik wersu"
840         link: ''
841         params: '{"tag": "zastepnik_wersu"}'
842         scriptlet: insert_tag
843         slug: zastepnik-wersu
844         tooltip: wykropkowanie wersu
845     model: toolbar.button
846     pk: 56
847 -   fields: {code: "var texteditor = panel.texteditor;\nvar text = texteditor.selection();\n\
848             var start_tag = '<'+params.tag;\nfor (var attr in params.attrs) {\n  \
849             \  start_tag += ' '+attr+'=\"' + params.attrs[attr] + '\"';\n};\nstart_tag\
850             \ += '>';\nvar end_tag = '</'+params.tag+'>';\n\nif(text.length > 0) {\n\
851             // tokenize\nvar output = ''\nvar token = ''\nfor(var index=0; index <\
852             \ text.length; index++)\n{\n    if (text[index].match(/\\s/)) { // whitespace\n\
853             \        token += text[index];\n    }\n    else { // character\n     \
854             \   output += token;\n        if(output == token) output += start_tag;\n\
855             \        token = ''\n        output += text[index];\n    }\n}\n\nif( output[output.length-1]\
856             \ == '\\\\' ) {\n    output = output.substr(0, output.length-1) + end_tag\
857             \ + '\\\\';\n} else {\n    output += end_tag;\n}\noutput += token;\n}\n\
858             else {\n output = start_tag + end_tag;\n}\n\ntexteditor.replaceSelection(output);\n\
859             \nif (text.length == 0) {\n    var pos = texteditor.cursorPosition();\n\
860             \    texteditor.selectLines(pos.line, pos.character + params.tag.length\
861             \ + 2);\n}\n\npanel.fireEvent('contentChanged');"}
862     model: toolbar.scriptlet
863     pk: insert_tag
864 -   fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
865             \ '', -1);\n\nvar cm = panel.texteditor;\nvar exprs = $.map(params.exprs,\
866             \ function(expr) {\n\n    var opts = \"g\";\n\n    if(expr.length > 2)\n\
867             \n        opts = expr[2];\n\n    return {rx: new RegExp(expr[0], opts),\
868             \ repl: expr[1]};\n\n});\n\n\n\nvar partial = true;\n\nvar text = cm.selection();\n\
869             \n\n\nif(!text) {\n\n    var cpos = cm.cursorPosition();\n\n    cpos.line\
870             \ = cm.lineNumber(cpos.line)\n\n    cm.selectLines(cm.firstLine(), 0,\
871             \ cm.lastLine(), 0);\n\n    text = cm.selection();\n\n    partial = false;\n\
872             \n}\n\n\n\nvar changed = 0;\nvar lines = text.split('\\n');\nvar lines\
873             \ = $.map(lines, function(line) { \n    var old_line = line;\n    $(exprs).each(function()\
874             \ { \n        var expr = this;\n        line = line.replace(expr.rx, expr.repl);\n\
875             \    });\n\n    if(old_line != line) changed += 1;\n    return line;\n\
876             });\n\nif(changed > 0) \n{\n    cm.replaceSelection( lines.join('\\n')\
877             \ );\n    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes',\
878             \ 'Zmieniono ' + changed + ' linii.', 1500);\n    editor.advancePopupQueue();\n\
879             }\nelse {\n    editor.showPopup('generic-info',  'Brak zmian w tek\u015B\
880             cie', 1500);\n    editor.advancePopupQueue();\n}\n\nif(!partial)\n   \
881             \ cm.selectLines( cm.nthLine(cpos.line), cpos.character )"}
882     model: toolbar.scriptlet
883     pk: lineregexp
884 -   fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
885             \ '', -1);\n$.log(editor, panel, params);\nvar cm = panel.texteditor;\n\
886             var exprs = $.map(params.exprs, function(expr) {\n    var opts = \"mg\"\
887             ;\n    if(expr.length > 2)\n        opts = expr[2];\n\n    return {rx:\
888             \ new RegExp(expr[0], opts), repl: expr[1]};\n});\n\nvar partial = true;\n\
889             var text = cm.selection();\n\nif(!text) {\n    var cpos = cm.cursorPosition();\n\
890             \    cpos.line = cm.lineNumber(cpos.line)\n    cm.selectLines(cm.firstLine(),\
891             \ 0, cm.lastLine(), 0);\n\n    text = cm.selection();\n    partial = false;\n\
892             }\n\nvar original = text;\n$(exprs).each(function() { \n    text = text.replace(this.rx,\
893             \ this.repl);\n});\n\nif( original != text) \n{    \n    cm.replaceSelection(text);\n\
894             \    panel.fireEvent('contentChanged');\n    editor.showPopup('generic-yes',\
895             \ 'Zmieniono tekst' );\n    editor.advancePopupQueue();\n}\nelse {\n \
896             \   editor.showPopup('generic-info', 'Brak zmian w tek\u015Bcie.');\n\
897             \    editor.advancePopupQueue();\n}\n\nif(!partial) {\n    cm.selectLines(\
898             \ cm.nthLine(cpos.line), cpos.character );\n}"}
899     model: toolbar.scriptlet
900     pk: fulltextregexp
901 -   fields: {code: "$(params).each(function() {\n    $.log(this[0], this[1]);\n  \
902             \  editor.callScriptlet(this[0], panel, this[1]);\n\n});"}
903     model: toolbar.scriptlet
904     pk: macro
905 -   fields: {code: "var cm = panel.texteditor;\r\nvar text = cm.selection();\r\n\r\
906             \nif(!text) return;\r\nvar repl = '';\r\nvar lcase = text.toLowerCase();\r\
907             \nvar ucase = text.toUpperCase();\r\n\r\nif(lcase == text) repl = ucase;\
908             \ /* was lowercase */\r\nelse if(ucase != text) repl = lcase; /* neither\
909             \ lower- or upper-case */\r\nelse { /* upper case -> title-case */\r\n\
910             \   var words = $(lcase.split(/\\s/)).map(function() { \r\n        if(this.length\
911             \ > 0) { return this[0].toUpperCase() + this.slice(1); } else { return\
912             \ ''}\r\n   }); \r\n   repl = words.join(' ');\r\n} \r\n\r\nif(repl !=\
913             \ text) {\r\n    cm.replaceSelection(repl);\r\n    panel.fireEvent('contentChanged');\r\
914             \n};"}
915     model: toolbar.scriptlet
916     pk: lowercase
917 -   fields: {code: "var texteditor = panel.texteditor;\r\nvar text = texteditor.selection();\r\
918             \n\r\nif(text) {\r\n  var verses = text.split('\\n');\r\n  var text =\
919             \ ''; var buf = ''; var ebuf = '';\r\n  var first = true;\r\n\r\n  for(var\
920             \ i=0;  i < verses.length; i++) {\r\n    verse = verses[i].replace(/^\\\
921             s+/, \"\").replace(/\\s+$/, \"\");   \r\n    if(verse) {\r\n      text\
922             \ += (buf ? buf + '/\\n' : '') + ebuf;\r\n      buf = (first ? '<strofa>\\\
923             n' : '') + verses[i];\r\n      ebuf = '';\r\n      first = false;\r\n\
924             \    } else {    \r\n      ebuf += '\\n' + verses[i];\r\n    }\r\n  };\r\
925             \n  text = text + buf + '\\n</strofa>' + ebuf; \r\n  texteditor.replaceSelection(text);\r\
926             \n}\r\n\r\nif (!text) {\r\n    var pos = texteditor.cursorPosition();\r\
927             \n    texteditor.selectLines(pos.line, pos.character + 6 + 2);\r\n}\r\n\
928             \r\n\r\n\r\n\r\n\r\n\r\n\r\npanel.fireEvent('contentChanged');"}
929     model: toolbar.scriptlet
930     pk: insert_stanza
931 -   fields: {code: '-'}
932     model: toolbar.scriptlet
933     pk: autotag
934