-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Multilingual data and style structures #332
Comments
That looks like a sound approach.
Or:
|
Another question will then be how these language alternates will be accessible in styles. A simple approach could be something like testing for a language attribute, like The drawback of this is that it will make style coding more complicated than necessary. In the medium to long run (i.e. after 1.1) we should therefore consider adding (optional, modularized) features to simplify this. I could imagine three potential solutions:
|
Yes, I think we would make the version on the CSL JSON explicitly denote that it is multilingual. That way, we can allow for normally-flat-string fields to be either flat-strings or objects. That gets around the contortions @fbennett needed to do to make CLSm JSON type-compatible with CSL JSON. If CSL-ML JSON needs to be converted to vanilla CSL JSON, its the simple transformation that string-type variables have their |
There are a few "levels of involvement" here: "Simple" handling
"Moderate" handling
"Complex" handling
|
Just a quick note: biblatex is adding multiscript support: https://raw.githubusercontent.com/plk/biblatex/multiscript/doc/latex/biblatex/biblatex.tex More information under (Don't know how exactly that will work. Need to digest that first...) |
I just ran into this: https://www.ctan.org/pkg/biblatex-ms Apparently, the biblatex folks have recently published the multiscript variant of biblatex. As of now, both versions seem to exist in parallel, the multiscript version is said to be slower and still a bit experimental, but it should eventually replace the current version. Should be worthwhile looking into this... |
We started to discuss multilingual data structures here: #327
In terms of data structures, my inclination is that storing multilingual variants should occur at the field-level. So, any field might be object with
value
,language
, andtranslated
elements. Thetranslated
element would be an array with elements holdingvalue
andlanguage
elements. Subordinate elements without alanguage
would inheritlanguage
from their parent. That would have 3 benefits:Originally posted by @bwiernik in #327 (comment)
The text was updated successfully, but these errors were encountered: