From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: The way tags are exported in HTML (without colons!) -- no workaround for searches! Date: Thu, 25 Nov 2010 11:34:12 +0100 Message-ID: <80lj4hitej.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org #+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 =3Dfind=3D command (=3DCtrl-F=3D). 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 :m= e: 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=C2=A0times: #+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 rescu= e: #+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 search= es 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 --=20 S=C3=A9bastien 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