Class: Plurimath::Math::Symbols::Symbol
- Inherits:
-
Core
- Object
- Core
- Plurimath::Math::Symbols::Symbol
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, Unicodecdots, Unicodeellipsis, Unlhd, Unrhd, Upalpha, Upand, Uparrow, Uparrowbarred, Uparrowoncircle, Upbeta, UpcaseCap, 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
-
#==(object) ⇒ Object
-
#font_style_t_tag(_) ⇒ Object
-
#initialize(sym = nil, slashed = nil, mini_sub_sized: false, mini_sup_sized: false, options: {}) ⇒ Symbol
constructor
A new instance of Symbol.
-
#input(lang) ⇒ Object
-
#insert_t_tag(_) ⇒ Object
-
#is_nary_symbol? ⇒ Boolean
-
#linebreak ⇒ Object
-
#mini_sized? ⇒ Boolean
-
#nary_attr_value ⇒ Object
-
#omml_nodes(_) ⇒ Object
-
#omml_tag_name ⇒ Object
-
#paren? ⇒ Boolean
-
#separate_table ⇒ Object
-
#t_tag ⇒ Object
-
#tag_name ⇒ Object
-
#to_asciimath ⇒ Object
-
#to_asciimath_math_zone(spacing = "", last = false, indent = true) ⇒ Object
-
#to_html ⇒ Object
-
#to_latex ⇒ Object
-
#to_latex_math_zone(spacing = "", last = false, indent = true) ⇒ Object
-
#to_mathml_math_zone(spacing = "", last = false, indent = true) ⇒ Object
-
#to_mathml_without_math_tag ⇒ Object
-
#to_omml_math_zone(spacing = "", last = false, indent = true, display_style:) ⇒ Object
-
#to_omml_without_math_tag(_) ⇒ Object
-
#to_unicodemath ⇒ Object
-
#validate_function_formula ⇒ Object
Methods inherited from Core
#ascii_fields_to_print, #class_name, #cloned_objects, #common_math_zone_conversion, #dump_mathml, #dump_nodes, #dump_omml, #dump_ox_nodes, #empty_tag, #extract_class_name_from_text, #extractable?, #filtered_values, #get, #gsub_spacing, #invert_unicode_symbols, #is_binary_function?, #is_nary_function?, #is_ternary_function?, #is_unary?, #latex_fields_to_print, #line_breaking, #mathml_fields_to_print, #omml_fields_to_print, #omml_parameter, #ox_element, #prime_unicode?, #r_element, #replacable_values, #result, #set, #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_sized ⇒ Object
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_sized ⇒ Object
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
|
#options ⇒ Object
Returns the value of attribute options.
7
8
9
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 7
def options
@options
end
|
#slashed ⇒ Object
Returns the value of attribute slashed.
7
8
9
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 7
def slashed
@slashed
end
|
#value ⇒ Object
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
157
158
159
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 157
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(_) ⇒ Object
85
86
87
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 85
def font_style_t_tag(_)
t_tag
end
|
153
154
155
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 153
def input(lang)
self.class.input(lang)
end
|
#insert_t_tag(_) ⇒ Object
69
70
71
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 69
def insert_t_tag(_)
[(Utility.ox_element("r", namespace: "m") << t_tag)]
end
|
#is_nary_symbol? ⇒ Boolean
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 114
def is_nary_symbol?
%w[
∬
∭
∯
∰
∲
∳
∱
∩
∪
∐
].include?(value)
end
|
#linebreak ⇒ Object
110
111
112
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 110
def linebreak
value == "\\\\"
end
|
#mini_sized? ⇒ Boolean
129
130
131
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 129
def mini_sized?
mini_sub_sized || mini_sup_sized
end
|
#nary_attr_value ⇒ Object
89
90
91
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 89
def nary_attr_value
value || Utility.html_entity_to_unicode(to_omml_without_math_tag(true))
end
|
#omml_nodes(_) ⇒ Object
97
98
99
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 97
def omml_nodes(_)
Array(t_tag)
end
|
#omml_tag_name ⇒ Object
77
78
79
80
81
82
83
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 77
def omml_tag_name
if ["⋀", "⋁", "⋂", "⋃", "⋃", "∑", "∏"].include?(value)
return "undOvr"
end
"subSup"
end
|
#paren? ⇒ Boolean
149
150
151
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 149
def paren?
false
end
|
#separate_table ⇒ Object
105
106
107
108
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 105
def separate_table
["&", "\\\\"].include?(value) ||
self.is_a?(Math::Symbols::Ampersand)
end
|
#t_tag ⇒ Object
101
102
103
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 101
def t_tag
Utility.ox_element("t", namespace: "m") << (value || to_omml_without_math_tag(nil))
end
|
#tag_name ⇒ Object
73
74
75
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 73
def tag_name
["⋀", "⋁", "⋂", "⋃"].include?(value) ? "underover" : "subsup"
end
|
#to_asciimath ⇒ Object
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) ⇒ Object
133
134
135
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 133
def to_asciimath_math_zone(spacing = "", last = false, indent = true)
"#{spacing}\"#{to_asciimath}\" text\n"
end
|
#to_html ⇒ Object
53
54
55
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 53
def to_html
value
end
|
#to_latex ⇒ Object
46
47
48
49
50
51
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 46
def to_latex
returned = specific_values
return returned if returned
value
end
|
#to_latex_math_zone(spacing = "", last = false, indent = true) ⇒ Object
137
138
139
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 137
def to_latex_math_zone(spacing = "", last = false, indent = true)
"#{spacing}\"#{to_latex}\" text\n"
end
|
#to_mathml_math_zone(spacing = "", last = false, indent = true) ⇒ Object
145
146
147
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 145
def to_mathml_math_zone(spacing = "", last = false, indent = true)
"#{spacing}\"#{dump_mathml(self)}\" text\n"
end
|
#to_mathml_without_math_tag ⇒ Object
39
40
41
42
43
44
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 39
def to_mathml_without_math_tag
mi_tag = Utility.ox_element("mi")
return mi_tag if ["{:", ":}"].include?(value)
mi_tag << value
end
|
#to_omml_math_zone(spacing = "", last = false, indent = true, display_style:) ⇒ Object
141
142
143
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 141
def to_omml_math_zone(spacing = "", last = false, indent = true, display_style:)
"#{spacing}\"#{dump_omml(self, display_style)}\" text\n"
end
|
#to_omml_without_math_tag(_) ⇒ Object
57
58
59
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 57
def to_omml_without_math_tag(_)
value
end
|
#to_unicodemath ⇒ Object
61
62
63
64
65
66
67
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 61
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
|
93
94
95
|
# File 'lib/plurimath/math/symbols/symbol.rb', line 93
def validate_function_formula
false
end
|