Module talk:ko-hangul

Just a reminder, please document your modules! It's the only way we can keep track of them; even if it doesn't fit any of the subcats of Category:Modules, it could at least go in Category:Korean templates. Thanks! —Μετάknowledge discuss/deeds 16:10, 17 March 2013 (UTC)

syllable2Jamo function test
I don't see it decomposing hangeul into jamo. A call to " " just produces 한 (same string, not ㅎㅏㄴ - decomposed jamo). Am I doing it right? --Anatoli (обсудить/вклад) 02:09, 18 March 2013 (UTC)

To see that the function really does decompose a Hangul syllable, you can go to the edit-page for Module:ko-hangul, scroll down to the debug console, and type something like = mw.ustring.gsub(p.syllable2Jamo('한'), '.', '%0 ') to see what the function's return value looks like after you insert a space after each Unicode character (since once the jamo are separated by spaces, they can no longer be recomposed). Does that make sense? —Ruakh TALK 02:55, 18 March 2013 (UTC)
 * You're doing it right, but the software normalizes the result of #invoke:. This normalization, among other things, recomposes the jamo into the Hangul. So this function can't meaningfully be called from outside Lua.


 * Sorry, I need some help in using the debug console. I pasted there


 * = mw.ustring.gsub(p.syllable2Jamo('한'), '.', '%0 ')


 * but what's next? Save? --Anatoli (обсудить/вклад) 09:12, 18 March 2013 (UTC)


 * Just hit Enter. It's interactive. :-)  —Ruakh TALK 22:14, 18 March 2013 (UTC)


 * Wow, learned something new. !תודה --Anatoli (обсудить/вклад) 22:20, 18 March 2013 (UTC)


 * Testing mw.ustring.gsub(p.syllable2JamoSep('한'), '.', '%0 '). Hmm, doesn't work. --Anatoli (обсудить/вклад) 00:34, 5 April 2013 (UTC)


 * It worked for me (ᄒ,  ᅡ ,   ᆫ 	7). Perhaps you forgot the = before the expression? Wyang (talk) 01:22, 5 April 2013 (UTC)
 * Only works in debug mode. I want to be able to invoke it and get results. --Anatoli (обсудить/вклад) 01:25, 5 April 2013 (UTC)


 * The main module is Module:ko-translit. --Anatoli (обсудить/вклад) 01:25, 5 April 2013 (UTC)


 * ? (Did I understand this correctly?) Wyang (talk) 01:36, 5 April 2013 (UTC)


 * Thank you (:blush:) :) --Anatoli (обсудить/вклад) 01:52, 5 April 2013 (UTC)