From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30717 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=27L=C3=A9na_Montenot=27_via_pandoc=2Ddiscuss?= Newsgroups: gmane.text.pandoc Subject: Re: Conversition TWiki > Markdown doesnt parse italics correctly Date: Fri, 10 Jun 2022 00:07:29 -0700 (PDT) Message-ID: <97bf728d-62c3-4ac8-a7f3-16371dff00c1n@googlegroups.com> References: <93c42bf9-fdbd-42e8-a64b-5365044c369cn@googlegroups.com> <4e222f31-8ecc-42cf-b23d-4fef81500acfn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_140_957805930.1654844849379" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10918"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDX55S5XVQIRBMW3ROKQMGQEFKNHZEY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 10 09:07:34 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f58.google.com ([209.85.161.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nzYk2-0002bG-5d for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 10 Jun 2022 09:07:34 +0200 Original-Received: by mail-oo1-f58.google.com with SMTP id q17-20020a4a9611000000b0041b6e7f5d35sf1295437ooi.5 for ; Fri, 10 Jun 2022 00:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=UoaHTcyRwd02UfkquJMNDQHDxmY9yBrFCZr2qXtyCAc=; b=LK5yqBzPayHJ5AE70MTFFqXx8+WpSIpIOrr42dmnVR+tVbSXOWSbZ74s3ggYmShVEk hVpYon7/46ixCaHqDuSNfNh6dBRPrnQbzJM0Yiy4XQMfo31/SnZJGkeif+3Nbi0nOkDf JP0Mnh0EE+TA2ox8CUoRl0eVizP9jkmdSBmDPKQMhib4M87JEXtPm3v45SB7UjmMGAU6 fUxCISB0tIDuEhPPv4vrG1B1HMkLzkJsZ1QhgfzP3uaC4n9GLEOBdUYdxt/3xMvy3dqV f4HxbBmu8gSrtNHFANlj4kywc7MHUSoefoJAR9QbASE+vEUzPvBhqTYek18M5jivzEbt sAyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :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=UoaHTcyRwd02UfkquJMNDQHDxmY9yBrFCZr2qXtyCAc=; b=r8LGmDE0IOaesfMq6TW1OPDWPh8aBI+Z5xpBk9Y477VAHsZx0JroESWVC6dIDPasl4 nMeNs96ZaXmIuhHS+FR/fj7kxIBt/WL+Z0HBW3WAcu1M2fLWtjuwg45hawfv33pvalat /wLdq+/YjhSd3tIuEJsuo4Um0wc1CJu8YBltCqqvDKTgD29R9BQlbo2mqZrgllYhh9Dl /tMbUVYSbMRF1GX3ME4g8/QGCGRjc6FUg1YufZTHaAzuFW/LNjWT6mdAj9Fm82/2uH+e zdc7xCw9pExbtRmw7r1DfbRRTxZOZucFmpeSwA6EevnFFaAzxe/ZfvV6BdB3Xi4GuO/e Kc+g== X-Gm-Message-State: AOAM532vP1JCwd2no3R81c6lKk030Tw9aCaOIiNRoFp6LurTrgDE4TVX 2YSHin2SfE45eYSEjoF8/9c= X-Google-Smtp-Source: ABdhPJxTmJ2LB30RLPSBnoyCaUZmYbEiv4LkqdS0y0etvHl5bNbFtxS6vIT3xKHNgV5nr2N3Yf2ryg== X-Received: by 2002:a54:4688:0:b0:325:9a36:ecfe with SMTP id k8-20020a544688000000b003259a36ecfemr4040108oic.96.1654844852953; Fri, 10 Jun 2022 00:07:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6870:13cd:b0:de:c1c1:ac0e with SMTP id 13-20020a05687013cd00b000dec1c1ac0els8376804oat.8.gmail; Fri, 10 Jun 2022 00:07:30 -0700 (PDT) X-Received: by 2002:a05:6870:32d6:b0:e3:6e1a:e56b with SMTP id r22-20020a05687032d600b000e36e1ae56bmr3809694oac.206.1654844850128; Fri, 10 Jun 2022 00:07:30 -0700 (PDT) In-Reply-To: X-Original-Sender: lena.montenot-Vsva30nNcww0NahUy/aNDA@public.gmane.org X-Original-From: =?UTF-8?Q?L=C3=A9na_Montenot?= 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:30717 Archived-At: ------=_Part_140_957805930.1654844849379 Content-Type: multipart/alternative; boundary="----=_Part_141_1342062022.1654844849379" ------=_Part_141_1342062022.1654844849379 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I think it's more Tikiwiki format actually ! Le jeudi 9 juin 2022 =C3=A0 19:00:09 UTC+2, BP a =C3=A9crit : > That's quite an old version of Pandoc. You might want to upgrade. > > Are you really sure about the syntax/format of your input files? As far a= s=20 > I know Twiki uses `*bold*` and `_italic_` (and mediawiki uses `'''bold'''= `=20 > and `''italic''`). Your files seem to be in some other syntax. > > Den tors 9 juni 2022 10:54'L=C3=A9na Montenot' via pandoc-discuss < > pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: > >> I'm using Pandoc 2.5, and in the original file, the bold syntax is doubl= e=20 >> underscores (__ bold text __) >> >> Le mercredi 8 juin 2022 =C3=A0 20:03:44 UTC+2, BP a =C3=A9crit : >> >>> Which pandoc version are you using, and which syntax are you using for= =20 >>> bold? >>> >>> Den ons 8 juni 2022 15:21'L=C3=A9na Montenot' via pandoc-discuss < >>> pandoc-...-/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=20 >>>> 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= =20 >>>>> ''italic'' (with double single quotes) is MediaWiki syntax. >>>>> >>>>> Using the proper input format for each syntax gives the expected=20 >>>>> 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 = also=20 >>>>> 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 cas= e=20 >>>>> you should specify mediawiki as input format. In case you have a mixt= ure of=20 >>>>> both the presence of double and triple single quotes is a pretty sure= =20 >>>>> 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,=20 >>>>>> >>>>>> I want to use Pandoc to export some wiki articles towards a new=20 >>>>>> platforms. However, whenever I'm converting a TWiki file to Markdown= , while=20 >>>>>> the bold sections are parsed correctly, the italics are being replac= ed from=20 >>>>>> '' to \'\' which is not ideal to automate the process. >>>>>> >>>>>> Is there any fix available ? Thank you :) >>>>>> >>>>>> --=20 >>>>>> You received this message because you are subscribed to the Google= =20 >>>>>> Groups "pandoc-discuss" group. >>>>>> To unsubscribe from this group and stop receiving emails from it,=20 >>>>>> send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>>> To view this discussion on the web visit=20 >>>>>> https://groups.google.com/d/msgid/pandoc-discuss/d525341c-9366-436b-= bcf1-783e753da718n%40googlegroups.com=20 >>>>>> >>>>>> . >>>>>> >>>>> --=20 >>>> You received this message because you are subscribed to the Google=20 >>>> Groups "pandoc-discuss" group. >>>> To unsubscribe from this group and stop receiving emails from it, send= =20 >>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> >>> To view this discussion on the web visit=20 >>>> https://groups.google.com/d/msgid/pandoc-discuss/93c42bf9-fdbd-42e8-a6= 4b-5365044c369cn%40googlegroups.com=20 >>>> >>>> . >>>> >>> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/4e222f31-8ecc-42cf-b23d= -4fef81500acfn%40googlegroups.com=20 >> >> . >> > --=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/97bf728d-62c3-4ac8-a7f3-16371dff00c1n%40googlegroups.com. ------=_Part_141_1342062022.1654844849379 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I think it's more Tikiwiki format actually !

Le jeudi 9 juin 2022 =C3=A0 19:0= 0:09 UTC+2, BP a =C3=A9crit=C2=A0:
That's quite an old version of = Pandoc. You might want to upgrade.

Are you really sure about the syntax/format of your input files? As fa= r as I know Twiki uses `*bold*` and `_italic_` (and mediawiki uses `'&#= 39;'bold'''` and `''italic''`). Your files = seem to be in some other syntax.

=
Den = tors 9 juni 2022 10:54'L=C3=A9na Montenot' via pandoc-discuss <<= a href data-email-masked rel=3D"nofollow">pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org&g= t; skrev:
I'm using Pandoc 2.5, and in the original file, the bold syntax= is double underscores (__ <= span style=3D"font-family:Courier New">bold text __
Le mercredi 8 juin 2022 =C3=A0 20:03:44 UTC+2, BP a =C3=A9c= rit=C2=A0:
Which pandoc version are you using, and which syntax are you using f= or bold?

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

Unfortunaly, using the following command :

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

It parses som= e of the italic, but most are still parsed and now the bold is also wrong t= oo :/

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

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

% pandoc -f twiki -t native
_italic_
[ Para [ Emph [ Str "italic" = ] ] ]

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

While mismatched input f= ormat=E2=80=94syntax does not work, which is also expected:

% pandoc -f twiki -t native
''italic'"
[ Para [ S= tr "''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 mediawi= ki file.

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

I want to use Pandoc to expor= t some wiki articles towards a new platforms. However, whenever I'm con= verting a TWiki file to Markdown, while the bold sections are parsed correc= tly, the italics are being replaced from '' to \'\&= #39; 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus.= ..@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/d525341c-9366-436b-bcf1-783e753da718n%40googlegroups.c= om.

--
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.

--
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= ...@googlegroups.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/97bf728d-62c3-4ac8-a7f3-16371dff00c1n%40googlegroups.= com.
------=_Part_141_1342062022.1654844849379-- ------=_Part_140_957805930.1654844849379--