idle
从 xlsx 读取翻译后的文本,对比旧的 XML 替换翻译,生成翻译后的 XML
记录:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | using libxl; using System.Collections.Generic; using System.Xml.Linq; namespace Test { class Program { static void Main( string [] args) { var textData = new Dictionary< string , string >(); var doc = XDocument.Load( "Old.xml" ); foreach (var item in doc.Root.Descendants( "text" )) { textData[item.Attribute( "t" ).Value] = item.Attribute( "value" ).Value; } var dic = new Dictionary< string , string >(); Book book = new XmlBook(); book.load( "new.xlsx" ); var sheet = book.getSheet(0); for ( int i = 0; i < 4886; i++) { var a1 = sheet.readStr(i, 0); var a2 = sheet.readStr(i, 1); dic[a1] = a2; } var newXml = new XElement( "GameTextSet" ); foreach (var node in textData) { string str; if (dic.TryGetValue(node.Value, out str)){} else if (dic.TryGetValue(node.Value.Trim(), out str)){} else str = node.Value + " 没有翻译" ; newXml.Add( new XElement( "text" , new XAttribute( "t" , node.Key), new XAttribute( "value" , str))); } newXml.Save( "New.xml" ); } } } |
test 6
$$\alpha,\beta$$ 测试 $$\Gamma$$ 测试 $$\int_{-1}^1 \sqrt{(1-x^2)}\,{\rm d}x =\frac \pi 2$$
test 5
Google Charts API
test 4
网页直接嵌入 pdf
方法 1.
1 2 | < embed height = "674" width = "1030" type = "application/pdf" |
方法 2.
1 2 3 | ewscode.googlecode.com%2Ffiles%2F3.pdf& embedded = true " width = "600" height = "780" style = "border: none;" ></ iframe > |
test 3
摘抄自《数论I》
引理:设 \(a,b,c\in \mathbb{Q}^+\),则下面的(I),(II)等价.
(I) 存在 \(x,y\in \mathbb{Q}\) 使 \(ax^2+by^2=c\) .
(II) 存在 \(x,y,z\in \mathbb{Q}\) ,\((x,y,z)\neq(0,0,0)\) 使 \(ax^2+by^2=cz^2\) .
test 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | \usemodule [zhfonts][style=dim] \usezhfonts [rm,12pt] \setupinterlinespace [line=18pt] \setupindenting [always,2em,first] \starttext 设 $f(x)$ 有泰勒展开式 $ \sum_ {n=0}^{+ \infty }a_n(x-x_0)^n$ 与 $ \sum_ {n=0}^{+ \infty }a_n^{ \prime }(x-x_0)^n$ . 因为 $f(x)= \sum_ {n=0}^{+ \infty }a_n^{ \prime }(x-x_0)^n$, 所以 \startformula \frac {f( \xi )}{( \xi -x_0)^k}= \frac {1}{2 \pi i} \sum_ {n=0}^{+ \infty }a_n^{ \prime } \frac {( \xi -x_0)^n}{( \xi -x_0)^k} \stopformula 因为 $f(x)$ 在以收敛半径 $r$ 为半径的开圆盘 $B(x_0,r)$ 内解析,所以 $f(x)$ 在 $B(x_0,r)$ 内闭一致收敛(魏尔斯特拉斯定理),所以 \startformula \startalign \int_L \frac {f( \xi )}{( \xi -x_0)^k} \ ,{ \rm d} \xi &= \frac {1}{2 \pi i} \sum_ {n=0}^{+ \infty } \int_L \frac {a_n^{ \prime }}{( \xi -x_0)^{k-n}} \ ,{ \rm d} \xi \frac {f^{n}(x_0)}{n!}&= \frac {1}{2 \pi i} \sum_ {n=0}^{+ \infty } \int_L \frac {a_n^{ \prime }}{( \xi -x_0)^{k-n}} \ ,{ \rm d} \xi \qquad (k=n+1) a_n&=a_n^{ \prime } \qquad \text {右边因为} \frac {1}{2 \pi i} \oint_L \frac {{ \rm d} \xi }{( \xi -x_0)^n}= \startmathcases \NC 1, \NC if $n=1$, \NR \NC 0 , \NC if $n \neq 1$. \NR \stopmathcases \stopalign \stopformula \stoptext |
test
出处 http://www.loyhome.cn/841.html 本人只是试写一下
去除 pdf 数字签名
最后在网上找到一个解决方案:
1.创建一个只有一页的PDF,用Acrobat打开。
2.使用“文档->插入页面”,把有数字签名的文档插入到那一页后面。
3.使用“文档->删除页面”,删除第一页,然后保存文档。
这个办法既可以保留书签,又能完全去除数字签名,而且无需借助特殊软件
放一个以前写的,免得这里空空的。