-
Notifications
You must be signed in to change notification settings - Fork 6
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
z-sampa grouped superscripts fail #52
Comments
Ah, yeah that's a problem. I don't know how to determine whether the user intends ( or a group of superscripts. The code currently just does regex substitutions, which can't identify balanced parentheses in the general case (though it might be possible in this specific case? I haven't thought about it much). |
i can't think of anything either, so i gave chatgpt an explanation of z-sampa
this won't actually work, because
i also notice a lack of latin extended-f support: |
Honestly I think at this point there should just be EBNF support or something, I feel like there's been a lot of cases like this. Regex subs work well for X-SAMPA but Z-SAMPA has a lot of innocent seeming bracket rules that turn into a giant fucking mess |
how exactly does ebnf help here? /genq |
EBNF is a way to specify context free grammars, which generally allow trickier syntax (the canonical example is the same amount of Also, technically a "regex" as we use in Javascript or whatever is a context free grammar but it's extremely convoluted to make that work because it's more of an semi-unintended interaction of features than a properly designed functionality. |
And it's only that. EBNF doesn't provide a mechanism for parsing them. |
Regardless, there are some situations where well-formed Z-SAMPA -- in the original spec, not the modified one the bot uses -- is ambiguous. Consider the string |
Well there’s always antlr
On Tue, Jul 11, 2023 at 7:30 PM bbrk24 ***@***.***> wrote:
EBNF is a way to specify context free grammars
And it's only that. EBNF doesn't provide a mechanism for parsing them.
—
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACIQY5WQL57SI34P35ZQHYTXPXVARANCNFSM6AAAAAA2AYJILU>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
shane duan
home/cell: (925) 963-8879
|
i'd assume this should result in /kʷʰ/ (and yes this is currently doable as just
z/k+w+h/
)i'm unsure how related to #48 this is
The text was updated successfully, but these errors were encountered: