lib/isodoc/ieee/word_authority.rb in metanorma-ieee-0.0.3 vs lib/isodoc/ieee/word_authority.rb in metanorma-ieee-0.0.4
- old
+ new
@@ -44,10 +44,11 @@
def officer_style(docxml)
docxml.xpath("//p[@type = 'officeholder']").each do |p|
officeholder_style(p)
end
officemember_style(docxml)
+ officeorgrep_style(docxml)
three_column_officemembers(docxml
.at("//div[@id = 'boilerplate-participants']"))
end
def officeholder_style(para)
@@ -72,9 +73,22 @@
.each do |p|
p["class"] = "IEEEStdsNamesList"
end
docxml.xpath("//p[@type = 'emeritus_sign']").each do |p|
p["class"] = "IEEEStdsParaMemEmeritus"
+ end
+ end
+
+ def officeorgrep_style(docxml)
+ docxml.xpath("//p[@type = 'officeorgrepmemberhdr']").each do |p|
+ p["class"] = "IEEEStdsNamesList"
+ p["style"] =
+ "margin-bottom:6.0pt;tab-stops:right 432.0pt;"
+ end
+ docxml.xpath("//p[@type = 'officeorgrepmember']").each do |p|
+ p["class"] = "IEEEStdsNamesList"
+ p["style"] =
+ "margin-top:6.0pt;tab-stops:right dotted 432.0pt;"
end
end
def three_column_officemembers(div)
return unless div