文稿教案介绍libfredo6 user manual english v_第1页
文稿教案介绍libfredo6 user manual english v_第2页
文稿教案介绍libfredo6 user manual english v_第3页
文稿教案介绍libfredo6 user manual english v_第4页
文稿教案介绍libfredo6 user manual english v_第5页
已阅读5页,还剩3页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论