Fixed furigana regexp. It now ignores HTML and doesn't break spacing.

This commit is contained in:
Kieran Clancy 2012-07-03 20:25:20 +09:30
parent 78a209edec
commit a766e0358e

View file

@ -6,7 +6,7 @@
import re
from anki.hooks import addHook
r = r' ?([^[]+?)\[(.+?)\]([^ ]+?|$)'
r = r' ?([^ >]+?)\[(.+?)\]'
ruby = r'<ruby><rb>\1</rb><rt>\2</rt></ruby>'
def noSound(repl):