Page 3 of 3
Re: Evernote Plugin?
Posted: 29 Sep 2013 14:05
by Jane
I have not coded it yet, I'll look at doing it, probably not this weekend though.
Re: Evernote Plugin?
Posted: 29 Sep 2013 16:53
by johnmorrisoniom
After reading this thread with interest, I have downloaded and installed evernote on all my PC's as well as the current version (I think) of the plugin. I can foresee both becoming very useful.
Re: Evernote Plugin?
Posted: 29 Sep 2013 17:48
by capnkeith
Jane wrote:Then just edit your template to include the data reference for your To Do attribute under the Comments section.
It's probably something like INDI._ATTR-TO_DO[1].NOTE2[1] so wrap the {} around it and add it in to the template
Just been playing a bit more with the To Do Notes and noticed what I first thought was no word wrap in Evernote, but it is not that. The text has not all been transferred, only 120 characters approx. and finishes with ...
Is that Evernote putting a limit, or something needs opening up in FH?
Re: Evernote Plugin?
Posted: 29 Sep 2013 18:03
by tatewise
That is an FH/LUA limitation of any long text field such as Notes via fhGetItemText() and fhGetDisplayText() API functions.
e.g.
local strNote = fhGetItemText( ptrInd, "~.NOTE2" ) is restricted to 120 chars plus ellipsis.
local strNote = fhGetDisplayText( ptrInd, "~.NOTE2" ) is restricted to 120 chars plus ellipsis.
local strNote = fhGetValueAsText( fhGetItemPtr( ptrInd, "~.NOTE2" ) ) retrieves the entire Note text.
So the body of the Plugin needs to use fhGetValueAsText( fhGetItemPtr( ) ) instead of fhGetItemText().
Or use fhGetValueAsText( fhGetItemPtr( ) ) instead of fhGetDisplayText(), but this will not have Note: in front of the Note text, so the Template will need to add |Note: | as a prefix.
Re: Evernote Plugin?
Posted: 29 Sep 2013 18:53
by Jane
0.7 of the plugin is now on the same link as before. It now uses fhGetValueAsText for longtext class fields, which I think includes all notes. Also you can specify prefix and suffix text for standard Data Reference template codes.
Prefix and Suffix are not supported for the following
{ref} Selected Record Reference
{title} The Title entered
{comment} the comment entered
{project} the project file
{projectname} The project title
They are supported for any data reference which can be started with INDI or ~
To specify simply enter as follows
{reference|prefix|suffix} both the prefix and suffix are optional, but a prefix must be used if a suffix is required, even if it's only a space.
Re: Evernote Plugin?
Posted: 29 Sep 2013 19:12
by capnkeith
Yes 0.7 worked straight out of the box. The "note:" is now missing from the beginning of the text but I didn't need or want that anyway.
Thanks
Re: Evernote Plugin?
Posted: 29 Sep 2013 19:53
by johnmorrisoniom
0.7 worked OK for me as well.
I missed the bit about not being able to create new Tags outside of evernote. But it created the ones I made anyway on the version of evernote I have (5.0.1.1.1188)
Re: Evernote Plugin?
Posted: 30 Sep 2013 07:55
by Jane
johnmorrisoniom wrote:I missed the bit about not being able to create new Tags outside of evernote. But it created the ones I made anyway on the version of evernote I have (5.0.1.1.1188)
I think Evernote 5 supports adding from the import where as 4 did not. I have adjusted 0.7 slightly to exit cleanly if Evernote is not installed.
I think it's nearly ready for the Store now, I will just add some help in to the Knowledge base.
I think the template system could be useful for other plugins where you want to create flexible web pages from FH data.
Re: Evernote Plugin?
Posted: 30 Sep 2013 10:52
by capnkeith
I been thinking about the double space under the note title, you cannot do anything about the space above the title because that is set by <H3>. I wondered if below was affected by <p> and perhaps Evernote style sheet had already catered for that, but removing them made no difference. Then it dawned on me that it was the first <br /> , I removed that and row space has gone. Obviously if there is no BIRT or BAPT data it goes back to two rows but I can live with that, or just backspace it in Evernote.
When I put the expression for the To Do data in "Comment" I didn't put it between the <p>s and it worked. So I wonder if it is necessary to use the <p> because Evernote deals with that?
Just a thought
Re: Evernote Plugin?
Posted: 30 Sep 2013 11:51
by Jane
You can change the template however you want, you could even make it completely empty the plugin won't mind.
If you make any interesting ones they could be posted on the help page for the plugin in the knowledge base if you want to share them.
If have changed the default one to use a list for events, and added some more headings to break up the text.
Re: Evernote Plugin?
Posted: 30 Sep 2013 12:07
by capnkeith
Something weird has happened.
I have just downloaded 0.8 but the edit template has not updated it is still the one I altered. However I can see your amendments you mentioned in last post if I look at edit Plugin.
Re: Evernote Plugin?
Posted: 30 Sep 2013 13:08
by Jane
You'll obviously need to deleted your customised one to use the new default one. Just delete the template.txt from the evernote to do.dat folder in your project fh_data/plugin folder.
Re: Evernote Plugin?
Posted: 30 Sep 2013 13:56
by capnkeith
I have been renaming the plugin versions in my download folder before downloading the next version. I did not know about the plugin data folder. I have not found as many versions of the .dat folder as I have of plugin downloads in the download folder.
I like what you now have in the latest version.
edit
Should the text format for "Father", "Mother" and "Spouse(s)" be the same ?
Re: Evernote Plugin?
Posted: 30 Sep 2013 14:34
by Jane
Father and Mother are on one line, but Spouse(s) is a heading. I might leave it for now, as I was thinking about a way to support +1 indexes, so all census and all children could be added easily.
Re: Evernote Plugin?
Posted: 23 Oct 2013 16:48
by capnkeith
Hi Jane,
Edited
Have you had any more thoughts on adding +indexes and children to the Family section of this plugin?
Thanks
Re: Evernote Plugin?
Posted: 25 Oct 2013 16:12
by capnkeith
I've managed to get this piece of code to work but I am struggling to include the child's birth or baptism to work?
If it is possible please show me, thanks
{INDI.FAMS[1]>CHIL[1]>|<li>|</li> }
{INDI.FAMS[1]>CHIL[2]>|<li>|</li> }
{INDI.FAMS[1]>CHIL[3]>|<li>|</li> }
Re: Evernote Plugin?
Posted: 25 Oct 2013 16:44
by Jane
I am not sure why you could not get them to work, you should be able to insert them directly using the Edit>data Reference Tool on the Plugin editor menu.
Code: Select all
<h6>Childen</h6>
{INDI.~CHIL[1]>| |, }{INDI.~CHIL[1]>BIRT[1]}
{INDI.~CHIL[2]>|<br /> |, }{INDI.~CHIL[2]>BIRT[1]}
{INDI.~CHIL[3]>|<br /> |, }{INDI.~CHIL[3]>BIRT[1]}
{INDI.~CHIL[4]>|<br /> |, }{INDI.~CHIL[4]>BIRT[1]}
{INDI.~CHIL[5]>|<br /> |, }{INDI.~CHIL[5]>BIRT[1]}
{INDI.~CHIL[6]>|<br /> |, }{INDI.~CHIL[6]>BIRT[1]}
Re: Evernote Plugin?
Posted: 26 Oct 2013 09:44
by capnkeith
Thanks very much.
Re: Evernote Plugin?
Posted: 12 Dec 2014 12:04
by gsward
On the Plugin page
http://www.fhug.org.uk/wiki/doku.php?id ... note_to_do there is no link to the actual plugin, which after some searching I found in a much earlier post in this thread.
I installed it on V6 and confirm that it does still work with Evernote - very nice too.
Is there a reason there is not an actual link to the plugin on it's main page?
Thanks.