emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: The way tags are exported in HTML (without colons!) -- no workaround for searches!
Date: Thu, 25 Nov 2010 11:34:12 +0100	[thread overview]
Message-ID: <80lj4hitej.fsf@missioncriticalit.com> (raw)

#+TITLE:     HTML export of tags
#+DATE:      2010-11-25
#+LANGUAGE:  en_US

* Abstract

In HTML exports, one can wanna search on a tag name, via the Web browser's
simple =find= command (=Ctrl-F=).

In the Org file, such a simple search is easily done (let's say from Vim), as
tags are delimited by colon markers. So, just search on ":tagname:".

In the HTML file, there is no such marker. That means, finding a tag can be
really tough.

* Example

Format of the source Org file:

#+begin_src org
** TODO Order a new book                                                 :me:

In the meanwhile, give me something else to read than the AsciiDoc tutorial.
#+end_src

Searching the tag (string) "me" through the HTML output will be matched
4 times:

#+begin_src html
** TODO Order a new book   me
                           ^

In the meanwhile, give me something else to read than the AsciiDoc tutorial.
       ^               ^    ^
#+end_src

* Workaround?

Maybe adding a colon before and after the tag would help?  CSS to the rescue:

#+begin_src
.tag:before {
    content: ":";
}

.tag:after {
    content: ":";
}
#+end_src

Answer is: no! In the HTML display, we now do well see a ":me:", but searches
on that same string fail to find it.

* Solution?

- Really add a colon marker in the exported file (to HTML)

- As well, clearly make a separation between the different tags, instead of
  concatenating them as one big chunck, so that we could put a background
  color that'd be cut between the consecutive tags:

      +----+  +----+  +----+
      |tag1|  |tag2|  |tag3|
      +----+  +----+  +----+

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

             reply	other threads:[~2010-11-25 10:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-25 10:34 Sébastien Vauban [this message]
2011-02-03 17:27 ` The way tags are exported in HTML (without colons!) -- no workaround for searches! Bastien
2011-02-03 19:45   ` Sébastien Vauban
2011-02-03 21:15     ` Jeff Horn
2011-02-04  8:21       ` Bastien
2011-02-04  8:41       ` Sébastien Vauban
2011-02-04 20:56         ` Christian Moe

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=80lj4hitej.fsf@missioncriticalit.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /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).