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

Trying to match pattern with french accents #198

Closed
ohoachuck opened this issue Apr 12, 2019 · 4 comments
Closed

Trying to match pattern with french accents #198

ohoachuck opened this issue Apr 12, 2019 · 4 comments

Comments

@ohoachuck
Copy link
Contributor

Trying to match french syntax with accents

Expected Behavior

I'm trying to match the following french term "été" with:

<category>
  <pattern>été</pattern>
  <template>This is summer in french</template>
</category>

Current Behavior

A random pickup line is returned

Possible Solution

Can I find a way while playing with normal/denormal ?

Steps to Reproduce

  1. test with above category pattern

Context (Environment)

  • I'm currently at version v 3.0.0 Beta 1 and my grammar is v 1.6.0.
  • Version of Python: 3.6
  • Operating System ( inc Version ): mac OS / CentOS

Detailed Description

Is there something obvious I'm missing here ?

Possible Implementation

@keiffster
Copy link
Owner

Is it appropriate to exclaim ‘sacre bleu’ Or are we getting a little too Monty Python

I’ll take a look this weekend, as a stop gap you could use normal.txt to convey the accented e to a normal e and then match against ete. But that is not a long term solution. I’ll get it sorted shortly

@ohoachuck
Copy link
Contributor Author

ohoachuck commented Apr 12, 2019 via email

@ohoachuck
Copy link
Contributor Author

ohoachuck commented Apr 13, 2019 via email

@ohoachuck
Copy link
Contributor Author

Sorry, I just found that the issue have nothing to do with Program-y, but with my (froggy french) webchat client! :)
Sorry for the overhead.
In the mean time, I was indeed surprised that such basic thing wasn't supported.
It was anyway a good opportunity for me to recall usage or normal.txt and denormal.txt.
Thanks for your always quick support Keith.

O.

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

No branches or pull requests

2 participants