gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Testing placeholders including free_text and tex_esca


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Testing placeholders including free_text and tex_escape
Date: Mon, 2 Feb 2015 21:51:23 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Feb 02, 2015 at 08:18:10PM +0000, Jim Busser wrote:

> >> I was interested to test various placeholders and so, with Kirk selected 
> >> in order that Correspondence > Write letter would be available, 
> >> 
> >> - imported the following snippet, pretending that it was adequately 
> >> complete for LaTex, and
> >> 
> >> - tried running it:
> >> 
> >>    % ================================================================
> >>    % Prompt for an inside address and salutation:
> >>    $<free_text::Inside address and salutation::9999>$ 
> > 
> > This is most definitely not sufficient for a successful LaTeX run.
> > 
> >     http://www.minimalbeispiel.de/
> 
> Unless my self-assessment has deteriorated, I have mostly attempted my own 
> diagnosis of problems before asking solutions.
> 
> In this case, my reference was this GNUmed wiki page
> 
>       http://wiki.gnumed.de/bin/view/Gnumed/GmManualLettersForms#Placeholders
> 
> where I had written
> 
>       Placeholders come in the format
>       
> $<placeholder-name::usually-optional-arguments::usually-optional-maximum-length>$
> 
> which accords with source code inline comments (lines 76-81) in
>       gnumed/gnumed/client/wxpython/gmMacro.py
> 
> as follows:
> 
>       • # the following must satisfy the pattern "$<name::args::(optional) 
> max string length>$" when used
>       • __known_variant_placeholders = {
>       •     # generic:
>       •     u'free_text': u"""show a dialog for entering some free text:
>       •         args: <message> shown in input dialog, must not contain '//' 
> or '::',
>       •         will cache input per <message>""",
> 
> So I had trouble to see what from GNUmed's point of view was missing.

There's nothing missing from GNUmed's point of view as far as
placeholders are concerned. However, LaTeX needs more
boilerplate for a processable document. Maybe I misinterpreted

> >> - imported the following snippet, pretending that it was adequately 
> >> complete for LaTex, and
> >> 
> >> - tried running it:
> >> 
> >>    % ================================================================
> >>    % Prompt for an inside address and salutation:
> >>    $<free_text::Inside address and salutation::9999>$ 

as meaning those 3 lines were _all_ of the document you
wanted LaTeX to process.

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]