[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Formatting part of a header property
From: |
Thomas Morley |
Subject: |
Re: Formatting part of a header property |
Date: |
Tue, 18 Dec 2018 00:11:55 +0100 |
Am Mo., 17. Dez. 2018 um 21:36 Uhr schrieb David Kastrup <address@hidden>:
>
> Thomas Morley <address@hidden> writes:
>
> > Am Mo., 17. Dez. 2018 um 21:20 Uhr schrieb David Kastrup <address@hidden>:
> >>
> >> Thomas Morley <address@hidden> writes:
> >
> >> > The idea:
> >> >
> >> > #(define-markup-command (wordwrap-field layout props symbol)
> >> > (symbol?)
> > [doc-string dropped]
> >> > (let* ((m (chain-assoc-get symbol props)))
> >> > (cond ((string? m)
> >> > (wordwrap-string-markup layout props m))
> >> > ((markup-list? m)
> >> > (wordwrap-markup layout props m))
> >> > ((markup? m)
> >> > (interpret-markup layout props m))
> >> > (else empty-stencil))))
> >
> >> BTW, I am not convinced of the string/markup differentiation since a
> >> string _is_ a simple markup. This is sort of icky.
> >
> > Well, work on this one is not finished ...
> >
> > Though, every string is a simple markup, yes, thus it's checked first.
> > Why do you think it's icky?
>
> Because a string is formatted/treated _differently_ from a markup.
Ok, so how to do it differently?
Probably:
for a string use 'wordwrap-string'
for a markup-list use 'wordwrap' (or 'wordwrap-lines' ?)
But what to do for a markup? Return empty-stencil?
Or...?
Do you have any suggestion?
Thanks,
Harm
- Formatting part of a header property, Br. Samuel Springuel, 2018/12/17
- Re: Formatting part of a header property, David Kastrup, 2018/12/17
- Re: Formatting part of a header property, Br. Samuel Springuel, 2018/12/17
- Re: Formatting part of a header property, Thomas Morley, 2018/12/17
- Re: Formatting part of a header property, David Kastrup, 2018/12/17
- Re: Formatting part of a header property, Thomas Morley, 2018/12/17
- Re: Formatting part of a header property, David Kastrup, 2018/12/17
- Re: Formatting part of a header property,
Thomas Morley <=
- Re: Formatting part of a header property, David Kastrup, 2018/12/17
- Re: Formatting part of a header property, Br. Samuel Springuel, 2018/12/17