|
|
Autor |
Wiadomość |
Piotrek24
NotePad
Dołączył: 11 Cze 2014
Posty: 13
Przeczytał: 0 tematów
Pomógł: 1 raz Ostrzeżeń: 0/5
|
Wysłany: Śro 15:57, 11 Cze 2014 Temat postu: skrypt do dzielenia polskich tekstów piosenek na sylaby |
|
|
Z wdzięczności do administratora tego forum za pomoc przy radzeniu sobie z programem finale zamieszczam skrypt, który sam napisałem do automatycznego dzielenia polskich słów na sylaby.
Skrypt robi niewiele błędów i wymaga drobnych korekt. Potrzebowałbym znać spis wszystkich możliwych dźwięków - zbitek liter w języku polskim, żeby skrypt był kompletny.
Założenie jest takie, że dzielimy słowa na sylaby tak jak by je zaśpiewał wokalista, a nie tak, jak się piszę normalnie po polsku.
Jeśli wokalista ma do zaśpiewania długi dźwięk, to trzyma go na samogłosce, dopiero na końcu wybrzmiewania dźwięku dodaje spółgłoski. Dlatego wszystkie sylaby kończą się samogłoską.
<$scriptprefs
$name=Polskie sylaby
$keycut=ctrl shift alt P
$usekeycut=true
$showinmenu=true
$scriptprefs>
<$script
//Text Search and Replace, also called TSAR, is a one of FinaleScript's more
//powerful features.
//NOTE: TSAR is also available as a separate Plug-in in Plug-ins-->Miscelleneous
//traktujemy zmianę wiersza jak odstęp
search "<013>" lyrics replace with "<013> "
//dodaję myślniki do samogłosek
search "a" lyrics replace with "a-"
search "ą" lyrics replace with "ą-"
search "ę" lyrics replace with "ę-"
search "e" lyrics replace with "e-"
search "i" lyrics replace with "i-"
search "o" lyrics replace with "o-"
search "ó" lyrics replace with "ó-"
search "u" lyrics replace with "u-"
search "y" lyrics replace with "y-"
//usuwam myślniki z podwójnych samogłosek
search "i-e-" lyrics replace with "ie-"
search "i-a-" lyrics replace with "ia-"
search "i-ą-" lyrics replace with "ią-"
search "i-ę-" lyrics replace with "ię-"
search "i-u-" lyrics replace with "iu-"
search "i-o-" lyrics replace with "io-"
search "i-ó-" lyircs replace with "ió-"
//usuwam myślnik z wyrazów kończących się samogłoską
search "a- " lyrics replace with "a "
search "e- " lyrics replace with "e "
search "i- " lyrics replace with "i "
search "o- " lyrics replace with "o "
search "ó- " lyrics replace with "ó "
search "y- " lyrics replace with "y "
search "u- " lyrics replace with "u "
search "ą- " lyrics replace with "ą "
search "ę- " lyrics replace with "ę "
//usuwamy samotne myślniki z samotnych spółgłosek na końcu wyrazu
search "-b " lyrics replace with "b "
search "-c " lyrics replace with "c "
search "-d " lyrics replace with "d "
search "-f " lyrics replace with "f "
search "-g " lyrics replace with "g "
search "-h " lyrics replace with "h "
search "-j " lyrics replace with "j "
search "-k " lyrics replace with "k "
search "-l " lyrics replace with "l "
search "-m " lyrics replace with "m "
search "-n " lyrics replace with "n "
search "-p " lyrics replace with "p "
search "-r " lyrics replace with "r "
search "-s " lyrics replace with "s "
search "-t " lyrics replace with "t "
search "-w " lyrics replace with "w "
search "-w " lyrics replace with "w "
search "-z " lyrics replace with "z "
// usuwany myślniki z samotnych spółgłosek na końcu wiersza
search "-b<013>" lyrics replace with "b<013>"
search "-c<013>" lyrics replace with "c<013>"
search "-d<013>" lyrics replace with "d<013>"
search "-f<013>" lyrics replace with "f<013>"
search "-g<013>" lyrics replace with "g<013>"
search "-h<013>" lyrics replace with "h<013>"
search "-j<013>" lyrics replace with "j<013>"
search "-k<013>" lyrics replace with "k<013>"
search "-l<013>" lyrics replace with "l<013>"
search "-m<013>" lyrics replace with "m<013>"
search "-n<013>" lyrics replace with "n<013>"
search "-p<013>" lyrics replace with "p<013>"
search "-r<013>" lyrics replace with "r<013>"
search "-s<013>" lyrics replace with "s<013>"
search "-t<013>" lyrics replace with "t<013>"
search "-w<013>" lyrics replace with "w<013>"
search "-w<013>" lyrics replace with "w<013>"
search "-z<013>" lyrics replace with "z<013>"
//to samo z polskimi znakami
search "-ć " lyrics replace with "ć "
search "-ś " lyrics replace with "ś "
search "-ł " lyrics replace with "ł "
search "-ń " lyrics replace with "ń "
search "-ź " lyrics replace with "ź "
search "-ż " lyrics replace with "ż "
search "-ć<013>" lyrics replace with "ć<013>"
search "-ś<013>" lyrics replace with "ś<013>"
search "-ł<013>" lyrics replace with "ł<013>"
search "-ń<013>" lyrics replace with "ń<013>"
search "-ź<013>" lyrics replace with "ź<013>"
search "-ż<013>" lyrics replace with "ż<013>"
//to samo z podwójnymi spółgłoskami i zbitkami
search "-ch " lyrics replace with "ch "
search "-dz " lyrics replace with "dz "
search "-sz " lyrics replace with "sz "
search "-sz " lyrics replace with "sz "
search "-cz " lyrics replace with "cz "
search "-dź " lyrics replace with "dź "
search "-dż " lyrics replace with "dż "
search "-st " lyrics replace with "st "
search "-kt " lyrics replace with "kt "
search "-ść " lyrics replace with "ść "
search "-szcz " lyrics replace with "szcz "
search "-dł " lyrics replace with "dł "
search "-rz " lyrics replace with "rz "
search "-ńcz " lyrics replace with "ńcz "
search "-zł " lyrics replace with "zł "
search "-ch<013>" lyrics replace with "ch<013>"
search "-dz<013>" lyrics replace with "dz<013>"
search "-sz<013>" lyrics replace with "sz<013>"
search "-sz<013>" lyrics replace with "sz<013>"
search "-cz<013>" lyrics replace with "cz<013>"
search "-dź<013>" lyrics replace with "dź<013>"
search "-jdź<013>" lyrics replace with "jdź<013>"
search "-dż<013>" lyrics replace with "dż<013>"
search "-st<013>" lyrics replace with "st<013>"
search "-tm<013>" lyrics replace with "tm<013>"
search "-kt<013>" lyrics replace with "kt<013>"
search "-ść<013>" lyrics replace with "ść<013>"
search "-szcz<013>" lyrics replace with "szcz<013>"
search "-dł<013>" lyrics replace with "dł<013>"
search "-kł<013>" lyrics replace with "kł<013>"
search "-sł<013>" lyrics replace with "sł<013>"
search "-tr<013>" lyrics replace with "tr<013>"
search "-zł<013>" lyrics replace with "zł<013>"
search "-ńcz<013>" lyrics replace with "ńcz<013>"
search "-rz<013>" lyrics replace with "rz<013>"
search "-rzch<013>" lyrics replace with "rzch<013>"
search "-mstw<013>" lyrics replace with "mstw<013>"
//usuwamy myślnik przed znakami interpunkcyjnymi
search "-." lyrics replace with "."
search "-," lyrics replace with ","
search "-<34>," lyrics replace with "<34>,"
search "-<34>" lyrics replace with "<34>"
//koniec tekstu nie wiem
search "-,<3>" lyrics replace with "<3>"
search "-,<4>" lyrics replace with "<4>"
//zamieniamy pojedynczą samogłoskę po sylabie na końcu wyrazu z kropką
search "-b." lyrics replace with "b."
search "-c." lyrics replace with "c."
search "-d." lyrics replace with "d."
search "-f." lyrics replace with "f."
search "-g." lyrics replace with "g."
search "-h." lyrics replace with "h."
search "-j." lyrics replace with "j."
search "-k." lyrics replace with "k."
search "-l." lyrics replace with "l."
search "-ł." lyrics replace with "ł."
search "-m." lyrics replace with "m."
search "-n." lyrics replace with "n."
search "-p." lyrics replace with "p."
search "-r." lyrics replace with "r."
search "-s." lyrics replace with "s."
search "-t." lyrics replace with "t."
search "-w." lyrics replace with "w."
search "-z." lyrics replace with "z."
//to samo z polskimi znakami
search "-ć." lyrics replace with "ć."
search "-ł." lyrics replace with "ł."
search "-ń." lyrics replace with "ń."
search "-ś." lyrics replace with "ś."
search "-ź." lyrics replace with "ź."
search "-ż." lyrics replace with "ż."
//to samo z podwójnymi spółgłoskami i zbitkami
search "-ch." lyrics replace with "ch."
search "-dz." lyrics replace with "dz."
search "-sz." lyrics replace with "sz."
search "-cz." lyrics replace with "cz."
search "-dź." lyrics replace with "dź."
search "-jdź." lyrics replace with "jdź."
search "-dż." lyrics replace with "dż."
search "-st." lyrics replace with "st."
search "-kt." lyrics replace with "kt."
search "-tm." lyrics replace with "tm."
search "-ść." lyrics replace with "ść."
search "-szcz. " lyrics replace with "szcz."
search "-dł. " lyrics replace with "dł."
search "-kł. " lyrics replace with "kł."
search "-sł. " lyrics replace with "sł."
search "-zł. " lyrics replace with "zł."
search "-ńcz. " lyrics replace with "ńcz."
search "-rz. " lyrics replace with "rz."
search "-rzch. " lyrics replace with "rzch."
search "-mstw. " lyrics replace with "mstw."
search "-tr. " lyrics replace with "tr."
//zamieniamy pojedynczą samogłoskę po sylabie na końcu wyrazu z wykrzykniem
search "-b!" lyrics replace with "b!"
search "-c!" lyrics replace with "c!"
search "-d!" lyrics replace with "d!"
search "-f!" lyrics replace with "f!"
search "-g!" lyrics replace with "g!"
search "-h!" lyrics replace with "h!"
search "-j!" lyrics replace with "j!"
search "-k!" lyrics replace with "k!"
search "-l!" lyrics replace with "l!"
search "-ł!" lyrics replace with "ł!"
search "-m!" lyrics replace with "m!"
search "-n!" lyrics replace with "n!"
search "-p!" lyrics replace with "p!"
search "-r!" lyrics replace with "r!"
search "-s!" lyrics replace with "s!"
search "-t!" lyrics replace with "t!"
search "-w!" lyrics replace with "w!"
search "-z!" lyrics replace with "z!"
//to samo z polskimi znakami
search "-ć!" lyrics replace with "ć!"
search "-ł!" lyrics replace with "ł!"
search "-ń!" lyrics replace with "ń!"
search "-ś!" lyrics replace with "ś!"
search "-ź!" lyrics replace with "ź!"
search "-ż!" lyrics replace with "ż!"
//to samo z podwójnymi spółgłoskami i zbitkami
search "-ch!" lyrics replace with "ch!"
search "-dz!" lyrics replace with "dz!"
search "-sz!" lyrics replace with "sz!"
search "-cz!" lyrics replace with "cz!"
search "-dź!" lyrics replace with "dź!"
search "-jdź!" lyrics replace with "jdź!"
search "-dż!" lyrics replace with "dż!"
search "-st!" lyrics replace with "st!"
search "-kt!" lyrics replace with "kt!"
search "-tm!" lyrics replace with "tm!"
search "-ść!" lyrics replace with "ść!"
search "-szcz! " lyrics replace with "szcz!"
search "-dł! " lyrics replace with "dł!"
search "-sł! " lyrics replace with "sł!"
search "-zł! " lyrics replace with "zł!"
search "-kł! " lyrics replace with "kł!"
search "-ńcz! " lyrics replace with "ńcz!"
search "-rz! " lyrics replace with "rz!"
search "-rzch! " lyrics replace with "rzch!"
search "-mstw! " lyrics replace with "mstw!"
search "-tr! " lyrics replace with "tr!"
//zamieniamy pojedynczą samogłoskę po sylabie na końcu wyrazu ze znakiem zapytania
search "-b?" lyrics replace with "b?"
search "-c?" lyrics replace with "c?"
search "-d?" lyrics replace with "d?"
search "-f?" lyrics replace with "f?"
search "-g?" lyrics replace with "g?"
search "-h?" lyrics replace with "h?"
search "-j?" lyrics replace with "j?"
search "-k?" lyrics replace with "k?"
search "-l?" lyrics replace with "l?"
search "-ł?" lyrics replace with "ł?"
search "-m?" lyrics replace with "m?"
search "-n?" lyrics replace with "n?"
search "-p?" lyrics replace with "p?"
search "-r?" lyrics replace with "r?"
search "-s?" lyrics replace with "s?"
search "-t?" lyrics replace with "t?"
search "-w?" lyrics replace with "w?"
search "-z?" lyrics replace with "z?"
//to samo z polskimi znakami
search "-ć?" lyrics replace with "ć?"
search "-ł?" lyrics replace with "ł?"
search "-ń?" lyrics replace with "ń?"
search "-ś?" lyrics replace with "ś?"
search "-ź?" lyrics replace with "ź?"
search "-ż?" lyrics replace with "ż?"
//to samo z podwójnymi spółgłoskami i zbitkami
search "-ch?" lyrics replace with "ch?"
search "-dz?" lyrics replace with "dz?"
search "-sz?" lyrics replace with "sz?"
search "-cz?" lyrics replace with "cz?"
search "-dź?" lyrics replace with "dź?"
search "-jdź?" lyrics replace with "jdź?"
search "-dż?" lyrics replace with "dż?"
search "-st?" lyrics replace with "st?"
search "-kt?" lyrics replace with "kt?"
search "-tm?" lyrics replace with "tm?"
search "-ść?" lyrics replace with "ść?"
search "-szcz? " lyrics replace with "szcz?"
search "-dł? " lyrics replace with "dł?"
search "-zł? " lyrics replace with "zł?"
search "-kł? " lyrics replace with "kł?"
search "-sł? " lyrics replace with "sł?"
search "-ńcz? " lyrics replace with "ńcz?"
search "-rz? " lyrics replace with "rz?"
search "-rzch? " lyrics replace with "rzch?"
search "-mstw? " lyrics replace with "mstw?"
search "-tr? " lyrics replace with "tr?"
//zamieniamy pojedynczą samogłoskę po sylabie na końcu wyrazu z przecinkiem
search "-b," lyrics replace with "b,"
search "-c," lyrics replace with "c,"
search "-d," lyrics replace with "d,"
search "-f," lyrics replace with "f,"
search "-g," lyrics replace with "g,"
search "-h," lyrics replace with "h,"
search "-j," lyrics replace with "j,"
search "-k," lyrics replace with "k,"
search "-l," lyrics replace with "l,"
search "-ł," lyrics replace with "ł,"
search "-m," lyrics replace with "m,"
search "-n," lyrics replace with "n,"
search "-p," lyrics replace with "p,"
search "-r," lyrics replace with "r,"
search "-s," lyrics replace with "s,"
search "-t," lyrics replace with "t,"
search "-w," lyrics replace with "w,"
search "-z," lyrics replace with "z,"
//to samo z polskimi znakami
search "-ć," lyrics replace with "ć,"
search "-ł," lyrics replace with "ł,"
search "-ń," lyrics replace with "ń,"
search "-ś," lyrics replace with "ś,"
search "-ź," lyrics replace with "ź,"
search "-ż," lyrics replace with "ż,"
//to samo z podwójnymi spółgłoskami i zbitkami
search "-ch," lyrics replace with "ch,"
search "-dz," lyrics replace with "dz,"
search "-sz," lyrics replace with "sz,"
search "-cz," lyrics replace with "cz,"
search "-dź," lyrics replace with "dź,"
search "-jdź," lyrics replace with "jdź,"
search "-dż," lyrics replace with "dż,"
search "-st," lyrics replace with "st,"
search "-kt," lyrics replace with "kt,"
search "-tm," lyrics replace with "tm,"
search "-ść," lyrics replace with "ść,"
search "-szcz," lyrics replace with "szcz,"
search "-dł," lyrics replace with "dł,"
search "-sł," lyrics replace with "sł,"
search "-zł," lyrics replace with "zł,"
search "-kł," lyrics replace with "kł,"
search "-tr," lyrics replace with "tr,"
search "-ńcz," lyrics replace with "ńcz,"
search "-rz," lyrics replace with "rz,"
search "-rzch," lyrics replace with "rzch,"
search "-mstw," lyrics replace with "mstw,"
//zamieniamy odstęp po jednoliterowym przyimku na alt+0160
search " w " lyrics replace with " w<0160>"
search " z " lyrics replace with " z<0160>"
search " W " lyrics replace with " W<0160>"
search " Z " lyrics replace with " Z<0160>"
//zamieniamy podwójny myślnik na pojedynczy by można było testować skrypt wiele razy
search "--" lyrics replace with "-"
//jeszcze raz to samo by usunąć poprzedni podwójny myślnik
search "--" lyrics replace with "-"
//usunięcie myślnika po zmianie wiersza
search "-<013>" lyrics replace "<013>"
$script>
Post został pochwalony 1 raz
|
|
Powrót do góry |
|
|
|
|
DanielFirlej
Administrator
Dołączył: 21 Paź 2006
Posty: 2402
Przeczytał: 0 tematów
Pomógł: 119 razy Ostrzeżeń: 0/5 Skąd: Siedlce
|
Wysłany: Śro 20:25, 11 Cze 2014 Temat postu: |
|
|
Bardzo ciekawy skrypt! Witamy na pokładzie i czekamy na kolejne
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
|
piotrn
NotePad
Dołączył: 07 Lut 2017
Posty: 9
Przeczytał: 0 tematów
Ostrzeżeń: 0/5
|
Wysłany: Czw 15:26, 16 Kwi 2020 Temat postu: |
|
|
Fajna rzecz. Przyznaję. Tylko czy to można dodać jakoś do programu? Jeśli tak, to w jaki sposób?
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
|
DanielFirlej
Administrator
Dołączył: 21 Paź 2006
Posty: 2402
Przeczytał: 0 tematów
Pomógł: 119 razy Ostrzeżeń: 0/5 Skąd: Siedlce
|
Wysłany: Czw 16:46, 16 Kwi 2020 Temat postu: |
|
|
Dodatki/plug-ins>FinaleScript
Tam musisz utworzyć nowy skrypt i wkleić zawartość. Szczegóły i podręcznik masz w przyklejonym temacie
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
|
|
|
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach
|
fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
gBlue v1.3 // Theme created by Sopel &
Programosy
|