Hi, I uploaded a new version but best first read this because some is experimental and i need to sycn with those involved, so thereofre the uplaod (too many files involved): Indic: - We added indic language patterns ad well as defined the languages but labels are on the todo as are conversions; kauśika is working on this - We also added a tweak to deal with a certain class of indic fonts; there will be a more detailed report about the why and how by kauśika - So, Indic should work as before but with more dedicated support coming. Math: - Mikael and I are stepwise going over the math machinery: constructs, spacing etc in the perspective of what luametatex provided. - We think we can improve spacing (more consistent) but it needs some work and testing. Some gets shifted from engine heuristics to predictable control. - There will be a 'traditional swedish' spacing variant, also as an exaple of how users can finetune and adapt to the math culture they like. (I will likely make one for educational purpose). - All this is done by some fundamental extensions to the math engine (on top of all the already present configurability) but hopefully without side effects. Rest: - I added a few features discussed on the list (itemize and such) which I let others explain (omn the wiki). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
- We added indic language patterns ad well as defined the languages but labels are on the todo as are conversions; kauśika is working on
Perhaps the following notes are useful. 1. The simplest way, and what I was talking about, is to write and print Sanskrit in transliteration. ānandaḥ -> ānandaḥ 2. Then we can of course write and print the same word in the usual Indian Script (Devanāgarī) आनन्दः -> आनन्दः 3. But for academic use, one wants an input in roman (e-text are usually in roman), and the option to have an output in Devanāgarī) ānandaḥ -> आनन्दः For this an option with the transliterator would be required, I guess(?) Theoretically one could write Sanskrit in many scripts -- it has been written with many Indian scripts in history --, but I am wondering about the practical value of this. For imitating historic prints it would no doubt be nice, but not urgent. I was not aware of the hyphenation patterns by Yves Codet, if they work, they would cover case 1 and 2. And I just heard from a colleague that the latest babel version is incorporating a Sanskrit option that might cover the same ground (I am not sure whether this is useful). Thanks a lot! I just have to learn more about ConTeXt to able to use it:) --- Prof. Dr. Juergen Hanneder Philipps-Universitaet Marburg FG Indologie u. Tibetologie Deutschhausstr.12 35032 Marburg Germany Tel. 0049-6421-28-24930 hanneder@staff.uni-marburg.de
On 1/15/2022 12:33 PM, hanneder--- via ntg-context wrote:
- We added indic language patterns ad well as defined the languages but labels are on the todo as are conversions; kauśika is working on
Perhaps the following notes are useful.
1. The simplest way, and what I was talking about, is to write and print Sanskrit in transliteration.
ānandaḥ -> ānandaḥ
2. Then we can of course write and print the same word in the usual Indian Script (Devanāgarī)
आनन्दः -> आनन्दः
3. But for academic use, one wants an input in roman (e-text are usually in roman), and the option to have an output in Devanāgarī)
ānandaḥ -> आनन्दः
For this an option with the transliterator would be required, I guess(?)
Theoretically one could write Sanskrit in many scripts -- it has been written with many Indian scripts in history --, but I am wondering about the practical value of this. For imitating historic prints it would no doubt be nice, but not urgent.
I was not aware of the hyphenation patterns by Yves Codet, if they work, they would cover case 1 and 2. And I just heard from a colleague that the latest babel version is incorporating a Sanskrit option that might cover the same ground (I am not sure whether this is useful).
Thanks a lot! I just have to learn more about ConTeXt to able to use it:)
does the attached sort of what you want Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Just came across a weird behavior with the latest upload. The following doesn't print as it should \startformula 4^{2x} - 4^x - 25 = 0 \stopformula I don't think it's normal (I see the spacing to make room for anything that comes after the first character in the exposant, but it is not printed). Le sam. 15 janv. 2022 à 13:31, Hans Hagen via ntg-context < ntg-context@ntg.nl> a écrit :
On 1/15/2022 12:33 PM, hanneder--- via ntg-context wrote:
- We added indic language patterns ad well as defined the languages but labels are on the todo as are conversions; kauśika is working on
Perhaps the following notes are useful.
1. The simplest way, and what I was talking about, is to write and print Sanskrit in transliteration.
ānandaḥ -> ānandaḥ
2. Then we can of course write and print the same word in the usual Indian Script (Devanāgarī)
आनन्दः -> आनन्दः
3. But for academic use, one wants an input in roman (e-text are usually in roman), and the option to have an output in Devanāgarī)
ānandaḥ -> आनन्दः
For this an option with the transliterator would be required, I guess(?)
Theoretically one could write Sanskrit in many scripts -- it has been written with many Indian scripts in history --, but I am wondering about the practical value of this. For imitating historic prints it would no doubt be nice, but not urgent.
I was not aware of the hyphenation patterns by Yves Codet, if they work, they would cover case 1 and 2. And I just heard from a colleague that the latest babel version is incorporating a Sanskrit option that might cover the same ground (I am not sure whether this is useful).
Thanks a lot! I just have to learn more about ConTeXt to able to use it:)
does the attached sort of what you want
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------___________________________________________________________________________________ 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
___________________________________________________________________________________
On 1/15/2022 3:52 PM, Alexandre Christe via ntg-context wrote:
Just came across a weird behavior with the latest upload.
The following doesn't print as it should \startformula 4^{2x} - 4^x - 25 = 0 \stopformula
I don't think it's normal (I see the spacing to make room for anything that comes after the first character in the exposant, but it is not printed). i'll fix it ...
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hi Hans I just updated lmtx and this macro does not work although it did before. On the other hand, no problem with context. Thanks. Fabrice \protected\def\e#1{\math{{\rm e}^{#1}}\autoinsertnextspace} \starttext \startformula \e{a+b} \stopformula \stoptext Le sam. 15 janv. 2022 à 16:14, Hans Hagen via ntg-context < ntg-context@ntg.nl> a écrit :
On 1/15/2022 3:52 PM, Alexandre Christe via ntg-context wrote:
Just came across a weird behavior with the latest upload.
The following doesn't print as it should \startformula 4^{2x} - 4^x - 25 = 0 \stopformula
I don't think it's normal (I see the spacing to make room for anything that comes after the first character in the exposant, but it is not printed). i'll fix it ...
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
___________________________________________________________________________________ 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
___________________________________________________________________________________
On 1/15/2022 4:16 PM, Fabrice Couvreur via ntg-context wrote:
Hi Hans I just updated lmtx and this macro does not work although it did before. On the other hand, no problem with context. Thanks. Fabrice
\protected\def\e#1{\math{{\rm e}^{#1}}\autoinsertnextspace}
\starttext \startformula \e{a+b} \stopformula \stoptext if the test suite doesn't crash (i only test that) i'll upload ... it has to do with decoupling some in the engine: tex uses lots of shifting, cheating on dimensions and displacements that relate to (older) fonts and for the purpose of tracing i changed some ... so we're seeing a side effect of that
for a while we already have this: \tracingmath2\tracingonline2 just to give an idea what enters tex's math machinery 5:7: > \inlinemath= 5:7: \displaystyle 5:7: \mathord 5:7: .\nucleus 5:7: ..\mathchar (fam="0,char="65) 5:7: .\superscript 5:7: ..\mathlist 5:7: ...\mathord 5:7: ....\nucleus 5:7: .....\mathchar (fam="0,char="61) 5:7: ...\mathbin 5:7: ....\nucleus 5:7: .....\mathchar (fam="0,char="2B) 5:7: ...\mathord 5:7: ....\nucleus 5:7: .....\mathchar (fam="0,char="62) i'll upload a fixed version fwiw: \frac and friends are currently being redone; for that we now have a frac class (as well as rad), so \mathfrac{...} \mathrad{...} in addition to \mathord etc other new things are \beginmathgroup ... \endmathgroup that permits better local settings without messing up the spacing due to classes and we have dozens more spacing class variables ... all waiting to be used (some features are already there for more than a year but now get used in low level code, which is why we can expect some instabilities) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 1/15/2022 3:52 PM, Alexandre Christe via ntg-context wrote:
Just came across a weird behavior with the latest upload.
The following doesn't print as it should \startformula 4^{2x} - 4^x - 25 = 0 \stopformula
I don't think it's normal (I see the spacing to make room for anything that comes after the first character in the exposant, but it is not printed).
to get an idea about default and additional spacing in tex ... \starttext \startbuffer \dontleavehmode\ruledhbox{$x^2 + x$}\par \dontleavehmode\ruledhbox{$x_2 + x$}\par \dontleavehmode\ruledhbox{$x^^2 + x$}\par \dontleavehmode\ruledhbox{$x__2 + x$}\blank \stopbuffer \startTEXpage[offset=3pt] \getbuffer \Umathspaceafterscript \textstyle0pt \Umathspacebeforescript\textstyle0pt \getbuffer \Umathextrasupspace \textstyle20pt \Umathextrasubspace \textstyle40pt \Umathextrasupprespace \textstyle10pt \Umathextrasubprespace \textstyle30pt \getbuffer \stopTEXpage \stoptext so by default there is space added to scripts (more in latin modern than in cmr btw as it is font driven) but one can argue if that makes sense at all ... this is why we might default to zero font spacing and specific super/subscript spacing instead (just as in lmtx we have prescripts and related (fake opentype) spacing) in a similar fashion there is built-in pre/post fraction spacing that makes that we cannot have tight fractions (by default) while in fact that has to be driven by proper fraction-class spacing so that's another thing that might happen: tight fractions + proper interclass spacing (because we have less memory constraints than when tex showed up we can add classes without overhead) (i bet that due to a 'tex does perfect math syndrome' these thinsg go unnoticed (not by DEK himself, just look at the chapters on finetunign math) ... some of it is also compensate for the width-of-glyph cheating that goes on in the traditional engine but that is another matter Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
MWE: \definelabel[xx][headcolor=red] \starttext ab\xx \stoptext fails, reporting in log: tex error > tex error on line 4 in file G:/Desktop/mwe.tex: ! Undefined control sequence <argument> \c!symbolcolor \labelparameter #1->\csname \ifcsname \??labels \currentlabel :#1 \endcsname \??labels \currentlabel :#1\else \expandafter \dolabelparentparameter \csname \??labels \currentlabel :\s!parent \endcsname {#1}\fi \endcsname \useconstructionstyleandcolor ...pty \else \dousecurrentstyleparameter \fi \edef \currentcolorparameter {\labelparameter {#2} MkIV only, no problem in LMTX. -- Rik
On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote:
MWE:
\definelabel[xx][headcolor=red] \starttext ab\xx \stoptext
fails, reporting in log:
tex error > tex error on line 4 in file G:/Desktop/mwe.tex: ! Undefined control sequence
<argument> \c!symbolcolor
\labelparameter #1->\csname \ifcsname \??labels \currentlabel :#1 \endcsname \??labels \currentlabel :#1\else \expandafter \dolabelparentparameter \csname \??labels \currentlabel :\s!parent \endcsname {#1}\fi \endcsname \useconstructionstyleandcolor ...pty \else \dousecurrentstyleparameter \fi \edef \currentcolorparameter {\labelparameter {#2}
MkIV only, no problem in LMTX. replace by \c!numbercolor and remake the format
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 2022-01-15 14:29, Hans Hagen wrote:
On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote:
MWE:
\definelabel[xx][headcolor=red] \starttext ab\xx \stoptext
fails, reporting in log:
tex error > tex error on line 4 in file G:/Desktop/mwe.tex: ! Undefined control sequence
<argument> \c!symbolcolor
\labelparameter #1->\csname \ifcsname \??labels \currentlabel :#1 \endcsname \??labels \currentlabel :#1\else \expandafter \dolabelparentparameter \csname \??labels \currentlabel :\s!parent \endcsname {#1}\fi \endcsname \useconstructionstyleandcolor ...pty \else \dousecurrentstyleparameter \fi \edef \currentcolorparameter {\labelparameter {#2}
MkIV only, no problem in LMTX. replace by \c!numbercolor and remake the format
This is still (or perhaps once again) a problem using the latest MkIV (context --luatex). -- Rik
Hi Rik, In the interim you can change one more occurrence of "symbolcolor" in line 317: https://github.com/reviczky/context-mirror/commit/f4bfe0baaeb4bdcc6b8098de6e... Adam On Wed, Jan 19, 2022 at 5:31 PM Rik Kabel via ntg-context < ntg-context@ntg.nl> wrote:
On 2022-01-15 14:29, Hans Hagen wrote:
On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote:
MWE:
\definelabel[xx][headcolor=red] \starttext ab\xx \stoptext
fails, reporting in log:
tex error > tex error on line 4 in file G:/Desktop/mwe.tex: ! Undefined control sequence
<argument> \c!symbolcolor
\labelparameter #1->\csname \ifcsname \??labels \currentlabel :#1 \endcsname \??labels \currentlabel :#1\else \expandafter \dolabelparentparameter \csname \??labels \currentlabel :\s!parent \endcsname {#1}\fi \endcsname \useconstructionstyleandcolor ...pty \else \dousecurrentstyleparameter \fi \edef \currentcolorparameter {\labelparameter {#2}
MkIV only, no problem in LMTX. replace by \c!numbercolor and remake the format
This is still (or perhaps once again) a problem using the latest MkIV (context --luatex).
-- Rik
___________________________________________________________________________________ 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
___________________________________________________________________________________
On 1/19/2022 6:29 PM, Rik Kabel wrote:
This is still (or perhaps once again) a problem using the latest MkIV (context --luatex). not twice a day upload for something like that -)
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (6)
-
Adam Reviczky
-
Alexandre Christe
-
Fabrice Couvreur
-
hanneder@staff.uni-marburg.de
-
Hans Hagen
-
Rik Kabel