Execute ICU locale line breaks in native XeTeX paragraphs
This commit is contained in:
1 parent
4e16531a62
commit
048478c346
12 files changed
+238
-29
No files matched your search
@@ -2650,6 +2650,13 @@ impl Executor {
|
||||
fn filename_with_quoting(
|
||||
&mut self,
|
||||
files: &mut impl SourceProvider,
|
||||
) -> Result<(String, bool), Error> {
|
||||
self.scan_filename(files, false)
|
||||
}
|
||||
fn scan_filename(
|
||||
&mut self,
|
||||
files: &mut impl SourceProvider,
|
||||
allow_empty: bool,
|
||||
) -> Result<(String, bool), Error> {
|
||||
let first = self.expanded_non_space(files)?;
|
||||
let mut used_quotes = false;
|
||||
@@ -2694,7 +2701,7 @@ impl Executor {
|
||||
return self.fail("unclosed quote in filename");
|
||||
}
|
||||
}
|
||||
if name.is_empty() {
|
||||
if name.is_empty() && !allow_empty {
|
||||
return self.fail("empty filename");
|
||||
}
|
||||
self.decode_filename(name).map(|name| (name, used_quotes))
|
||||
@@ -3264,6 +3271,7 @@ impl Executor {
|
||||
Primitive::XeTeXglyphname => "XeTeXglyphname".into(),
|
||||
Primitive::XeTeXinputencoding => "XeTeXinputencoding".into(),
|
||||
Primitive::XeTeXdefaultencoding => "XeTeXdefaultencoding".into(),
|
||||
Primitive::XeTeXlinebreaklocale => "XeTeXlinebreaklocale".into(),
|
||||
Primitive::XeTeXcharclass => "XeTeXcharclass".into(),
|
||||
Primitive::XeTeXinterchartoks => "XeTeXinterchartoks".into(),
|
||||
Primitive::BeginL => "beginL".into(),
|
||||
|
||||
Reference in new issue
Block a user