Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html workaround #13

Merged
merged 2 commits into from
Jan 18, 2016
Merged

Html workaround #13

merged 2 commits into from
Jan 18, 2016

Conversation

asimmohiuddin
Copy link
Contributor

Currently the Html exporter is broken because of possibility of overlapping rules. This will fix #11 since overlapping entries are removed/modified. Look at individual commits for more details.

introduce the ability to change end position/start position. This will be helpful if we decide to remove overlaps in this way
The html exporter used substrings to apply rules to the html output. If there was an overlap then the parts of the substring may repeat. No matter what the exporter, there would always be a need to handle overlaps. Overlaps happen frequently with ghunna vs idghaam vs meem idghaam see issue #11. In this workaround, overlaps are removed all together. Also, ghunna is given the least preference and is always removed. Doing this at the sorting level will help remove the need of handling this in any future exporters. .
@ahmedre
Copy link
Contributor

ahmedre commented Jan 18, 2016

sounds good, let's do this for now and, in the future insha'Allah, we can do something more formal (ex each rule has a rank value and we only take the top ranked item).

ahmedre added a commit that referenced this pull request Jan 18, 2016
@ahmedre ahmedre merged commit 0ba543c into master Jan 18, 2016
@asimmohiuddin asimmohiuddin deleted the html-workaround branch January 25, 2016 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exporting should take into account multiple rules
2 participants