From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26246 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: niszet niszet Newsgroups: gmane.text.pandoc Subject: Re: Does any plan to support a syntax highlighting for ODT? Date: Sat, 26 Sep 2020 09:47:15 +0900 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004037c305b02ccaba" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss To: John MacFarlane Original-X-From: pandoc-discuss+bncBCAI3UXLQYKRBVU7XL5QKGQEDCBGGTY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Sep 26 02:48:26 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f188.google.com ([209.85.160.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kLyO1-0000My-RD for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 26 Sep 2020 02:48:25 +0200 Original-Received: by mail-qt1-f188.google.com with SMTP id g1sf3635714qtc.22 for ; Fri, 25 Sep 2020 17:48:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1601081305; cv=pass; d=google.com; s=arc-20160816; b=Ly7Kc6Iwv4etPaCG//9mck14PZo4SOAteeopok38fYPm67XY1FZ8q+9pVoCEiJMmON jNUwPUaGmRGywhIULPhZwnYF12CWyQPxepXtyonEpuD54Ero5Y7Gf6/gJoc/iBOqjjKe GWEoyeOZ3MXNMThP8Ni9P2LoVN/bz6rkkMNT6B30+04aVFddpLau5osB4bqYRD4k3FiD J7XIu+yGxiH5onBqRO7Z1dsIbneYQ+H5fY2EwUeGpfi5tRAQoyVAhoy8Q+jJp2tqK6wj qWCQodRu2UohaBKnVkfLpIMi8PKl870J4q0ndG1ONUCXuRpjrWc4X93F1yEJQJbr8KRq 2d+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=rkPAJOXrPmt4J6xtHfYd0P213shYQoEZ/PcSReWj2io=; b=sRK5BfucbKRYX1vAyMRx26fA7ejK5Xj7Nhz932DiTGnAsQLw01I6we2AeQfcJivt0f pIBDD/4X721mFD3IJCKiMV+l4TxSwH9B42VaiaVTgDkFhchqcEb1/bO9YUfp9mUEzOWQ Ktacw6zWLW1KNQ5b+Q8NPKxDDnh7vffeYdMTzm5+Kg77G4WVYn48Lp1lCi+s4xnXpFsu VnpodqJwhaxXe69+T85w8fWH3B0iSxgAqk3ZdfzlLGVZrnwquuhdKbZIeV6Lf8/M7ysR shR2SqOjwLvcQmXp45mOtQTpWcrL7uScNuCymVbK9zTlDMbxc0kQhyl88p3j+7RT9AjK AOvw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h+gLMbpE; spf=pass (google.com: domain of niszet0016-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::235 as permitted sender) smtp.mailfrom=niszet0016-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:cc:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=rkPAJOXrPmt4J6xtHfYd0P213shYQoEZ/PcSReWj2io=; b=XMrsV59bwBPbPxpu2aq6SacZuzvOnb8dltDhLVOGBPbuhjXpNTyOpS32/SQDdPlCkf N6tRj88D2e5RyXtVTrD80gNSvSTZ6fQvo9/db49LhTcwMGva0wfL5kPswCcDuwaSevUq CzHtvBAtiU0i4QVWrwtRz8O4OA2QskuX8mIBM25uBPVZUU7PzEBZaA1yp7+b0LPOZy98 G0zkaMjWmcMvU8dK+ZlxYOAQeUBDmaxhmMk8PYZrnu0of4p1lLOQFIeH5VIZpYWX0WwQ +qihuUOaKJgrvIxAD9HCGj7h33GTmAGADn5ZZw91V+4ww8slLHpzaRCxGEOgWoCDrLWy 33Jw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=rkPAJOXrPmt4J6xtHfYd0P213shYQoEZ/PcSReWj2io=; b=CSXR3PLAR4tgprYi6fkrLrdoZ+BdEzdlOLQZtGvGmOAyYMlQH6gZ1Cn1IyB8NpCo1q 4/CbsfCGybYiwMdpU49GOR36QFCMu5HeSfm3yDfFT3GVu+zsihDQdG4wK+RGaAQ06OoW /sBiE+DD8ks4nmyj4hgzUZyXWRc9RaX44w/jt2vPF45vR+4ldHaVzez/OsEqnNWR53UL cac19aVY6vX2b0RKr64iIjrU0XjJNjMubMRdm3StihMMQ1fPvsYnpoww6rUUiv/cAYx6 2kxtlCoIFm7UC1mjaV9A474bIcNNhglC9zZwONLGzpXk9qbMgBjqHis84gpiWzB6gMl6 bPDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:cc:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=rkPAJOXrPmt4J6xtHfYd0P213shYQoEZ/PcSReWj2io=; b=KKKqRgmSLWO+WXw99KYXUfjjlUWdmbLIM73TFayhFAbIya8PARCOealR9Hx4p++g/O isK8B5qpgAIyR5wBYB2hiJiBUVYDy1+L0+5cDOOVyf/0VqRh18kUhZg3aw7+v0yf/3uY yO2XplYoW9DKDjFqIMkBxUw+1nKUy/PAo7ZKiSLaCKAT9HAaYBMkb8c+qa25Rev91I/B oNb9HBCnXWFz/yWawabgTYpCUKayv17UrXdB20OCGNWCNlauISPtwVVW0ZuAc1TDtNiy yV2yzkHfSb0xoG3/tbb4rqweT03HFUJH6HUApEAwhHmBOwWaD0TmXxRxEm24TV2RVCXv lE/w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531H/ApQ6MoFYWLjos9mn6hUZOHiW5A8h0PhWirr+E97KijB9N6i EyHjeiS2A1ZJc7Tmo7XQVVs= X-Google-Smtp-Source: ABdhPJwEiHBcXyXg2HlgeFgQsEJ1zalXT+OpiHdMCnx/XwXN7wepgwP7Hf4hmQY86EQEXrJgGPx+eA== X-Received: by 2002:ac8:cc7:: with SMTP id o7mr2502310qti.9.1601081304959; Fri, 25 Sep 2020 17:48:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ae9:e00e:: with SMTP id m14ls375848qkk.3.gmail; Fri, 25 Sep 2020 17:48:22 -0700 (PDT) X-Received: by 2002:a05:620a:55d:: with SMTP id o29mr2826608qko.12.1601081302239; Fri, 25 Sep 2020 17:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601081302; cv=none; d=google.com; s=arc-20160816; b=O/CxzNpHgNlIdl6bNoC0WxeE/UORiY7ibfG1luS5TnPLVTDZITybl1lx6MUrFjKN0A DOhL8p3PvDh2eCqj9dnxKl88Q1BlnpVYtejRu6gyf0McvuLbeLC/HkMrTmkWVcXqQsnz t+c6bul9SUyLzaESlO+U4i2vJIK5FZ+0486SVFPkvS1ReVNLALfbLnDfVs2x17BFvUPQ YXqYCJilaOflFOzZqWefFy+M+FdCJl/yzmsPc3A8dQcEfm3ZZ+makBwITHxr9zN0JElf 0aNl6ZpOOjshrqRBb6HD79OuO+7+PpjI3s4nZ/krGPLCGSTlp/iUnpzltuLva+QOgfkX 5eIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=HLwnIm2OUj867+E6EcwoWhey0/2FhUwBEbQqR/a6UNw=; b=ubedCbPk9ZFei+jQ9W5Jh23SpLGCAYGkmbEJqPEoXNU8Wx2MBHhV8HTO5YJjtqXaEL jqwAemBPqDmRf9BtvKuGMDEp61jcB8aSzy7uVmGuQtK6LnbDJj2uhsQ0BknjHvJfAKOw L5dWAp/+0ogeNucunfnJp9+W+Tqr3HqJmcPVH6Enq396IjxF0xriKAta+hXs1CDTkvfh rEBN6Adn2dnP2jjeek4Dg7WBEs4GxXSRvldpIWCa+KSYjC33dCdp8hIZ3klnhzLMiLFF 6PbbYKYqgpb8nBsJtclitDF1nLVa4VehzJpsec1sO8mHEiGgK3UnqDP10+T5rJNaNJYh UWrA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h+gLMbpE; spf=pass (google.com: domain of niszet0016-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::235 as permitted sender) smtp.mailfrom=niszet0016-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com. [2607:f8b0:4864:20::235]) by gmr-mx.google.com with ESMTPS id k6si311773qkg.1.2020.09.25.17.48.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Sep 2020 17:48:22 -0700 (PDT) Received-SPF: pass (google.com: domain of niszet0016-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::235 as permitted sender) client-ip=2607:f8b0:4864:20::235; Original-Received: by mail-oi1-x235.google.com with SMTP id x69so4657222oia.8 for ; Fri, 25 Sep 2020 17:48:22 -0700 (PDT) X-Received: by 2002:a05:6808:c1:: with SMTP id t1mr109798oic.87.1601081301807; Fri, 25 Sep 2020 17:48:21 -0700 (PDT) In-Reply-To: X-Original-Sender: niszet0016-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h+gLMbpE; spf=pass (google.com: domain of niszet0016-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::235 as permitted sender) smtp.mailfrom=niszet0016-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.io gmane.text.pandoc:26246 Archived-At: --0000000000004037c305b02ccaba Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi jgm-san, Thank you for your reply. I will check these codes and try to write them. (maybe take a long time...) 2020=E5=B9=B49=E6=9C=8825=E6=97=A5(=E9=87=91) 1:22 John MacFarlane : > > If anyone wants to take this on, take a look at how > we do it for docx: see the clause for > > inlineToOpenXML' opts (Code attrs str) > > The same general approach should work for opendocument, > I think. > > You'd also need to write something like styleToOpenXML, > which converts a highlighting style. > > "nisze...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" writes: > > > Hi, > > > > From version 2.10, Pandoc's ODT writer can use custom-style. This is bi= g > > update for me. Thank you very much. > > By the way, ODT writer cannot support syntax highlighting now. Is there > > plan to support it for ODT writer? Because I checked source code and it > > doesn't seem to be possible by using lua filter (writer need to be > > updated)... > > > > Thanks, > > niszet > > > > -- > > 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/e81061cc-8f74-460b-8920-= febc9bce99b7n%40googlegroups.com > . > --=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/CAO4BNT3evknwb76g50Q_3w6Pi-nGei2PByE4FYXQU902ipgV5w%40mail.g= mail.com. --0000000000004037c305b02ccaba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi jgm-san,

Thank you for your reply. I will check = these codes and try to write them. (maybe take a long time...)
2020=E5= =B9=B49=E6=9C=8825=E6=97=A5(=E9=87=91) 1:22 John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>:

If anyone wants to take this on, take a look at how
we do it for docx: see the clause for

inlineToOpenXML' opts (Code attrs str)

The same general approach should work for opendocument,
I think.

You'd also need to write something like styleToOpenXML,
which converts a highlighting style.

"nisze...@gmai= l.com" <niszet0016-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi,
>
> From version 2.10, Pandoc's ODT writer can use custom-style. This = is big
> update for me. Thank you very much.
> By the way, ODT writer cannot support syntax highlighting now. Is ther= e
> plan to support it for ODT writer? Because I checked source code and i= t
> doesn't seem to be possible by using lua filter (writer need to be=
> updated)...
>
> Thanks,
> niszet
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.co= m/d/msgid/pandoc-discuss/e81061cc-8f74-460b-8920-febc9bce99b7n%40googlegrou= ps.com.

--
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/CAO4BNT3evknwb76g50Q_3w6Pi-nGei2PByE4FYXQ= U902ipgV5w%40mail.gmail.com.
--0000000000004037c305b02ccaba--