public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Making a filter to convert ruby characters from HTML to ConTeXt
@ 2019-08-08 16:26 Patrick Kenny
       [not found] ` <2e8d8fde-b107-41d3-ad59-bc249f8f0ae8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Kenny @ 2019-08-08 16:26 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 838 bytes --]

I'm trying to write a filter (in panflute) to convert ruby characters 
<https://en.wikipedia.org/wiki/Ruby_character> from HTML to ConTeXt.

Input HTML: 

<p>This is an example: <ruby>例<rt>レイ</rt></ruby></p>

After conversion (what I want my output to look like):

This is an example: \ruby{例}{レイ}

What's a good way to approach this kind of conversion?  I don't know how to 
target the ruby tags.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2e8d8fde-b107-41d3-ad59-bc249f8f0ae8%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2771 bytes --]

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

end of thread, other threads:[~2019-08-09 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-08 16:26 Making a filter to convert ruby characters from HTML to ConTeXt Patrick Kenny
     [not found] ` <2e8d8fde-b107-41d3-ad59-bc249f8f0ae8-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-08-08 17:49   ` John MacFarlane
     [not found]     ` <yh480kh86rtum3.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-08-09 16:52       ` Patrick Kenny

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 NNTP newsgroup(s).