Java tutorial
//package com.java2s; public class Main { /** * The method parseRuby converts kanji enclosed in ruby tags to the * format which is supported by the textview {Kanji:furigana} * * @param textWithRuby */ public static String parseRuby(String textWithRuby) { String parsed = textWithRuby.replace("<ruby>", "{"); parsed = parsed.replace("<rt>", ";"); parsed = parsed.replace("</rt>", ""); return parsed.replace("</ruby>", "}"); } }