Page MenuHomePhabricator

Add configuration variable to drive conversion
Closed, DeclinedPublic


The conversion and processing should be driven by configuration rather than hard coded.

Look at the methods used in the CSS Extension to develop similar approach for "recipe" articles if that is possible since We'll need more like YAML, JSON, or PHP arrays than simple CSS

[DONE] Furthermore, a "dry-run" option needs to be exposed in the UI so that a user can see how content will be converted.

Event Timeline

freephile created this task.Mar 2 2015, 5:10 PM
freephile claimed this task.
freephile raised the priority of this task from to High.
freephile updated the task description. (Show Details)
freephile moved this task to Backlog on the MediaWiki-extensions-Html2Wiki board.
freephile added a subscriber: freephile.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 2 2015, 5:10 PM

The dry-run option has been added in commit 498800c

freephile updated the task description. (Show Details)Mar 2 2015, 8:39 PM
freephile set Security to None.

The dry-run option has been added in commit 498800c

@freephile: What exactly is left to do in this task? Or can this task be closed as resolved?

freephile closed this task as Declined.Oct 18 2017, 7:28 PM

This issue is declined because it represents a lot of work, and would make a great feature for Html2Wiki v.2

The intended goal of this issue was to provide a way for the user to specify some sort of syntax (maybe XPath, but most likely the QueryPath syntax) that would identify the important elements in the source; as well as the irrelevant elements in the source document(s) so that Html2Wiki would have a better ability to handle source content exactly as the user intends. Currently Html2Wiki makes assumptions and tries to do the right thing, but it's hard-coded. Probably need a callback and hook to insert functions during processing.

Example use cases:

  1. instruct Html2Wiki to find mouseover code, and output title attributes.
  2. instruct Html2Wiki to find <elem class="italics">foo</elem> and output ''foo''