Fix misspelled variables (#484)

Co-authored-by: Florian Festi <florian@festi.info>
This commit is contained in:
Rotzbua 2023-01-02 16:23:24 +01:00 committed by GitHub
parent 5fae61bd0d
commit 9cb581a6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 31 additions and 31 deletions

View File

@ -2708,7 +2708,7 @@ class Boxes:
self.move(tw, th, move, label=label)
@restore
def polygonWalls(self, borders, h, bottom="F", top="F", symetrical=True):
def polygonWalls(self, borders, h, bottom="F", top="F", symmetrical=True):
bottom = self.edges.get(bottom, bottom)
top = self.edges.get(top, top)
t = self.thickness # XXX edge.margin()
@ -2725,7 +2725,7 @@ class Boxes:
self.moveTo(0, bottom.margin())
while i < len(borders):
if symetrical:
if symmetrical:
if part_cnt % 2:
left, right = lf, rf
else:

View File

@ -110,7 +110,7 @@ for canned tomatoes:
"--canDiameter", action="store", type=float, default=75,
help="outer diameter of the cans to be stored (in mm)")
self.argparser.add_argument(
"--canHight", action="store", type=float, default=110,
"--canHeight", action="store", type=float, default=110,
help="height of the cans to be stored (in mm)")
self.argparser.add_argument(
"--canNum", action="store", type=int, default=12,
@ -322,7 +322,7 @@ for canned tomatoes:
self.bottom_chute_height = self.barrier_height + self.canDiameter * 0.1 + self.thickness - self.top_chute_depth
self.height = self.thickness + self.canDiameter + self.bottom_chute_height + self.top_chute_height + 0.5 * self.thickness + self.canDiameter + 1.5 * self.thickness # measurements from bottom to top
self.width = 0.01 * self.canHight + self.canHight + 0.01 * self.canHight
self.width = 0.01 * self.canHeight + self.canHeight + 0.01 * self.canHeight
edgs = self.bottom_edge + "h" + self.top_edge + "a"
# render your parts here

View File

@ -17,7 +17,7 @@
from boxes import *
from boxes.lids import _TopEdge
class MagazinFile(Boxes):
class MagazineFile(Boxes):
"""Open magazine file"""
def __init__(self):

View File

@ -49,7 +49,7 @@ A paper creaser (or bone folder) is also useful.
)
self.argparser.add_argument(
"--lid_heigth",
"--lid_height",
type=float,
default=15,
help="Height of the lid (part which goes inside the box)",
@ -194,11 +194,11 @@ A paper creaser (or bone folder) is also useful.
def lid(self, width):
return [
self.lid_heigth - self.lid_radius,
self.lid_height - self.lid_radius,
(90, self.lid_radius),
width - 2 * self.lid_radius,
(90, self.lid_radius),
self.lid_heigth - self.lid_radius,
self.lid_height - self.lid_radius,
]
def mark(self, length):
@ -254,7 +254,7 @@ A paper creaser (or bone folder) is also useful.
]
def ear_description(self, length, lid_cut_length, reverse=False):
ear_depth = max(lid_cut_length, self.lid_heigth)
ear_depth = max(lid_cut_length, self.lid_height)
radius = min(self.lid_radius, ear_depth - lid_cut_length)
start_margin = self.thickness
end_margin = 2 * self.burn

View File

@ -20,7 +20,7 @@ from boxes import *
class ShadyEdge(edges.BaseEdge):
char = "s"
def __call__(self, lenght, **kw):
def __call__(self, length, **kw):
s = self.shades
h = self.h
a = math.atan(s/h)

View File

@ -29,13 +29,13 @@ class WallCaliper(_WallMountedBox):
"--width", action="store", type=float, default=18.0,
help="width of the long end")
self.argparser.add_argument(
"--heigth", action="store", type=float, default=6.0,
"--height", action="store", type=float, default=6.0,
help="height of the body")
def side(self, move=None):
t = self.thickness
h = self.h
hc = self.heigth
hc = self.height
tw = self.edges["b"].spacing() + hc + 8*t

View File

@ -19,7 +19,7 @@ class _WallMountedBox(Boxes):
self.addSettingsArgs(FrenchCleatSettings)
self.argparser.add_argument(
"--walltype", action="store", type=str, default="plain",
choices=["plain", "plain reenforced", "slatwall", "dinrail",
choices=["plain", "plain reinforced", "slatwall", "dinrail",
"french cleat"],
help="Type of wall system to attach to")
@ -43,7 +43,7 @@ class _WallMountedBox(Boxes):
s.edgeObjects(self)
self.wallHolesAt = self.edges["|"]
if self.walltype.endswith("reenforced"):
if self.walltype.endswith("reinforced"):
self.edges["c"] = self.edges["d"]
self.edges["C"] = self.edges["D"]

View File

@ -12,7 +12,7 @@ $BOXES flexbox2 --x=70 --y=100 --h=50 --radius=20 --output=flexbox2.svg
$BOXES flexbox3 --x=70 --y=100 --z=50 --h=8 --radius=30 --output=flexbox3.svg
$BOXES folder --x=165 --y=240 --h=20 --r=10 --output=folder.svg
#$BOXES lamp --x=50 --y=50 --r=10 --output=lamp.svg
$BOXES magazinfile --output=magazinefile.svg
$BOXES magazinefile --output=magazinefile.svg
#$BOXES printer --output=printer.svg
#$BOXES Silverwaree --output=silverwarebox.svg
#$BOXES traylayout --x=4 --y=4 --output=traylayout.txt

View File

@ -3947,15 +3947,15 @@ msgstr ""
#. name of box generator
#: boxes/generators/magazinefile.py
msgid "MagazinFile"
msgid "MagazineFile"
msgstr ""
#. description of MagazinFile
#. description of MagazineFile
#: boxes/generators/magazinefile.py
msgid "Open magazine file"
msgstr ""
msgid "MagazinFile Settings"
msgid "MagazineFile Settings"
msgstr ""
#. name of box generator
@ -4602,10 +4602,10 @@ msgstr ""
#. parameter name
#: boxes/generators/paperbox.py
msgid "lid_heigth"
msgid "lid_height"
msgstr ""
#. help for parameter lid_heigth
#. help for parameter lid_height
#: boxes/generators/paperbox.py
msgid "Height of the lid (part which goes inside the box)"
msgstr ""

View File

@ -1634,16 +1634,16 @@ msgstr "LBeam Settings"
#. name of box generator
#: boxes/generators/magazinefile.py
msgid "MagazinFile"
msgstr "MagazinFile"
msgid "MagazineFile"
msgstr "MagazineFile"
#. description of MagazinFile
#. description of MagazineFile
#: boxes/generators/magazinefile.py
msgid "Open magazine file"
msgstr "Open magazine file"
msgid "MagazinFile Settings"
msgstr "MagazinFile Settings"
msgid "MagazineFile Settings"
msgstr "MagazineFile Settings"
#. name of box generator
#: boxes/generators/makitapowersupply.py

View File

@ -1627,15 +1627,15 @@ msgstr "Réglages du Dièdre en « L »"
#. name of box generator
#: boxes/generators/magazinefile.py
msgid "MagazinFile"
msgid "MagazineFile"
msgstr "Porte-magazine"
#. description of MagazinFile
#. description of MagazineFile
#: boxes/generators/magazinefile.py
msgid "Open magazine file"
msgstr "Support de magazines ouvert"
msgid "MagazinFile Settings"
msgid "MagazineFile Settings"
msgstr "Réglages de Porte-magazine"
#. name of box generator

View File

@ -615,10 +615,10 @@ msgstr "激光灯设置"
msgid "MXL"
msgstr "MXL"
msgid "MagazinFile"
msgid "MagazineFile"
msgstr "杂志文件"
msgid "MagazinFile Settings"
msgid "MagazineFile Settings"
msgstr "杂志文件设置"
msgid "MakitaPowerSupply"

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -97,7 +97,7 @@ a95305025a8136290e95f8232463bb1c6023a1d98d502e7a249d52c60aafdd94 ../static/samp
34058c3a37bc70dc72e467d2da1ece7cde2aacedf7b751243a7c264c9998afb2 ../static/samples/DiceBox.jpg
e90b4a90c1dbd2a4a03e4cf50ba82bc7119b721bd5c90c5fdbd0a356c9eabfd3 ../static/samples/CanStorageAA.jpg
0580043276c800c68dfba840d47c27f974ef2d0629751ecd250df2400f03cca8 ../static/samples/CanStorage.jpg
bb250512410c007a74f91caee4e25eac817021f5a535987a7f5ff46148a074ca ../static/samples/MagazinFile.jpg
bb250512410c007a74f91caee4e25eac817021f5a535987a7f5ff46148a074ca ../static/samples/MagazineFile.jpg
59c29899a7f6cfa1727830b35ba621747bf1fe16b8559884054bf50235559a11 ../static/samples/CoinDisplay.jpg
c21b47963a9de686eec4bcdb04dc84a64fef1e943d9c276f6ecb7d619af22791 ../static/samples/HalfBox_Shelf_usage.jpg
3bdbb6dab2beea4dcdcf84941bf1f763bc9eb60ca9369965c4b003d5bb57f83b ../static/samples/HalfBox_AngleJig_usage.jpg