- fields: {name: Autokorekta, position: 0, slug: autokorekta}
model: toolbar.buttongroup
pk: 2
+- fields: {name: Autotagowanie, position: 0, slug: autotagowanie}
+ model: toolbar.buttongroup
+ pk: 28
- fields: {name: Bloki, position: 0, slug: bloki}
model: toolbar.buttongroup
pk: 21
- fields: {name: "Pocz\u0105tek dramatu", position: 0, slug: poczatek-dramatu}
model: toolbar.buttongroup
pk: 22
-- fields: {name: Polecenia, position: 0, slug: polecenia}
- model: toolbar.buttongroup
- pk: 27
- fields: {name: Przypisy, position: 0, slug: przypisy}
model: toolbar.buttongroup
pk: 26
- fields: {name: Style znakowe, position: 0, slug: style-znakowe}
model: toolbar.buttongroup
pk: 15
+- fields: {name: Uwaga, position: 0, slug: uwaga}
+ model: toolbar.buttongroup
+ pk: 29
- fields: {name: Wersy, position: 0, slug: wersy}
model: toolbar.buttongroup
pk: 17
group: [14, 12]
label: akapit
link: ''
- params: '{"tag": "akap"}'
+ params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap"}'
scriptlet: insert_tag
slug: akapit
tooltip: wstawia akapit
group: [14]
label: akapit cd.
link: ''
- params: '{"tag": "akap_cd"}'
+ params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap_cd"}'
scriptlet: insert_tag
slug: akapit-cd
tooltip: "ci\u0105g dalszy akapitu po wewn\u0105trzakapitowym wtr\u0105ceniu"
group: [14]
label: akapit dialogowy
link: ''
- params: '{"tag": "akap_dialog"}'
+ params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap_dialog"}'
scriptlet: insert_tag
slug: akapit-dialogowy
tooltip: wstawia akapit dialogowy
model: toolbar.button
pk: 41
+- fields:
+ accesskey: ''
+ group: [28]
+ label: akapity
+ link: ''
+ params: '{"tag": "akap"}'
+ scriptlet: autotag
+ slug: akapity
+ tooltip: "autotagowanie akapit\xF3w"
+ model: toolbar.button
+ pk: 97
- fields:
accesskey: ''
group: [1]
label: akt
link: ''
- params: '{"tag": "akt"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_akt"}'
scriptlet: insert_tag
slug: akt
tooltip: ''
group: [13]
label: autor
link: ''
- params: '{"tag": "autor_utworu"}'
+ params: '{"padding_top": 1, "padding_bottom": 2, "tag": "autor_utworu"}'
scriptlet: insert_tag
slug: autor
tooltip: ''
link: ''
params: '[["fulltextregexp", {"exprs": [["\ufeff", ""], ["$[\\s]*\\d+[\\s]*^",
""], ["-\\s*^", ""], ["\\,\\.\\.|\\.\\,\\.|\\.\\.\\,", "..."], ["<(/?)P([aert])",
- "<$1p$2"], ["[\u2014\u2013\u2010-]+", "---"], ["(\\d)---(\\d)", "$1--$2"],
- ["(\\S)---(\\S)", "$1-$2"]]}], ["lineregexp", {"exprs": [["^\\s+|\\s+$",
- ""], ["\\s+", " "], ["(,,)\\s+", "$1"], ["\\s+(\")", "$1"], ["([^\\.])(\\s*)</p",
+ "<$1p$2"], ["[\u2014\u2013\u2010-]{2,}|[\u2014\u2013\u2010]+", "---"],
+ ["(\\s)-([^-])", "$1---$2"], ["([^-])-(\\s)", "$1---$2"], ["(\\d)-+(\\d)",
+ "$1--$2"], ["---(\\S)", "--- $1"], ["(\\S)---", "$1 ---"], ["<akap_dialog>\\s*-+\\s*",
+ "<akap_dialog>--- "]]}], ["lineregexp", {"exprs": [["^\\s+|\\s+$", ""],
+ ["\\s+", " "], ["(,,)\\s+", "$1"], ["\\s+(\")", "$1"], ["([^\\.])(\\s*)</p",
"$1.$2</p"], ["([\\.:;!\\?])([^\\s\\\\])", "$1 $2"], ["([^\\s])\\s+([\\.:;!\\?])",
"$1$2"], ["\\s+,([^,])", ",$1"], ["([^,]),([^\\s\\\\,])", "$1, $2"]]}]]'
scriptlet: macro
group: [1]
label: "cz\u0119\u015B\u0107/ksi\u0119ga"
link: ''
- params: '{"tag": "naglowek_czesc"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_czesc"}'
scriptlet: insert_tag
slug: czesc
tooltip: ''
group: [12]
label: didaskalia
link: ''
- params: '{"tag": "didaskalia"}'
+ params: '{"padding_top": 1, "padding_bottom": 2, "tag": "didaskalia"}'
scriptlet: insert_tag
slug: didaskalia
tooltip: ''
group: [22]
label: "didaskalia pocz\u0105tkowe"
link: ''
- params: '{"tag": "miejsce_czas"}'
+ params: '{"padding_top": 1, "padding_bottom": 3, "tag": "miejsce_czas"}'
scriptlet: insert_tag
slug: didaskalia-poczatkowe
tooltip: "komentarze wprowadzaj\u0105ce przed tekstem dramatu"
group: [11]
label: dramat wiersz.
link: ''
- params: '{"tag": "dramat_wierszowany_l"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wierszowany_l"}'
scriptlet: insert_tag
slug: dramat-wiersz
tooltip: ''
group: [11]
label: "dramat wiersz./w. \u0142am"
link: ''
- params: '{"tag": "dramat_wierszowany_lp"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wierszowany_lp"}'
scriptlet: insert_tag
slug: dramat-wiersz-w-lam
tooltip: "dramat wierszowany o zw\u0119\u017Conej szeroko\u015Bci \u0142amu"
group: [11]
label: "dramat wsp\xF3\u0142czesny"
link: ''
- params: '{"tag": "dramat_wspolczesny"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "dramat_wspolczesny"}'
scriptlet: insert_tag
slug: dramat-wspolczesny
tooltip: "dramat wsp\xF3\u0142czesny (proz\u0105)"
group: [13]
label: "dzie\u0142o nadrz\u0119dne"
link: ''
- params: '{"tag": "dzielo_nadrzedne"}'
+ params: '{"padding_top": 1, "padding_bottom": 2, "tag": "dzielo_nadrzedne"}'
scriptlet: insert_tag
slug: dzielo-nadrzedne
tooltip: ''
pk: 38
- fields:
accesskey: ''
- group: [27]
+ group: []
label: extra
link: ''
params: '{"tag": "extra"}'
group: [12]
label: kwestia
link: ''
- params: '{"tag": "kwestia"}'
+ params: '{"padding_top": 1, "padding_bottom": 1, "tag": "kwestia"}'
scriptlet: insert_tag
slug: kwestia
tooltip: "wstawia kwesti\u0119"
model: toolbar.button
pk: 82
+- fields:
+ accesskey: ''
+ group: [12]
+ label: kwestioakapit
+ link: ''
+ params: '[["insert_tag", {"tag": "akap"}], ["insert_tag", {"padding_top":
+ 1, "padding_bottom": 1, "tag": "kwestia"}]]'
+ scriptlet: macro
+ slug: kwestioakapit
+ tooltip: ''
+ model: toolbar.button
+ pk: 101
+- fields:
+ accesskey: ''
+ group: [12]
+ label: kwestiostrofa
+ link: ''
+ params: '[["insert_stanza", {"tag": "strofa"}], ["insert_tag", {"padding_top":
+ 1, "padding_bottom": 1, "tag": "kwestia"}]]'
+ scriptlet: macro
+ slug: kwestiostrofa
+ tooltip: ''
+ model: toolbar.button
+ pk: 102
- fields:
accesskey: ''
group: [11]
label: liryka
link: ''
- params: '{"tag": "liryka_l"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "liryka_l"}'
scriptlet: insert_tag
slug: liryka
tooltip: ''
group: [11]
label: "liryka/w. \u0142am"
link: ''
- params: '{"tag": "liryka_lp"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "liryka_lp"}'
scriptlet: insert_tag
slug: liryka-w-lam
tooltip: "utw\xF3r liryczny o zw\u0119\u017Conej szeroko\u015Bci \u0142amu"
group: [22]
label: "lista os\xF3b"
link: ''
- params: '{"tag": "lista_osob"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "lista_osob"}'
scriptlet: insert_tag
slug: lista-osob
tooltip: "lista os\xF3b poprzedzaj\u0105ca tekst dramatu"
group: [22]
label: 'typ osoby '
link: ''
- params: '{"tag": "lista_osoba", "attrs": {"typ": ""}}'
+ params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba", "attrs":
+ {"typ": ""}}'
scriptlet: insert_tag
slug: lista-osob-pole
tooltip: osoby z takim samym opisem
group: [13, 22]
label: motto
link: ''
- params: '{"tag": "motto"}'
+ params: '{"padding_top": 1, "padding_bottom": 3, "tag": "motto"}'
scriptlet: insert_tag
slug: motto
tooltip: ''
group: [13, 22]
label: motto podpis
link: ''
- params: '{"tag": "motto_podpis"}'
+ params: '{"padding_top": 1, "padding_bottom": 2, "tag": "motto_podpis"}'
scriptlet: insert_tag
slug: motto-podpis
tooltip: ''
tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na niemieckie"
model: toolbar.button
pk: 3
+- fields:
+ accesskey: ''
+ group: [28]
+ label: "nag\u0142. dramatu"
+ link: ''
+ params: '{"exprs": [["^AKT(\\s\\w*)$", "<naglowek_akt>AKT$1</naglowek_akt>"],
+ ["^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]+)$",
+ "<naglowek_osoba>$1</naglowek_osoba>"]]}'
+ scriptlet: lineregexp
+ slug: nagl-dramatu
+ tooltip: "autotagowanie akt\xF3w, scen, nag\u0142\xF3wk\xF3w os\xF3b"
+ model: toolbar.button
+ pk: 103
- fields:
accesskey: ''
group: [12]
label: "nag\u0142\xF3wek kwestii"
link: ''
- params: '{"tag": "naglowek_osoba"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_osoba"}'
scriptlet: insert_tag
slug: naglowek-kwestii
tooltip: "nag\u0142\xF3wek kwestii - nazwa osoby"
group: [22]
label: "nag\u0142\xF3wek listy"
link: ''
- params: '{"tag": "naglowek_listy"}'
+ params: '{"padding_top": 1, "padding_bottom": 2, "tag": "naglowek_listy"}'
scriptlet: insert_tag
slug: naglowek-listy
tooltip: "nag\u0142\xF3wek listy os\xF3b"
group: [13]
label: nazwa utworu
link: ''
- params: '{"tag": "nazwa_utworu"}'
+ params: '{"padding_top": 1, "padding_bottom": 2, "tag": "nazwa_utworu"}'
scriptlet: insert_tag
slug: nazwa-utworu
tooltip: ''
tooltip: ''
model: toolbar.button
pk: 35
+- fields:
+ accesskey: ''
+ group: [13]
+ label: nota red.
+ link: ''
+ params: '{"padding_top": 1, "padding_bottom": 3, "tag": "nota_red"}'
+ scriptlet: insert_tag
+ slug: nota-red
+ tooltip: nota redakcyjna
+ model: toolbar.button
+ pk: 104
- fields:
accesskey: ''
group: [11]
label: opowiadanie
link: ''
- params: '{"tag": "opowiadanie"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "opowiadanie"}'
scriptlet: insert_tag
slug: opowiadanie
tooltip: ''
group: [22]
label: osoba na liscie
link: ''
- params: '{"tag": "lista_osoba"}'
+ params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba"}'
scriptlet: insert_tag
slug: osoba-na-liscie
tooltip: "nazwa osoby na liscie os\xF3b"
group: [11]
label: "powie\u015B\u0107"
link: ''
- params: '{"tag": "powiesc"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "powiesc"}'
scriptlet: insert_tag
slug: powiesc
tooltip: ''
group: [1]
label: "rozdzia\u0142"
link: ''
- params: '{"tag": "naglowek_rozdzial"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_rozdzial"}'
scriptlet: insert_tag
slug: rozdzial
tooltip: ''
group: [12, 17]
label: strofa
link: ''
- params: '{"tag": "strofa"}'
+ params: '{"padding_top": 1, "padding_bottom": 3, "tag": "strofa"}'
scriptlet: insert_stanza
slug: strofa
tooltip: "wstawia strof\u0119"
model: toolbar.button
pk: 81
+- fields:
+ accesskey: ''
+ group: [28]
+ label: strofy
+ link: ''
+ params: '{"tag": "strofa"}'
+ scriptlet: autotag
+ slug: strofy
+ tooltip: autotagowanie strof
+ model: toolbar.button
+ pk: 99
- fields:
accesskey: ''
group: [11]
pk: 45
- fields:
accesskey: ''
- group: [27]
+ group: [29]
label: uwaga
link: ''
params: '{"tag": "uwaga"}'
tooltip: "wstawia wers wci\u0119ty"
model: toolbar.button
pk: 91
+- fields:
+ accesskey: ''
+ group: [28]
+ label: "wersy wci\u0119te"
+ link: ''
+ params: '{"padding": 1, "tag": "wers_wciety", "split": 1}'
+ scriptlet: autotag
+ slug: wersy-wciete
+ tooltip: "autotagowanie wers\xF3w wci\u0119tych"
+ model: toolbar.button
+ pk: 100
- fields:
accesskey: ''
group: [15]
pk: 48
- fields:
accesskey: ''
- group: [15]
+ group: [12, 15]
label: "wyr\xF3\u017Cnienie"
link: ''
params: '{"tag": "wyroznienie"}'
group: [11]
label: wywiad
link: ''
- params: '{"tag": "wywiad"}'
+ params: '{"padding_top": 1, "padding_bottom": 4, "tag": "wywiad"}'
scriptlet: insert_tag
slug: wywiad
tooltip: ''
tooltip: wykropkowanie wersu
model: toolbar.button
pk: 56
+- fields: {code: "$(params).each(function() {\n $.log(this[0], this[1]);\n \
+ \ editor.callScriptlet(this[0], panel, this[1]);\n\n});"}
+ model: toolbar.scriptlet
+ pk: macro
- fields: {code: "var texteditor = panel.texteditor;\nvar text = texteditor.selection();\n\
var start_tag = '<'+params.tag;\nfor (var attr in params.attrs) {\n \
\ start_tag += ' '+attr+'=\"' + params.attrs[attr] + '\"';\n};\nstart_tag\
\ cm.selectLines( cm.nthLine(cpos.line), cpos.character )"}
model: toolbar.scriptlet
pk: lineregexp
+- fields: {code: '-'}
+ model: toolbar.scriptlet
+ pk: autotag
- fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\
\ '', -1);\n$.log(editor, panel, params);\nvar cm = panel.texteditor;\n\
var exprs = $.map(params.exprs, function(expr) {\n var opts = \"mg\"\
\ cm.nthLine(cpos.line), cpos.character );\n}"}
model: toolbar.scriptlet
pk: fulltextregexp
-- fields: {code: "$(params).each(function() {\n $.log(this[0], this[1]);\n \
- \ editor.callScriptlet(this[0], panel, this[1]);\n\n});"}
- model: toolbar.scriptlet
- pk: macro
- fields: {code: "var cm = panel.texteditor;\r\nvar text = cm.selection();\r\n\r\
\nif(!text) return;\r\nvar repl = '';\r\nvar lcase = text.toLowerCase();\r\
\nvar ucase = text.toUpperCase();\r\n\r\nif(lcase == text) repl = ucase;\