Jump to content

မေႃႇၵျူး:ja-ruby/doc

လုၵ်ႉတီႈ ဝိၵ်ႇသျိၼ်ႇၼရီႇ မႃး

This is the documentation page for မေႃႇၵျူး:ja-ruby

This module handles ruby texts. It converts between the following 4 forms:

  1. Wikitext
    [[振る|<ruby><rt></rt></ruby>り]][[仮名|<ruby><rt></rt></ruby><ruby><rt></rt></ruby>]]
    
    ()
  2. Texts of the term and the ruby
    [[振る|振り]][[仮%名]]
    
    ふりが%な
    
  3. []() markup
    [[振る|[振](ふ)り]][[仮名|[仮](が)[名](な)]]
    
  4. Lua table, used by modules
    local example_ruby_table = {
        {
            text = {
                {text = '振', ruby = 'ふ'},
                {text = 'り'},
            }, linkto = "振る"
        },
        {
            text = {
                {text = '仮', ruby = 'か'},
                {text = '名', ruby = 'な'},
            }, linkto = "仮名"
        },
    }