From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23209 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Kenny Newsgroups: gmane.text.pandoc Subject: Making a filter to convert ruby characters from HTML to ConTeXt Date: Thu, 8 Aug 2019 09:26:44 -0700 (PDT) Message-ID: <2e8d8fde-b107-41d3-ad59-bc249f8f0ae8@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_448_1557475149.1565281604449" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153877"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDLYD7NCUUKBBRM2WHVAKGQE6PPQFZY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Aug 08 18:26:48 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hvlFX-000dsf-LK for gtp-pandoc-discuss@m.gmane.org; Thu, 08 Aug 2019 18:26:47 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id b4sf62799515otf.15 for ; Thu, 08 Aug 2019 09:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=vzgAfMJ8mQXIw7a03feJXAE+fKmcv8BYTlTLwqOFNCQ=; b=TEldWohy7fvV4enDrQ++VAwyD8zJMhL7JHrBbA5PZeVT396aIOKA3bbBRTXWWaf7W0 +hteu0TxPhVJqbTR4LlqyjrI2LlMmJPd/CocagP/J7wQ/HRMYqTHXsffS6XNAy5OJt5s IkQYSXjArtRb1ojWWB8V3lFw+0fm27OCYOrND5l77aAHPZl87dDB0OdRQgGaC1EQ9N88 yb3mTfO8xCRiaodj1Ist3EL+bTI1mg8ven0dY99XmegSLcclbfmu+NOUF/4HJgPeXtYP rW5dsQJCObiWojwMJebYr2eu103m6p3b0kAtq9Wy6T0kdQmgHJ1RUIdheQZf98yVhYmj +zXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=vzgAfMJ8mQXIw7a03feJXAE+fKmcv8BYTlTLwqOFNCQ=; b=lUiKcrQpjnGBg5i3Y0SxJXMADRt4CLTyIifGWeMDr0IKjKg8UGwT1uq15BGta9lJQr ufvn2EN5FuEJwC5wbAgwylNte98aMzQMRW5wKtegMsHkvJiZqLTirZcG6nfiEtk3CuLq e64oVmYxTsezH9wEAuN+Lbfe9VaFQGp/eDE/yudxqehQbj8SY+aRj6dlqQKgvBIffBPL RDCS2EBYwsFE9BSI8FNHuKgrVfWCGThW4OaFmU52GLmOJVCU5S3nb9FsskNZgU1u8+pB KNOGiifhXtDBFgfpZ7FYb11lnhhrw86JEtX52VbmzpN1KKaukdpYF+6BNs0P8AYqcIFR kxsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=vzgAfMJ8mQXIw7a03feJXAE+fKmcv8BYTlTLwqOFNCQ=; b=bjLF12bSs2NzBLAt/vRiaGtHvrPOkIPCBEGHxBapZH5CQxliYNsE3Lw3kjh3TrAjIu iVtNStgdPY14+KbNTAHIKMO46DuPPV2s8I/77pUsGfdudW58yPOXq5Pvs06ySF+JzdHQ vAcBRK0f90xXfYouLpawUbI1kYzF53/A8duG7qmc1JxQL+XDwM8Ajc8dtDRUS+M/C6F5 jzYrHcFzAh0RjuVvEtThRMYWqRtcvMXVjrvfstt/1NDnkTj+082FnLjiBC1bXOPOlXHw Z8/2WEHQtXTrSCeOScHV+uWMtbg7VV6XiB22g1k0adtDTiKsozgI9w0gwkwHbqy82rAk UGiQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXNdb8lCiShWDhpBcDlyRBWq9xRUph7DJrEIMMse09Z0+udv1qf knfPRyzGnsbAs4ZAhTHCLuw= X-Google-Smtp-Source: APXvYqw9wcRTDgDC2bRd6qH9L9Owf3rKnUFKqoCtPiRUjijofc1u+kwEeK4W+/vPvyABqDxBgN28ZA== X-Received: by 2002:a54:4610:: with SMTP id p16mr3435992oip.56.1565281605968; Thu, 08 Aug 2019 09:26:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:5d4:: with SMTP id d20ls1901803oij.14.gmail; Thu, 08 Aug 2019 09:26:45 -0700 (PDT) X-Received: by 2002:aca:f552:: with SMTP id t79mr2879287oih.145.1565281605059; Thu, 08 Aug 2019 09:26:45 -0700 (PDT) X-Original-Sender: ptmkenny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23209 Archived-At: ------=_Part_448_1557475149.1565281604449 Content-Type: multipart/alternative; boundary="----=_Part_449_1478465176.1565281604449" ------=_Part_449_1478465176.1565281604449 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm trying to write a filter (in panflute) to convert ruby characters=20 from HTML to ConTeXt. Input HTML:=20

This is an example: =E4=BE=8B=E3=83=AC=E3=82=A4 After conversion (what I want my output to look like): This is an example: \ruby{=E4=BE=8B}{=E3=83=AC=E3=82=A4} What's a good way to approach this kind of conversion? I don't know how to= =20 target the ruby tags. --=20 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 e= mail 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. ------=_Part_449_1478465176.1565281604449 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I'm trying to write a filter (in panflute) to con= vert ruby characte= rs from HTML to ConTeXt.

Input HTML:=C2=A0

<p>This is an example: <ruby>=E4=BE=8B<rt>=E3=83=AC=E3=82=A4</rt></ruby></p><= /div>

After conversion (what I want m= y output to look like):

=
This is an example: \ruby{=E4=BE=8B}{= =E3=83=AC=E3=82=A4}

What's a go= od way to approach this kind of conversion?=C2=A0 I don't know how to t= arget the ruby tags.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.co= m.
------=_Part_449_1478465176.1565281604449-- ------=_Part_448_1557475149.1565281604449--