Solved! Go to Solution.
Views
Replies
Total Likes
Hi Susan,
You will have to use :lang() class in the css. We have it partially documented on the following page
Have something like the following in your content.css file of the PDF template.
:lang(en) {
font-family: Arial;
}
:lang(zh-TWzh-CN) {
font-family: MicrosoftJhengHeiUI;
}
:lang(zh-TW) {
font-family: MicrosoftJhengHeiUI;
}
You can read more about this on
https://developer.mozilla.org/en-US/docs/Web/CSS/:lang
Let us know if this helps.
Thanks,
Vivek
Views
Replies
Total Likes
Hi Susan,
You will have to use :lang() class in the css. We have it partially documented on the following page
Have something like the following in your content.css file of the PDF template.
:lang(en) {
font-family: Arial;
}
:lang(zh-TWzh-CN) {
font-family: MicrosoftJhengHeiUI;
}
:lang(zh-TW) {
font-family: MicrosoftJhengHeiUI;
}
You can read more about this on
https://developer.mozilla.org/en-US/docs/Web/CSS/:lang
Let us know if this helps.
Thanks,
Vivek
Views
Replies
Total Likes
Yes, this did partially help.
Do you know why this language mapping worked for 90% of the text within the PDF, but not for the Chinese-specific "" as defined in the Language Variables? Those quotes as used in the on-page variables still appear to be in Arial instead of Microsoft JhengHei and therefore do not have the extra space required by the Chinese languages. (Most of the rest of the PDF is in JhengHei. I'll have to figure out why some of the table content is in Arial and some is in JhengHei.)
Views
Replies
Total Likes
Hi Susan,
How are you putting quotes? Are you using the <q> element? I doubt if the language variable is the right way to handle quotes. If you use <q> element then by default it will get handled otherwise you can also specify in the CSS file.
:lang(en) > q { quotes: "\201C" "\201D" "\2018" "\2019"; } :lang(fr) > q { quotes: "« " " »"; } :lang(de) > q { quotes: "»" "«" "\2039" "\203A"; }
See the example on the mozilla page
https://developer.mozilla.org/en-US/docs/Web/CSS/:lang
Otherwise download the temporary merged HTML file and inspect in the browser where the quote style is coming from. You can use this to find out for your TOC as well.
Thanks,
Vivek
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies