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

Smartypants #98

Closed
philsturgeon opened this issue May 18, 2015 · 11 comments
Closed

Smartypants #98

philsturgeon opened this issue May 18, 2015 · 11 comments

Comments

@philsturgeon
Copy link
Member

This is probably another package, but in the same vein as the potential markua package, it would be good to get Smartypants involved.

This would help CommonMark projects be usable for printed books and whatnot, turning standard quotes into curly quotes and other similar bits.

@philsturgeon
Copy link
Member Author

Although if #97 happens I don't know if LaTeX/Pandoc will handle that stuff magically. Either way, would be a nice one.

@cebe
Copy link

cebe commented May 18, 2015

for LaTeX these should be converted not to the unicode characters but LaTeX specific syntax: http://en.wikipedia.org/wiki/Quotation_mark#Typewriters_and_early_computers

@philsturgeon
Copy link
Member Author

Cool. Priority goes down the list, meaning I won’t bother to do it. :D

-- 
Phil

From: Carsten Brandt notifications@github.com
Reply: thephpleague/commonmark reply@reply.github.com>
Date: May 18, 2015 at 11:24:43 AM
To: thephpleague/commonmark commonmark@noreply.github.com>
Cc: Phil Sturgeon me@philsturgeon.uk>
Subject:  Re: [commonmark] Smartypants (#98)

for LaTeX these should be converted not to the unicode characters but LaTeX specific syntax: http://en.wikipedia.org/wiki/Quotation_mark#Typewriters_and_early_computers


Reply to this email directly or view it on GitHub.

@cebe
Copy link

cebe commented May 18, 2015

you need this more than me right now, so we'll see ;)

@philsturgeon
Copy link
Member Author

philsturgeon commented May 18, 2015 via email

@cebe
Copy link

cebe commented May 18, 2015

not sure how this works in english, but for german quotes you need special sytnax in LaTeX. Will check it out.

@philsturgeon
Copy link
Member Author

Oh I see, so I will need it. I just need to make sure it outputs to either HTML entities or LaTeX special syntax.

-- 
Phil

From: Carsten Brandt notifications@github.com
Reply: thephpleague/commonmark reply@reply.github.com>
Date: May 18, 2015 at 12:13:01 PM
To: thephpleague/commonmark commonmark@noreply.github.com>
Cc: Phil Sturgeon me@philsturgeon.uk>
Subject:  Re: [commonmark] Smartypants (#98)

not sure how this works in english, but for german quotes you need special sytnax in LaTeX. Will check it out.


Reply to this email directly or view it on GitHub.

@cebe
Copy link

cebe commented May 18, 2015

exactly

@cebe
Copy link

cebe commented May 18, 2015

german wikipedia has more details about the characters to be used: http://de.wikipedia.org/wiki/Anf%C3%BChrungszeichen#Kodierung

@colinodell
Copy link
Member

Smartypants is a great idea, but I do think it should be its own separate package. You might be able to implement it as an Inline Processor (which iterates over Inlines, performing modifications to them). If not then we could look at expanding the "Extension API" to make these types of addons easier to implement.

@cebe
Copy link

cebe commented May 26, 2015

One important part is that it should not be applied to code blocks and also inline code. Will check out the API and let you know if there are limitations.

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

3 participants