You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Colours for categories are currently assigned using an algorithm based on a set of ten pairs of colours/background colours which are designed to be maximally distinctive without clashing. However, it would also be useful to allow colours for specific categories to be configured in the TEI file; specific colours might match the purpose of categories in particular projects.
This could be achieved by using @style on the <category> element and providing color and background-color properties; those could then be harvested into the JSON, applied as custom properties to the category, and then passed to the getCategoryStyle function.
The text was updated successfully, but these errors were encountered:
One worry here would be that @style is specifically defined as capturing the appearance of a source text. There is (usually) no source text here, and the use of @style is arguably tag abuse. I'll think about some more appropriate approaches here.
Colours for categories are currently assigned using an algorithm based on a set of ten pairs of colours/background colours which are designed to be maximally distinctive without clashing. However, it would also be useful to allow colours for specific categories to be configured in the TEI file; specific colours might match the purpose of categories in particular projects.
This could be achieved by using
@style
on the<category>
element and providingcolor
andbackground-color
properties; those could then be harvested into the JSON, applied as custom properties to the category, and then passed to thegetCategoryStyle
function.The text was updated successfully, but these errors were encountered: