![pinyin helper pinyin helper](https://ltl-beihai.com/wp-content/sites/17/chinese-mandarin-pinyin-chart-2048x1064.jpg)
If you want a little more practice of “儿化”, please comment and let us know, so we can make a video lesson about it. There are a few variations in the pronunciations of "儿化" depending on the Final used before "er". 儿化 (ér huà) “Retroflexed Suffix”, is common in Northern Chinese dialects, especially in Beijing. And it’s called a “Retroflexed Suffix”, and is written as an “r” after another syllable. But a lot of the times this sound can be combined with another syllable and is pronounced as a “suffix” of that syllable. The Final “er” only has one syllable, and which is itself. Try pronouncing the Simple Final “e” (not the same as the "e" in the English word "bed"), and while pronouncing it, raise the tongue, curl it back a little and then immediately relax it. To pronounce "er", it requires a little bit of tongue movement. Either way, it’s a special sound that kind of has to be in a category of its own. Rem -ĭocument = ĭispatcher = createUnoService(".DispatchHelper")ĭim args1(18) as new .PropertyValueĪrgs1(2).Name = "SearchItem.RowDirection"Īrgs1(7).Name = "SearchItem.AsianOptions"Īrgs1(8).Name = "SearchItem.AlgorithmType"Īrgs1(10).Name = "SearchItem.SearchString"Īrgs1(11).Name = "SearchItem.ReplaceString"Īrgs1(13).Name = "SearchItem.ChangedChars"Īrgs1(14).Name = "SearchItem.DeletedChars"Īrgs1(15).Name = "SearchItem.InsertedChars"Īrgs1(16).Name = "SearchItem.TransliterateFlags"ĭispatcher.executeDispatch(document, ".Pinyin Final er is usually considered a Special Final, while some put it in the category of Simple Finals or Compound Finals. Sub PinyinTonesNumber(expression, replacement) Hopefully the algorithm is correct accordingly to pinyin rules specially for i and u. VB Macro (Libre)Office : Convert pinyin tone numbers to accents Var after = numbered_PinYin.substring(accentpos+1, numbered_PinYin.length-1) Īccented_PinYin = before + accented_Char + after Pinyin was invented in the 1950s to help unify the 50+ dialects of spoken Chinese and provide a guide for people to learn the pronunciation of Chinese. Var before = numbered_PinYin.substr(0, accentpos) Var accented_Char = ACCENTED Īccented_PinYin = accented_Char + numbered_PinYin.substr(1, numbered_PinYin.length-1) Var ToneIndex = numbered_PinYin.charAt(numbered_PinYin.length -1) we asume the input to be valid PinYin, therefore no security checks. only one letter, nothing to differentiate Hope that helps some of you, suggestions and improvements wellcome! var ACCENTED =
PINYIN HELPER CODE
This code places Tonemarks according to the official algorithm for placing one, $word = str_replace($vowels, $pinyin, $word) # Build an array like Array('a' => 'a*') and store statically # Find words with a number behind them, and replace with callback fn. This strategy, and the use of strtr (which prioritizes longer replacements), makes sure that this won't happen:
![pinyin helper pinyin helper](https://files.liveworksheets.com/def_files/2021/4/5/10405210922416731/10405210922416731001.jpg)
You can easily see how the replacement rules are defined. Ollie's algorithm was a nice start, but it didn't apply the marks correctly.