-
Notifications
You must be signed in to change notification settings - Fork 120
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
Inject an attribute to indicate that a specific language set is being converted #411
Comments
I would recommend "lang". It's a reserved attribute in AsciiDoc for this purpose that will set the xml:lang on the html tag. (Otherwise, it's just informational). |
@mojavelinux In that case, maybe I should inject it as |
I suppose, though you'd have a strong case here for not having this one be mutable. What's the use case for changing the document language inside of a folder for that language? Though, it certainly wouldn't hurt to allow it. Btw, here's where it gets used currently: https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/converter/html5.rb#L100-L101 We also talk about it here: https://asciidoctor.org/docs/user-manual/#customizing-labels |
I agree with you, but for consistency(*) I'll append (*) The convention is that for any Asciidoctor attribute that the Gradle plugin injects which were not explicitely specified by the user, |
👍 |
…r#411) When multiple languages have been specified `lang@` will be injected with a value as specified for the specific language. It is also now possible to specify additional attributes that will only be injected when a specific language is being converted.
…r#411) When multiple languages have been specified `lang@` will be injected with a value as specified for the specific language. It is also now possible to specify additional attributes that will only be injected when a specific language is being converted.
…r#411) When multiple languages have been specified `lang@` will be injected with a value as specified for the specific language. It is also now possible to specify additional attributes that will only be injected when a specific language is being converted.
…r#411) When multiple languages have been specified `lang@` will be injected with a value as specified for the specific language. It is also now possible to specify additional attributes that will only be injected when a specific language is being converted.
Inject `lang` attribute for multiple language source sets (#411)
Will be in 3.0.0-alpha.4 |
…r#411) When multiple languages have been specified `lang@` will be injected with a value as specified for the specific language. It is also now possible to specify additional attributes that will only be injected when a specific language is being converted.
…r#411) When multiple languages have been specified `lang@` will be injected with a value as specified for the specific language. It is also now possible to specify additional attributes that will only be injected when a specific language is being converted.
When a multi-language conversion is in place, inject
{gradle-language}{lang} attribute when the specific language source set is being processed.The text was updated successfully, but these errors were encountered: