ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Idris Samawi Hamid ادريس سماوي حامد via ntg-context" <ntg-context@ntg.nl>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Cc: "Idris Samawi Hamid ادريس سماوي حامد" <Idris.Hamid@colostate.edu>
Subject: Re: LMTX error processing Adobe Arabic Naskh font
Date: Wed, 10 Nov 2021 09:04:19 -0700	[thread overview]
Message-ID: <op.1cnf9htgejo439@desktop-mt1m160> (raw)
In-Reply-To: <op.1cnf2904ejo439@desktop-mt1m160>

[-- Attachment #1: Type: text/plain, Size: 4518 bytes --]

For III: See attached!

On Wed, 10 Nov 2021 09:00:26 -0700, Idris Samawi Hamid ادريس سماوي حامد  
<Idris.Hamid@colostate.edu> wrote:

> Dear Hans and gang,
>
> Consider the following MWE:
>
> ==============
> \definefont[ARABICFONT][file:Adobe_Naskh.ttf*arabic at 28pt]
> % \definefont[ARABICFONT][file:Amiri-Regular_0.ttf*arabic at 28pt]
> % \definefont[ARABICFONT][file:Scheherazade-Regular.ttf*arabic at 28pt]
> % \definefont[ARABICFONT][file:UthmanTN1_Ver10.otf*arabic at 28pt]
> % \definefont[ARABICFONT][file:almfixed.otf*arabic at 28pt]
>
> \disabledirectives[filters.utf.reorder]
> \noheaderandfooterlines
>
> \setupwhitespace[big]
> % \setupinterlinespace[line=4.2ex]
>
> \starttext
> % \startTEXpage[offset=1ex]
> \setupdirections[bidi=global,method=one]
> \righttoleft
> \ARABICFONT
>
> خَ‍ % a
>
> خَل
>
> % \stopTEXpage
> \stoptext
> ==============
>
> Three bugs:
>
> I. If we use start|stoptex and comment start|stopTeXpage, then both  
> lines 19 and 21 give an error:
>
> =======
> tex error       > tex error on line 20 in file ./test.tex:
>
> lua error:
>
> 	callback error: [string  
> "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: attempt to  
> index a number value (local 'chainstep')
> stack traceback:
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: in  
> upvalue 'chainrun'
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in  
> function <[string  
> "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2514>
> 	(...tail calls...)
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2065: in  
> upvalue 'chainrun'
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in  
> local 'handler'
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:3999: in  
> field '?'
> 	...eXt/tex/texmf-context/tex/context/base/mkxl/node-fnt.lmt:459: in  
> upvalue 'nodes_handlers_characters'
> 	[string "local tonut  = nodes.tonut..."]:23: in function <[string  
> "local tonut  = nodes.tonut..."]:12>
> 	(...tail calls...)	
>
> 10     \setupwhitespace[big]
> 11     % \setupinterlinespace[line=4.2ex]
> 12
> 13     \starttext
> 14     % \startTEXpage[offset=1ex]
> 15     \setupdirections[bidi=global,method=one]
> 16     \righttoleft
> 17     \ARABICFONT
> 18
> 19     خَ‍
> 20 >>
> 21     خَل
> 22
> 23     % \stopTEXpage
> 24     \stoptext
> =======
>
> Comment line 19 and yu will get virtually the same error.
>
> II. Using start|stopTeXpage, only line 21 gives the error:
>
> =======
> tex error       > tex error on line 22 in file ./test.tex:
>
> lua error:
>
> 	callback error: [string  
> "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: attempt to  
> index a number value (local 'chainstep')
> stack traceback:
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2058: in  
> upvalue 'chainrun'
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in  
> function <[string  
> "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2514>
> 	(...tail calls...)
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2065: in  
> upvalue 'chainrun'
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:2941: in  
> local 'handler'
> 	[string "C:/ConTeXt/tex/texmf-context/tex/context/base..."]:3999: in  
> field '?'
> 	...eXt/tex/texmf-context/tex/context/base/mkxl/node-fnt.lmt:459: in  
> upvalue 'nodes_handlers_characters'
> 	[string "local tonut  = nodes.tonut..."]:23: in function <[string  
> "local tonut  = nodes.tonut..."]:12>
> 	(...tail calls...)	
>
> 12
> 13     % \starttext
> 14     \startTEXpage[offset=1ex]
> 15     \setupdirections[bidi=global,method=one]
> 16     \righttoleft
> 17     \ARABICFONT
> 18
> 19     خَ‍ % a
> 20
> 21     خَل
> 22 >>
> 23     \stopTEXpage
> 24     % \stoptext
> =======
>
> III Let us switch to almfixed:
>
> If you comment line 21 and use only line 19, then there is no tex error,  
> but the result is rendered incorrectly - see test-broken.pdf.
>
> For the correct result, see test-correct.pdf (add a space and any letter  
> - uncomment the end of line 19).
>
> Adobe Naskh is not publicly available. The four commented fonts are  
> publicly available and generate no tex errors.
>
> Best wishes
> Idris


-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

[-- Attachment #2: test-broken.pdf --]
[-- Type: application/pdf, Size: 5673 bytes --]

[-- Attachment #3: test-correct.pdf --]
[-- Type: application/pdf, Size: 5818 bytes --]

[-- Attachment #4: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2021-11-10 16:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-10 16:00 Idris Samawi Hamid ادريس سماوي حامد via ntg-context
2021-11-10 16:04 ` Idris Samawi Hamid ادريس سماوي حامد via ntg-context [this message]
2021-11-13 23:13 ` Idris Samawi Hamid ادريس سماوي حامد via ntg-context

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=op.1cnf9htgejo439@desktop-mt1m160 \
    --to=ntg-context@ntg.nl \
    --cc=Idris.Hamid@colostate.edu \
    /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).