[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] 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 > >

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-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
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] 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

[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

[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] 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

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, >

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

[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] 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] Problem loading a font

2019-12-23 Thread Mohammad Hossein Bateni
Hi, Here's a simple MWE: == \starttext Default {\definedfont[ALMFixed]ALM} Default \stoptext == I have the "ALM Fixed" font installed (otf from https://ctan.org/tex-archive/fonts/almfixed). I do not see any errors in the output. In particular, Context sees the font and

Re: [NTG-context] ttf font not seen ?

2019-08-26 Thread Mohammad Hossein Bateni
I have had the same problem. Unlike Mark IV Context, LMTX does not seem to recognize fonts outside its tree. Maybe there's some option to tweak with. The workaround I found was to copy the TTF files under "{context-lmtx-root}/tex/texmf/fonts/truetype/public/" and run "context --generate". If yo

Re: [NTG-context] problems with "pagecomment"

2019-04-27 Thread Mohammad Hossein Bateni
buffer's content? The solution I can think of is to use a different buffer "pagecomment_internal" in the above definition, and then build buffer "pagecomment" using that. Thanks, ~MHB On Sat, Apr 27, 2019 at 1:24 AM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com

[NTG-context] problems with "pagecomment"

2019-04-26 Thread Mohammad Hossein Bateni
Hi, Look at the following MWE: \setuppagecomment[state=start,location=right] %\definestartstop[Notes] %[before=\startpagecomment,after=\stoppagecomment] \def\startNotes{\startpagecomment} \def\stopNotes{\stoppagecomment} \starttext \input knuth \startpagecomment Hello \stoppagecomment \page \in

Re: [NTG-context] Isn't the name ConTeXt a bit search-engine unfriendly?

2019-04-19 Thread Mohammad Hossein Bateni
I usually search for "ntg context" instead... Also searching within "contextgarden" helps sometimes. If you're looking for the key/values and syntax of a particular command (without additional information about the meanings), the most up-to-date reference is at http://www.pragma-ade.nl/general/qr

Re: [NTG-context] link

2019-04-16 Thread Mohammad Hossein Bateni
Thank you for sharing, Hans! Aditya always has a bunch of cool tricks. I did not know about the --ansi flag. It's not reported by "context --help". Are there other "hidden" options? :) On Sat, Apr 13, 2019 at 11:33 AM Hans Hagen wrote: > https://adityam.github.io/context-blog/post/setuptex/

Re: [NTG-context] change in treating errors

2019-04-16 Thread Mohammad Hossein Bateni
n, 15 Apr 2019 23:11:17 -0400 > Mohammad Hossein Bateni wrote: > > > Hi, > > > > ConTeXt used to recover better from errors. Consider the following file: > > > > = > > \xyz > > \abc > > > > \starttext > > HELLO >

[NTG-context] change in treating errors

2019-04-15 Thread Mohammad Hossein Bateni
Hi, ConTeXt used to recover better from errors. Consider the following file: = \xyz \abc \starttext HELLO \stoptext = Running ConTeXt ver: 2019.03.21 21:39 MKIV beta fmt: 2019.3.26 int: english/english would catch both "Undefined control sequence" errors before exit

Re: [NTG-context] textext within ConTeXt

2019-03-03 Thread Mohammad Hossein Bateni
:53 -0500 > Mohammad Hossein Bateni wrote: > > > Hi, > > > > I can't understand why the following code does not work. Could someone > > help me out here? > > > > \starttext > > \startMPpage > > draw textext("\convertnumber{r}{12}"

[NTG-context] textext within ConTeXt

2019-03-03 Thread Mohammad Hossein Bateni
Hi, I can't understand why the following code does not work. Could someone help me out here? \starttext \startMPpage draw textext("\convertnumber{r}{12}"); draw textext("\convertnumber{r}{" & "12" & "}"); \stopMPpage \stoptext The first draw statement works perfectly. But the second one throws

Re: [NTG-context] about the color of sidebar

2019-02-24 Thread Mohammad Hossein Bateni
I have never used the sidebar mechanism, but there is a "rulecolor" option in setupsidebar. Maybe that's what you're looking for. You can look up the commands and their options in "i-context.pdf" file. On Sun, Feb 24, 2019 at 6:36 PM Jeong Dal wrote: > Dear Hans, > > 2019. 2. 24. 오후 7:17, ntg-

Re: [NTG-context] Define color with calculations

2019-02-18 Thread Mohammad Hossein Bateni
\starttext > > \color[mycolor]{Hello!} > > \stoptext > > > > On 18/02/19 4:37 PM, Mohammad Hossein Bateni wrote: > > Hi, > > > > When I use definecolor, (how) can I use computations in setting the value > > of a component? Something lik

[NTG-context] Define color with calculations

2019-02-17 Thread Mohammad Hossein Bateni
Hi, When I use definecolor, (how) can I use computations in setting the value of a component? Something like the following... \definecolor[mycolor][r=0.5*0.7] Thanks, ~MHB ___ If your question is of interest to othe

[NTG-context] mix two-column and single-column footnotes

2019-02-16 Thread Mohammad Hossein Bateni
Hi, Is it possible to mix two-column and single-column footnotes? Here's my use case. I have two types of footnotes: 1) short one- or two-word terms 2) long descriptions and notes On some pages there are a lot of "short" footnotes which take up a lot of space at the bottom of the page. I'd lik

Re: [NTG-context] 404 error: Not found for first-setup.sh

2019-02-08 Thread Mohammad Hossein Bateni
I ran into the same issue two days ago, where "curl -O" worked while "wget" did not. On Fri, Feb 8, 2019 at 1:51 PM Marcus Vinicius Mesquita < marcusvinicius.mesqu...@gmail.com> wrote: > Hi, Pablo > > Indeed, with curl I was able to download the file. Thank you. > > In the wiki page about ConTeXt

Re: [NTG-context] setupdirections RTL bug

2019-02-05 Thread Mohammad Hossein Bateni
J gets the long direction. For example, if I have A+ZWNJ+B (logical), visually I should get "B+ZWNJ+A" but I don't. It works correctly with SPC in place of ZWNJ. On Tue, Feb 5, 2019 at 7:30 AM Hans Hagen wrote: > On 2/5/2019 12:36 AM, Mohammad Hossein Bateni wrote: > &

[NTG-context] setupdirections RTL bug

2019-02-04 Thread Mohammad Hossein Bateni
Hello, This is perhaps *related* to what Alan Bowen reported. Not the same, since I don't get compilation errors. Here's a MWE. See explanation of bad behavior below. \setupdirections[bidi=global,method=one] \definefont[Ar][dejavusans*arabic] \setupfootertexts[\setups{L}][\setups{R}] \sta

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-15 Thread Mohammad Hossein Bateni
I guess it works fine for me on beta 2019.01.07 16:10. On Tue, Jan 15, 2019 at 8:37 AM Taco Hoekwater wrote: > Hi, > > Quick explanation: I am trying to implement the concept of the HTML > tag, > which is supposed to be like a font switch, but doing underlining. I have > a > bunch of french cli

Re: [NTG-context] How to configure context command in Emacs

2018-10-24 Thread Mohammad Hossein Bateni
I have a hacky solution, which I haven't tested in a while. Make a shell script called "mycontext" somewhere in the PATH. Include the following in it: #!/bin/bash . ~/context/tex/setuptex context $@ Make it executable. And then use "mycontext" as the TeX command inside emacs. For example, y

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Mohammad Hossein Bateni
works for me. I have macbook pro (mid 2015) running High Sierra 10.13.6. I guess, you should try to ping or traceroute to contextgarden.net from terminal. the IP is different for www.contextgarden.net, which is probably what the browser looks for. On Fri, Sep 7, 2018 at 10:43 AM Hans van der Mee

Re: [NTG-context] bidi in footnotes

2018-06-21 Thread Mohammad Hossein Bateni
but that's life. ‪On Thu, Jun 21, 2018 at 8:22 AM ‫Idris Samawi Hamid ادريس سماوي حامد‬‎ < idris.ha...@colostate.edu> wrote:‬ > Salaam, Mohammad Hossein, Otared, > > On Wed, 20 Jun 2018 15:27:56 -0600, Mohammad Hossein Bateni > wrote: > > > \startsetu

Re: [NTG-context] bidi in footnotes

2018-06-20 Thread Mohammad Hossein Bateni
maybe something like this would help: \startsetups[bidi:footnotes] \setupdirections[bidi=on] \stopsetups \setupnotes[footnote][setups=bidi:footnotes] but I did not test it now. ‪On Wed, Jun 20, 2018 at 5:26 PM ‫Idris Samawi Hamid ادريس سماوي حامد‬‎ < idris.ha...@colostate.edu> wrote:‬ > Dear ga

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

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] 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] 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] 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] 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

[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] 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

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

[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] 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

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 > > ___

[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] 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

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] 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] 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] 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] 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] 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-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] 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
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

[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,

[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

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

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, > >

[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] 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

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] 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
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

[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] 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

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

[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] 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] 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] 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

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

[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

[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 > >

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] \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] 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

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] 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

[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] \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

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

[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

[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

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] \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

[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] 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

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

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] 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] 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] RTL-related bug in \startcolumns

2016-05-12 Thread Mohammad Hossein Bateni
; sectioning > section @ level 3 : 0.0.2 -> Second I am surprised that the numbering is reverse; could this be due to the direction=left option? Then, what is the right option to use for right-to-left columns? Thanks, ~MHB On Sat, Apr 30, 2016 at 5:50 PM, Mohammad Hossein Bateni wrote: > H

Re: [NTG-context] [OT] Full-width justification (xkcd)

2016-05-09 Thread Mohammad Hossein Bateni
I once converted part of the xepersian package dealing with Kashida to ConTeXt (on LuaTeX). Being a newcomer, the result wasn't that great, though it did work for many situations. In a couple of weeks, I will have time to clean it up a bit and share with anyone who's interested. —MHB On Mon, Ma

[NTG-context] Autogenerating a module's documentation

2016-05-01 Thread Mohammad Hossein Bateni
Hello list, Has anyone managed to generate documentation for lua files recently? According to wiki/Module , something like the following should work: context --ctx=x-ldx core-con.lua But it only produces core-con.lua.prep and not the PDF file. In fact, it

  1   2   >