[NTG-context] \prime is too high
The following: \starttext $s''$ %or $s^{\prime}$ \stoptext gives a too high symbol in ConTeXt LMTX 2021.05.06 23:35. ConTeXt MkIV isn't affected for such an issue. Jairo ___ 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 ___
[NTG-context] What is the ConTeXt way to handle this \vbox trick?
Dear gang, Consider the following MWE (for a sequential multiple-choice exam), using some old and ugly TeX code: === \setupbodyfont[schola] \noheaderandfooterlines \setupwhitespace[big] \def\CHOICE#1#2{\leavevmode\vbox{\tabskip=0pt\everycr={} \halign{\strut\hfil##\hfil\cr#1\cr#2\cr}}} \starttext (Religion * Biology * Cosmology * Physics) is part of the subject matter of World Philosophies. (Religion * Biology * Cosmology * Physics) is part of the subject matter of World Philosophies. (\CHOICE{1}{Religion}\ * \CHOICE{X}{Biology} * \CHOICE{2}{Cosmology}\ * \CHOICE{X}{Physics}) is part of the subject matter of World Philosophies. \stoptext === Result is attached. Question: What is the most elegant ConTeXt way to get the same result as the above code, with equal or better control? Thank you in advance. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 choice-mwe.pdf Description: Adobe PDF document ___ 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 ___
[NTG-context] underscore hyphenation not working
Hans, some time ago, you provided me with the following code to hyphenate sha with underscore: \startluacode function document.addfunnyhyphen(tfmdata) local underscore = utf.byte("_") local char = tfmdata.characters[underscore] if not char then return end tfmdata.characters[0xFE000] = { width= 0, height = 0, depth= 0, commands = { { "right", -char.width }, { "down", char.depth }, { "slot", 1, underscore }, } } end utilities.sequencers.appendaction("aftercopyingcharacters", "after","document.addfunnyhyphen") local shared = { start = 1, length = 1, before = utf.char(0xFE000), after = nil, left = false, right = false, } local all = table.setmetatableindex({ }, function(t,k) return shared end) languages.hyphenators.traditional.installmethod("sha", function(dictionary,word,n) return all end) \stopluacode \definehyphenationfeatures [sha] [characters=all, alternative=sha, righthyphenchar="FE000] \sethyphenationfeatures[sha]% \setuphyphenation[method=traditional]% \starttext \hsize\zeropoint \tt abcde \stoptext I’m afraid that it isn’t working as expected with current latest from 2021.05.06 23:35. I wonder whether this might be caused by a bug or the code should be adapted to current latest. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] weird word breaking in Win64
On 5/8/2021 1:33 PM, Pablo Rodriguez wrote: This seems to be added by fonts.injections.method=advance. Hm, i need to use an different trick then for a border case (currently a zwj injected). Will do. 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 ___
Re: [NTG-context] weird word breaking in Win64
On 5/8/21 3:58 PM, denis.ma...@ub.unibe.ch wrote: > Looks like I can confirm this... see below. But it seems to depend on your > PDF viewer. Results in Sumatra and Acrobat differ. Many thanks for your confirmation, Denis. With SumatraPDF 3.1.2, I get lines without spaces between words, too. But the wrong extra extra spaces inside some words are wrong even in Acrobat. Of course, I would like not have all correct spaces in SumatraPDF. But the issue in Acrobat may be a bug. Many tha thanks for your help, Pablo > > current version: 2021.05.06 23:35 > > Sumatra > Coming back to the use of typefaces in > electronic publishing: many of the new > typog raphersreceivetheirknowledgeand > infor mation about the rules of typog ra- > phy from books, from com puter mag a- > zines or the instruction manuals which > theygetwiththepurchaseofaPCorsoft- > ware. There is not so much basic instruc- > tion, as of now, as there was in the old > days,showingthedifferencesbetweengood > and bad typographic design. Many peo- > plearejustfascinatedbytheirPC'stricks, > andthinkthatawidely--praisedprogram, > called up on the screen, will make every- > thing automatic from now on. > > Acrobat > > Coming back to the use of typefaces in > electronic publishing: many of the new > typog raphers receive their knowledge and > infor mation about the rules of typog raphy > from books, from com puter mag azines > or the instruction manuals which > they get with the purchase of a PC or software. > There is not so much basic instruction, > as of now, as there was in the old > days, showing the differences between good > and bad typographic design. Many people > are just fascinated by their PC's tricks, > and think that a widely--praised program, > called up on the screen, will make everything > automatic from now on. > -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] weird word breaking in Win64
Looks like I can confirm this... see below. But it seems to depend on your PDF viewer. Results in Sumatra and Acrobat differ. Denis current version: 2021.05.06 23:35 Sumatra Coming back to the use of typefaces in electronic publishing: many of the new typog raphersreceivetheirknowledgeand infor mation about the rules of typog ra- phy from books, from com puter mag a- zines or the instruction manuals which theygetwiththepurchaseofaPCorsoft- ware. There is not so much basic instruc- tion, as of now, as there was in the old days,showingthedifferencesbetweengood and bad typographic design. Many peo- plearejustfascinatedbytheirPC'stricks, andthinkthatawidely--praisedprogram, called up on the screen, will make every- thing automatic from now on. Acrobat Coming back to the use of typefaces in electronic publishing: many of the new typog raphers receive their knowledge and infor mation about the rules of typog raphy from books, from com puter mag azines or the instruction manuals which they get with the purchase of a PC or software. There is not so much basic instruction, as of now, as there was in the old days, showing the differences between good and bad typographic design. Many people are just fascinated by their PC's tricks, and think that a widely--praised program, called up on the screen, will make everything automatic from now on. > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Pablo > Rodriguez > Gesendet: Samstag, 8. Mai 2021 13:33 > An: mailing list for ConTeXt users > Betreff: [NTG-context] weird word breaking in Win64 > > Dear list, > > the following sample breaks some words not right in Win64 (I cannot > reproduce it in Linux): > > \enabledirectives[fonts.injections.method=advance] > \setuppapersize[A6] > \definefontfamily[mainface][rm] > [TeX Gyre Pagella] > \setupbodyfont[mainface] > \starttext > \input zapf > \stoptext > > Copying text from latest Acrobat Reader DC, I get: > > Coming back to the use of typefaces in > electronic publishing: many of the new > typog raphers receive their knowledge and infor mation about the rules of > typog raphy from books, from com puter mag azines or the instruction > manuals which they get with the purchase of a PC or software. > There is not so much basic instruction, as of now, as there was in the old > days, showing the differences between good and bad typographic design. > Many people are just fascinated by their PC's tricks, and think that a > widely-- > praised program, called up on the screen, will make everything automatic > from now on. > > Lines 3-5 contain word breaks that make searching impossible. > > This seems to be added by fonts.injections.method=advance. > > Could anyone on Windows confirm this issue? > > Many thanks for your help, > > Pablo > -- > http://www.ousia.tk > __ > _ > 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 > __ > _ ___ 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 ___
[NTG-context] weird word breaking in Win64
Dear list, the following sample breaks some words not right in Win64 (I cannot reproduce it in Linux): \enabledirectives[fonts.injections.method=advance] \setuppapersize[A6] \definefontfamily[mainface][rm] [TeX Gyre Pagella] \setupbodyfont[mainface] \starttext \input zapf \stoptext Copying text from latest Acrobat Reader DC, I get: Coming back to the use of typefaces in electronic publishing: many of the new typog raphers receive their knowledge and infor mation about the rules of typog raphy from books, from com puter mag azines or the instruction manuals which they get with the purchase of a PC or software. There is not so much basic instruction, as of now, as there was in the old days, showing the differences between good and bad typographic design. Many people are just fascinated by their PC's tricks, and think that a widely--praised program, called up on the screen, will make everything automatic from now on. Lines 3-5 contain word breaks that make searching impossible. This seems to be added by fonts.injections.method=advance. Could anyone on Windows confirm this issue? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 ___