ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>,
	"Saša Janiška" <gour@atmarama.com>
Subject: Re: lmtx & lohit-devanagari fonts
Date: Tue, 21 Apr 2020 15:32:24 +0200	[thread overview]
Message-ID: <33ab34d1-d66b-668c-c4fd-bd3edbe4ed97@gmail.com> (raw)
In-Reply-To: <20200421150605.186317fc@atmarama.ddns.net>

Saša Janiška schrieb am 21.04.2020 um 15:06:
> Hello!
> 
> I'm working on a small presentation for an upcoming video meeting and started
> writing some points in Markdown. After using Pandoc to convert I noticed that
> *.pptx file does contain everything, but if I try with ConTexT, then Devanagi
> and some diacritics are missing.
> 
> By inspecting *.pdf file produced by: Pandoc --> PPTX --> LibreOffice --> PDF
> 
> I can see that Lohit-Devanagari font is used for Sanskrit and I have it
> installed on my Fedora (fc32) desktop machine.
> 
> Here is the test file:
> 
> \starttext
> ध्यायतो विषयान्पुंसः सङ्गस्तेषूपजायते ।
> सङ्गात्सञ्जायते कामः कामात्क्रोधोऽभिजायते ॥ ६२ ॥
> 
> dhyāyato viṣayān puṁsaḥ
> saṅgas teṣūpajāyate
> saṅgāt sañjāyate kāmaḥ
> kāmāt krodho ’bhijāyate
> 
> Translation: ``While contemplating the objects of the senses, a person
> develops attachment for them, and from such attachment lust develops,
> and from lust anger arises.''
> 
> \stoptext
> 
> which I would like to quote - I am somewhat familiar with latin transliteration
> via diacritics, but completely ignorant in regard to Devanagari - but wonder
> what is required to make ConText (lmtx) typeset it?

You have to set a font which has the required glyphs but you can also 
use different fonts for both scripts and combine them.

\definefallbackfamily [mainface] [ss] [Noto Sans Devanagari]
   [range={devanagari,devanagariextended},
    features=devanagari-two]

\definefontfamily [mainface] [ss] [Noto Sans]

\setupbodyfont[mainface]

\starttext

ध्यायतो विषयान्पुंसः सङ्गस्तेषूपजायते ।
सङ्गात्सञ्जायते कामः कामात्क्रोधोऽभिजायते ॥ ६२ ॥

dhyāyato viṣayān puṁsaḥ
saṅgas teṣūpajāyate
saṅgāt sañjāyate kāmaḥ
kāmāt krodho ’bhijāyate

\stoptext

Wolfgang
___________________________________________________________________________________
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:[~2020-04-21 13:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 13:06 Saša Janiška
2020-04-21 13:32 ` Wolfgang Schuster [this message]
2020-04-21 15:35   ` Saša Janiška
2020-04-21 15:58     ` Pablo Rodriguez
2020-04-21 16:21       ` Saša Janiška
2020-04-21 16:27     ` Wolfgang Schuster
2020-04-21 19:32       ` Saša Janiška
2020-04-21 21:07         ` Pablo Rodriguez
2020-04-22  5:43           ` Saša Janiška
2020-04-22  6:10             ` Henning Hraban Ramm
2020-04-22  9:03               ` Saša Janiška
2020-04-22  8:01             ` [OBORONA-SPAM] " Vladimir Lomov
2020-04-22  9:15               ` Saša Janiška
2020-04-22  6:16   ` Henning Hraban Ramm
2020-04-22  9:49     ` Arthur Reutenauer
2020-04-23  9:49       ` Indic scripts/languages (was: lmtx & lohit-devanagari fonts) Henning Hraban Ramm
2020-04-22 13:19     ` lmtx & lohit-devanagari fonts Hans Hagen
2020-04-22 22:12       ` Henning Hraban Ramm

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=33ab34d1-d66b-668c-c4fd-bd3edbe4ed97@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=gour@atmarama.com \
    --cc=ntg-context@ntg.nl \
    /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).