Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Incorrect translation for corner-cases #17

Closed
soccerjustinh1 opened this issue May 18, 2019 · 0 comments
Closed

Incorrect translation for corner-cases #17

soccerjustinh1 opened this issue May 18, 2019 · 0 comments
Labels
ARCHIVED - http://mzl.la/ghe-archive CLOSED at time of archiving

Comments

@soccerjustinh1
Copy link
Contributor

Problem

There are a few corner cases that are unable to be correctly handled with regards to for a given input the output is not what we would expect.

  • Found (UPC)
  • Expected (CPU)
  • Found &#39;&#39; &#39;Desconectar <!- -> .me estricta protección &#39;&#39; &#39;
  • Expected ''' Desconectar <!- -> .me estricta protección '''
  • Found preferencias {for win} {/for} {for mac,linux} preferencias {/for}
  • Expected {for win} preferencias {/for} {for mac,linux} preferencias {/for}

Version

On the master branch for the hash 0992b5b6a1a8b36b12b4533803dd694136cc89dd

Steps

Need to run the wikiparser with the attached input file and it generates the attached output

$ ./mediawiki --input input_broken.txt

This generated the attaced input_broken-es.txt

input_broken-es.txt
input_broken.txt

Impact

The output file is not correct an does not display the media wiki file in the translated language correctly.

Analysis

Need to update the pattern match to deal with these corner cases and update the regression suite to include parsing with these scenarios.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ARCHIVED - http://mzl.la/ghe-archive CLOSED at time of archiving
Projects
None yet
Development

No branches or pull requests

2 participants