Skip to content
Snippets Groups Projects

Sazba diplomů

1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
+ 10
0
@@ -24,6 +24,16 @@ def tex_arg(s: Any) -> str:
@@ -24,6 +24,16 @@ def tex_arg(s: Any) -> str:
return '{' + s + '}'
return '{' + s + '}'
 
def tex_key(key: str) -> str:
 
"""
 
Primitivní překlad klíčů ve slovnících na jména TeXových maker.
 
"""
 
key = key.replace('_', "")
 
key = re.sub('[1-9]', lambda match: chr(64 + int(match[0])), key)
 
key = key.replace('0', 'Z')
 
return key
 
 
def format_hacks(tex_hacks: str) -> str:
def format_hacks(tex_hacks: str) -> str:
"""
"""
Loading