Module talk:km-translit

Module
Steve, what are the transliteration/pronunciation rules for letters, such as "ហ្វ", which have two names - fâ and wâ? And what "a-series" and "o-series" for vowels? For example, is transliterated as "pīəsā", although the vowel letter is the same in both syllables - ? Please take a look at this module, it's not much but I'm struggling :) --Anatoli (обсудить/вклад) 02:50, 18 June 2014 (UTC)


 * ហ្វ is the consonant cluster ហ + វ (h+w). It is a rare combination in native Khmer words, and it is an artificial construct used to represent the foreign sound of f: កាហ្វេ (kaafee). However, since it contains វ, it can sometimes be pronounced as w (actually, this is a sound that is halfway between w and v, or /ʋ/). For example, ហ្វឹក can be pronounced either /fək/ or /ʋək/. ហ្វូង can be pronounced /ʋooŋ/), /fooŋ/, or /pʰooŋ/. ហ្វេ, borrowed from Vietnamese, is only pronounced /ʋee/ and means the Vietnamese city of Hue. ហ្វៃយ៉ង់ is only pronounced /ʋayyɑŋ/, meaning faience. ហ្វៃហ្វា is only pronounced /ʋayvaa/. There is no rule, it depends on the word.
 * Khmer consists of two different alphabets, called the "a-series" and "o-series". Vowels with "a-series" consonants are pronounced differently from the same vowel with "o-series" consonants. There is also a converter ៊, which converts a-series consonants to the o-series. ៉ converts o-series consonants to the a-series.
 * The following tables show the a-series and the o-series consonants. ស is a-series, so សា = saa. ភ is o-series, so ភា = pʰie. —Stephen (Talk) 11:51, 18 June 2014 (UTC)


 * Thank you, Stephen! Multiple unpredictable readings sounds like a little problem or an obstacle. Can we default such letters to most common pronunciations and provide phonetic respellings (or additional parameters) for such cases? Can the lists of exceptions be made or it's not very practical? Stephen, are you happy to follow the new transliteration standard as used here or you have a different preference? I see you use Sealang dictionary transliteration. This will be mostly automatic but standardised translit may be needed for test cases. Wikipedia doesn't describe well transliteration for diacritics. @Wyang, thank you for making it work already, on the basic level! Could you add spaces between syllable as with Lao? It will be important to make longer strings more readable. --Anatoli (обсудить/вклад) 12:30, 18 June 2014 (UTC)


 * The most common pronunciation is with f, but f would be incorrect for words such as Hue. I don’t know how this can be handled. I have not seen what the new transliteration scheme will look like, but Khmer has many vowel sounds, and they will require special symbols to represent them all. I think the f and the transliteration scheme will be the least of the problems ... the biggest problem, in my opinion, is determining the ends of words. Putting a space between every syllable, like some people do with Chinese, is not going to be acceptable. It is important to put a space only between words. I think every transliteration will have to be replaced with a manual transliteration. —Stephen (Talk) 13:18, 18 June 2014 (UTC)
 * The module won't be smart enough to determine end of words but can hopefully determine ends of syllables. If you oppose spaces, we can do without them. For manual vs automatic - the automatic transliteration can be made non-mandatory, so that manual (when "tr=" exists) overrides automatic. If a transliteration method is accepted (it can be changed and is tuned) you can preview e.g. - copy/paste "prômvĭharô", if it's incorrect, fix, insert spaces for phrases between words, etc. Entries/translations without manual transliteration (tr=) will definitely benefit. --Anatoli (обсудить/вклад) 13:30, 18 June 2014 (UTC)


 * = prum vi’hie. —Stephen (Talk) 14:22, 18 June 2014 (UTC)
 * Thanks, Stephen. I saw that it wasn't transliterated correctly. Sealang dictionary gives "prummeaʔviʔhie" or "prum viʔhie". I've added a few more words to test cases. Hopefully Frank can make this module work. --Anatoli (обсудить/вклад) 23:50, 18 June 2014 (UTC)


 * Yes. When comes at the end of a syllable, it is not pronounced. It is similar to the British -r, which is pronounced at the beginning of a syllable but not at the end. Sometimes it can cause the preceding vowel to be long. The ់ (bantoc) makes the preceding vowel short:, but . The ័ (samyok sannya) has no pronunciation, but denotes a deviation from the general rules of pronunciation (used mostly in loan words from other languages). ៍ (toandakhiat) indicates that the base character is not pronounced. —Stephen (Talk) 06:28, 19 June 2014 (UTC)


 * "toandakhiat" must be like Thai thankhankhat ์ (a consonant killer) as in แมนเชสเตอร์ (Manchester) making ร silent? --Anatoli (обсудить/вклад) 06:46, 19 June 2014 (UTC)


 * Exactly. ៗ is the repetition sign, which repeats the previous word. ឧ is the independent vowel ’u. (etc.) is lɑ’ or lɑ’nɨŋlɑ’. Many Khmer texts include a zero-width space (&#x200B; &amp;#x200B; ) between words which allows software programs to break lines at the correct place...the zero-width space should be transliterated as a word space. —Stephen (Talk) 12:07, 19 June 2014 (UTC)

Question
Khmer transliteration seems to suggest that the transliteration system for Khmer here is the United Nations Romanization System for Geographical Names scheme. Should we use the UN scheme for Khmer in this module as well? ភាសា: phéasa or pʰiesaa? Would this mean syllable-final 'r' would still be 'r'? Wyang (talk) 04:03, 25 June 2014 (UTC)
 * As for me, whatever is achievable. Apart from basics I couldn't find anything useful. If one transliteration system starts working, it would be great. Sealang dictionary seems to be using the UN scheme and Stephen has been using it or a similar scheme. --Anatoli (обсудить/вклад) 04:16, 25 June 2014 (UTC)


 * ភាសា pʰiesaa is the only one I am familiar with. Just skimming United Nations Romanization System for Geographical Names, it appears that syllable-final r would still be r.
 * If we use the United Nations Romanization System for Geographical Names, then we have to rely on the transliteration program exclusively, because I would not know how to make manual transliterations in that system.
 * If that’s the case, I think the only way it can work is if we insert zero-width spaces (&amp;#x200B;) wherever needed. I think Lua makes it possible to filter the zero-width spaces out of links so that they would don’t appear in page names (the same way it works with Russian acute accents). The zero-width space is the standard used in native Khmer keyboards, where the spacebar by default inserts a zero-width space (instead of a Western-style word space), and if we insert them where needed, then the transliteration program would know how to separate words. —Stephen (Talk) 12:30, 25 June 2014 (UTC)

misnested tags
In Module:km-translit, there is a section if match(syl[i], '៍') then syl[i] = ' ' .. gsub(syl[i], '.', function(consonant)					if cons_conv[consonant] then						return cons_conv[consonant][1]					end end) .. ' ' and it would appear that (to avoid misnested tags lint errors) the opening HTML tags

should be closed with

rather than

as it is now. However, the edit tab doesn't give access to this section and I don't know how to do it, so I leave it for others to fix. Anomalocaris (talk) 23:19, 17 June 2018 (UTC)


 * ✅—Suzukaze-c◇◇ 23:24, 17 June 2018 (UTC)
 * Suzukaze-c: Thanks! I get it now! I have to click on the tool that looks like  in order to access the source code. —Anomalocaris (talk) 00:08, 18 June 2018 (UTC)