|
@@ -19,7 +19,7 @@ def load_tmpl(tmpl: str) -> Template: |
|
|
def up_or_title(pvd: str, s: str) -> str: |
|
|
def up_or_title(pvd: str, s: str) -> str: |
|
|
if s in cfg.UPPER_WORDS.get(pvd, ()): |
|
|
if s in cfg.UPPER_WORDS.get(pvd, ()): |
|
|
return s.upper() |
|
|
return s.upper() |
|
|
elif s in cfg.TITLE_WORDS.get(pvd, {}): |
|
|
|
|
|
|
|
|
if s in cfg.TITLE_WORDS.get(pvd, {}): |
|
|
return cfg.TITLE_WORDS[pvd][s] |
|
|
return cfg.TITLE_WORDS[pvd][s] |
|
|
return s.title() |
|
|
return s.title() |
|
|
|
|
|
|
|
|