projectLEMDO / lemdoIssues

Repository for LEMDO issue tracking and related documents.
MIT License
1 stars 0 forks source link

Pseudoelements not searchable #243

Open LEMDO-PM opened 4 months ago

LEMDO-PM commented 4 months ago

When searching for signature numbers, the pseudoelements created in the scss don't appear in Chrome. You can find them in Firefox, but not Chrome. I'll look at this when I'm in the lab tomorrow.

LEMDO-PM commented 4 months ago

Sounds like not searchable in Edge either

martindholmes commented 4 months ago

Usually we use pseudo-elements for content which is part of the output style, and is not actually significant or part of the content. For anything which is part of the actual content that people will realistically want to search for, we should output literal characters from the XSLT. So it's a question of identifying any pseudo-elements which really shouldn't be pseudo-elements.

martindholmes commented 3 months ago

This code is generated at line 243 of xhtml5_templates_tei_module.xsl. Could be replaced with physical text. But the phrase "Page beginning" would then become part of the searchable/indexable text. Thinking back, I believe the reason we did this was a) because sig nums are often missing or wrong, and if we drop in literal text, they'll appear to be part of the document whether or not they're really there, and b) they're all indexed in the TOC anyway.