mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
52f12422b0
commit
8a4b868099
@ -193,7 +193,7 @@ class AnkiWindow(QWidget):
|
||||
example = self.example.toPlainText()
|
||||
ruby = self.ruby
|
||||
fields = {
|
||||
"word": word,
|
||||
"word": json.dumps(word),
|
||||
"rubytext": ruby,
|
||||
"explain": explain,
|
||||
"example_sentence": example,
|
||||
|
@ -8,11 +8,19 @@
|
||||
|
||||
<script>
|
||||
ruby = {{ rubytext }}
|
||||
word = {{ word }}
|
||||
html = ''
|
||||
if (ruby.length) {
|
||||
for (i = 0; i < ruby.length; i++) {
|
||||
html += ruby[i]['orig'] + '<rt>' + ruby[i]['hira'] + '</rt>';
|
||||
}
|
||||
document.getElementById('rubyword').innerHTML = '<ruby>' + html + '</ruby>'
|
||||
html = '<ruby>' + html + '</ruby>'
|
||||
}
|
||||
else {
|
||||
html = word
|
||||
}
|
||||
document.getElementById('rubyword').innerHTML = html
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
@ -8,11 +8,19 @@
|
||||
|
||||
<script>
|
||||
ruby = {{ rubytext }}
|
||||
word = {{ word }}
|
||||
html = ''
|
||||
if (ruby.length) {
|
||||
for (i = 0; i < ruby.length; i++) {
|
||||
html += ruby[i]['orig'] + '<rt>' + ruby[i]['hira'] + '</rt>';
|
||||
}
|
||||
document.getElementById('rubyword').innerHTML = '<ruby>' + html + '</ruby>'
|
||||
html = '<ruby>' + html + '</ruby>'
|
||||
}
|
||||
else {
|
||||
html = word
|
||||
}
|
||||
document.getElementById('rubyword').innerHTML = html
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user