-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XDXF in StarDict formatting issues #532
Comments
Can you try with We set class=example, so you can change color in css. |
For example, I found this code about DSL: elif tag == "ex":
tr.output += f'<span class="ex"><font color="{tr.exampleColor}">' Can we change the style of |
I wonder why do we have 2 different transformers? And why does XSL works better? Why does it have these settings:
They are unused for some reason. |
I think it would be great to have some editable CSS file (for CSS classes |
I tried to use the same parameter def makeTransformer(self) -> None:
if self._xsl:
from pyglossary.xdxf.xsl_transform import XslXdxfTransformer
self._htmlTr = XslXdxfTransformer(encoding=self._encoding)
from pyglossary.xdxf.transform import XdxfTransformer
self._htmlTr = XdxfTransformer(encoding=self._encoding) |
Asked this question how to add custom CSS file here: #560 |
Issues:
kref
tags are removed\n
not rendered<ex>
should be grey by default and with indentExample file in MEGA in folder "LingvoUniversal 2008".
Here's a gloss as Goldendict shows it (2 consequent screenshots):
And this is how we convert it to HTML (3 consequent screenshots):
The text was updated successfully, but these errors were encountered: