Re: [NTG-context] Arabic support

2020-09-23 Thread Mohammad Hossein Bateni
Hi Denis, See this page [https://wiki.contextgarden.net/RTL] which may need some updating. I have some more definitions here [ https://github.com/bateni/dabeer/blob/master/texmf-local/tex/context/modules/dabeer/mkiv/p-dabeer.mkiv], though it's partly to handle differences between Persian and Arab

[NTG-context] set fallback in \definefont

2021-02-15 Thread Mohammad Hossein Bateni
Hi, Is there a way to set the fallback for fonts when we define them not as a typescript but using \definefont? \definefont[MyFont][Font.otf*MyFeatures] Is there a default fallback one can specify? Is simplefonts module deprecated or discouraged now? When we define a font via typescript command

Re: [NTG-context] set fallback in \definefont

2021-02-15 Thread Mohammad Hossein Bateni
-cases such as special headings or an artwork, etc. I was wondering if I can easily apply fontfallbacks for those. On Mon, Feb 15, 2021 at 3:52 PM Pablo Rodriguez wrote: > On 2/15/21 8:47 PM, Mohammad Hossein Bateni wrote: > > Hi, > > > > Is there a way to set the fallb

Re: [NTG-context] set fallback in \definefont

2021-02-15 Thread Mohammad Hossein Bateni
Thanks, Wolfgang. This works pretty well. On Mon, Feb 15, 2021 at 4:31 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > > > Pablo Rodriguez schrieb am 15.02.2021 um 21:51: > > On 2/15/21 8:47 PM, Mohammad Hossein Bateni wrote: > >> Hi, >

[NTG-context] placefigure RTL

2021-03-05 Thread Mohammad Hossein Bateni
Hello, Is there a way to make \placefigure[left,right] work in RTL documents? Here's a MWE: \starttext \setupalign[r2l] \placefigure[none,right]{}{\externalfigure[cow]} \input knuth \placefigure[none,left]{}{\externalfigure[cow]} \input knuth \page \setupalign[l2r] \placefigure[none,right]{}{\ex

[NTG-context] lmt_outline

2021-03-10 Thread Mohammad Hossein Bateni
Hello, Hans said he's in the metapost mode now :) I have used lmt_outline in the following example and it is really an improvement over the previous outline "effect" because one can set the fillcolor and drawcolor separately. (that was not possible before, right?) \starttext \definedfont[dejavu

[NTG-context] tlig feature sometimes does not work

2021-03-10 Thread Mohammad Hossein Bateni
Hi, Since most fonts do not have the standard tex ligatures built in, I tend to add them when I load the fonts. Once in a while, I run into fonts where this does not work. See the attached tex/pdf files. I basically load the font as follows: \definefontfeature[tf][arabic][tlig=yes] \definedfon

Re: [NTG-context] lmt_outline

2021-03-11 Thread Mohammad Hossein Bateni
= "fillup", align = "r2l", ] scaled 6mm; for i within op: nofill pathpart i; endfor; for i within op: eofill pathpart i withpen pencircle scaled 1mm; endfor; \stopMPcode \stoptext On Wed, Mar 10, 2021 at 11:09 PM Aditya Mahajan wrote: > On Wed, 10 Mar 2021, Mohammad Hoss

Re: [NTG-context] tlig feature sometimes does not work

2021-03-12 Thread Mohammad Hossein Bateni
That's bad. It seems, I forgot to add the fallbacks properly. I will reach out to the designer to add those chars. On Fri, Mar 12, 2021 at 12:32 PM Hans Hagen wrote: > On 3/11/2021 2:05 AM, Mohammad Hossein Bateni wrote: > > Hi, > > > > Since most fonts do not have

Re: [NTG-context] tlig feature sometimes does not work

2021-03-12 Thread Mohammad Hossein Bateni
Any idea why the ligature {U+647 and U+654 => U+6C0} does not kick in? On Fri, Mar 12, 2021 at 7:11 PM Mohammad Hossein Bateni wrote: > That's bad. It seems, I forgot to add the fallbacks properly. I will > reach out to the designer to add those chars. > > On Fri, Mar

Re: [NTG-context] tlig feature sometimes does not work

2021-03-12 Thread Mohammad Hossein Bateni
-Medium.ttf][fallbacks=fall] \definefontfeature[tf][arabic][tlig=yes] \definedfont[Test*tf] foo--bar [\char"2013] [\char"2014] \stoptext On Fri, Mar 12, 2021 at 7:13 PM Mohammad Hossein Bateni wrote: > Any idea why the ligature {U+647 and U+654 => U+6C0}

Re: [NTG-context] tlig feature sometimes does not work

2021-03-13 Thread Mohammad Hossein Bateni
Added some notes to the wiki: https://wiki.contextgarden.net/Featuresets#Open-type_features On Sat, Mar 13, 2021 at 3:12 AM Hans Hagen wrote: > On 3/13/2021 2:01 AM, Mohammad Hossein Bateni wrote: > > Umm... the fallbacks are correct. My conclusion is that tlig does not > >

[NTG-context] footnote textseparator with interactions

2021-03-16 Thread Mohammad Hossein Bateni
Hello, See this MWE: \setupinteraction[state=start]%,focus=standard] \setupnote[footnote][textseparator=\textcomma] \starttext Sample \footnote{First} \footnote{Second} \stoptext With textseparator, the color of the two footnotes change. Why is that? Thanks, Hossein ___

Re: [NTG-context] ConTeXt commands

2016-05-18 Thread Mohammad Hossein Bateni
This document is pretty handy and I did not know about it. Thanks! On Wed, May 18, 2016 at 9:04 AM, Meer, Hans van der wrote: > > > On 18 May 2016, at 14:39, Hans Hagen wrote: > > > > On 5/18/2016 2:09 PM, Meer, Hans van der wrote: > >> What is the latest edition of "ConTeXt commands"? The one

Re: [NTG-context] command reference not searchable

2016-05-19 Thread Mohammad Hossein Bateni
It is searchable on my El Capitan laptop here. I used the file in the directory and did not run context to generate it if that's what you did. On Thu, May 19, 2016 at 3:59 PM, Jean-Pierre Delange wrote: > Hi fellows ConTeXt users, > > I think the issue comes from Mac OS X PDF reader installatio

Re: [NTG-context] issue in the wiki

2016-05-29 Thread Mohammad Hossein Bateni
The version on the wiki is the stable version from mid 2015. On May 29, 2016 12:36 PM, "Pablo Rodriguez" wrote: > Dear list, > > modifying http://wiki.contextgarden.net/Command/hrule#Example, I added > an "\hrule height .25in". > > I’m afraid that this command make all rules vanish in the final d

Re: [NTG-context] Husayni font

2016-06-01 Thread Mohammad Hossein Bateni
the goodies file is there but the actual font is not in the distribution and I think is still not ready for release. On Thu, Jun 2, 2016 at 8:18 AM, Jean-Pierre Delange wrote: > Hello dear fellows, > > On Stack Exchange a ConTeXt user is looking for the Arabic husayni.ttf > font, which was build

[NTG-context] RTL bug in textbackground

2016-07-03 Thread Mohammad Hossein Bateni
Hello, When using \definetextbackground in RTL setting, the boundaries are not determined correctly (both for location=paragraph and location=text) and colors gets messed up. Here a sort-of-minimal example adapted from details.pdf. Is there any particular keys I should use in RTL to fix the issu

[NTG-context] hz in MkIV

2016-07-03 Thread Mohammad Hossein Bateni
Hi, In MkIV, the syntax for using hz seems to have changed from \setupfonthandling to \setupfontexpansion (similarly for protrusion). What is the equivalent of the following? Is this feature supported in MkIV and LuaTeX? I tried changing/adding entries to fonts.expansions.vectors.quality (and .

[NTG-context] \pushbackground for header/footer

2016-07-03 Thread Mohammad Hossein Bateni
Hi, Can one use {push,pop}background to save/restore backgrounds for header*text and/or footer*text areas? I'm trying to typeset a document where one page has a special background, which I set using \setupbackgrounds[header][text][background=color,backgroundcolor=gray]. Can I go back to the defau

Re: [NTG-context] web site

2016-07-05 Thread Mohammad Hossein Bateni
is the server down? i can't connect to pragma-ade.nl or contextgarden.net or minimals.contextgarden.net. all refuse my connection. On Sun, Jul 3, 2016 at 5:25 AM, Hans Hagen wrote: > Hi, > > > for those accessing the website (for updates) best use prgama-ade.nl > instead of pragma-ade.com > >

[NTG-context] \linedir in latest beta

2016-07-05 Thread Mohammad Hossein Bateni
Hello Hans & Wolfgang, I just updated to the recent beta: 2016.07.01 16:28 Is that the latest version or is there something wrong with the update mechanism? In any case, most my Farsi tests are broken now and the culprit seems to be \linedir. Here is MWE: \setuphead[section][numberstyle=\right

[NTG-context] \mainlanguage[pe]

2016-07-06 Thread Mohammad Hossein Bateni
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 MkI

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Mohammad Hossein Bateni
Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 6. Juli 2016 um 20:02 > 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 an

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Mohammad Hossein Bateni
16 at 4:53 AM, Mohammad Hossein Bateni wrote: > Wolfgang & Hans, > > In customizing the date, is there a way to use a number converter on day > and year? In particular, I'd like to apply persiandecimals conversion on > them. (I have a similar question regarding \curren

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Mohammad Hossein Bateni
Thanks, Wolfgang! BTW why doesn't the following work? it gives the 'missing number' error. % \mainlanguage[en] \romannumerals{\currentdate[day]} On Thu, Jul 7, 2016 at 10:02 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni

[NTG-context] Changing decimals points to Persian ones via font features

2016-08-01 Thread Mohammad Hossein Bateni
Dear list, I want to add a customized font feature to the math font, to automatically change the decimal point (unicode 0x2E) to the Arabic/Farsi version (unicode 0x66B). This will go well with the mapping from Latin digits to Farsi digits (done in a sample with mathdigits fallback). For instanc

Re: [NTG-context] Math columns in Natural Tables

2016-08-01 Thread Mohammad Hossein Bateni
Nice! I also was looking for this feature a while back. Is this going to correspond to 'm' or 'M'? On Mon, Aug 1, 2016 at 1:59 PM, Hans Hagen wrote: > On 7/31/2016 5:09 PM, Henri Menke wrote: > >> Dear list, >> >> with the old tabulate macros there was the possibility to format columns >> as m

Re: [NTG-context] \mainlanguage[pe]

2016-08-01 Thread Mohammad Hossein Bateni
of the document or something like that. —MHB On Thu, Jul 7, 2016 at 7:32 PM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 7. Juli 2016 um 16:31 > Thanks, Wolfgang! > > BTW why doesn't the following work? it gives the 'missi

Re: [NTG-context] Changing decimals points to Persian ones via font features

2016-08-02 Thread Mohammad Hossein Bateni
Could the problem be because math fonts use mode=base instead of mode=node? Or is it because in math fonts, the digits and/or full-stop have different codes? —MHB On Mon, Aug 1, 2016 at 9:46 AM, Mohammad Hossein Bateni wrote: > Dear list, > > I want to add a customized font feature to

[NTG-context] \typescriptthree within the optional argument of \definefontsynonym

2016-08-04 Thread Mohammad Hossein Bateni
Hello Hans, Suppose you have a typescript as follows. \starttypescript [first] [MyFont] [GoodieOne,GoodieTwo] \definefontsynonym [Serif] [\typescripttwo] [goodies=\typescriptthree] \stoptypescript Using macros \typescriptX (for X=one, two, and three) works in the first and second arguments in

Re: [NTG-context] \typescriptthree within the optional argument of \definefontsynonym

2016-08-04 Thread Mohammad Hossein Bateni
awesome! that's perfect, Wolfgang! —MHB On Thu, Aug 4, 2016 at 9:43 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 4. August 2016 um 15:24 > Hello Hans, > > Suppose you have a typescript as follows. > > \starttypesc

[NTG-context] OTF feature for a math font

2016-08-05 Thread Mohammad Hossein Bateni
nts but not in math mode. Thanks, MHB On Tue, Aug 2, 2016 at 3:54 PM, Mohammad Hossein Bateni wrote: > Could the problem be because math fonts use mode=base instead of > mode=node? Or is it because in math fonts, the digits and/or full-stop > have different codes? > —MHB > >

[NTG-context] Error in loading font Samim

2016-08-07 Thread Mohammad Hossein Bateni
Hello, I believe this worked fine in June's beta but now gives an error. \starttext \definedfont[Samim] سلام \stoptext I got the font originally from here , but then removed the MATH table because it wa

Re: [NTG-context] Error in loading font Samim

2016-08-07 Thread Mohammad Hossein Bateni
Please ignore my last message. It seems to be working fine now. Probably a bad setup on my part. I will ping again if I run into the same issue again. On Sun, Aug 7, 2016 at 10:12 PM, Mohammad Hossein Bateni wrote: > Hello, > > I believe this worked fine in June's beta but now

Re: [NTG-context] Changing decimals points to Persian ones via font features

2016-08-08 Thread Mohammad Hossein Bateni
ble? Thanks a lot! —MHB On Mon, Aug 8, 2016 at 10:44 AM, Hans Hagen wrote: > On 8/2/2016 9:54 PM, Mohammad Hossein Bateni wrote: > >> Could the problem be because math fonts use mode=base instead of >> mode=node? Or is it because in math fonts, the digits and/or full-sto

[NTG-context] Bug in CONTEXT/LuaTeX or just buggy font

2016-08-09 Thread Mohammad Hossein Bateni
Hello, I have a bunch of simple fonts for Arabic/Persian. These fonts lack Latin characters, etc., so I use fallbacks to work with them. I just noticed that \high does not work with them, and have not been able to pinpoint the issue. See the MWE below. \starttypescript [serif][samim][name]

Re: [NTG-context] Bug in CONTEXT/LuaTeX or just buggy font

2016-08-10 Thread Mohammad Hossein Bateni
On Wed, Aug 10, 2016 at 11:03 AM, Hans Hagen wrote: > On 8/9/2016 10:41 PM, Mohammad Hossein Bateni wrote: > >> Hello, >> >> I have a bunch of simple fonts for Arabic/Persian. These fonts lack >> Latin characters, etc., so I use fallbacks to work with them. >&g

[NTG-context] Problems with indexing (+feature requests)

2016-08-17 Thread Mohammad Hossein Bateni
Hello, For a few days I have been playing with registers to generate an RTL index. Beside sorting, I ran into the following. 1) How can I get the index section using \subject? In some styles, I do not want to see the section number. 2) How can I get the Persian comma used instead of the Englis

Re: [NTG-context] Question about \startcombination \stopcombination

2016-08-18 Thread Mohammad Hossein Bateni
Hans, This is very good point. Is it an exception for start/start/combination or a more general difference? In fact, what are the differences between \X{y} and \startX y\stopX? A while back I ran into some weird issues and I figured that the latter inserts an \endgraf or something like that in

Re: [NTG-context] bug in font rendering?

2016-08-21 Thread Mohammad Hossein Bateni
attachments uploaded here: http://mhbateni.com/context/bug-02/ On Sun, Aug 21, 2016 at 6:09 AM, Mohammad Hossein Bateni wrote: > Hello, > > I may be doing something wrong but see the difference at the end of the > first line in the PDF (produced from CONTEXT) and the corresponding

[NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Mohammad Hossein Bateni
tail calls...) 1 \setuppapersize[A5] 2 3 \usemodule[simplefonts] 4 >> \setmainfont[KFGQPC Uthman Taha Naskh][features=arabic,range=arabic] 5 \setcharacterstripping[1] 6 \setupinterlinespace[line=7ex] 7 8 \setupdirections[bidi=on,method=one] 9 \setupalign[r2l] 10 11 12 \starttext

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Mohammad Hossein Bateni
remaking the format produced no change but removing those files from the cache did solve the problem. thanks a lot! On Sun, Aug 21, 2016 at 9:59 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 21. August 2016 um 12:53 > Hello, > > Th

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Mohammad Hossein Bateni
defining > unable to define 'KFGQPCUthmanTahaNaskh' as 'thedefinedfont--0' On Sun, Aug 21, 2016 at 11:49 AM, Mohammad Hossein Bateni wrote: > remaking the format produced no change but removing those files from the > cache did solve the problem. > > th

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Mohammad Hossein Bateni
awesome! thanks, Wolfgang! On Sun, Aug 21, 2016 at 12:17 PM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 21. August 2016 um 18:06 > While \definefontfamily method works, I can't get the \definedfont method > to work. > > >

Re: [NTG-context] Problems with indexing (+feature requests)

2016-08-22 Thread Mohammad Hossein Bateni
insights about other items in the previous email? —MHB On Wed, Aug 17, 2016 at 10:48 PM, Mohammad Hossein Bateni wrote: > Hello, > > For a few days I have been playing with registers to generate an RTL > index. Beside sorting, I ran into the following. > > 1) How can I get the i

[NTG-context] another font loading error

2016-08-22 Thread Mohammad Hossein Bateni
Hello, After the upgrade to latest beta (from 08.08 21:28), I cannot load many of my Persian fonts (one uploaded here for testing). It works on "current" without any issues but not on "beta". Find an MWE as well as the error message below. (I did test on a f

Re: [NTG-context] another font loading error

2016-08-22 Thread Mohammad Hossein Bateni
cause an error). i checked that this part of the table was the same with the previous version (from 08-08). —MHB On Mon, Aug 22, 2016 at 11:45 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 22. August 2016 um 17:01 > Hello, > >

Re: [NTG-context] Problems with indexing (+feature requests)

2016-08-27 Thread Mohammad Hossein Bateni
This is great, Wolfgang! On Mon, Aug 22, 2016 at 5:06 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 22. August 2016 um 10:49 > Same problem, item (6) of email below, observed with arabtype font. See > attached. MWE follows. >

[NTG-context] Bug in \not\in?

2016-09-18 Thread Mohammad Hossein Bateni
Hi, When using \not\in in math, the two symbols do not overlap as they should. Am I missing something? \starttext $v\not\in S$. \stoptext I am using 2016.09.12 18:27 beta on Linux with LuaTeX Version 0.98.3 (TeX Live 2017/dev). Thanks, ~MHB

[NTG-context] Slides/material from the Context User Meeting

2016-10-06 Thread Mohammad Hossein Bateni
Hello Mojca, If I recall correctly someone mentioned on the list that you typically collect the slides during the meeting. Would it be possible to share them if you have done so this year? In general, is there any material related to the meeting that unlucky non-participants can access? I mean,

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mohammad Hossein Bateni
I don't know much about fontsampler but the commands you list here are mostly irrelevant. My guess is you will need to set the features in the font to get proper shaping. A good set of features that should do the trick is called "arabic". When loading the font, you should do something like the f

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mohammad Hossein Bateni
The following works for me: \input luaotfload.sty \font \myfont = file:HM_XNiloofar.ttf:language=dflt;script=arab;ccmp=yes;init=yes;medi=yes;fina=yes;rlig=yes \myfont Salam \pardir TRT \textdir TRT سلام حسن \bye On Fri, Oct 7, 2016 at 7:19 AM, Mohammad Hossein Bateni wrote: > I don

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mohammad Hossein Bateni
> > > > \pardir TRT > > \textdir TRT > > سلام > > حسن > > \bye > > > > > > On Fri, Oct 7, 2016 at 7:19 AM, Mohammad Hossein Bateni < > bat...@gmail.com> > > wrote: > > > >> I don't know much about fontsample

Re: [NTG-context] Slides/material from the Context User Meeting

2016-10-09 Thread Mohammad Hossein Bateni
On Thu, Oct 6, 2016 at 4:08 PM, Henning Hraban Ramm wrote: > Am 2016-10-06 um 18:16 schrieb Mohammad Hossein Bateni : > > > If I recall correctly someone mentioned on the list that you typically > collect the slides during the meeting. Would it be possible to share them > i

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-11 Thread Mohammad Hossein Bateni
This seems to not belong in the ConTeXt mailing list. You'd be better off asking it on Stack Exchange or on luatex mailing list. The short answer is it depends on the "format file" (and perhaps the LaTeX packages) you're using. Most probably, you either use "plain" or "latex", and then you shoul

Re: [NTG-context] cannot update to latest beta

2016-10-11 Thread Mohammad Hossein Bateni
Phillip, The bitbucket mirror has not gotten updated since September 24. Is there a misconfiguration? —MHB On Thu, Sep 22, 2016 at 4:01 PM, Taco Hoekwater wrote: > Hi Pablo, > > > Op 22 sep. 2016 om 20:53 heeft Pablo Rodriguez het > volgende geschreven: > > > >> On 09/21/2016 11:26 PM, Phili

Re: [NTG-context] ConTeXt Garden Articles Site

2016-10-13 Thread Mohammad Hossein Bateni
This is great news and the effort is much appreciated! On Thu, Oct 13, 2016 at 10:31 AM, Taco Hoekwater wrote: > Hi all, > > At the recent 10th ConTeXt meeting, we also had the 6th members meeting > of the ConTeXt Group. > > The ConTeXt Group uses the annual members meeting to keep track of the

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-27 Thread Mohammad Hossein Bateni
How does one reset the counter then? Normally one would like it to start from 1 within each algorithmic block. But definelabel seems to have bytext and bysection options only. On Wed, Oct 26, 2016 at 2:00 PM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Javier M Mora > 24. Oktober

Re: [NTG-context] which command would give the same effect as \pause in beamer ?

2017-02-27 Thread Mohammad Hossein Bateni
I once ported RawSteps to MkIV but have not touched it in a while (and probably won't have time to anytime soon). Ten months ago, it used to work almost fine. https://github.com/bateni/rawsteps-mkiv On Mon, Feb 27, 2017 at 12:00 PM, Otared Kavian wrote: > Hi, > > If you use mkii you can still

Re: [NTG-context] closesymbol on same line as displayed formula

2017-03-21 Thread Mohammad Hossein Bateni
What has changed, Otared, is that Hans reimplemented inner workings of displayed formulas and in particular its alignment mechanisms, I suppose. A few months back he had issued warnings that certain things may break there. —Hossein On Tue, Mar 21, 2017 at 2:51 AM, Mikael P. Sundqvist wrote: > On

[NTG-context] Context Journal Articles

2017-04-25 Thread Mohammad Hossein Bateni
Hi, According to the following website, "Proceedings 9° ConTeXt meeting, Nasbinals, France, 2015 (PDFs will become available in March 2017)." http://articles.contextgarden.net/journal/ It's not April :) Is anyone planning to upload the PDFs? Thanks, Hossein _

Re: [NTG-context] Wrong redirection in contextgarden.net

2017-04-29 Thread Mohammad Hossein Bateni
yeah, I've had this problem awhile too. On Sat, Apr 29, 2017 at 3:47 AM, Nicola wrote: > For a while now, when I connect to contextgarden.net, I get redirected > to wiki.contextgarden.net// (note the double slash). Is it just me, or > something to be fixed in the web site? > > Nicola > > ___

Re: [NTG-context] getting the glyph of a character

2017-05-01 Thread Mohammad Hossein Bateni
MetaPost's documentation mentions that glyph operator works on Adobe Type 1 fonts. Does it also work with OpenType fonts when used from within LuaTeX and CONTEXT? On Mon, May 1, 2017 at 7:36 PM, Jeong Dal wrote: > Dear all, > > First of all, the sample code is working under the ConTeXt > beta(s

[NTG-context] mathdigits no longer works

2017-05-12 Thread Mohammad Hossein Bateni
Hi, The example for replacing Arabic numerals by Indic digits inside math used to work (at least) until version 2017.01.17 17:37. tex/texmf-context/tex/context/fonts/mkiv/type-imp-mathdigits.mkiv Now in version 2017.04.27 01:00, this does not produce the desired output: it's all "Latin" digits.

Re: [NTG-context] mathdigits no longer works

2017-05-14 Thread Mohammad Hossein Bateni
ge to Indic. However, everything in math changes to dejavusansmono (bold, because that was the last fallback definition?). On Fri, May 12, 2017 at 7:34 PM, Mohammad Hossein Bateni wrote: > Hi, > > The example for replacing Arabic numerals by Indic digits inside math used > to work

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Mohammad Hossein Bateni
ng > your example code (with a small modification) I get the attached PDF file, > which seems correct to me. > I am using ConTeXt version 2017.05.12 22:40 MKIV beta, with LuaTeX > version 1.0.4 on MacOS 10.12.5. > > Best regards: Otared K. > > > > > > > >

Re: [NTG-context] mathdigits no longer works

2017-05-15 Thread Mohammad Hossein Bateni
Thanks, Hans! It seems to work in the latest beta. On Mon, May 15, 2017 at 5:36 AM, Hans Hagen wrote: > On 5/15/2017 5:37 AM, Mohammad Hossein Bateni wrote: > >> The version >> in tex/texmf-context/tex/context/fonts/mkiv/type-imp-mathdigits.mkiv is >> a typescript. H

[NTG-context] Formula numbers in RTL mode

2017-05-15 Thread Mohammad Hossein Bateni
Hi Hans, I recall something like this was reported a few months back, and you said you were reworking math alignment mechanisms at the time. Now that you're getting ready for the Tex Live version, I want to bring attention to this issue once again, in the hope of getting it resolved. Formula num

Re: [NTG-context] Formula numbers in RTL mode

2017-05-25 Thread Mohammad Hossein Bateni
15, 2017 at 11:09 PM, Mohammad Hossein Bateni wrote: > Hi Hans, > > I recall something like this was reported a few months back, and you said > you were reworking math alignment mechanisms at the time. Now that you're > getting ready for the Tex Live version, I want to bri

Re: [NTG-context] Typescript/fallbacks problem

2017-05-25 Thread Mohammad Hossein Bateni
The following email had large attachments (more than 100K). I uploaded everything here: http://mhbateni.com/context/bug-04/ On Thu, May 25, 2017 at 11:40 PM, Mohammad Hossein Bateni wrote: > Hello Hans, > > I'm going to explain a strange problem which came about, as far as I

Re: [NTG-context] Typescript/fallbacks problem

2017-05-27 Thread Mohammad Hossein Bateni
Hans and Otared, thanks a lot for your attention. I do appreciate your time. Otared: The fallback was called "dejavudefault" on my machine when I was testing it. I changed the name in the email, to make the lines shorter, but apparently I missed some instances—sorry—and that made it to the vers

Re: [NTG-context] next beta

2017-06-13 Thread Mohammad Hossein Bateni
this looks really cool and useful! thanks a lot, Hans! On Tue, Jun 13, 2017 at 10:46 AM, Hans Hagen wrote: > On 6/13/2017 1:18 PM, Mathias Schickel wrote: > >> >> Am 12.06.2017 um 18:17 schrieb Hans Hagen : >>> >>> On 6/12/2017 5:56 PM, Mathias Schickel wrote: >>> Hi Hans, if I get it

Re: [NTG-context] Installing a specific version of context

2018-04-24 Thread Mohammad Hossein Bateni
I don't think it's possible to do off-the-shelf. The following is what I used to do to run some tests: 1) Install the latest beta. 2) Clone to the mirror on Github [ https://github.com/contextgarden/context-mirror] 3) Sync the cloned repository to an older date 4) Replace the tex folder in context

Re: [NTG-context] roadmap

2018-05-17 Thread Mohammad Hossein Bateni
Fabrice, Accepting the caveats Hans pointed out for problematic spacing and some issues with references, you might find [ https://github.com/bateni/rawsteps-mkiv] useful. I ported RawSteps to MkIV and have used it in a few presentations. The version on github might be buggy, but a good start if

[NTG-context] Footnote rules for bidi document

2016-01-03 Thread Mohammad Hossein Bateni
Hi, This has been previously discussed on the list but I didn't find a resolution to the issue. It might as well be my fault since I didn't go through the entire archive and I am needless to say new to CONTEXT. In a bidi text (Persian/English in my case), I would like the footnote rule to be pla

[NTG-context] RTL problem with figure numbers

2016-01-03 Thread Mohammad Hossein Bateni
Hi, Again this has been partly discussed on the list and solutions were already there but I didn't see anyone mention the issue with figures. In the following MWE we have 20 pages of a simple text with a section, a footnote and a figure on each page. The page numbers and footnote numbers are fin

Re: [NTG-context] Footnote rules for bidi document

2016-01-03 Thread Mohammad Hossein Bateni
I just found out that \definenote[afootnote][rule={on,right}] instead of \definenote[afootnote][rule=right] works and places the footnote rule on the right-hand side. Still wondering about how to get automatic right/left rules. On Sun, Jan 3, 2016 at 1:22 PM, Mohammad Hossein Bateni wrote

Re: [NTG-context] Footnote rules for bidi document

2016-01-03 Thread Mohammad Hossein Bateni
that started on some previous page. --MHB On Jan 3, 2016 5:26 PM, "Hans Hagen" wrote: > On 1/3/2016 8:58 PM, Mohammad Hossein Bateni wrote: > >> I just found out that >>\definenote[afootnote][rule={on,right}] >> instead of >>\definenote[afootnote][r

Re: [NTG-context] RTL problem with figure numbers

2016-01-03 Thread Mohammad Hossein Bateni
No difference with latest beta from context-garden: CONTEXT current version: 2015.12.31 16:49 LuaTeX, Version beta-0.87.0 (TeX Live 2016/dev) The 10th page of the PDF output is attached. On Sun, Jan 3, 2016 at 5:27 PM, Hans Hagen wrote: > On 1/3/2016 8:46 PM, Mohammad Hossein Bateni wr

Re: [NTG-context] Footnote rules for bidi document

2016-01-04 Thread Mohammad Hossein Bateni
> > That said, I'm not asking for this to be the default. I only want to >> know how it can be achieved. The code will be put in my style file or >> module. >> > > i'll add rule=paragraph (i.e. listen to the first following paragraph if > possible) ... you need to document it as for sure i forget a

Re: [NTG-context] Footnote rules for bidi document

2016-01-08 Thread Mohammad Hossein Bateni
ol how the numbers are typeset in the text and at the bottom, as well as determine the fonts, etc. of \Afootnote and \Bfootnote separately. On Mon, Jan 4, 2016 at 11:21 AM, Mohammad Hossein Bateni wrote: > That said, I'm not asking for this to be the default. I only want to >>> know

Re: [NTG-context] RTL problem with figure numbers

2016-01-08 Thread Mohammad Hossein Bateni
Do you think the solution here is adding a numbercommand key to floats as well which can be set to \righttoleft? Or is the need to do the same for chapter, section, etc. also a bug which should be fixed? —MHB On Sun, Jan 3, 2016 at 11:56 PM, Mohammad Hossein Bateni wrote: > No difference w

[NTG-context] Paragraph breaking bug with BiDi text

2016-01-08 Thread Mohammad Hossein Bateni
Hello, When a line ends with a sequence whose direction differs from that of the paragraph, we risk pushing some text into the margin (when not necessary). Here is an example with corresponding output: \usemodule[simplefonts] \setmainfont[ALM Fixed][features=arabic,range=arabic] \setupalign[r2l]

Re: [NTG-context] Paragraph breaking bug with BiDi text

2016-01-08 Thread Mohammad Hossein Bateni
Minor point: changing "\pardir TLT" to "\pardir TLT\textdir TLT" in the last paragraph produces better visual, however, the previous paragraphs already demonstrate the problem sufficiently. On Fri, Jan 8, 2016 at 10:40 PM, Mohammad Hossein Bateni wrote: > Hello, >

Re: [NTG-context] Footnote rules for bidi document

2016-01-09 Thread Mohammad Hossein Bateni
Awesome, thanks! On Sat, Jan 9, 2016 at 8:07 AM, Hans Hagen wrote: > On 1/9/2016 3:15 AM, Mohammad Hossein Bateni wrote: > >> I updated the documentation on context garden. Hans, I hadn't noticed >> that you updated the macros on the same day as your last message! >&

Re: [NTG-context] Paragraph breaking bug with BiDi text

2016-01-11 Thread Mohammad Hossein Bateni
> > It is a side effect of what the the par builder considers to be valid > breakpoints. The current approach is playing very safe but after looking at > it Taco and I decided that it can be a more tolerant with respect to end > dirs so the next luatex version will have that. > > Anyway: You need t

Re: [NTG-context] RTL problem with figure numbers

2016-01-17 Thread Mohammad Hossein Bateni
r and separatorset, but neither seems to work. On Sat, Jan 9, 2016 at 11:17 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 3. Januar 2016 um 20:46 > Hi, > > Again this has been partly discussed on the list and solutions were > already

Re: [NTG-context] RTL problem with figure numbers

2016-01-17 Thread Mohammad Hossein Bateni
I just found a solution to the last question: \defineseparatorset[dashsep][][{--}] \setuphead[section][sectionseparatorset=dashsep] On Mon, Jan 18, 2016 at 1:01 AM, Mohammad Hossein Bateni wrote: > Thanks, this works for figures. > > I couldn't get the same to work for chapters,

Re: [NTG-context] Arabic Letters are disjointed and reversed in headers and margin

2016-01-18 Thread Mohammad Hossein Bateni
This makes all the text LTR, for instance if one has an English word embedded in the RTL text, that will be shown incorrectly. Or even if one of the headers (say, on the left side) is plain English. Why wouldn't something like the following work? \startsetups setup:bidi \setupdirections[bidi=on

Re: [NTG-context] RTL problem with figure numbers

2016-01-18 Thread Mohammad Hossein Bateni
That's on my agenda. I'll explore things a little more and hopefully will set up such a page in a few weeks. On Mon, Jan 18, 2016 at 5:13 AM, Hans Hagen wrote: > On 1/18/2016 7:12 AM, Mohammad Hossein Bateni wrote: > >> I just found a solution to the last question: >

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Mohammad Hossein Bateni
One hacky way to fix it is the following: \setupheadertexts [{\getmarking[chapter]}][{\lefttoright\pagenumber}] [{\lefttoright\pagenumber}][{\getmarking[chapter]}] Ideally \setupdirections[bidi] or something like that should be used, as I mentioned in the other thread;

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Mohammad Hossein Bateni
uces incorrect typesetting. On Tue, Jan 19, 2016 at 5:20 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Ibn Saeed > 19. Januar 2016 um 04:54 > > Mohammad Hossein Bateni gmail.com> writes: > > > One hacky way to fix it is the following: > > \setuphe

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Mohammad Hossein Bateni
Also \arabicnumerals is probably not what you want: this will produce an abjad-like sequence: ا ب ج د ه و ز ... I guess, what you want is called \arabicdecimals, and was not part of MkIV for a while. (For instance, it is not in standard TeXLive 2015 distribution whose CONTEXT version is for somet

Re: [NTG-context] (mashriqi) Arabic-Hindi Numerals

2016-01-19 Thread Mohammad Hossein Bateni
You do not *need* to uninstall TeXLive. ConTeXt Standalone can work side by side and it's very simple to install . You can pick to use the standalone for some of your compilations. \persiandecimals and \arabicdecimals are very similar. The diffe

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Mohammad Hossein Bateni
? Is there a macro like \applybidi{some-text-to-apply-bidi-algorithm-on}? —MHB On Tue, Jan 19, 2016 at 6:30 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni > 19. Januar 2016 um 12:16 > That should work for Ibn Saeed, but it's not a com

[NTG-context] RTL columns for itemize

2016-01-20 Thread Mohammad Hossein Bateni
Hi, Is there a way to typeset \startitemize with columns options, such that columns go from right to left? In the underlying structure \startstopcolumns, there is an option "direction" which can be set to "left" to achieve this. I couldn't figure out how to do this within \startitemize though.

[NTG-context] Bug: RTL \framed when aligned

2016-01-20 Thread Mohammad Hossein Bateni
Hello, There seems to be a bug in RTL documents when \framed goes in \leftaligned, \midaligned, or \rightaligned AND corner=round option is used. (I don't know what other options trigger the bug.) Here is the MWE (verified in ConTeXt ver: 2016.01.18 22:21 MKIV beta fmt: 2016.1.19 int: english/en

[NTG-context] RTL tips and tricks

2016-01-30 Thread Mohammad Hossein Bateni
I started this page on the Wiki: http://wiki.contextgarden.net/RTL The plan is to fill it gradually with guidelines of how to do things in right-to-left and bidirectional documents and will include information on what works and what does not. Feel free to add your tips and tricks and point out th

Re: [NTG-context] right to left direction for itemize columns

2016-02-23 Thread Mohammad Hossein Bateni
Hans, will this work right-to-left as well? On Tue, Feb 23, 2016 at 6:49 AM, Jeong Dal wrote: > Dear Hans, > > It is nice to have this feature in the next beta. > It will help us to make multiple-choice problems. > > Thank you. > > Best regards, > > Dalyoung > > > > > \starttext > > > > \starti

  1   2   >