Skip to content

Commit

Permalink
migrate translate-from; closes metanorma/metanorma-standoc#105
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Sep 2, 2019
1 parent 70e0895 commit 99e6ada
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 35 deletions.
4 changes: 0 additions & 4 deletions lib/asciidoctor/iec/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ def boilerplate(x_orig)
File.read(file, encoding: "UTF-8")
end

def relaton_relations
super + %w(translated-from)
end

def doctype_validate(xmldoc)
doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
%w(international-standard technical-specification technical-report
Expand Down
7 changes: 0 additions & 7 deletions spec/asciidoctor-iec/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
:title-main-fr: Titre Principal
:title-part-fr: Part du Titre
:library-ics: 1,2,3
:translated-from: ABC 123
INPUT
<?xml version="1.0" encoding="UTF-8"?>
<iso-standard xmlns="http://riboseinc.com/isoxml">
Expand Down Expand Up @@ -137,12 +136,6 @@
</organization>
</owner>
</copyright>
<relation type="translatedFrom">
<bibitem>
<title>--</title>
<docidentifier>ABC 123</docidentifier>
</bibitem>
</relation>
<ext>
<doctype>article</doctype>
<editorialgroup>
Expand Down
12 changes: 0 additions & 12 deletions spec/isodoc/iso_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,6 @@
</iso-standard>
INPUT
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p>&#160;</p>
</div>
<p>
<br clear="all" class="section"/>
</p>
<div class="WordSection2">
<p>
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
Expand Down Expand Up @@ -279,12 +273,6 @@
</iso-standard>
INPUT
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p>&#160;</p>
</div>
<p>
<br clear="all" class="section"/>
</p>
<div class="WordSection2">
<p>
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
Expand Down
12 changes: 0 additions & 12 deletions spec/isodoc/section_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@
</iso-standard>
INPUT
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p>&#160;</p>
</div>
<p><br clear="all" class="section"/></p>
<div class="WordSection2">
<p><br clear="all" style="mso-special-character:line-break;page-break-before:always"/></p>
#{IEC_TITLE}
Expand Down Expand Up @@ -392,10 +388,6 @@
</iso-standard>
INPUT
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p>&#160;</p>
</div>
<p><br clear="all" class="section"/></p>
<div class="WordSection2">
<p>
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
Expand Down Expand Up @@ -431,10 +423,6 @@
</iso-standard>
INPUT
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p>&#160;</p>
</div>
<p><br clear="all" class="section"/></p>
<div class="WordSection2">
<p>
<br clear="all" style="mso-special-character:line-break;page-break-before:always"/>
Expand Down

0 comments on commit 99e6ada

Please sign in to comment.