omoidasu

a flashcard review system built on oboeru
git clone anongit@rnpnr.xyz:omoidasu.git
Log | Files | Refs | Feed | README | LICENSE

furigana (215B)


      1 #!/bin/sh
      2 
      3 # generates furigana in the format used by the rubify script
      4 # this is a little hacky
      5 
      6 kakasi -JH -Fl":" -Fr"}" -f -s -S"{" -i utf-8 \
      7 | sed -e 's:^\(.\):{\1:' -e 's:\({\([^{]*\)}\):\[\2\]:g' -e 's:{::g'