:::

13. fusion 360 中文化自已來

中文化:https://www.youtube.com/watch?v=XF-2QblS4go

zh-TW中文化檔案下載

2023/10/1測試沒成功

https://www.youtube.com/watch?v=XF-2QblS4go 的路徑
C:\Users\sairw\AppData\Local\Autodesk\webdeploy\production\1b7b241a4d7e74709532875784c66d9a6c8030aa\StringTable\zh-CN

述文老師指的路徑
C:\Users\sairw\AppData\Local\Autodesk\webdeploy\production\1b7b241a4d7e74709532875784c66d9a6c8030aa\Fusion\Build\Common\Tools\Localization\StringTable\zh-TW

^^^^^^^以上測試皆失敗

 

自己試試測試修改2023/10/04

C:\Users\sairw\AppData\Local\Autodesk\webdeploy\production\1b7b241a4d7e74709532875784c66d9a6c8030aa\StringTable\zh-CN

目錄下的NaFusionUI10.xml檔案
將4602行的“通过两条边创建平面”改成“通過兩條邊創建平面” (首頁構造下的子功能)
可以正常繁體化

大量檔案轉換:
用MadEdit 工具=>轉換中文字元=>檔案:轉換為繁體中文 就可以繁體中文化了
https://www.azofreeware.com/p/madedit-mod.html

https://sourceforge.net/projects/madedit-mod/files/

 

將zh-CN 資料夾複製成zh-TW
善用巨集將簡體轉成繁體再存檔即可

2TW巨集.mpy 
 

####====Todo:Add some help string for this====
#Use ####! as the prefix of the hotkey, eg ####!Ctrl-Shift-1 Ctrl, Shift, Alt are keys
#Create MadEdit Object for active edit
me = MadEdit()

me.ConvertChineseA(MadConvertEncodingFlag.SC2TC) # Flag

me.ReplaceTextAll("麵", fmt="面", bRegex=False, bCaseSensitive=False, bWholeWord=False, bDotMatchNewline=False, bPanChinese=False, rangeFrom=-1, rangeTo=-1)
me.ReplaceTextAll("復製", fmt="複製", bRegex=False, bCaseSensitive=False, bWholeWord=False, bDotMatchNewline=False, bPanChinese=False, rangeFrom=-1, rangeTo=-1)
me.ReplaceTextAll("幹涉", fmt="干涉", bRegex=False, bCaseSensitive=False, bWholeWord=False, bDotMatchNewline=False, bPanChinese=False, rangeFrom=-1, rangeTo=-1)
me.ReplaceTextAll("美製", fmt="美制", bRegex=False, bCaseSensitive=False, bWholeWord=False, bDotMatchNewline=False, bPanChinese=False, rangeFrom=-1, rangeTo=-1)
me.ReplaceTextAll("英製", fmt="英制", bRegex=False, bCaseSensitive=False, bWholeWord=False, bDotMatchNewline=False, bPanChinese=False, rangeFrom=-1, rangeTo=-1)
me.ReplaceTextAll("份析", fmt="分析", bRegex=False, bCaseSensitive=False, bWholeWord=False, bDotMatchNewline=False, bPanChinese=False, rangeFrom=-1, rangeTo=-1)

 

 

將修改好的檔案,整個資料夾壓縮備份。
當fusion 360 軟體更新後,那個很長數碼的資料夾會變動,這個時候得再將備份還原回新的資料夾。

 

是否可以用madedit的命令列模式,直接將上面的手工轉換過程自動化?
madedit 提供madpython的功能,似乎和巨集差不多。
https://sourceforge.net/p/madedit-mod/wiki/MadPython%20Introduction/

madedit的指令模式說明如下:

  * Silent mode which can be used in scripting, no GUI will be shown
    [-h], help, Displays help on the command line parameters
    [-s], silent, Disables the GUI
    [-x], eXit, Exit MadEdit(mark as done working with previous "Silent" instance! Can also close the UI)
    [-f], force, Edit and save file ignoring the ReadOnly flag
    [-m], madpython, Specify MadPython file to be run on the file
    [-r], recursive, Recursively run on files of subdirectories
    [-w], wildcard, Enable wildcard support in file name(line number would be disabled because it used '*')
    [files], File(s) to be opened
    Eg: madedit -s -m madpytho.mpy ./1.txt /tmp/2.txt
    Make sure you use Single Instance with -s, -x!!

 

測試結果:
將madedit.exe 及fu2.mpy複製至zh-CN的目錄下,執行以下指令,可以快速的進行簡體轉繁體的工作。
測試過程中發現雖然已下-s指令,但偶而會開啟GUI的程式畫面,這個畫面一開啟就表示轉檔過程沒成功。先把GUI界面中的所有檔案關掉,再把GUI界面也關掉,再執行轉檔指令。多試幾次吧!
取代的指令一直無法成功取代字串,不知是否和中文字有關。改用madedit的多檔取代功能完成該項任務。

MadEdit.exe -s -m fu2.mpy -w *.xml

 

fu2.mpy
 

me = MadEdit()

me.ConvertChineseA(MadConvertEncodingFlag.SC2TC) # Flag



 


:::

書籍列表

雷達回波圖

萌典查詢

溫度分布圖