Idumea
This commit is contained in:
@ -7,9 +7,9 @@ two = 'What will become of me? '
|
||||
|
||||
|
||||
def latex(phrase: str, dx: float, dy: float, size: int, color: str) -> str:
|
||||
x = '' if dx == 0 else f'\\hspace{{{dx}em}}'
|
||||
y = phrase if dy == 0 else f'\\raisebox{{{dy}em}}{{{phrase}}}'
|
||||
return f'\\fontspec{{Gentium Book Plus}}[Color={color},Ligatures=TeX]{x}{y}\n'
|
||||
result = phrase if dy == 0 else f'\\raisebox{{{dy}em}}{{{phrase}}}'
|
||||
result = result if dx == 0 else f'\\shifttext{{{dx}em}}{{{result}}}'
|
||||
return f'\\fontspec{{Gentium Book Plus}}[Color={color},Ligatures=TeX]{result}\n'
|
||||
|
||||
def html(phrase: str, dx: int, dy: int, size: int, color: float) -> str:
|
||||
return f'<span style="position: relative; left: {dx}em; top: {dy}em; opacity: {color}">{phrase}</span>\n'
|
||||
|
||||
Reference in New Issue
Block a user