-
Notifications
You must be signed in to change notification settings - Fork 3
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
X-SAMPA version #16
Comments
Hi @abraver! I'm traveling this weekend, but happy to help where i can, though probably when i get back. Do you know what versions of node and yarn you're running? those would be my first checks of whats going wrong. I'm not familiar with X-SAMPA, but really appreciate any work you're willing to help with to make this site more accessible. Super cool to see someone else using it in the wild! At present, for the audio (and video) files, i use a lookup table based on the computed symbol name (i think). the data is encoded in msgpack as a dictionary type of It's been a minute since i last touched this project, so i'll probably need to spend a bit of time next week refamiliarizing myself with the code. |
fwiw, the automatic build currently runs with node version 16, so it's possible the latest version broke something (or you're running an older version locally??) |
Cool, I'd love to get this to work; any help is much appreciated.
|
oh dang, node is up to v21 now? i wonder if yarn test will work. if not, the easiest thing at this point that i think will work is installing |
Success! I'll try playing with it a bit, but would definitely appreciate any guidance you can provide when you're back from your travels. |
A quick update: I've gotten the whole pulmonic consonant section to work both locally and on the server |
nice. i wonder if the best way to support this would be aria-style tags on the various symbols + and x-sampa lookup in the metadata file maybe(?) Again, not that familiar with how x-sampa + braille screen readers work |
Yeah, I think the ideal version would be something along the lines of adding a key in the The student has both a screenreader and a tactile refreshable Braille display. We've found that the Braille display does well at displaying X-SAMPA, because she already knows all the Braille patterns for the base letters and punctuation that's used as modifiers. I'll report back when I have more information. |
One thing we've come across is that navigating tables with a screenreader can be challenging, because as the cursor hits each cell, it doesn't tell you which column/row you are in (e.g., if you land on [b], there's not an easy way to look up what the place and manner are). So, I'd like to try to get the full sound description in the table cell along with the symbol. Since this will make the table very crowded, I'd like to make it so that the screenreader reads the description, but it doesn't show visually. I had hoped that aria-label would do the trick, but it seems the screenreader just skips over it in this table. What seems to be the more or less standard solution for text to appear to a screenreader but not visually is {position: absolute; left: -10000px} or similar. In other words, the ideal solution would be to add a My TypeScript knowledge (or lack thereof) comes into play here, because I can't figure out how to get the description text onto the IPA chart. I gather it's probably something with one of the types like |
I'm running into a new issue—
I'm having trouble accessing this dictionary, though, in
As far as I can tell, Any help would be most appreciated. |
Hey @stylerw, I remember when we talked last you said you had some success with a vision impaired student using a screenreader and a translation layer/lookup file they used to make navigation easier? Wondering if any of that would be useful here. @abraver, do you have your code pushed to a branch or something? That would make it easier for me to understand what you're talking about by being able to see the more-full source :) Finally got a bit of free time out of the craziness of the last couple weeks to get back to this project |
@stylerw: Any suggestions you have for working with visually impaired students in linguistics would be great, related to this project or otherwise. @R167: I've done a pretty hack-y job of it so far with no version control(!). Let me make an actual fork and I'll share that with you as soon as I get a chance. |
@R167: Here is a branch with the modifications I made: https://github.com/abraver/int-ipa/tree/xsampa/ You can see it running at https://aaronbraver.com/int-ipa/build/#/keyboard/audio At this point, all that's happening is I've replaced the IPA strings with their SAMPA counterparts in I don't get any errors now, but I think ultimately the ideal situation would be to add a key to (*The aria-hidden properties and similar seem to not work well, and from what I can tell from some Googling, this approach of |
I'm working with a blind student, and have been trying to modify the IPA chart to show X-SAMPA instead of IPA symbols—these are easier for her to read on her braille display. I'd like to make an X-SAMPA version of the chart (especially the audio page) so she can learn to link the X-SAMPA symbols to the sounds.
Requested feature
I'd like to make an X-SAMPA version of the keyboard, and I am happy to put in the legwork, but my attempts so far (see below) haven't worked.
Current alternatives
I tried editing the ipa_sounds_manifest with the X-SAMPA equivalents of the IPA characters in the “ipa” key for each entry, but that leads to the symbol showing up greyed out on the chart. I tried, too, to replace the IPA symbols across all files by searching with e.g.
grep “ɢ”
, but that also didn’t make any change to the keyboard.These attempts were with the relative-path-assets version of the release.
I also tried doing the custom build option: I was able to
yarn install
with no problem, but uponyarn build
I got the error pasted at the end of this message. I’m afraid my JS is quite rusty and I know nothing about yarn, so I haven’t been able to resolve that issue.Additional context
Again, I'm happy to put in the legwork if you can help me figure out where I need to make the appropriate symbol swaps, or if you have any ideas about the
yarn build
message below.Thanks!
yarn build
error message:The text was updated successfully, but these errors were encountered: