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

Escapes in character definitions not expanded correctly #26

Open
rhaberkorn opened this issue Jan 13, 2023 · 1 comment
Open

Escapes in character definitions not expanded correctly #26

rhaberkorn opened this issue Jan 13, 2023 · 1 comment

Comments

@rhaberkorn
Copy link

See for instance this test case implementing "smart quotes" (adopted from Groff/MOM macros):

.nr #OPEN_CLOSE 0
.ds $QUOTE0 \(Fo
.ds $QUOTE1 \(Fc
.char " \\*[$QUOTE\\n[#OPEN_CLOSE]]\R'#OPEN_CLOSE (1-\\n[#OPEN_CLOSE])'
.
Hello "world"

You can also try the easier definition .char " \\*[$QUOTE0] for testing purposes.
cdef_expand() is responsible as far as I understand.
Is this even supposed to be supported by Neatroff?

@aligrudi
Copy link
Owner

aligrudi commented Jan 14, 2023 via email

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