@@ -55,7 +55,7 @@ class Kamishibai(_TopEdge):
55
55
on the other half so that the key can be attached easily enough, but it should not fal off either)
56
56
10. You should now be able to close and open all the doors
57
57
Usage recommendations:
58
- 1. Add your paper sheets fron one side or the other (normally you leave either left or right closed,
58
+ 1. Add your paper sheets from one side or the other (normally you leave either left or right closed,
59
59
depending on which is more comfortable for you)
60
60
2. Thick paper is easier to handle ; if you print on a home printer, use the thickest you printer can
61
61
print (probably around 200 grams per square meter) ; if you want extra quality, go to a printing shop
@@ -107,11 +107,11 @@ def __init__(self) -> None:
107
107
help = "Back extra depth (for adding buttons for example), in multiples of thickness ; set to 0 to let the system calculate the smallest one" )
108
108
self .argparser .add_argument (
109
109
"--PegsWidthMargin" , action = "store" , type = float , default = 0.5 ,
110
- help = "Margin for the pegs width in mm ; set to a lower value if the pieces are forced together, a higher value if the pieces slide easily into eachother (using screws or glue to assemble)" )
110
+ help = "Margin for the pegs width in mm ; set to a lower value if the pieces are forced together, a higher value if the pieces slide easily into each other (using screws or glue to assemble)" )
111
111
front_group = self .argparser .add_argument_group ("Kamishibai front cover" )
112
112
front_group .add_argument (
113
113
"--FrontCoverStyle" , action = "store" , type = str , default = "two-part lid with hinge eyes (both ends)" ,
114
- choices = ["slide-on lid" , "two-part lid with hinge eyes (both ends)" , "three-part lid, higes not provided" ],
114
+ choices = ["slide-on lid" , "two-part lid with hinge eyes (both ends)" , "three-part lid, hinges not provided" ],
115
115
help = "style of the front cover" )
116
116
front_group .add_argument (
117
117
"--FrontExtraDepth" , action = "store" , type = int , default = 4 ,
@@ -190,7 +190,7 @@ def boxFrontBackCallback (self, wi, hi, isFront):
190
190
self .fingerHolesAt (self .thickness * 1.5 , self .thickness * 0 , hi )
191
191
self .fingerHolesAt (self .thickness * 2.5 + wi , self .thickness * 0 , hi )
192
192
else :
193
- # hinge holes for 3 pane pannel
193
+ # hinge holes for 3 pane panel
194
194
if ((self .HingeHolesDiameter > 0 ) and (isFront and self .FrontCoverStyle == "three-part lid, higes not provided" ) or (not isFront and self .BackCoverStyle == "three-part lid, higes not provided" )) :
195
195
posx = self .thickness
196
196
for x in self .HingeHolesBoxSeparation :
@@ -288,7 +288,7 @@ def boxTopBottom (self, wi, di, isTop, move=None, label=""):
288
288
or (self .FrontCoverStyle == "three-part lid, higes not provided" and not isTop )):
289
289
self .fingerHolesAt (wi / 2 - self .thickness * 4 , di + self .thickness * (self .BackExtraDepth + self .FrontExtraDepth + 2.5 ), self .thickness * 16 , 0 )
290
290
291
- # finger holes for front and back if neccessary #TODO update all this section...
291
+ # finger holes for front and back if necessary #TODO update all this section...
292
292
#self.fingerHolesAt(self.thickness*2, self.thickness * (self.BackExtraDepth + 2.5), wi + self.thickness*4,0)
293
293
self .fingerHolesAt (self .thickness * 2 , self .thickness * (self .BackExtraDepth + 2.5 ), self .thickness * (self .LockScrewDistanceFromBorder - 3 ) - self .LockScrewDiameter ,0 )
294
294
self .fingerHolesAt (self .thickness * (self .LockScrewDistanceFromBorder - 1 ) + self .LockScrewDiameter , self .thickness * (self .BackExtraDepth + 2.5 ), wi / 2 - self .thickness * (self .LockScrewDistanceFromBorder - 5 ) - self .LockScrewDiameter * 2 ,0 )
@@ -302,7 +302,7 @@ def boxTopBottom (self, wi, di, isTop, move=None, label=""):
302
302
self .fingerHolesAt (wi - self .thickness * (self .LockScrewDistanceFromBorder - 9 ) + self .LockScrewDiameter , di + self .thickness * (self .BackExtraDepth + 3.5 ), self .thickness * (self .LockScrewDistanceFromBorder - 3 ) - self .LockScrewDiameter ,0 )
303
303
304
304
else :
305
- # finger holes for front and back if neccessary
305
+ # finger holes for front and back if necessary
306
306
self .fingerHolesAt (self .thickness * 2 , self .thickness * (self .BackExtraDepth + 2.5 ), wi + self .thickness * 4 ,0 )
307
307
if self .FrontExtraDepth > 0 :
308
308
self .fingerHolesAt (self .thickness * 2 , di + self .thickness * (self .BackExtraDepth + 3.5 ), wi + self .thickness * 4 ,0 )
@@ -334,7 +334,7 @@ def boxTopBottom (self, wi, di, isTop, move=None, label=""):
334
334
# hole for handle
335
335
if (isTop and self .HandleThickness > 0 and self .HandleWidth > 0 ) :
336
336
self .rectangularHole (self .thickness * 4 + wi / 2 - self .HandleWidth / 2 - self .HandleMargin / 2 , self .thickness * (self .BackExtraDepth + 3 - self .HandleThickness / 2 ) + di / 2 - self .HandleMargin / 2 , self .HandleWidth + self .HandleMargin , self .thickness * self .HandleThickness + self .HandleMargin , 0 , False , False )
337
- # hinge holes for 3 pane pannel
337
+ # hinge holes for 3 pane panel
338
338
if (isTop and (self .HingeHolesDiameter > 0 ) and (self .FrontCoverStyle == "three-part lid, higes not provided" ) and (self .HandleThickness > 0 )) :
339
339
posx = self .thickness * 3
340
340
for x in self .HingeHolesBoxSeparation :
@@ -415,7 +415,7 @@ def boxTopBottom (self, wi, di, isTop, move=None, label=""):
415
415
self .move (wi + self .thickness * 8 , di + self .thickness * (self .FrontExtraDepth + self .BackExtraDepth + 6 ) + (self .thickness * 3 if self .FrontCoverStyle == "two-part lid with hinge eyes (both ends)" else 0 ), move , label = label )
416
416
417
417
def boxFrontSideCallback (self , hi ) :
418
- # hinge holes for 3 pane pannel
418
+ # hinge holes for 3 pane panel
419
419
if ((self .HingeHolesDiameter > 0 ) and (self .FrontCoverStyle == "three-part lid, higes not provided" )) :
420
420
posy = 0
421
421
for y in self .HingeHolesBoxSeparation :
@@ -531,9 +531,9 @@ def coverPanel1Lid (self, wi, hi, hasSubLayer = False, move=None, label=""):
531
531
self .rectangularWall (wi , hi , "lmen" , callback = [lambda :self .rectangularHole (wi / 2 , self .thickness * 3.5 , self .thickness , self .thickness ),
532
532
lambda :self .rectangularHole (hi - self .thickness * 5.5 , wi / 2 , self .thickness , self .thickness )],move = move , label = label )
533
533
self .rectangularWall (wi - self .Margin , hi - self .thickness * 6 , "eeee" , callback = [lambda :self .rectangularHole (wi / 2 - self .Margin / 2 , self .thickness * 1.5 , self .thickness , self .thickness ),
534
- lambda :self .rectangularHole (hi - self .thickness * 7.5 , wi / 2 - self .Margin / 2 , self .thickness , self .thickness )],move = move , label = "side pannel inner" )
534
+ lambda :self .rectangularHole (hi - self .thickness * 7.5 , wi / 2 - self .Margin / 2 , self .thickness , self .thickness )],move = move , label = "side panel inner" )
535
535
self .rectangularWall (wi - self .Margin , hi - self .thickness * 6 , "eeee" , callback = [lambda :self .rectangularHole (wi / 2 - self .Margin / 2 , self .thickness * 1.5 , self .thickness , self .thickness ),
536
- lambda :self .rectangularHole (hi - self .thickness * 7.5 , wi / 2 - self .Margin / 2 , self .thickness , self .thickness )],move = move , label = "side pannel inner" )
536
+ lambda :self .rectangularHole (hi - self .thickness * 7.5 , wi / 2 - self .Margin / 2 , self .thickness , self .thickness )],move = move , label = "side panel inner" )
537
537
self .rectangularWall (self .thickness + self .PegsWidthMargin , self .thickness * 3 , "eeee" , move = move , label = "" )
538
538
self .rectangularWall (self .thickness + self .PegsWidthMargin , self .thickness * 3 , "eeee" , move = move , label = "" )
539
539
# back or front (with key holder if necessary)
@@ -580,7 +580,7 @@ def coverPanel2Side(self, wi, hi, lockStyle, move=None, label=""):
580
580
def coverPanel3Side (self , wi , hi , lockStyle , move = None , label = "" ):
581
581
if self .move (wi / 2 + self .thickness * 2 , hi * 3 / 4 + self .thickness * 2 , move , True ):
582
582
return
583
- # hinge holes for 3 pane pannel
583
+ # hinge holes for 3 pane panel
584
584
if (self .HingeHolesDiameter > 0 ) :
585
585
posy = 0
586
586
for y in self .HingeHolesCoverSeparation :
@@ -617,7 +617,7 @@ def coverPanel3Top (self, wi, hi, lockStyle, move=None, label=""):
617
617
elif lockStyle == "simple" :
618
618
self .hole ((wi + self .thickness * 2 )/ 2 , hi / 2 - self .thickness * 2.5 , self .thickness * 2 )
619
619
self .rectangularHole ((wi + self .thickness * 2 )/ 2 , hi / 2 - self .thickness * 2.5 , self .thickness , self .thickness , 0 , color = Color .MAGENTA )
620
- # hinge holes for 3 pane pannel
620
+ # hinge holes for 3 pane panel
621
621
if (self .HingeHolesDiameter > 0 ) :
622
622
posx = 0
623
623
for x in self .HingeHolesCoverSeparation :
@@ -652,7 +652,7 @@ def lockSimple (self, move=None):
652
652
return
653
653
self .parts .disc (self .thickness * 10 , dwidth = 0.8 , callback = lambda :self .rectangularHole (0 , 0 , self .thickness , self .thickness ))
654
654
self .move (self .thickness * 11 , self .thickness * 11 , move , label = "lock internal" )
655
- # discs attachement
655
+ # discs attachment
656
656
self .rectangularWall (self .thickness * 4 , self .thickness + self .PegsWidthMargin , "eeee" , move = move )
657
657
658
658
def lockExtra (self , move = None ):
@@ -676,7 +676,7 @@ def lockExtra (self, move=None):
676
676
return
677
677
self .parts .disc (self .thickness * 8 - self .Margin , dwidth = 0.8 , callback = lambda :self .rectangularHole (0 , 0 , self .thickness , self .thickness ))
678
678
self .move (self .thickness * 8 - self .Margin , self .thickness * 8 - self .Margin , move , label = "lock locker" )
679
- # discs attachement
679
+ # discs attachment
680
680
self .rectangularWall (self .thickness * 5 , self .thickness + self .PegsWidthMargin , "eeee" , move = move )
681
681
682
682
def keyHoles (self , centerHoleLength , isRotated = False ):
@@ -713,7 +713,7 @@ def lockWithKey (self, isInnerLockRorated = False, move=None):
713
713
return
714
714
self .parts .disc (self .thickness * 15 , dwidth = 12 / 15 , callback = lambda :self .keyHoles (0 , isInnerLockRorated ))
715
715
self .move (self .thickness * 15 , self .thickness * 15 , move , label = "lock internal" )
716
- # discs attachement
716
+ # discs attachment
717
717
self .rectangularWall (self .thickness * 4 , self .thickness + self .PegsWidthMargin , "eeee" , move = move )
718
718
self .rectangularWall (self .thickness * 4 , self .thickness + self .PegsWidthMargin , "eeee" , move = move )
719
719
# key
0 commit comments