Re: [NTG-context] Trimming strings and Lua string.trim question

2014-03-05 Thread Hans Hagen
On 3/5/2014 5:45 AM, Rik Kabel wrote: I am trying to strip all leading and trailing whitespace from a string. I have tried two methods, neither of which is satisfactory. The first method uses \ignorespaces and \removeunwantedspaces. This fails to strip leading and trailing newlines. The second

Re: [NTG-context] Selectfont: extend and slant features

2014-03-05 Thread Joshua Krämer
On 2014-03-02, 0:59, Hans Hagen wrote: you can use dynamic features so apply additional ones any moment, but some features line slanting and extending are font instance bound as there the dimensions change and the abckend has to do some work Thanks, I understand. Joshua Krämer

Re: [NTG-context] Selectfont: extend and slant features

2014-03-05 Thread Joshua Krämer
On 2014-03-01, 12:48, Wolfgang Schuster wrote: Is there any real purpose for this feature? The letters in the second and third line don’t look beautiful because the horizontal and vertical strokes don’t match. As I said, I'm working on a typeface design. When one tries to optically match an

Re: [NTG-context] Selectfont: extend and slant features

2014-03-05 Thread Hans Hagen
On 3/5/2014 3:19 PM, Joshua Krämer wrote: On 2014-03-01, 12:48, Wolfgang Schuster wrote: Is there any real purpose for this feature? The letters in the second and third line don’t look beautiful because the horizontal and vertical strokes don’t match. Another use-case for the extend feature

Re: [NTG-context] Trimming strings and Lua string.trim question

2014-03-05 Thread Rik Kabel
On 2014-03-05 03:24, Hans Hagen wrote: On 3/5/2014 5:45 AM, Rik Kabel wrote: I am trying to strip all leading and trailing whitespace from a string. I have tried two methods, neither of which is satisfactory. The first method uses \ignorespaces and \removeunwantedspaces. This fails to strip

Re: [NTG-context] Trimming strings and Lua string.trim question

2014-03-05 Thread Wolfgang Schuster
Am 05.03.2014 um 16:07 schrieb Rik Kabel cont...@rik.users.panix.com: striplong It would be nice if striplong worked, but the example fails when string.striplong is used in place of string.strip. The log says: ! LuaTeX error [string \directlua ]:1: attempt to call field 'striplong'

[NTG-context] Placing marks at edge.

2014-03-05 Thread john Culleton
You have seen them in books from O'Reilly and even in books like TeX for the Impatient: markings on the outer edge of each odd page that bleed past the page edge indicating a particular chapter. In the last named they are a simple box with very fine horizontal black lines. In some O'Reilly books

Re: [NTG-context] Trimming strings and Lua string.trim question

2014-03-05 Thread Wolfgang Schuster
Am 05.03.2014 um 16:18 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: Am 05.03.2014 um 16:07 schrieb Rik Kabel cont...@rik.users.panix.com: striplong It would be nice if striplong worked, but the example fails when string.striplong is used in place of string.strip. The log

Re: [NTG-context] Trimming strings and Lua string.trim question

2014-03-05 Thread Rik Kabel
On 2014-03-05 10:18, Wolfgang Schuster wrote: Am 05.03.2014 um 16:07 schrieb Rik Kabel cont...@rik.users.panix.com mailto:cont...@rik.users.panix.com: striplong It would be nice if striplong worked, but the example fails when string.striplong is used in place of string.strip. The log

Re: [NTG-context] Placing marks at edge.

2014-03-05 Thread Willi Egger
Hello John, I was busy to make this some time ago. May that the attached file is a base for what you want to achieve. Kind regards Willi Thumbnails-MKIV.tex Description: Binary data On 5 mrt. 2014, at 16:43, john Culleton j...@wexfordpress.com wrote: You have seen them in books from

Re: [NTG-context] Selectfont: extend and slant features

2014-03-05 Thread Joshua Krämer
On 2014-03-05, 15:08, Hans Hagen wrote: On 3/5/2014 3:19 PM, Joshua Krämer wrote: Another use-case for the extend feature could be to stretch/compress a line (e.g. a title) to the desired length. If the line is only a little bit too long or too short, compressing or stretching all the

Re: [NTG-context] Trimming strings and Lua string.trim question

2014-03-05 Thread Rik Kabel
On 2014-03-05 10:54, Wolfgang Schuster wrote: Am 05.03.2014 um 16:18 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com: Am 05.03.2014 um 16:07 schrieb Rik Kabel cont...@rik.users.panix.com mailto:cont...@rik.users.panix.com: striplong It would

Re: [NTG-context] Placing marks at edge.

2014-03-05 Thread john Culleton
On Wed, 5 Mar 2014 20:49:03 +0100 Willi Egger cont...@boede.nl wrote: Hello John, I was busy to make this some time ago. May that the attached file is a base for what you want to achieve. Kind regards Willi Compiles correctly. A brilliant solution. That gets me 3/4 of the way to my