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

Question particle/marker Q is not rendered #12

Closed
CLRafaelR opened this issue Jul 4, 2022 · 2 comments
Closed

Question particle/marker Q is not rendered #12

CLRafaelR opened this issue Jul 4, 2022 · 2 comments

Comments

@CLRafaelR
Copy link
Contributor

CLRafaelR commented Jul 4, 2022

I use the latest pandoc-ling 2a1e55a as of July 4, 2022. I found that the question particle/marker Q, which is listed in Leipzig Glossing Rules, is not rendered as shown below. Generally speaking, the current implementation may not render one-character abbreviations such as Q, A, S, P, F, M and so on.

image

I think the issue should be resolved if [%u%d][%u%d] in l.447 and l.455 of pandoc-ling.lua is replaced with one [%u%d]. Could you mind pointing out whether any problem arises when we replace [%u%d][%u%d] with [%u%d] or why [%u%d][%u%d] is originally used there?

for lower,upper in string.gmatch(s, "(.-)([%u%d][%u%d]+)") do

for leftover in string.gmatch(s, "[%u%d][%u%d]+(.-[^%u%s])$") do

MWE

::: {#Q-particle .ex formatGloss=true}
| **これは絵ですか?** `\\`{=latex}
| Kore=wa e-desu-ka?
| DEM=TOP picture-AFF.POL-Q
| Is this a picture?
:::

    ::: {#Q-particle .ex formatGloss=true}
    | **これは絵ですか?** `\\`{=latex}
    | Kore=wa e-desu-ka?
    | DEM=TOP picture-AFF.POL-Q
    | Is this a picture?
    :::
CLRafaelR added a commit to CLRafaelR/pandoc-ling that referenced this issue Jul 4, 2022
@CLRafaelR
Copy link
Contributor Author

I tried replacing [%u%d][%u%d] with [%u%d] and successfully got the desirable output.

image

cysouw added a commit that referenced this issue Oct 7, 2022
Two [%u%d] to one [%u%d] to resolve issue #12
@cysouw
Copy link
Owner

cysouw commented Oct 7, 2022

solved with #14

@cysouw cysouw closed this as completed Oct 7, 2022
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

2 participants