finalion / WordQuery

word fast-querying addon for anki
https://ankiweb.net/shared/info/775418273
GNU General Public License v3.0
291 stars 61 forks source link

fix line break compatible issue for stardict #17

Closed GarrisonBaird closed 7 years ago

GarrisonBaird commented 7 years ago

If the dictionary content is in plain text (using markers like \n for newlines), we have to replace newline markers to HTML line break <br />

GarrisonBaird commented 7 years ago

I didn't check mdict has the same issue or not

finalion commented 7 years ago

I have a question about stardict that the query results are shown in wiki format or some else, if there is some addon converting such type of content to html?

GarrisonBaird commented 7 years ago

In fact GoldenDict displays them "as is". I guess that they are converted from other strange formats without rendering into HTML, wich not follow stardict standards. We can leave it there like GoldenDict does, or find a rendering module and integrate it, but I think it's not necessary though.