[NTG-context] Re: Using plain TeX commands in ConTeXt

2024-01-24 Thread Hamid,Idris
Hi Shiv, -- Original Message -- From "Shiv Shankar Dayal" mailto:shivshankar.da...@gmail.com>> To "mailing list for ConTeXt users" mailto:ntg-context@ntg.nl>> Date 1/24/2024 9:44:09 AM Subject [NTG-context] Re: Using plain TeX commands in ConTeXt ** Caution: EXTERNAL Sender ** Yes.

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
on: EXTERNAL Sender ** Am 24.10.23 um 15:33 schrieb Hamid,Idris: Hi Otared, Many thanks. Could you kindly open the pdf I sent as well? How does that look? Here, on Windows 11, the bars do not appear on sumatra, adobe, or nitropdf. I checked on MacOS with Preview, Acrobat Pro and PDF Studio – no

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
Hi Otared, Many thanks. Could you kindly open the pdf I sent as well? How does that look? Here, on Windows 11, the bars do not appear on sumatra, adobe, or nitropdf. Best wishes Idris -- Original Message -- From "Otared Kavian" mailto:ota...@gmail.com>> To "Hamid,I

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
ERNAL Sender ** On 10/24/2023 1:39 PM, Hamid,Idris wrote: -- Original Message -- From "Hamid,Idris" mailto:idris.ha...@colostate.edu><mailto:idris.ha...@colostate.edu>> To "mailing list for ConTeXt users" mailto:ntg-context@ntg.nl><mailto:n

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
-- Original Message -- From "Hamid,Idris" mailto:idris.ha...@colostate.edu>> To "mailing list for ConTeXt users" mailto:ntg-context@ntg.nl>> Date 10/23/2023 6:24:38 PM Subject [NTG-context] sidebar and marginrule not working Dear gang, The appears to be

[NTG-context] sidebar and marginrule not working

2023-10-23 Thread Hamid,Idris
Dear gang, The appears to be something wrong with the sidebar and marginrule mechanisms. MWE: == % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-23 Thread Hamid,Idris
-- Original Message -- From "Hans Hagen via ntg-context" mailto:ntg-context@ntg.nl>> To "ntg-context@ntg.nl" mailto:ntg-context@ntg.nl>> Cc "Hans Hagen" mailto:j.ha...@freedom.nl>> Date 9/22/2023 10:44:38 AM Subject [NTG-context] Re: Toggling the symbol for

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
nd related Unicode control characters ** Caution: EXTERNAL Sender ** On 9/22/2023 2:39 PM, Hamid,Idris wrote: b. we want all Unicode control symbols to be suppressed in final pdf output (for, e.g., printing). they basically are unless some font features keeps them around which is out of our c

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
-- Original Message -- From "Hans Hagen" mailto:j.ha...@xs4all.nl>> To "ntg-context@ntg.nl" mailto:ntg-context@ntg.nl>> Date 9/22/2023 7:03:34 AM Subject [NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hamid,Idris
-- Original Message -- From "Hans Hagen via ntg-context" mailto:ntg-context@ntg.nl>> To "ntg-context@ntg.nl" mailto:ntg-context@ntg.nl>> Cc "Hans Hagen" mailto:j.ha...@freedom.nl>> Date 9/22/2023 3:53:03 AM Subject [NTG-context] Re: Toggling the symbol for

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris
-- Original Message -- From "Hans Hagen" mailto:j.ha...@xs4all.nl>> To "Hamid,Idris" mailto:idris.ha...@colostate.edu>>; "mailing list for ConTeXt users" mailto:ntg-context@ntg.nl>> Date 9/21/2023 3:29:22 PM Subject Re: [NTG-context] R

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris
nd related Unicode control characters ** Caution: EXTERNAL Sender ** On 9/21/2023 3:31 PM, Hamid,Idris wrote: Dear gang, Within a font, relevant Unicode control characters such as the zero-width joiner usually have symbolic representation, but in printing the symbols are usually suppress

[NTG-context] Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris
Dear gang, Within a font, relevant Unicode control characters such as the zero-width joiner usually have symbolic representation, but in printing the symbols are usually suppressed, while the effect of each character is maintained. In some text editors, such as Windows Notepad (Uniscribe),

[NTG-context] Re: streams reversed?

2023-09-15 Thread Hamid,Idris
Hi Julian, Am also interested in this matter (and played a bit with the code you provided); one suspects that others are as well. Based on past experience, can affirm that it's sometimes time-consuming, even a pain, to produce an MWE to reproduce the relevant behavior. But it would be well

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-23 Thread Hamid,Idris
Hi Vincent, On Aug 22, 2023, 2:56 PM -0600, Vincent Hennebert , wrote: I don’t know about its quality, but Adobe makes the Source Serif font available under the SIL Open Font License, with 5 optical sizes and 6 weights. I’m working on a typescript file that allows to use all those variants, would

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hamid,Idris
On Aug 22, 2023, 10:21 AM -0600, Hans Hagen , wrote: Also, some of these commercial licenses have become pretty restrictive. With respect to spending time on something, the same is true for some tools: supporting acrobat, fonts, specific file formats, features etc ... one way tickets ... if we

[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hamid,Idris
On Aug 22, 2023, 2:06 AM -0600, Hans Hagen via ntg-context , wrote: On 8/22/2023 6:31 AM, Hamid,Idris wrote: Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, p. 109: You ca

[NTG-context] Fallbacks for design sizes in the current typescripts regime

2023-08-21 Thread Hamid,Idris
Dear gang, Design sizes for typefaces -- aka "optical sizes" -- are no longer directly implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, p. 109: "at some point the decision was made to kick out these definitions and move the burden of figuring out the right size

[NTG-context] Re: Inconsistent behavior: \addfontfeature and CLD local function

2023-08-20 Thread Hamid,Idris
Ok, understood. Thank you for the explanation. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 On Aug 20, 2023, 9:45 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/20/2023 5:33 PM, Hamid,Idris wrote

[NTG-context] Inconsistent behavior: \addfontfeature and CLD local function

2023-08-20 Thread Hamid,Idris
Dear gang, For \addfeature and the like, a virtual font feature defined in terms of a CLD local function behaves differently from other font features. MWE: == \startluacode local function squeeze(tfmdata) for k, v in next, tfmdata.characters do v.width = 1.75 * (v.height

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
University Fort Collins, CO 80523 On Aug 19, 2023, 1:14 PM -0600, Hamid,Idris , wrote: On Aug 19, 2023, 1:01 PM -0600, Wolfgang Schuster , wrote: ** Caution: EXTERNAL Sender ** Hamid,Idris schrieb am 19.08.2023 um 20:36: Many thanks. From font-pre.mkiv: \definealternativestyle [\v!smallcaps

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
On Aug 19, 2023, 1:01 PM -0600, Wolfgang Schuster , wrote: ** Caution: EXTERNAL Sender ** Hamid,Idris schrieb am 19.08.2023 um 20:36: Many thanks. From font-pre.mkiv: \definealternativestyle [\v!smallcaps] [\setsmallcaps] [\setsmallcaps] : \unexpanded\def\setsmallcaps{\doaddfeature{f:smallcaps

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
NAL Sender ** On 8/19/23 16:03, Hamid,Idris wrote: [...] Yes, there is an easy workaround: \definefontfeature[smallcaps][smcp=yes] Hi Idris, just a minor comment. This is already defined in lines 96-99 of font-pre.mkxl: \definefontfeature [smallcaps] [always] [smcp=yes] And also in lines 77-

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
users should no longer use it. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 On Aug 19, 2023, 9:26 AM -0600, Wolfgang Schuster , wrote: ** Caution: EXTERNAL Sender ** Hamid,Idris schrieb am 19.08.2023 um 16:03: Dear

[NTG-context] Applying \sc for smallcaps across styles

2023-08-19 Thread Hamid,Idris
Dear gang, Consider the following typescript template: \definefontfeature [myfont-tf-sc] [mode=node,script=latn,language=dflt,trep=no, protrusion=quality,expansion=quality, compose=yes,combine=yes,tlig=yes, kern=yes,liga=yes,onum=yes,cpsp=yes,smcp=yes, % smcp activie trnsl=force]

[NTG-context] Re: Some very simple cld - loading a module

2023-08-18 Thread Hamid,Idris
: EXTERNAL Sender ** Hamid,Idris schrieb am 18.08.2023 um 17:30: Dear gang, The following, simple MWE gives an undefined control sequence error: === % \usemodule[translate] % \enableinputtranslation \startluacode -- context.usemodule({translate}) context.usemodule{translate} context.usemodule

[NTG-context] Some very simple cld - loading a module

2023-08-18 Thread Hamid,Idris
Dear gang, The following, simple MWE gives an undefined control sequence error: === % \usemodule[translate] % \enableinputtranslation \startluacode -- context.usemodule({translate}) context.usemodule{translate} context.enableinputtranslation() context.darkgreen() \stopluacode

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
, Hamid,Idris wrote: so [\s!designsize=\s!auto] means there is no explicit call to lmroman8-regular etc.? Interesting.. check the lfg file ... ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
On Aug 15, 2023, 8:56 AM -0600, Hans Hagen , wrote: > afaik mkiv always had modern as default an dnot the designsize > typescript (after all, we only have math 10pt) From font-pre.mkiv: %D By default we load the Computer Modern Roman fonts (but %D not yet at this moment) and activate the 12pt

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
On Aug 15, 2023, 8:09 AM -0600, Hans Hagen , wrote: > yes, but there are also typescript that define the sizes (made more > sense on low res printers) .. the current defaults have been so for many > years (so the fact that you didn't notice ...) Maybe I forgot about it.. I seem to remember a

[NTG-context] Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
Dear gang, It seems that ConTeXt does not currently implement optical scaling for Latin Modern -- at least not by default. For example: === \startTEXpage[offset=1em] Test {\tfa Test} {\tfb Test} {\tfc Test} {\tfd Test} {\tfx Test} {\tfxx Test} \stopTEXpage === In the log we have

[NTG-context] Font switching, default features, and a request

2023-08-13 Thread Hamid,Idris
Dear gang, Consider the following example: == \setupdirections[bidi=global,method=one] \startTEXpage[offset=1em,width=14in] \definedfont[almfixed*arabic] \switchtobodyfont[almfixed*arabic] \switchtobodyfont[almfixed] % \addff{arabic} \startbuffer[] \startlines الثَّعْلَبُ

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
On Aug 12, 2023, 4:20 PM -0600, Hans Hagen , wrote: > btw, no need for squeezine as there are virtual commands for scaling; not for > rotating From your original CLD template: local function topthing(characters,target,base,accent) --if not characters[target] then local data1 =

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
More precise \rlaps for the previous MWE: \hbox{\rlap{\ruledhbox {\transparentgreen\tfx c\symbol{glottalhamzah}c}}% \hskip-.075em \ruledhbox {\transparentred c\symbol{glottalhamzah}c}} \hbox{\rlap{\ruledhbox {\transparentgreen\tfx c\symbol{glottalayn}c}}% \hskip-.075em

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
On Aug 12, 2023, 3:49 PM -0600, Hans Hagen , wrote: > you'll figure it out, right? I hope so and I'm working on it -- with your help -) > the demo shows both: x/.y scaling and 90/180/270 rotation Yes, here is what I have so far: == % % Hans' original template % \startsetups

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
een levels of reply appears to get lost when filtered by the ntg-context list (looking at the archives). So here it is again, with levels of reply made explicit: On Aug 12, 2023, 9:35 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/12/2023 4:03 PM, Hamid,Idris wrote: >> \t

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
On Aug 12, 2023, 9:35 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/12/2023 4:03 PM, Hamid,Idris wrote: \tfx causes a switch to computer modern. Indeed. Something I need to discuss with Wolfgang as double checking is needed before I patch. Ah.. ok. But what if we want

[NTG-context] Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
Dear gang, I. In Context, as is well known, scaling a character is not independent of switching the font: === \startTEXpage[offset=1em] \definefont[Times][times @ 14pt] \Times Test \tfx Test \setupinterlinespace \Times Test \switchtobodyfont[x]Test \Times Test \high{Test} \stopTEXpage

[NTG-context] Re: ideas for ConTeXt stickers?

2023-08-07 Thread Hamid,Idris
Dear gang, Henning, That sample is... both culturally tasteless and aesthetically unpleasing. Why not build on one of Duane Bibby's classic lions? -) Best wishes -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 On Aug 7, 2023, 1:36 PM

[NTG-context] Re: \defineactivecharacter in LMTX + composing characters

2023-08-02 Thread Hamid,Idris
On Aug 1, 2023, 10:09 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/1/2023 4:18 PM, Hamid,Idris wrote: Dear gang, It appears that \defineactivecharacter does not work in lmtx: \starttext \defineactivecharacter Ḥ {\d{H}} \defineactivecharacter ḥ {\d{h}} \defineactivecharacter

[NTG-context] \defineactivecharacter in LMTX + composing characters

2023-08-01 Thread Hamid,Idris
Dear gang, It appears that \defineactivecharacter does not work in lmtx: \starttext \defineactivecharacter Ḥ {\d{H}} \defineactivecharacter ḥ {\d{h}} \defineactivecharacter Ṣ {\d{S}} \defineactivecharacter ṣ {\d{s}} \stoptext This should not produce any typeset output but in lmtx it does.

Re: [NTG-context] Forbid footnotes from splitting across pages

2022-08-03 Thread Hamid,Idris via ntg-context
Dear Pablo, Many thanks and apologies for top-posting: my normal email client is currently down. I thought of something similar; after some testing, this is what I finally came up with: \setupwhitespace[medium] \setupnotation[footnote] [before={%

Re: [NTG-context] PDF viewer poll

2019-10-14 Thread Hamid,Idris
Hi Henning, all, On Sun, 13 Oct 2019 04:43:14 -0600, Henning Hraban Ramm wrote: > Hi, I’d like to update my list of (usable!) PDF viewers. > Which one do you use? (Current version?) > What are its pros and cons? > Is it free (open source, freeware)? > Does it work on Win/Lin/Mac? > Does it

[NTG-context] XML Export: Suppressing Presentation Forms in Arabic Script Fonts

2019-06-19 Thread Hamid,Idris
Dear gang, Just documented the following in the wiki: https://wiki.contextgarden.net/Export#Suppressing_Presentation_Forms_in_Arabic_Script_Fonts For those who use certain commercial Arabic-script fonts with XML export: In the course of ConTeXt processing, many standard codepoints from the

Re: [NTG-context] Unicode mathematics in ConTeXt

2019-05-04 Thread Hamid,Idris
text from the pdf, e.g., \CATCA becomes 퓒nt. OTOH, issues 4.i and 4.ii below are still perplexing. Are there any workarounds? Thanks again. Best wishes Idris > Hamid,Idris schrieb am 03.05.2019 um 21:40: >> Dear gang, >> >> Ok, I've made some progress: >> >> 1. tex-

Re: [NTG-context] Unicode mathematics in ConTeXt

2019-05-03 Thread Hamid,Idris
combination in ConTeXt whose output can be copied and pasted to an editor and give the correct result? What am I missing? Thank you in advance. Best wishes Idris On Wed, 01 May 2019 14:58:06 -0600, Hamid,Idris wrote: > Dear gang, > > I need to convert a document from TeX-style t

[NTG-context] Unicode mathematics in ConTeXt

2019-05-01 Thread Hamid,Idris
Dear gang, I need to convert a document from TeX-style to Unicode mathematics. For example: \starttext \def\ANTI{{^{\rm nt}}} \def\CATCA{$\cal \bf C\ANTI$} \CATCA \stoptext Issues: 1. I need calligraphic characters, but the relevant characters in latinmodern-math.otf are not encoded in