From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30713 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: Wed, 8 Jun 2022 06:20:26 -0700 (PDT) Message-ID: <93c42bf9-fdbd-42e8-a64b-5365044c369cn@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1550_243645170.1654694426158" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31562"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDX55S5XVQIRBG6EQKKQMGQEG75ZC5A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 08 15:20:31 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nyvbr-00083h-Ct for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 08 Jun 2022 15:20:31 +0200 Original-Received: by mail-ot1-f59.google.com with SMTP id i22-20020a9d6116000000b0060c1961a97bsf625310otj.20 for ; Wed, 08 Jun 2022 06:20:31 -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=INODyTY7KQNaW7PlTOkEGQBTNBQEmlXfKukpQ1/vH2M=; b=POAdxPX3QecvpmmchiUNShScIp5T4GYmZJSPL4B1xz363mCWBcxw24vpO2o8T4yw+7 5OS2qeAw1+72jt1uKP1rDFLzIFWr5bqYFSyYwSOZ5TgMLm1AC+nKLJWOJeTlztWi9UzY poC6EaZfe6Et1f2dSVPGXmvwrczZdvqkt+KuVV8v5//nLCuSlXfLI2O7q6vR9/8Jtvu2 fj1+hLgTo8Ng/mgUrRqhhBVWddEMDVHT47+P/7MOypnGe4nsa6MIt2TuSU8pdmr3xS5N elLdCPd3+f6Vg0copcq4ChOr5C4FiBr82uokIxbN3fflTr2Cq9PXxTtQudAswQ9onDBC 3TFg== 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=INODyTY7KQNaW7PlTOkEGQBTNBQEmlXfKukpQ1/vH2M=; b=LkBnMLj6TS55+lBT2Ay4/F9TCQayC1Ng25Qecb+84vdwQl+HHITwgS0cD5sNZ8P2GY BloTnm5H5fwF1d5724TK8F1Bl1SqWg5CRxsPCFiA8FIY9d+ImclMCUSsGXHD+CZH5JL1 fweDW6oKQX5HqPtKvhlbk1ElgUO3a2HEnbDqhN0PQ/VD838Lxf7BBk7qPutYCwMJFYGI Vb2RWxISAW5GnRUFGnbW/f3z2DZ2YCScNPgULUVmRBZDUz2WSgArlPz+M5GQE5whsxOc 5mlMWXUo0zAM8Z6R5Pl9B3FB2IHFPvjJ7qGgqiW8i5YdsP9nm6934XzRImPShONBRzcG Jtdw== X-Gm-Message-State: AOAM530lPieZcZMNjkkUN+1tqDv0l8iYNBf3UZV3pcBhZLk7Z0rjPvfi sGHv9Y8cmIXi32o5Q9lSEcE= X-Google-Smtp-Source: ABdhPJwF3PePGo/bkpEeRd/vizEPZYf2wROz8KZAoVsAuqd+k0JDY+CUvYOh794/FmqsHQknwtfhGw== X-Received: by 2002:a05:6870:6087:b0:e1:dc8b:56ba with SMTP id t7-20020a056870608700b000e1dc8b56bamr2322274oae.22.1654694430315; Wed, 08 Jun 2022 06:20:30 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:1885:b0:326:a83a:293c with SMTP id bi5-20020a056808188500b00326a83a293cls6716057oib.3.gmail; Wed, 08 Jun 2022 06:20:27 -0700 (PDT) X-Received: by 2002:a05:6808:10d4:b0:32b:1230:5cbd with SMTP id s20-20020a05680810d400b0032b12305cbdmr2214400ois.70.1654694426943; Wed, 08 Jun 2022 06:20:26 -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:30713 Archived-At: ------=_Part_1550_243645170.1654694426158 Content-Type: multipart/alternative; boundary="----=_Part_1551_172533102.1654694426158" ------=_Part_1551_172533102.1654694426158 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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= =20 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 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= 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 yo= u=20 > should specify mediawiki as input format. In case you have a mixture 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, wh= ile=20 >> the bold sections are parsed correctly, the italics are being replaced f= rom=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 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/d525341c-9366-436b-bcf1= -783e753da718n%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/93c42bf9-fdbd-42e8-a64b-5365044c369cn%40googlegroups.com. ------=_Part_1551_172533102.1654694426158 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello !

Unfortunaly, using the following comm= and :

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'' (with double single q= uotes) is MediaWiki syntax.

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

% p= andoc -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 w= ork, which is also expected:

% pandoc -f twiki -t native
''italic= 9;"
[ Para [ Str "''italic'\&q= uot;" ] ]

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

<= div dir=3D"auto">It seems your wiki files are mediawiki instead of twiki, i= n 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 pre= tty sure indicator that you have a mediawiki file.

Den on= s 8 juni 2022 13:59'L=C3=A9na Montenot' via pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> = skrev:
Hello,
<= br>
I want to use Pandoc to export some wiki articles towards a n= ew platforms. However, whenever I'm converting a TWiki file to Markdown= , while the bold sections are parsed correctly, the italics are being repla= ced from '' to \'\' which is not ideal t= o 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/d= 525341c-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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.
------=_Part_1551_172533102.1654694426158-- ------=_Part_1550_243645170.1654694426158--