{# furigana.html 11/28/2012 jichi # @param tuples [unicode surface, unicode yomigana, str annot, str color, int groupId or None] # @param* rubySize int yomigana font size # @param* annotSize int annot font size # @param* paddingSize int padding space size # @param* center bool align ment # @param* annotExists bool # @param* rubyExists bool # @param* annotFont str # @param* rubyFont str # # Tuples will be iterated twice. # Tuple elements can be None. # This file is not written in HAML for performance reason. -#} %if center
%endif %if rubyExists % for _, yomi, _, _ in tuples % if yomi % else %endif %for surface, _, _, color in tuples % if surface % else %if annotExists % for _, _, annot, _ in tuples % if annot % else %endif
{{yomi|e}} % endif % endfor
{{surface|e}} % endif %endfor
{{annot|e}} % endif % endfor
%if center
%endif