Re: [NTG-context] Find all words set into the margin
On Mon, 26 Nov 2012 13:52:52 +0100 "H. Özoguz" wrote: > I use > > \definefontfeature[default][default][expansion=quality,protrusion=quality] > > \setupalign[hz,hanging] > > \usetypescript[times] > > \setupbodyfont[times,11pt] > > > \setuptolerance[verystrict] > > > Is there a command or a macro to find all occurences in a file (or > projekt), where some word is printed into the margin? (Maybe because > of bad hyphenation or something else.) - Would be perfect for manual > check-up and corrections! > > > Thanks. > Huseyin > > You could try setting \overfullrule=5pt This is an original TeX primitive. Plain TeX sets it at 5pt. You can then scan pages looking for a black rectangle in the right margin. I cannot determine which code to search for in e.g., grep but perhaps you can. I just tested it and \overfillrule works with MKIV context if it is set for some value other than zero. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.html ___ 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] Find all words set into the margin
Am 27.11.2012 22:39, schrieb ntg-context-requ...@ntg.nl: (just run your docs with \setupalign[verytolerant,stretch] and you're okay in most cases) That is not possible, because I want to have very nice word-distances, and I want the margin-runs to be there, to correct them myselve manually. So for now, I will go through every single page, and look for black boxes (or in your gimmick red boxes). 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] Find all words set into the margin
On 11/27/2012 8:22 PM, "H. Özoguz" wrote: Am 27.11.2012 18:37, schrieb ntg-context-requ...@ntg.nl: blue: natural width is larger than hsize green: natural width is smaller than hsize magenta: natural width is smaller than hsize (raggedright) cyan: natural width is smaller than hsize (raggedleft) yellow: natural width is smaller than hsize (raggedcenter) red: probably bad news I'm pretty sure that in a year or so I've forgotten about (as I already had forgotten about some experimental early luatex code doing something similar). Thanks, thats quite nice. Is it pirincipal possible to programm this macro I am looking for, which lists all "reds" (in your gimmick) in a TOC with pagenumbers? (I am not asking you to do that, just curious, maybe I want to programm some macro myself one day, not only getting gifts from you and all other programmers :)) sure that's possible but not now (just run your docs with \setupalign[verytolerant,stretch] and you're okay in most cases) - 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 ___
[NTG-context] Find all words set into the margin
Am 27.11.2012 18:37, schrieb ntg-context-requ...@ntg.nl: blue: natural width is larger than hsize green: natural width is smaller than hsize magenta: natural width is smaller than hsize (raggedright) cyan: natural width is smaller than hsize (raggedleft) yellow: natural width is smaller than hsize (raggedcenter) red: probably bad news I'm pretty sure that in a year or so I've forgotten about (as I already had forgotten about some experimental early luatex code doing something similar). Thanks, thats quite nice. Is it pirincipal possible to programm this macro I am looking for, which lists all "reds" (in your gimmick) in a TOC with pagenumbers? (I am not asking you to do that, just curious, maybe I want to programm some macro myself one day, not only getting gifts from you and all other programmers :)) 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] Find all words set into the margin
On 11/27/2012 11:19 AM, Sietse Brouwer wrote: * The log, like Luigi mentions, reports the source location of overfull hboxes. This might help you at least a bit in finding the output page. Overfull \hbox (15.80962pt too wide) in paragraph at lines 1--25 \3>modern-designsize-12pt-rm-tf-0--0 par-al-lel, and| i uploaded a beta with some gimmicks \starttext \showjustification \showframe {\notragged\input ward \blank} {\raggedright \input ward \blank} {\raggedleft \input ward \blank} {\raggedcenter \input ward \blank} {\hsize1cm \notragged x x xx xxx\par} \blank \framed[width=10cm,align=middle]{test} \stoptext blue: natural width is larger than hsize green: natural width is smaller than hsize magenta: natural width is smaller than hsize (raggedright) cyan: natural width is smaller than hsize (raggedleft) yellow: natural width is smaller than hsize (raggedcenter) red: probably bad news I'm pretty sure that in a year or so I've forgotten about (as I already had forgotten about some experimental early luatex code doing something similar). 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] Find all words set into the margin
Huseyin wrote: >> Is there a command like "\showallmarginruns", which gives something like >> this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the >> blocks of \version[temporary], that would be perfect for me. >> >> Could I make clear, what I am looking for (sorry for my leck of English)? Yes, that is very clear. Your English is very good. I have no answer, but some pointers: * Printing these blocks is done by using the TeX primitive \overfullrule (setting it to 5pt, specifically). * Patrick Gundlach wrote a LuaTeX callback that changes the color of the \overfullrule, but it uses the post_linebreak_filter callback, and I don't know if the page number information is known yet at that point. * The log, like Luigi mentions, reports the source location of overfull hboxes. This might help you at least a bit in finding the output page. Overfull \hbox (15.80962pt too wide) in paragraph at lines 1--25 \3>modern-designsize-12pt-rm-tf-0--0 par-al-lel, and| Cheers, -Sietse On Tue, Nov 27, 2012 at 8:23 AM, luigi scarso wrote: > On Tue, Nov 27, 2012 at 7:36 AM, "H. Özoguz" wrote: >> Am 26.11.2012 18:01, schrieb ntg-context-requ...@ntg.nl: Is there a command or a macro to find all occurences in a file (or projekt), >where some word is printed into the margin? (Maybe because of bad >hyphenation or something else.) - Would be perfect for manual check-up > and >corrections! >>> >>> \version[temporary] >>> prints blocks next to lines that run into the margin. >>> http://wiki.contextgarden.net/Command/version >>> Is that what you're looking for? >>> >>> --Sietse >> >> >> Thanks for that! These black blocks are quite useful, but not as powerful, >> as I am looking for. >> >> I am looking for a command, which builds a register of all occurences of >> these blocks. Imagine I am working on a 300-page book, than I have to check >> every single page for these margin-runs (f.e. after changing the layout), >> with these black boxes its much easier, of course, but still a mess. >> >> Is there a command like "\showallmarginruns", which gives something like >> this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the >> blocks of \version[temporary], that would be perfect for me. >> >> Could I make clear, what I am looking for (sorry for my leck of English)? > Not an answer, but do you have seen the informations of the log ? > ___ > 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 > ___ ___ 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] Find all words set into the margin
On Tue, Nov 27, 2012 at 7:36 AM, "H. Özoguz" wrote: > Am 26.11.2012 18:01, schrieb ntg-context-requ...@ntg.nl: >>> >>> Is there a command or a macro to find all occurences in a file (or >>> projekt), >>> >where some word is printed into the margin? (Maybe because of bad >>> >hyphenation or something else.) - Would be perfect for manual check-up >>> > and >>> >corrections! >> >> \version[temporary] >> prints blocks next to lines that run into the margin. >> http://wiki.contextgarden.net/Command/version >> Is that what you're looking for? >> >> --Sietse > > > Thanks for that! These black blocks are quite useful, but not as powerful, > as I am looking for. > > I am looking for a command, which builds a register of all occurences of > these blocks. Imagine I am working on a 300-page book, than I have to check > every single page for these margin-runs (f.e. after changing the layout), > with these black boxes its much easier, of course, but still a mess. > > Is there a command like "\showallmarginruns", which gives something like > this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the > blocks of \version[temporary], that would be perfect for me. > > Could I make clear, what I am looking for (sorry for my leck of English)? Not an answer, but do you have seen the informations of the log ? ___ 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] Find all words set into the margin
Am 26.11.2012 18:01, schrieb ntg-context-requ...@ntg.nl: Is there a command or a macro to find all occurences in a file (or projekt), >where some word is printed into the margin? (Maybe because of bad >hyphenation or something else.) - Would be perfect for manual check-up and >corrections! \version[temporary] prints blocks next to lines that run into the margin. http://wiki.contextgarden.net/Command/version Is that what you're looking for? --Sietse Thanks for that! These black blocks are quite useful, but not as powerful, as I am looking for. I am looking for a command, which builds a register of all occurences of these blocks. Imagine I am working on a 300-page book, than I have to check every single page for these margin-runs (f.e. after changing the layout), with these black boxes its much easier, of course, but still a mess. Is there a command like "\showallmarginruns", which gives something like this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the blocks of \version[temporary], that would be perfect for me. Could I make clear, what I am looking for (sorry for my leck of English)? 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 ___
[NTG-context] Find all words set into the margin
I use \definefontfeature[default][default][expansion=quality,protrusion=quality] \setupalign[hz,hanging] \usetypescript[times] \setupbodyfont[times,11pt] \setuptolerance[verystrict] Is there a command or a macro to find all occurences in a file (or projekt), where some word is printed into the margin? (Maybe because of bad hyphenation or something else.) - Would be perfect for manual check-up and corrections! 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 ___