anacastrosalgado / TEI

1 stars 0 forks source link

Homonymous articles: JANTAR [to have dinner || dinner] #3

Open anacastrosalgado opened 2 years ago

anacastrosalgado commented 2 years ago

As a general rule, we have the "mainEntry" value (default), but there are also homonymous lexical units classified as "homonymicEntry".

JANTAR_Morais_1

<entry xmlns="http://www.tei-c.org/ns/1.0" xml:id="MORAIS_1.DLP.JANTAR" type="mainEntry" xml:lang="pt">
   <form type="lemma">
      <orth>JANTAR</orth>
   </form>
   <entry xml:id="MORAIS_1.DLP.JANTAR_vt" type="homonymicEntry" xml:lang="pt">
      <metamark function="lemmaDelimiter">,</metamark>
      <gramGrp>
         <gram type="pos" norm="VERB">v.</gram>
         <gram type="subc">at.</gram>
      </gramGrp>
      <sense xml:id="MORAIS_1.DLP.JANTAR_s1">
         <def>comer ao meio dia , ou comer depois de almoçar.</def>
      </sense>
      <pc>.</pc>
   </entry>
   <entry xml:id="MORAIS_1.DLP.JANTAR_n" type="homonymicEntry" xml:lang="pt">
      <metamark function="lemmaDelimiter">,</metamark>
      <gramGrp>
         <gram type="pos" norm="NOUN">ſ.</gram>
         <gram type="subc">m.</gram>
      </gramGrp>
      <sense xml:id="MORAIS_1.DLP.JANTAR_s2">
         <def>a ſegunda das tres comidas regulares do dia, entre o almoço , e aceia , ou antes da merenda.</def>
      </sense>
      <pc>.</pc>
      <metamark function="senseDelimiter">§</metamark>
      <sense xml:id="MORAIS_1.DLP.JANTAR_s3">
         <def>Porção de dinheiro , que as Villas , e Cidades davão aos Reis , quando hião de correição para ſuſtento de ſua comitiva</def>
      </sense>
      <pc>.</pc>
      <bibl type="attestation" source="#M._L._Monarchia_Luſitana">
         <title>M. Luſ.</title>
         <biblScope unit="volume">t. 5</biblScope>
         <biblScope unit="folium">f. 53</biblScope>
         <biblScope unit="chapter">cap. 27</biblScope>
      </bibl>
   </entry>
</entry>
laurentromary commented 2 years ago

Let me suggest a couple of changes to the encoding related to metalmark (as already discussed), but also the duplicated form that has to be preserved in an editorial perspective:

<entry xmlns="http://www.tei-c.org/ns/1.0" xml:id="MORAIS_1.DLP.JANTAR" type="mainEntry" xml:lang="pt">
   <entry xml:id="MORAIS_1.DLP.JANTAR_vt" type="homonymicEntry" xml:lang="pt">
       <form type="lemma">
           <orth>JANTAR</orth>
       </form>
       <metamark function="lemmaDelimiter">,</metamark>
       <gramGrp>
           <gram type="pos" norm="VERB">v.</gram>
           <gram type="subc">at.</gram>
       </gramGrp>
       <sense xml:id="MORAIS_1.DLP.JANTAR_s1">
           <def>comer ao meio dia , ou comer depois de almoçar.</def>
       </sense>
   </entry>
   <entry xml:id="MORAIS_1.DLP.JANTAR_n" type="homonymicEntry" xml:lang="pt">
        <form type="lemma">
             <orth>JANTAR</orth>
        </form>
        <metamark function="lemmaDelimiter">,</metamark>
        <gramGrp>
            <gram type="pos" norm="NOUN">ſ.</gram>
            <gram type="subc">m.</gram>
        </gramGrp>
        <sense xml:id="MORAIS_1.DLP.JANTAR_s2">
            <def>a ſegunda das tres comidas regulares do dia, entre o almoço , e aceia , ou antes da merenda.</def>
        </sense>
        <pc>.</pc>
        <metamark function="senseDelimiter">§</metamark>
        <sense xml:id="MORAIS_1.DLP.JANTAR_s3">
            <def>Porção de dinheiro , que as Villas , e Cidades davão aos Reis , quando hião de correição para ſuſtento de ſua comitiva</def>
        </sense>
        <pc>.</pc>
        <bibl type="attestation" source="#M._L._Monarchia_Luſitana">
           <title>M. Luſ.</title>
           <biblScope unit="volume">t. 5</biblScope>
           <biblScope unit="folium">f. 53</biblScope>
           <biblScope unit="chapter">cap. 27</biblScope>
        </bibl>
   </entry>
</entry>
anacastrosalgado commented 2 years ago

Thanks, @laurentromary. I introduced the lemmas to preserve the editorial perspective.

anacastrosalgado commented 2 years ago

I also uniformed the ids.

<entry xmlns="http://www.tei-c.org/ns/1.0" xml:id="MORAIS.1.DLP.JANTAR" type="mainEntry" xml:lang="pt">
   <entry xml:id="MORAIS.1.DLP.JANTAR-vt" type="homonymicEntry" xml:lang="pt">
      <form type="lemma">
         <orth>JANTAR</orth>
      </form>
      <metamark function="lemmaDelimiter">,</metamark>
      <gramGrp>
         <gram type="pos" norm="VERB">v.</gram>
         <gram type="subc">at.</gram>
      </gramGrp>
      <sense xml:id="MORAIS.1.DLP.JANTAR.s1">
         <def>comer ao meio dia , ou comer depois de almoçar.</def>
      </sense>
   </entry>
   <entry xml:id="MORAIS.1.DLP.JANTAR-n" type="homonymicEntry" xml:lang="pt">
      <form type="lemma">
         <orth>JANTAR</orth>
      </form>
      <metamark function="lemmaDelimiter">,</metamark>
      <gramGrp>
         <gram type="pos" norm="NOUN">ſ.</gram>
         <gram type="subc">m.</gram>
      </gramGrp>
      <sense xml:id="MORAIS.1.DLP.JANTAR.s2">
         <def>a ſegunda das tres comidas regulares do dia, entre o almoço , e aceia , ou antes da merenda.</def>
      </sense>
      <pc>.</pc>
      <metamark function="senseDelimiter">§</metamark>
      <sense xml:id="MORAIS.1.DLP.JANTAR.s3">
         <def>Porção de dinheiro , que as Villas , e Cidades davão aos Reis , quando hião de correição para ſuſtento de ſua comitiva</def>
      </sense>
      <pc>.</pc>
      <bibl type="attestation" source="#M._L._Monarchia_Luſitana">
         <title>M. Luſ.</title>
         <biblScope unit="volume">t. 5</biblScope>
         <biblScope unit="folium">f. 53</biblScope>
         <biblScope unit="chapter">cap. 27</biblScope>
      </bibl>
   </entry>
</entry>
laurentromary commented 2 years ago

And sorry for being late in seeing this: should not we use citedRange instead of biblScope?

anacastrosalgado commented 2 years ago

Sure! But element "citedRanged" is not allowed: [(https://github.com/DARIAH-ERIC/lexicalresources/issues/170)]

<entry xmlns="http://www.tei-c.org/ns/1.0" xml:id="MORAIS.1.DLP.JANTAR" type="mainEntry" xml:lang="pt">
   <entry xml:id="MORAIS.1.DLP.JANTAR-vt" type="homonymicEntry" xml:lang="pt">
      <form type="lemma">
         <orth>JANTAR</orth>
      </form>
      <metamark function="lemmaDelimiter">,</metamark>
      <gramGrp>
         <gram type="pos" norm="VERB">v.</gram>
         <gram type="subc">at.</gram>
      </gramGrp>
      <sense xml:id="MORAIS.1.DLP.JANTAR.s.1">
         <def>comer ao meio dia , ou comer depois de almoçar.</def>
      </sense>
   </entry>
   <entry xml:id="MORAIS.1.DLP.JANTAR-n" type="homonymicEntry" xml:lang="pt">
      <form type="lemma">
         <orth>JANTAR</orth>
      </form>
      <metamark function="lemmaDelimiter">,</metamark>
      <gramGrp>
         <gram type="pos" norm="NOUN">ſ.</gram>
         <gram type="subc">m.</gram>
      </gramGrp>
      <sense xml:id="MORAIS.1.DLP.JANTAR.s.2">
         <def>a ſegunda das tres comidas regulares do dia, entre o almoço , e aceia , ou antes da merenda.</def>
      </sense>
      <pc>.</pc>
      <metamark function="senseDelimiter">§</metamark>
      <sense xml:id="MORAIS.1.DLP.JANTAR.s.3">
         <def>Porção de dinheiro , que as Villas , e Cidades davão aos Reis , quando hião de correição para ſuſtento de ſua comitiva</def>
      </sense>
      <pc>.</pc>
      <bibl type="attestation" source="#M._L._Monarchia_Luſitana">
         <title>M. Luſ.</title>
         <citedRange unit="volume">t. 5</citedRange>
         <citedRange unit="folium">f. 53</citedRange>
         <citedRange unit="chapter">cap. 27</citedRange>
      </bibl>
   </entry>
</entry>
daliboris commented 2 years ago

@anacastrosalgado, don't forget to rename <citedRanged> to <citedRange> in your example , plaese.

laurentromary commented 2 years ago

@anacastrosalgado, don't forget to rename <citedRanged> to <citedRange> in your example , plaese.

let me do it!

laurentromary commented 2 years ago

@anacastrosalgado : it is not that it is not allowed, it is not yet implemented. One should just try to ping @ttasovac to get it done ;-)

daliboris commented 2 years ago

let me do it!

Thank you.

I think I'm not allowed change yours posts like you, so I have to ask one more time: don't forget closing tag names :-)

anacastrosalgado commented 2 years ago

@daliboris I don't understand... :) What's wrong here? I'm copying from Oxygen:

      <bibl type="attestation" source="#M._L._Monarchia_Luſitana">
         <title>M. Luſ.</title>
         <citedRanged unit="volume">t. 5</citedRanged>
         <citedRanged unit="folium">f. 53</citedRanged>
         <citedRanged unit="chapter">cap. 27</citedRanged>
      </bibl>
daliboris commented 2 years ago

This is how it should look like:

<citedRange unit="volume">t. 5</citedRange>
<citedRange unit="folium">f. 53</citedRange>
<citedRange unit="chapter">cap. 27</citedRange>

You use citedRanged instead of citedRange in both starting and closing tags. See element name here https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-citedRange.html

anacastrosalgado commented 2 years ago

Oh! I really need new glasses!!! Thanks, @daliboris . image

@laurentromary It works! All the content is validated.

<entry xmlns="http://www.tei-c.org/ns/1.0" xml:id="MORAIS.1.DLP.JANTAR" type="mainEntry" xml:lang="pt">
   <entry xml:id="MORAIS.1.DLP.JANTAR-vt" type="homonymicEntry" xml:lang="pt">
      <form type="lemma">
         <orth>JANTAR</orth>
      </form>
      <metamark function="lemmaDelimiter">,</metamark>
      <gramGrp>
         <gram type="pos" norm="VERB">v.</gram>
         <gram type="subc">at.</gram>
      </gramGrp>
      <sense xml:id="MORAIS.1.DLP.JANTAR.s.1">
         <def>comer ao meio dia , ou comer depois de almoçar.</def>
      </sense>
   </entry>
   <entry xml:id="MORAIS.1.DLP.JANTAR-n" type="homonymicEntry" xml:lang="pt">
      <form type="lemma">
         <orth>JANTAR</orth>
      </form>
      <metamark function="lemmaDelimiter">,</metamark>
      <gramGrp>
         <gram type="pos" norm="NOUN">ſ.</gram>
         <gram type="subc">m.</gram>
      </gramGrp>
      <sense xml:id="MORAIS.1.DLP.JANTAR.s.2">
         <def>a ſegunda das tres comidas regulares do dia, entre o almoço , e aceia , ou antes da merenda.</def>
      </sense>
      <pc>.</pc>
      <metamark function="senseDelimiter">§</metamark>
      <sense xml:id="MORAIS.1.DLP.JANTAR.s.3">
         <def>Porção de dinheiro , que as Villas , e Cidades davão aos Reis , quando hião de correição para ſuſtento de ſua comitiva</def>
      </sense>
      <pc>.</pc>
      <bibl type="attestation" source="#M._L._Monarchia_Luſitana">
         <title>M. Luſ.</title>
         <citedRange unit="volume">t. 5</citedRange>
         <citedRange unit="folium">f. 53</citedRange>
         <citedRange unit="chapter">cap. 27</citedRange>
      </bibl>
   </entry>
</entry>