112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# File 'lib/asciidoctor/standoc/macros.rb', line 112
def process(parent, target, attributes)
rpbegin = '('
rpend = ')'
if attributes.size == 1 and attributes.key?("text")
rt = attributes["text"]
elsif attributes.size == 2 and attributes.key?(1) and
attributes.key?("rpbegin")
rt = attributes[1] || ""
else
rpbegin = attributes['rpbegin']
rt = attributes['rt']
rpend = attributes['rpend']
end
"<ruby>#{target}<rp>#{rpbegin}</rp><rt>#{rt}</rt>"\
"<rp>#{rpend}</rp></ruby>"
end
|