Currently the app does not support structured-content. Some users as a result that do not know may import dictionaries and use dictionaries with some content omitted, or some imports may completely fail.
In the meantime, users are advised to stick to plain text dictionaries -- they still make up a majority of the dictionaries out there so there is still definitely a great selection to use.
Supporting structured-content is a multi-faceted problem and will require waiting on some Flutter blockers to resolve, particularly https://github.com/flutter/flutter/issues/110594. Will probably give this some waiting time while on hiatus and if not, will need to reconsider or fork myself.
The structured-content JSON needs to be imported. The app currently ignores structured content JSON. Additionally, it would be useful to support images #129 as implementing this will also implement the features necessary to completely support images.
Dictionary formats need to be able to declare a custom widget. This functionality needs to be limited to Yomichan dictionaries only. Other dictionary formats may require their own widget in the future so a general function for widgets to use might as well be made.
Supporting structured-content means supporting tables, lists and other non-plain text content.
This content needs to be text selectable. Flutter appears to offer programmatic ways to select text via SelectionArea and flutter_html appears to support a lot of the required HTML components out of the box, but it does not expose a TextSelection upon yielding a SelectedContent.
Programmatic setting of the selection is necessary in order to implement the double tap to select a word functionality currently present in text definitions.
Images in definitions should be exportable to the creator. The Card Creator API needs to support an initial image value independent of the media source.
Currently the app does not support
structured-content
. Some users as a result that do not know may import dictionaries and use dictionaries with some content omitted, or some imports may completely fail.In the meantime, users are advised to stick to plain text dictionaries -- they still make up a majority of the dictionaries out there so there is still definitely a great selection to use.
Supporting
structured-content
is a multi-faceted problem and will require waiting on some Flutter blockers to resolve, particularly https://github.com/flutter/flutter/issues/110594. Will probably give this some waiting time while on hiatus and if not, will need to reconsider or fork myself.structured-content
JSON needs to be imported. The app currently ignores structured content JSON. Additionally, it would be useful to support images #129 as implementing this will also implement the features necessary to completely support images.structured-content
means supporting tables, lists and other non-plain text content.SelectionArea
and flutter_html appears to support a lot of the required HTML components out of the box, but it does not expose aTextSelection
upon yielding aSelectedContent
.