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

The rich text editor needs a Small Caps option #156

Open
SteveRidout opened this issue Sep 19, 2012 · 0 comments
Open

The rich text editor needs a Small Caps option #156

SteveRidout opened this issue Sep 19, 2012 · 0 comments

Comments

@SteveRidout
Copy link
Member

This will be trickier to implement than the existing formatting options since there is no simple 'smallcaps' command to pass to document.execCommand() (see https://developer.mozilla.org/en-US/docs/Rich-Text_Editing_in_Mozilla#Executing_Commands)

The relevant output it needs to match in the citeproc-js output is:

<span style="font-variant:small-caps;">This text in small caps</span>

Perhaps this should be converted to something smaller for the search algorithm, e.g. <sc></sc> so it doesn't disproportionately affect the edit distances. Or, better yet, experiment with other ways to fairly calculate edit distances of tagged content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant