[MLZ] Mixed author name styles based on language tag
Some publications require differing name orders for Western and non-Western names. E.g.:
Tanaka Shoutarou and John Doe. This is the booktitle. Publisher, 2000.
(Tanaka is the surname, Shoutarou the first name.)
I know that in MLZ it is possible to set the language for an *item* and that CSL-m can select a layout based on that information, but this doesn't help if there are languages mixed within an item, e.g. if an item has authors from countries with differing name order conventions.
Is it possible to check a field for the existence of a language tag? Basically, I want to do:
<if variable="author#ja-alalc97">
/*display name in Japanese order*/
</if>
<else>
/*display name in Western order*/
</else>
With the assumption, that Japanese authors have an entry in the ja-alalc97 field belonging to the author field.
A workaround would be to enter names in the order in which they should appear in citations, as the CSL-m specification says, but then all the names would have to be edited depending on publications' guidelines, defeating the advantage of entering first names and surnames separately.
Tanaka Shoutarou and John Doe. This is the booktitle. Publisher, 2000.
(Tanaka is the surname, Shoutarou the first name.)
I know that in MLZ it is possible to set the language for an *item* and that CSL-m can select a layout based on that information, but this doesn't help if there are languages mixed within an item, e.g. if an item has authors from countries with differing name order conventions.
Is it possible to check a field for the existence of a language tag? Basically, I want to do:
<if variable="author#ja-alalc97">
/*display name in Japanese order*/
</if>
<else>
/*display name in Western order*/
</else>
With the assumption, that Japanese authors have an entry in the ja-alalc97 field belonging to the author field.
A workaround would be to enter names in the order in which they should appear in citations, as the CSL-m specification says, but then all the names would have to be edited depending on publications' guidelines, defeating the advantage of entering first names and surnames separately.