Skip to main content

Posts

Showing posts from March, 2016

Tranlstaion with patterns (Emacs Lisp)

I have following practice problems. I would like to translate them to Japanese and German. The $200$ is the $\\green{\\text{whole}}$. We are trying to find the $\\pink{\\text{part}}$ that makes up $11\\%$ of it: The $25$ is the $\\green{\\text{whole}}$. We are trying to find the $\\pink{\\text{part}}$ that makes up $12\\%$ of it: ... You might notice these problems differs only inside $$. So, I can replace them with the following regexp by emacs's query-replace-regexp function. The $\(.*\)$ is the $\(.*\)$. We are trying to find the $\(.*\)$ that makes up $\(.*\)$ of it: $\1$ は $\2$ です.私達はその $\4$ となるだけの $\3$ を探しています: You might also notice, you can see a pattern from this sentence The $200$ is the $\\green{\\text{whole}}$. We are trying to find the $\\pink{\\text{part}}$ that makes up $11\\%$ of it: to The $\(.*\)$ is the $\(.*\)$. We are trying to find the $\(.*\)$ that makes up $\(.*\)$ of it: I thought this is done by the following function: (query-replace-re

Super Tuesday

I am visiting US. Coincidentally, there was the super Tuesday. Some news  show Trump's domination. His motto is ``Make america great again''. However, his definition of word `great' is quite different from I know. He wants to build a wall on southern border and Mexico should pay it. He doesn't believe climate change. He wants to remove the public health care. He wants to bomb ISIS. He wants to restore the death penalty. (See http://www.nytimes.com/interactive/2016/us/elections/donald-trump-on-the-issues.html ) Currently, he is winning. I have a problem to understand of his definition of 'great'. If there is a problem inside a country, then the reason is outside (e.g., Mexico wall). If there is a problem, he just doesn't believe that (e.g., climate change), and so on. If he won, I am afraid what he would do. I can easily imagine it is a war to one of (or some of) ISIS, Russia, China, Mexico, some of Islamic countries, .... I am also afraid who actually