-
Notifications
You must be signed in to change notification settings - Fork 6
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
Inconsistent use of head tag #4
Comments
I see what you mean. (The actual second example didn't make it through, but I 'see' what you mean:-)) |
Sorry about that - I've edited my original post to fix that. |
First, I want to express my sincere appreciation for your quick responses to my posts! Now, to follow up on your response...
The TEI Guidelines for Dictionaries states:
This appears to be the case in LSJ. For this case, TEI prescribes the following format:
Since the structure I see in LSJ is quite different, I was not assuming any adherence to TEI.
I find in the README.md the following statement:
So, is the purpose of the LSJLogeion database not to make changes that improve on what is available from the Perseus LSJ? I have changed |
I don't follow how we got to homographs? Anyway, feel free to do with the files whatever you like. It would be nice to know what projects this version is being used in. A lot of work has gone into cleaning it up, and right now I unfortunately don't have time to contemplate structural or cosmetic changes. Sorry I mentioned TEI:-) |
I work for SIL, and this resource is under consideration for inclusion in a tool for translators and translation consultants (probably mostly the latter). |
To expand on what I wrote previously...
For the benefit of those who come after me, here are the specifics of how I did the search and replace using Regular Expressions: Search Expression: This way, both the start and end tags are replaced at the same time. This worked for me using Notepad++. Also, I had previously combined all the individual files into one, in order to make this kind of processing easier, as well as to fit in with how our tool loads XML resources. |
Thanks!
Helma Dik
Department of Classics
University of Chicago
…On Fri, Jun 4, 2021 at 3:50 PM ArmorBearer ***@***.***> wrote:
To expand on what I wrote previously...
I have changed <head ...> to <headword ...> in my local copy, where
appropriate. ... In the future this maintenance task will fall to someone
else, and they may not be as versed in Regular Expression search and
replace as I am...
For the benefit of those who come after me, here are the specifics of how
I did the search and replace using Regular Expressions:
Search Expression: <head extent="([^"]+)" lang="([^"]+)" opt="n"
orth_orig="([^"]+)">([\w \[\]-]+)</head>
Replacement Expression: <headword extent="\1" lang="\2" opt="n"
orth_orig="\3">\4</headword>
This way, both the start and end tags are replaced at the same time. This
worked for me using Notepad++. Also, I had previously combined all the
individual files into one, in order to make this kind of processing easier,
as well as to fit in with how our tool loads XML resources.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZLI4IJORYFBN22NSDKO33TRE37XANCNFSM443EVBJQ>
.
|
By the way, losing SIL's amazing, amazing, Conc to the progress of Apple's OS (again, every upgrade is a downgrade..) was what spurred me to start talking to the local digital wizards, way back when. I wrote my dissertation and second book using Conc, a LOT. |
I have noticed that there seems to be an inconsistency in the use of the <head> tag in the XML markup. For example:
<head>Preface 1925</head>
<div2 id="cross*a" orig_id="n0" key="*a" type="main" opt="n"><headword extent="full" lang="greek" opt="n" orth_orig="Α α">α</headword>...
In the first case, 'head' seems to mean 'heading'; in the second case, it seems to mean 'headword'. Do I understand this correctly?
In both cases, this makes it harder to convert the XML into HTML for display purposes, since <head> has another meaning in HTML. I would recommend using different, more distinct tags for these situations. Is that a possibility?
The text was updated successfully, but these errors were encountered: