Fix export of corporate author to MSOffice#4337
Conversation
tobiasdiez
left a comment
There was a problem hiding this comment.
Well, that solution is clearly a hack but one that works (in simple situations). It would be way better to include corporation parsing to the author parser. The Office export is not the only situation where we need this information (e.g. main table display). But since a proper solution requires substantial refactoring (e.g. introduction of Person and Corporation deriving from Author), I'm fine with merging this PR. But please add a TODO comment explaining that this is an ugly workaround...
|
The author parser is not the problem, as long as the braces are present corporate authors are detected and correctly recognized. it's the latex to Unicode converter who kills the braces from corporate authors. This is the core problem. See other linked issue. |
Fix tests
Fix #4329
The underlying problem is the same as in #4152
However, I came up with a workaround for MSOffice.
The only edgecase which can occur if the entry starts with an author in latex braces and ends with an author in latex braces. That one will probably be interpreted as corporate.