Pronunciation output: "colon space" before, "\" and other issues.
See original GitHub issueI always wonder why we have the “colon space” artifact before the pronunciation.
Wouldn’t it be better to show which phonetic alphabet is shown instead? As in:
IPA: [trɑːnsˈkrɪpʃn̩] X-SAMPA: [trA:ns"krIpSn_=]
(X-SAMPA is often used in Text-to-Speech systems, dictionaries mostly use the IPA.)
I have no idea how many entries in the Wiktionaries are using SAMPA or X-SAMPA, probably only a few. Might still be helpful to show which, don’t you think? Or only take the IPA, but then remove the ": " artifact.
IPA has no backslash, as far as I know. But we still generate things like
: \ˈwɪkʃən(ə)ɹi, \ˈwɪkʃənɹɪ\
which I believe are leftover artifacts from somewhere having quotes escaped.
Traditionally, IPA pronunciation is also enclosed in square brackets (as shown above), but I don’t know the reason for it. Should we adapt that?
EDIT: Found it: https://en.wikipedia.org/wiki/International_Phonetic_Alphabet#Brackets_and_transcription_delimiters
EDIT 2: The word “Wiktionary” (EN) is given as
Pronunciation
(UK) IPA(key): /ˈwɪkʃən(ə)ɹi/, (Received Pronunciation) IPA(key): /ˈwɪkʃənɹɪ/
in the EN WIktionary.
Currently, we show it as:
: \ˈwɪkʃən(ə)ɹi, \ˈwɪkʃənɹɪ\
We should be sure to take the whole definitions (including slashes, brackets, stress marks) into our output, so more like:
IPA: /ˈwɪkʃən(ə)ɹi/, /ˈwɪkʃənɹɪ/
or (without the "IPA: "):
/ˈwɪkʃən(ə)ɹi/, /ˈwɪkʃənɹɪ/
Call me a nitpicker—I just love quality! 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:19 (13 by maintainers)
Top GitHub Comments
Please let me know if it’s fixed.
The default dictionary on Kobo does that.