Skip to content

Commit

Permalink
renaming AdvancedHatch to GradientHatch including translations #31
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarisland committed Feb 14, 2024
1 parent ae10790 commit 84bce40
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 23 deletions.
Expand Up @@ -7,11 +7,11 @@
<key>CFBundleExecutable</key>
<string>plugin</string>
<key>CFBundleIdentifier</key>
<string>com.com.tcarisland.AdvancedHatch</string>
<string>com.tcarisland.GradientHatch</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>AdvancedHatch</string>
<string>GradientHatch</string>
<key>CFBundleShortVersionString</key>
<string>0.1</string> <!-- 1.0 -->
<key>CFBundleVersion</key>
Expand All @@ -23,9 +23,9 @@
<key>productReleaseNotes</key>
<string>____LatestReleaseNotes____</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright, com.tcarisland, 2024</string>
<string>Copyright, Thor Arisland, 2024</string>
<key>NSPrincipalClass</key>
<string>AdvancedHatch</string>
<string>GradientHatch</string>
<key>PyMainFileNames</key>
<array>
<string>plugin.py</string>
Expand Down
Expand Up @@ -12,7 +12,7 @@
from hatchmetrics import HatchMetrics


class AdvancedHatchFilter():
class GradientHatchFilter():

def __init__(self) -> None:
super().__init__()
Expand Down
Expand Up @@ -24,13 +24,13 @@
from GlyphsApp.plugins import *
# noinspection PyUnresolvedReferences
from Foundation import NSClassFromString
from advancedhatchfilter import AdvancedHatchFilter
from gradienthatchfilter import GradientHatchFilter

# noinspection PyUnresolvedReferences
class AdvancedHatch(FilterWithDialog):
class GradientHatch(FilterWithDialog):

# Definitions of IBOutlets
prefID = "com.tcarisland.AdvancedHatch"
prefID = "com.tcarisland.GradientHatch"
if Glyphs.versionNumber < 3:
# GLYPHS 2
pathOperator = NSClassFromString("GSPathOperator").alloc().init() # needs to be initialized only once
Expand All @@ -50,18 +50,18 @@ class AdvancedHatch(FilterWithDialog):
@objc.python_method
def settings(self):
self.menuName = Glyphs.localize({
'cs': 'Pokročilé šrafování',
'de': 'Erweiterte Schraffur',
'en': 'Advanced Hatch',
'es': 'Eclosión avanzada',
'fr': 'Éclosion avancée',
'it': 'Cova avanzata',
'ja': '高度なハッチング',
'ko': '고급 해칭',
'pt': 'Incubação Avançada',
'ru': 'Расширенная штриховка',
'tr': 'Gelişmiş Kuluçka',
'zh_CN': '高级孵化',
'cs': 'Postupné šrafování',
'de': 'Stufenweises Schraffieren',
'en': 'Gradient Hatch',
'es': 'Eclosión Gradual',
'fr': 'Éclosion par étapes',
'it': 'Cova graduale',
'ja': '段階的なハッチング',
'ko': '단계별 해칭',
'pt': 'Incubação gradual',
'ru': 'Поэтапная штриховка',
'tr': 'Kademeli Kuluçka',
'zh_CN': '逐步孵化',
}) # Word on Run Button (default: Apply)
self.actionButtonLabel = Glyphs.localize({
'en': 'Apply',
Expand Down Expand Up @@ -213,7 +213,7 @@ def filter(self, layer, inEditView, customParameters):

@objc.python_method
def runFilter(self, layer, angle, offsetPathEnabled, strokeWidths, stepWidth, origin, expandBeforeInset):
hatchFilter = AdvancedHatchFilter()
hatchFilter = GradientHatchFilter()
layer.removeOverlap()
originalShapeLayer = copy.deepcopy(layer)
if offsetPathEnabled:
Expand Down
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions README.md
@@ -1,10 +1,10 @@
### Advanced Hatch
### Gradient Hatch

Built on top of the Hatch Outline filter

With this plugin you can create gradient hatched outlines.

<img src="https://raw.githubusercontent.com/tcarisland/AdvancedHatch/main/AdvancedHatchPreview.png" width="826" />
<img src="https://raw.githubusercontent.com/tcarisland/GradientHatch/main/GradientHatchPreview.png" width="826" />

#### Known Problems

Expand Down

0 comments on commit 84bce40

Please sign in to comment.