https://bugzilla.wikimedia.org/show_bug.cgi?id=32694

       Web browser: ---
             Bug #: 32694
           Summary: Use baseline shift when positioning inline math PNGs
           Product: MediaWiki extensions
           Version: any
          Platform: All
               URL: https://www.mediawiki.org/wiki/Requests_for_comment/Re
                    duce_math_rendering_preferences#Issues_5706
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Math (texvc)
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: br...@wikimedia.org
    Classification: Unclassified


This is a feature that blahtex has which is very nice, and was suggested from
<https://www.mediawiki.org/wiki/Requests_for_comment/Reduce_math_rendering_preferences>
as something that should help make 'always render' a more acceptable default.

dvipng has --height and --depth options which can be used to figure out where
the text baseline in the image is. This can then be used in inline CSS to
position the image relative to the actual text baseline, and should make things
match up inline more often.

This should not be terribly hard to adapt, though will require some tweaks:
* drop dvips support, use dvipng exclusively
* include the parameters when texvc calls dvipng -- OR -- move dvipng call to
PHP side
* capture the data and record it
* make use of it in rendering

Existing items should be invalidated so they won't conflict.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to