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

Abbreviations (<expan>) #2

Open
emylonas opened this issue Mar 12, 2021 · 8 comments
Open

Abbreviations (<expan>) #2

emylonas opened this issue Mar 12, 2021 · 8 comments

Comments

@emylonas
Copy link
Collaborator

emylonas commented Mar 12, 2021

Abbreviations are surrounded by the <expan> element.
The whole <expan> element should be surrounded by a <w> element and completely copied over (deep copy, so all elements and attributes that are inside it also get copied.
Whatever white space is inside an <expan> is insignificant - only other elements are allowed within <expan>.
Example:

 <p>Είρατος<lb/>
               <expan>
                  <abbr>Σελ</abbr><ex>ε</ex><abbr>υκ</abbr><ex>ίδος</ex>
               </expan>
</p>

Should be copied as:

               <w><expan> <abbr>Σελ</abbr><ex>ε</ex><abbr>υκ</abbr><ex>ίδος</ex></expan></w>
 </p>

Inscriptions with abbreviations for testing:
akld0003

@zeichman
Copy link
Collaborator

zeichman commented Mar 26, 2021

In some instances, adjacent words that both have the <expan> attribute are mashed into a single word until there is a line break or a word lacking the attribute. Looking at jeru0497:

The text <expan><abbr>Imp</abbr><ex>eratori</ex></expan> <expan><abbr>Caes</abbr><ex>ari</ex></expan></supplied> is currently being rendered as a single word: <w><expan><abbr>Imp</abbr><ex>eratori</ex></expan><expan><abbr>Caes</abbr><ex>ari</ex></expan></supplied></w>.

It should instead be two words: <w><expan><abbr>Imp</abbr><ex>eratori</ex></expan></w> <w><expan><abbr>Caes</abbr><ex>ari</ex></expan></supplied></w>.

See also this same phenomenon in caes0106: <expan><abbr>Imp</abbr><ex>eratori</ex></expan> <expan><abbr>Caes</abbr><ex>ari</ex></expan> <expan><abbr>C</abbr><ex>aio</ex></expan> should be three words, but is currently being rendered as a single word.

@emylonas
Copy link
Collaborator Author

emylonas commented Mar 26, 2021 via email

@zeichman
Copy link
Collaborator

Forgive me if I'm misunderstanding, Elli, but it looks like the coding is correct in the xml file. The CSV lists "ImperatoriCaesari" and "ImperatoriCaesariCaio" as single words. Shouldn't these be three separate entries in the word list?

@emylonas
Copy link
Collaborator Author

emylonas commented Mar 26, 2021 via email

@emylonas
Copy link
Collaborator Author

Clarification - <expan> elements are single words, and so the <supplied> elements that may surround them would have to be broken up into separate <supplied> around each <expan>. I did this for all the multiple words that were inside supplied> but didn't catch the 12 or so multiple <expan>s. Doing so now.

@zeichman
Copy link
Collaborator

zeichman commented Apr 1, 2021

There are a number of instances where a given word has white space in the middle because of white space between the <abbr> and <ex> elements. For instance (and I have since corrected this): caes350 reads very strangely in the csv file: <w xml:id="caes350-2" xml:lang="la"><expan><abbr>le<w xml:id="caes350-3" xml:lang="la"><supplied reason="undefined">g</supplied></w></abbr> <ex>ionis</ex></expan></w>

There are a few issues. 1) There is a word nested within another word (i.e., the letter "g" is treated as its own word. 2) The space between at </abbr> <ex> leads it to not be recognized as the word "legionis" but as a "leg ionis" (which is still a single word, just with a space in it).

I wonder if it is possible to eliminate white space between </abbr><ex> via global chance to fix the second of these. I've noticed others with the same problem (e.g., "ἠ μέρᾳ" in zoor231, "Ἐπιφάνι ος" in hamm0046).

I think the word-within-the-word is related to the supplied issue (#12 ) that I noted a few days ago.

@emylonas
Copy link
Collaborator Author

emylonas commented Apr 2, 2021 via email

@zeichman
Copy link
Collaborator

zeichman commented Apr 5, 2021

I noticed another issue with expan tags. Is there a way to prevent irrelevant information from creating white space? For example (zoor0106):
<expan><abbr><choice><corr>Κ</corr><sic>Τ</sic></choice></abbr><ex>ύρι</ex><abbr>ε</abbr></expan> becomes <w>Κ ύριε</w> with white space in the middle. I'm guessing this means it won't line up with Κύριε proper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants