> Well, those were design desicions taken some time ago. They were sound,
> the first implementation of Zsolt had the markup stored in the note text
> and there where many issues (specifically the difference in markup
> between gtk-cairo - xml - different docgen. At this moment this code is
> very robust, I'm not aware of bugs.
> So, I'd say, don't bother to undo this design, it would be really a lot
> of work (I wrote docgen interpretation of the markup, and it is really
> hard) for only a hypothetical problem.
Also, I noted that strings for translated key into
gen/lib/styledtexttagtype.py seem not to be used: will not be displayed!
_DATAMAP = [
(BOLD, _("Bold"), "bold"),
(ITALIC, _("Italic"), "italic"),
(UNDERLINE, _("Underline"), "underline"),
(FONTFACE, _("Fontface"), "fontface"),
(FONTSIZE, _("Fontsize"), "fontsize"),
(FONTCOLOR, _("Fontcolor"), "fontcolor"),
(HIGHLIGHT, _("Highlight"), "highlight"),
(SUPERSCRIPT, _("Superscript"), "superscript"),
(LINK, _("Link"), "link"),
#: src/gen/lib/styledtexttagtype.py:68
msgid "Fontface"
#: src/gen/lib/styledtexttagtype.py:69
msgid "Fontsize"
#: src/gen/lib/styledtexttagtype.py:70
msgid "Fontcolor"
#: src/gen/lib/styledtexttagtype.py:71
msgid "Highlight"
#: src/gen/lib/styledtexttagtype.py:72
msgid "Superscript"
Only strings translated into:
gui/widgets/styledtexteditor.py
seem to be used by the interface.
#: ../src/gui/widgets/styledtexteditor.py:450
msgid "Italic"
#: ../src/gui/widgets/styledtexteditor.py:452
msgid "Bold"
#: ../src/gui/widgets/styledtexteditor.py:454
msgid "Underline"
#: ../src/gui/widgets/styledtexteditor.py:464
msgid "Background Color"
#: ../src/gui/widgets/styledtexteditor.py:466
msgid "Link"
http://www.gramps-project.org/bugs/view.php?id=5621
It is very cosmetic (maybe just an extra work for translators!), but
names are not consistant (background color???) and this does not help
for trying to understand this markup environment and behavior by looking
at these modules.
Jérôme
Benny Malengier a écrit :
>
>
> 2012/6/1 Doug Blank <doug.blank@... <mailto:doug.blank@...>>
>
>
> >> ...dreaming out loud...
> >
> >
> > Yes. We should do a bit more designing instead of hacking away.
> The new
> > object from link is ok, but for the rest, all we add needs to be
> maintained
> > later.
>
> Right; I wasn't thinking of adding any of the wild ideas to the Notes
> editor. I think that the current set of changes are as far as one
> would want to stretch it. Actually, I have one more, related idea:
> drag and drop a Gramps object onto a Note to create a link. That will
> help when constructing a narrative given that you already have your
> data entered.
>
>
> Nice
>
>
> (On a related note, it scares me a little having the markup stored
> separately from the text. If anything goes wrong (say, by changing str
> to unicode, or \r\n to ^M or something) it will be badly malformed. I
> think it would be better to keep the markup *in* the text, and just
> strip it out if we want plain text. I guess it is useful for speed
> purposes to have the plain text immediately available, but maybe we
> can keep just the "preview" text cached and ready. This will allow
> different editors to work more easily with the text, too.)
>
>
> Well, those were design desicions taken some time ago. They were sound,
> the first implementation of Zsolt had the markup stored in the note text
> and there where many issues (specifically the difference in markup
> between gtk-cairo - xml - different docgen. At this moment this code is
> very robust, I'm not aware of bugs.
> So, I'd say, don't bother to undo this design, it would be really a lot
> of work (I wrote docgen interpretation of the markup, and it is really
> hard) for only a hypothetical problem. We are not a word editor :-)
>
>
> > With this we are effectively mixing notes with some source text,
> and we
> > should not muddle the objects of Gramps like that.
> > If two things are conceptually different, we should make two
> things, instead
> > of using one for two. It seems logical to reuse the note engine,
> but it
> > should in a different jacket. I lean to a certificate manager.
>
> I'd like to see more about what a certificate manager would look like.
> Would it be like the census gramplet?
>
>
> That is a decision to take. I don't think gramplet code can be made
> reusable enough for many different certificates. That is why I proposed
> just a note text, and derive from there. That would fit many
> certificates. Something like a census gramplet would then be a dedicated
> interface for a specific certificate to make data entry still more easy.
>
>
>
> > About the question to share the note with the object. Also here,
> the correct
> > workflow is a source, with a note with source transcript. Then source
> > citation that shares this specific note also, and citation that
> is added to
> > the constructed objects. Again, the workflow is different. We
> should try to
> > make sure there is only one good way to do things, it makes our
> live to
> > support the code much easier. So perhaps we can start with only
> allowing
> > these new features in a note of a source/source citation? Or
> again, use a
> > different jacket, the certificate manager, that contains this
> functionality.
> > The note with the created text would be a different object then
> than the
> > notes used in eg the source object. Like that we can extend it with
> > features, without encumbering the normal default notes.
>
> I think I see where you are headed, but not certain. Would these
> certificates be just text?
>
>
> As I wrote some days ago, it would be an overarching object with type
> date, creator, corresponding source..., containing certificate texts,
> which is just text as you list, that can be parsed (based on certificate
> type) or linked to create objects. User would howoever need to see what
> will happen before clicking on 'Execute' or 'Save'. So part of the
> interface should list the changes which will occur in the real data.
> Let's call those Conclusions, and they are diffs. Conclusions can be
> applied or unapplied. As Conclusions are diffs, the idea is they can be
> undone.
>
> This is the full complexity, we could of course go for something
> simpler, eg, dropping undo and conclusions for now. The census gramplet
> with all objects that are created from it gives an overview of
> everything a certificate should do in the gramps data. As a certificate,
> you would however be able to call up the census you where working on 2
> months ago, see what that entry changed in the data, update something,
> and save it again. That is the main reason for the certificate, to look
> again at the process that lead to data entry, and go over it again.
> Without conclusions, it would be read-only however I think.
> The census could be looked at as we see in the census gramplet, or as a
> running text resembling the actual text (different parsers for different
> types of census).
> Well, for census the running text would be diffucult as it is a table
> instead of a text, but birth certificate, ... don't have that problem
>
> Anyway, also this is dreaming out loud
> Benny
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@...
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
|