wipo-gbd-transformation 1.1.64__py3-none-any.whl → 1.1.66__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wipo-gbd-transformation might be problematic. Click here for more details.
- gbdtransformation/brands/catm/filters.py +19 -2
- gbdtransformation/brands/catm/template.yml +7 -10
- gbdtransformation/brands/hrtm/template.yml +2 -2
- {wipo_gbd_transformation-1.1.64.dist-info → wipo_gbd_transformation-1.1.66.dist-info}/METADATA +1 -1
- {wipo_gbd_transformation-1.1.64.dist-info → wipo_gbd_transformation-1.1.66.dist-info}/RECORD +9 -9
- {wipo_gbd_transformation-1.1.64.dist-info → wipo_gbd_transformation-1.1.66.dist-info}/LICENSE.md +0 -0
- {wipo_gbd_transformation-1.1.64.dist-info → wipo_gbd_transformation-1.1.66.dist-info}/WHEEL +0 -0
- {wipo_gbd_transformation-1.1.64.dist-info → wipo_gbd_transformation-1.1.66.dist-info}/entry_points.txt +0 -0
- {wipo_gbd_transformation-1.1.64.dist-info → wipo_gbd_transformation-1.1.66.dist-info}/top_level.txt +0 -0
|
@@ -195,16 +195,33 @@ def translate_feature(feature):
|
|
|
195
195
|
if feature == 'Other': return 'Other'
|
|
196
196
|
if feature == 'Design': return 'Combined'
|
|
197
197
|
|
|
198
|
+
raise Exception('feature "%s" is not mapped.' % feature)
|
|
198
199
|
return 'Unknown'
|
|
199
200
|
|
|
201
|
+
def get_mark_name_from_headings(wspec, trademark):
|
|
202
|
+
if isinstance(wspec.IndexHeading, list):
|
|
203
|
+
if len(wspec.IndexHeading) == 0:
|
|
204
|
+
heading = None
|
|
205
|
+
else:
|
|
206
|
+
heading = wspec.IndexHeading[0].IndexHeadingText
|
|
207
|
+
else:
|
|
208
|
+
heading = wspec.IndexHeading.IndexHeadingText
|
|
209
|
+
|
|
210
|
+
if heading == None:
|
|
211
|
+
# fallback to MarkVerbalElementText
|
|
212
|
+
heading = trademark.MarkRepresentation.MarkReproduction.WordMarkSpecification.MarkVerbalElementText
|
|
213
|
+
print(heading)
|
|
214
|
+
|
|
215
|
+
return heading
|
|
216
|
+
|
|
200
217
|
def get_mark_names(word_mark_spec):
|
|
201
218
|
verbal = word_mark_spec.MarkVerbalElementText
|
|
202
219
|
signif = word_mark_spec.MarkSignificantVerbalElementText
|
|
203
220
|
|
|
204
221
|
if not signif == verbal:
|
|
205
|
-
return
|
|
222
|
+
return signif
|
|
206
223
|
else:
|
|
207
|
-
return
|
|
224
|
+
return verbal
|
|
208
225
|
|
|
209
226
|
def parse_viena(value):
|
|
210
227
|
return '%s.%s.%s' % (value.ViennaCategory.zfill(2), value.ViennaDivision.zfill(2), value.ViennaSection.zfill(2))
|
|
@@ -52,21 +52,18 @@ markDescriptionDetails:
|
|
|
52
52
|
text: {{ description.__value }}
|
|
53
53
|
{% endcall %}
|
|
54
54
|
|
|
55
|
-
|
|
56
55
|
wordMarkSpecification:
|
|
57
|
-
{% call(wspec) match('IndexHeadingBag.IndexHeading', trademark) %}
|
|
58
56
|
markVerbalElement:
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
{% call(wspec) match('NationalTrademarkInformation.IndexHeadingBag', trademark) %}
|
|
58
|
+
- languageCode: {{ wspec | get_mark_name_from_headings(trademark) | guess_language(trademark.ApplicationLanguageCode) }}
|
|
59
|
+
text: {{ wspec | get_mark_name_from_headings(trademark) }}
|
|
61
60
|
{% endcall %}
|
|
62
|
-
{% call(wspec) match('MarkRepresentation.MarkReproduction.WordMarkSpecification', trademark) %}
|
|
63
|
-
{% set (verbal, signif) = wspec | get_mark_names %}
|
|
64
61
|
markSignificantVerbalElement:
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
{% call(wspec) match('MarkRepresentation.MarkReproduction.WordMarkSpecification', trademark) %}
|
|
63
|
+
- languageCode: {{ wspec | get_mark_names | guess_language(trademark.ApplicationLanguageCode) }}
|
|
64
|
+
text: {{ wspec | get_mark_names }}
|
|
65
|
+
{% endcall %}
|
|
67
66
|
markTransliteration: {{ wspec.MarkTransliteration }}
|
|
68
|
-
{% endcall %}
|
|
69
|
-
|
|
70
67
|
|
|
71
68
|
markImageDetails:
|
|
72
69
|
{% call(img) match('MarkRepresentation.MarkReproduction.MarkImageBag.MarkImage', trademark) %}
|
|
@@ -13,9 +13,9 @@ kind: {{ TradeMark.KindMark | translate_kind }}
|
|
|
13
13
|
markFeature: {{ TradeMark.MarkFeature | translate_feature }}
|
|
14
14
|
designatedCountries:
|
|
15
15
|
- {{ TradeMark.RegistrationOfficeCode }}
|
|
16
|
-
applicationNumber: {{ TradeMark.ApplicationNumber
|
|
16
|
+
applicationNumber: {{ TradeMark.ApplicationNumber }}
|
|
17
17
|
applicationDate: {{ TradeMark.ApplicationDate | convertdate('%Y-%m-%d') }}
|
|
18
|
-
registrationNumber: {{ TradeMark | get_registration_nb(TradeMark.MarkCurrentStatusCode)
|
|
18
|
+
registrationNumber: {{ TradeMark | get_registration_nb(TradeMark.MarkCurrentStatusCode) }}
|
|
19
19
|
registrationDate: {{ TradeMark.RegistrationDate }}
|
|
20
20
|
applicationLanguageCode: {{ TradeMark.ApplicationLanguageCode }}
|
|
21
21
|
officeStatus: {{ TradeMark.MarkCurrentStatusCode }}
|
{wipo_gbd_transformation-1.1.64.dist-info → wipo_gbd_transformation-1.1.66.dist-info}/RECORD
RENAMED
|
@@ -65,9 +65,9 @@ gbdtransformation/brands/bztm/schema,sha256=AP0MxQyD0hY4APRh8nxitlxMqJYJB4AaaTJ8
|
|
|
65
65
|
gbdtransformation/brands/bztm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
|
|
66
66
|
gbdtransformation/brands/bztm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
67
|
gbdtransformation/brands/catm/__init__.py,sha256=pMtR-N5slJD0QHJU36_dbeWyqoqn4Q0eaMOmfO4Ed_o,270
|
|
68
|
-
gbdtransformation/brands/catm/filters.py,sha256=
|
|
68
|
+
gbdtransformation/brands/catm/filters.py,sha256=wNdCN7LUhvtNWGuVpJIGGDmhyRHQKl_CtyGSY8XivHQ,8787
|
|
69
69
|
gbdtransformation/brands/catm/schema,sha256=Xace88lwiEefhHkk6Zg12dzVF237nMy06HMISEXaTwk,34762
|
|
70
|
-
gbdtransformation/brands/catm/template.yml,sha256=
|
|
70
|
+
gbdtransformation/brands/catm/template.yml,sha256=3BQ1nHanBPz8x1T7VDmuQ7AhFcnHUrYM8FuOj7HHr7o,9909
|
|
71
71
|
gbdtransformation/brands/chtm/__init__.py,sha256=HPYmDCQ41vkuoXSA94CRtqN_pEKDaUhbpXLOBqlaumQ,130
|
|
72
72
|
gbdtransformation/brands/chtm/filters.py,sha256=kSMlYumpaLg53MdPAF5L7bM3ZiNsRfd0BgkPLgDDzQQ,5317
|
|
73
73
|
gbdtransformation/brands/chtm/schema,sha256=f3lVto7Y6O9W7dmhR-4lShQMTVL3tl6bGbw1DZLXuxU,2071
|
|
@@ -151,7 +151,7 @@ gbdtransformation/brands/gstm/template.yml,sha256=INQBe908BttDal83tMEXkpAOTasJ0v
|
|
|
151
151
|
gbdtransformation/brands/hrtm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
|
|
152
152
|
gbdtransformation/brands/hrtm/filters.py,sha256=1fFLY-0CVp4F52i2S5jLMH96crdBF0Wnc5CsrDnuIH4,4016
|
|
153
153
|
gbdtransformation/brands/hrtm/schema,sha256=7jQ-PC0VTx5NZ79Qf8xAZEX8sqFSUtjPwsvVYV8XZAs,1376
|
|
154
|
-
gbdtransformation/brands/hrtm/template.yml,sha256=
|
|
154
|
+
gbdtransformation/brands/hrtm/template.yml,sha256=9vOPTN4h6ytSoUhQ0m40bRfFbBqUXi8ZbcEU4Dw9k-c,9185
|
|
155
155
|
gbdtransformation/brands/idtm/__init__.py,sha256=MBVFGkMlqAi-s2ur7pCLYe2uxtjIxx9n9wo2bpESvxU,311
|
|
156
156
|
gbdtransformation/brands/idtm/filters.py,sha256=HbcLmB9KTBFjLwHJdkJmM-u5wdE2JmxlqJvlSz1cTKk,3018
|
|
157
157
|
gbdtransformation/brands/idtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
|
|
@@ -584,9 +584,9 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
|
|
|
584
584
|
schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
|
|
585
585
|
schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
586
586
|
schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
|
|
587
|
-
wipo_gbd_transformation-1.1.
|
|
588
|
-
wipo_gbd_transformation-1.1.
|
|
589
|
-
wipo_gbd_transformation-1.1.
|
|
590
|
-
wipo_gbd_transformation-1.1.
|
|
591
|
-
wipo_gbd_transformation-1.1.
|
|
592
|
-
wipo_gbd_transformation-1.1.
|
|
587
|
+
wipo_gbd_transformation-1.1.66.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
|
|
588
|
+
wipo_gbd_transformation-1.1.66.dist-info/METADATA,sha256=xVcWJkjbN6RnAwq-XP8zdbeGVYyYlEYAfd8E7BNj0Uc,577
|
|
589
|
+
wipo_gbd_transformation-1.1.66.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
590
|
+
wipo_gbd_transformation-1.1.66.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
|
|
591
|
+
wipo_gbd_transformation-1.1.66.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
|
|
592
|
+
wipo_gbd_transformation-1.1.66.dist-info/RECORD,,
|
{wipo_gbd_transformation-1.1.64.dist-info → wipo_gbd_transformation-1.1.66.dist-info}/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wipo_gbd_transformation-1.1.64.dist-info → wipo_gbd_transformation-1.1.66.dist-info}/top_level.txt
RENAMED
|
File without changes
|