Method: IsoDoc::PresentationXMLConvert#capitalise_xref
- Defined in:
- lib/isodoc/presentation_function/xrefs.rb
#capitalise_xref(node, linkend, label) ⇒ Object
178 179 180 181 182 183 184 185 |
# File 'lib/isodoc/presentation_function/xrefs.rb', line 178 def capitalise_xref(node, linkend, label) linktext = linkend.gsub(/<[^<>]+>/, "") (label && !label.empty? && /^#{Regexp.escape(label)}/.match?(linktext)) || linktext[0, 1].match?(/\p{Upper}/) and return linkend node["case"] and return Common::case_with_markup(linkend, node["case"], @script) capitalise_xref1(node, linkend) end |