Re: [NTG-context] Change in \vec behavior

2023-01-22 Thread Jean-Philippe Rey via ntg-context
arrow anymore. Here is my example:\starttextEngine: \texenginename\ \texengineversion\ConTeXt: \contextversionnumber\type{$\vec{AB}$} : $\vec{AB}$\stoptextThe result with the latest ConTeXt version: GraphiqueCollé-1.pdf Description: Adobe PDF document and with the version from a year ago: GraphiqueC

Re: [NTG-context] ConTeXt features in pandoc 3

2023-01-20 Thread Pawel Urbanski via ntg-context
mentioned, ** Something Context and accessibility related: Screen readers allow to navigate quickly by element type, for example: heading / list / form elements. Headings are very useful to quickly move around the document but htere is one corner case. Context splits the heading number and headi

[NTG-context] ConTeXt features in pandoc 3

2023-01-20 Thread Albert Krewinkel via ntg-context
to highlight source code. This already worked with HTML, LaTeX, and formats like docx, and is now also supported for ConTeXt. - *Inline code*: older versions of pandoc had some weird behavior wrt inline code in ConTeXt, switching between `\type` and `\mono`, which made it difficult to customize

Re: [NTG-context] question about multimedia renderings

2023-01-16 Thread Pablo Rodriguez via ntg-context
tation(width,height,0,d(),r)) -- save ref -return pdfreference(r) end -- some dictionaries can have a MH (must honor) or BE (best effort) capsule @@ -713,7 +711,7 @@ -- B = start, -- } -- } -local parameters = pdfdictionary {

Re: [NTG-context] question about multimedia renderings

2023-01-15 Thread Michal Vlasák via ntg-context
lose page actions are set to > StartRendering{\currentrendering} and StopRendering{\currentrendering}. > > Just for reference, this is the screen annotation object with the > additional actions dictionary: > > 13 0 obj > << > /Type /Annot > /A <&

[NTG-context] question about multimedia renderings

2023-01-15 Thread Pablo Rodriguez via ntg-context
#G11.2096829) with /PO and /PC entries, when open and close page actions are set to StartRendering{\currentrendering} and StopRendering{\currentrendering}. Just for reference, this is the screen annotation object with the additional actions dictionary: 13 0 obj << /Type /Annot /A <<

Re: [NTG-context] Non-standard font alternatives

2023-01-05 Thread Hans Hagen via ntg-context
On 12/14/2022 11:49 AM, Matthew McCabe wrote: For anyone else looking to do something similar, since the typescript is just a tex file it seems if one places it in one’s local directory it will be accessible when ConTeXt generates the pdf. I saved it as type-imp-roboto.tex in my local

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread 黄复雄 via ntg-context
pt] > > > > \starttext > > > > {\myfont 我我} > > > > \stoptext > > ``` > > > > Then I did not get the correct PDF file, i.e. the two Chinese > > characters are not displayed on it. and the log shows: > > > > ```lo

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread Zdeněk Svoboda via ntg-context
``` Then I did not get the correct PDF file, i.e. the two Chinese characters are not displayed on it. and the log shows: ```log .. fonts > defining > forced type 'otf' of 'NotoSerifCJKsc-Regular' not found 17fonts > defining > unable to define 'NotoSerifCJKsc-Regular.otf' a

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread 黄复雄 via ntg-context
nt[myfont][file:NotoSerifCJKsc-Regular.otf*default at 12pt] \starttext {\myfont 我我} \stoptext ``` Then I did not get the correct PDF file, i.e. the two Chinese characters are not displayed on it. and the log shows: ```log .. fonts > defining > forced type 'otf' of 'NotoSerifCJKsc-Regular' no

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread Willi Egger via ntg-context
intuitive, that always the brackets are placed. Specially while editing \bTABLE … \eTABLE and the commands belonging to this table-type it could be good to have the right arrow key to have the command placed with brackets and with the down-arrow-key the command being placed without brackets

Re: [NTG-context] move glyph vertically

2022-12-22 Thread Pablo Rodriguez via ntg-context
eature { > name = "gpos_test", > type = "single", > data = { > [ '¿' ] = { 0, 400 }, > [ '¡' ] = { 0, 400 }, > } >

Re: [NTG-context] move glyph vertically

2022-12-22 Thread Hans Hagen via ntg-context
On 12/22/2022 12:54 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \startluacode fonts.handlers.otf.addfeature { name = "gpos_test", type = "single", data = {

[NTG-context] move glyph vertically

2022-12-22 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \startluacode fonts.handlers.otf.addfeature { name = "gpos_test", type = "single", data = { [ '¿' ] = 1000, [ '¡' ] = 1000, }

Re: [NTG-context] upload

2022-12-21 Thread Pablo Rodriguez via ntg-context
0.000 mkiv lua stats > hyphenation: 5575 words hyphenated, 1995 unique, used time 0.217 seconds mkiv lua stats > xml load time: 0.022 seconds, 1 files, 1 converted mkiv lua stats > lxml preparation time: 0.063 seconds, 1383 nodes, 659 lpath calls, 506 cached calls mkiv lua stats > in

[NTG-context] Change in \vec behavior

2022-12-18 Thread Jean-Philippe Rey via ntg-context
Hello, As I usually do at the end of each year, I upgraded my ConTeXt installation. I noticed a change in \vec behavior which doesn't extend the arrow anymore. Here is my example: \starttext Engine: \texenginename\ \texengineversion \ConTeXt: \contextversionnumber \type{$\vec{AB}$} : $\vec

Re: [NTG-context] bottlenecks

2022-12-18 Thread Hans Hagen via ntg-context
nt embedding time: 0.104 seconds, 23 fonts mkiv lua stats  > result saved in file: v32.pdf, compresslevel 0, objectcompresslevel 0 mkiv lua stats  > positions: 8572 collected, 4774 deltas, 8565 shared partials, 305 partial entries mkiv lua stats  > used platform: linux-64, ty

Re: [NTG-context] bottlenecks

2022-12-18 Thread mf via ntg-context
a stats  > result saved in file: v32.pdf, compresslevel 0, objectcompresslevel 0 mkiv lua stats  > positions: 8572 collected, 4774 deltas, 8565 shared partials, 305 partial entries mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkiv lua stats  >

Re: [NTG-context] bottlenecks

2022-12-18 Thread mf via ntg-context
lua stats  > pdf annotations: 9336 links (9326 unique), 0 special mkiv lua stats  > font embedding time: 0.049 seconds, 23 fonts mkiv lua stats  > result saved in file: v32.pdf, compresslevel 0, objectcompresslevel 0 mkiv lua stats  > positions: 8563 collected, 4775 deltas, 8556 shar

Re: [NTG-context] bottlenecks

2022-12-17 Thread Alan Braslau via ntg-context
sslevel 3 mkiv lua stats > positions: 2708 collected, 769 deltas, 2645 shared partials, 484 partial entries mkiv lua stats > cross referencing: 13943 identified, 34 unknown mkiv lua stats > used platform: freebsd-amd64, type: unix, binary subtree: texmf-freebsd-amd64 mkiv lua stats >

Re: [NTG-context] bottlenecks

2022-12-17 Thread Hans Hagen via ntg-context
esult saved in file: misquotation_bodyonly.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats  > positions: 4034 collected, 1723 deltas, 4025 shared partials, 111 partial entries mkiv lua stats  > used platform: win64, type: windows, binary subtree: texmf-win64 mkiv lua stats  > u

Re: [NTG-context] bottlenecks

2022-12-17 Thread Rik Kabel via ntg-context
level 1, objectcompresslevel 3 mkiv lua stats  > positions: 4034 collected, 1723 deltas, 4025 shared partials, 111 partial entries mkiv lua stats  > used platform: win64, type: windows, binary subtree: texmf-win64 mkiv lua stats  > used engine: luametatex version: 2.1004, functionality le

Re: [NTG-context] bottlenecks

2022-12-17 Thread Rik Kabel via ntg-context
otations: 3982 links (3982 unique), 0 special mkiv lua stats  > font embedding time: 0.195 seconds, 13 fonts mkiv lua stats  > result saved in file: misquotation_bodyonly.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats  > positions: 4034 collected, 1722 deltas, 4025

Re: [NTG-context] bottlenecks

2022-12-16 Thread Rik Kabel via ntg-context
conds, 13 fonts mkiv lua stats  > result saved in file: misquotation_bodyonly.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats  > positions: 4034 collected, 1722 deltas, 4025 shared partials, 112 partial entries mkiv lua stats  > used platform: win64, type: windows

Re: [NTG-context] bottlenecks

2022-12-16 Thread Henning Hraban Ramm via ntg-context
gt; result saved in file: prd_de.pdf, compresslevel 1, objectcompresslevel 0 mkiv lua stats > positions: 6786 collected, 3635 deltas, 6678 shared partials, 46 partial entries mkiv lua stats > used platform: osx-64, type: unix, binary subtree: texmf-osx-64 mkiv lua stats > used engine:

Re: [NTG-context] Non-standard font alternatives

2022-12-14 Thread Matthew McCabe via ntg-context
t I'm making I would prefer to be able to >> treat the font weights as alternatives rather than separate families since I >> will be switching often. > take a look at type-imp-plex.mkiv (just remove the \s! in your case) > > basically you define two typefaces: normal and light

Re: [NTG-context] Non-standard font alternatives

2022-12-13 Thread Hans Hagen via ntg-context
for me. There is the Roboto typescript example on ConTeXt garden but it isn't exactly what I'm looking for as for the document I'm making I would prefer to be able to treat the font weights as alternatives rather than separate families since I will be switching often. take a look at type-imp-plex.mkiv

Re: [NTG-context] two issues with variable fonts

2022-12-02 Thread Hans Hagen via ntg-context
from https://github.com/Omnibus-Type/Grenze/tree/master/fonts-/gx, I get the following error message: lua error: run callback [6]: ...ext/tex/texmf-context/tex/context/base/mkxl/lpdf-emb.lmt:84: number (local 'n') has no integer representation stack traceback: ...base/mkxl/lpdf-emb.lmt:84

[NTG-context] two issues with variable fonts

2022-12-02 Thread Pablo Rodriguez via ntg-context
Hi Hans, I have two issues with variable fonts (using current latest from yesterday): 1. Using the following sample: \usemodule[fonts-variable] \starttext \showfontvariations[font=file:grenze.ttf] \stoptext With the fonts from https://github.com/Omnibus-Type/Grenze/tree/master/fonts-/gx

Re: [NTG-context] Xml filtering in Lua

2022-11-16 Thread Thomas A. Schmitz via ntg-context
Hi Duncan, Thank you for pointing this out! I knew this was true inside the xmlns namespace, so you can’t have identical xml:id tags, but you’re probably right that it’s better to avoid this confusion altogether. Alas, this doesn’t help with my problem. Since there was a type in my minimal

Re: [NTG-context] LMTX: reimplementing texquotes as OTF feature

2022-11-12 Thread Leah Neukirchen via ntg-context
Hans Hagen via ntg-context writes: > can you show what is wrong and what it should be with > > fonts.handlers.otf.addfeature { > name = "germantexlig", > type = &

Re: [NTG-context] LMTX: reimplementing texquotes as OTF feature

2022-11-11 Thread Hans Hagen via ntg-context
ature { name = "texlig", t

[NTG-context] LMTX: reimplementing texquotes as OTF feature

2022-11-11 Thread Leah Neukirchen via ntg-context
ne knows a nicer way. 2) This approach doesn't work for lmodern or palatino, I still get "' as inch-sign/quote there... anything else I need to tweak for these fonts? \startluacode fonts.handlers.otf.addfeature { name = "texlig",

Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Saša Janiška via ntg-context
r editors which do support LSP? Sincerely, Saša -- In this endeavor there is no loss or diminution, and a little advancement on this path can protect one from the most dangerous type of fear. ___ If your quest

Re: [NTG-context] New VSCode extenstion using ConTeXt Language server

2022-11-09 Thread Saša Janiška via ntg-context
r editors which do support LSP? Sincerely, Saša -- In this endeavor there is no loss or diminution, and a little advancement on this path can protect one from the most dangerous type of fear. ___ If your question is of

Re: [NTG-context] Bug in math alignment

2022-11-02 Thread Mikael Sundqvist via ntg-context
xt{in }\, \Omega \NR > \NC \dm{\frac{\partial u}{\partial {\bi n}}} > \NC = V u + \phi \NC \qquad\text{on }\, \partial\Omega. \NR > \stopalignedcases > \stopformula > or this (with\type{\displaystyle} added) > \placeformula > \startformula > \startalignedcases > \NC - \De

Re: [NTG-context] Bug in math alignment

2022-11-02 Thread Otared Kavian via ntg-context
qquad\text{on }\, \partial\Omega. \NR > \stopalignedcases > \stopformula > or this (with\type{\displaystyle} added) > \placeformula > \startformula > \startalignedcases > \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR > \NC \dm{\frac{\partial u}{\partial {\bi n}}} &

Re: [NTG-context] Bug in math alignment

2022-11-02 Thread Jeong Dal via ntg-context
placeformula \startformula \startalignedcases \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR \NC \dm{\frac{\partial u}{\partial {\bi n}}} \NC = V u + \phi \NC \qquad\text{on }\, \partial\Omega. \NR \stopalignedcases \stopformula or this (with\type{\displaystyle} added) \placeformula \

[NTG-context] Bug in math alignment

2022-11-02 Thread Otared Kavian via ntg-context
\stopalignedcases \stopformula or this (with\type{\displaystyle} added) \placeformula \startformula \startalignedcases \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR \NC \displaystyle\frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC \qquad\text{on }\, \partial\Omega. \NR

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-13 Thread Oliver Sieber via ntg-context
> > MWE: > > \setuppapersize[A5] > > \starttext > > The \type{\unit} command in text produces \unit{1.23e5 kg m^2/s^2}. > > Inline math \type{$\unit$} produces $\unit{1.23e5 kg m^2/s^2}$. > > Display math produces > \startformula > \unit{1.23e5 kg m^2/s

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-12 Thread Rik Kabel via ntg-context
! Gavin MWE: \setuppapersize[A5] \starttext The \type{\unit} command in text produces \unit{1.23e5 kg m^2/s^2}. Inline math \type{$\unit$} produces $\unit{1.23e5 kg m^2/s^2}$. Display math produces \startformula \unit{1.23e5 kg m^2/s^2} + \unit{8.64e5 newton m} = \unit{987,000 joule} \stopformula

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-12 Thread Gavin via ntg-context
-dim.mkxl and with my modified phys-dim.mkxl. The final result is exactly what I wanted. If anyone wants my changes, either for their own use or to improve the distributed phys-dim.mkxl, I’m happy to share. Thanks for all of your comments! Gavin MWE: \setuppapersize[A5] \starttext The \type

Re: [NTG-context] Example from Practex Journal

2022-10-08 Thread Wolfgang Schuster via ntg-context
module [1]  which is MkII only and no longer part of the ConTeXt distribution. The filename of the module is s-ptj-01.mkii when you're looking for the source. I find this one hard to replicate. What is the font type that was used for this document ? The document uses TeX Gyre Pagella as main

Re: [NTG-context] Example from Practex Journal

2022-10-08 Thread Herbert Voss via ntg-context
is the font type that was used for this document ? His email is at the end of the article ... Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

[NTG-context] Example from Practex Journal

2022-10-08 Thread Jeroen via ntg-context
Hello, Could anybody help me out with the setup and a MWE to get a document exactly as the one from Steve Peter in the Practex Journal in 2005 as in https://tug.org/pracjourn/2005-1/peter/peter.pdf I find this one hard to replicate. What is the font type that was used for this document ? Thanks

[NTG-context] Spacing issue with \digits in math mode

2022-10-04 Thread Gavin via ntg-context
igits {12,345.67e89}$ 51 \setdigitmode {5} \setdigitorder{1} $\digits {12,345.67e89}$ 61 \setdigitmode {6} \setdigitorder{1} $\digits {12,345.67e89}$ \stopbuffer \typebuffer This is typeset as: \startlines \getbuffer \stoplines In text, the \type{\digits} command works fine: \setdigitmo

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-04 Thread Hans Hagen via ntg-context
On 10/4/2022 5:52 PM, Leah Neukirchen via ntg-context wrote: I looked into /StemV 0 (which was different in MKIV) but that works with the TTF files, too. Also should be ignored for Type 3 anyway. Does your test have type 3 fonts? Should be no problem. Hans

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-04 Thread Leah Neukirchen via ntg-context
es, too. Also should be ignored for Type 3 anyway. Really out of ideas now... -- Leah Neukirchenhttps://leahneukirchen.org/ ___ If your question is of interest to others as well, please add an entry to the Wiki! m

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-04 Thread Hans Hagen via ntg-context
ument, which is kept in a seperate font: NREXLC+LMRoman12-Regular CID Type 0C Identity-H yes yes yes 5 0 CLLXEY+LMRoman12-Regular CID Type 0C Identity-H yes yes yes 8 0 I tried converting the pdf with pdfjam (which uses pdfTeX internally) be

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-04 Thread Leah Neukirchen via ntg-context
include the lmtx pdf in a mkiv document as image On above Brother B205, this document: \starttext \externalfigure[foo.mkxl.pdf] \stoptext only prints the page number of the outer document, which is kept in a seperate font: NREXLC+LMRoman12-Regular CID Type 0C Identity-H

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-03 Thread Leah Neukirchen via ntg-context
yfont[dejavu] Then I get a VHOYGZ+DejaVuSansMonoCID TrueType Identity-H yes yes yes 8 0 and the PDF prints fine! So it must be related to how Type 0C fonts are written out, I think. -- Leah Neukirchenhttps://leahneukirchen.org

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
an empty file... > > Do we agree that I have to replace the two lines with the other two ? > > Regarding what you proposed, how to get the same type of hatching in > > both figures ? > no, we disagree here; add them af

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Hans Hagen via ntg-context
On 10/2/2022 1:02 PM, Fabrice Couvreur via ntg-context wrote: I just tried but I got an empty file... Do we agree that I have to replace the two lines with the other two ? Regarding what you proposed, how to get the same type of hatching in both figures ? no, we disagree here; add them after

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
I just tried but I got an empty file... Do we agree that I have to replace the two lines with the other two ? Regarding what you proposed, how to get the same type of hatching in both figures ? \startMPcode path p, q, r, b ; p := unitsquare xyscaled (4cm,4cm) ; z[0] = (2cm,0cm

Re: [NTG-context] About macro numberstriped ()

2022-10-02 Thread Fabrice Couvreur via ntg-context
; On Sat, Oct 1, 2022 at 7:43 PM Fabrice Couvreur via ntg-context > wrote: > > > > Hi Hans, > > When the rectangles are not identical, how to have the same type of > hatching in both ? > > Thanks. > > Fabrice > > > > > > \starttext > > \st

Re: [NTG-context] About macro numberstriped ()

2022-10-01 Thread Mikael Sundqvist via ntg-context
Hi, Is this what you are looking for? On Sat, Oct 1, 2022 at 7:43 PM Fabrice Couvreur via ntg-context wrote: > > Hi Hans, > When the rectangles are not identical, how to have the same type of hatching > in both ? > Thanks. > Fabrice > > > \starttext &g

Re: [NTG-context] About macro numberstriped ()

2022-10-01 Thread Fabrice Couvreur via ntg-context
Hi Hans, When the rectangles are not identical, how to have the same type of hatching in both ? Thanks. Fabrice \starttext \startlinecorrection[blank] \startmidaligned \switchtobodyfont[9pt] \startMPcode path p, q, r, b ; p := unitsquare xyscaled (4cm,4cm) ; z[0

[NTG-context] lmtx status

2022-09-27 Thread Hans Hagen via ntg-context
there are platform changes). She's also working on cmake based installation helpers. One of the things we did was pruning the fonts that are part of the installation. With a few exceptions the type one fonts were dropped, which is most noticeable for math. There is no need for px and tx fonts

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Angel M Alganza via ntg-context
On Mon, Sep 26, 2022 at 07:10:40PM +0200, Pablo Rodriguez via ntg-context wrote: BTW, is TeX Gyre Heros the font with missing chars in the printed version of your PDF document? It doesn't seem to be that: $ pdffonts a6.pdf name type encoding

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Pablo Rodriguez via ntg-context
.pdf" and "pdffonts your-file.pdf" are your friends. Both infos for the following source: \setupbodyfont[helvetica] \starttext \input zapf \stoptext $ pdffonts a.pdf name type encoding emb sub uni object ID - ---

Re: [NTG-context] IBM Plex updates

2022-09-26 Thread BPJ via ntg-context
renamed (Semi > Bold and Medium to SmBld and Medm). > > Hraban > Thank you for bringing this interesting type family to my attention! /bpj ___ > If your question is of interest to others as wel

Re: [NTG-context] Math alignment question

2022-09-23 Thread Mikael Sundqvist via ntg-context
the case. These formulas are done for single chain equations. The example given above consists of two formulas, and the new broken formula type simply does not fit. You can play with more than one \alignhere, but they will only set new align points. I think \startalign ... \stopalign is the way to g

[NTG-context] Lato typescripts (MKIV/LMTX)

2022-09-17 Thread Adam Reviczky via ntg-context
able to find the font. There seems to be an issue with the typescript file type-imp-lato.mkiv. MWE: \setupbodyfont[lato,12pt] \starttext Hello World! \stoptext --- ConTeXt ver: 2022.09.11 20:44 MKIV - luatex version: 1.1501, functionality level: 7539: mtxrun --script fonts --list --all --pattern

Re: [NTG-context] Can't no break between a close punctuation and a open punctuation

2022-09-02 Thread 黄复雄 via ntg-context
edfont[file:mingliu.ttc*chinese @ 10pt]) I adapted type-imp-mscore.mkiv to the situation of the fonts in Win10, and made type-imp-notocjksc.mkiv according to the Notocjksc fonts. I refer to type-imp-ipaex.mkiv, and I don't know if the method in it is outdated. At least, the test results ar

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-02 Thread Henning Hraban Ramm via ntg-context
ext related readme files" } assert(not figures.getinfo2) figures.getinfo2 = function(name, page) -- [ [NTG-context] Pdf info with Lua/Ctx API ] if type(name) == "string" then name = { name = name, page = page } end if name.name then local data = figures.push(name) local info =

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread Henning Hraban Ramm via ntg-context
ConTeXt Development Team", license = "see context related readme files" } assert(not figures.getinfo2) figures.getinfo2 = function(name, page) -- [ [NTG-context] Pdf info with Lua/Ctx API ] if type(name) == "string" then name = { name = name, page = page } end i

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-26 Thread Hans Hagen via ntg-context
tion xml.functions.p(t) local dt = t.dt for i=1,#dt do local di = dt[i] if type(di) == "string" then dt[i] = lpeg.match(rep,di) end end end \stopluacode \xmlregistersetup{xml:xhtml} \startdocument \xmlproces

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-22 Thread Hans Hagen via ntg-context
finished checking and adjusting type-imp-mscore.mkiv, scrp-cjk.lua, and char-scr.lua so far, but the changes are a bit much (or maybe you can say a bit reckless), so I'm hesitant to get back to you in order to minimize your troubles. And as mentioned partly in an earlier email, I've made 3 modules

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
and submitted, please deal with it.) By the way, I've finished checking and adjusting type-imp-mscore.mkiv, scrp-cjk.lua, and char-scr.lua so far, but the changes are a bit much (or maybe you can say a bit reckless), so I'm hesitant to get back to you in order to minimize your troubles. And as mentioned

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
nts > bodyfont '16pt' is defined (can better be done global) open source > level 2, order 3, name 'D:/venvs/context-win64/tex/texmf-context/tex/context/fonts/mkiv/type-imp-mscore.mkiv' close source> level 2, order 3, name 'D:/venvs/context-win64/tex/texmf-context/tex/context/fonts/

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
them: > > > > begin example > > \setupinterlinespace[line=4ex] > > > > \setuptype[style=\ttx] > > > > \starttext > > > > \start > > x \ruby{aaa}{bbb} x > > \stop > > > > \start \setupruby[location=left]

Re: [NTG-context] Using MathTime Pro 2 fonts in ConTeXt

2022-08-18 Thread Hans Hagen via ntg-context
On 8/18/2022 12:51 AM, Sebastian Leonardo Molina Diaz via ntg-context wrote: Any hints on how to do it? you can look into mathtimes-math.lfg type-imp-mathtimes.mkiv to see how to turn t2 fonts into virtual ot fonts but one never knopws how well that works (depends on the fonts) Hans

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-16 Thread amano.kenji via ntg-context
arttext > > \start > x \ruby{aaa}{bbb} x > \stop > > \start \setupruby[location=left] > \type{\setupruby[location=left]}\quad x \ruby{aaa}{bbb} x > \stop > > \start \setupruby[location=right] > \type{\setupruby[location=right]}\quad xxx

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-16 Thread amano.kenji via ntg-context
problem. > > 2. You want to install ConTeXt LMTX system-wide. > > This is doable with the standard Linux installer script. Just make sure > to run the script as root and install the files in /opt/context. This is > what I've done on my system, and it works quite well. > > $ ls -l

Re: [NTG-context] Accessing inserts from Lua in LuaMetaTeX

2022-08-15 Thread Max Chernoff via ntg-context
Hi Hans, > > First, how do I get an insert's class/type from the "insert" nodes on > > the page? With LuaTeX, the insert's class/type is the same as the > > subtype of the "ins" nodes, but the subtype of the "insert" nodes is > > always ze

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-15 Thread Max Chernoff via ntg-context
well. $ ls -l $(type -p context) lrwxrwxrwx. 1 root root 10 Jul 28 00:33 /opt/context/tex/texmf-linux-64/bin/context -> luametatex* 3. You want to install ConTeXt without any network access. The easiest way to do this would be to install on a system with inter

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-15 Thread Wolfgang Schuster via ntg-context
x \ruby{aaa}{bbb} x \stop \start \setupruby[location=left] \type{\setupruby[location=left]}\quad x \ruby{aaa}{bbb} x \stop \start \setupruby[location=right] \type{\setupruby[location=right]}\quad x \ruby{aaa}{bbb} x \stop \start \setupruby[location

Re: [NTG-context] Accessing inserts from Lua in LuaMetaTeX

2022-08-15 Thread Hans Hagen via ntg-context
On 8/15/2022 8:18 AM, Max Chernoff via ntg-context wrote: Hi all, I'm trying to manipulate some inserts from Lua in LuaMetaTeX, and I'm having some problems that I'm not having with LuaTeX. First, how do I get an insert's class/type from the "insert" nodes on the page? W

[NTG-context] Accessing inserts from Lua in LuaMetaTeX

2022-08-15 Thread Max Chernoff via ntg-context
Hi all, I'm trying to manipulate some inserts from Lua in LuaMetaTeX, and I'm having some problems that I'm not having with LuaTeX. First, how do I get an insert's class/type from the "insert" nodes on the page? With LuaTeX, the insert's class/type is the same as the subtype of the &

[NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-12 Thread Mojca Miklavec via ntg-context
} else if (p lmt_node_memory_state.reserved lmt_node_memory_state.nodesizes[p] == 0) { return tex_formatted_error("nodes", "attempt to copy a free %s node %d", get_node_name(node_type(p)), (int) p); } else { /*tex type of node */ halfword t = node_type(p)

Re: [NTG-context] Can't no break between a close punctuation and a open punctuation

2022-08-02 Thread Hans Hagen via ntg-context
On 8/2/2022 4:08 PM, 黄复雄 via ntg-context wrote: Sorry, when you say ` that file for windows 10+`, which one are you referring to? to scrp-cjk.lua?( yes, I will upgrade it.) or to my lmtx the chinese font .. as defined in type-imp-mscore

Re: [NTG-context] Can't no break between a close punctuation and a open punctuation

2022-08-02 Thread 黄复雄 via ntg-context
ypescriptfile[mscore] > > \usebodyfont [mschinese,20pt] > > can you upgrade the chiese section in that file for windows 10+ as the > old fonts are gone > > (i tested with \definedfont[file:mingliu.ttc*chinese @ 10pt]) > Sorry, when you say ` that file for windows 10+`, which

Re: [NTG-context] font fallbacks

2022-08-01 Thread Denis Maier via ntg-context
➊ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE > 9 U+0FFFD � REPLACEMENT CHARACTER > stop missing characters > start missing characters: cambriai.ttf > 266 U+0276C ❬ MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT > 266 U+0276D ❭ MEDIUM RIGHT-POINTING ANGLE BRACKET ORN

Re: [NTG-context] font fallbacks

2022-08-01 Thread Henning Hraban Ramm via ntg-context
e] \startlines \getbuffer[example] {\ss\getbuffer[example]} \stoplines \tex{abra}\arg{...} \type{kadabra} \type{~~~} \stoptext """ What’s wrong? Hraban ___ If your question is of interest to other

Re: [NTG-context] Set up external figure for particular image type

2022-08-01 Thread Hans Hagen via ntg-context
On 8/1/2022 2:29 AM, Thangalin via ntg-context wrote: Got it working. Complete solution: |\setupexternalfigures[ location={local,global,default}, width=\textwidth ] \defineexternalfigure[svg][width=1cm] \defineexternalfigure[jpg][width=2cm] \defineexternalfigure[png][width=4cm] % Won't be

Re: [NTG-context] Set up external figure for particular image type

2022-08-01 Thread Thangalin via ntg-context
Got it working. Complete solution: \setupexternalfigures[ location={local,global,default}, width=\textwidth ]\defineexternalfigure[svg][width=1cm]\defineexternalfigure[jpg][width=2cm]\defineexternalfigure[png][width=4cm] % Won't be applied because there's no process action.% Default

[NTG-context] font fallbacks

2022-07-30 Thread Henning Hraban Ramm via ntg-context
RIGHT-POINTING ANGLE BRACKET ORNAMENT stop missing characters \stopbuffer \typebuffer[example] \startlines \getbuffer[example] {\ss\getbuffer[example]} \stoplines \tex{abra}\arg{...} \type{kadabra} \type{~~~} \stoptext ""

Re: [NTG-context] debugging lmtx and firefox (was: TeXGyre Heros on Firefox)

2022-07-22 Thread Max Chernoff via ntg-context
he fonts, it is removing all of the hinting information, while LibreOffice is keeping all of the hints. I've opened PDFs from ConTeXt and LibreOffice in FontForge and the hints are still there, so I don't think that this is the case, but maybe? The hinting format is also wildly different between Type

Re: [NTG-context] debugging lmtx and firefox (was: TeXGyre Heros on Firefox)

2022-07-22 Thread Pablo Rodriguez via ntg-context
On 7/22/22 12:37, juh+ntg-context--- via ntg-context wrote: > Dear all, > > the firefox pdf viewer has problems with at least two sans serif fonts. > [...] > > Where Libreoffice has type "Type 1", lmtx has "CID Type 0C". > > Where Libreoffice has enco

[NTG-context] debugging lmtx and firefox (was: TeXGyre Heros on Firefox)

2022-07-22 Thread juh+ntg-context--- via ntg-context
] \startdocument \starttext \input lorem \stoptext \stopdocument When I create a pdf from LibreOffice with these fonts I have a good display. pdffonts shows different font inclusion: pdffonts libreoffice.pdf name type encoding emb sub uni object ID

Re: [NTG-context] If a Font Has Ligature Glyphs But No Feature?

2022-07-21 Thread Hans Hagen via ntg-context
the following code to add them (and add en and em dash substitution as well). %% start \startluacode fonts.handlers.otf.addfeature { name = "v1", -- these character substitutions will be applied to venetian-301-demi-bt type = "ligature&

Re: [NTG-context] If a Font Has Ligature Glyphs But No Feature?

2022-07-20 Thread Bruce Horrocks via ntg-context
(and add en and em dash substitution as well). %% start \startluacode fonts.handlers.otf.addfeature { name = "v1",-- these character substitutions will be applied to venetian-301-demi-bt type = "ligature", data = { [0xF001] = { &

Re: [NTG-context] Set up external figure for particular image type

2022-07-18 Thread Wolfgang Schuster via ntg-context
Thangalin via ntg-context schrieb am 18.07.2022 um 19:10: Thank you, Wolfgang. That looks promising. SVG files are converted using MetaPost. I thought the following would work: svg=>{\externalfigure[#1][svg][conversion=mp]} You can probably remove the second argument ([svg]) which was

Re: [NTG-context] Set up external figure for particular image type

2022-07-18 Thread Thangalin via ntg-context
Thank you, Wolfgang. That looks promising. SVG files are converted using MetaPost. I thought the following would work: svg=>{\externalfigure[#1][svg][conversion=mp]} Is there anything else that needs to happen to ensure SVG files are piped through MetaPost? Thanks again! >

Re: [NTG-context] Set up external figure for particular image type

2022-07-18 Thread Thangalin via ntg-context
Of course, you could also use pandoc to go directly to ConTeXt; that is > currently my preferred way of producing PDF from Markdown. > Thanks Albert! I'm going to stick with my desktop text editor, KeenWrite , rather than use shell scripts

Re: [NTG-context] Set up external figure for particular image type

2022-07-18 Thread Thangalin via ntg-context
Thanks, Rik. Not using Pandoc. I was using Pandoc up until 2020: https://dave.autonoma.ca/blog/2019/05/22/typesetting-markdown-part-1/ I've since authored KeenWrite , which uses flexmark-java to generate XHTML

[NTG-context] New math additional requirement for font definitions

2022-07-13 Thread Alexandre Christe via ntg-context
upbodyfont[libertinus,11pt] Could someone enlighten me? The font definition file is attached. BR, Alex type-imp-alegreya.mkiv Description: Binary data ___ If your question is of interest to others as well, please ad

Re: [NTG-context] Set up external figure for particular image type

2022-07-12 Thread Albert Krewinkel via ntg-context
` function to produce the output you need. E.g., match on the file name extension use the library function `pandoc.path.split_extension` and then change the element type depending on the extension. This way you'd have all the important information in your XML. More info: <https://pandoc.org/cu

[NTG-context] fullhz, kerning and glue

2022-07-12 Thread Henning Hraban Ramm via ntg-context
ce extreme expansion, i.e. \type {\normaladjustspacing\plustwo}. 56 57% 0 = disabled 58% 1 = notused (thesis) 59% 2 = glyph + kern 60% 3 = glyph only (default) 61 62\def\font_expansion_enable {\normaladjustspacing\plusthree} 63\def\font_expansion_enable_k{\normaladjustspacing\plust

Re: [NTG-context] Set up external figure for particular image type

2022-07-12 Thread Rik Kabel via ntg-context
On 2022-07-12 14:11, Thangalin via ntg-context wrote: Thank you for the suggestion Hraban. The source comes from Markdown, which is converted to XML, then typeset using ConTeXt. There's no Markdown-specific mechanism to relate images to a particular external figure definition,

<    1   2   3   4   5   6   7   8   9   10   >