Re: [docbook-apps] gentext.template.exists -- possible bug

2020-09-15 Thread Richard Hamilton
I have created a “fix” to this, but it is more complex than I expected. gentext.template.exists, as currently written, simply calls gentext.template and if the return value is null (‘’), it returns 0, otherwise it returns 1. However, because gentext.template has to consider locale, context, and

Re: [docbook-apps] gentext.template.exists -- possible bug

2020-08-26 Thread Richard Hamilton
Hi Bob, Thanks. I just filed this as an issue in github. I’ll take a look and see if I can find a fix. Dick --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net > On Aug 14, 2020, at 00:18, Bob Stayton wrote: > > I'm inclined to think that is a bug, b

Re: [docbook-apps] gentext.template.exists -- possible bug

2020-08-14 Thread Bob Stayton
I'm inclined to think that is a bug, because there are perhaps legitimate reasons for the text attribute of a particular gentext template to be empty in some languages. Bob Stayton b...@sagehill.net On 8/11/2020 6:06 PM, Richard Hamilton wrote: The template gentext.template.exists in the 1.0

[docbook-apps] gentext.template.exists -- possible bug

2020-08-11 Thread Richard Hamilton
The template gentext.template.exists in the 1.0 stylesheets has what may be a bug. This template says that it returns 1 if a gentext template exists for a particular context and name and 0 if the template doesn’t exist. However, if a gentext template does exist, but it has a text value that i