📄 chunks_parse_cmds.tbl
字号:
# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; version 3 of the License.# # This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## # version 0.0.26## Need to extend with 'format' field for conversion length (inch->mm), angles(rad->degree) and enums (e.g.# for aligns -- left/right/justify etc.## The Format description for .tbl file.# Lines start with # are comments.# Every list of commands starts with 'start ch_type'# and ends with 'end'.# In between start and end are space-separeted lines# with 'type', 'offset', 'name' values. # Atm I use 'atoi', so only decimal value is allowed for ch_type, type and offset.# The possible values for 'type' are:# 0..7 - flag at bit 0..7 at offset 'offset'# 8 - 1 byte value# 9 - 8 bytes IEEE-754 fraction# 10(a) - name of chunk (we must start with a name atm, because with parse for printing)# 11(b) - offset to start of blocks # 12(c) - text block# 13(d) - some "name" from the list# 14(e) - one byte "function" from the list# 15(f) - some "function" from the list# 16 - string, next byte is length terminating '0' wasn't added to length# 17 - 'ForeignData'# 18 - Dump it to file as-is# 25 - 2 bytes LE# 26 - 4 bytes LE# 27 - Tabs? [experimental]# 21 - offset to start of blocks in version 11# 28 - extension for image files [experimental]# 29 - num of parts and type for OLE [experimental]# Quick workaround for losing of 1st tablestart 10endstart 1217 0 ForeignDataendstart 1310 0 OLE_Info29 0 018 0 0endstart 1410 0 Text12 27 018 0 0endstart 1610 0 Data112 0 0endstart 1710 0 Data212 0 0endstart 1810 0 Data312 0 0endstart 2110 0 Stream159 53 Center X9 61 Center Y18 0 0endstart 2410 0 Stream1818 0 0endstart 2510 0 FaceName16 24 0endstart 2610 0 Stream1a18 0 0endstart 3117 0 OLEDataendstart 4010 0 Unknown 0x289 39 Unknown19 47 Unknown218 0 0endstart 4410 0 Unknown 0x2c18 0 0end#seems to be text stringstart 4510 0 Unknown 0x2d12 0 0endstart 4910 0 Stream3118 0 0endstart 6610 0 Unknown 0x4218 0 0endstart 7010 0 PageSheet18 0 0endstart 7110 0 Shape ID Type="Group"18 0 0endstart 7210 0 Shape ID Type="Shape"26 53 LineStyle26 61 FillStyle26 69 TextStyle18 0 0endstart 7410 0 StyleSheet26 53 LineStyle26 61 FillStyle26 69 TextStyle18 0 0endstart 7710 0 Shape ID Type="Guide"18 0 0endstart 7810 0 Shape ID Type="Foreign"18 0 0endstart 7910 0 DocumentSheet26 53 LineStyle26 61 FillStyle26 69 TextStyle18 0 0endstart 10010 0 Unknown 0x6418 0 0endstart 10110 0 Unknown 0x6518 0 0endstart 10210 0 Unknown 0x6618 0 0endstart 10310 0 Unknown 0x6718 0 0endstart 10410 0 Unknown 0x6818 0 0endstart 10510 0 Unknown 0x6918 0 0endstart 10610 0 Unknown 0x6a18 0 0endstart 10710 0 Unknown 0x6b18 0 0endstart 10810 0 Unknown 0x6c18 0 0endstart 10910 0 Unknown 0x6d18 0 0endstart 11010 0 Unknown 0x6e18 0 0endstart 11110 0 Unknown 0x6f18 0 0endstart 11210 0 Unknown 0x7018 0 0endstart 11310 0 Unknown 0x7118 0 0endstart 11410 0 Unknown 0x7218 0 0endstart 11510 0 Unknown 0x7318 0 0endstart 11610 0 Unknown 0x7418 0 0endstart 11710 0 Unknown 0x7518 0 0endstart 11810 0 Unknown 0x7618 0 0endstart 13010 0 Unknown 0x8218 0 0endstart 13110 0 Unknown 0x8318 0 0endstart 13210 0 Event8 20 TheText11 36 BlockStarts21 36 BlockStarts18 0 0endstart 13310 0 Line31 19 LineWeight8 28 LineColor8 33 LinePattern9 35 Rounding8 43 EndArrowSize8 44 BeginArrow8 45 EndArrow8 47 BeginArrowSize1 50 Color2 50 Pattern3 50 RoundingCap4 50 LineEndEnd5 50 LineEndBegin6 50 EndSize7 50 SqueareCap0 51 BeginSize11 54 BlockStarts21 54 BlockStarts18 0 0endstart 13410 0 Fill8 19 FillForegnd30 25 FillBkgnd8 29 FillPattern30 31 ShdwForegnd8 35 ShdwBkgnd8 40 ShdwPattern31 42 ShapeShdwOffsetX31 51 ShapeShdwOffsetY9 69 ShapeShdwScaleFactor11 44 BlockStarts21 80 BlockStarts18 0 0endstart 13510 0 TextBlock31 19 LeftMargin31 28 RightMargin31 37 TopMargin31 46 BottomMargin8 55 VerticalAlign30 56 TextBkgnd9 62 DefaultTabStop8 82 TextDirection11 90 BlockStarts21 111 BlockStarts18 0 0endstart 13610 0 Tabs11 26 BlocksStart21 26 BlocksStart18 0 0endstart 13710 0 Geometry0 20 NoFill1 20 NoLine2 20 NoShow3 20 NoSnap21 22 BlocksStart18 0 0endstart 13810 0 MoveTo9 20 X9 29 Y11 39 BlocksStart21 39 BlocksStartendstart 13910 0 LineTo9 20 X9 29 Y11 39 BlocksStart21 39 BlocksStartendstart 14010 0 ArcTo9 20 X9 29 Y9 38 A11 48 BlocksStart18 0 0endstart 14110 0 InfiniteLine9 20 X9 29 Y9 37 A9 45 B11 57 BlocksStart18 0 0endstart 14310 0 Ellipse9 20 X9 29 Y9 38 A9 47 B9 56 C9 65 D11 75 BlocksStart18 0 0endstart 14410 0 EllipticalArcTo31 19 X31 28 Y31 37 A31 46 B31 55 C31 64 D11 75 BlocksStart18 0 0endstart 14610 0 PageProps9 20 PageWidth9 29 PageHeight9 38 ShdwOffsetX9 47 ShdwOffsetY9 56 PageScale9 65 DrawingScale8 73 DrawingSizeType8 74 DrawingScaleType0 93 InhibitSnap11 150 BlockStarts18 0 0endstart 14710 0 StyleProp8 19 EnableLineProps8 20 EnableFillProps8 21 EnableTextProps8 22 HideForApply11 26 BlocksStart21 26 BlocksStart18 0 0endstart 14810 0 Char25 23 FontNum30 26 Color8 29 Transparency*255/100%0 30 Bold1 30 Italic2 30 Underline3 30 Smallcaps0 31 AllCaps1 31 InitCaps0 32 Subscript1 32 Superscipt25 33 Scale*100 %8 35 LangCode31 36 Size25 46 Spacing pt*20025 56 AsianFont25 58 ComplexScriptFont8 60 LocalizeFont25 88 LangID11 54 BlocksStart21 107 BlocksStart18 0 0endstart 14910 0 Para31 23 IndFirst31 32 IndLeft31 41 IndRight31 50 SpLine31 59 SpBefore31 68 SpAfter8 77 HorizAlign8 78 Bullet11 92 BlockStarts21 142 BlockStarts18 0 0endstart 15010 0 Tabs27 0 TabsID11 48 BlockStarts18 0 0endstart 15110 0 Tabs27 0 TabsID11 139 BlockStarts18 0 0endstart 18110 0 Tabs27 0 TabsID11 708 BlockStarts18 0 0endstart 15210 0 Foreign9 20 IndFirst9 29 IndLeft9 38 IndRight9 47 SpLine28 68 Ext18 0 0endstart 15310 0 Connection31 19 Width31 28 Height31 37 DirX/A31 46 DirY/B8 55 Type/C11 67 BlockStarts21 67 BlockStarts18 0 0endstart 15510 0 XForm9 20 PinX9 29 PinY9 38 Width9 47 Height9 56 LocPinX9 65 LocPinY9 74 Angle8 82 FlipX8 83 FlipY8 84 ResizeMode11 88 BlockStarts21 88 BlockStarts18 0 0endstart 15610 0 TextXForm9 20 TxtPinX9 29 TxtPinY31 37 TxtWidth9 47 TxtHeight9 56 TxtLocPinX9 65 TxtLocPinY9 74 TxtAngle11 88 BlockStarts21 88 BlockStarts18 0 0endstart 15710 0 XForm1D9 20 BeginX9 29 BeginY9 38 EndX9 47 EndY11 57 BlockStarts21 57 BlockStartsendstart 15810 0 Scratch9 20 X9 29 Y9 38 A9 47 B9 56 C9 65 D11 75 BlockStarts18 0 0endstart 15910 0 Alignment9 20 AlignLeft9 29 AlignCenter9 38 AlignRight9 47 AlignTop9 56 AlignMiddle9 65 AlignBottom11 75 BlockStarts21 79 BlockStarts18 0 0endstart 16010 0 Protection8 19 LockWidth8 20 LockHeight8 21 LockMoveX8 22 LockMoveY8 23 LockAspect8 24 LockDelete8 25 LockBegin8 26 LockEnd8 27 LockRotate8 28 LockCrop8 29 LockVtxEdit8 30 LockTextEdit8 31 LockFormat8 32 LockGroup8 33 LockCalcWH8 34 LockSelect8 35 LockCustProp11 43 BlockStarts21 43 BlockStarts18 0 0endstart 16110 0 TextFields18 0 0endstart 16210 0 Control9 20 X9 29 Y9 38 XDyn9 47 YDyn8 55 XCon8 56 YCon0 57 CanGlue11 60 BlockStarts21 60 BlockStarts18 0 0endstart 16310 0 Help11 49 BlockStarts21 49 BlockStarts18 0 0endstart 16410 0 Misc0 19 NoObjHandles1 19 NonPrinting2 19 NoCtlHandles3 19 NoAlignBox4 19 UpdateAlignBox5 19 HideText8 20 DynFeedback8 21 GlueType8 22 WalkPreference25 25 ObjType0 35 IsDropSource1 35 NoLiveDynamics25 37 LangID11 42 BlockStarts21 64 BlockStarts18 0 0endstart 16510 0 SplineStart9 20 X9 29 Y9 37 A9 45 B9 53 C8 61 D11 65 BlockStarts18 0 0endstart 16610 0 SplineKnot9 20 X9 29 Y9 37 A11 47 BlockStarts18 0 0endstart 16710 0 LayerMem11 25 BlockStarts21 25 BlockStarts18 0 0end# Transparency 255 - 100%start 16810 0 Layer30 27 Color8 31 Transparency8 33 Visible8 34 Print8 35 Active8 36 Lock8 37 Snap8 38 Glue11 52 BlockStarts21 52 BlockStarts18 0 0endstart 16910 0 Act8 40 Checked8 41 Disabled0 42 ReadOnly1 42 Invisible2 42 BeginGroup11 47 BlockStarts21 76 BlockStarts18 0 0endstart 17010 0 Control9 20 X9 29 Y9 38 XDyn9 47 YDyn8 55 XBehavior8 56 YBehavior0 57 CanGlue11 66 BlockStarts21 66 BlockStarts18 0 0endstart 18010 0 User-defined Cells9 20 Value11 34 BlockStarts21 34 BlockStarts18 0 0endstart 18210 0 CustomProps9 20 Value8 44 Type0 46 Invisible1 46 Ask11 55 BlockStarts18 0 0endstart 18310 0 RulerGrid8 19 XRulerDensity8 20 XRulerDensity31 21 Unknown131 30 Unknown231 39 XRulerOrigin31 48 YRulerOrigin8 57 XGridDensity8 58 YGridDensity31 59 XGridSpacing31 68 YGridSpacing31 77 XGridOrigin31 86 YGridOrigin11 98 BlockStarts21 98 BlockStarts18 0 0endstart 18510 0 Connection31 19 Width31 28 Height31 37 DirX/A31 46 DirY/B8 55 Type/C11 67 BlockStarts21 67 BlockStarts18 0 0endstart 18610 0 ConnectionPoints9 20 Width9 29 Height11 79 BlockStarts18 0 0endstart 18810 0 DocProps25 24 DocLangID18 0 0endstart 18910 0 Image9 19 Gamma25 27 Contrast*100 (%)25 29 Brightness*100 (%)25 31 Sharpen*100 (%)25 33 Blur*100 (%)25 35 Denoise*100 (%)25 37 Transparency*100 (%)11 64 BlockStarts21 64 BlockStarts18 0 0endstart 19010 0 Group8 19 SelectMode8 20 DisplayMode0 21 IsDropTarget1 21 IsSnapTarget2 21 IsTextEditTarget3 21 DontMoveChildren11 44 BlocksStart21 44 BlocksStartendstart 19110 0 Layout0 19 ShapePermeableX1 19 ShapePermeableY2 19 ShapePermeablePlace8 20 ShapeFixedCode8 21 ShapePlowCode8 22 ShapeRouteStyle8 24 ConFixedCode8 25 ConLineJumpCode8 26 ConLineJumpStyle8 28 ConLineJumpDirX8 29 ConLineJumpDirY11 57 BlockStarts21 57 BlockStarts18 0 0endstart 19210 0 PageLayout0 19 ResizePage1 19 EnableGrid2 19 DynamicOff3 19 CtrlAsInput8 20 PlaceStyle8 21 RouteStyle8 22 PlaceDepth8 23 PlowCode8 24 LineJumpCode8 25 LineJumpStyle8 26 PageLineJumpDirX8 27 PageLineJumpDirY9 29 LineToNodeX9 38 LineToNodeY9 47 BlockSizeX9 56 BlockSizeY9 65 AvenueSizeX9 74 AvenueSizeY9 83 LineToLineX9 92 LineToLineY9 100 LineJumpFactorX9 108 LineJumpFactorY8 116 LineAdjustFrom8 117 LineAdjustTo11 163 Blocks start21 163 Blocks startendstart 19310 0 Unknown 0xc19 20 Unknown19 29 Unknown218 0 0endstart 19510 0 NURBSTo9 20 X9 29 Y9 37 A9 45 B9 53 C9 61 D11 80 BlocksStart21 80 BlocksStart18 0 0endstart 19610 0 Hyperlink0 39 NewWindow2 39 Default11 65 BlocksStart18 0 0endstart 19710 0 Reviewer8 28 ColorRed8 29 ColorGreen8 30 ColorBlue26 31 ReviewerID26 35 CurrentIndex11 57 BlocksStart21 57 BlocksStart18 0 0endstart 19810 0 Unknown 0xc618 0 0endstart 19910 0 Unknown 0xc718 0 0endstart 20010 0 PrintProps31 19 PageLeftMargin31 28 PageRightMargin31 37 PageTopMargin31 46 PageBottomMargin9 55 ScaleX9 63 ScaleY25 71 PagesX25 73 PagesY8 76 PrintPageOrientation25 77 PaperKind25 79 PaperSource11 91 BlocksStart21 91 BlocksStart18 0 0endstart 20110 0 Unknown 0xc918 0 0endstart 20910 0 NURBSTo E-cell9 35 1st fr of NURBSTo9 43 3 bytes are here, need to map9 51 2nd fr9 59 3rd fr9 67 4th byte9 75 5th byte9 83 4th fr9 91 5th fr9 99 6th byte9 107 7th byte9 115 6th fr9 123 7th fr9 131 8th byte9 139 9th byte18 0 0end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -