Recent activity

Re: The example about new query cannot work a month ago

From Utensil Song to ~jonsterling/forester-discuss

Thanks for the updates in the release notes!

I have a new issue regarding the previous shared query snippets. It
turns out to return more results than I expected, particularly, the
"unstable" trees that are introduced by `\subtree`, they should be
ruled out by the query as they have parents thus are not lost. Reading
https://www.jonmsterling.com/jms-00WS.xml, there seems to be no
built-in relation symbols for these unstable trees, whose signature
would be having a `<fr:parent>` in its XML, but this is not detectable
from the query language. In theory, this is also a type of relation,
not transclusion, but parent ship.

Wonder if there could be some support towards this direction.

Re: \ref inside a \title{…} a month ago

From Utensil Song to ~jonsterling/forester-discuss

Hi Nick,

Here are my 2 cents:

1. Jon's forest use a solution based on `\meta`, e.g.
`\meta{source}{Definition 2.2, \citek{jung-moshier-vickers-2008}}`
which would render as gray texts under the title, rendered:
https://www.jonmsterling.com/jms-00A8.xml .
2. `\ref` is actually mostly used for cross-referencing inside an
article, and gives a result that's like the LaTeX package `cleveref`,
e.g. lemma jms-10A8, but not great for bibliography, Jon's forester
has a solution for bibliography which is also shown in the previous
example, the macro is

Re: The example about new query cannot work 2 months ago

From Utensil Song to ~jonsterling/forester-discuss

Thanks for bringing this up, I had the same confusion. Thanks to Jon's
explanation, I managed to use the new query language to do something I
wanted to do for a long time: querying all potentially lost notes
(i.e. that are not transcluded by any root notes, and not marked as
draft (because I have queries by topic for drafts) ):

```
\scope{
  \open\query
  \open\rel
  \def\query/root{
    \union{\tag{root}}{\tag{notes}}
  }
  \def\query/root/transcluded{

Re: forester.csl file to create reference trees from Zotero 4 months ago

From Utensil Song to ~jonsterling/forester-discuss

Hi Eigil,

Thanks for sharing!

Inspired by your CSL file, but because I could not get CSL to properly
handle line breaks and such, I have written a Python script to convert
a bib file (I manually maintain it, but it can be batch exported from
Zotero too) to the corresponding trees.

The script is at https://github.com/utensil/forest/blob/main/split_bib.py .

If you have a properly installed Pandoc[1] and Python, you may just run

```

Re: Feature Request: Querying by prefix 4 months ago

From Utensil Song to ~jonsterling/forester-discuss

One more related feature request is to order the query. It seems that
currently it's ordered by the numeric postfix of the trees, but
reversed.

I think lexical order (and their reverse) by any metadata field would
be sufficient if that naturally includes the dates?

On Tue, May 7, 2024 at 5:06 PM Utensil Song <utensilcandel@gmail.com> wrote:
>
> 1. I have the same feature request, without querying with prefixes, I
> have to tag all the notes with the same prefix with a same tag.
> 2. I have figured out how to use the undocumented `\query/not` which
> is very helpful, but I also wish for `\query/xxx{empty}` family which
> should match empty tags/taxons etc. otherwise I have to use

[PATCH] Fix ~jonsterling/forester#57 4 months ago

From utensil to ~jonsterling/forester-devel

---
 tree.xsl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tree.xsl b/tree.xsl
index be3e2bb..f706ff0 100644
--- a/tree.xsl
+++ b/tree.xsl
@@ -288,9 +288,9 @@
          <xsl:attribute name="class">block</xsl:attribute>
        </xsl:otherwise>
      </xsl:choose>
      <xsl:if test="f:frontmatter/taxon">
      <xsl:if test="f:frontmatter/f:taxon">
[message trimmed]

[PATCH v2] Demonstrate that I can use git send-email 4 months ago

From utensil to ~sircmpwn/email-test-drive

---
 utensil | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 utensil

diff --git a/utensil b/utensil
new file mode 100644
index 0000000..66cb3d4
--- /dev/null
+++ b/utensil
@@ -0,0 +1 @@
I have successfully used git send-email!
-- 
2.39.3 (Apple Git-146)
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 4 months ago

From utensil to ~sircmpwn/email-test-drive

---
 utensil | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 utensil

diff --git a/utensil b/utensil
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/utensil
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.39.3 (Apple Git-146)
[message trimmed]

Re: Question about Forester to LaTeX 4 months ago

From Utensil Song to ~jonsterling/forester-discuss

Hi Fredrik,

I would like to share my experience about converting Forester to LaTeX.

First, we need a tool to convert the xml to tex, my choice is
[saxon](https://github.com/Saxonica/Saxon-HE), installable by `brew
install saxon` on Mac, after that something like this will work:

saxon -s:build/$XML_FILE -xsl:assets/$XSLFILE -o:build/$TEX_FILE

You may check out https://github.com/utensil/forest/blob/main/lize.sh
for the specific script.

Second, the xls file from

Re: Feature Request: Querying by prefix 4 months ago

From Utensil Song to ~jonsterling/forester-discuss

1. I have the same feature request, without querying with prefixes, I
have to tag all the notes with the same prefix with a same tag.
2. I have figured out how to use the undocumented `\query/not` which
is very helpful, but I also wish for `\query/xxx{empty}` family which
should match empty tags/taxons etc. otherwise I have to use
`\query/not` to explicitly exclude known tags/taxons to me.
3. I wonder to what extent can query do, can query match arbitrary XML
tags? I tried things like matching `addr` to achieve the effect of 1,
or `\query/title` for a partial match, no luck yet.

To further xy what I'm trying to do: I was trying to transclude all
notes about the same topic (thus sharing the same prefix) that is not
a part of the parent article, i.e. scattered notes. I wish to preview
notes when I'm writing them, but transcluding each and every of them