In LeoPyRef.leo (the code), under "<< define global data structures >>
(leoApp.py)" I see that:
1) in the language_delims dictionary plain files use the # as comment:
"plain" : "#", # We must pick something.
2) in the extension dictionary, the txt files are associated with the
plain language
"txt" : "plain",
3) in the language_extension dictionary, a plain language file
receives the txt extension
"plain" : "txt",
This is at least consistent. Now, where does it says that the
sentinels begins with the comment delimiters ?
I don't see it after a first browse of the code. It's interesting to
search for _delim in the code.
Maybe one should examine the "putDirective" node in "leoAtFile.py".
Beware this might not be the track to follow.
On Apr 7, 2:43 pm, "Ville M. Vainio" <[email protected]> wrote:
> The interesting aspect here is that .txt file uses rst sentinels,
> instead of python sentinels. I don't know why that happens.
>
> On Thu, Apr 7, 2011 at 3:41 PM, Rene Heymans <[email protected]> wrote:
> > for your information
>
> > ---------- Forwarded message ----------
> > From: Ville M. Vainio <[email protected]>
> > Date: Thu, Apr 7, 2011 at 2:30 PM
> > Subject: Re: A Steep Learning Curve
> > To: Rene Heymans <[email protected]>
>
> > Please bring this up on leo-editor list as well.
>
> > BTW, you can use the leo group as a normal mailing list. That's how I
> > do it, I never go to the website. You can send attachments there too.
>
> > On Thu, Apr 7, 2011 at 2:42 PM, Rene Heymans <[email protected]> wrote:
> >> Thank you Ville. Sorry but I'm too new to figure out the dual @file/@thin
> >> directive.
> >> I try as you say.
> >> Already an improvement.
> >> This is what my file looks like:
>
> >> .. @+leo-ver=5-thin
> >> .. @+node:rah.20110407103423.1430: * @thin quicktest.txt
> >> What about this one?
> >> Well, we'll see ...
> >> Ah, here I have the Refresh option !
> >> Already a step forward ...
> >> .. @-leo
>
> >> Let me investigate why the sentinel have the RsT format (.. ) and not the
> >> Python format (#).
> >> I thought for a moment that it inherited the "@language rst" from higher
> >> but
> >> it is not the case as the node is at the root level.
> >> Cheers
>
> >> On Thu, Apr 7, 2011 at 12:51 PM, Ville M. Vainio <[email protected]>
> >> wrote:
>
> >>> Ah, the 4.8 release had a bug where @file did not have "refresh" in
> >>> context menu. Try changing @file to @thin, then look for Refrest in
> >>> context menu.
>
> >>> Interestingly, my test file looks like this:
>
> >>> #@+leo-ver=5-thin
> >>> #@+node:ville.20110407091242.2502: * @file ~/t.txt
> >>> Hello
> >>> world
> >>> #@-leo
>
> >>> I.e. it has python like sentinels. I wonder why your are the rst ones.
>
> >>> On Thu, Apr 7, 2011 at 1:43 PM, Rene Heymans <[email protected]>
> >>> wrote:
> >>> > The reason is that I did begin my exercise by taking (in Notepad++) the
> >>> > rah.rst, modified the text but not touching the sentinels saved it as
> >>> > rah.txt, then imported it as a @file, etc ..
> >>> > Anyway, I did as you asked:
> >>> > - created a new @file node in Leo
> >>> > - saved it in Leo
> >>> > - turned to Notepad++, opened the new file, added a few more lines,
> >>> > saved it
> >>> > - turned back to Leo but alas ... Leo doesn't know the file has
> >>> > changed.
> >>> > I attached the 3 frames in sequence so you can see.
> >>> > Thanks.
> >>> > Rene
>
> >>> > On Thu, Apr 7, 2011 at 12:04 PM, Ville M. Vainio <[email protected]>
> >>> > wrote:
>
> >>> >> It appears rah.txt is a file created by auto-rst. As a first thing,
> >>> >> create a @file node that is not under any node starting with @, and
> >>> >> send it to me.
>
> >>> >> On Thu, Apr 7, 2011 at 12:48 PM, Rene Heymans <[email protected]>
> >>> >> wrote:
> >>> >> > Thank you Ville.
>
> >>> >> > I attach the `rah.txt` file used in my exercise and where I
> >>> >> > carefully
> >>> >> > noted
> >>> >> > all the steps.
> >>> >> > I also attach three screen shots at different moments of my
> >>> >> > exercise.
> >>> >> > Hope this will help you. Many, many thanks for your assistance.
> >>> >> > Let me know if you wish me to post this on the Leo-Editor GG (I
> >>> >> > haven't
> >>> >> > yet
> >>> >> > looked at how to insert attachment in a post).
>
> >>> >> > Kind regards,
> >>> >> > René
>
> >>> >> > On Wed, Apr 6, 2011 at 9:05 PM, Ville M. Vainio <[email protected]>
> >>> >> > wrote:
>
> >>> >> >> On Wed, Apr 6, 2011 at 8:00 PM, RAH <[email protected]> wrote:
>
> >>> >> >> > This works now BUTthe @file node still does not synchronize with
> >>> >> >> > the
> >>> >> >> > external file.
>
> >>> >> >> So what happens when you right click on @file node and choose
> >>> >> >> "refresh
> >>> >> >> from disk"? Do you see something on the log?
>
> >>> >> >> This is not a problem with windows environment, you are doing
> >>> >> >> something wrong (and we want to find out what, to make the behavior
> >>> >> >> or
> >>> >> >> error messages more obvious :).
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "leo-editor" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/leo-editor?hl=en.
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.