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

Move examples after translations #113

Open
iljackb opened this issue Oct 14, 2021 · 0 comments
Open

Move examples after translations #113

iljackb opened this issue Oct 14, 2021 · 0 comments

Comments

@iljackb
Copy link
Owner

iljackb commented Oct 14, 2021

Currently in the Mixtec dictionary the examples come before the translations and definitions which they are instantiating. This is poor information structure, e.g.:

  <sense>
    <usg type="domain">Senses</usg>
       <cit type="example">
          <quote xml:lang="mix">katsia va'a/va'á</quote>
             <cit type="translation">
                <quote xml:lang="en">to taste good/mad</quote>
             </cit>
             <cit type="translation">
                <quote xml:lang="es">sabe bien/malo</quote>
             </cit>
       </cit>
       <cit type="translation">
           <form>
               <orth xml:lang="en">to taste</orth>
            </form>
       </cit>
       <cit type="translation">
            <form>
                <orth xml:lang="es">saber</orth>
            </form>
       </cit>
   </sense>

Write script to re-arrange these element blocks (producing the following):

  <sense>
    <usg type="domain">Senses</usg>
      <!-- potential <def>'s would go here-->
       <cit type="translation">
           <form>
               <orth xml:lang="en">to taste</orth>
            </form>
       </cit>
       <cit type="translation">
            <form>
                <orth xml:lang="es">saber</orth>
            </form>
       </cit>
       <cit type="example">
          <quote xml:lang="mix">katsia va'a/va'á</quote>
             <cit type="translation">
                <quote xml:lang="en">to taste good/mad</quote>
             </cit>
             <cit type="translation">
                <quote xml:lang="es">sabe bien/malo</quote>
             </cit>
       </cit>
   </sense>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant