Skip to content
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

handle inline icon images #37

Open
namiwang opened this issue Jun 28, 2017 · 3 comments
Open

handle inline icon images #37

namiwang opened this issue Jun 28, 2017 · 3 comments

Comments

@namiwang
Copy link
Owner

namiwang commented Jun 28, 2017

typically, this kind of images occur:

  • around ipa media link
  • in External links for wikinews, wikisource, etc.
@namiwang namiwang added this to the alpha milestone Jun 28, 2017
@namiwang namiwang changed the title handle inline media image handle inline icon images Jun 29, 2017
@namiwang
Copy link
Owner Author

namiwang commented Jun 29, 2017

this is a typical ipa icon

the sign would be ipa_button, and img width = height = 11.

    <b>Denmark</b>
     (
    <span>
      <span class=\"ipa_button\"></span>
      <span class=\ "nowrap mcs-ipa\" style=\ "display: none;\">
        <span class=\"noexcerpt\">
          <span>
            <a href=\"//upload.wikimedia.org/wikipedia/commons/9/95/En-us-Denmark.ogg\" class=\"image\">
              <img src=\"//upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Speakerlink-new.svg/11px-Speakerlink-new.svg.png\" data-file-type=\"drawing\" height=\"11\" width=\"11\" srcset=\"//upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Speakerlink-new.svg/22px-Speakerlink-new.svg.png 2x, //upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Speakerlink-new.svg/17px-Speakerlink-new.svg.png 1.5x\">
            </a>
          </span>
          <sup>
            <span class=\"IPA\" style=\"color:#00e;font:bold 80% sans-serif;padding:0 .1em\">
              <a href=\"/wiki/File:En-us-Denmark.ogg\" title=\"File:En-us-Denmark.ogg\">i</a>
            </span>
          </sup>
        </span>
        <span class=\ "IPA nopopups noexcerpt\">
          <a href=\"/wiki/Help:IPA_for_English\" title=\"Help:IPA for English\">
            /
            <span style=\"border-bottom:1px dotted\">
              <span>ˈ</span>
              <span>d</span>
              <span>ɛ</span>
              <span>n</span>
              <span>m</span>
              <span>ɑːr</span>
              <span>k</span>
            </span>
            /
          </a>
        </span>
      </span>
    </span>
    ; 

@namiwang
Copy link
Owner Author

namiwang commented Jun 29, 2017

currently ignored all inline icons, since flutter doesn't support inline Image/Icon/ImageIcon in TextSpan for now.

@namiwang
Copy link
Owner Author

rely on flutter/flutter#2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant