public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "Tamás Ferenci" <tamas.ferenci-nmadKexVIb0HWmgEVkV9KA@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: simple dictionary with pandoc
Date: Sat, 11 Jul 2020 14:40:12 -0700 (PDT)	[thread overview]
Message-ID: <f8c4c0d5-fb07-4f8a-9c87-8bb654cfd525o@googlegroups.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1422 bytes --]

Dear All,

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

---
dictionary:
- hungarian: asztal
  english: table
  remark: Can be made of wood.
- hungarian: szék
  english: chair
  remark: We sit on it.
...

Then I use a pandoc conversion with a custom template to produce a markdown 
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 
dictionary 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 problem? 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 "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/f8c4c0d5-fb07-4f8a-9c87-8bb654cfd525o%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1933 bytes --]

             reply	other threads:[~2020-07-11 21:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-11 21:40 Tamás Ferenci [this message]
     [not found] ` <f8c4c0d5-fb07-4f8a-9c87-8bb654cfd525o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-07-12  8:27   ` Albert Krewinkel
2020-07-12 16:14   ` BPJ
     [not found]     ` <CADAJKhBj-BMcD7S94q1gu3cpxQDv9Dz18cUxrmi0rq2Ft0nQ9A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-07-13 19:42       ` Ferenci Tamas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8c4c0d5-fb07-4f8a-9c87-8bb654cfd525o@googlegroups.com \
    --to=tamas.ferenci-nmadkexvib0hwmgevkv9ka@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).