Page MenuHomePhabricator

Port wikimedia-langconv's FST runner (FST.js) to PHP
Closed, ResolvedPublic0 Estimated Story Points

Description

The npm library (mirrored at https://github.com/wikimedia/mediawiki-libs-LangConv, hosted on gerrit ) is imported by Parsoid/JS to support the html2html language conversion API endpoints.

This library provides the following:

  • FST specs for various language variant conversions (the .foma files)
  • JS tools to compile FST specs into programming-language-neutral FST representations. (.att files are the compiled representation)
  • FST.js, the FST runner script that Parsoid imports to process input text through compiled programming-language-neutral FST representations in .att files

This phab task is about porting the FST.js runner to FST.php. This ported version should be part of the wikimedia-langconv repository. But, before this code can be used in Parsoid/PHP, we need T225023: Convert wikimedia-langconv npm library into a dual npm / composer library repo resolved.

Event Timeline

ssastry triaged this task as Medium priority.Jun 4 2019, 8:52 PM
ssastry created this task.

Change 525096 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[mediawiki/libs/LangConv@master] Port FST.js to PHP

https://gerrit.wikimedia.org/r/525096

Change 525096 merged by jenkins-bot:
[mediawiki/libs/LangConv@master] Port FST.js to PHP

https://gerrit.wikimedia.org/r/525096