When release the new version, add the document changed list.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

When release the new version, add the document changed list.

Post by gurj »

When release the new version, add the document changed list.
For example,
V5.72 contrast 5.71,
Added files:
....
Deleted files:
....
Modified files:
....
my pb for chinese:
http://ataorj.ys168.com
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: When release the new version, add the document changed l

Post by Demivec »

From the Help File:

Code: Select all

History

30th March 2020 : Version 5.72 LTS

- Added: #PB_HTTP_Headers to HTTPInfo() to get the headers 
- Added: #PB_HTTP_HeadersOnly to HTTPRequest() to only request the headers (GetHTTPHeaders() is now deprecated) 
- Added: Scintilla word chars selection as user preference in IDE (kenmo) link 
- Added: Zoom keyboard shortcuts in IDE (kenmo) link 
- Added: New editor shortcut functions in IDE (kenmo) link 
- Added: Memview (idle) link 

- Changed: PostEvent() now returns a result as it could fail in some extrem case 
- Changed: Sign() now returns an integer instead of a float. 

- Updated: OpenJPEG library to version 2.3.1 
- Updated: PCRE library to version 8.44 
- Updated: libpng to version 1.6.37 
- Updated: libjpeg to version 9d 
- Updated: libtiff to version 4.1.0 
- Updated: expat to version 2.2.9 
- Updated: libflac to version 1.3.3 
- Updated: libogg to version 1.3.4 
- Updated: libvorbis to version 1.3.6 
- Updated: sqlite to version 3.31.1 
- Updated: curl to version 7.68.0 

- Fixed: 'Find Previous' freezing in IDE (kenmo) link 
- Fixed: Gadgets Drag'n'Drop Position in FormDesigner (ChrisR) link 
- Fixed: Re-enable buttons bug in window 'Find in Files' in IDE (Sicro) link 
- Fixed: Display errors in window '#WINDOW_Form_Parent' of the FormDesigner (Sicro) link 
- Fixed: Many documentation issues (Andre and Mesa) 
- Fixed: Some compiler and libraries related bugs 

User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: When release the new version, add the document changed l

Post by gurj »

I am worried about this history description not. If the document has a weak change will also list? If someone wants to translate the document, he should want to know which files you need to deal with.
my pb for chinese:
http://ataorj.ys168.com
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: When release the new version, add the document changed l

Post by Demivec »

gurj wrote:I am worried about this history description not. If the document has a weak change will also list? If someone wants to translate the document, he should want to know which files you need to deal with.
If you are referring to changes in the Help file itself and not the History then the History listing can be a guide as to where to look for the changes to the Help file.

Another source to look to is the forum Bugs - Documentation. There are updates and changes to the Help file listed there from time to time.
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: When release the new version, add the document changed l

Post by gurj »

yes.
my pb for chinese:
http://ataorj.ys168.com
User avatar
Derren
Enthusiast
Enthusiast
Posts: 316
Joined: Sat Jul 23, 2011 1:13 am
Location: Germany

Re: When release the new version, add the document changed l

Post by Derren »

You could crawl the online help and read the "Last-Modified" header of each file until (if at all) such information is provided by the PB team.

https://www.purebasic.com/documentation/help/index.html
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: When release the new version, add the document changed l

Post by gurj »

Thank you!
But, I will write a comparative program ...
my pb for chinese:
http://ataorj.ys168.com
User avatar
gurj
Enthusiast
Enthusiast
Posts: 693
Joined: Thu Jan 22, 2009 3:48 am
Location: china
Contact:

Re: When release the new version, add the document changed l

Post by gurj »

Code: Select all

;TODO edit path:
cmd$=Space(255) : GetEnvironmentVariable_("comspec",@cmd$,255) ; Returns "command.com" (9x/ME) or "cmd.exe" (NT/2K/XP). 
s.s="/c hh -decompile D:\exe\PureB\pbdoc\5.71\ D:\exe\PureB\PureBasic571\PureBasic.chm"
ShellExecute_(0,0,cmd$,s,"",0) 
s.s="/c hh -decompile D:\exe\PureB\pbdoc\5.72\ D:\exe\PureB\PureBasic\PureBasic.chm"
ShellExecute_(0,0,cmd$,s,"",0) 

;work at "pbDoc\"
Global.s dir0="5.71\",added,deleted,modified
Global dir1.s="5.72\",mem0=AllocateMemory(1<<20),mem1=AllocateMemory(1<<20);1M

Procedure ntd(d.s):n=ExamineDirectory(#PB_Any, d, ""):If n
  While NextDirectoryEntry(n):s.s=DirectoryEntryName(n):ds.s=d+s
   If  DirectoryEntryType(n) = #PB_DirectoryEntry_Directory:If s<>"." And s<>".."
    ntd(ds+"\"):EndIf
   Else:ds1.s=dir1+Mid(ds,6)
    fz1=FileSize(ds1):If fz1>-1:fz=FileSize(ds)
     If fz1<>fz:modified+ds1+~"\n"
      Else:If ReadFile(0,ds) And ReadFile(1,ds1)
       ReadData(0,mem0,fz):CloseFile(0)
       ReadData(1,mem1,fz):CloseFile(1)
       If CompareMemory(mem0,mem1,fz)=0:modified+ds1
     EndIf:EndIf:EndIf
     Else:deleted+ds+~"\n":EndIf
 EndIf:Wend:EndIf
FinishDirectory(n):EndProcedure
Procedure ntd1(d.s):n=ExamineDirectory(#PB_Any, d, ""):If n
  While NextDirectoryEntry(n):s.s=DirectoryEntryName(n):ds.s=d+s
   If  DirectoryEntryType(n) = #PB_DirectoryEntry_Directory:If s<>"." And s<>".."
    ntd1(ds+"\"):EndIf
   Else:ds1.s=dir0+Mid(ds,6)
    fz1=FileSize(ds1):If fz1<0:added+ds+~"\n":EndIf
 EndIf:Wend:EndIf
FinishDirectory(n):EndProcedure
ntd(dir0)
ntd1(dir1)
If CreateFile(0,"Changed"+Left(dir1,4)+".txt")
 WriteStringN(0,~"----deleted:\n"+deleted)
 WriteStringN(0,~"----added:\n"+added)
 WriteStringN(0,~"----modified:\n"+modified)
 CloseFile(0)
EndIf
;FIXME why out "5.72\Engine3D\LoadWorld.html5.72\Engine3D\RayCast.html"....
;TODO out Changed5.72.txt:
;----deleted:
;5.71\Engine3D\CheckObjectVisibility.html
;5.71\Engine3D\InputEvent3D.html
;
;----added:
;5.72\Camera\CheckObjectVisibility.html
;5.72\Cipher\IsCipher.html
;5.72\Material\MaterialAnimation.html
;5.72\Text3D\Text3DX.html
;5.72\Text3D\Text3DY.html
;5.72\Text3D\Text3DZ.html
;5.72\Window3D\InputEvent3D.html
;
;----modified:
;5.72\Camera\CameraProjectionMode.html
;5.72\Camera\CameraZ.html
;5.72\Camera\CreateCamera.html
;5.72\Camera\index.html
;5.72\CGI\CGIVariable.html
;5.72\CGI\index.html
;5.72\CGI\InitCGI.html
;5.72\CGI\InitFastCGI.html
;5.72\Cipher\FinishFingerprint.html
;5.72\Cipher\index.html
;5.72\Cipher\IsFingerprint.html
;5.72\Console\CloseConsole.html
;5.72\Console\EnableGraphicalConsole.html
;5.72\Database\DatabaseColumnIndex.html
;5.72\Database\UseMySQLDatabase.html
;5.72\Database\UseODBCDatabase.html
;5.72\Database\UsePostgreSQLDatabase.html
;5.72\Database\UseSQLiteDatabase.html
;5.72\Date\index.html
;5.72\Dialog\OpenXMLDialog.html
;5.72\Engine3D\Add3DArchive.html
;5.72\Engine3D\BodyPick.html
;5.72\Engine3D\ConvertLocalToWorldPosition.html
;5.72\Engine3D\index.html
;5.72\Engine3D\InitEngine3D.html
;5.72\Engine3D\LoadWorld.html5.72\Engine3D\RayCast.html
;5.72\Examples\Console.pb.html
;5.72\Examples\FileSystem.pb.html
;5.72\Examples\Font.pb.html
;5.72\Examples\Gadget.pb.html
;5.72\Examples\GadgetSplitter.pb.html
;5.72\Examples\Menu.pb.html
;5.72\Examples\OpenGLGadget.pb.html
;5.72\Examples\Packer.pb.html
;5.72\Examples\Requester.pb.html
;5.72\File\IsFile.html
;5.72\FileSystem\ExamineDirectory.html
;5.72\Ftp\index.html
;5.72\Gadget\ButtonImageGadget.html
;5.72\Gadget\CloseGadgetList.html
;5.72\Gadget\DisableGadget.html
;5.72\Gadget\ScrollAreaGadget.html
;5.72\Gadget\WebGadget.html
;5.72\HelpPictures\buttonimagegadget.png
;5.72\Http\AbortHTTP.html
;5.72\Http\GetHTTPHeader.html
;5.72\Http\HTTPInfo.html
;5.72\Http\HTTPRequest.html
;5.72\Http\HTTPRequestMemory.html
;5.72\Http\index.html
;5.72\Image\ImageFormat.html
;5.72\Image\ResizeImage.html
;5.72\Index.hhk
;5.72\List\index.html
;5.72\MainGuide\changes.html
;5.72\MainGuide\history.html
;5.72\MainGuide\intro.html
;5.72\MainGuide\system.html
;5.72\Map\FindMapElement.html
;5.72\Map\index.html
;5.72\Map\MapSize.html
;5.72\Material\index.html
;5.72\Material\IsMaterial.html
;5.72\Material\MaterialBlendingMode.html
;5.72\Material\RotateMaterial.html
;5.72\Math\Abs.html
;5.72\Math\ACos.html
;5.72\Math\ACosH.html
;5.72\Math\ASin.html
;5.72\Math\ASinH.html
;5.72\Math\ATan.html
;5.72\Math\ATan2.html
;5.72\Math\ATanH.html
;5.72\Math\Cos.html
;5.72\Math\CosH.html
;5.72\Math\Degree.html
;5.72\Math\Exp.html
;5.72\Math\index.html
;5.72\Math\Infinity.html
;5.72\Math\Int.html
;5.72\Math\IntQ.html
;5.72\Math\IsInfinity.html
;5.72\Math\IsNaN.html
;5.72\Math\Log.html
;5.72\Math\Log10.html
;5.72\Math\Mod.html
;5.72\Math\NaN.html
;5.72\Math\Pow.html
;5.72\Math\Radian.html
;5.72\Math\Round.html
;5.72\Math\Sign.html
;5.72\Math\Sin.html
;5.72\Math\SinH.html
;5.72\Math\Sqr.html
;5.72\Math\Tan.html
;5.72\Math\TanH.html
;5.72\Menu\CreateImageMenu.html
;5.72\Menu\CreatePopupImageMenu.html
;5.72\Menu\MenuItem.html
;5.72\Mesh\BuildMeshTangents.html
;5.72\Mesh\GetMeshData.html
;5.72\Mesh\MeshVertexColor.html
;5.72\Mesh\NormalizeMesh.html
;5.72\Mesh\SetMeshData.html
;5.72\Preference\ClosePreferences.html5.72\Preference\ExaminePreferenceKeys.html
;5.72\Preference\NextPreferenceKey.html
;5.72\Preference\OpenPreferences.html
;5.72\Preference\PreferenceComment.html
;5.72\Preference\PreferenceGroup.html
;5.72\Preference\PreferenceKeyName.html
;5.72\Preference\PreferenceKeyValue.html
;5.72\Preference\ReadPreferenceDouble.html5.72\Process\ProgramID.html
;5.72\Process\RunProgram.html
;5.72\Reference\ascii.html
;5.72\Reference\break_continue.html
;5.72\Reference\commandindex.html
;5.72\Reference\compilerdirectives.html
;5.72\Reference\compilerfunctions.html
;5.72\Reference\data.html
;5.72\Reference\debugger.html
;5.72\Reference\dim.html
;5.72\Reference\general_rules.html
;5.72\Reference\gosub_return.html
;5.72\Reference\ide_compiler.html
;5.72\Reference\ide_debugtools.html
;5.72\Reference\ide_editing.html
;5.72\Reference\includes.html
;5.72\Reference\macros.html
;5.72\Reference\memory.html
;5.72\Reference\module.html
;5.72\Reference\others.html
;5.72\Reference\pbconstants.html
;5.72\Reference\procedures.html
;5.72\Reference\runtime.html
;5.72\Reference\structures.html
;5.72\Requester\MessageRequester.html
;5.72\Sort\RandomizeList.html
;5.72\Sort\SortList.html
;5.72\Sort\SortStructuredList.html
;5.72\Sprite\CatchSprite.html
;5.72\Sprite\CopySprite.html
;5.72\Sprite\CreateSprite.html
;5.72\Sprite\GrabSprite.html
;5.72\Sprite\LoadSprite.html
;5.72\String\EscapeString.html
;5.72\String\LSet.html
;5.72\String\LTrim.html
;5.72\String\ReplaceString.html
;5.72\String\RTrim.html
;5.72\String\UnescapeString.html
;5.72\String\ValF.html5.72\Table of Contents.hhc
;5.72\Text3D\CreateText3D.html
;5.72\Text3D\index.html
;5.72\Text3D\Text3DAlignment.html
;5.72\Text3D\Text3DID.html
;5.72\VectorDrawing\index.html
;5.72\VectorDrawing\VectorFont.html
;5.72\Window\AddKeyboardShortcut.html
;5.72\Window\CloseWindow.html
;5.72\Window\GetActiveWindow.html
;5.72\Window\PostEvent.html
;5.72\Window\RemoveKeyboardShortcut.html
;5.72\Window\WindowBounds.html
;5.72\Window3D\HideWindow3D.html
;5.72\Window3D\index.html
;5.72\Window3D\IsWindow3D.html5.72\Window3D\WindowEvent3D.html
;
;
; IDE Options = PureBasic 5.72 (Windows - x86)
; CursorPosition = 1
; Folding = --
; EnableXP
; DPIAware
; DisableDebugger
my pb for chinese:
http://ataorj.ys168.com
Post Reply