Skip to content

Adaptation Style Rule #13

@AdamSobieski

Description

@AdamSobieski

As indicated in #11, an adapt attribute could be of use for annotation to signal that certain content, as phrased, was expected to require specified prerequisite adaptation-parameter values and could, then, be conditionally adapted, rephrased, rewritten, further explained, and/or enhanced with adaptive capabilities or features (e.g., tooltip hover-over definitions).

Additionally or alternatively, an adaptation-preconditions-met style property could be of use for these purposes.

An @adaptation style rule utilizing adaptation queries syntax would work in combination with this and other style properties. Such a style rule might resemble:

@adaptation 0 <= q('https://www.wikidata.org/entity/Q441') < 0.5
{
   .botany-level1 { adaptation-preconditions-met: false; }
   .botany-level2 { adaptation-preconditions-met: false; }
}

@adaptation 0.5 <= q('https://www.wikidata.org/entity/Q441') < 0.75
{
   .botany-level1 { adaptation-preconditions-met: true; }
   .botany-level2 { adaptation-preconditions-met: false; }
}

@adaptation 0.75 <= q('https://www.wikidata.org/entity/Q441')
{
   .botany-level1 { adaptation-preconditions-met: true; }
   .botany-level2 { adaptation-preconditions-met: true; }
}
<p>Lorem ipsum dolor sit amet, <term class="botany-level1">consectetur</term> adipiscing elit, sed do
eiusmod tempor incididunt ut <term class="botany-level2">labore</term> et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco <term class="botany-level2">laboris</term>
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est <term class="botany-level2">laborum</term>.</p>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions