[ create a new paste ] login | about

Link: http://codepad.org/KW2uU8xO    [ raw code | fork ]

b2ox - C, pasted on Oct 25:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// ローマ字→ひらがな一括変換スクリプト for Cadencii 3.0.4(r595以降)
public static class Roman2Hiragana {
  public static bool Edit( Boare.Lib.Vsq.VsqFile Vsq ) {
    for ( int i = 1; i < Vsq.Track.size(); i++ ) {
      for ( int j = 0; j < Vsq.Track.get( i ).getEventCount(); j++ ) {
        Boare.Lib.Vsq.VsqEvent item = Vsq.Track.get( i ).getEvent( j );
        if ( item.ID.type == Boare.Lib.Vsq.VsqIDType.Anote ) {
          item.ID.LyricHandle.L0.Phrase = KanaDeRomanization.Attach( item.ID.LyricHandle.L0.Phrase );
        }
      }
    }
    return true;
  }
}


Create a new paste based on this one


Comments: