Honor pdfTeX character program tags and qualify PLOS ONE
This commit is contained in:
1 parent
84ad682939
commit
a1585339b9
21 files changed
+308
-28
No files matched your search
@@ -362,6 +362,8 @@ pub enum Primitive {
|
||||
Knaccode,
|
||||
Efcode,
|
||||
Pdffontexpand,
|
||||
Pdfnoligatures,
|
||||
Tagcode,
|
||||
Pdfobj,
|
||||
Pdfrefobj,
|
||||
Pdflastobj,
|
||||
@@ -987,6 +989,8 @@ const PDFTEX_ONLY_PRIMITIVES: &[(&str, Primitive)] = {
|
||||
("knaccode", Knaccode),
|
||||
("efcode", Efcode),
|
||||
("pdffontexpand", Pdffontexpand),
|
||||
("pdfnoligatures", Pdfnoligatures),
|
||||
("tagcode", Tagcode),
|
||||
("letterspacefont", Letterspacefont),
|
||||
("pdffilesize", Pdffilesize),
|
||||
("pdffilemoddate", Pdffilemoddate),
|
||||
@@ -2083,6 +2087,16 @@ impl State {
|
||||
self.update_profile_command("pdfinsertht", Meaning::Primitive(Primitive::Pdfinsertht), enabled);
|
||||
}
|
||||
|
||||
pub(super) fn install_pdf_font_tag_commands(&mut self) {
|
||||
let enabled = self.input_profile != super::InputProfile::XeTeX;
|
||||
for (name, primitive) in [
|
||||
("pdfnoligatures", Primitive::Pdfnoligatures),
|
||||
("tagcode", Primitive::Tagcode),
|
||||
] {
|
||||
self.update_profile_command(name, Meaning::Primitive(primitive), enabled);
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn install_filedump_command(&mut self) {
|
||||
let name = if self.input_profile == super::InputProfile::XeTeX {
|
||||
"filedump"
|
||||
|
||||
Reference in new issue
Block a user