From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25626 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Tam=C3=A1s_Ferenci?= Newsgroups: gmane.text.pandoc Subject: simple dictionary with pandoc Date: Sat, 11 Jul 2020 14:40:12 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_551_120459104.1594503612350" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5651"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCKJD6EHQQERBPPDVD4AKGQEHGOKGLQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jul 11 23:40:17 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1juNEG-0001MS-Ds for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 11 Jul 2020 23:40:16 +0200 Original-Received: by mail-ot1-f62.google.com with SMTP id l13sf5061034otf.16 for ; Sat, 11 Jul 2020 14:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=t+DjYQarV1ppUFOzP12bgJd4RFJ3Xr+JdqXUi4Fnn24=; b=NDbxYeSNI0fveB1R1qAkgOjPWH5iafmNP2KRHNd+Ih7x/JmJWbNU9gCyT8oKSKrSLe BwQRaHXMDZZogv7T+p69fIXetBWLWzR/zwlb9unIVES+4Lio33f7FmBdM1k21jJ7q9HM aogVqMn2wttMaTR6BAiSjhw2pf2V+k/NGenXNZyLEhfC9JrOP2FerQhHCR+0pzweQGax HPubPBTa63nf0OYXTvgbGPFHSXoK14/wpGlorlhorWU297iXnuq71VaMchw7v+McNVRq yu805p4JNKAX9wMQrSGXJzYZFju+0M1Jd0GBaz0JsmoK8jLurG/ReeUFtP08CIzmmQ69 jLnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id: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=t+DjYQarV1ppUFOzP12bgJd4RFJ3Xr+JdqXUi4Fnn24=; b=odFg9NYo0YYJx9UCkWy9RWrNYjSe+BWVdu2OQV2NDdD8h150vCoIvL5M7+kePsMJvy FsH1VqnI4OTaP0f+jnf0rTmOGKk1sLwNKPTjhX+AKblnV8EaTJ1PXfJAlnzgb+OX2hV/ rCshKaxJ9czBfOt628F+BMNP//fGGBZnbnXu4ZRYoWLBK6TBLuapzj+0l1S8qVS+8AqQ c4MO19zsH84DPXqTUVvm21L8oopNG30Dery7/m+s9beCzLmtrB7i0Y91/KEoo59hJmOS /64EpA7RhV23CVZHVXV+rIO8C9C3yXDMEMzXG5WwI+0KxnIShD4j5knrFbOhCUbSlk5K aK1g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532o0rQTZIS6XJiIPFtYs2StkR4Mx/T9043b8bdTkcvoUhx/Ciya 8cyYv30ltElTm7V+nVY27uY= X-Google-Smtp-Source: ABdhPJwqfgrya+yxDVvLVdKXOfVsSNd5oA7awltBJHuuJIVtHtDDayRfjXZN3DRADqc+wmIZPXxdHw== X-Received: by 2002:a9d:2038:: with SMTP id n53mr67928492ota.22.1594503615419; Sat, 11 Jul 2020 14:40:15 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:cc89:: with SMTP id c131ls2633757oig.3.gmail; Sat, 11 Jul 2020 14:40:13 -0700 (PDT) X-Received: by 2002:a05:6808:5d3:: with SMTP id d19mr8374979oij.145.1594503612901; Sat, 11 Jul 2020 14:40:12 -0700 (PDT) X-Original-Sender: tamas.ferenci-nmadKexVIb0HWmgEVkV9KA@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:25626 Archived-At: ------=_Part_551_120459104.1594503612350 Content-Type: multipart/alternative; boundary="----=_Part_552_664098203.1594503612350" ------=_Part_552_664098203.1594503612350 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear All, I was thinking of implementing a very-very simple dictionary with pandoc.= =20 The idea is the following: I store the necessary information in a=20 YAML-file, such as this: --- dictionary: - hungarian: asztal english: table remark: Can be made of wood. - hungarian: sz=C3=A9k english: chair remark: We sit on it. ... Then I use a pandoc conversion with a custom template to produce a markdown= =20 file (arranging them in a table or list), to which I again apply pandoc to= =20 convert to HTML. Both a Hungarian-English and an English-Hungarian=20 dictionary could be produced; a simple script could automate this whole=20 process, using the above YAML file as an input and producing the two HTML= =20 files as outputs. My first problem is however whether it is possible at all to sort the=20 entries (alphabetically) with a template? If not, are there any good solutions to this problem? Or pandoc is simply= =20 not suited to solve a task like this...? Thank you in advance, Tamas --=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/f8c4c0d5-fb07-4f8a-9c87-8bb654cfd525o%40googlegroups.com. ------=_Part_552_664098203.1594503612350 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear All,

I was thinking of = implementing a very-very simple dictionary with pandoc. The idea is the fol= lowing: I store the necessary information in a YAML-file, such as this:

---
dictionary:
- hungarian: aszt= al
=C2=A0 english: table
=C2=A0 remark: Can be made of = wood.
- hungarian: sz=C3=A9k
=C2=A0 english: chair<= /div>
=C2=A0 remark: We sit on it.
...

Then I use a pandoc conversion with a custom template to produce a markd= own file (arranging them in a table or list), to which I again apply pandoc= to convert to HTML. Both a Hungarian-English and an English-Hungarian dict= ionary could be produced; a simple script could automate this whole process= , using the above YAML file as an input and producing the two HTML files as= outputs.

My first problem is however whether = it is possible at all to sort the entries (alphabetically) with a template?=

If not, are there any good solutions to this prob= lem? Or pandoc is simply not suited to solve a task like this...?

Thank you in advance,
Tamas

--
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/f8c4c0d5-fb07-4f8a-9c87-8bb654cfd525o%40googlegroups.= com.
------=_Part_552_664098203.1594503612350-- ------=_Part_551_120459104.1594503612350--