📄 entities.java
字号:
map.put("Alpha", new Integer(65)); map.put("Beta", new Integer(66)); map.put("Chi", new Integer(67)); map.put("Delta", new Integer(68)); map.put("Epsilon", new Integer(69)); map.put("Eta", new Integer(72)); map.put("Gamma", new Integer(71)); map.put("Iota", new Integer(73)); map.put("Kappa", new Integer(75)); map.put("Lambda", new Integer(76)); map.put("Mu", new Integer(77)); map.put("Nu", new Integer(78)); map.put("Omega", new Integer(87)); map.put("Omicron", new Integer(79)); map.put("Phi", new Integer(70)); map.put("Pi", new Integer(80)); map.put("Prime", new Integer(178)); map.put("Psi", new Integer(89)); map.put("Rho", new Integer(82)); map.put("Sigma", new Integer(83)); map.put("Tau", new Integer(84)); map.put("Theta", new Integer(81)); map.put("Upsilon", new Integer(85)); map.put("Xi", new Integer(88)); map.put("Zeta", new Integer(90)); map.put("alefsym", new Integer(192)); map.put("alpha", new Integer(97)); map.put("and", new Integer(217)); map.put("ang", new Integer(208)); map.put("asymp", new Integer(187)); map.put("beta", new Integer(98)); map.put("cap", new Integer(199)); map.put("chi", new Integer(99)); map.put("clubs", new Integer(167)); map.put("cong", new Integer(64)); map.put("copy", new Integer(211)); map.put("crarr", new Integer(191)); map.put("cup", new Integer(200)); map.put("dArr", new Integer(223)); map.put("darr", new Integer(175)); map.put("delta", new Integer(100)); map.put("diams", new Integer(168)); map.put("divide", new Integer(184)); map.put("empty", new Integer(198)); map.put("epsilon", new Integer(101)); map.put("equiv", new Integer(186)); map.put("eta", new Integer(104)); map.put("euro", new Integer(240)); map.put("exist", new Integer(36)); map.put("forall", new Integer(34)); map.put("frasl", new Integer(164)); map.put("gamma", new Integer(103)); map.put("ge", new Integer(179)); map.put("hArr", new Integer(219)); map.put("harr", new Integer(171)); map.put("hearts", new Integer(169)); map.put("hellip", new Integer(188)); map.put("horizontal arrow extender", new Integer(190)); map.put("image", new Integer(193)); map.put("infin", new Integer(165)); map.put("int", new Integer(242)); map.put("iota", new Integer(105)); map.put("isin", new Integer(206)); map.put("kappa", new Integer(107)); map.put("lArr", new Integer(220)); map.put("lambda", new Integer(108)); map.put("lang", new Integer(225)); map.put("large brace extender", new Integer(239)); map.put("large integral extender", new Integer(244)); map.put("large left brace (bottom)", new Integer(238)); map.put("large left brace (middle)", new Integer(237)); map.put("large left brace (top)", new Integer(236)); map.put("large left bracket (bottom)", new Integer(235)); map.put("large left bracket (extender)", new Integer(234)); map.put("large left bracket (top)", new Integer(233)); map.put("large left parenthesis (bottom)", new Integer(232)); map.put("large left parenthesis (extender)", new Integer(231)); map.put("large left parenthesis (top)", new Integer(230)); map.put("large right brace (bottom)", new Integer(254)); map.put("large right brace (middle)", new Integer(253)); map.put("large right brace (top)", new Integer(252)); map.put("large right bracket (bottom)", new Integer(251)); map.put("large right bracket (extender)", new Integer(250)); map.put("large right bracket (top)", new Integer(249)); map.put("large right parenthesis (bottom)", new Integer(248)); map.put("large right parenthesis (extender)", new Integer(247)); map.put("large right parenthesis (top)", new Integer(246)); map.put("larr", new Integer(172)); map.put("le", new Integer(163)); map.put("lowast", new Integer(42)); map.put("loz", new Integer(224)); map.put("minus", new Integer(45)); map.put("mu", new Integer(109)); map.put("nabla", new Integer(209)); map.put("ne", new Integer(185)); map.put("not", new Integer(216)); map.put("notin", new Integer(207)); map.put("nsub", new Integer(203)); map.put("nu", new Integer(110)); map.put("omega", new Integer(119)); map.put("omicron", new Integer(111)); map.put("oplus", new Integer(197)); map.put("or", new Integer(218)); map.put("otimes", new Integer(196)); map.put("part", new Integer(182)); map.put("perp", new Integer(94)); map.put("phi", new Integer(102)); map.put("pi", new Integer(112)); map.put("piv", new Integer(118)); map.put("plusmn", new Integer(177)); map.put("prime", new Integer(162)); map.put("prod", new Integer(213)); map.put("prop", new Integer(181)); map.put("psi", new Integer(121)); map.put("rArr", new Integer(222)); map.put("radic", new Integer(214)); map.put("radical extender", new Integer(96)); map.put("rang", new Integer(241)); map.put("rarr", new Integer(174)); map.put("real", new Integer(194)); map.put("reg", new Integer(210)); map.put("rho", new Integer(114)); map.put("sdot", new Integer(215)); map.put("sigma", new Integer(115)); map.put("sigmaf", new Integer(86)); map.put("sim", new Integer(126)); map.put("spades", new Integer(170)); map.put("sub", new Integer(204)); map.put("sube", new Integer(205)); map.put("sum", new Integer(229)); map.put("sup", new Integer(201)); map.put("supe", new Integer(202)); map.put("tau", new Integer(116)); map.put("there4", new Integer(92)); map.put("theta", new Integer(113)); map.put("thetasym", new Integer(74)); map.put("times", new Integer(180)); map.put("trade", new Integer(212)); map.put("uArr", new Integer(221)); map.put("uarr", new Integer(173)); map.put("upsih", new Integer(161)); map.put("upsilon", new Integer(117)); map.put("vertical arrow extender", new Integer(189)); map.put("weierp", new Integer(195)); map.put("xi", new Integer(120)); map.put("zeta", new Integer(122)); } /** * Gets a chunk with a symbol character. */ public static Chunk get(String e, Font font) { int s = getCorrespondingSymbol(e); if (s == -1) { try { return new Chunk(String.valueOf((char)Integer.parseInt(e)), font); } catch(Exception exception) { return new Chunk(e, font); } } Font symbol = new Font(Font.SYMBOL, font.size(), font.style(), font.color()); return new Chunk(String.valueOf((char)s), symbol); } /** * Looks for the corresponding symbol in the font Symbol. * * @param c the original ASCII-char * @return the corresponding symbol in font Symbol */ public static int getCorrespondingSymbol(String c) { Integer integer = (Integer) map.get(c); if (integer == null) { return -1; } return integer.intValue(); } /** * Checks if a given tag corresponds with this object. * * @param tag the given tag * @return true if the tag corresponds */ public static boolean isTag(String tag) { return ElementTags.ENTITY.equals(tag); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -