emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: The way tags are exported in HTML (without colons!) -- no workaround for searches!
Date: Fri, 04 Feb 2011 21:56:56 +0100	[thread overview]
Message-ID: <4D4C6818.8060506@christianmoe.com> (raw)
In-Reply-To: <80lj1wp4x5.fsf@missioncriticalit.com>

This bookmarklet finds an Org tags in exported HTML in Firefox, at 
least (just a proof of concept). To try it just copy-paste the whole 
thing into the address field.

javascript:
t=window.prompt("Tag?", "");
e=document.getElementsByClassName(t);
for(i=0;i<e.length;i++)
    {e[i].scrollIntoView(true);
     if(! window.confirm("Next?"))
     {break;}
    }
void(0);

Probably not what you wanted, but fun anyway.
:)

CM


On 2/4/11 9:41 AM, Sébastien Vauban wrote:
> Hi Jeff,
>
> Jeff Horn wrote:
>> 2011/2/3 Sébastien Vauban<wxhgmqzgwmuf@spammotel.com>:
>>> What about really adding the colon marker, so that one can easily find tags in
>>> the exported file?
>>
>> Use the CSS content property.
>>
>>      http://www.w3schools.com/Css/pr_gen_content.asp
>
> If you read my post of [2010-11-25 Thu 11:34] in this thread, you'll see I did
> try that, but it's not working for the searches:
>
>>>> * 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)
>
> Best regards,
>    Seb
>

      reply	other threads:[~2011-02-04 20:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=4D4C6818.8060506@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.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).