Skip to content

Commit

Permalink
latex - chinese-hans hyphenation package does not exists. Don't try t…
Browse files Browse the repository at this point in the history
…o install it

closes #10291 - Quarto v1.5 installs a nonexistent package `hyphen-chinese-hans` when compiling PDF
  • Loading branch information
cderv committed Aug 30, 2024
1 parent c543de6 commit 7b5c247
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/command/render/latexmk/parse-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ const resolvingMatchers = [
export function findMissingHyphenationFiles(logText: string) {
//ngerman gets special cased
const filterLang = (lang: string) => {
// It seems some languages have no hyphenation files, so we just filter them out
// e.g. `lang: zh` has no hyphenation files
// https://github.com/quarto-dev/quarto-cli/issues/10291
const noHyphen = ["chinese-hans"];
if (noHyphen.includes(lang)) {
return;
}

// NOTE Although the names of the corresponding lfd files match those in this list,
// there are some exceptions, particularly in German and Serbian. So, ngerman is
// called here german, which is the name in the CLDR and, actually, the most logical.
Expand Down

0 comments on commit 7b5c247

Please sign in to comment.