Class: Plurimath::Math::Symbols::Symbol

Inherits:
Core
  • Object
show all
Defined in:
lib/plurimath/math/symbols/symbol.rb

Direct Known Subclasses

Aa, Ac, Accurrent, Acidfree, Acute, Acwcirclearrow, Acwgapcirclearrow, Acwleftarcarrow, Acwoverarcarrow, Acwunderarcarrow, Aleph, Alpha, Amalg, Ampersand, Anchor, Angdnr, Angle, Angles, Angleubar, Angmsd, Angrtvb, Angsph, Angstrom, Annuity, Aplboxquestion, Aplboxupcaret, Aplcomment, Apldownarrowbox, Aplinput, Aplinv, Aplleftarrowbox, Apllog, Aplrightarrowbox, Apluparrowbox, Apprge, Apprle, Approx, Approxeq, Approxeqq, Approxident, Aquarius, Arceq, Aries, Arrowbullet, Assert, Ast, Asteq, Asteraccent, Asymp, Atsign, Awint, Backcong, Backdprime, Backepsilon, Backprime, Backsim, Backsimeq, Backslash, Backtrprime, Bagmember, Ballotx, Bar, Barcap, Barcup, Barin, Barleftarrow, Barleftarrowrightarrowba, Barleftharpoon, Barovernorthwestarrow, Barrightarrowdiamond, Barrightharpoon, Baruparrow, Barv, Barvee, Barwedge, Bbrktbrk, Bdtriplevdash, Because, Benzenr, Beth, Between, Bigblacktriangledown, Bigblacktriangleup, Bigbot, Bigcupdot, Biginterleave, Bigodot, Bigoplus, Bigotimes, Bigslopedvee, Bigslopedwedge, Bigsqcap, Bigsqcup, Bigstar, Bigtalloblong, Bigtop, Bigtriangledown, Bigtriangleleft, Bigtriangleup, Biguplus, Bigwedge, Bigwhitestar, Bij, Biohazard, Blackcircledownarrow, Blackcircledrightdot, Blackcircledtwodots, Blackcircleulquadwhite, Blackdiamonddownarrow, Blackhourglass, Blackinwhitediamond, Blackinwhitesquare, Blacklozenge, Blackpointerleft, Blackpointerright, Blacksmiley, Blacktriangle, Blacktriangledown, Blkhorzoval, Blkvertoval, Blockfull, Blockhalfshaded, Blocklefthalf, Blocklowhalf, Blockqtrshaded, Blockrighthalf, Blockthreeqtrshaded, Blockuphalf, Bnot, Bot, Botsemicircle, Bowtie, Box, Boxast, Boxbar, Boxbox, Boxbslash, Boxcircle, Boxdiag, Boxdot, Boxminus, Boxonbox, Boxplus, Boxtimes, Breve, Bsimilarleftarrow, Bsimilarrightarrow, Bsolhsub, Btimes, Bullet, Bullseye, Bumpeq, Bumpeqq, Buni, Cancer, Candra, Cap, Capbarcup, Capdot, Capovercup, Capricornus, Capwedge, Caretinsert, Carriagereturn, Cat, Cc, Ccwundercurvearrow, Cdot, Cdotp, Cdots, Cent, Check, Checkedbox, Checkmark, Chi, Cirbot, Circ, Circeq, Circle, Circlebottomhalfblack, Circledbullet, Circledgtr, Circledownarrow, Circledparallel, Circledr, Circledrightdot, Circledstar, Circledtwodots, Circledvert, Circledwhitebullet, Circlehbar, Circlellquad, Circlelrquad, Circleonleftarrow, Circleonrightarrow, Circletophalfblack, Circleulquad, Circleurquad, Circleurquadblack, Circlevertfill, Cire, Cirfnint, Cirmid, Cirscir, Clockoint, Closedvarcap, Closedvarcup, Closedvarcupsmashprod, Closure, Clubsuit, Cntclockoint, Colon, Coloneq, Comma, Commaminus, Comp, Complement, Concavediamond, Concavediamondtickleft, Concavediamondtickright, Cong, Congdot, Conictaper, Conjquant, Coprod, Csub, Csube, Csup, Csupe, Cuberoot, Cup, Cupbarcap, Cupdot, Cupleftarrow, Cupovercap, Cupvee, Curlyeqprec, Curlyeqsucc, Curlyvee, Curlywedge, Curvearrowleftplus, Curvearrowright, Curvearrowrightminus, Cwcirclearrow, Cwgapcirclearrow, Cwrightarcarrow, Cwundercurvearrow, Dag, Daleth, Danger, Darr, Dasharrow, Dasharrowright, Dashv, Dashvdash, Dbkarow, Dd, Ddag, Ddddot, Dddot, Ddot, Ddots, Ddotseq, Ddownarrow, Degc, Degf, Degree, Del, Delta, Deltaeq, Diameter, Diamond, Diamondblack, Diamondbotblack, Diamonddot, Diamondleftarrow, Diamondleftarrowbar, Diamondleftblack, Diamondrightblack, Diamondtopblack, Dicei, Diceii, Diceiii, Diceiv, Dicev, Dicevi, Digamma, Dingasterisk, Dint, Disin, Disjquant, Div, Divideontimes, Dot, Doteq, Dotequiv, Dotminus, Dotplus, Dots, Dotsim, Dotsminusdots, Dottedcircle, Dottedsquare, Dottimes, Doublebarvee, Doublebarwedge, Doubleplus, Downarrow, Downarrowbar, Downarrowbarred, Downarrows, Downdasharrow, Downdownharpoons, Downfishtail, Downharpoonleft, Downharpoonright, Downleftteevector, Downleftvectorbar, Downrightcurvedarrow, Downrightteevector, Downrightvectorbar, Downtriangleleftblack, Downtrianglerightblack, Downuparrows, Downupharpoons, Downwhitearrow, Dprime, Draftingarrow, Drbkarow, Droang, Dsol, Dsub, Dualmap, Duni, Earth, Ee, Egsdot, Eighthnote, Elinters, Ell, Elsdot, Emptyset, Emptysetoarr, Emptysetoarrl, Emptysetobar, Emptysetocirc, Enclosecircle, Enclosediamond, Enclosesquare, Enclosetriangle, Enleadertwodots, Epar, Eparsl, Epsilon, Eqcirc, Eqcolon, Eqdef, Eqdot, Eqeq, Eqgtr, Eqless, Eqno, Eqqcolon, Eqqgtr, Eqqless, Eqqplus, Eqqsim, Eqqslantgtr, Eqqslantless, Eqsim, Eqslantgtr, Eqslantless, Equal, Equalleftarrow, Equalrightarrow, Equiv, Equivdd, Equivvert, Equivvvert, Eqvparsl, Errbarblackcircle, Errbarblackdiamond, Errbarblacksquare, Errbarcircle, Errbardiamond, Errbarsquare, Eta, Eth, Euler, Euro, Exclam, Exi, Exists, Fallingdotseq, Fbowtie, Fdiagovnearrow, Fdiagovrdiag, Ffun, Finj, Fint, Finv, Fisheye, Flat, Fltns, Forall, Forks, Forksnot, Forkv, Fourthroot, Fourvdots, Fracslash, Frown, Fullouterjoin, Funcapply, Game, Gamma, Ge, Gemini, Geq, Geqq, Geqqslant, Geqslant, Gescc, Gesdot, Gesdoto, Gesdotol, Gesles, Gets, Gg, Ggg, Gggnest, Gimel, Gla, Gle, Gleichstark, Glj, Gnapprox, Gneq, Gneqq, Gnsim, Grad, Grave, Greater, Gsime, Gsiml, Gt, Gtcc, Gtcir, Gtlpar, Gtquest, Gtrapprox, Gtrarr, Gtrdot, Gtreqless, Gtreqqless, Gtrless, Harr, Hash, Hat, Hatapprox, Hbar, Hearsuit, Hermaphrodite, Hermitmatrix, Hexagon, Hexagonblack, Hide, Hknearrow, Hknwarrow, Hksearow, Hkswarow, Hline, Hookleftarrow, Hookrightarrow, Horizbar, Hourglass, House, Hrectangle, Hrectangleblack, Hyphenbullet, Hzigzag, If, Iff, Ii, Iiiint, Iiint, Iinfin, Iint, Im, Imageof, Imath, Impliedby, In, Inc, Int, Intbar, Intbottom, Intcap, Intclockwise, Intcup, Intercal, Interleave, Intextender, Intlarhk, Intprod, Intprodr, Inttop, Intx, Invdiameter, Inversebullet, Inversewhitecircle, Invlazys, Invnot, Invwhitelowerhalfcircle, Invwhiteupperhalfcircle, Iota, Isindot, Isine, Isinobar, Isins, Isinvb, Jj, Jmath, Join, Jupiter, Kappa, Kernelcontraction, Koppa, Lambda, Land, Lang, Langledot, Laplac, Larr, Lat, Late, Lbag, Lblkbrbrak, Lblot, Lbracelend, Lbracemid, Lbraceuend, Lbrackextender, Lbracklend, Lbracklltick, Lbrackubar, Lbrackuend, Lbrackultick, Lbrbrak, Lcurvyangle, Ldsh, Le, Leadsto, Leftarrow, Leftarrowapprox, Leftarrowbackapprox, Leftarrowbsimilar, Leftarrowless, Leftarrowonoplus, Leftarrowplus, Leftarrowshortrightarrow, Leftarrowsimilar, Leftarrowsubset, Leftarrowtail, Leftarrowtriangle, Leftarrowx, Leftbarharpoon, Leftbkarrow, Leftcircle, Leftcurvedarrow, Leftdasharrow, Leftdbkarrow, Leftdbltail, Leftdotarrow, Leftdowncurvedarrow, Leftdownteevector, Leftdownvectorbar, Leftharpoondown, Leftharpoonup, Leftleftarrows, Leftleftharpoons, Leftmoon, Leftouterjoin, Leftrightarrow, Leftrightarrowcircle, Leftrightarrows, Leftrightarrowtriangle, Leftrightharpoon, Leftrightharpoondown, Leftrightharpoonsdown, Leftrightharpoonsup, Leftrightharpoonup, Leftrightwavearrow, Leftsquigarrow, Lefttail, Leftteevector, Leftthreearrows, Leftthreetimes, Leftturn, Leftupdownharpoon, Leftupteevector, Leftupvectorbar, Leftvectorbar, Leftwavearrow, Leftwhitearrow, Leo, Leq, Leqq, Leqqslant, Leqslant, Lescc, Lesdot, Lesdoto, Lesdotor, Lesges, Less, Lessapprox, Lessdot, Lesseqgtr, Lesseqqgtr, Lessgtr, Lfbowtie, Lftimes, Lgblkcircle, Lgblksquare, Lge, Lgroup, Lgwhtcircle, Lgwhtsquare, Lhd, Libra, Lightning, Limg, Linefeed, Ll, Llarc, Llblacktriangle, Llcorner, Lleftarrow, Lll, Lllnest, Lltriangle, Lmoust, Lmoustache, Lnapprox, Lneq, Lnot, Lnsim, Longdashv, Longdivision, Longleftarrow, Longleftrightarrow, Longleftsquigarrow, Longmapsfrom, Longmapsto, Longrightarrow, Looparrowleft, Lor, Lowint, Lozenge, Lozengeminus, Lparen, Lparenextender, Lparengtr, Lparenlend, Lparenless, Lparenuend, Lrarc, Lrblacktriangle, Lrcorner, Lrhar, Lrtimes, Lrtriangle, Lrtriangleeq, Lsh, Lsime, Lsimg, Lsqhook, Lt, Ltcc, Ltcir, Ltimes, Ltlarr, Ltquest, Ltrivb, Lvboxline, Lvec, Lvzigzag, Maltese, Mapsdown, Mapsfrom, Mapsto, Mapstoleft, Mapsup, Mars, Mathcolon, Mathdollar, Mathslash, Mdblkdiamond, Mdblklozenge, Mdblksquare, Mdlgblksquare, Mdsmblksquare, Mdsmwhtcircle, Mdsmwhtsquare, Mdwhtdiamond, Mdwhtlozenge, Mdwhtsquare, Measangledltosw, Measangledrtose, Measangleldtosw, Measanglelutonw, Measanglerdtose, Measanglerutone, Measangleultonw, Measangleurtone, Measeq, Measuredangleleft, Medblackstar, Medbullet, Medcirc, Medsp, Medwhitestar, Mercury, Mho, Mid, Midbarvee, Midbarwedge, Midcir, Minus, Minusdot, Minusfdots, Minusrdots, Mlcp, Models, Modtwosum, Mp, Mu, Multimap, Multimapinv, Nabla, Napprox, Nasymp, Natural, Ncong, Ne, Nearrow, Neg, Neovnwarrow, Neovsearrow, Neptune, Neq, Nequiv, Neswarrow, Neuter, Nexi, Ngeq, Ngt, Ngtrless, Ngtrsim, Nhdownarrow, Nhpar, Nhuparrow, Nhvvert, Ni, Nin, Niobar, Nis, Nisd, Nleftarrow, Nleftrightarrow, Nleq, Nless, Nlessgtr, Nlesssim, Nmid, Nn, Nni, Nnn, Not, Notbackslash, Notin, Notslash, Nparallel, Npolint, Nprec, Npreceq, Nrightarrow, Nsim, Nsime, Nsqsubseteq, Nsqsuperseteq, Nsub, Nsucc, Nsucceq, Nsup, Ntriangleleft, Ntriangleright, Nu, Nunlhd, Nunrhd, Nvdash, Nvinfty, Nvleftarrow, Nvleftarrowtail, Nvleftrightarrow, Nvrightarrow, Nvtwoheadleftarrow, Nvtwoheadleftarrowtail, Nvtwoheadrightarrow, Nvtwoheadrightarrowtail, Nwarrow, Nwovnearrow, Nwsearrow, Oast, Obar, Obot, Obrace, Obrbrak, Obslash, Ocirc, Ocommatopright, Octothorpe, Odash, Odiv, Odot, Odotslashdot, Oeq, Oiiint, Oiint, Oint, Olcross, Olessthan, Omega, Ominus, Oo, Operp, Oplus, Opluslhrim, Oplusrhrim, Origof, Oslash, Otimes, Otimeshat, Otimeslhrim, Otimesrhrim, Oturnedcomma, Overbar, Overbracket, Overleftrightarrow, Overline, Ovhook, Ox, Parallelogram, Parallelogramblack, Paren, Parsim, Partial, Partialmeetcontraction, Pencil, Pentagon, Pentagonblack, Percent, Period, Perp, Perps, Pfun, Phi, Pi, Pinj, Pisces, Pitchfork, Planckconst, Plus, Plusdot, Pluseqq, Plushat, Plussim, Plussubtwo, Plustrif, Pluto, Pm, Pointint, Pointright, Postalmark, Pounds, Pppprime, Ppprime, Pprime, Prcue, Prec, Precapprox, Preceq, Preceqq, Precnapprox, Precneq, Precneqq, Precnsim, Precsim, Prime, Prod, Profline, Profsurf, Project, Prop, Propertyline, Psi, Psur, Pullback, Pushout, Qed, Qprime, Qq, Qquad, Quad, Quarternote, Questeq, Question, Radiation, Rang, Rangledot, Rangledownzigzagarrow, Ratio, Rbag, Rblkbrbrak, Rblot, Rbracelend, Rbracemid, Rbraceuend, Rbrackextender, Rbracklend, Rbracklrtick, Rbrackubar, Rbrackuend, Rbrackurtick, Rbrbrak, Rcurvyangle, Rddots, Rdiagovfdiag, Rdiagovsearrow, Rdsh, Re, Recycle, Rel, Restriction, Revangle, Revangleubar, Revemptyset, Revnmid, Rfbowtie, Rftimes, Rgroup, Rhd, Rho, Rightangle, Rightanglemdot, Rightanglesqr, Rightarrow, Rightarrowapprox, Rightarrowbackapprox, Rightarrowbar, Rightarrowbsimilar, Rightarrowdiamond, Rightarrowgtr, Rightarrowonoplus, Rightarrowplus, Rightarrowshortleftarrow, Rightarrowsimilar, Rightarrowsupset, Rightarrowtail, Rightarrowtriangle, Rightarrowx, Rightbarharpoon, Rightbkarrow, Rightcircle, Rightdbltail, Rightdotarrow, Rightdowncurvedarrow, Rightdownteevector, Rightdownvectorbar, Rightharpoonaccent, Rightharpoondown, Rightharpoonup, Rightimply, Rightleftarrow, Rightleftharpoon, Rightleftharpoonsdown, Rightleftharpoonsup, Rightmoon, Rightouterjoin, Rightpentagon, Rightpentagonblack, Rightrightarrows, Rightrightharpoons, Rightsquigarrow, Righttail, Rightteevector, Rightthreearrows, Rightthreetimes, Rightturn, Rightupdownharpoon, Rightupteevector, Rightupvectorbar, Rightvectorbar, Rightwavearrow, Rightwhitearrow, Rimg, Ring, Ringplus, Risingdotseq, Rlhar, Rmoust, Rparen, Rparenextender, Rparengtr, Rparenlend, Rparenless, Rparenuend, Rppolint, Rr, Rrightarrow, Rsh, Rsolbar, Rsqhook, Rsub, Rtimes, Rtriltri, Ruledelayed, Rvboxline, Rvert, Rvzigzag, Sadface, Sagittarius, Same, Sampi, Sanslmirrored, Sanslturned, Saturn, Scorpio, Scpolint, Scurel, Sdef, Searrow, Second, Semi, Semicolon, Seovnearrow, Setminus, Sharp, Shortdowntack, Shortlefttack, Shortrightarrowleftarrow, Shortuptack, Shuffle, Sigma, Sim, Simeq, Simge, Simgtr, Similarleftarrow, Similarrightarrow, Simle, Simless, Simminussim, Simneqq, Simplus, Simrdots, Sixteenthnote, Skull, Slash, Smallblacktriangleleft, Smallblacktriangleright, Smallin, Smallni, Smalltriangleleft, Smalltriangleright, Smashtimes, Smblkcircle, Smblkdiamond, Smblklozenge, Smblksquare, Smeparsl, Smile, Smiley, Smt, Smte, Smwhitestar, Smwhtcircle, Smwhtlozenge, Smwhtsquare, Space, Spadesuit, Spddot, Sphat, Sphericalangleup, Spot, Sprime, Sptilde, Sqcap, Sqcup, Sqint, Sqlozenge, Sqrtbottom, Sqsubset, Sqsubseteq, Sqsubsetneq, Sqsupset, Sqsupseteq, Square, Squarebotblack, Squarecrossfill, Squarehfill, Squarehvfill, Squareleftblack, Squarellblack, Squarellquad, Squarelrblack, Squarelrquad, Squareneswfill, Squarenwsefill, Squarerightblack, Squaretopblack, Squareulblack, Squareulquad, Squareurblack, Squareurquad, Squarevfill, Squoval, Sslash, Star, Stareq, Steaming, Stigma, Strictfi, Strictif, Strns, Sub, Sube, Subedot, Submult, Subrarr, Subset, Subsetapprox, Subsetcirc, Subsetdot, Subseteq, Subseteqq, Subsetneq, Subsetneqq, Subsetplus, Subsim, Subsub, Succ, Succapprox, Succcurlyeq, Succeq, Succeqq, Succnapprox, Succneq, Succneqq, Succnsim, Succsim, Sum, Sumbottom, Sumint, Sumtop, Sun, Sup, Supdsub, Supe, Supedot, Suphsol, Suphsub, Suplarr, Supmult, Supset, Supsetapprox, Supsetcirc, Supsetdot, Supseteq, Supseteqq, Supsetneq, Supsetneqq, Supsetplus, Supsim, Supsub, Supsup, Swarrow, Swords, Talloblong, Tau, Taurus, Tcmu, Tcohm, Therefore, Thermod, Theta, Third, Threedangle, Threedotcolon, Threeunderdot, Tieinfty, Tilde, Times, Timesbar, Tinj, Tminus, To, Toea, Tona, Top, Topbot, Topcir, Topfork, Topsemicircle, Tosa, Towa, Tplus, Trapezium, Triangle, Trianglecdot, Triangledown, Triangleleftblack, Triangleminus, Triangleodot, Triangleplus, Trianglerightblack, Triangles, Triangleserifs, Triangletimes, Triangleubar, Tripleplus, Trslash, Tsur, Tt, Turnangle, Turnediota, Turnednot, Twocaps, Twocups, Twoheaddownarrow, Twoheadleftarrow, Twoheadleftarrowtail, Twoheadleftdbkarrow, Twoheadmapsfrom, Twoheadmapsto, Twoheadrightarrow, Twoheadrightarrowtail, Twoheaduparrow, Twoheaduparrowcircle, Twolowline, Twonotes, Typecolon, Uarr, Ubrace, Ubrbrak, Ul, Ularc, Ulblacktriangle, Ulcorner, Ultriangle, Uminus, Underbar, Underbracket, Underleftarrow, Underleftharpoondown, Underline, Underparen, Underrightarrow, Underrightharpoondown, Unicodeellipsis, Unlhd, Unrhd, Upalpha, Upand, Uparrow, Uparrowbarred, Uparrowoncircle, Upbeta, UpcaseCap, UpcaseDd, UpcaseDelta, UpcaseEquiv, UpcaseGamma, UpcaseLambda, UpcaseMapsto, UpcaseOmega, UpcasePhi, UpcasePi, UpcasePsi, UpcaseRbrack, UpcaseRightarrow, UpcaseSigma, UpcaseTheta, UpcaseWedge, UpcaseXi, UpcaseupOmega, Upchi, Updasharrow, Updownarrow, Updownarrowbar, Updownarrows, Updownharpoonleftright, Updownharpoonrightleft, Upepsilon, Upequilibrium, Upeta, Upfishtail, Upharpoonleft, Upin, Upint, Upiota, Upkappa, Upkoppa, Upmu, Upnu, Upomicron, Uprho, Uprightcurvearrow, Upsilon, Uptau, Upuparrows, Upupharpoons, Upvarsigma, Upvartheta, Upwhitearrow, Upzeta, Uranus, Urarc, Urblacktriangle, Urcorner, Urtriangle, Utilde, Uu, Uuparrow, Uuu, Varbarwedge, Varbeta, Varcarriagereturn, Varclub, Vardiamond, Vardoublebarwedge, Varepsilon, Varheart, Varhexagon, Varhexagonblack, Varhexagonlrbonds, Varisins, Varkappa, Varlrtriangle, Varniobar, Varnis, Varnothing, Varphi, Varpi, Varprod, Varrho, Varsigma, Varspade, Varstar, Vartheta, Vartriangle, Vartriangleleft, Vartriangleright, Varvdash, Varveebar, Vbar, Vbarv, Vbraceextender, Vbrtri, Vdash, Vddash, Vdots, Vec, Vectimes, Vee, Veebar, Veedot, Veedoublebar, Veeeq, Veemidvert, Veeodot, Veeonvee, Veeonwedge, Venus, Vertoverlay, Viewdata, Virgo, Vlongdash, Vrectangle, Vrectangleblack, Vv, Vvdash, Vvv, Vysmblkcircle, Vysmblksquare, Vysmwhtcircle, Vysmwhtsquare, Vzigzag, Warning, Wasytherefore, Wedge, Wedgebar, Wedgedot, Wedgedoublebar, Wedgemidvert, Wedgeodot, Wedgeonwedge, Whitearrowupfrombar, Whiteinwhitetriangle, Whitepointerleft, Whitepointerright, Whitesquaretickleft, Whitesquaretickright, Whthorzoval, Whtvertoval, Wideangledown, Wideangleup, Widebridgeabove, Wideparen, Wp, Wr, Xbox, Xi, Xsol, Xx, Yen, Yinyang, Yup, Zbar, Zeta, Zpipe, Zwnj, Zwsp, Zz

Constant Summary collapse

INPUT =
{}.freeze

Constants inherited from Core

Core::REPLACABLES

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Core

#ascii_fields_to_print, #class_name, #cloned_objects, #common_math_zone_conversion, descendants, #dump_mathml, #dump_nodes, #dump_omml, #dump_ox_nodes, #empty_tag, #extract_class_name_from_text, #extractable?, #filtered_values, #get, #gsub_spacing, inherited, #invert_unicode_symbols, #is_binary_function?, #is_nary_function?, #is_nary_symbol?, #is_ternary_function?, #is_unary?, #latex_fields_to_print, #line_breaking, #mathml_fields_to_print, #nary_intent_name, #omml_fields_to_print, #omml_parameter, #ox_element, #prime_unicode?, #r_element, #replacable_values, #result, #set, #unicodemath_fields_to_print, #unicodemath_parens, #updated_object_values, #validate_mathml_fields, #variable_value, #variables

Constructor Details

#initialize(sym = nil, slashed = nil, mini_sub_sized: false, mini_sup_sized: false, options: {}) ⇒ Symbol

Returns a new instance of Symbol.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/plurimath/math/symbols/symbol.rb', line 11

def initialize(sym = nil,
               slashed = nil,
               mini_sub_sized: false,
               mini_sup_sized: false,
               options: {})
  @value = sym.is_a?(Parslet::Slice) ? sym.to_s : sym
  @slashed = slashed if slashed
  @mini_sub_sized = mini_sub_sized if mini_sub_sized
  @mini_sup_sized = mini_sup_sized if mini_sup_sized
  @options = options unless options.empty?
end

Instance Attribute Details

#mini_sub_sizedObject

Returns the value of attribute mini_sub_sized.



7
8
9
# File 'lib/plurimath/math/symbols/symbol.rb', line 7

def mini_sub_sized
  @mini_sub_sized
end

#mini_sup_sizedObject

Returns the value of attribute mini_sup_sized.



7
8
9
# File 'lib/plurimath/math/symbols/symbol.rb', line 7

def mini_sup_sized
  @mini_sup_sized
end

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/plurimath/math/symbols/symbol.rb', line 7

def options
  @options
end

#slashedObject

Returns the value of attribute slashed.



7
8
9
# File 'lib/plurimath/math/symbols/symbol.rb', line 7

def slashed
  @slashed
end

#valueObject

Returns the value of attribute value.



7
8
9
# File 'lib/plurimath/math/symbols/symbol.rb', line 7

def value
  @value
end

Class Method Details

.input(lang) ⇒ Object



147
148
149
# File 'lib/plurimath/math/symbols/symbol.rb', line 147

def self.input(lang)
  self::INPUT[lang]
end

Instance Method Details

#==(object) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/plurimath/math/symbols/symbol.rb', line 23

def ==(object)
  object.respond_to?(:value) &&
    object.class == object.class &&
    object.value == value &&
    object.slashed == slashed &&
    object.mini_sub_sized == mini_sub_sized &&
    object.mini_sup_sized == mini_sup_sized &&
    object.options == options
end

#font_style_t_tag(_, options:) ⇒ Object



86
87
88
# File 'lib/plurimath/math/symbols/symbol.rb', line 86

def font_style_t_tag(_, options:)
  t_tag(options: options)
end

#input(lang) ⇒ Object



143
144
145
# File 'lib/plurimath/math/symbols/symbol.rb', line 143

def input(lang)
  self.class.input(lang)
end

#insert_t_tag(_, options:) ⇒ Object



74
75
76
# File 'lib/plurimath/math/symbols/symbol.rb', line 74

def insert_t_tag(_, options:)
  [(Utility.ox_element("r", namespace: "m") << t_tag(options: options))]
end

#linebreakObject



111
112
113
# File 'lib/plurimath/math/symbols/symbol.rb', line 111

def linebreak
  value == "\\\\"
end

#mini_sized?Boolean

Returns:

  • (Boolean)


115
116
117
# File 'lib/plurimath/math/symbols/symbol.rb', line 115

def mini_sized?
  mini_sub_sized || mini_sup_sized
end

#nary_attr_value(options:) ⇒ Object



90
91
92
# File 'lib/plurimath/math/symbols/symbol.rb', line 90

def nary_attr_value(options:)
  value || Utility.html_entity_to_unicode(to_omml_without_math_tag(true, options: options))
end

#omml_nodes(_, options:) ⇒ Object



98
99
100
# File 'lib/plurimath/math/symbols/symbol.rb', line 98

def omml_nodes(_, options:)
  Array(t_tag(options: options))
end

#omml_tag_nameObject



82
83
84
# File 'lib/plurimath/math/symbols/symbol.rb', line 82

def omml_tag_name
  "subSup"
end

#paren?Boolean

Returns:

  • (Boolean)


139
140
141
# File 'lib/plurimath/math/symbols/symbol.rb', line 139

def paren?
  false
end

#separate_tableObject



106
107
108
109
# File 'lib/plurimath/math/symbols/symbol.rb', line 106

def separate_table
  ["&", "\\\\"].include?(value) ||
    self.is_a?(Math::Symbols::Ampersand)
end

#t_tag(options:) ⇒ Object



102
103
104
# File 'lib/plurimath/math/symbols/symbol.rb', line 102

def t_tag(options:)
  Utility.ox_element("t", namespace: "m") << (value || to_omml_without_math_tag(nil, options: options))
end

#tag_nameObject



78
79
80
# File 'lib/plurimath/math/symbols/symbol.rb', line 78

def tag_name
  "subsup"
end

#to_asciimathObject



33
34
35
36
37
# File 'lib/plurimath/math/symbols/symbol.rb', line 33

def to_asciimath(**)
  return "" if value.nil?

  value
end

#to_asciimath_math_zone(spacing = "", last = false, indent = true, options:) ⇒ Object



119
120
121
# File 'lib/plurimath/math/symbols/symbol.rb', line 119

def to_asciimath_math_zone(spacing = "", last = false, indent = true, options:)
  "#{spacing}\"#{to_asciimath(options: options)}\" text\n"
end

#to_htmlObject



58
59
60
# File 'lib/plurimath/math/symbols/symbol.rb', line 58

def to_html(**)
  value
end

#to_latexObject



51
52
53
54
55
56
# File 'lib/plurimath/math/symbols/symbol.rb', line 51

def to_latex(**)
  returned = specific_values
  return returned if returned

  value
end

#to_latex_math_zone(spacing = "", last = false, indent = true, options:) ⇒ Object



123
124
125
# File 'lib/plurimath/math/symbols/symbol.rb', line 123

def to_latex_math_zone(spacing = "", last = false, indent = true, options:)
  "#{spacing}\"#{to_latex(options: options)}\" text\n"
end

#to_mathml_math_zone(spacing = "", last = false, indent = true, options:) ⇒ Object



131
132
133
# File 'lib/plurimath/math/symbols/symbol.rb', line 131

def to_mathml_math_zone(spacing = "", last = false, indent = true, options:)
  "#{spacing}\"#{dump_mathml(self, options: options)}\" text\n"
end

#to_mathml_without_math_tag(intent) ⇒ Object



39
40
41
42
43
44
45
46
47
48
49
# File 'lib/plurimath/math/symbols/symbol.rb', line 39

def to_mathml_without_math_tag(intent, **)
  if value&.include?("&#x2147;")
    attributes = {
      intent: Utility.html_entity_to_unicode(value),
    }
  end
  mi_tag = ox_element("mi", attributes: attributes)
  return mi_tag if ["{:", ":}"].include?(value)

  mi_tag << value
end

#to_omml_math_zone(spacing = "", last = false, indent = true, display_style:, options:) ⇒ Object



127
128
129
# File 'lib/plurimath/math/symbols/symbol.rb', line 127

def to_omml_math_zone(spacing = "", last = false, indent = true, display_style:, options:)
  "#{spacing}\"#{dump_omml(self, display_style, options: options)}\" text\n"
end

#to_omml_without_math_tag(_) ⇒ Object



62
63
64
# File 'lib/plurimath/math/symbols/symbol.rb', line 62

def to_omml_without_math_tag(_, **)
  value
end

#to_unicodemathObject



66
67
68
69
70
71
72
# File 'lib/plurimath/math/symbols/symbol.rb', line 66

def to_unicodemath(**)
  return "\\#{value}" if slashed || special_chars
  return mini_sub if mini_sub_sized
  return mini_sup if mini_sup_sized

  value
end

#to_unicodemath_math_zone(spacing = "", last = false, indent = true, options:) ⇒ Object



135
136
137
# File 'lib/plurimath/math/symbols/symbol.rb', line 135

def to_unicodemath_math_zone(spacing = "", last = false, indent = true, options:)
  "#{spacing}\"#{to_unicodemath(options: options)}\" text\n"
end

#validate_function_formulaObject



94
95
96
# File 'lib/plurimath/math/symbols/symbol.rb', line 94

def validate_function_formula
  false
end