bdarcus / csln

Reimagining CSL
Mozilla Public License 2.0
13 stars 0 forks source link

Multilingual support #66

Open bdarcus opened 1 year ago

bdarcus commented 1 year ago

Seems the biblatex and latex world is a good place to look for how to do this.

First, this issue at their tracker:

https://github.com/plk/biblatex/issues/416

Second, this thread;:

https://tex.stackexchange.com/a/505649

It seems the minimum you need is a language field on entries.

@book{Sharoni1969,
 author = {ميخائيل، ملاك  and  الشاروني، حبيب},
 date = {1969},
 title = {المرجع فى قواعد اللغة القبطية},
 location = {الاسكندرية},
 publisher = {جمعية مارمينا العجايبي},
 langid = {arabic}
}
@book{Browning1983,
 author = {Browning, Robert},
 date = {1983},
 title = {Medieval and Modern Greek},
 publisher = {Cambridge University Press},
 langid = {english}
}

But that doesn't go far enough:

@misc{CBible2015,
 date = {2015},
 title = {\foreignlanguage{english}{Coptic Bible} الكتاب المقدس القبطي},
 langid = {arabic}
}

Rendering of that example:

image

So I think we also need to allow langids to be attached to alternate title fields.

denismaier commented 1 year ago

Yes. Have you seen how the multi script branch of biblatex handles this?

bdarcus commented 1 year ago

No; I didn't have time to dig into it, as it seems a lot to try to learn.

That thread I linked to above is epic!