Advertisement
Guest User

arbiter

a guest
May 25th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5.  
  6. ^i::
  7.     Send, Ï
  8. Return
  9.  
  10. ^e::
  11.     Send, é
  12. Return
  13.  
  14. ^-::
  15.     Send,
  16. Return
  17.    
  18. ^!s::
  19.     Square()
  20. Return
  21.  
  22. ^!w::
  23.     Widetext()
  24. Return
  25.  
  26. ::larrow::
  27.  
  28. ::rarrow::
  29.  
  30. ::uarrow::
  31.  
  32. ::darrow::
  33.  
  34. ::subset::
  35.  
  36. ::propersubset::
  37.  
  38. ::iff::
  39.  
  40. ::disjunction::
  41.  
  42. ::conjunction::
  43.  
  44. ::setunion::
  45.  
  46. ::setintersection::
  47.  
  48. ::plusorminus::±
  49.  
  50. ::antiderivative::
  51.  
  52. ::logicalconsequence::
  53.  
  54. ::logicalnegation::¬
  55.  
  56. ::notequals::
  57.  
  58. ::approximatelyequals::
  59.  
  60. ::mapsto::
  61.  
  62. ::xor::
  63.  
  64. ::partialderivative::
  65.  
  66. ::forall::
  67.  
  68. ::thereexists::
  69.  
  70. ::elementof::
  71.  
  72. ::notelementof::
  73.  
  74. ::logicalequivalence::
  75.  
  76. ::langle::
  77.  
  78. ::rangle::
  79.  
  80. ::modalnecessity::
  81.  
  82. ::modalpossibility::
  83.  
  84. ::anarchysymbol::
  85.  
  86. ::hammerandsickle::
  87.  
  88. ::alpha::α
  89.  
  90. ::beta::β
  91.  
  92. ::biggamma::Γ
  93.  
  94. ::gamma::γ
  95.  
  96. ::bigdelta::Δ
  97.  
  98. ::delta::δ
  99.  
  100. ::epsilon::ε
  101.  
  102. ::zeta::ζ
  103.  
  104. ::eta::η
  105.  
  106. ::bigtheta::Θ
  107.  
  108. ::theta::θ
  109.  
  110. ::iota::ι
  111.  
  112. ::kappa::κ
  113.  
  114. ::biglambda::Λ
  115.  
  116. ::lambda::λ
  117.  
  118. ::mu::μ
  119.  
  120. ::nu::ν
  121.  
  122. ::bigxi::Ξ
  123.  
  124. ::xi::ξ
  125.  
  126. ::bigpi::Π
  127.  
  128. ::pi::π
  129.  
  130. ::rho::ρ
  131.  
  132. ::bigsigma::Σ
  133.  
  134. ::sigma::σ
  135.  
  136. ::sigmaend::ς
  137.  
  138. ::tau::τ
  139.  
  140. ::upsilon::υ
  141.  
  142. ::bigphi::Φ
  143.  
  144. ::phi::φ
  145.  
  146. ::chi::χ
  147.  
  148. ::bigpsi::Ψ
  149.  
  150. ::psi::ψ
  151.  
  152. ::bigomega::Ω
  153.  
  154. ::omega::ω
  155.  
  156. ::aleph::א
  157.  
  158. ::hebrewbet::ב
  159.  
  160. ::heartemoji::
  161.  
  162. ::staremoji::
  163.  
  164. ::fullblock::
  165.  
  166. ::eaccent::é
  167.  
  168. ::divisionsign::÷
  169.  
  170. ::crossproduct::×
  171.  
  172. ::cdot::·
  173.  
  174. ::interrobang::
  175.  
  176. ::sectionsign::§
  177.  
  178. ::emdash::
  179.  
  180. ::hbar::ħ
  181.  
  182. ::infinitysymbol::
  183.  
  184. ::emptyset::
  185.  
  186. ::dotminus::
  187.  
  188. ::lessorequal::
  189.  
  190. ::greaterorequal::
  191.  
  192. ::muchless::
  193.  
  194. ::muchgreater::
  195.  
  196. ::bb-a::𝔸
  197.  
  198. ::bb-b::𝔹
  199.  
  200. ::bb-c::ℂ
  201.  
  202. ::bb-d::𝔻
  203.  
  204. ::bb-e::𝔼
  205.  
  206. ::bb-f::𝔽
  207.  
  208. ::bb-g::𝔾
  209.  
  210. ::bb-h::ℍ
  211.  
  212. ::bb-i::𝕀
  213.  
  214. ::bb-j::𝕁
  215.  
  216. ::bb-k::𝕂
  217.  
  218. ::bb-l::𝕃
  219.  
  220. ::bb-m::𝕄
  221.  
  222. ::bb-n::ℕ
  223.  
  224. ::bb-o::𝕆
  225.  
  226. ::bb-p::ℙ
  227.  
  228. ::bb-q::ℚ
  229.  
  230. ::bb-r::ℝ
  231.  
  232. ::bb-s::𝕊
  233.  
  234. ::bb-t::𝕋
  235.  
  236. ::bb-u::𝕌
  237.  
  238. ::bb-v::𝕍
  239.  
  240. ::bb-w::𝕎
  241.  
  242. ::bb-x::𝕏
  243.  
  244. ::bb-y::𝕐
  245.  
  246. ::bb-z::ℤ
  247.  
  248. Square()
  249. {
  250.     spaces := "   "
  251.     spacesfour := "    "
  252.     spaceholder := ""
  253.     inp := ""
  254.     InputBox, inp
  255.     if ErrorLevel
  256.         return
  257.     Loop, Parse, inp
  258.     {
  259.         Send %A_LoopField%
  260.         Send %spaces%
  261.     }
  262.     Send {enter}
  263.     offset := Round(1.434 * StrLen(inp) - 7.534)
  264.     Loop, Parse, inp
  265.     {
  266.         if (A_Index != 1 && A_Index != StrLen(inp)) {
  267.             Send %A_LoopField%
  268.             spaceholder := ""
  269.             Loop % StrLen(inp)
  270.             {
  271.                 spaceholder := spaceholder . spacesfour
  272.             }
  273.             if (offset < 0) {
  274.                 StringTrimRight, spaceholder, spaceholder, (offset * -1)
  275.             } else if (offset > 0) {
  276.                 Loop % offset
  277.                 {
  278.                     spaceholder := spaceholder . " "
  279.                 }
  280.             }
  281.             if (A_LoopField == "I") {
  282.                 spaceholder := spaceholder . " "
  283.             }
  284.             Send %spaceholder%
  285.             endletter := SubStr(inp, 1 - A_Index, 1)
  286.             Send %endletter%
  287.             Send {enter}
  288.         }
  289.     }
  290.     Loop, Parse, inp
  291.     {
  292.         backletter := SubStr(inp, 1 - A_Index, 1)
  293.         Send %backletter%
  294.         Send %spaces%
  295.     }
  296.     Send {enter}
  297. }
  298.  
  299. Widetext()
  300. {
  301.     inp := ""
  302.     finalstring := ""
  303.     spaces := "      "
  304.     InputBox, inp
  305.     if ErrorLevel
  306.         return
  307.     Loop, Parse, inp
  308.     {
  309.         if (A_Index != StrLen(inp)) {
  310.             finalstring := finalstring . A_LoopField . spaces
  311.         } else {
  312.             finalstring := finalstring . A_LoopField
  313.         }
  314.     }
  315.     Send %finalstring%
  316. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement