On Sat, 2008-03-01 at 09:08 -0800, Brian Matherly wrote:
> > It appears the <gramps>... </gramps> tag is added
> > sometimes needlessly.
This is a problem, but it only affects people using the Notes as custom
input on the Narrative Web report, if I understand correctly. It's
definitely a 'power user' feature, so I think it could wait to be dealt
with if we are focused on getting 3.0 out the doors in the next one or
> 1) Plain old notes
> 2) Fixed-width ASCII
> We added the "preformatted" checkbox on the note editor to allow the user to
> signal that the text should be displayed with a
> fixed-width font.
I think 'preformatted' is a bad choice to define this mode. My recent
run-in with the <gramps /> tag and the Narrative Web report lead me to
investigate how the Notes work. I have to say that the modes available
are confusing. If I, as a user, know what 'monospace' is and use it to
construct tables in plain text files, I'm smart enough to know that this
is how 'Plain Text' should render. I think we are confusing the 'power
user' by not rendering 'Plain Text' as plain text in monospace.
> 3) Pseudo-word processor text
> 4) HTML storage for narrative web report
This should be the same as 'Plain Text'.
I think that this could be much simpler. I know that the 'Pango Markup'
system was used for formatting and style because GTK supported it, but I
would think that using HTML in this case would be a much more elegant
and universally supported markup practice.
Truthfully, the 'mode' should only define how the Note's content is
rendered. The content should always only be just 'text'. The Fixed-width
option could be accomplished by actually using HTML to define the font
as 'monospace'. Unless there is a more simple Python way of saying 'use
monospace'. Truthfully, I would recommend making 'Plain Text' always
render in monospace. If people don't want monospace, then they should
use 'Formatted Text' mode (HTML).
My point is that we could make the Notes either be rendered as though
they are plain text or html. The Notes editor could then also offer a
'Preview' viewer and a 'Plain Text' viewer. This would eliminate the
<gramps /> tag and place the 'mode' definition outside of the note
If we can do this, and I'm not yet Python-savvy enough to know all the
details, then our Notes system would be greatly simplified and there
would be only two modes:
1 Plain Text
2 Formatted Text (HTML)
Just my two cents. Thanks for listening. Have a good day everybody!