Closed xrotwang closed 4 years ago
@LinguList I could try to use this machinery to include IPA charts in lsi. This could be done at db import time, using sets of segments per language as inventory.
Sounds good. Let me know if help is needed!
@LinguList I'd need input regarding
Okay, implosives as manner is good. And yes, the others as list is also sufficient!
first implementation done and released in v2.1
I failed to turn this into a PR, so here's an issue for code review.
So here's initial support for displaying IPA charts for sets of BIPA sounds. The code is in ipachart.py and the idea is as follows:
Diagram
subclasses.Diagram
class knows how to match segments from an inventory to slots in the template, and thus canrender
the template.Since slots are defined in terms of CLTS features and not as white-list of individual BIPA graphemes, a lot more segments match each slot. But as far as I understand, that is what we want, right? E.g. there is not really a need for multiple vowel diagrams, when most vowels in an inventory fit into one?
I'll attach a couple of examples of APiCS inventories (as HTML pages) below:
apics3.txt
apics10.txt
Regarding the other standard IPA tables, I'm not sure. They seem to just list stuff in a way that doesn't seem to convey any semantics - so I'd be tempted to replace them with tables for CLTS
Sound
subclasses, à la(I don't know, why Implosives are not included in the table of pulmonic consonants, though. They seem to fit as additional "manner".)