Re: [NTG-context] Arabic typesetting, one more
On Sat, May 11, 2013 at 03:22:27PM -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: > Salaam, Huseyin, > > I missed this and other threads, it's been busy here... > > On Tue, 07 May 2013 23:35:25 -0600, H. Özoguz wrote: > > >But with traditionalarabic it is worse than with arabtype. What > >could be a way to fix this? > > Traditional Arabic is a uniscribe-compliant font, but not a fully > opentype font. Uniscribe also supports older, pre-unicode protocols. > In other words, TraditionalArabic is platform-dependent. So unless > M$ has updated it in a recent OS, it will not work in ConTeXt MkIV. It did (all its fonts actually), it now uses GPOS for mark placement. > Since XeTeX uses the local libraries, then mkii/xetex on windows > might work. XeTeX does not use any system libraries for its OpenType layout, in the past is was using ICU LayoutEngine and now it is using HarfBuzz, in all platforms (i.e. a third party library, but not a system one). However, HarfBuzz has heuristics to place marks based on glyph bounding boxes in the case of GPOS absence (a bit similar to TeX's \accent but knows which marks goes above or below or off the center). Regards, Khaled ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Off-topic: Convert PDF to (Con/La)TeX
Hi, I just want to know if there is any tool to convert a pdf (generated by latex or context) to latex source or context source file. Does anyone have got an experience on that? I'm thinking about two alternatives: * libraries for reading like podofo and custom script for passing pdf context (text) to context commands * pass pdf to jpg, and apply http://detexify.kirelabs.org/classify.html for passing to tex symbols. For me it's vital to pass mathematical symbols like (\int) to tex symbol and not like utf-8 symbols. Thanks a lot, Xan. Note: pdf could be substitute for ps if you want ;-) PS: Please CCme ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [luatex-fonts] +mkmk; +mark results in call to undefined onetimemessage()
Hi, in luatex-plain, the example below \font\grk="file:LinLibertine_R.otf:+mark;+mkmk;mode=node" at 14.4pt {\grk μῆνιν ἄειδε θεὰ Πηληϊάδεω Ἀχιλῆος\hfill\break οὐλομένην, ἣ μυρί' Ἀχαιοῖς ἄλγε' ἔθηκε} \bye triggers a call to onetimemessage() which is nil at the time when the upvalue is created. Can we have calls to fonts.loggers.onetimemessage() instead, so we can override that one with our own logger? On a related note, we would like to reduce verbosity. In luatex-basics-gen.lua, could we have: logs = logs or { new=dummyreporter, reporter=dummyreporter, messenger=dummyreporter, report=dummyfunction, } So we can provide our own “logs” table? Thanks Philipp isolated.tex Description: TeX document pgpi8fMmvOpzW.pgp Description: PGP signature ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [luatex-fonts] +mkmk; +mark results in call to undefined onetimemessage()
On 5/12/2013 9:19 PM, Philipp Gesang wrote: Hi, in luatex-plain, the example below \font\grk="file:LinLibertine_R.otf:+mark;+mkmk;mode=node" at 14.4pt {\grk μῆνιν ἄειδε θεὰ Πηληϊάδεω Ἀχιλῆος\hfill\break οὐλομένην, ἣ μυρί' Ἀχαιοῖς ἄλγε' ἔθηκε} \bye triggers a call to onetimemessage() which is nil at the time when the upvalue is created. Can we have calls to fonts.loggers.onetimemessage() instead, so we can override that one with our own logger? hm, don't assume that all that logging will be exposed forever in a generic way; a lot is for specific tracing only and i more or less assume that for problematic issues one will use context as benchmark anyway (in fact, I've even been thinking of a stripped down generic variant i.e. no unneccessary more context and dev related overhead (leaner and meaner) which is possible once we're stable. So it's more convenient if I just uncommented the trace-bugs elseif trace_bugs then which means that the message will not be called outside context at all. On a related note, we would like to reduce verbosity. In luatex-basics-gen.lua, could we have: logs = logs or { new=dummyreporter, reporter=dummyreporter, messenger=dummyreporter, report=dummyfunction, } So we can provide our own “logs” table? That needs thinking, as i cannot guarantee that logging will stay the same for those modules; a wrapper might be more stable, so for the moment I'll define this: local dummyreporter = function(c) return function(...) (texio.reporter or texio.write_nl)(c .. " : " .. string.formatters(...)) end end so, you can define texio.reporter which is not defined by default. (The namespaces are somewhat protected so i cannot oversee now what messing with logs will bring in terms of side effects.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [luatex-fonts] +mkmk; +mark results in call to undefined onetimemessage()
· > On 5/12/2013 9:19 PM, Philipp Gesang wrote: > >Hi, > > > >in luatex-plain, the example below > > > > \font\grk="file:LinLibertine_R.otf:+mark;+mkmk;mode=node" at 14.4pt > > {\grk > > μῆνιν ἄειδε θεὰ Πηληϊάδεω Ἀχιλῆος\hfill\break > > οὐλομένην, ἣ μυρί' Ἀχαιοῖς ἄλγε' ἔθηκε} > > \bye > > > >triggers a call to onetimemessage() which is nil at the time when > >the upvalue is created. Can we have calls to > >fonts.loggers.onetimemessage() instead, so we can override that > >one with our own logger? > > hm, don't assume that all that logging will be exposed forever in a > generic way; a lot is for specific tracing only and i more or less > assume that for problematic issues one will use context as benchmark > anyway (in fact, I've even been thinking of a stripped down generic > variant i.e. no unneccessary more context and dev related overhead > (leaner and meaner) which is possible once we're stable. Sounds good. As most of the tracing code follows a clear pattern it might even be possible to recognize and drop it during the merge. > So it's more convenient if I just uncommented the trace-bugs > > elseif trace_bugs then > > which means that the message will not be called outside context at all. Fine with me. > >On a related note, we would like to reduce verbosity. In > >luatex-basics-gen.lua, could we have: > > > >logs = logs or { > > new=dummyreporter, > > reporter=dummyreporter, > > messenger=dummyreporter, > > report=dummyfunction, > >} > > > >So we can provide our own “logs” table? > > That needs thinking, as i cannot guarantee that logging will stay > the same for those modules; a wrapper might be more stable, so for > the moment I'll define this: > > local dummyreporter = function(c) > return function(...) > (texio.reporter or texio.write_nl)(c .. " : " .. > string.formatters(...)) > end > end > > so, you can define texio.reporter which is not defined by default. Fine with me. > (The namespaces are somewhat protected so i cannot oversee now what > messing with logs will bring in terms of side effects.) Absolutely. Thanks a lot Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpOC5d_kDFGf.pgp Description: PGP signature ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [***SPAM***] unwanted space and error in combination of writebetweenlist and placecontent[criterium= local]
Hi, I ran into one error and one problem during building a part as two columns into the toc. 1. Extra line: I am getting an unwanted extra empty line at the bottom of two columns with an even number of total lines - with an odd number of total lines no extra empty line appears. How can I get rid of it? (see attached example) 2. This error only appears only with \placecontent[criterium=local] in combination with a beginning line of \writebetweenlist; with a global \placecontent and \writebetweenlist it works fine. To reproduce this uncomment the line "%\placecontent[criterium=local]" in the attached example. (Sorry that I was not able to make the example shorter, I needed some "meat" to fill the toc for the showcases) Thanks, H. --8< \usemodule[subsub] \definehead[paragraphHead][alternative=myheader,section=section-8,number=no] \defineheadalternative [myheader] [alternative=horizontal, renderingsetup=setup:myheader] \startsetups [setup:myheader] \inouter{\headtextcontent} \stopsetups \setuplist[chapter][style=bold,before=\blank,alternative=b,width=1.5em,color=HeadColor] \setuplist[section][margin=1.5em,width=2em] \setuplist[subsection][margin=3.5em,width=3em] \setuplist[paragraphHead][alternative=c,style=\tfx] \def\startParagraphTocColumns{% \writebetweenlist[paragraphHead][location=here]{\setupnarrower[left=2em]\startnarrower[left]\startcolumns[n=2,distance=0mm,balance=yes]}% \ignorespaces} \def\stopParagraphTocColumns{% \writebetweenlist[paragraphHead][location=here]{\stopcolumns\stopnarrower}% \ignorespaces} \starttext \setupcombinedlist[content][list={chapter,section,subsection,textdividerHead,paragraphHead}] \completecontent \startParagraphTocColumns \dorecurse{5}{\paragraphHead{Hasselt makes headlines} \input tufte} \stopParagraphTocColumns \chapter{Lorem ipsum} \section{Sed eram} \chapter{Lorem ipsum} %\placecontent[criterium=local] \section{Sed eram} \section{Sed eram} \startParagraphTocColumns \dorecurse{5}{\paragraphHead{Hasselt makes headlines} \input tufte} \stopParagraphTocColumns \section{Sed eram} \section{Sed eram} \startParagraphTocColumns \dorecurse{4}{\paragraphHead{Hasselt makes headlines} \input tufte} \stopParagraphTocColumns \section{Sed eram} \startParagraphTocColumns \dorecurse{3}{\paragraphHead{Hasselt makes headlines} \input tufte} \stopParagraphTocColumns \section{Sed eram} \section{Sed eram} \stoptext ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___