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
<w:bCs> [complex script] being ignored when convert from docx to anything #4947
Comments
An idea of how to fix it would be to work like MSword does, if he sees <w:b/>` |
It would be easy to have pandoc bold anything that has Also, it would be helpful to know whether there are other similar |
As far as I understood , w:bCs is the same as w:b but it's for complex script (foreign languages ), and thus if there is no reason to have w:bCs tag on regular English or w:b in Hebrew. Forth on your second question I only saw this misbehave with bold and underline, for some reason italic was fine even I didn't look in dept to see why. |
These are variants for "complex scripts" like Arabic and are now treated just like b, i (bold, italic). Colses #4947.
I've pushed a fix. It could use testing, if you want to grab the nightly tomorrow. |
Working flawless. :-) |
Tested on last and nighties.
Sometimes there is both so there is no bug, but at some documents there is only <w:bCs> tags and thus the bolding doesn't work.
In short a docx with this
`-<w:r w:rsidRPr="00597F15">
-<w:rPr>
<w:rFonts w:hint="cs"/>
<w:b/>
<w:bCs/>
<w:rtl/>
</w:rPr>
<w:t>שלום</w:t>
</w:r>`
Will work, but this:
`-<w:r>
-<w:rPr>
<w:rFonts w:cs="David" w:hint="cs"/>
<w:bCs/>
<w:rtl/>
</w:rPr>
<w:t>שלום</w:t>
</w:r>`
Won't work
But if I'll open the zip and replace all the <w:bCs/>into <w:b/> it would work flawless.
Basically that's a complex script support problem.
Thanks in advance.
The text was updated successfully, but these errors were encountered: