PDF(HTML) templates are shown here.
from gummy.utils import tohtml
[success] local driver can be built. [failure] remote driver can't be built. DRIVER_TYPE: local
contents = [
{
"en": "English",
"ja": "日本語",
"head": "見出し",
"subhead": "小見出し"
}
]
_ = tohtml(
path="example.html",
title="Title",
contents=contents,
template="paper.html",
)
Save HTML file at example.html
/Users/iwasakishuto/Github/Translation-Gummy/gummy/utils/outfmt_utils.py:46: UserWarning: An attribute img is not used in this contents, but used in /Users/iwasakishuto/Github/Translation-Gummy/gummy/templates/paper.html. warnings.warn(f"An attribute {toGREEN(key)} is not used in this contents, but used in {toBLUE(path)}.")