# lektor_ai_comfy — replacement dictionary # # Words and phrases rewritten in the subtitles before they are sent to the TTS # engine, for anything the model reads out wrong: abbreviations, units, symbols, # names spelled in a way it mispronounces. # # One rule per line: # # pattern = replacement # # * Matching is CASE-SENSITIVE and matches whole words only: "np." leaves # "znp." alone, and "Joshua" leaves "joshua" alone. # * The replacement is inserted exactly as written — nothing is re-capitalised # for you. Note that the first letter of every subtitle block is already # capitalised before these rules run, so if a word can start a block, add a # second rule for the capitalised form. # * Longer patterns win: "km/h" below is used even though a plain "km" rule # would also fit, whatever order the two are written in. # * The replacement is never re-scanned, so rules cannot feed into each other. # * A pattern wrapped in slashes is a regular expression, and \1 \2 … in the # replacement refer to its groups. # * A line starting with # or ; is a comment. An empty replacement deletes the # phrase. # * "->" and "=>" work as separators too, if you prefer them to "=". # # The changes are visible in clips/tts_input.srt after a run — check there if a # rule is not doing what you expect. # ── Units ────────────────────────────────────────────────────────────────── km/h = kilometrów na godzinę m/s = metrów na sekundę # ── Abbreviations ────────────────────────────────────────────────────────── np. = na przykład tzn. = to znaczy # These two almost always close a sentence, so the dot is kept; drop it if you # see an unwanted pause mid-sentence. itp. = i tym podobne. itd. = i tak dalej. m.in. = między innymi 24/7 = dwadzieścia cztery na siedem # ── Symbols ──────────────────────────────────────────────────────────────── /(\d+)\s*%/ = \1 procent /(\d+)\s*°C/ = \1 stopni Celsjusza & = i # ── Your own rules below ───────────────────────────────────────────────────