-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use all text content of tei:persName for index entries #1136
Conversation
Is it correct that you will have all names without whitespaces or comma separation? |
Here I tried to visualize what I meant let $doc := <text><persName>Stephan von Berlin,</persName><persName>Daniel von und zu Wien</persName></text>
let $names := replace(string-join($doc//persName/text()), ',', '')
return $names results in So it strongly depends on how the persons are written... @yngwi any thoughts? |
Hi, this index entry (for instance) contains commas, there are many similar |
@yngwi The difference between keeping and not keeping the comma is that when it is not kept, as is currently the case, the name that is displayed in the breadcrumb and the headline is
Sorry for the confusion, I should have described the issue more clearly. If I understand correctly,
This causes an error. By instead using a |
@NTsch thank you for clarifying. I wonder how else this long names could be tackled for breadcrumbs. I think in this context the whole name is maybe overkill as the breadcrumb is mainly there to quickly see where you are so maybe it could be abbreviated somehow? Of course, the question would be "how?". Your above example doesn't seem to have an easy solution... |
Why not take |
@GVogeler That's something that I thought of but I wasn't sure if this kind of abbreviation isnt't "too" simple to be usable. It might be a good compromise though |
I've made some changes, long breadcrumbs are now shortened and ended with '...' as suggested above, and I've made adjustments in some places so that complex TEI without line breaks still results in spaces between words in the breadcrumb, the description, and the list of names. Any thoughts? @yngwi @StephanMa |
lgtm |
Looks at all child text nodes of
tei:persName
to create the display frames in the index.Closes #1135.