Skip to content

New rule: math-split-chemical-elements #24

Description

@TimArborealis

Suggested name: math-split-chemical-elements

We want a rule that checks for when chemical elements have been incorrectly captured in separate elements. For example, sodium should be marked up as <mi>Na</mi>, not <mi>N</mi><mi>a</mi>.

The rule should identify consecutive <mi> elements, the content of which together make up a chemical element. Here is a complete list of elements to check against: Ac Ag Al Am Ar As At Au Ba Be Bh Bi Bk Br Ca Cd Ce Cf Cl Cm Cn Co Cr Cs Cu Db Ds Dy Er Es Eu Fe Fl Fm Fr Ga Gd Ge Hf Hg Ho In Ir Kr La Li Lr Lu Lv Mc Md Mg Mn Mo Mt Na Nb Nd Ne Nh Ni No Np Os Pa Pb Pd Pm Po Pr Pt Pu Ra Rb Re Rf Rg Rh Rn Ru Sb Sc Se Sg Si Sm Sn Sr Ta Tb Tc Te Th Ti Tl Tm Ts Xe Yb Zn Zr

See examples of markup which should be flagged in test_issue_24.epub

@MartheGjelstad, thoughts? (created together with @AntonLMTM )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions