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

Fix win mapping with right length marker and avoid doubling it #168

Merged
merged 2 commits into from
Jun 16, 2022

Conversation

joanise
Copy link
Collaborator

@joanise joanise commented Jun 16, 2022

The length marker in IPA is ː (\u02D0), not : (ascii colon)

win-ipa to eng-ipa had a feeding problem, with "eː"->"eː" feeding
"e"->"eː" and thus generating "eːː" in the eng-ipa output, and "EY ː" in
the eng-arpabet output.

Unit tests added for individual characters, but I have no words to test
properly, so I'm doing the best I can with what I have...

FIXES #100

Currently, some mappings have (out, in, rest), or even (something, out,
in, rest), and that makes it quite confusing when reading the output of
g2p show-mappings. So on printing, (i.e., in plain_mapping()), start
with in, then out, then everything else.
The length marker in IPA is ː (\u02D0), not : (ascii colon)

win-ipa to eng-ipa had a feeding problem, with "eː"->"eː" feeding
"e"->"eː" and thus generating "eːː" in the eng-ipa output, and "EY ː" in
the eng-arpabet output.

Unit tests added for individual characters, but I have no words to test
properly, so I'm doing the best I can with what I have...

FIXES #100
@codecov
Copy link

codecov bot commented Jun 16, 2022

Codecov Report

Merging #168 (8d13c21) into master (b4c3a5e) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #168      +/-   ##
==========================================
+ Coverage   90.18%   90.20%   +0.02%     
==========================================
  Files          36       36              
  Lines        3291     3299       +8     
==========================================
+ Hits         2968     2976       +8     
  Misses        323      323              
Impacted Files Coverage Δ
g2p/mappings/__init__.py 89.78% <100.00%> (+0.35%) ⬆️
g2p/tests/test_check_ipa_arpabet.py 98.43% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b4c3a5e...8d13c21. Read the comment docs.

Copy link
Owner

@roedoejet roedoejet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, good easy fix. Thanks for catching this.

@roedoejet roedoejet merged commit 80f80da into master Jun 16, 2022
@roedoejet roedoejet deleted the dev.win-issue-100 branch June 16, 2022 19:39
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.

win does not handle : correctly
2 participants