版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
LibFredo6
RubySharedLibrary
VERSION3.7–17APR2011
Overview
LibFredo6isasharedlibraryusedbysomeofmyplugins.Theideaistoprovideallscriptswithcommonfeatures,suchas andtoolbarmanagement,languagetranslation,defaultparametersandotherutilities.
LibFredo6isNOTausablepluginbyitselfhowever.
Asauser,youshouldnotcaretoomuchaboutLibFredo6,exceptforafewthingsthatarewortowingwhenusingmyplugins.Thisisthepurposeofthis .However,youcanperfectlyignoreallthat,aslongasyouinstalltherightversionofLibFredo6requiredbymyplugins,orthelatestversion(recommended).
Veryoften,whenuserssignalthatmyscripts(likeFredoScaleorRoundCorner)donotappearordonotwork,itisbecausetheydidnotinstallLibFredo6,asspecified.
WhatLibFredo6brings
Forusers,themainfeaturesareabout:
Somedefaultparameters,commontoallplugins,forinstance,inferencecolors
Languagetranslation(seesection4ifyouareinterested ontributing).
Informationonplugins,linksto ation, sandsupportwebsite,andlivecheck-for-update.
Versioning
LibFredo6isversioned.ThefirstversioneverpublishedofLibFredo6is3.0(previousversionswereactuallyjustasinglefilerubyfilecalledLibTraductor.rb).
Forconvenience,theversionipressedasadecimalinteger.So3.0isactuallyreferredtoas‘30’(and3.1willbe‘31’).
ImaintainbackwardcompatibilitysothatifyouinstallthelatestversionofLibFredo6,itshouldworkfinewithanyofthescriptsusingit,eveniftheywerepublishedalongwithearlierversionsofLibFredo6.
Installation
LibFredo6supportsSketchupversions5(>=5.160),6andabove(andPro).
Toinstallit,youshouldunzipthefileyoudownloaded(LibFredo6_xx.zipinpr iple)intotheSketchupPluginsfolder.Thisoperationshoulddothefollowing:
CopyonescriptfileLibFredo6.rbtotheSketchupPluginsfolder:
Createasub-folderLIBFREDO6_Dir_xx,containingthelibraryfiles,theiconsandcursorfiles,languagefiles,aswellastheationinPDFformat.
InWinzip,makesureyoudoaSelectAll,andthenExtractinthePluginsfolder,answeringYEStoallpromptsforfileoverwriting,sothatyoucreateorproperlycopythefolderhierarchy.
Ifyouareunsureoftheunzipoperation,doitinaneutralfolder,and,onceyouhavecheckedthatyouhavereconstructedthefootprintasshownabove,copythefileandfoldertotheSUPluginsdirectory.
Note:Onceyouhaveinstalledanewversion,youcansafelyremovethepreviousones.Say,ifyouinstallLibFredo3.7,youcanremovethefolderLIBFREDO6_Dir_36fromtheSUPlugindirectory.
LibFredo6utilities
LibFredo6createsa entry“LibFredo6Settings….”intheSketchup‘Windows’
.Itprovidessomeconfigurationparameterscommontoallplugins.
Settingthelanguagepreferences
Thedialogboxallowssettinguponeorseverallanguagepreferences.ThissettingispersistentacrossSketchupsessions.
Bydefault,itwillsetupthelanguageofyouroperatingsystem,ifrecognized.
Notethatlanguagepreferencesareusedascade.Ifyouchoose[HU,DE,FR],itmeansthatforeachstringitwilltakethefirsttranslationfoundinHungarian,theninGerman,theninFrenchandtheninthedefaultlanguage(whichhappenstobeEnglish).
DefaultParameters
LibFredo6maintainsafewparameterswhicharecommontoallplugins,suchastheInferencecolors.Youcanmodifythemviathedialogbox“DefaultParameters…”.
CheckPluginsforUpdate
Asofv3.7,LibFredo6cancheckthestatusofthepluginsversionsonline.Thisconcernsmyownplugins,butitisopentootherscriptauthors.
AccesstotheCheckForUpdatedialogboxisdoneviathe
Windows>LibFredo6Settings>CheckPluginsforUpdate.
Thedialogboxdisysthestatusofthepluginsatlastcheck(dateisindicatedonthetoprightofthewindow).
CheckPluginsforUpdate
Justclickonthebutton togetthenewstatus.Indeed,youneedaworkingconnectiontoInte .Hereisanexample,forillustration:
Filteringthelistofplugins
Theremaybe4cases(eachwithadefinedcolor)forthepluginstatus:
Pluginsinstalledlocallyanduptodate
Pluginsinstalledlocallythatrequiresanupgrade
Pluginsinstalledlocallywherenoinformationisavailableontheweb
Pluginsnotinstalledlocallybutforwhichinformationisavailableontheweb
Youcanfilterthelistbasedoneachofthese4casesbyusingthecheckboxesatthetopofthewindow:
AccessingPlugininformationonline
ThelinkInfo(ifpresent)allowsyounavigatingtothewgewherethepluginwaspublished.Justclickonitanditwillopenabrowserwindowpointingtotherightpage.
ReminderforCheckingUpdates
InLibFredo6v3.7,theremindermechanismispassive.Itisjustawaytowarntheuserofcheckingpluginsforupdateacertaindefinedtime.Thereisnounderlyingrealcheckonline(Iwillprobablyintroduceitinanextversion).
Youcansetthenextdateforbeingremindedtodoacheckforupdate.ThiswilltaketheformofasmallwindowwithaRubyiconwhichwillpopupafewsecondsafteryoustartSketchup.
IfyouclickontheRuby,itwillopenthedialogbox.Ifyoucloseit,thenyouwillberemindedthenextday,whenyoustartSketchup.
Inordertosetthenextdateforchecking,setthenumberofdaysintheappropriatefieldatthebottomleftofthedialogbox.Notethattheexactdateisshowninthetooltip.
Thedefaultvalueis15days.ThisparameterissavedacrossSUsessions,butisspecifictoeachversionoftheSketchupapplications.
Ifyouenter0Day,thenitmeansthatthereminderwillappeareverytimeyoustartSketchup
Ifyouenter999Days,thenyouwillneverbereminded
ContributingtoLanguageTranslation
[ThissectionisonlyforthosewhowishtocontributetotranslationofLibFredo6itselfandmyPlugins]
Allstringsarepackagedinexternalfilesthatcanbetranslatedwithoutchangingthesourcecode.
Languagesaredesignatedbytheir2-characterISOcode.SoFRforFrench,DEforGerman,ZHfor,etc….
ThereisaconceptofDefaultLanguage(usuallyEnglish),whichisdefinedinthesourcecodeitself(sothattherearealwaysvalidstringstodisy).Ifthetranslationforastringinagivenlanguageisnotfound,thenthepluginwilldefaulttothisdefaultlanguage.
TheconventionforLanguageFilenameis<Plugin_name>_XX.lang,whereXXistheISOcodeofthelanguage.ThefilesmustbelocatedinthePluginsubfolder.Forinstance,thePluginScaleludesafileScale_FR.langinthefolder
SCALE_Dir_10.
ISOandUTFencodingaresupported.Normally,itispossibletotranslateintoRussian,,Japanese,Korean,etc…
Thetranslationprocessissafe.Youarenotdtotranslateeverything.And,yourcontributiontothetranslationwillbepacrossupgradesoftheplugin.
ThepripleistotranslateFROMWITHINtheapplication,viathedialogbox
“LanguageTranslation…”.YoumustNOTeditthefiles ly1.
1 ThereasonisthatthefilesstillkeepanASCformatwherealldiacriticanddouble-bytescharactersareencodedinaspecialASCformat.
UsingtheTranslationDialogBox
BelowistheTranslationBoxforLibFredo6.YounormallyhaveoneforeachpluginthatwilluseLibFredo6.
First,selectthetargetlanguageusingtheComboboxonthetop-leftofthedialogbox.Ifyourlanguageisnotpredefined,youcancreateanewone,byselecting“NewLanguage…”.Thiswillshowanotherdialogboxwhereyoucandefhenewlanguage:ISOcode,nativenameandEnglishname.
TheDefaultLanguagestringsareshowninBlue,withanarrow.Youcanhowevershowotherlanguagestoo,ifithelps,bytytheirISOcodesseparatedbyspaceinthefieldonthetoprightofthedialogbox.
Youhavethenjusttotypethetranslationinthefields.
YoudoNOTneedtoputbackslashinfrontofdiacriticcharacters(accentuated).Justtypethestringnaturallyinyourlanguage.
Youcanusesinglequote(‘).
Becarefulwithangularbrace(<and>),becauseitmayinterferewithHTML.Iwould
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 企业管理-茶水亭管理制度
- 膀胱造瘘术患者的自我护理
- 贵州省铜仁市重点达标名校2025-2026学年初三第二学期期末考试样卷物理试题含解析
- 河北石家庄市长安区2026年初三5月第二次月考试题(数学试题文)含解析
- 浙江省部分地区达标名校2026届初三下学期校内第一次质量检测试题数学试题含解析
- 贫血患者的瑜伽练习方法
- 山西省忻州市定襄县2025-2026学年百校联盟初三下学期第一次模拟考试物理试题含解析
- 云南省昆明市八校联考2026年初三(下)4月联考化学试题试卷含解析
- 脑部放疗患者的并发症生活质量
- 2026年广东广州市高三一模高考数学试卷答案详解(精校打印)
- 售电业务居间服务合同协议
- 毕业设计(论文)-AGV搬运机器人设计-AGV小车
- 2024年浙江出版联团招聘真题
- GB/T 3917.3-2025纺织品织物撕破性能第3部分:梯形试样撕破强力的测定
- DB37-T 4401-2021 养老机构分级护理服务规范
- 2025-2030年中国土砂石开采行业市场竞争格局规划分析报告
- 人机配合安全
- 导数中的同构问题【八大题型】解析版-2025年新高考数学一轮复习
- ANCA相关性小血管炎肾损伤病因介绍
- 旅游行业兼职业务员聘用合同
- (合同范本)中介佣金协议书
评论
0/150
提交评论