Skip to content

Commit

Permalink
the babel language 'pinyin' should be treated as 'chinese' instead
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 17, 2023
1 parent 536662d commit 7da596a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tinytex
Type: Package
Title: Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents
Version: 0.44.3
Version: 0.44.4
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
person(given = "Posit Software, PBC", role = c("cph", "fnd")),
Expand Down
1 change: 1 addition & 0 deletions R/latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ check_babel = function(text) {
if (length(m <- grep_sub(r, 'hyphen-\\2', text)) == 0) return(FALSE)
# (babel) the language `German (new orthography)' into the format
m = gsub('\\s.*', '', m)
m[m == 'hyphen-pinyin'] = 'hyphen-chinese'
tlmgr_install(tolower(m)) == 0
}

Expand Down

2 comments on commit 7da596a

@nigeder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing done, the issue of not recognizing the correct package has been fixed, well done!

@yihui
Copy link
Member Author

@yihui yihui commented on 7da596a Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks for testing it!

Please sign in to comment.