Re: [NTG-context] font trickery
Am 15.05.2013 00:51, schrieb Idris Samawi Hamid ادريس سماوي حامد: Hi Hans, On Tue, 14 May 2013 12:01:36 -0600, Hans Hagen pra...@wxs.nl wrote: I'm on-and-off working on the more technical font manual and in the process also check some old code i've laying around (deciding on what to include and not). I'm also revising the tracer styles. Which makes me wonder: are there specific additional features that one would like to see in context (mkiv only of course) with respect to font support? This may be beyond the scope of your current plans, but worth considering: It would be nice to have a mechanism where we can override/add opentype gsub and gpos features. Early on in the history of luatex we once had a mechanism that did this using FontForge's version of Adobe Feature Files. From what I understand, the AFF syntax is finally mature and supports all lookup types: http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html Or maybe we have our own syntax in lua, goodies etc. Anyway, a way to control/override opentype gsub and gpos behavior would be interesting. Even if a total controller is too ambitious/unwieldy, just being able to do a few basic gsub/gpos tricks may be useful for, e.g., bugs in the font. Anyway, something to think about. Best wishes Idris Hi Idris and Hans, this is a great idea. Is this not available any longer in current luatex? The fontspec (xelatex+lualatex) manual lists this as a luatex only feature (I’ve used it once some time ago). I know a lot of fonts and other problems that could be fixed this way. I’d prefer to stay with the AFF syntax which is well established. Best regards, Georg ___ 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] Distanc to rightframe in TABLE
Hi, the german-arabic-transliteration-environment becomes, with your kind help, better and better. Next question, see this standard-code: \definefont[amiri][file:UthmanTN1Ver10.ttf*arabic at 10 pt] % or amiri-regular.ttf \define[1]\Arab{\setupalign[r2l]\amiri#1} %\showgrid \startsetups[arde] \setupTABLE[c][1][rightframe=on] \stopsetups \def\startarde {\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]} \def\stoparde {\eTABLE} \define[2]\arde {\bTR \bTD [style={\setupinterlinespace[line=3ex]}] #1\eTD \bTD[align=r2l,style={\amiri\setupinterlinespace[line=5ex]}] #2 \eTD \eTR} \starttext \startarde \arde{\input knuth}{االلّهُمَّ إِنِّي أَسْأَلُكَ أَنْ تَجْعَلَ فِيما تَقْضِي وَتُقَدِّرُ مِنَ الاَمْرِ المَحْتُومِ فِي الاَمْرِ الحَكِيمِ مِنَ القَضاء الَّذِي لايُرَدُّ وَلا يُبَدَّلُ أَنْ تَكْتُبَنِي مِنْ حُجَّاجِ بَيْتِكَ الحَرامِ المَبْرُورِ حَجُّهُمُ المَشْكُورِ سَعْيُهُمُ المَغْفُورُ ذُنُوبُهُمُ المُكَفَّرِ عَنْ سَيِّئاتِهِمْ، وَأَنْ تَجْعَلَ فِيما تَقْضِي وَتُقَدِّرُ أَنْ تُطِيلَ عُمْرِي فِي خَيْرٍ وَعافِيَةٍ وَتُوَسِّعَ فِي رِزْقِي وَتَجْعَلَنِي مِمَّنْ تَنْتَصِرُ بِهِ لِدِينِكَ وَلاتَسْتَبْدِلْ بِي غَيْرِي } \stoparde Now I want a distance between the left german text and the middle vertical line (which is just the rightframe of the first cell), and also a distance between the arabic text and this same rightframe. So the texts should not glue to the vertical line. How to do that? Thanks Huseyin ___ 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] Distanc to rightframe in TABLE
Am 15.05.2013 um 08:59 schrieb H. Özoguz h.oezo...@mmnetz.de: Hi, the german-arabic-transliteration-environment becomes, with your kind help, better and better. Next question, see this standard-code: \definefont[amiri][file:UthmanTN1Ver10.ttf*arabic at 10 pt] % or amiri-regular.ttf \define[1]\Arab{\setupalign[r2l]\amiri#1} %\showgrid \startsetups[arde] \setupTABLE[c][1][rightframe=on] \stopsetups \def\startarde {\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]} \def\stoparde {\eTABLE} \define[2]\arde {\bTR \bTD [style={\setupinterlinespace[line=3ex]}] #1\eTD \bTD[align=r2l,style={\amiri\setupinterlinespace[line=5ex]}] #2 \eTD \eTR} \define[2]\arde {\bTR \bTD[roffset=1ex,…]#1\eTD \bTD[loffset=1ex,…]#2\eTD \eTR} Wolfgang ___ 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] Processing URL with TeX macros
Hello ConTeXist. I would like get right URL, when I use \useURL command. Is there possibilities put any TeX macro to first and second parameter? It was clear to me why this is about, but I need it for one application (in the cycle I change URL addresses). Thanx Jaroslav Hajtmar Here is my minimal example: \setupinteraction[state=start] \def\myurl{http://mydomain.com/path/} \def\myfile{mypdffile.pdf} \def\urltext{This is link to my file} \useURL[okexample][http://mydomain.com/path][mypdffile.pdf][\urltext] \useURL[problemexample][\myurl][\myfile][\urltext] \starttext \from[okexample] -- OK \from[problemexample] -- link problem \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 ___
Re: [NTG-context] MPLibrabray txt broken!?
Hi Hans,Am 14.05.2013 um 19:57 schrieb Hans Hagen pra...@wxs.nl:On 5/14/2013 2:23 PM, Keith J. Schultz wrote:Hi All, Hans,I want to use build_parshape and shapetext with the latest standaloneConTeXt ver: 2013.05.12 22:16 MKIV beta fmt: 2013.5.13 int:english/englishwith the Example below I get a small box with the top part of a T in it.Interresting enough the example works with the TexLive 2012 version! [snip, snip]So something is astray! I do know that we are using a newer Metapost, butI assume the problem is the library or how the temporary files are generatedor used.some kind of initialization issue .. i uploaded a fix (crossed fingers) Well, the fix work in a way , yet it has introduced a new problem, or revealed an unnoticed one. The text is now display in the shape, yet there is no drawing preformed! The draw of the path is no preformed. It is even worst. Metapost seems to be doing no drawing at all, even in over overlays! The all are related to a similar error :metapost initializing number mode 'scaled'metapost output file 'mpout.log', mode 'w', ftype 'log'metapost output file 'test2-mpgraph.mpd', mode 'w', ftype 0metapost output file 'test2-mpgraph.mpd', mode 'w', ftype 0metapost error: (/Users/quayjay/context/tex/texmf-context/metapost/context/base/mp-text.mpiv) PageFraction false! Equation cannot be performed (numeric=boolean).to be read again :* ...0pt; VSize:=597.51323pt; PageFraction:=01: (1-1)/(0-1)else:1fi; defau...! Extra tokens will be flushed.to be read again :* ...0pt; VSize:=597.51323pt; PageFraction:=01: (1-1)/(0-1)else:1fi; defau... I have attached the complete log file and the source. The error occurs, also, when the graphic is framed and put into a picture environment. I had deleted the standalone version and reinstalled with: sh ./first-setup.sh --modules=all --engine=luatex I have running a MacBook Pro 17" with OSX 10.8.3 I will also attach the result(test2.pdf) and the result from TexLive 2012(expected.pdf).regards Keith. test2.tex Description: Binary data test2.log Description: Binary data test2.pdf Description: Adobe PDF document expected.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Processing URL with TeX macros
Am 15.05.2013 um 09:23 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello ConTeXist. I would like get right URL, when I use \useURL command. Is there possibilities put any TeX macro to first and second parameter? It was clear to me why this is about, but I need it for one application (in the cycle I change URL addresses). Why can you change the \def lines but not the \useURL settings, both are set at the begin of the document? Thanx Jaroslav Hajtmar Here is my minimal example: \setupinteraction[state=start] \def\myurl{http://mydomain.com/path/} \def\myfile{mypdffile.pdf} \def\urltext{This is link to my file} \useURL[okexample][http://mydomain.com/path][mypdffile.pdf][\urltext] \useURL[problemexample][\myurl][\myfile][\urltext] \expanded{\useURL[…][…][…][…]} Wolfgang ___ 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] Distanc to rightframe in TABLE
\define[2]\arde {\bTR \bTD[roffset=1ex,…]#1\eTD \bTD[loffset=1ex,…]#2\eTD \eTR} Wolfgang Thanks Wolfgang! And one more question to this table: Whythe left german text is aligned left, and the arabic text is justified? How to make both flushleft/flushright? If I add align=flushright, then the align=r2l attribute is deactivated. Thanks. Huseyin ___ 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] Distanc to rightframe in TABLE
Am 15.05.2013 um 09:46 schrieb H. Özoguz h.oezo...@mmnetz.de: \define[2]\arde {\bTR \bTD[roffset=1ex,…]#1\eTD \bTD[loffset=1ex,…]#2\eTD \eTR} Wolfgang Thanks Wolfgang! And one more question to this table: Whythe left german text is aligned left, and the arabic text is justified? How to make both flushleft/flushright? If I add align=flushright, then the align=r2l attribute is deactivated. Use align={r2l,flushright}. Wolfgang ___ 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] MkIV problem+fix with \framed[location=depth / height / hanging]
On 5/14/2013 11:00 PM, Sietse Brouwer wrote: --- This is the fixed code \installframedlocator \v!hanging % best with strut=no {} - {\dp\b_framed_normal\scratchdimen + {\scratchdimen\ht\b_framed_normal + \setbox\b_framed_normal\hbox{\lower\scratchdimen\box\b_framed_normal}% + \dp\b_framed_normal\scratchdimen \ht\b_framed_normal\zeropoint \hbox{\box\b_framed_normal}} \installframedlocator \v!depth {} - \ht\b_framed_normal\dimexpr\ht\b_framed_normal-\strutdp\relax + {\setbox\b_framed_normal\hbox{\lower\strutdp\box\b_framed_normal}% + \ht\b_framed_normal\dimexpr\ht\b_framed_normal-\strutdp\relax \dp\b_framed_normal\strutdp \hbox{\box\b_framed_normal}} \installframedlocator \v!height {} - {\dp\b_framed_normal\dimexpr\ht\b_framed_normal-\strutht\relax + {\scratchdimen\dimexpr \ht\b_framed_normal - \strutht \relax + \setbox\b_framed_normal\hbox{\lower\scratchdimen\box\b_framed_normal}% + \dp\b_framed_normal\dimexpr\ht\b_framed_normal-\strutht\relax \ht\b_framed_normal\strutht \hbox{\box\b_framed_normal}} no need for the last \hbox then .. \installframedlocator \v!hanging % best with strut=no {} {\scratchdimen\ht\b_framed_normal \setbox\b_framed_normal\hbox{\lower\scratchdimen\box\b_framed_normal}% \dp\b_framed_normal\scratchdimen \ht\b_framed_normal\zeropoint \box\b_framed_normal} \installframedlocator \v!depth {} {\setbox\b_framed_normal\hbox{\lower\strutdp\box\b_framed_normal}% \ht\b_framed_normal\dimexpr\ht\b_framed_normal-\strutdp\relax \dp\b_framed_normal\strutdp \box\b_framed_normal} \installframedlocator \v!height {} {\scratchdimen\dimexpr \ht\b_framed_normal - \strutht \relax \setbox\b_framed_normal\hbox{\lower\scratchdimen\box\b_framed_normal}% \dp\b_framed_normal\dimexpr\ht\b_framed_normal-\strutht\relax \ht\b_framed_normal\strutht \box\b_framed_normal} - 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] MkIV problem+fix with \framed[location=depth / height / hanging]
On 5/14/2013 11:00 PM, Sietse Brouwer wrote: \setupcolors[state=start] this is no longer needed in mkiv where colors are enabled by default \setupblackrules[depth=\strutdepth,height=\strutheight,width=1mm,color=red] ... .. added to test zip ... - 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] Processing URL with TeX macros
Hello Wolfgang. Thanks for the reply. Now it's even more complicated. I think I need a combination of expanded and unexpanded macros. Both of the following examples do not work quite right. Thanx Jaroslav Hajtmar Here is other example: \setupinteraction[state=start] \def\myurl{http://mydomain.com/path} \def\myfile{mypdffile\recurselevel.pdf} \def\urltext{This is link to my file \recurselevel} \unexpanded\def\unexpurltext{This is other link to my file \recurselevel} \expanded{\useURL[problemexample][\myurl][\myfile][\urltext]} \useURL[otherproblemexample][\myurl][\myfile][\unexpurltext] \starttext \dorecurse{5}{ \from[problemexample] \par } \blank[big] \dorecurse{5}{ \from[otherproblemexample] \par } \stoptext Am 15.05.2013 um 09:23 schrieb Jaroslav Hajtmarhajt...@gyza.cz: Hello ConTeXist. I would like get right URL, when I use \useURL command. Is there possibilities put any TeX macro to first and second parameter? It was clear to me why this is about, but I need it for one application (in the cycle I change URL addresses). Why can you change the \def lines but not the \useURL settings, both are set at the begin of the document? Thanx Jaroslav Hajtmar Here is my minimal example: \setupinteraction[state=start] \def\myurl{http://mydomain.com/path/} \def\myfile{mypdffile.pdf} \def\urltext{This is link to my file} \useURL[okexample][http://mydomain.com/path][mypdffile.pdf][\urltext] \useURL[problemexample][\myurl][\myfile][\urltext] \expanded{\useURL[…][…][…][…]} Wolfgang ___ 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] MkIV problem+fix with \framed[location=depth / height / hanging]
Sietse wrote: \setupcolors[state=start] Hans wrote: this is no longer needed in mkiv where colors are enabled by default Leaving it in allowed me to use the same code to test MkII and MkIV. :-) .. added to test zip ... I haven't heard of that. Is that the unofficial test suite [1], or is it a zip in the distribution somewhere? [1] https://github.com/melmothx/context-unofficial-test-suite Cheers, Sietse ___ 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] MkIV problem+fix with \framed[location=depth / height / hanging]
Am 15.05.2013 um 12:26 schrieb Sietse Brouwer sbbrou...@gmail.com: Hans wrote: .. added to test zip ... I haven't heard of that. Is that the unofficial test suite [1], or is it a zip in the distribution somewhere? [1] https://github.com/melmothx/context-unofficial-test-suite You can find it on the pragma site: http://www.pragma-ade.nl/download-1.htm Wolfgang ___ 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] MPLibrabray txt broken!?
On 5/15/2013 12:15 PM, Keith J. Schultz wrote: O.K. just rebuilt formats! i had that already fixed last night so you probably missed an upload 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] Makeup layout
Hi Andrew, Andrew wrote: I have heard that layers can be used. But there is no section on layers in the current reference manual. Where does one find information on this aspect of ConTeXt? You are right that there is no complete, from-the-ground-up, description and explanation of the layers mechanism. A reasonably good text, however, is in the MetaFun manual [1,2]: section 5.3 (Positional graphics More layers). The Pseudo columns (pdfpages 11-13) section of the It's in the details manual [13 is shorter and covers only a few specific use cases, but it's a nice little start and has some information that the MetaFun manual does not have. The MWE below is based mainly on that text. NB: I rarely use layers, so the MWE may not reflect best practices. [1] print version: http://www.pragma-ade.com/general/manuals/metafun-p.pdf [2] screen version: http://www.pragma-ade.com/general/manuals/metafun-s.pdf [3] http://www.pragma-ade.com/general/manuals/details.pdf I hope this will help you on your way a bit! Best wishes, Sietse \setuppapersize[A6] \setuplayout [columns=3, % add a horizontal grid, 3 equal columns columndistance=12pt,]% 12 pt(?) distance between them % The layer `textlayer` will be the background % of the `text` typesetting area. \definelayer[textlayer] \setupbackgrounds [text] [background=textlayer] \showgrid % make the mechanism visible \starttext % Start the title page, sans page number etc. \startstandardmakeup % Using column and line positions the left end of the box's % baseline \setlayer [textlayer] [column=3,line=10,location=grid] {\ruledvtop {\hsize\layoutcolumnwidth \definedfont[Regular sa 2]nitty-\par gritty}} % Using x and y offsets the top left of the box from the top % left corner \setlayer [textlayer] [x=1cm, y=1cm] {\blackrule[width=1cm, height=1cm]} \setlayer [textlayer] [x=1cm, line=10] {\ruledvtop {\hsize\layoutcolumnwidth \definedfont[Regular sa 2]This \par is}} \stopstandardmakeup \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 ___
Re: [NTG-context] footnote rollover message in PDFs (with interaction)
Thanks, Hans. I expect that there will be more interest from publishers now as ebooks become more common, move to diverse platforms, and cease from being digital shadows of printed volumes. Also of interest would be support that would allow one to recover from taking an internal hyperlink (i.e., returning to the original location after taking an internal link to another location/page). Alan On Tue, May 14, 2013 at 1:59 PM, Hans Hagen pra...@wxs.nl wrote: On 5/14/2013 1:46 PM, Alan Bowen wrote: The PDFs that I produce are now being read on a number different platforms, some with very small screens. So, in the case of footnotes at least, I was wondering if there was a way to produce PDFs such that when the cursor passes over the footnote call, the popup message includes the entire footnote and not just “Go to page xx”. i'm thinking of cooking up some support like that for ebook like applications but i'll wait till i run into a proper device (also, it needs support from the viewer; there are several solutions possible) ... i did a lot of that stuff over a decade ago but there waas never much interest in it (from publishers) 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 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/http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnote rollover message in PDFs (with interaction)
On 5/15/2013 2:20 PM, Alan Bowen wrote: Thanks, Hans. I expect that there will be more interest from publishers now as ebooks become more common, move to diverse platforms, and cease from being digital shadows of printed volumes. Also of interest would be support that would allow one to recover from taking an internal hyperlink (i.e., returning to the original location after taking an internal link to another location/page). afaik that's already the case (two way coupling) but it goes unnoticed if one's on the same page - 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] Support for Thai in ConTeXt
On Tue, May 14, 2013 at 6:17 PM, Hans Hagen wrote: On 5/14/2013 6:07 PM, luigi scarso wrote: I Hope that someone can help here as Mojca mentioned thai at bachotex i'll add the patterns as a start given specs, examples and time, adding support for thai to context shouldn't be too hard (assuming that there are users) But it's not trivial either. There's an opensource project implementing word segmentation: http://linux.thai.net/projects/swath The specification (someone's thesis) can be found here: http://www.cs.cmu.edu/~paisarn/papers/thesis99.pdf The ugly part of pdfTeX approach is that it requires an external text processor to digest an input TeX document and return a copy with word segmentation. Then pdfTeX is run on the resulting file. XeTeX can use ICU library to do the segmentation. In LuaTeX one would have to plug the word segmentation somewhere (but writing that part is slightly non-trivial). Mojca ___ 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] footnote rollover message in PDFs (with interaction)
Yes, two-way coupling for footnotes works (though as you say, it goes unnoticed if everything is no the same page. But what of other hyperlink links, say, a reference to a chapter or a section? On Wed, May 15, 2013 at 9:14 AM, Hans Hagen pra...@wxs.nl wrote: On 5/15/2013 2:20 PM, Alan Bowen wrote: Thanks, Hans. I expect that there will be more interest from publishers now as ebooks become more common, move to diverse platforms, and cease from being digital shadows of printed volumes. Also of interest would be support that would allow one to recover from taking an internal hyperlink (i.e., returning to the original location after taking an internal link to another location/page). afaik that's already the case (two way coupling) but it goes unnoticed if one's on the same page --**--**- 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 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/http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MPLibrabray txt broken!?
Hi Hans, I had updated around 2100 last night. Did not catch your upload after 2300. Sorry. Am 15.05.2013 um 13:04 schrieb Hans Hagen pra...@wxs.nl: On 5/15/2013 12:15 PM, Keith J. Schultz wrote: O.K. just rebuilt formats! i had that already fixed last night so you probably missed an upload Hans ___ 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] footnote rollover message in PDFs (with interaction)
On 5/15/2013 4:13 PM, Alan Bowen wrote: Yes, two-way coupling for footnotes works (though as you say, it goes unnoticed if everything is no the same page. But what of other hyperlink links, say, a reference to a chapter or a section? when setting up a section head you can say interaction=list - 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] font trickery
Hi Georg, On Wed, 15 May 2013 00:09:22 -0600, Georg Duffner g.duff...@gmail.com wrote: I’d prefer to stay with the AFF syntax which is well established. I wonder if the latest, virtually frozen FontForge supports the current AFF syntax or still uses an earlier version. Before AFF was complete George added the missing functionality but Adobe did not accept his additions. The former luatex support was probably based on George's modifications to the AFF syntax. Hans and Taco know better, but I suppose a newer implementation of AFF in mkiv could be done in lua without touching the binary. But anyway, this may very well be beyond Hans' current plans for font trickery, but it's fun to discuss possibilities. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] Support for Thai in ConTeXt
On 5/15/2013 4:09 PM, Mojca Miklavec wrote: On Tue, May 14, 2013 at 6:17 PM, Hans Hagen wrote: On 5/14/2013 6:07 PM, luigi scarso wrote: I Hope that someone can help here as Mojca mentioned thai at bachotex i'll add the patterns as a start given specs, examples and time, adding support for thai to context shouldn't be too hard (assuming that there are users) But it's not trivial either. It depends ... we're using a dictionary to determine word boundaries, aren't we? I'm pretty sure that I've done more complex coding. There's an opensource project implementing word segmentation: http://linux.thai.net/projects/swath The specification (someone's thesis) can be found here: http://www.cs.cmu.edu/~paisarn/papers/thesis99.pdf Ok, so there are some ttext files there with words. The ugly part of pdfTeX approach is that it requires an external text processor to digest an input TeX document and return a copy with word segmentation. Then pdfTeX is run on the resulting file. XeTeX can use ICU library to do the segmentation. In LuaTeX one would have to plug the word segmentation somewhere (but writing that part is slightly non-trivial). I just did a quick test using those dictionaries (abusing some code that i already had on my machine). Quite doable. It all depends on having the dictionaries available (on the garden or in the distribution). Anyhow, it's not that much font related, just language / script support and we already have that for some languages and adding thai to it doesn't hurt. Of course we'd need some testing. It doesn't make much sense to add features to context that no one would use at some point. But ... Luigi is already teaching himself Thai, so ... 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] Support for Thai in ConTeXt
On Wed, May 15, 2013 at 5:20 PM, Hans Hagen pra...@wxs.nl wrote: But ... Luigi is already teaching himself Thai, so ... no no, just connecting people on different ml. Currently I'm in a completely different area -- luigi ___ 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] Off-topic: Convert PDF to (Con/La)TeX
Al 13/05/13 09:55, En/na luigi scarso ha escrit: On Sun, May 12, 2013 at 4:32 PM, Xan dxpubl...@telefonica.net mailto:dxpubl...@telefonica.net wrote: 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. Have you seen the mudraw program of mupdf http://www.mupdf.com/ ? It has a -t switch that outputs txt and a -tt and -ttt switches that output xml. -- luigi Thank you for answering and sorry for delay. I will check it, but I suspect that if I have $$\int_{i=1}^{\infty} x^2$$ in one latex document and it generates pdf, then mupdf -t of that document does not generate that formula, else S i=1 x². Thanks, Xan. ___ 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] Off-topic: Convert PDF to (Con/La)TeX
\starttext $\int_{i=1}^{\infty} x^2$ \stoptext $ mudraw -ttt test.pdf ?xml version=1.0? document name=test.pdf warning: ignoring surrogate pair mapping in cmap page block bbox=280.534 67.7741 286.392 84.595 line bbox=280.534 67.7741 286.392 84.595 span bbox=280.534 67.7741 286.392 84.595 font=LMRoman12-Regular size=11.9552 char bbox=280.534 67.7741 286.392 84.595 c=1/ /span /line /block block bbox=75.4124 101.448 84.9435 156.849 line bbox=75.4124 101.448 84.9435 156.849 span bbox=75.4124 101.448 84.9435 156.849 font=LatinModernMath-Regular size=8.36861 char bbox=75.4124 101.448 84.9435 156.849 c=#x221e;/ /span /line /block block bbox=72.2341 100.779 80.1837 179.922 line bbox=72.2341 100.779 80.1837 179.922 span bbox=72.2341 100.779 80.1837 179.922 font=LatinModernMath-Regular size=11.9552 char bbox=72.2341 100.779 80.1837 179.922 c=#x222b;/ /span /line /block block bbox=68.8824 124.759 83.5355 180.159 line bbox=68.8824 124.759 83.5355 180.159 span bbox=68.8824 124.759 83.5355 180.159 font=LatinModernMath-Regular size=8.36861 char bbox=68.8824 124.759 70.5728 180.159 c=u/ char bbox=70.5728 124.759 72.2631 180.159 c=#xdc56;/ char bbox=72.2633 124.759 78.7736 180.159 c==/ char bbox=78.7741 124.759 83.5355 180.159 c=1/ /span /line /block block bbox=87.513 100.785 99.7105 179.928 line bbox=87.513 100.785 99.7105 179.928 span bbox=87.513 100.785 94.3509 179.928 font=LatinModernMath-Regular size=11.9552 char bbox=87.513 100.785 94.3509 179.928 c=?/ /span span bbox=94.9491 109.213 99.7105 164.614 font=LatinModernMath-Regular size=8.36861 char bbox=94.9491 109.213 99.7105 164.614 c=2/ /span /line /block /page /document On Wed, May 15, 2013 at 6:14 PM, Xan dxpubl...@telefonica.net wrote: Al 13/05/13 09:55, En/na luigi scarso ha escrit: On Sun, May 12, 2013 at 4:32 PM, Xan dxpubl...@telefonica.net wrote: 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.htmlfor 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. Have you seen the mudraw program of mupdf http://www.mupdf.com/ ? It has a -t switch that outputs txt and a -tt and -ttt switches that output xml. -- luigi Thank you for answering and sorry for delay. I will check it, but I suspect that if I have $$\int_{i=1}^{\infty} x^2$$ in one latex document and it generates pdf, then mupdf -t of that document does not generate that formula, else S i=1 x². Thanks, Xan. -- luigi ___ 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] font trickery
On Wed, May 15, 2013 at 08:51:28AM -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Georg, On Wed, 15 May 2013 00:09:22 -0600, Georg Duffner g.duff...@gmail.com wrote: I’d prefer to stay with the AFF syntax which is well established. I wonder if the latest, virtually frozen FontForge supports the current AFF syntax or still uses an earlier version. Before AFF was complete George added the missing functionality but Adobe did not accept his additions. The former luatex support was probably based on George's modifications to the AFF syntax. Hans and Taco know better, but I suppose a newer implementation of AFF in mkiv could be done in lua without touching the binary. Right, the version of FontForge included in LuaTeX uses the old syntax, FontForge has dropped it for the new Adobe syntax for few years now, but it didn’t make its way into LuaTeX. Regards, Khaled But anyway, this may very well be beyond Hans' current plans for font trickery, but it's fun to discuss possibilities. I think there is already some (not documented way) to achieve the same effect in pure Lua code (Hans uses it to implement tlig and the likes). 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] bonum
Hi, There is now support for math in bonum: http://www.pragma-ade.com/specials/fonts/math-repertoire-bonum.pdf 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 ___