Widget:SkinQuery/js
JP语音文本更新:CharacterVoice_jp.txt
语音模板更新:VoiceSample.txt
`;
$("#bodyContent").html(output);
$("#dollconvert").click( function(){ outlet();});
}
function convert(str, word){
var blurs = 0;
if(word == "|DIALOGUEWEDDING|" || word == "|SOULCONTRACT|") blurs = 1;
if(cn.indexOf("\n" + dollname + word) != -1){
var position = btxt.indexOf("|中文", btxt.indexOf(str, 0)) + ((blurs) ? 10 : ((str[4] == "=") ? 5 : 6));
var before = btxt.slice(0, position);
var after = btxt.slice(position, btxt.length);
var voicetxt = cn.slice(cn.indexOf("\n" + dollname + word) + 1 + (dollname + word).length, cn.indexOf("\n", cn.indexOf("\n" + dollname + word) + 1) - 1);
btxt = before + voicetxt.replace(//g, "") + after; } if(jp.indexOf("\n" + dollname + word) != -1){ var position = btxt.indexOf("|日文", btxt.indexOf(str, 0)) + ((blurs) ? 10 : ((str[4] == "=") ? 5 : 6)); var before = btxt.slice(0, position); var after = btxt.slice(position, btxt.length); var voicetxt = jp.slice(jp.indexOf("\n" + dollname + word) + 1 + (dollname + word).length, jp.indexOf("\n", jp.indexOf("\n" + dollname + word) + 1) - 1); btxt = before + voicetxt.replace(//g, "
") + after; } } })