Sefaria / Sefaria-Export

Structured Jewish texts and metadata exported from Sefaria's database.
Other
255 stars 165 forks source link

Meaning of HTML in the merged.json files? #46

Open lancejpollard opened 11 months ago

lancejpollard commented 11 months ago

What is the meaning of <big> and stuff like <i data-overlay=\"Vilna Pages\" data-value=\"1a\"></i>?

Screenshot 2023-10-13 at 10 40 45 PM
arubi9 commented 9 months ago

Hey!

The <big> tag in HTML is used to increase the font size of the text enclosed within it, making it stand out from the surrounding text. However, it's worth noting that the <big> tag is obsolete in HTML5, and it's recommended to use CSS for adjusting text size for better web standards compliance.

As for the <i> tag with data-overlay and data-value attributes, the <i> tag is typically used to italicize text, but it's often used for icons in modern web design (like with font-awesome). The data-* attributes are custom attributes that developers use to store extra information that doesn't have any visual representation but can be used by scripts. In this context, "Vilna Pages" likely refers to a specific dataset or reference, and "1a" could be an identifier for a part of this dataset.

If you need any assistance updating these to CSS or further clarifying their functions, I'm here to help!

Best, Avner Rubinov

lancejpollard commented 3 months ago

@arubi9 what is their purpose within the text, in addition to changing font size? Is it to emphasize something (or for small, to deemphasize something)? What about italics. Can all that stuff just be stripped or ignored?