Module talk:tl-pron/sandbox

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Fix needed

[edit]

@Benwing2 Have finally fixed bugs affecting test cases at Module:tl-pron/sandbox/testcases, but can you further fix this module before the changes can be implemented on the existing module? Specific issues are:

  • Syllabification: Module needs to support all possible syllable structures and be fixed to follow Tagalog hyphenation rules (further info at Appendix:Tagalog spellings). For example, suklay, pakla, and bakla are incorrectly divided into su-klay, pa-kla, and ba-kla respectively when they should be suk-lay, pak-la, and bak-la.
  • Stress: Some test examples has stress on the wrong syllable, especially those with a vowel pair starting with I and U and with Y and W in between. For example, on the test cases, dating, tiyak, uwak, hingal (stressed on last syllable) are stressed at the first syllable instead on the second, and uminom is stressed at the first syllable instead on the last.
  • Initial glottal stop: Tagalog words starting with a vowel have an implied glottal stop, but the existing coding support for that in the module causes the stress to be moved to the first syllable (see also issue with stress).

-TagaSanPedroAko (talk) 08:10, 16 November 2020 (UTC)Reply

@TagaSanPedroAko I will look into this when I have a chance. Benwing2 (talk) 14:51, 16 November 2020 (UTC)Reply
@Benwing2 I've already fixed most of the mentioned issues and already implemented the changes to the existing module. By the way, you can still look for some problems with the code. TagaSanPedroAko (talk) 18:58, 16 November 2020 (UTC)Reply

Major fix to support multiword terms

[edit]

@Benwing2 Working again on a new version that should handle punctuation well, as well as multi-word terms, but there's still lots of issues. Can this be fixed. TagaSanPedroAko (talk) 20:52, 16 July 2022 (UTC)Reply

@TagaSanPedroAko Unfortunately I don't know much about Tagalog pronunciation so I'm not sure how to fix it. Benwing2 (talk) 20:58, 16 July 2022 (UTC)Reply
@Benwing2: Would figure that out, but the code is so complex. TagaSanPedroAko (talk) 21:00, 16 July 2022 (UTC)Reply
@TagaSanPedroAko If you want me to look into it, you need to tell me exactly what you need done and how the results should look. Benwing2 (talk) 21:04, 16 July 2022 (UTC)Reply
@Benwing2: The proposed changes are mostly to better support multiword terms and punctuation, and not add stress to most single-syllable words. Current version in deployment only supports individual words:
  • Stress on most words need to be individually marked in multiword terms or phrases. The sandbox version should be able to apply stress to each individual word following normal stress rules (Tagalog stresses words on penultimate by default).
  • Additional support for single-syllable words so they don't receive stress.
  • An underscore has to be used to mark blank space. Proposed version should be able to add word boundaries around spaces or around punctuation marks in the middle.
  • Also of interest is automatic glottal stop placement at beginning of words beginning with vowels even on multiword terms or phrases. Just like with spaces where an underscore is needed, a 7 must be added to give desired result in existing version.
  • Show syllable division. Current template adds syllable dividers but drops its after stress is added.

TagaSanPedroAko (talk) 21:14, 16 July 2022 (UTC)Reply

Support automatic syllabification, rhymes and audio

[edit]

@Benwing2: Any idea how to fix this module so there's no need to type out things like syllabification and rhymes? It's based on your latest iteration of the Spanish pronunciation module, but I have done away with things like styles (this one will generate a pronunciation based on the standard, but will support 2+ pronunciations, such as of colloquial or certain regional accents), however I have a hard time finding other parts that should be removed or modified. TagaSanPedroAko (talk) 23:36, 13 March 2023 (UTC)Reply

Also calling in @Ysrael214. See also User talk:Mar vin kaiser#Pronunciation order, a relevant discussion showing need in adding auto-syllabification, rhymes, homophones and audio in standard order. TagaSanPedroAko (talk) 23:42, 13 March 2023 (UTC)Reply
@Benwing2 It has been months, and I have made some tweaks to remove style consideration as with the Spanish module, but there's too much code to begin with. Can you look into this and trim or tweak anything further, so this finally work? Thank you. TagaSanPedroAko (talk) 07:35, 23 June 2023 (UTC)Reply
@Benwing2 It's almost a year, I got rid of the convoluted style functions but still the module doesn't work. can you fix that? TagaSanPedroAko (talk) 09:03, 19 January 2024 (UTC)Reply