emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* The way tags are exported in HTML (without colons!) -- no workaround for searches!
@ 2010-11-25 10:34 Sébastien Vauban
  2011-02-03 17:27 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Sébastien Vauban @ 2010-11-25 10:34 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

#+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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-04 20:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-25 10:34 The way tags are exported in HTML (without colons!) -- no workaround for searches! Sébastien Vauban
2011-02-03 17:27 ` 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

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).