Re: [NTG-context] replace characters with bounding boxes
On Thu, 20 Jul 2017 15:05:31 -0600, Hans Hagenwrote: On 7/20/2017 8:06 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Thu, 20 Jul 2017 07:31:00 -0600, Hans Hagen wrote: On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Given a set body font and text, how does one replace all characters of that font in that text with the corresponding rectangular bounding boxes? Once an answer to the above is spelled out: How does one control the width of the lines which make up the bounding boxes? % \showglyphs or \definefontfeature[default][default][boundingbox=yes] \starttext \input sapolsky \stoptext Many thanks, Hans: a - Toggling \showglyphs does not have any effect. b - Is there a way to make the glyphs disappear and show only the boxes?* c- Is there a way to make the boxes frames instead backgrounds? *\start|stopcolor[white] doesn't work when boundingbox is yes. Well, it's a tracing option so don't expect miracles and integration with other features (like color). I'll add things like \definefontfeature[default][default][boundingbox=yes] \definefontfeature[default][default][boundingbox=background] \definefontfeature[default][default][boundingbox=frame] \definefontfeature[default][default][boundingbox={background,empty}] \definefontfeature[default][default][boundingbox={frame,empty}] \definefontfeature[default][default][boundingbox={frame,red,empty}] as additional (probably never used) featurecreep but for sure will forget to document it etc etc Thanks Hans. The current development workflow could use an option to see the bbox structure without seeing the glyphs (along with \showfontkerns as well)... a "geometric" view of the font in action so to speak. Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] replace characters with bounding boxes
On 7/20/2017 8:06 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Thu, 20 Jul 2017 07:31:00 -0600, Hans Hagenwrote: On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Given a set body font and text, how does one replace all characters of that font in that text with the corresponding rectangular bounding boxes? Once an answer to the above is spelled out: How does one control the width of the lines which make up the bounding boxes? % \showglyphs or \definefontfeature[default][default][boundingbox=yes] \starttext \input sapolsky \stoptext Many thanks, Hans: a - Toggling \showglyphs does not have any effect. b - Is there a way to make the glyphs disappear and show only the boxes?* c- Is there a way to make the boxes frames instead backgrounds? *\start|stopcolor[white] doesn't work when boundingbox is yes. Well, it's a tracing option so don't expect miracles and integration with other features (like color). I'll add things like \definefontfeature[default][default][boundingbox=yes] \definefontfeature[default][default][boundingbox=background] \definefontfeature[default][default][boundingbox=frame] \definefontfeature[default][default][boundingbox={background,empty}] \definefontfeature[default][default][boundingbox={frame,empty}] \definefontfeature[default][default][boundingbox={frame,red,empty}] as additional (probably never used) featurecreep but for sure will forget to document it etc etc Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] replace characters with bounding boxes
On Thu, 20 Jul 2017 07:31:00 -0600, Hans Hagenwrote: On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Given a set body font and text, how does one replace all characters of that font in that text with the corresponding rectangular bounding boxes? Once an answer to the above is spelled out: How does one control the width of the lines which make up the bounding boxes? % \showglyphs or \definefontfeature[default][default][boundingbox=yes] \starttext \input sapolsky \stoptext Many thanks, Hans: a - Toggling \showglyphs does not have any effect. b - Is there a way to make the glyphs disappear and show only the boxes?* c- Is there a way to make the boxes frames instead backgrounds? *\start|stopcolor[white] doesn't work when boundingbox is yes. Thanks again Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] replace characters with bounding boxes
On 7/20/2017 3:04 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Given a set body font and text, how does one replace all characters of that font in that text with the corresponding rectangular bounding boxes? Once an answer to the above is spelled out: How does one control the width of the lines which make up the bounding boxes? % \showglyphs or \definefontfeature[default][default][boundingbox=yes] \starttext \input sapolsky \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] replace characters with bounding boxes
Dear gang, Given a set body font and text, how does one replace all characters of that font in that text with the corresponding rectangular bounding boxes? Once an answer to the above is spelled out: How does one control the width of the lines which make up the bounding boxes? Thank you in advance. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___