Help for this page

Select Code to Download


  1. or download this
    s/(\p{Han}+?)\((\p{Hiragana}+?)\)/\\ruby{\1}{\2}/g;
    
  2. or download this
    use utf8; 
    binmode DATA, ':encoding(UTF-8)';
    ...
    __DATA__
    This is English text with 日本語(にほ&#1
    +2435;ご) mixed in. To test multi-furi text: 繰(く)&
    +#12426;返(かえ)し 
    # should lead to \ruby{繰}{く}り\ruby{返}{&#12
    +363;え}し.