Skip to content

apply mirroring in node mode #334

Description

@Udi-Fogiel

In pre_shaping_filter you cannot know the final font id.

The practical problem with that is mirroring, as harf and node behaves differently, and you cannot know what the font will be if fallbacks or multiscripts are used, and there is already a code for that in the bidi branch.

Another possibility is to add a callback/hook after multiscript or move pre_shaping_filter to after fonts are resolved, maybe this hook has other use cases.

Example:

\input unibidi-lua
\directlua{
  luaotfload.add_multiscript("hebrew",{Hebr = "DavidCLM:mode=harf;script=hebr;"})
}

\font\a={name:Latin Modern Roman:mode=node;script=latn;}
\font\b={name:David CLM:mode=harf;script=hebr;}
\font\c={name:Latin Modern Roman:mode=node;script=latn;multiscript=hebrew;}

\a Test () Test \b נסיון () נסיון \c Test () Test נסיון () נסיון

\bye

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions