X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c766b9b0662499d4213726dbdc2fe65fcd913c68..8906541ccda592d4e3c3d21618fb34f662916aa0:/apps/toolbar/fixtures/initial_toolbar.yaml?ds=sidebyside diff --git a/apps/toolbar/fixtures/initial_toolbar.yaml b/apps/toolbar/fixtures/initial_toolbar.yaml index 45a1c7de..52799ff8 100644 --- a/apps/toolbar/fixtures/initial_toolbar.yaml +++ b/apps/toolbar/fixtures/initial_toolbar.yaml @@ -1,111 +1,67 @@ -- fields: {name: Akapity, position: 0, slug: akapity} +- fields: {name: "Nag\u0142\xF3wki", position: 0, slug: naglowki} model: toolbar.buttongroup - pk: 14 + pk: 1 - 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} +- fields: {name: Mastery, position: 0, slug: mastery} model: toolbar.buttongroup - pk: 21 + pk: 11 - fields: {name: 'Dramat ', position: 0, slug: dramat} model: toolbar.buttongroup pk: 12 - fields: {name: "Elementy pocz\u0105tkowe", position: 0, slug: elementy-poczatkowe} model: toolbar.buttongroup pk: 13 -- fields: {name: Mastery, position: 0, slug: mastery} +- fields: {name: Akapity, position: 0, slug: akapity} model: toolbar.buttongroup - pk: 11 -- fields: {name: "Nag\u0142\xF3wki", position: 0, slug: naglowki} + pk: 14 +- fields: {name: Style znakowe, position: 0, slug: style-znakowe} model: toolbar.buttongroup - pk: 1 + pk: 15 +- fields: {name: Separatory, position: 0, slug: separatory} + model: toolbar.buttongroup + pk: 16 +- fields: {name: Wersy, position: 0, slug: wersy} + model: toolbar.buttongroup + pk: 17 +- 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: Przypisy, position: 0, slug: przypisy} model: toolbar.buttongroup pk: 26 -- fields: {name: Separatory, position: 0, slug: separatory} - model: toolbar.buttongroup - pk: 16 -- fields: {name: Style znakowe, position: 0, slug: style-znakowe} +- fields: {name: Autotagowanie, position: 0, slug: autotagowanie} model: toolbar.buttongroup - pk: 15 + pk: 28 - fields: {name: Uwaga, position: 0, slug: uwaga} model: toolbar.buttongroup pk: 29 -- fields: {name: Wersy, position: 0, slug: wersy} - model: toolbar.buttongroup - pk: 17 -- fields: - accesskey: a - group: [14, 12] - label: akapit - link: '' - params: '{"padding_top": 1, "padding_bottom": 3, "tag": "akap"}' - scriptlet: insert_tag - slug: akapit - tooltip: wstawia akapit - model: toolbar.button - pk: 39 -- fields: - accesskey: '' - group: [14] - label: akapit cd. - link: '' - 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" - model: toolbar.button - pk: 40 -- fields: - accesskey: d - group: [14] - label: akapit dialogowy - link: '' - 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 + group: [2] + label: ",,\u2026\" na \xAB\u2026\xBB" link: '' - params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_akt"}' - scriptlet: insert_tag - slug: akt - tooltip: '' + params: '{"exprs": [[",,", "\u00ab"], ["\"", "\u00bb"]]}' + scriptlet: fulltextregexp + slug: na-francuskie + tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na francuskie" model: toolbar.button - pk: 14 + pk: 2 - fields: accesskey: '' - group: [13] - label: autor + group: [2] + label: ",,\u2026\" na \xBB\u2026\xAB" link: '' - params: '{"padding_top": 1, "padding_bottom": 2, "tag": "autor_utworu"}' - scriptlet: insert_tag - slug: autor - tooltip: '' + params: '{"exprs": [[",,", "\u00bb"], ["\"", "\u00ab"]]}' + scriptlet: fulltextregexp + slug: na-niemieckie + tooltip: "Zamienia cudzys\u0142owy podw\xF3jne na niemieckie" model: toolbar.button - pk: 32 + pk: 3 - fields: accesskey: '' group: [2] @@ -119,7 +75,9 @@ "--- "]]}], ["lineregexp", {"exprs": [["^\\s+|\\s+$", ""], ["\\s+", " "], ["(,,)\\s+", "$1"], ["\\s+(\")", "$1"], ["([^\\.])(\\s*)AKT$1"], - ["^SCENA(\\s\\w*)$", "SCENA$1"], ["([A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179]{2}[A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179\\s]+)$", - "$1"]]}' - scriptlet: lineregexp - slug: nagl-dramatu - tooltip: "autotagowanie akt\xF3w, scen, nag\u0142\xF3wk\xF3w os\xF3b" + params: '{"tag": "tytul_dziela", "attrs": {"typ": "1"}}' + scriptlet: insert_tag + slug: tytul-dziela-typ + tooltip: "tytu\u0142 dzie\u0142a w cytowanym tytule dzie\u0142a" model: toolbar.button - pk: 103 + pk: 45 - fields: - accesskey: '' - group: [12] - label: "nag\u0142\xF3wek kwestii" + accesskey: e + group: [15] + label: "s\u0142owo obce" link: '' - params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_osoba"}' + params: '{"tag": "slowo_obce"}' scriptlet: insert_tag - slug: naglowek-kwestii - tooltip: "nag\u0142\xF3wek kwestii - nazwa osoby" + slug: slowo-obce + tooltip: "frazy w j\u0119zykach innych ni\u017C polski/definiendum w przypisie" model: toolbar.button - pk: 16 + pk: 46 - fields: accesskey: '' - group: [22] - label: "nag\u0142\xF3wek listy" + group: [15] + label: matemat. link: '' - params: '{"padding_top": 1, "padding_bottom": 2, "tag": "naglowek_listy"}' + params: '{"tag": "mat"}' scriptlet: insert_tag - slug: naglowek-listy - tooltip: "nag\u0142\xF3wek listy os\xF3b" + slug: matemat + tooltip: "wyra\u017Cenia matematyczne lub zmienne symboliczne" model: toolbar.button - pk: 94 + pk: 47 - fields: accesskey: '' - group: [13] - label: nazwa utworu + group: [15] + label: www link: '' - params: '{"padding_top": 1, "padding_bottom": 2, "tag": "nazwa_utworu"}' + params: '{"tag": "www"}' scriptlet: insert_tag - slug: nazwa-utworu + slug: www tooltip: '' model: toolbar.button - pk: 33 + pk: 48 - fields: accesskey: '' - group: [13] - label: nota + group: [29] + label: uwaga link: '' - params: '{"tag": "nota"}' + params: '{"tag": "uwaga"}' scriptlet: insert_tag - slug: nota - tooltip: '' + slug: uwaga + tooltip: 'uwagi redaktorsko-korektorskie ' model: toolbar.button - pk: 35 + pk: 51 - fields: accesskey: '' - group: [13] - label: nota red. + group: [16] + label: "\u015Bwiat\u0142o" link: '' - params: '{"padding_top": 1, "padding_bottom": 3, "tag": "nota_red"}' + params: '{"nocontent": "true", "tag": "sekcja_swiatlo"}' scriptlet: insert_tag - slug: nota-red - tooltip: nota redakcyjna + slug: sep-swiatlo + tooltip: "\u015Bwiat\u0142o rozdzielaj\u0105ce sekcje tekstu" model: toolbar.button - pk: 104 + pk: 53 - fields: accesskey: '' - group: [11] - label: opowiadanie + group: [16] + label: asterysk link: '' - params: '{"padding_top": 1, "padding_bottom": 4, "tag": "opowiadanie"}' + params: '{"nocontent": "true", "tag": "sekcja_asterysk"}' scriptlet: insert_tag - slug: opowiadanie - tooltip: '' + slug: sep-asterysk + tooltip: rozdzielenie partii tekstu asteryskiem model: toolbar.button - pk: 18 + pk: 54 - fields: - accesskey: b - group: [12] - label: osoba + accesskey: '' + group: [16] + label: linia link: '' - params: '{"tag": "osoba"}' + params: '{"nocontent": "true", "tag": "separator_linia"}' scriptlet: insert_tag - slug: osoba - tooltip: "wstawia nazw\u0119 osoby w didaskaliach" + slug: sep-linia + tooltip: "rozdzielenie partii tekstu pozioma lini\u0105" model: toolbar.button - pk: 64 + pk: 55 - fields: accesskey: '' - group: [22] - label: osoba na liscie + group: [16] + label: "zast\u0119pnik wersu" link: '' - params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba"}' + params: '{"tag": "zastepnik_wersu"}' scriptlet: insert_tag - slug: osoba-na-liscie - tooltip: "nazwa osoby na liscie os\xF3b" + slug: zastepnik-wersu + tooltip: wykropkowanie wersu model: toolbar.button - pk: 95 + pk: 56 - fields: accesskey: '' - group: [1] - label: "podrozdzia\u0142" + group: [12] + label: didaskalia link: '' - params: '{"tag": "naglowek_podrozdzial"}' + params: '{"padding_top": 1, "padding_bottom": 2, "tag": "didaskalia"}' scriptlet: insert_tag - slug: podrozdzial + slug: didaskalia tooltip: '' model: toolbar.button - pk: 12 + pk: 62 - fields: accesskey: '' - group: [1] - label: "podtytu\u0142" + group: [12] + label: didaskalia tekstowe link: '' - params: '{"tag": "podtytul"}' + params: '{"tag": "didask_tekst"}' scriptlet: insert_tag - slug: podtytul - tooltip: '' + slug: didaskalia-tekstowe + tooltip: "didaskalia umieszczone w obr\u0119bie innego tekstu" model: toolbar.button - pk: 34 + pk: 63 - fields: - accesskey: '' - group: [11] - label: "powie\u015B\u0107" + accesskey: b + group: [12] + label: osoba link: '' - params: '{"padding_top": 1, "padding_bottom": 4, "tag": "powiesc"}' + params: '{"tag": "osoba"}' scriptlet: insert_tag - slug: powiesc - tooltip: '' + slug: osoba + tooltip: "wstawia nazw\u0119 osoby w didaskaliach" model: toolbar.button - pk: 19 + pk: 64 - fields: accesskey: '' - group: [] - label: Wydrukuj - link: print/xml - params: '[]' + group: [21] + label: "d\u0142ugi cyt. poet." + link: '' + params: '{"tag": "poezja_cyt"}' scriptlet: insert_tag - slug: print-xml - tooltip: '' + slug: dlugi-cyt-poet + tooltip: "d\u0142ugi cytat wierszowany wyr\xF3\u017Cniony sk\u0142adem" model: toolbar.button - pk: 86 + pk: 67 - fields: accesskey: '' group: [26] @@ -588,14 +537,14 @@ - fields: accesskey: '' group: [26] - label: przypis edytorski + label: "przypis t\u0142umacza" link: '' - params: '{"tag": "pe"}' + params: '{"tag": "pt"}' scriptlet: insert_tag - slug: przypis-edytorski + slug: przypis-tlumacza tooltip: '' model: toolbar.button - pk: 71 + pk: 69 - fields: accesskey: '' group: [26] @@ -610,102 +559,105 @@ - fields: accesskey: '' group: [26] - label: "przypis t\u0142umacza" + label: przypis edytorski link: '' - params: '{"tag": "pt"}' + params: '{"tag": "pe"}' scriptlet: insert_tag - slug: przypis-tlumacza + slug: przypis-edytorski tooltip: '' model: toolbar.button - pk: 69 + pk: 71 - fields: accesskey: '' - group: [1] - label: "rozdzia\u0142" + group: [21] + label: wywiad pytanie link: '' - params: '{"padding_top": 1, "padding_bottom": 4, "tag": "naglowek_rozdzial"}' + params: '{"tag": "wywiad_pyt"}' scriptlet: insert_tag - slug: rozdzial + slug: wywiad-pytanie tooltip: '' model: toolbar.button - pk: 11 + pk: 72 - fields: accesskey: '' - group: [1] - label: scena + group: [21] + label: "wywiad odpowied\u017A" link: '' - params: '{"tag": "naglowek_scena"}' + params: '{"tag": "wywiad_odp"}' scriptlet: insert_tag - slug: scena + slug: wywiad-odpowiedz tooltip: '' model: toolbar.button - pk: 15 + pk: 73 - fields: accesskey: '' - group: [16] - label: asterysk + group: [13, 22] + label: dedykacja link: '' - params: '{"nocontent": "true", "tag": "sekcja_asterysk"}' + params: '{"tag": "dedykacja"}' scriptlet: insert_tag - slug: sep-asterysk - tooltip: rozdzielenie partii tekstu asteryskiem + slug: dedykacja + tooltip: '' model: toolbar.button - pk: 54 + pk: 74 - fields: accesskey: '' - group: [16] - label: linia + group: [13, 22] + label: motto link: '' - params: '{"nocontent": "true", "tag": "separator_linia"}' + params: '{"padding_top": 1, "padding_bottom": 3, "tag": "motto"}' scriptlet: insert_tag - slug: sep-linia - tooltip: "rozdzielenie partii tekstu pozioma lini\u0105" + slug: motto + tooltip: '' model: toolbar.button - pk: 55 + pk: 75 - fields: - accesskey: '' - group: [16] - label: "\u015Bwiat\u0142o" + accesskey: u + group: [2] + label: "A\u2193" link: '' - params: '{"nocontent": "true", "tag": "sekcja_swiatlo"}' - scriptlet: insert_tag - slug: sep-swiatlo - tooltip: "\u015Bwiat\u0142o rozdzielaj\u0105ce sekcje tekstu" + params: '[]' + scriptlet: lowercase + slug: tolowercase + tooltip: "Zamie\u0144 wielkie litery na ma\u0142e" model: toolbar.button - pk: 53 + pk: 76 - fields: accesskey: '' - group: [15] - label: "s\u0142owo obce" + group: [2] + label: "zamiana cudzys\u0142ow\xF3w 2" link: '' - params: '{"tag": "slowo_obce"}' - scriptlet: insert_tag - slug: slowo-obce - tooltip: "frazy w j\u0119zykach innych ni\u017C polski/definiendum w przypisie" + params: '{"exprs": [["\u00bb|\u201e", ",,"], ["\u00ab", "\""], ["([^=])\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])", + "$1,,$2"], ["^\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])", + ",,$1"], ["(,,)\\s+|\\s+(\")", "$1"]]}' + scriptlet: lineregexp + slug: cudzyslow-niemiecki + tooltip: "zamienia \" na ,, oraz \xBBa\xAB na ,,a\"" model: toolbar.button - pk: 46 + pk: 77 - fields: accesskey: '' - group: [2] - label: slug + group: [22] + label: 'typ osoby ' link: '' - params: '[]' - scriptlet: slugify - slug: slug - tooltip: slugifikacja + 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 model: toolbar.button - pk: 105 + pk: 78 - fields: accesskey: '' - group: [1] - label: "\u015Br\xF3dtytu\u0142" + group: [22] + label: "didaskalia pocz\u0105tkowe" link: '' - params: '{"tag": "srodtytul"}' + params: '{"padding_top": 1, "padding_bottom": 3, "tag": "miejsce_czas"}' scriptlet: insert_tag - slug: srodtytul - tooltip: '' + slug: didaskalia-poczatkowe + tooltip: "komentarze wprowadzaj\u0105ce przed tekstem dramatu" model: toolbar.button - pk: 13 + pk: 79 - fields: accesskey: s group: [12, 17] @@ -718,40 +670,86 @@ model: toolbar.button pk: 81 - fields: - accesskey: '' - group: [28] - label: strofy + accesskey: k + group: [12] + label: kwestia link: '' - params: '{"tag": "strofa"}' - scriptlet: autotag - slug: strofy - tooltip: autotagowanie strof + params: '{"padding_top": 1, "padding_bottom": 1, "tag": "kwestia"}' + scriptlet: insert_tag + slug: kwestia + tooltip: "wstawia kwesti\u0119" model: toolbar.button - pk: 99 + pk: 82 +- fields: + accesskey: w + group: [12, 17] + label: "wers mocno wci\u0119ty" + link: '' + params: '{"tag": "wers_wciety", "attrs": {"typ": ""}}' + scriptlet: insert_tag + slug: wers-mocno-wciety + tooltip: "argumenty wersu wci\u0119tego: od 2 do 6" + model: toolbar.button + pk: 84 - fields: accesskey: '' - group: [11] - label: "tag g\u0142\xF3wny" + group: [12, 17] + label: wers cd. link: '' - params: '{"tag": "utwor"}' + params: '{"tag": "wers_cd"}' scriptlet: insert_tag - slug: tag-glowny + slug: wers-cd + tooltip: "cz\u0119\u015B\u0107 wersu przeniesiona do innego wiersza" + model: toolbar.button + pk: 85 +- fields: + accesskey: '' + group: [] + label: Wydrukuj + link: print/xml + params: '[]' + scriptlet: insert_tag + slug: print-xml + tooltip: '' + model: toolbar.button + pk: 86 +- fields: + accesskey: '' + group: [] + label: Wydrukuj + link: print/html + params: '[]' + scriptlet: insert_tag + slug: htmleditor-print tooltip: '' model: toolbar.button - pk: 17 + pk: 87 +- fields: + accesskey: '' + group: [2] + label: "zamiana cudzys\u0142ow\xF3w 1" + link: '' + params: '{"exprs": [["\u00ab|\u201e", ",,"], ["\u00bb", "\""], ["([^=])\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])", + "$1,,$2"], ["^\"([\u0104\u0118\u00d3\u0141\u017b\u0179\u0106\u0143\u0105\u017c\u017a\u015b\u0144\u00f3\u0142\u0107\\w])", + ",,$1"], ["(,,)\\s+|\\s+(\")", "$1"]]}' + scriptlet: lineregexp + slug: cudzyslow-francuski + tooltip: "zamiana \" na ,, oraz \xABa\xBB na ,,a\"" + model: toolbar.button + pk: 89 - fields: - accesskey: u - group: [2] - label: "A\u2193" + accesskey: q + group: [12, 17] + label: "wers wci\u0119ty" link: '' - params: '[]' - scriptlet: lowercase - slug: tolowercase - tooltip: "Zamie\u0144 wielkie litery na ma\u0142e" + params: '{"tag": "wers_wciety", "attrs": {"typ": "1"}}' + scriptlet: insert_tag + slug: wers-wciety + tooltip: "wstawia wers wci\u0119ty" model: toolbar.button - pk: 76 + pk: 91 - fields: - accesskey: '' + accesskey: r group: [15] label: "tytu\u0142 dzie\u0142a" link: '' @@ -763,70 +761,70 @@ pk: 92 - fields: accesskey: '' - group: [15] - label: "tytu\u0142 dzie\u0142a typ 1" + group: [22] + label: "lista os\xF3b" link: '' - params: '{"tag": "tytul_dziela", "attrs": {"typ": "1"}}' + params: '{"padding_top": 1, "padding_bottom": 4, "tag": "lista_osob"}' scriptlet: insert_tag - slug: tytul-dziela-typ - tooltip: "tytu\u0142 dzie\u0142a w cytowanym tytule dzie\u0142a" + slug: lista-osob + tooltip: "lista os\xF3b poprzedzaj\u0105ca tekst dramatu" model: toolbar.button - pk: 45 + pk: 93 - fields: accesskey: '' - group: [29] - label: uwaga + group: [22] + label: "nag\u0142\xF3wek listy" link: '' - params: '{"tag": "uwaga"}' + params: '{"padding_top": 1, "padding_bottom": 2, "tag": "naglowek_listy"}' scriptlet: insert_tag - slug: uwaga - tooltip: 'uwagi redaktorsko-korektorskie ' + slug: naglowek-listy + tooltip: "nag\u0142\xF3wek listy os\xF3b" model: toolbar.button - pk: 51 + pk: 94 - fields: accesskey: '' - group: [14, 17] - label: wers akap. + group: [22] + label: osoba na liscie link: '' - params: '{"tag": "wers_akap"}' + params: '{"padding_top": 1, "padding_bottom": 1, "tag": "lista_osoba"}' scriptlet: insert_tag - slug: wers-akap - tooltip: "wers rozpoczynaj\u0105cy si\u0119 wci\u0119ciem akapitowym" + slug: osoba-na-liscie + tooltip: "nazwa osoby na liscie os\xF3b" model: toolbar.button - pk: 83 + pk: 95 - fields: accesskey: '' - group: [12, 17] - label: wers cd. + group: [] + label: extra link: '' - params: '{"tag": "wers_cd"}' + params: '{"tag": "extra"}' scriptlet: insert_tag - slug: wers-cd - tooltip: "cz\u0119\u015B\u0107 wersu przeniesiona do innego wiersza" + slug: extra + tooltip: "uwagi dotycz\u0105ce sk\u0142adu" model: toolbar.button - pk: 85 + pk: 96 - fields: - accesskey: w - group: [12, 17] - label: "wers mocno wci\u0119ty" + accesskey: '' + group: [28] + label: akapity link: '' - params: '{"tag": "wers_wciety", "attrs": {"typ": ""}}' - scriptlet: insert_tag - slug: wers-mocno-wciety - tooltip: "argumenty wersu wci\u0119tego: od 2 do 6" + params: '{"tag": "akap"}' + scriptlet: autotag + slug: akapity + tooltip: "autotagowanie akapit\xF3w" model: toolbar.button - pk: 84 + pk: 97 - fields: - accesskey: q - group: [12, 17] - label: "wers wci\u0119ty" + accesskey: '' + group: [28] + label: strofy link: '' - params: '{"tag": "wers_wciety", "attrs": {"typ": "1"}}' - scriptlet: insert_tag - slug: wers-wciety - tooltip: "wstawia wers wci\u0119ty" + params: '{"tag": "strofa"}' + scriptlet: autotag + slug: strofy + tooltip: autotagowanie strof model: toolbar.button - pk: 91 + pk: 99 - fields: accesskey: '' group: [28] @@ -838,76 +836,132 @@ tooltip: "autotagowanie wers\xF3w wci\u0119tych" model: toolbar.button pk: 100 +- fields: + accesskey: g + 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: [15] - label: www + group: [12] + label: kwestiostrofa link: '' - params: '{"tag": "www"}' - scriptlet: insert_tag - slug: www + params: '[["insert_stanza", {"tag": "strofa"}], ["insert_tag", {"padding_top": + 1, "padding_bottom": 1, "tag": "kwestia"}]]' + scriptlet: macro + slug: kwestiostrofa tooltip: '' model: toolbar.button - pk: 48 + pk: 102 - fields: accesskey: '' - group: [12, 15] - label: "wyr\xF3\u017Cnienie" + group: [28] + label: "nag\u0142. dramatu" link: '' - params: '{"tag": "wyroznienie"}' + params: '{"exprs": [["^AKT(\\s\\w*)$", "AKT$1"], + ["^SCENA(\\s\\w*)$", "SCENA$1"], ["([A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179]{2}[A-Z\u0104\u0106\u0118\u0141\u0143\u00d3\u015a\u017b\u0179\\s]+)$", + "$1"]]}' + scriptlet: lineregexp + slug: nagl-dramatu + tooltip: "autotagowanie akt\xF3w, scen, nag\u0142\xF3wk\xF3w os\xF3b" + model: toolbar.button + pk: 103 +- fields: + accesskey: x + group: [13] + label: nota red. + link: '' + params: '{"padding_top": 1, "padding_bottom": 3, "tag": "nota_red"}' scriptlet: insert_tag - slug: wyroznienie - tooltip: "wyr\xF3\u017Cnienie autorskie" + slug: nota-red + tooltip: nota redakcyjna model: toolbar.button - pk: 44 + pk: 104 - fields: accesskey: '' - group: [11] - label: wywiad + group: [2] + label: slug link: '' - params: '{"padding_top": 1, "padding_bottom": 4, "tag": "wywiad"}' - scriptlet: insert_tag - slug: wywiad - tooltip: '' + params: '[]' + scriptlet: slugify + slug: slug + tooltip: slugifikacja model: toolbar.button - pk: 25 + pk: 105 - fields: accesskey: '' - group: [21] - label: "wywiad odpowied\u017A" + group: [11] + label: trim begin link: '' - params: '{"tag": "wywiad_odp"}' - scriptlet: insert_tag - slug: wywiad-odpowiedz - tooltip: '' + params: '{"text": "\n\n"}' + scriptlet: insert_text + slug: trim-begin + tooltip: "Wstawia pocz\u0105tkowy znacznik ci\u0119cia cz\u0119\u015Bci" model: toolbar.button - pk: 73 + pk: 106 - fields: accesskey: '' - group: [21] - label: wywiad pytanie + group: [11] + label: trim end link: '' - params: '{"tag": "wywiad_pyt"}' - scriptlet: insert_tag - slug: wywiad-pytanie - tooltip: '' + params: '{"text": "\n\n"}' + scriptlet: insert_text + slug: trim-end + tooltip: "Wstawia ko\u0144cowy znacznik ci\u0119cia cz\u0119\u015Bci" model: toolbar.button - pk: 72 + pk: 107 - fields: accesskey: '' - group: [16] - label: "zast\u0119pnik wersu" + group: [11] + label: etap link: '' - params: '{"tag": "zastepnik_wersu"}' + params: '{"tag": "developmentStage"}' scriptlet: insert_tag - slug: zastepnik-wersu - tooltip: wykropkowanie wersu + slug: etap + tooltip: "wymaga uwsp\xF3\u0142czesnienia: 0.3" 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});"} + pk: 108 +- fields: {code: '-'} model: toolbar.scriptlet - pk: macro + 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\"\ + ;\n if(expr.length > 2)\n opts = expr[2];\n\n return {rx:\ + \ new RegExp(expr[0], opts), repl: expr[1]};\n});\n\nvar partial = true;\n\ + var text = cm.selection();\n\nif(!text) {\n var cpos = cm.cursorPosition();\n\ + \ cpos.line = cm.lineNumber(cpos.line)\n cm.selectLines(cm.firstLine(),\ + \ 0, cm.lastLine(), 0);\n\n text = cm.selection();\n partial = false;\n\ + }\n\nvar original = text;\n$(exprs).each(function() { \n text = text.replace(this.rx,\ + \ this.repl);\n});\n\nif( original != text) \n{ \n cm.replaceSelection(text);\n\ + \ panel.fireEvent('contentChanged');\n editor.showPopup('generic-yes',\ + \ 'Zmieniono tekst' );\n editor.advancePopupQueue();\n}\nelse {\n \ + \ editor.showPopup('generic-info', 'Brak zmian w tek\u015Bcie.');\n\ + \ editor.advancePopupQueue();\n}\n\nif(!partial) {\n cm.selectLines(\ + \ cm.nthLine(cpos.line), cpos.character );\n}"} + model: toolbar.scriptlet + pk: fulltextregexp +- fields: {code: "var texteditor = panel.texteditor;\r\nvar text = texteditor.selection();\r\ + \n\r\nif(text) {\r\n var verses = text.split('\\n');\r\n var text =\ + \ ''; var buf = ''; var ebuf = '';\r\n var first = true;\r\n\r\n for(var\ + \ i=0; i < verses.length; i++) {\r\n verse = verses[i].replace(/^\\\ + s+/, \"\").replace(/\\s+$/, \"\"); \r\n if(verse) {\r\n text\ + \ += (buf ? buf + '/\\n' : '') + ebuf;\r\n buf = (first ? '\\\ + n' : '') + verses[i];\r\n ebuf = '';\r\n first = false;\r\n\ + \ } else { \r\n ebuf += '\\n' + verses[i];\r\n }\r\n };\r\ + \n text = text + buf + '\\n' + ebuf; \r\n texteditor.replaceSelection(text);\r\ + \n}\r\n\r\nif (!text) {\r\n var pos = texteditor.cursorPosition();\r\ + \n texteditor.selectLines(pos.line, pos.character + 6 + 2);\r\n}\r\n\ + \r\n\r\n\r\n\r\n\r\n\r\n\r\npanel.fireEvent('contentChanged');"} + model: toolbar.scriptlet + pk: insert_stanza - 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\ @@ -925,6 +979,9 @@ \ + 2);\n}\n\npanel.fireEvent('contentChanged');"} model: toolbar.scriptlet pk: insert_tag +- fields: {code: '-'} + model: toolbar.scriptlet + pk: insert_text - fields: {code: "editor.showPopup('generic-info', 'Przetwarzanie zaznaczonego tekstu...',\ \ '', -1);\n\nvar cm = panel.texteditor;\nvar exprs = $.map(params.exprs,\ \ function(expr) {\n\n var opts = \"g\";\n\n if(expr.length > 2)\n\ @@ -945,26 +1002,6 @@ \ 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\"\ - ;\n if(expr.length > 2)\n opts = expr[2];\n\n return {rx:\ - \ new RegExp(expr[0], opts), repl: expr[1]};\n});\n\nvar partial = true;\n\ - var text = cm.selection();\n\nif(!text) {\n var cpos = cm.cursorPosition();\n\ - \ cpos.line = cm.lineNumber(cpos.line)\n cm.selectLines(cm.firstLine(),\ - \ 0, cm.lastLine(), 0);\n\n text = cm.selection();\n partial = false;\n\ - }\n\nvar original = text;\n$(exprs).each(function() { \n text = text.replace(this.rx,\ - \ this.repl);\n});\n\nif( original != text) \n{ \n cm.replaceSelection(text);\n\ - \ panel.fireEvent('contentChanged');\n editor.showPopup('generic-yes',\ - \ 'Zmieniono tekst' );\n editor.advancePopupQueue();\n}\nelse {\n \ - \ editor.showPopup('generic-info', 'Brak zmian w tek\u015Bcie.');\n\ - \ editor.advancePopupQueue();\n}\n\nif(!partial) {\n cm.selectLines(\ - \ cm.nthLine(cpos.line), cpos.character );\n}"} - model: toolbar.scriptlet - pk: fulltextregexp - 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;\ @@ -977,21 +1014,10 @@ \n};"} model: toolbar.scriptlet pk: lowercase -- fields: {code: "var texteditor = panel.texteditor;\r\nvar text = texteditor.selection();\r\ - \n\r\nif(text) {\r\n var verses = text.split('\\n');\r\n var text =\ - \ ''; var buf = ''; var ebuf = '';\r\n var first = true;\r\n\r\n for(var\ - \ i=0; i < verses.length; i++) {\r\n verse = verses[i].replace(/^\\\ - s+/, \"\").replace(/\\s+$/, \"\"); \r\n if(verse) {\r\n text\ - \ += (buf ? buf + '/\\n' : '') + ebuf;\r\n buf = (first ? '\\\ - n' : '') + verses[i];\r\n ebuf = '';\r\n first = false;\r\n\ - \ } else { \r\n ebuf += '\\n' + verses[i];\r\n }\r\n };\r\ - \n text = text + buf + '\\n' + ebuf; \r\n texteditor.replaceSelection(text);\r\ - \n}\r\n\r\nif (!text) {\r\n var pos = texteditor.cursorPosition();\r\ - \n texteditor.selectLines(pos.line, pos.character + 6 + 2);\r\n}\r\n\ - \r\n\r\n\r\n\r\n\r\n\r\n\r\npanel.fireEvent('contentChanged');"} +- 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: insert_stanza + pk: macro - fields: {code: '-'} model: toolbar.scriptlet pk: slugify -