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

Capitalize-last-word doesn't work with {^'s} #836

Closed
arxanas opened this issue Nov 14, 2017 · 1 comment
Closed

Capitalize-last-word doesn't work with {^'s} #836

arxanas opened this issue Nov 14, 2017 · 1 comment

Comments

@arxanas
Copy link

arxanas commented Nov 14, 2017

Classification: Bug

Reproducibility: Always

Summary

Suppose you have this dictionary:

"TPAO": "foo",
"KPATS": "{*-|}",
"AES": "{^'s}

Then I expect the sequence

TPAO/AES/KPATS

to produce

Foo's

but it actually produces

foo'S

which is to say that it capitalizes the "s" in the suffix rather than the real beginning of the word.

Version

Plover version 4.0.0.dev5 @ ff51971
Installed via: source

Configuration

ProductName:    Mac OS X
ProductVersion: 10.12.6
BuildVersion:   16G29
@morinted
Copy link
Member

Blackbox test:

    def test_bug836(self):
        r'''
        "TPAO": "foo",
        "KPATS": "{*-|}",
        "AES": "{^'s}",

        TPAO/AES/KPATS " Foo's"
        '''
>   new_f = lambda bb: (f(bb), replay(bb, name, test))
E   AssertionError: test_bug836
E
E       "TPAO": "foo",
E       "KPATS": "{*-|}",
E       "AES": "{^'s}",
E
E     > TPAO/AES/KPATS " Foo's"
E
E   assert " foo'S" == " Foo's"
E     -  foo'S
E     +  Foo's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants