Method: IsoDoc::PresentationXMLConvert#cjk_extended_title
- Defined in:
- lib/isodoc/presentation_function/title.rb
#cjk_extended_title(doc) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/isodoc/presentation_function/title.rb', line 64 def cjk_extended_title(doc) l = cjk_search doc.xpath(ns("//bibdata/title[#{l}] | //floating-title[#{l}] | " \ "//fmt-title[@depth = '1' or not(@depth)][#{l}]")) .each do |t| t.text.size < 4 or next t.traverse do |n| n.text? or next n.replace(@i18n.cjk_extend(n.text)) end end end |