查看完整版本 : 將網頁由簡體變多個繁體網頁

tmxmatthew 2017-10-13 02:25 PM

將網頁由簡體變多個繁體網頁

想問下高手,如果有個website 本身係簡體字,有無d sdk 或者咩方法可以簡單咁整多個繁體中文website 出黎?

iori101 2017-10-13 09:11 PM

[quote]原帖由 [i]tmxmatthew[/i] 於 2017-10-13 02:25 PM 發表 [url=http://computer.discuss.com.hk/redirect.php?goto=findpost&pid=469298492&ptid=26988627][img]http://computer.discuss.com.hk/images/common/back.gif[/img][/url]
想問下高手,如果有個website 本身係簡體字,有無d sdk 或者咩方法可以簡單咁整多個繁體中文website 出黎? [/quote]
用ConvertZ
佢幫到你

form5 2017-10-13 10:52 PM

sample command

$ curl -s  https://zh.wikipedia.org/wiki/Python |tail -n 4
                </div>
                <script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.812","walltime":"0.960","ppvisitednodes":{"value":4761,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":417260,"limit":2097152},"templateargumentsize":{"value":10215,"limit":2097152},"expansiondepth":{"value":18,"limit":40},"expensivefunctioncount":{"value":28,"limit":500},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00%  566.501      1 -total"," 41.47%  234.933     19 Template:Navbox"," 18.13%  102.692      1 Template:Infobox_programming_language"," 17.36%   98.366     26 Template:Internal_link_helper"," 17.22%   97.536      1 Template:Infobox"," 14.19%   80.388      1 Template:Reflist"," 11.97%   67.803      1 Template:程序设计语言"," 11.65%   65.974     10 Template:Cite_web","  9.91%   56.156     13 Template:Link-en","  9.72%   55.090      1 Template:FOSS"]},"scribunto":{"limitreport-timeusage":{"value":"0.268","limit":"10.000"},"limitreport-memusage":{"value":6990397,"limit":52428800}},"cachereport":{"origin":"mw1288","timestamp":"20171011072519","ttl":3600,"transientcontent":true}}});});</script><script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":104,"wgHostname":"mw1213"});});</script>
        </body>
</html>


$ curl -s  https://zh.wikipedia.org/wiki/Python | iconv -f utf-8 -t gb2312 -sc | iconv -f gb2312 -t big5 -sc | iconv -f big5 -t utf-8 -sc | tail -n 4
                </div>
                <script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.812","walltime":"0.960","ppvisitednodes":{"value":4761,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":417260,"limit":2097152},"templateargumentsize":{"value":10215,"limit":2097152},"expansiondepth":{"value":18,"limit":40},"expensivefunctioncount":{"value":28,"limit":500},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00%  566.501      1 -total"," 41.47%  234.933     19 Template:Navbox"," 18.13%  102.692      1 Template:Infobox_programming_language"," 17.36%   98.366     26 Template:Internal_link_helper"," 17.22%   97.536      1 Template:Infobox"," 14.19%   80.388      1 Template:Reflist"," 11.97%   67.803      1 Template:程序設計語言"," 11.65%   65.974     10 Template:Cite_web","  9.91%   56.156     13 Template:Link-en","  9.72%   55.090      1 Template:FOSS"]},"scribunto":{"limitreport-timeusage":{"value":"0.268","limit":"10.000"},"limitreport-memusage":{"value":6990397,"limit":52428800}},"cachereport":{"origin":"mw1288","timestamp":"20171011072519","ttl":3600,"transientcontent":true}}});});</script><script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":104,"wgHostname":"mw1213"});});</script>
        </body>
</html>

form5 2017-10-13 10:58 PM

the python wiki page is in utf-8, so it must start with -f utf-8
-f  is_from_codec
-t is_to_codec

tail -n is last n lines to show

you may redirect your stdin to any file you like

wtf_name 2017-10-14 12:07 AM

裝同文堂 plugin , chromn 適用, 去親簡字都自動轉

tom.care 2017-11-20 10:53 PM

如果我唔想convert
而係見中國 ip 出中文。見鬼佬 ip 出英文呢?

tk24chan 2017-11-21 02:17 PM

https://www.w3schools.com/howto/howto_google_translate.asp

自己變通一下。
頁: [1]
查看完整版本: 將網頁由簡體變多個繁體網頁