emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Ox-html: Replace <b> with <strong> and <i> with <em>
Date: Thu, 25 Oct 2018 08:00:07 +1100	[thread overview]
Message-ID: <87in1rkqlk.fsf@gmail.com> (raw)
In-Reply-To: <CAFyQvY2jadWMek4nDjvoz0dGm7tQF_83Fr2Q18cYB6wfD7ntMA@mail.gmail.com>


Kaushal Modi <kaushal.modi@gmail.com> writes:

> On Wed, Oct 24, 2018 at 2:04 AM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>>
>>
>> No objection from me. Thank you!
>
> Actually, before making this change, I started reading up on the HTML5
> spec on the b, strong, i, em tags, and now I am confused as ever.
>
> Facts:
>
> - b and i are not deprecated
> - b and strong are both valid but their use depends on the writer's
> context (but Org mode has just one mark for either "*")
> - i and em are both valid but their use depends on the writer's
> context (but Org mode has just one mark for either "/").
>
> From "em" docs[em], in the NOTE section there:
>
>> The em element isn’t a generic "italics" element. Sometimes, text is intended to stand out from the rest of the paragraph, as if it was in a different mood or voice. For this, the i element is more appropriate.
>
> See the b tag docs[b] and i tag docs[i], and this W3C FAQ on using b
> and i tags[faq] for more.
>
>
> *Summary* (/see what I did there?/):
>
> I guess there's no need to change what "*" and "/" do right now in
> ox-html, as there doesn't seem "one right way" to do things here.
>
> And folks strongly wanting to use <strong> and <em> for bold and
> italic can customize org-html-text-markup-alist.
>
> HTML experts, please chime in.
>
>
>
> [em]: https://www.w3.org/TR/html5/textlevel-semantics.html#the-em-element
> [b]: https://www.w3.org/TR/html5/textlevel-semantics.html#the-b-element
> [i]: https://www.w3.org/TR/html5/textlevel-semantics.html#the-i-element
> [faq]: https://www.w3.org/International/questions/qa-b-and-i-tags

I'll start by stating I'm definitely not an HTML expert.

I do believe we should move away from b/i to strong/em as I think these
are the correct semantic tags to use and are generally what is
preferred. This means they are also likely to already have appropriate
'styling' in many 'canned' styles and valid consistent interpretations
for different media types. 

The problem with b and i is that they specify how rather than what and
don't always make sense for all possible media types. For example, what
does 'bold' or 'italic' mean for a screen reader?

I don't think this is something that is urgent, but it is the direction
we should go. The only real reason for sooner rather than later is that
we can probably simplify some of the exporters and ensure any new
exporters are correct and won't need to be change retrospectively.

Tim

-- 
Tim Cross

  reply	other threads:[~2018-10-24 21:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-24  0:38 Ox-html: Replace <b> with <strong> and <i> with <em> Kaushal Modi
2018-10-24  6:04 ` Nicolas Goaziou
2018-10-24 15:14   ` Kaushal Modi
2018-10-24 21:00     ` Tim Cross [this message]
2018-10-26  5:24       ` *markup*, /markup/ and _markup_ true semantics [Was: Re: Ox-html: Replace <b> with <strong> and <i> with <em>] Garreau, Alexandre
2018-10-26 20:15         ` Tim Cross
2018-10-27 12:52           ` Garreau, Alexandre
2018-10-28 21:19             ` Tim Cross
2018-10-28 21:46               ` Neil Jerram
2018-10-28 22:43               ` *markup*, /markup/ and _markup_ true semantics Garreau, Alexandre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87in1rkqlk.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).