Changes

Jump to navigation Jump to search
2,163 bytes added ,  21:09, 19 December 2020
first draft (needs reviewing)
{{todo|this page needs to be reviewed}}

= Basic Sample =

A very basic sample with Indic scripts is the following:

<texcode>
%\definefontfamily [kannada] [rm] [Kedage] [features=kannada-one]
\definefontfamily [kannada] [ss] [Tunga] [features=kannada-one]

\definetypeface [kannada] [mm] [math] [modern]

\setupbodyfont [kannada]

\starttext
ಇದು ಹೇಗಿದೆ? ನಾನು ಹೀಗೆ ತುಂಬ ಬರೆಯಬೇಕೆಂದು ಯೋಚಿಸುತ್ತಿದ್ದೇನೆ.
\stoptext
</texcode>


= Supported Scripts =

The list of Indic scripts supported by ConTeXt MkIV and LMTX are:

* Devanagari
* Bengali
* Gujarati
* Gurmukhi
* Kannada
* Malayalam
* Oriya
* Tamil
* Telugu

In order to get the proper OpenType features, you need to select the proper feature from the following list:

* <code>devanagari-one</code>
* <code>bengali-one</code>
* <code>gujarati-one</code>
* <code>gurmukhi-one</code>
* <code>kannada-one</code>
* <code>malayalam-one</code>
* <code>oriya-one</code>
* <code>tamil-one</code>
* <code>telugu-one</code>

Depending on your font, you might need instead:

* <code>devanagari-two</code>
* <code>bengali-two</code>
* <code>gujarati-two</code>
* <code>gurmukhi-two</code>
* <code>kannada-two</code>
* <code>malayalam-two</code>
* <code>oriya-two</code>
* <code>tamil-two</code>
* <code>telugu-two</code>

== Script Versions ==

[https://docs.microsoft.com/en-us/typography/opentype/spec/scripttags Script tags from the OpenType specification] contains second versions for what might be some (or all [I’m afraid I don’t know]) Indic scripts.

Why are those second versions available? From their own explanation:

<blockquote>
The OpenType script tags can also correlate with a particular OpenType Layout implementation, with the result that more than one script tag may be registered for a given Unicode script (e.g. 'deva' and 'dev2').
</blockquote>

Features ending in <code>-one</code> use the older OpenType implementation, while the ones ending in <code>-two</code> deploy the newer implementation.

= Hyphenation =

Hyphenation patterns aren’t included yet in ConTeXt for any of the mentioned languages.
139

edits

Navigation menu