From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30714 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Conversition TWiki > Markdown doesnt parse italics correctly Date: Wed, 8 Jun 2022 20:03:29 +0200 Message-ID: References: <93c42bf9-fdbd-42e8-a64b-5365044c369cn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005ccc1605e0f3860e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20601"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRB7OIQOKQMGQEKY65B7A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 08 20:03:45 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ej1-f55.google.com ([209.85.218.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nz01w-0005AI-EZ for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 08 Jun 2022 20:03:44 +0200 Original-Received: by mail-ej1-f55.google.com with SMTP id l2-20020a170906078200b006fed42bfeacsf9771475ejc.16 for ; Wed, 08 Jun 2022 11:03:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654711424; cv=pass; d=google.com; s=arc-20160816; b=wMcg8sN2MVcVHyWSwsv7HUTjARXTnHcPEIituUBkz66KU3BzCzuwmAXdNeDOpnLREY MGQl9Hw9zHZ9Qqt3fOK8iJ47ALQV13uBQ13TNANvvJIWUbzyZYXWyATAGVVIpm9Vmtzc RwmTVO7HCl+4nYxqSKcZJkYhiScCuomCDlu9L+NZMQzhhL5VcOGyjUq1bPpCBtFO5faq b854GVL6PgaemIhS/1jWIBsBhEAVxucSafsciy1UqLtfikk+oHmZ3dsrXBZ51PYwZcBO 6DK3NoNNN3pcwZJ9deREppHLRH3AiLkmquIc5+O4TR1h+teD0Wd5i3kYooaxK3FydZ+k cqtw== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=JPf6LJpTHorhCivla9hU4gdVGfoQ+Ot4FkDDO12QEZI=; b=hAT+2SbqmUa9NgOXPjMWLLDQj7/UEQzyHDIqWaNu9sZGyab8aZWQ82/vq2WsX66SAQ nge7TLjvWzuVvpMpl0myn2GY568cy3O7KOajhRR3mTmiPKlpfWfvT9G/MHPYsLerbtHS 6UcMnq0AlmgTZ7sRw8HUSDlugDdTZVLQIaUjhRghCkOj9Qs63A7ieVM6oxP5fptWNxsr Jr5HFerHyqsxYjeUrOuBuYaH7kMDHQtSiC98KhMy5D1w2cK9szL7CMzsAAi8wZCg0OKv f5uHPArKsoD55djBQUf84FffJyYDKMTnU2+tUGb4Xm1no/+Ne2oQBWsPz0P/onTLe1tk W1Gw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xg55igaf; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::62b as permitted sender) smtp.mailfrom=melroch-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=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=JPf6LJpTHorhCivla9hU4gdVGfoQ+Ot4FkDDO12QEZI=; b=Hqrl7uP1guRV359KhL/PUyomkY7gGb8jDJDwkYocgvSv+VZ4qfGse3tM6KM38mkhoM rp2zkbiQ63CE+1AWu8hLPXgoOS7Ui6SzcPnArrsezAQLtgtl5p/49EKjnto1EbggdA3d sVc2oKzMH2zBUSfUwtkn/TeKZUOaLAEzJHR/LwX9BzhoKaOhZoPOU09ZlOcWfrpi44b2 e7xjNVilhyPnDCXLHpeVfDxr1Ainvm/dvGfM2awLcC2Glr6wXV403Li4yQvsCNtCdg3y f1RMdViZhFkjaIAdRN06P0oEdPrSN78ldGgaTG4HcGq9PE88weah63B3vhDng4ccUuP9 KMMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :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=JPf6LJpTHorhCivla9hU4gdVGfoQ+Ot4FkDDO12QEZI=; b=XrpYvfQnRgKAIh2YhisBYN0Z0Y57hIFcdv8XOXJ379xkh6FP8vF2Pr51g6dNGGnw7D G0MzGYvuvDFIQhZ7EFTB1Ksv7KLct3QcSthDeg0T0L9ycwm2T2ex9DTihknPUhkUdcRF OOAJQhG5bEcYw8Vi6Ws0B8uANnxMa2DGWP9HqWEZA1aCyIyHLVRv+It0HqF6cOhXI6mv DZf7gxy0/X5QqyKx6GcYYtrphtYVr64DrYg8axWeTBwegCy0KvejgXpNHQsiCcNsEKS0 5CutyHIsiOY1dTuYDGnHCovMY0eQ7+8qSQjGd/ah9ZgfRn7aL3VyU9e/zn0AwpUwugXq fBQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=JPf6LJpTHorhCivla9hU4gdVGfoQ+Ot4FkDDO12QEZI=; b=N2qe4hYMv6aOblBoaVofAucCsFX9poBUxUZWPTxlMXyueORRQ+d7t5BCSeCrhNZmzf VIfVhKgsM0M/lbSoLVS+Ca6jDOkteSTmKpcHSIUJOP1RyzcmLgUsq+8hASeP9ynqNj2h 8Q3y8w4SK0QZBo3U2RL66UOQQdTvkFU6/ATxbMcRJ+Ru/5IbBFdSQGQ+RQjKAQ5kQomB mQFmV7O5NuoPw8/g70kxIhttwMAb0nByENkmdcIHlmZ5XP5HOKrUvKMP8VLhBRnamEWH 58UBo9jfetjPqsg4OZEPYIztnOSgFWoxIfRPLUGYemXjMPrWbh6hL19GaLV8zD0JVs8W aSZQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532tvWNxyO9uxSeNwdBjcdgcV0Uaoa4PDSInH1eP8mo8PZSMpM5j KSjcJLTk9UFfT6ubSvCHtlY= X-Google-Smtp-Source: ABdhPJxg3DJG7gzHrA3bahyH9TbbQ4Vaa0gAVm2PP0SYWftbSRSVUWnJPbWw6qCp9SQTq9KVWHI3Bw== X-Received: by 2002:a17:906:2cc3:b0:70d:b6c8:f83b with SMTP id r3-20020a1709062cc300b0070db6c8f83bmr28252466ejr.770.1654711424136; Wed, 08 Jun 2022 11:03:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:906:70cf:b0:6fe:d027:3c1f with SMTP id g15-20020a17090670cf00b006fed0273c1fls1328634ejk.2.gmail; Wed, 08 Jun 2022 11:03:40 -0700 (PDT) X-Received: by 2002:a17:906:1c04:b0:708:a007:5a77 with SMTP id k4-20020a1709061c0400b00708a0075a77mr33407042ejg.566.1654711420107; Wed, 08 Jun 2022 11:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654711420; cv=none; d=google.com; s=arc-20160816; b=evf5/8U7uOhf6tUzQDlP6TcVU1iXWc8+JsRQUcWS8WMZwydYetclhGsmu5shXoFkBo TpZ8C8SHZXFK3bu2YEFUKvMPcu5TzT94qP9ZBnn67QGPeIDcTqBJWwoNOIeWX9sFgMbX 11FHtxLUxzajj7wDjv8Xpw0Ybw5XJDfOEp66an0+JUm8GdEYwn9NtfqLlF2DdQwRjIRs Gqn+oYkrJlS5LHOd6KsZr6Tjx3JbqoWjFFc000nP64n09XxTVHT/9Uyn+LqRt+a6BYyQ 10PrV1WIb2vj1i/7numYDtsQvsEtSmb73xe6MvHUzPVzYQkkw88DsluiweE6+m0Cu76s E5+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IhYJdVuI5yBFE3OH6ipC4kzLYzujdDJvZPPQJpQ1M8k=; b=eoONvlOUu+le6tfq4lpV8+R2lllLuL9penxAmcGwTKjTWyryLytxsYYdj3uv7qHooM iYsol3N+XdxncdoUYKuknkWj2JZM1/bFi4YCMw7Qo32vlCXo3bRfePFYArkHz97w3idj iAURoLdhbXga5HdICfxw+P+X3ZjxgpiPPQH44xMY5goadG/BJV7adIyL4OflhTSdBFEh N8iIAwCXW5RzKaIKKHdNuiWq2QXQ1xxW/9bUM2Zah4EgskaRINWETsOYKp3WN71h51b/ sMWqZaIqSt8po9bvyE3I9sub7I6Wwkbrg7lMw3ab1YMgxu1DqbeVaMGpGxZOZJIoNqXR +4rw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xg55igaf; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::62b as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com. [2a00:1450:4864:20::62b]) by gmr-mx.google.com with ESMTPS id d23-20020a056402401700b0042e15342b19si809791eda.3.2022.06.08.11.03.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 11:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::62b as permitted sender) client-ip=2a00:1450:4864:20::62b; Original-Received: by mail-ej1-x62b.google.com with SMTP id kq6so29947002ejb.11 for ; Wed, 08 Jun 2022 11:03:40 -0700 (PDT) X-Received: by 2002:a17:907:62a6:b0:6ef:8118:d3e2 with SMTP id nd38-20020a17090762a600b006ef8118d3e2mr32146320ejc.605.1654711419455; Wed, 08 Jun 2022 11:03:39 -0700 (PDT) In-Reply-To: <93c42bf9-fdbd-42e8-a64b-5365044c369cn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xg55igaf; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::62b as permitted sender) smtp.mailfrom=melroch-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:30714 Archived-At: --0000000000005ccc1605e0f3860e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Which pandoc version are you using, and which syntax are you using for bold= ? Den ons 8 juni 2022 15:21'L=C3=A9na Montenot' via pandoc-discuss < pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: > Hello ! > > Unfortunaly, using the following command : > > pandoc -f mediawiki -t markdown -o file_output.md file_input > > It parses some of the italic, but most are still parsed and now the bold > is also wrong too :/ > > Le mercredi 8 juin 2022 =C3=A0 14:37:37 UTC+2, BPJ a =C3=A9crit : > >> Do you mean TWiki or MediaWiki? >> If I am not mistaken the TWiki syntax for italics is _italic_ while >> ''italic'' (with double single quotes) is MediaWiki syntax. >> >> Using the proper input format for each syntax gives the expected results= : >> >> % pandoc -f twiki -t native >> _italic_ >> [ Para [ Emph [ Str "italic" ] ] ] >> >> % pandoc -f mediawiki -t native >> ''italic'' >> [ Para [ Emph [ Str "italic" ] ] ] >> >> While mismatched input format=E2=80=94syntax does not work, which is als= o >> expected: >> >> % pandoc -f twiki -t native >> ''italic'" >> [ Para [ Str "''italic'\"" ] ] >> >> % pandoc -f mediawiki -t native >> _italic_ >> [ Para [ Str "_italic_" ] ] >> >> It seems your wiki files are mediawiki instead of twiki, in which case >> you should specify mediawiki as input format. In case you have a mixture= of >> both the presence of double and triple single quotes is a pretty sure >> indicator that you have a mediawiki file. >> >> Den ons 8 juni 2022 13:59'L=C3=A9na Montenot' via pandoc-discuss < >> pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: >> >>> Hello, >>> >>> I want to use Pandoc to export some wiki articles towards a new >>> platforms. However, whenever I'm converting a TWiki file to Markdown, w= hile >>> the bold sections are parsed correctly, the italics are being replaced = from >>> '' to \'\' which is not ideal to automate the process. >>> >>> Is there any fix available ? Thank you :) >>> >>> -- >>> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/d525341c-9366-436b-bcf= 1-783e753da718n%40googlegroups.com >>> >>> . >>> >> -- > 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/93c42bf9-fdbd-42e8-a64b-= 5365044c369cn%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/CADAJKhD9DVHm4AMCZiJ_emnFevp7%3D5BX_L8d_J%3DG1QDHYttvXA%40ma= il.gmail.com. --0000000000005ccc1605e0f3860e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Which pandoc version are you using, and which syntax are = you using for bold?

Den ons 8 juni 2022 15:21'L=C3=A9na Montenot' vi= a pandoc-discuss <pan= doc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev:
Hello !

Unfortunaly, using the follo= wing command :

pandoc -f mediawiki -t markdown -o file_output.md file_input

It parses some of the italic, but most are s= till parsed and now the bold is also wrong too :/

Le mercredi 8 juin = 2022 =C3=A0 14:37:37 UTC+2, BPJ a =C3=A9crit=C2=A0:
Do you mean TWiki or M= ediaWiki?
If I am not mistaken the TWiki syntax for = italics is _italic_ while ''italic'' (with double single qu= otes) is MediaWiki syntax.

Using the proper input format for each syntax gives the expected results= :

% pa= ndoc -f twiki -t native
_italic_
[ Para [ Emph [ Str "italic" ] ] ]
% pandoc -f mediawiki -t native<= /div>
''italic''
[ = Para [ Emph [ Str "italic" ] ] ]

While mismatched input format=E2=80=94syntax does not wo= rk, which is also expected:

% pandoc -f twiki -t native
''italic'= ;"
[ Para [ Str "''italic'\&qu= ot;" ] ]

% pandoc -= f mediawiki -t native
_italic_
[ Para [ Str "_italic_" ] ]

It seems your wiki files are mediawiki instead of twiki, in= which case you should specify mediawiki as input format. In case you have = a mixture of both the presence of double and triple single quotes is a pret= ty sure indicator that you have a mediawiki file.

Den ons= 8 juni 2022 13:59'L=C3=A9na Montenot' via pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev:
Hello,

I want to use Pandoc to export some wiki articles towards a new platforms.= However, whenever I'm converting a TWiki file to Markdown, while the b= old sections are parsed correctly, the italics are being replaced from '' to \'\' which is not ideal to automate th= e process.

Is there any fix available ? Thank you = :)

--
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 pandoc-discus...@googlegr= oups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-= discuss/d525341c-9366-436b-bcf1-783e753da718n%40googlegroups.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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/93c42bf9-f= dbd-42e8-a64b-5365044c369cn%40googlegroups.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://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhD9DVHm4AMCZiJ_emnFevp7%3D5BX_L= 8d_J%3DG1QDHYttvXA%40mail.gmail.com.
--0000000000005ccc1605e0f3860e--