Mijyuoon / obsidian-ling-gloss

An Obsidian plugin for interlinear glosses used in linguistics texts.
MIT License
29 stars 3 forks source link

Possible sub-example support? #6

Open Zenkai21 opened 5 months ago

Zenkai21 commented 5 months ago

I'm wondering if it would be possible/worth it to add some ability to set multiple gloss examples within the same block. For example, say I have three related glosses that I want to label 1a) b) and c) with related sentences. What I'm asking for is achievable in a roundabout way using the alternative 'ngloss' syntax, but it becomes really unintuitive to try to script. Here's an example of the code block I'd use to get the desired outcome:

\gl 1a) [ ] [b)] [ ] [c)]
    Compré [buy-PST-1SG] [Lo] [it-CL-3SG] [*Compré] [buy-PST-1SG]
    un/el [INDEF/DEF-MASC] [compré] [buy-PST-1SG]
    libro [book]

Let me know what you think, great work on this plugin - it's super useful!

Mijyuoon commented 5 months ago

Unfortunately there isn't an easy way to add this with how the plugin is currently structured. This would need a lot of refactoring that unfortunately I don't have the ability to do at the moment.