Hyphenate native XeTeX OpenType words during line breaking
This commit is contained in:
1 parent
20986b2fd5
commit
c97e0e7279
8 files changed
+321
-16
No files matched your search
@@ -35,6 +35,14 @@ impl HyphenationLanguage {
|
||||
}
|
||||
}
|
||||
}
|
||||
pub(super) fn max_word_length(state: &State) -> usize {
|
||||
if state.input_profile() == InputProfile::XeTeX {
|
||||
state.parameter(Parameter::XeTeXhyphenatablelength).width().clamp(0, 4095) as usize
|
||||
} else {
|
||||
63
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn normalize_language(n: i32) -> u8 {
|
||||
if (1..=255).contains(&n) { n as u8 } else { 0 }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user