Code Monkey home page Code Monkey logo

Comments (2)

Omikhleia avatar Omikhleia commented on July 20, 2024

1-3 look like #240 could address them.

4 seems different and already doable, no? (_au revoir_{lang=fr}, with or without explicit span) (EDIT: The <i> in your example doesn't seem very semantic though... Should rather be a <span>, no?)

from djot.

rauschma avatar rauschma commented on July 20, 2024

The <i> in your example doesn't seem very semantic though... Should rather be a <span>, no?

This is what the HTML spec says (emphasis in bold is mine):

“The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts.”

“Terms in languages different from the main text should be annotated with lang attributes [...]”

1-3 look like #240 could address them.

True! Maybe:

!dfn[dfn text]
!cite[cite text]
!i[i text]{lang="fr"}

Or, more verbose:

[dfn text]{!dfn}
[cite text]{!cite}
[i text]{!i lang="fr"}

from djot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.