You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function latinWordStartCheck(contextParams) {
const char = contextParams.current;
const prevChar = contextParams.get(-1);
return (
// ? latin first char
(prevChar === null && isLatinChar(char)) ||
// ? latin char preceded with a non latin char
(!isLatinChar(prevChar) && isLatinChar(char))
);
}
function latinWordEndCheck(contextParams) {
const nextChar = contextParams.get(1);
return (
// ? last latin char
(nextChar === null) ||
// ? next char is not latin
(!isLatinChar(nextChar))
);
}
I think we mixed up ‘script’ and ‘language’.
'script 'is more like a preference. https://learn.microsoft.com/en-us/typography/script-development/standard#features
If you choosed 'latn', Equivalent to you choosed ['ccmp','liga','clig'] by default. You can also manually choose to close or open certain tags if you want. When the program queries these tags first or returns ' latn ', but cannot find them, it needs to return' DFLT '
'Language' is more like optimization for certain characters.
Selective processing based on Unicode. And I think we needn't support it now.
The text was updated successfully, but these errors were encountered:
'liga' works in latin words well. But for non Latin characters, it's not work.
For example, https://learn.microsoft.com/en-us/typography/opentype/otspec183/gsub#example-7-contextsubstformat1-subtable-and-substlookuprecord
NewFont-Regular.ttf.zip
Expected Behavior
Current Behavior
Possible Solution
These two rules are very similar, the only different is 'latin characters'. I think the problem lies in https://github.com/opentypejs/opentype.js/blob/master/src/features/latn/contextCheck/latinWord.js
I think we mixed up ‘script’ and ‘language’.
'script 'is more like a preference.
https://learn.microsoft.com/en-us/typography/script-development/standard#features
If you choosed 'latn', Equivalent to you choosed ['ccmp','liga','clig'] by default. You can also manually choose to close or open certain tags if you want. When the program queries these tags first or returns ' latn ', but cannot find them, it needs to return' DFLT '
'Language' is more like optimization for certain characters.
Selective processing based on Unicode. And I think we needn't support it now.
The text was updated successfully, but these errors were encountered: