From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31709 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mladen Babic Newsgroups: gmane.text.pandoc Subject: Re: Pandoc Citeproc doesn't work on HTML format Date: Mon, 7 Nov 2022 07:12:20 -0800 (PST) Message-ID: References: <8e24d40c-5977-4912-9e1b-6cfa0f66d5e5n@googlegroups.com> <87v8nqon26.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_10332_50477865.1667833940354" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25536"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCFIND536APBBVOAUSNQMGQEP6PG22A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 07 16:12:25 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f186.google.com ([209.85.167.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1os3nV-0006Tj-6U for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 07 Nov 2022 16:12:25 +0100 Original-Received: by mail-oi1-f186.google.com with SMTP id bf10-20020a056808190a00b0035a0a5ab8b6sf4628080oib.11 for ; Mon, 07 Nov 2022 07:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=+LgSiB7pJoe1ESg/a08owg/UZm/f42iUL1rF6uP3wdo=; b=dLROIIw3x9s2OAhQcWf+1kTAjy4/7nKsh3d2gOHixaZNg4rhFJn7g0aloPRuQJp2rX APM7u3B2VJF88O9ju2ZOySxi3KI/u3pg3dVDbt4h4RciZrg+jCUmW+IXa6dx6r3JLExG 1hpz/gUc5nojR8pocMHKhxGS/Q449ibMV5qLiMUmlk39cOPI18+z5yeX1zNJbM+UQI4l tW9HatOYohvvOO95seI0nZ9PqZCmg4hyhHHxc5OPxskyVYL0orDV4UnXeXAgljU2saha kS+s27TaIs1zCzQSXWhJ5obTqpX4fIvrrlcWb9xdqBaZ7MiOMPXoYAXFS+d751kuXzU4 POPg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=+LgSiB7pJoe1ESg/a08owg/UZm/f42iUL1rF6uP3wdo=; b=ArFzkW0I7mgxVjWVdsWDyVNEikT579QrvbUuqv9BEqP1IdVJlumW8IWf0EtuNgjxiI XZxRXlhKzK2LluCk5T7O68+0lrZj+kvtADE9Ktz8eOcoTZFvb16KQuLz+Gg5r9GcBfKK /8GgFLf27+5LJ9JA26Iftq+nkBJ2ucJTEsX2Y822eX//54jJKWqFhla7p3nYzh0FZF5e 5ZDgxO38Z2G3hOyV1g+P/SEVgAr4t1VWDTkt8e2IsCLKtcsJn1fWHMXTAOmZLFvwwbMy PjSokgssbpM0py3IvtFl2c28zSxtFwubcsU4VHd3uymJhSRbeIHuEhI/lu/BpFoShLg8 bG6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=+LgSiB7pJoe1ESg/a08owg/UZm/f42iUL1rF6uP3wdo=; b=BEEC2BrkBS1sDGAW7iYLKCsPpUpmGOiA6/i/29VLhuoYbgav5RalKygo6o2W86pBsZ k34MGniRsoks11mVRBiD2dnX6m2u2ocsjBhXfejcyubbO/2mB0HxTtnOMJ20F70iqQ8g x7P0mGSr/nAqWGjRhF3iHywx5DV/g0BkGu3OT0iqwq7VZEpb6HcE3+Yra2vNR33I88Mn dXRgZIBllznjY0J/7SZCPs4qPZcuwwzTdQrXg85pg4K/ZGUtP1lsOmbl77TVpZ4Lwu8z lKp/3PPJyzzmuhnj4YscXg7jwsWqb2Qfj96kMXaM4JCY/bKjYZxQjuXdAMnEpUCJwhQP CuTA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf0pLKl7oeOLAWCEP+7ukq2E0G85QilmIesPFABRViUYKcwohKlw iOs3w/sSNbxiDkDgd1DtvLo= X-Google-Smtp-Source: AMsMyM521RliEzhX5i8K4cp2qfL0tO2OT9vIYiFgvZHNCwuQnvJwnqsXRoDxHKZRxe3AZ9E92I0uBg== X-Received: by 2002:a05:6870:961d:b0:137:1434:2fd3 with SMTP id d29-20020a056870961d00b0013714342fd3mr29437382oaq.148.1667833943936; Mon, 07 Nov 2022 07:12:23 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:2809:0:b0:35a:9ab0:cca9 with SMTP id 9-20020aca2809000000b0035a9ab0cca9ls59314oix.7.-pod-prod-gmail; Mon, 07 Nov 2022 07:12:21 -0800 (PST) X-Received: by 2002:a05:6808:d46:b0:35a:66aa:9f70 with SMTP id w6-20020a0568080d4600b0035a66aa9f70mr8587936oik.25.1667833941138; Mon, 07 Nov 2022 07:12:21 -0800 (PST) In-Reply-To: <87v8nqon26.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: mladen.babic-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.io gmane.text.pandoc:31709 Archived-At: ------=_Part_10332_50477865.1667833940354 Content-Type: multipart/alternative; boundary="----=_Part_10333_1103327386.1667833940355" ------=_Part_10333_1103327386.1667833940355 Content-Type: text/plain; charset="UTF-8" Hi Albert, Thanks a lot for the quick reply. Ok, I probably missed in the Pandoc citeproc doc that doesn't mention that supports only MD, so I thought it would work for all formats with pattern @test. What I actually want to do is when the user uploads the DOCX file, Pandoc converts the file to HTML and shows it to the HTML editor for additional editing by the user and converts it back to DOCX. After converting to Html, the system (my app) will replace current cites in HTML cite i.e. [1] with the key from the .bib file (like in my case [@test1] so the citeproc will know how to process it. I guess I need to convert DOCX to MD from MD to HTML but I'm afraid the file will lose some of the styles during the conversion process. Any tips/hints will be appreciated. Thank you. On Monday, November 7, 2022 at 3:29:29 PM UTC+1 Albert Krewinkel wrote: > Hi Mladen, > > Mladen Babic writes: > > > I'm trying to reference cites from the .bib file in the HTML but > > without success. The function perfectly works for Markdown, so my > > question is does the citeproc work on other formats except for MD? > > > > Here are some examples which I use: > > > > > > > > > > Test [@test1] > > > > > > The file is parsed as HTML, but body above uses Markdown syntax; it's > not possible to use that syntax in HTML. However, Markdown can contain > HTML, so you could try with `pandoc --from=markdown ...`. > > Note, however, that pandoc conversions are lossy in general. Going from > HTML to HTML might not do what you expect. > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > -- 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/b67f836a-8d65-4124-bb6c-900d9933d2d2n%40googlegroups.com. ------=_Part_10333_1103327386.1667833940355 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Albert,

Thanks a lot for the quick reply. 
=
Ok, I probably missed in the Pandoc citeproc doc that doesn't mention = that supports only MD, so I thought it would work for all formats with patt= ern @test.

What I actually want to do is when the = user uploads the DOCX file, Pandoc converts the file to HTML and shows it t= o the HTML editor for additional editing by the user and converts it back t= o DOCX. 
After converting to Html, the system (my app) will = replace current cites in HTML cite i.e. [1] with the key from the .bib file= (like in my case [@test1] so the citeproc will know how to process it.

I guess I need to convert DOCX to MD from MD to HTML = but I'm afraid the file will lose some of the styles during the conversion = process.

Any tips/hints will be appreciated. =

Thank you. 

On Monday, November 7, 2022 = at 3:29:29 PM UTC+1 Albert Krewinkel wrote:
Hi Mladen,

Mladen Babic <mladen...@g= mail.com> writes:

> I'm trying to reference cites from the .bib file in the HTML b= ut
> without success. The function perfectly works for Markdown, so my
> question is does the citeproc work on other formats except for MD?
>
> Here are some examples which I use:
>
> <!DOCTYPE html>
> <html xmlns=3D"http://www= .w3.org/1999/xhtml" lang=3D"" xml:lang=3D"en"&= gt;
> <body>
> Test [@test1]
> </body>
> </html>

The file is parsed as HTML, but body above uses Markdown syntax; it'= ;s
not possible to use that syntax in HTML. However, Markdown can contain
HTML, so you could try with `pandoc --from=3Dmarkdown ...`.

Note, however, that pandoc conversions are lossy in general. Going from
HTML to HTML might not do what you expect.


--=20
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124

--
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/b67f836a-8d65-4124-bb6c-900d9933d2d2n%40googlegroups.= com.
------=_Part_10333_1103327386.1667833940355-- ------=_Part_10332_50477865.1667833940354--