daisy / pipeline-scripts

!! NOTE: This project is now part of the pipeline-modules project !! | Script modules for the default DAISY Pipeline 2 distribution.
GNU Lesser General Public License v3.0
6 stars 5 forks source link

daisy202-to-epub3: smil references inside links should also be removed #74

Closed josteinaj closed 7 years ago

josteinaj commented 9 years ago

For instance, this content in DAISY 2.02:

<span class="sentence">
   <span id="dtb844" class="normalized">
      <a href="speechgen0018.smil#text847">For offentlige organer er </a>
   </span>
   <a href="http://www.lovdata.no/all/nl-19670210-000.html">
      <em id="dtb845">
         <a href="speechgen0018.smil#text848">forvaltningsloven</a>
      </em>
   </a> 
   <span id="dtb846" class="normalized">
      <a href="speechgen0018.smil#text849">(fvl.) det grunnleggende
         regelverket. </a>
   </span>
</span>

...becomes this in EPUB3:

<span class="sentence">
   <span id="dtb844" class="normalized">
      <span>For offentlige organer er </span>
   </span>
   <a href="http://www.lovdata.no/all/nl-19670210-000.html">
      <em id="dtb845">
         <a href="speechgen0018.smil#text848">forvaltningsloven</a>
      </em>
   </a> 
   <span id="dtb846" class="normalized">
      <span>(fvl.) det grunnleggende
         regelverket. </span>
   </span>
</span>

It's probably an issue with either a p:viewport or a xsl:template not matching recursively.

bertfrees commented 7 years ago

Fixed by https://github.com/daisy/pipeline-scripts/pull/104