ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \mainlanguage[pe]
@ 2016-07-06 18:02 Mohammad Hossein Bateni
  2016-07-06 18:30 ` \mainlanguage[pe] Wolfgang Schuster
  2016-07-07  5:20 ` \mainlanguage[pe] Mojca Miklavec
  0 siblings, 2 replies; 11+ messages in thread
From: Mohammad Hossein Bateni @ 2016-07-06 18:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,

This was lost in the other thread, so I'm starting a fresh one dedicated to
the question.

1) \showinstalledlanguages does not show pe/persian/fa or anything like
that but it has several arabic variants.  was this dropped in MkIV or was
there never a persian language environment even in MkII?  I thought there
were translated labels for Farsi somewhere.
2) In the following MWE, ad-hoc hyphenation using \- works and leads to
hyphenation.  However, specifying the pattern at the beginning does not
have any effect.  Am I missing something?


\usemodule[simplefonts]
\setmainfont[dejavusans][features=arabic,range=arabic]
\setupalign[r2l]
\showframe
\hyphenation{سازمان‌-دهی}

\starttext

%% The above pattern is not used here and the long word moves into the
margin.
\dorecurse{14}{سلام }
سازمان‌دهی
مناسب.

%% It does work here, though.
\dorecurse{14}{سلام }
سازمان\-دهی
مناسب.

\stoptext


How can one create a new language?  The languages manual
<http://www.pragma-ade.nl/general/manuals/languages-mkiv.pdf> suggests that
this is possible.  Does that mean I need to send the request to
Hans/Wolfgang to create the new entry or can one do so dynamically?  Beside
the issue of sorting in indices, etc.—which I will get to in due
time—having an entry for language pe/persian seems to be necessary to
*properly* use \setuplabeltext, etc.  Is that correct?

Thanks a lot!
—MHB

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-08-01 16:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-06 18:02 \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-06 18:30 ` \mainlanguage[pe] Wolfgang Schuster
2016-07-07  8:53   ` \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-07 12:40     ` \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-07 21:28       ` \mainlanguage[pe] Hans Hagen
2016-07-08  9:40         ` \mainlanguage[pe] Meer, Hans van der
2016-07-07 14:02     ` \mainlanguage[pe] Wolfgang Schuster
2016-07-07 14:31       ` \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-07 17:32         ` \mainlanguage[pe] Wolfgang Schuster
2016-08-01 16:31           ` \mainlanguage[pe] Mohammad Hossein Bateni
2016-07-07  5:20 ` \mainlanguage[pe] Mojca Miklavec

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).