Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\usfm marker's value is not a named node in AST #252

Open
kavitharaju opened this issue Jul 15, 2024 · 0 comments
Open

\usfm marker's value is not a named node in AST #252

kavitharaju opened this issue Jul 15, 2024 · 0 comments
Assignees

Comments

@kavitharaju
Copy link
Collaborator

Issue originally faced by Nicola and Jonathan:

We've printed the full tree to see each leaf in the console
Here's the output

node.kind: File
  - child.kind: book
  node.kind: book
    - child.kind: id
    node.kind: id
      - child.kind: \id
      - child.kind: bookcode
      node.kind: bookcode
        - child.kind: PSA
      - child.kind: description
        - text = child.utf8_text:  unfoldingWord Literal Text

  - child.kind: usfm
  node.kind: usfm
    - child.kind: \usfm
  - child.kind: ide
  node.kind: ide
    - child.kind: \ide
    - child.kind: text
      - text = child.utf8_text: UTF-8

  - child.kind: hBlock
  node.kind: hBlock
    - child.kind: h
    node.kind: h
      - child.kind: hTag
      node.kind: hTag
        - child.kind: \h
        - child.kind:
      - child.kind: text
        - text = child.utf8_text: Psalms
...

As you can see on the leaf "usfm" we expect to see the value "3.0".
But we weren't able to get this value from the tree.

@kavitharaju kavitharaju self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant