Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .ana files titles #162

Open
matyaskopp opened this issue Jun 10, 2022 · 0 comments
Open

Fix .ana files titles #162

matyaskopp opened this issue Jun 10, 2022 · 0 comments
Labels
bug Something isn't working 🌱 ParlaMint 🌱 issues related to ParlaMint project

Comments

@matyaskopp
Copy link
Member

CZ specific fix: https://github.com/clarin-eric/ParlaMint/blob/54aa2d81885862302da38f74e6dcf2f2ffe248d8/Scripts/parlamint2final.xsl#L351-L360

 <!-- Get rid of spurious .ana in eg.
       <title type="main" xml:lang="cs">Český parlamentní korpus ParlaMint-CZ, 
         2013-12-04 ps2013-002-01-000-000.ana [ParlaMint.ana]</title>
  -->
  <xsl:template mode="comp" match="tei:titleStmt/tei:title[@type='main']">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:value-of select="normalize-space(replace(., '\.ana ', ' '))"/>
    </xsl:copy>
  </xsl:template>
@matyaskopp matyaskopp added bug Something isn't working 🌱 ParlaMint 🌱 issues related to ParlaMint project labels Jun 10, 2022
@matyaskopp matyaskopp changed the title Fix titles Fix .ana files titles Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🌱 ParlaMint 🌱 issues related to ParlaMint project
Projects
None yet
Development

No branches or pull requests

1 participant