Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accent support progress #3

Open
10 of 14 tasks
cbreeden opened this issue Dec 8, 2016 · 0 comments
Open
10 of 14 tasks

Accent support progress #3

cbreeden opened this issue Dec 8, 2016 · 0 comments

Comments

@cbreeden
Copy link
Collaborator

cbreeden commented Dec 8, 2016

Accent Support Progress

  • If there is no accent, typeset like normal.
  • Take largest accent smaller than nucleus.
  • Layout nucleus with style cramped.
  • Baseline of result == baseline of base.
  • Determine offset of accent:
    • Accent has attachment correction:
      • If accentee has attachment correction,
        then align attachment corrections of both.
      • Otherwise, align attachment correction of
        accentee with center of nucleus, plus
        italics correction of nucleus is a symbol.
    • Accent has no attachment correction:
      • If accentee has attachment correction,
        center of accent with accent correction of base.
      • Align accent center with base center (plus)
        italics correction if it's a symbol.
  • For superscripts, if accentee is simple symbol,
    scripts should not take accent into account for height. See Accents should not place simple symbols in a ParseNode::Group #4.
  • The width of the resulting box is the width of the base.
  • BottomAccent: vertical placement is directly below nucleus,
    no correction takes place.
  • WideAccent vs Accent: Don't expand non-WideAccent types by default.
  • Implement FlattenedAccentBaseHeight.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant