Page MenuHomePhabricator

WS Export does not render language conversion blocks
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
Near the end of text, we can see text rendered as "盤、杅、、杖�"

What should have happened instead?:
It should be rendered as "盤、杅、几、杖". Here "几" is missing. The "几" in the source is a language conversion block: -{几}- The exported XHTML within ePub gives:

盤、杅、<span typeof="mw:LanguageVariant" data-mw-variant="{&quot;disabled&quot;:{&quot;t&quot;:&quot;几&quot;}}"/>、杖

The language variant should be installed at the final source text, which means <span typeof="mw:LanguageVariant" data-mw-variant='{"disabled":{"t":"几"}}' id="mwBQ"></span> should be replaced by

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

N.A.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Samwilson subscribed.

I don't quite know what the correct fix is here. Adding Parsoid in case someone wants to tell me what to do! (I'm happy to fix up WS Export.)

What are non-MediaWiki users of Parsoid HTML expected to do with this sort of thing? These docs say we should "swap in the correct things." But I'm not sure what those things are. (I mean, it's obvious in the example above, but I assume there's a general solution somewhere.)