ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jairo A. del Rio via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Jairo A. del Rio" <jairoadelrio6@gmail.com>
Subject: Concerning dictionaries. glossaries and related in ConTeXt
Date: Fri, 26 Nov 2021 06:22:08 -0500	[thread overview]
Message-ID: <CAKyqqabyL+_W2arvbEXUMHBS05OJjxmB94pVJ0w-LiYzSWRbMA@mail.gmail.com> (raw)


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

Hi, list. I want to know how I should handle alphabetically sorted data in
ConTeXt. So far, I'm abusing registers in order to get simple glossaries,
but I prefer to manage data with tools such as JabRef rather than manually
typing entries inside a document. I attach an example of what I achieved:

\unprotect
\mainlanguage[\s!es]
\enableexperiments[fonts.compact]
\setupbodyfont[computer-modern-unicode]
\setuphead[chapter]
  [\c!alternative=\v!middle]
\defineregister[Russian]
\setupregister[Russian]
  [\c!expansion=\v!yes,
   \c!balance=\v!no,
   \c!n=2,
   \c!command=\Words,
   \c!pagenumber=\v!no,
   \c!language=\s!ru]
\def\Ruso[#1]%
  {\begingroup
   \getdummyparameters[word=,category=,meaning=,#1]%
   \Russian[\dummyparameter{word}]%
   {\bold{\dummyparameter{word}}
   \italic{\dummyparameter{category}}
   \dummyparameter{meaning}}%
   \endgroup}
\protect
\Ruso
    [word=исчисление,
     category=n. neutr.,
     meaning=cálculo]
\Ruso
    [word=вероятность,
     category=n. fem.,
     meaning=probabilidad]
\Ruso
    [word=обозначать,
     category=v.,
     meaning=denotar]
\Ruso
    [word=область,
     category=n. fem,
     meaning={región, área}]
\Ruso
    [word=событие,
     category=n. neutr.,
     meaning=evento]
\Ruso
    [word=определение,
     category=n. neutr.,
     meaning=definición]
\Ruso
    [word=знание,
     category=n. neutr,,
     meaning=conocimiento]
\Ruso
    [word=бесконечно,
     category=adv.,
     meaning=infinitamente]
\Ruso
    [word=сборник,
     category=n. masc.,
     meaning={colección, compilación, compendio}]
\Ruso
    [word=неравенство,
     category=n. neutr.,
     meaning=desigualdad]
\starttext
\starttitle[title=Ruso-español]
\placeRussian
\stoptitle
\stoptitle
\stoptext

Reading the manuals, I find that the publication mechanism for bibliography
kinda fits my needs (using ConTeXt to sort and type data generated via
external software) but, unlike registers, it doesn't seem to include
options for alphabetical headers. Is it fine to keep using registers in
this case? Is there a better mechanism for this task in ConTeXt? Thank you
in advance.

Best regards,

Jairo

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

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2021-11-26 11:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-26 11:22 Jairo A. del Rio via ntg-context [this message]
2021-11-26 12:24 ` Hans Hagen via ntg-context
2021-11-26 13:15 ` Hans Hagen via ntg-context
2021-11-26 13:58   ` Jairo A. del Rio via ntg-context

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=CAKyqqabyL+_W2arvbEXUMHBS05OJjxmB94pVJ0w-LiYzSWRbMA@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=jairoadelrio6@gmail.com \
    /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).