From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30007 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Setting bold font to semibold font in generated docx Date: Wed, 19 Jan 2022 19:17:27 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000557b6005d5f366a1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40471"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBP5LUGHQMGQE7QWDSAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jan 19 19:17:37 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f55.google.com ([209.85.128.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nAFWb-000AKx-JA for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 19 Jan 2022 19:17:37 +0100 Original-Received: by mail-wm1-f55.google.com with SMTP id ay11-20020a05600c1e0b00b0034afc66f1fbsf4732475wmb.9 for ; Wed, 19 Jan 2022 10:17:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642616257; cv=pass; d=google.com; s=arc-20160816; b=Z0o+Dw+wuS0qIwxuk9btESYMl2zHgeaUNittf6gSh8HAEgMs2UcW1+pUpzolCbySYL uLoEOUY+eZ+0RcbMJJZqrc9amEQTG5cxgAzNcLKnNmvYKjZS1sMc19yP8FAllO9uSqiB S32IRYU91jBFPA+ESqfbnXFdXo9Jjq+HM56VFcCAtHZjT7fUDhd4UNnP3B/QDZ/vCehU AzLuC2l6WR0Ub7B0VA2YsnB71lkyZpCKdW2Eqz+uogwdhOWLu3MrYzzN/nXQJID4aF54 MHLzHypiGMluQnFJUYeiwRl3bRUN46LNY3sUmR/YT6JWr4ZQcGGJ0RZhZBxM6mqzHaB3 3EWw== 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:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=JAigNN2VJBKicOwn7uHee9neVniR9GP4NZq7yj8Gy7g=; b=VCINwz0oW9NsU7eEhNqlXfSu+HCH/LsolRMIS76/JqBtPPLrzYLzZ0BjfK5XfJz6v/ 4XqZrs0qpOLHk+DK1hfgd4om2aFxk4VMnq/pImPq5rIN+XLS8w6tdKYdeTo3Kwz8HLQN d8S4TF8yCbr7IdF9GW2oIz3pnPAnlbKLq51SyKDX0L8ZG1yhEZyWzfASUBEtSz8ZX1ti jZeAPEsEpOi5K1rFfurWGLWp/9tC0v313FIFtiMFebf0iCikmiSuc63CPCQnWDwi33YI ncWgqnpBuoPo6E6ZBQs3blolKArJskWlgZ0aurAa/2u5u6JDDploIwxW+Zc7k3DwlCoW D++w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.46 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=JAigNN2VJBKicOwn7uHee9neVniR9GP4NZq7yj8Gy7g=; b=tXuA8vzg1PXE/IT2CZpI6V+CzjggzFVoOD8BgheQJnoXmtmOc+I+0zngryZXdKj7Z4 JyxJI7XRBztYhnxiTxkg49qfBmzWpdzpDsc/p24pmSadY2UnGXXst9f0gT9Jvyg/K0rf FbLzxySgkLmQoMH0jItPrcMyG3JJCWYdqcQUyMe3XHzXkAwxdHdO4pfpdw/QNhuhHdSM 17Ezl6+RuqMBSFCIxHXBoeC4wWTKVlZymdh5l95jpUz5EYO1k54+TFhM40alsnb4+2Iw 3gK36s4U/AaWGGVpQVDFDvi9wVp2HLrekjLG86Bl2mr5j23HBel+Upv++4uZPcvUKvEA X8Ag== 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 :reply-to:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=JAigNN2VJBKicOwn7uHee9neVniR9GP4NZq7yj8Gy7g=; b=ZOhyaMAJzIR4O2PyUbaGUSUouaygRfIikKMu2eC5o8Fts4VH0d6VM+amE7vEoc50W5 8azWcy9iJYaKCFGGLAFHGbstV363x2w1MRQeiGRBK1Lg0HFm+hjWbiRU6FLI8Scjchle IKgUlxPD06H4+aHBM0mfgCIwAeV1m+6qBLy/4YhgFHNuWbXCd+xDWW4hfQwtt7CW/JcW 3PIN1YXWnLk8CKaHyUqLiTff3gMBTXn5eTYtCR24Kl3KygDYeA1aGMujp1ZVFcqPREK+ GIROw1W00PDfi2fON1FSyVvQ+Qs3gWd+0RllPVqCjedoUZJxKNGeR4cuK0I5FTViHfLf 8q6g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532k0IU2mfL7EUfAVIIBJF4TgITAkkMWPAZ1fWcihb9RoO9FBEIo x02ahnzPk6ITUhMDEEpzZTA= X-Google-Smtp-Source: ABdhPJzAHvcolJL2vKj3/chOIX/0h17e569nFSNn1Jssawxqoc9eTnNvIQlQUlx90puSqQl95hlDbA== X-Received: by 2002:adf:f74d:: with SMTP id z13mr9459956wrp.77.1642616257224; Wed, 19 Jan 2022 10:17:37 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:f417:: with SMTP id z23ls1377119wma.3.gmail; Wed, 19 Jan 2022 10:17:34 -0800 (PST) X-Received: by 2002:a7b:c5ce:: with SMTP id n14mr4834651wmk.11.1642616254712; Wed, 19 Jan 2022 10:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642616254; cv=none; d=google.com; s=arc-20160816; b=C+FHbsV8BJ48rIKvYBfy98uV0d6J5JOXx6BJ009mNIzE7jc8dpN9ijyEZY8lQ+E+4M cxq+f2uAnnm82z3U4FAKTGAod54p/8cRHo2BqhvOW7RII0MfBhkg/rNxcbRi9IMs8zb1 BYfwQMrp7kzcV4Kqn1xa3ZqDVOyb53zPDgyylx1RYYBqnvtbPbDEbaWbvX0l2sxmiIi2 mkh6ypfsJ25z1q0d94tFhJHfTUee2zc1Y6G6WcCuu7Ca/iD8cL9+JqaFo0UN7PzX1M0M h3UqGRQJSgqPy16Gp/Eq3DmujFRgD3QHaNHjAOgx1mOgWD55Ga+9Qq/pAnOGqzDiYikX kjWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=PPNiftbou8sqT0ZfYkaIIBh1WmIn8FT1LR95qn+1w8w=; b=n+N0flBcPj5lBJ5s8fzmv8TFhRSEDndH6HwH8iB+vDCDRmvAiwNYYwlXdZzWm+JP2B w7bFU1GRp/RSaHomac08sxe7sHToZhu+hCwNZ7KRqf5TOGGbL5KUZcW8EX4m85hv2hz+ QWHh+RvmYLEkNGtq2pc6yvOb0BIjF9AwdHuDsiVomwH2YlZQReJBOeKQOGBbQukqhidq umjGS9uSIflb1L+hhXYs5Fd9u2VzREZKMHD11SEFrM8t2iLRqubjHCdaUa3UgqNpqdD1 Q5xggjv3bT/ptKh5nfx4jqR2HL9npDgWwZ9LyHsDTdxx9GsKtqy09zSu2/78HghYqz8f 1PFg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.46 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com. [209.85.208.46]) by gmr-mx.google.com with ESMTPS id o17si446337wms.1.2022.01.19.10.17.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jan 2022 10:17:34 -0800 (PST) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.46 as permitted sender) client-ip=209.85.208.46; Original-Received: by mail-ed1-f46.google.com with SMTP id cx27so17298657edb.1 for ; Wed, 19 Jan 2022 10:17:34 -0800 (PST) X-Received: by 2002:a2e:9ac8:: with SMTP id p8mr20615121ljj.355.1642616254199; Wed, 19 Jan 2022 10:17:34 -0800 (PST) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.208.46 as permitted sender) smtp.mailfrom=melroch-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:30007 Archived-At: --000000000000557b6005d5f366a1 Content-Type: text/plain; charset="UTF-8" AFAIK you can't change automatic styles but you can use a Lua filter to replace Pandoc's Strong elements with Span elements with a custom named style. ``````lua function Strong (elem) return pandoc.Span(elem.content, { ['custom-style'] = 'Semibold' }) end `````` Now define a named character style 'Semibold' in your reference doc and run pandoc with that reference doc and this filter. Den ons 19 jan. 2022 06:00Nandakumar Chandrasekhar skrev: > Dear Folks, > > I am converting a markdown document to DOCX using a customized reference > doc initially procured from Pandoc according to the documentation here. > > I am able to set the bold font-weight to semibold for the title and > heading fields. > > However, I do not see. a way of setting all bolded text in paragraphs and > bulleted lists to semibold. > > It looks like I need to set the strong style to semibold to achieve this > but Pandoc does not support styling that element as far as I can tell. > > Are there any workarounds available are will this feature be supported in > the future? > > I would prefer to not have to do any manual post-processing after Pandoc > generates the document. > > Thanks in advance. > > -- > 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/c041b5d2-b11f-409b-8f45-815263626111n%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/CADAJKhAtEK5%3DyBm9U51O6jRsUJBVufaXr6nVPafMH%2B85Hao1gg%40mail.gmail.com. --000000000000557b6005d5f366a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
AFAIK you can't change automatic st= yles but you can use a Lua filter to replace Pandoc's Strong elements w= ith Span elements with a custom named style.

``````lua
function Strong (elem= )
=C2=A0 return pandoc.Span(elem.content, { ['cu= stom-style'] =3D 'Semibold' })
end
=
``````

Now define a named character style 'Semibold' in your reference do= c and run pandoc with that reference doc and this filter.

Den ons 19 j= an. 2022 06:00Nandakumar Chandrasekhar <navanitachora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Dear Folks,

I am converting a markdown do= cument to DOCX using a customized reference doc initially procured from Pan= doc according to the documentation here.

I am able to set the bold f= ont-weight to semibold for the title and heading fields.

However, I do not see. a way of setting all bolded text in paragraph= s and bulleted lists to semibold.

It looks like I need to= set the=C2=A0strong style to semibold to= achieve this but Pandoc does not support styling that element as far as I = can tell.

Are there any workarounds available are will this feature = be supported in the future?=C2=A0

I would prefer t= o not have to do any manual post-processing after Pandoc generates the docu= ment.

Thanks in advance.

--
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/c041b5d2-b= 11f-409b-8f45-815263626111n%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/CADAJKhAtEK5%3DyBm9U51O6jRsUJBVufaXr6= nVPafMH%2B85Hao1gg%40mail.gmail.com.
--000000000000557b6005d5f366a1--