Skip to content

Commit db19686

Browse files
committed
latex - chinese-hans hyphenation package does not exists. Don't try to install it
closes #10291 - Quarto v1.5 installs a nonexistent package `hyphen-chinese-hans` when compiling PDF
1 parent b3f3acb commit db19686

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/command/render/latexmk/parse-error.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ const resolvingMatchers = [
111111
export function findMissingHyphenationFiles(logText: string) {
112112
//ngerman gets special cased
113113
const filterLang = (lang: string) => {
114+
// It seems some languages have no hyphenation files, so we just filter them out
115+
// e.g. `lang: zh` has no hyphenation files
116+
// https://github.com/quarto-dev/quarto-cli/issues/10291
117+
const noHyphen = ["chinese-hans"];
118+
if (noHyphen.includes(lang)) {
119+
return;
120+
}
121+
114122
// NOTE Although the names of the corresponding lfd files match those in this list,
115123
// there are some exceptions, particularly in German and Serbian. So, ngerman is
116124
// called here german, which is the name in the CLDR and, actually, the most logical.

0 commit comments

Comments
 (0)