Select a native XeTeX compatibility profile and wide spacing codes
This commit is contained in:
1 parent
651fab42f1
commit
752af43f32
19 files changed
+471
-115
No files matched your search
+4
-3
@@ -30,7 +30,7 @@ fn run() -> Result<(), String> {
|
||||
let mut args = env::args().skip(1);
|
||||
let Some(command) = args.next() else {
|
||||
return Err(
|
||||
"usage: texrra serve [input.tex] [port] | texrra native [--job] [--initex] [--etex] [--dump-format | --load-format FILE] [--step-limit N] [--input-profile tex8bit|unicode] [--texmf-root DIR] [--input-policy tex|project] [--project-snapshot FILE] [--generated-initial JSON | --observe-generated-initial] [--resource-manifest JSON] [--layout-manifest JSON] [--failure-manifest JSON] input.tex [output.pdf]".into(),
|
||||
"usage: texrra serve [input.tex] [port] | texrra native [--job] [--initex] [--etex] [--dump-format | --load-format FILE] [--step-limit N] [--input-profile tex8bit|unicode|xetex] [--texmf-root DIR] [--input-policy tex|project] [--project-snapshot FILE] [--generated-initial JSON | --observe-generated-initial] [--resource-manifest JSON] [--layout-manifest JSON] [--failure-manifest JSON] input.tex [output.pdf]".into(),
|
||||
);
|
||||
};
|
||||
if command == "native" {
|
||||
@@ -56,7 +56,8 @@ fn run() -> Result<(), String> {
|
||||
input_profile = match args.next().as_deref() {
|
||||
Some("tex8bit") => texrra_tex_core::execution::InputProfile::TeX8Bit,
|
||||
Some("unicode") => texrra_tex_core::execution::InputProfile::UnicodeScalar,
|
||||
_ => return Err("--input-profile requires tex8bit or unicode".into()),
|
||||
Some("xetex") => texrra_tex_core::execution::InputProfile::XeTeX,
|
||||
_ => return Err("--input-profile requires tex8bit, unicode or xetex".into()),
|
||||
};
|
||||
}
|
||||
Some("--job") => native_job_target = true,
|
||||
@@ -145,7 +146,7 @@ fn run() -> Result<(), String> {
|
||||
.map(PathBuf::from)
|
||||
.unwrap_or_else(|| input.with_extension(if dump_format { "tfx" } else { "pdf" }));
|
||||
if args.next().is_some() {
|
||||
return Err("usage: texrra native [--job] [--initex] [--etex] [--dump-format | --load-format FILE] [--step-limit N] [--input-profile tex8bit|unicode] [--texmf-root DIR] [--input-policy tex|project] [--project-snapshot FILE] [--generated-initial JSON | --observe-generated-initial] [--resource-manifest JSON] [--layout-manifest JSON] [--failure-manifest JSON] input.tex [output.pdf]".into());
|
||||
return Err("usage: texrra native [--job] [--initex] [--etex] [--dump-format | --load-format FILE] [--step-limit N] [--input-profile tex8bit|unicode|xetex] [--texmf-root DIR] [--input-policy tex|project] [--project-snapshot FILE] [--generated-initial JSON | --observe-generated-initial] [--resource-manifest JSON] [--layout-manifest JSON] [--failure-manifest JSON] input.tex [output.pdf]".into());
|
||||
}
|
||||
let diagnostic = native_pdf(
|
||||
&input,
|
||||
|
||||
Reference in new issue
Block a user