From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32534 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Header attributes and docx Date: Sat, 06 May 2023 08:41:16 +0200 Message-ID: <87r0ru9ce8.fsf@zeitkraut.de> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38529"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBBPU26RAMGQECR44ZWQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 06 08:56:19 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f62.google.com ([209.85.208.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pvBq7-0009r4-HO for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 06 May 2023 08:56:19 +0200 Original-Received: by mail-ed1-f62.google.com with SMTP id 4fb4d7f45d1cf-50d88a986afsf837792a12.0 for ; Fri, 05 May 2023 23:56:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683356179; cv=pass; d=google.com; s=arc-20160816; b=tO77OphhdGi3gVah1R3/z9JWeUK/asj26NNoCjow1dRwvIMn1gC/M8NqGDpxbqLmbX acOusf6oGN0dsyBl3Jb/V6v7mXicmw8Ezd8dybWibTUoNvF9dHPY3xHiV3bub8oHMd4/ nUQEQAvrYEprCVMk/AP47AQSah9QGUiv3tInoxpwCFGq3dQnHvXZQRiAgIk25aotqL/l kng6XwaKZqGk1spU9rCqAsgqPUn278tSgnn+SNzacRnqHMFDrCAiV/Ee3GKEs09dQjV6 K+bqtvEisG0X4EiljT6tyQc59arqmOUTZbh/is6EWE6kF0UD1xfbA2Tbld01CuG5Nqvi lGgQ== 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:content-transfer-encoding :mime-version:message-id:in-reply-to:date:subject:to:from:references :sender:dkim-signature; bh=5iBdtr0m6BNseta+MHdXI5HrUUccumvZUHWClurazKw=; b=osy/g5KRnCizRth1wXqgl6AXJptGFPLcpBCDwt32CWsZN4GMEvLUrFtboipm85Qz0C KdkqaVRh5uQpIn40yTB9QtDuTX5iUSMDXal7ccAnwlo+iMGRIcLXIvklfwnxvZS7Rb6f /m02+cacgTiI35olfr9eik/Ynf/LSY8/ImqswUWyuS0INHr3mmo3bjcX8UnmlBgXg05f Noi2NxGLRVqQiSH/uf0aB3uXi+RvCbDDbcGotV8XgsVyQwuAoZRsh47jj4wXYVLyDTzh dGJBVyrluDudC8wDjQQRsxGeAembcbcqkO8By0QfzXpAJL5BguKLVFGpX4wzeYenCZ38 wkdQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1683356179; x=1685948179; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references:sender:from:to:cc:subject:date :message-id:reply-to; bh=5iBdtr0m6BNseta+MHdXI5HrUUccumvZUHWClurazKw=; b=ZERGfeHo3cO3Ul0BI9uNuxccRNnW++durGVTH1ZRG87hfqraWl5A2MArsznYhjFc+o qRlZ81CrSemVnVqHvP3B+fFnFYXvT2nYrcEYSAbs91cb4S2RC9MJyqWFwqRhbYsVeVRn MIJQ7USRajtoOp6sRoHi0oEftS6ikHZbWf13+EiJDt7G99E8haD+sY4KVz/r1h0NPokj IXTry3MUFYQVVwko2HNBG/v00/UiQBLqCRMvRYoNAcDlrwpl4UroDichY9eRRPdgoYj5 SELU58Xe+acSvUsIBfGOmrzZlr3/8mbQPF1tG X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683356179; x=1685948179; 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-authentication-results:x-original-sender :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references:x-beenthere:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to; bh=5iBdtr0m6BNseta+MHdXI5HrUUccumvZUHWClurazKw=; b=jldsb5KdAz/nU0tz9LoqzbAtvkwwZrXYGG9v9huGJvI6GlmTvp35Dh09tgeSz2pVQB MACXvQgPk9ziwyqDxzAoiPVdEIijmuWwy3G1Zgvg7vkFu/kD5fAcHJCOcMjndjQPPof5 HnV672E1zvUFLhP1AZTtLhmQiWlMBz6JK0NYTpJZUhA0s0LEo+z68e+CPzSaf/o4r8FE YC1ND0NcPGGqmAow1VWIdybmieyGaY5cZPqj2YppAnzrOmCLzcA+AnW8tc Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDydLdbngd3tTI7uqg9L2qrvjaRkRSQsQAYEsxgEoZJijB88oAM7 W0aTICiAHKZbDDQmB5NSlEE= X-Google-Smtp-Source: ACHHUZ7aNmuX25zxfsrkZvA3eCvhuJYBJzgXq0gKRVspwz6roKAmm2hia2oleMcQ4vUkTb3fLDP7pg== X-Received: by 2002:a50:d09d:0:b0:508:47ea:d856 with SMTP id v29-20020a50d09d000000b0050847ead856mr1505939edd.6.1683356179194; Fri, 05 May 2023 23:56:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:c786:0:b0:50a:9e3:f053 with SMTP id n6-20020aa7c786000000b0050a09e3f053ls23271eds.1.-pod-prod-06-eu; Fri, 05 May 2023 23:56:04 -0700 (PDT) X-Received: by 2002:aa7:c546:0:b0:50b:d4e8:3173 with SMTP id s6-20020aa7c546000000b0050bd4e83173mr3251518edr.8.1683356163960; Fri, 05 May 2023 23:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683356163; cv=none; d=google.com; s=arc-20160816; b=gQjxCTbafx19aSEvriLwzhEPzyviyGe/pMfxAw3V5L1DJ8B/Y7Gu2yqP6xx0ylxHSD sbaxz89fHUKiuol1o4Xi4D3YPZpIZahzCPYy6lYfTmZ0I1QtEwTAfu0Ii0DfZlDRSaf5 uFYgzCZiF/hlpu279ynjltYUWqosblK0EptMyHMKB6Rm9scIEnGCTAVzq6sk1HB5ceEQ S/RFatWrviKcHRSp+dF3ypeYlmrKel/ky8Tkdq9FOzkQLGNj6oa2vZhYjTBsll1i1D8v AdkoIFnNBKrLLvZiHwPGyj2B8ehnr2XtvTaq8MoNhZmgC8DluPcExk515oVRP6/wdQXV AMaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references; bh=hCE/iKlT+GU59nappZNkfZd3dIBmVyq3OU0N6AViFs8=; b=LUXTJ6jSVr0rGiHot9OoolwE4wyANS2kgHX9UlzuKp9EBd5CRgG8D5vqEFoOfv7RDr K3wRuZPX9eX+rN9mZwFc5BcakVnSTSHCyKeMwuq2HaC+NWK8wjaeNiveQSLPLyZHIcNw IzsMZy6Z0Lae4hcP1031+oQaI/UqX1ng++ViuGBARgDsH/5plwHIvOQMjozpZ5Lgv7Cv PI9IiQtfHgpc7dd3hPzXcXSWuFVU7YKf5BhOCy9T1MyjmLNO/v90iddBRYkF5bc883Vm F+p1FJ9T9tpp1ilCNLC0DU2ikht7/ouBxo2uRa05G5mCr9NiUhGSYsNoTmlfXCazwTNj 6Ecg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [2001:67c:2050:0:465::201]) by gmr-mx.google.com with ESMTPS id c7-20020a0564021f8700b0050bdc0e7cf6si558603edc.5.2023.05.05.23.56.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 23:56:03 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) client-ip=2001:67c:2050:0:465::201; Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4QCyxs3VwSz9sSV for ; Sat, 6 May 2023 08:56:01 +0200 (CEST) In-reply-to: X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:32534 Archived-At: Conversions are generally lossy; some info cannot be preserved. In this case here the issue is that the docx reader ignores "bookmark" entries in the input document. Changing this would require updates to the docx reader: https://github.com/jgm/pandoc/blob/main/src/Text/Pandoc/Readers/Docx.hs Miguel writes: > Say you have the following file: > > # This is a section {#section} > > Converting this to html/docbook/latex and back to markdown properly > handles and keeps the header attribute: > >> pandoc -t docbook test.md | pandoc -f docbook -t markdown > > # This is a section {#section} > > But when converting and reversing from docx, the header attribute is > lost: > >> pandoc -t docx test.md | pandoc -f docx -t markdown > > # This is a section > > How can this be fixed, and convert back from docx without losing the > given header id?=C2=A0 --=20 Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 --=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/87r0ru9ce8.fsf%40zeitkraut.de.