Menu

#1595 Display images in Dictionary pane

5.7
closed-fixed
None
5
2021-11-18
2021-09-12
No

The Dictionary pane currently doesn't support displaying images embedded in the dictionary content.

DictionaryTextArea is a JTextPane with text/html content type, but additional work is required to display images.

1 Attachments

Related

Bugs: #1043
Feature Requests: #1594

Discussion

  • Hiroshi Miura

    Hiroshi Miura - 2021-09-12

    The problem happened by two reasons

    1. there is no "html" tag on JTextPane(DictionaryTextArea) contents on OmegaT
    2. Java JEditorPane and its inherited classes don't have "data:" protocol handler for inline image
     
  • Hiroshi Miura

    Hiroshi Miura - 2021-09-13

    A figure attached to report has a GAIJI image (IPA pronounce sign) as inline image <img src="data:;base64,1234abcd...."/>

     

    Last edit: Aaron Madlon-Kay 2021-09-22
  • Hiroshi Miura

    Hiroshi Miura - 2021-09-26

    Here is a good example why OmegaT should support image. When looking into a word counter.

     
  • Aaron Madlon-Kay

    Ticket moved from /p/omegat/bugs/1069/

    Can't be converted:

    • assigned_to: miurahr9 (user not in project)
     
  • Aaron Madlon-Kay

    Ticket moved from /p/omegat-plugins/feature-requests/8/

     
  • Aaron Madlon-Kay

    • summary: DictionaryTextArea fails to show image on dictionary --> Display images in Dictionary pane
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,3 @@
    -DictionaryTextArea is a JTextPane with text/html content type, but it fails to show image content of dictionary.
    +The Dictionary pane currently doesn&#39;t support displaying images embedded in the dictionary content.
    +
    +`DictionaryTextArea` is a `JTextPane` with `text/html` content type, but additional work is required to display images.
    
    • assigned_to: Hiroshi Miura
    • Group: 5.6 --> 5.7
     
  • Aaron Madlon-Kay

    • status: open --> open-fixed
     
  • Aaron Madlon-Kay

    Implemented on master in [331bc3].

     

    Related

    Commit: [331bc3]

  • Aaron Madlon-Kay

    • status: open-fixed --> closed-fixed
     
  • Aaron Madlon-Kay

    Implemented in OmegaT 5.7.0.

     

Log in to post a comment.