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

language option #25

Open
alexisargyris opened this issue Sep 3, 2015 · 3 comments
Open

language option #25

alexisargyris opened this issue Sep 3, 2015 · 3 comments
Assignees

Comments

@alexisargyris
Copy link

Is there a way to specify the language in the case of processing HTML fragments?

@davidmerfield
Copy link
Owner

Not yet, but there will be. This is especially needed for the soft hyphen insertion.

@kirill-tsurkan
Copy link

Also, in Russian we use «» quotation marks. Would be nice to see language specific settings.

@danielhaim1 danielhaim1 self-assigned this Jan 2, 2020
@oscarotero
Copy link

Yes, please. Or at least a way to configure each feature manually. For example:

const options = {
    // https://en.wikipedia.org/wiki/Quotation_mark
    quotes: {
        primary: ['«', '»'],
        secondary: ['“', '”']
    },
    // https://en.wikipedia.org/wiki/Dash
    punctuation: {
        '--': '—',
    }
};

let output = typeset(html, options);

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

5 participants